UNPKG

@yamada-ui/react

Version:

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

1 lines 1.81 kB
{"version":3,"file":"file-button.style.cjs","names":["defineComponentStyle","buttonStyle"],"sources":["../../../../src/components/file-button/file-button.style.ts"],"sourcesContent":["import { defineComponentStyle } from \"../../core\"\nimport { buttonStyle } from \"../button\"\n\nexport const fileButtonStyle = defineComponentStyle({\n base: {\n \"--error-border-color\": \"colors.border.error\",\n },\n\n variants: {\n ghost: {\n ...buttonStyle.variants?.ghost,\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n outline: {\n ...buttonStyle.variants?.outline,\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n solid: {\n ...buttonStyle.variants?.solid,\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n subtle: {\n ...buttonStyle.variants?.subtle,\n _invalid: {\n borderColor: \"{error-border-color}\",\n borderWidth: \"1px\",\n },\n },\n surface: {\n ...buttonStyle.variants?.surface,\n _invalid: {\n borderColor: \"{error-border-color}\",\n },\n },\n },\n\n defaultProps: {\n variant: \"solid\",\n },\n})\n\nexport type FileButtonStyle = typeof fileButtonStyle\n"],"mappings":";;;;AAGA,MAAa,kBAAkBA,oCAAqB;CAClD,MAAM,EACJ,wBAAwB,uBACzB;CAED,UAAU;EACR,OAAO;GACL,GAAGC,iCAAY,UAAU;GACzB,UAAU;IACR,aAAa;IACb,aAAa;IACd;GACF;EACD,SAAS;GACP,GAAGA,iCAAY,UAAU;GACzB,UAAU,EACR,aAAa,wBACd;GACF;EACD,OAAO;GACL,GAAGA,iCAAY,UAAU;GACzB,UAAU;IACR,aAAa;IACb,aAAa;IACd;GACF;EACD,QAAQ;GACN,GAAGA,iCAAY,UAAU;GACzB,UAAU;IACR,aAAa;IACb,aAAa;IACd;GACF;EACD,SAAS;GACP,GAAGA,iCAAY,UAAU;GACzB,UAAU,EACR,aAAa,wBACd;GACF;EACF;CAED,cAAc,EACZ,SAAS,SACV;CACF,CAAC"}