UNPKG

@yamada-ui/react

Version:

React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion

1 lines 2.32 kB
{"version":3,"file":"layer-styles.cjs","names":["defineStyles","visuallyHiddenAttributes"],"sources":["../../../../src/theme/styles/layer-styles.ts"],"sourcesContent":["import { defineStyles } from \"../../core\"\nimport { visuallyHiddenAttributes } from \"../../utils\"\n\nexport const layerStyles = defineStyles.layerStyle({\n active: { opacity: 1 },\n disabled: {\n cursor: \"not-allowed\",\n opacity: 0.4,\n _ripple: { display: \"none\" },\n },\n ghost: {\n bg: \"transparent\",\n border: \"1px solid transparent\",\n color: \"colorScheme.outline\",\n },\n \"ghost.hover\": {\n bg: \"colorScheme.ghost\",\n },\n hover: { opacity: 0.8 },\n outline: {\n bg: \"transparent\",\n border: \"1px solid {colorScheme.muted}\",\n color: \"colorScheme.outline\",\n },\n \"outline.hover\": {\n bg: \"colorScheme.ghost\",\n },\n panel: {\n bg: \"bg.panel\",\n borderColor: \"border\",\n borderWidth: \"1px\",\n },\n readOnly: {\n cursor: \"default\",\n _ripple: { display: \"none\" },\n },\n solid: {\n bg: \"colorScheme.solid\",\n border: \"1px solid transparent\",\n color: \"colorScheme.contrast\",\n },\n \"solid.hover\": {\n bg: \"colorScheme.solid/80\",\n },\n subtle: {\n bg: \"colorScheme.subtle\",\n border: \"1px solid transparent\",\n color: \"colorScheme.fg\",\n },\n \"subtle.hover\": {\n bg: \"colorScheme.muted\",\n },\n surface: {\n bg: \"colorScheme.subtle\",\n border: \"1px solid {colorScheme.muted}\",\n color: \"colorScheme.fg\",\n },\n \"surface.hover\": {\n bg: \"colorScheme.muted\",\n },\n visuallyHidden: visuallyHiddenAttributes.style,\n})\n"],"mappings":";;;;AAGA,MAAa,cAAcA,4BAAa,WAAW;CACjD,QAAQ,EAAE,SAAS,GAAG;CACtB,UAAU;EACR,QAAQ;EACR,SAAS;EACT,SAAS,EAAE,SAAS,QAAQ;EAC7B;CACD,OAAO;EACL,IAAI;EACJ,QAAQ;EACR,OAAO;EACR;CACD,eAAe,EACb,IAAI,qBACL;CACD,OAAO,EAAE,SAAS,IAAK;CACvB,SAAS;EACP,IAAI;EACJ,QAAQ;EACR,OAAO;EACR;CACD,iBAAiB,EACf,IAAI,qBACL;CACD,OAAO;EACL,IAAI;EACJ,aAAa;EACb,aAAa;EACd;CACD,UAAU;EACR,QAAQ;EACR,SAAS,EAAE,SAAS,QAAQ;EAC7B;CACD,OAAO;EACL,IAAI;EACJ,QAAQ;EACR,OAAO;EACR;CACD,eAAe,EACb,IAAI,wBACL;CACD,QAAQ;EACN,IAAI;EACJ,QAAQ;EACR,OAAO;EACR;CACD,gBAAgB,EACd,IAAI,qBACL;CACD,SAAS;EACP,IAAI;EACJ,QAAQ;EACR,OAAO;EACR;CACD,iBAAiB,EACf,IAAI,qBACL;CACD,gBAAgBC,qCAAyB;CAC1C,CAAC"}