UNPKG

@nurl/panda-preset

Version:

Official Panda-CSS preset for the Ganglion Design System.

1 lines 2.55 kB
{"version":3,"sources":["../../../../src/recipes/shared/button.base.ts"],"sourcesContent":["import { focusStates, formStates } from './states'\nimport { action, danger, neutral } from './palettes'\n\nexport const buttonBase = {\n alignItems: 'center',\n appearance: 'none',\n borderStyle: 'none',\n display: 'inline-flex',\n fontSize: 'inherit',\n fontVariationSettings: \"'wght' 600\",\n gap: '1',\n justifyContent: 'center',\n lineHeight: '0',\n outline: 'none',\n position: 'relative',\n textAlign: 'center',\n textDecoration: 'none',\n textTransform: 'none',\n transitionProperty: 'background-color, color',\n transitionDuration: 'fast',\n transitionTimingFunction: 'ease-in-out',\n userSelect: 'none',\n verticalAlign: 'middle',\n whiteSpace: 'nowrap',\n\n ...focusStates,\n ...formStates,\n}\n\nexport const nonTextStates = {\n color: 'colorPalette.text.initial',\n _hover: {\n bgColor: 'colorPalette.bg.hover',\n _disabled: {\n bgColor: 'colorPalette.bg.initial',\n },\n },\n _active: {\n bgColor: 'colorPalette.bg.active',\n },\n}\n\nexport const textUsage = {\n color: 'colorPalette.text.100',\n _hover: {\n bgColor: 'colorPalette.bg.hover',\n },\n _active: {\n color: 'colorPalette.text.initial',\n },\n _disabled: {\n _active: {\n color: 'colorPalette.text.100',\n },\n },\n}\n\nexport const filledUsage = {\n bgColor: 'colorPalette.bg.initial',\n ...nonTextStates,\n _active: {\n bgColor: 'colorPalette.bg.active',\n },\n}\n\nexport const buttonPalettes = {\n action,\n neutral,\n danger,\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAwC;AACxC,sBAAwC;AAEjC,IAAM,aAAa;AAAA,EACxB,YAAY;AAAA,EACZ,YAAY;AAAA,EACZ,aAAa;AAAA,EACb,SAAS;AAAA,EACT,UAAU;AAAA,EACV,uBAAuB;AAAA,EACvB,KAAK;AAAA,EACL,gBAAgB;AAAA,EAChB,YAAY;AAAA,EACZ,SAAS;AAAA,EACT,UAAU;AAAA,EACV,WAAW;AAAA,EACX,gBAAgB;AAAA,EAChB,eAAe;AAAA,EACf,oBAAoB;AAAA,EACpB,oBAAoB;AAAA,EACpB,0BAA0B;AAAA,EAC1B,YAAY;AAAA,EACZ,eAAe;AAAA,EACf,YAAY;AAAA,EAEZ,GAAG;AAAA,EACH,GAAG;AACL;AAEO,IAAM,gBAAgB;AAAA,EAC3B,OAAO;AAAA,EACP,QAAQ;AAAA,IACN,SAAS;AAAA,IACT,WAAW;AAAA,MACT,SAAS;AAAA,IACX;AAAA,EACF;AAAA,EACA,SAAS;AAAA,IACP,SAAS;AAAA,EACX;AACF;AAEO,IAAM,YAAY;AAAA,EACvB,OAAO;AAAA,EACP,QAAQ;AAAA,IACN,SAAS;AAAA,EACX;AAAA,EACA,SAAS;AAAA,IACP,OAAO;AAAA,EACT;AAAA,EACA,WAAW;AAAA,IACT,SAAS;AAAA,MACP,OAAO;AAAA,IACT;AAAA,EACF;AACF;AAEO,IAAM,cAAc;AAAA,EACzB,SAAS;AAAA,EACT,GAAG;AAAA,EACH,SAAS;AAAA,IACP,SAAS;AAAA,EACX;AACF;AAEO,IAAM,iBAAiB;AAAA,EAC5B;AAAA,EACA;AAAA,EACA;AACF;","names":[]}