@yamada-ui/react
Version:
React UI components of the Yamada, by the Yamada, for the Yamada built with React and Emotion
1 lines • 2.68 kB
Source Map (JSON)
{"version":3,"file":"file-input.style.cjs","names":["defineComponentSlotStyle","inputStyle","getInputPaddingStartResetStyle"],"sources":["../../../../src/components/file-input/file-input.style.ts"],"sourcesContent":["import { defineComponentSlotStyle } from \"../../core\"\nimport { getInputPaddingStartResetStyle, inputStyle } from \"../input\"\n\nexport const fileInputStyle = defineComponentSlotStyle({\n base: {\n root: {\n ...inputStyle.base,\n alignItems: \"center\",\n cursor: \"pointer\",\n display: \"flex\",\n flexWrap: \"wrap\",\n gapX: \"1\",\n lineHeight: \"1\",\n _readOnly: {\n layerStyle: \"readOnly\",\n },\n },\n tag: {\n display: \"inline-block\",\n overflow: \"hidden\",\n whiteSpace: \"nowrap\",\n },\n },\n\n variants: {\n filled: {\n root: inputStyle.variants?.filled,\n },\n flushed: {\n root: {\n ...inputStyle.variants?.flushed,\n ...getInputPaddingStartResetStyle(),\n },\n },\n outline: {\n root: inputStyle.variants?.outline,\n },\n plain: {\n root: inputStyle.variants?.plain,\n },\n },\n\n sizes: {\n xs: {\n root: { py: \"{--space-y}\", ...inputStyle.sizes?.xs },\n },\n sm: {\n root: { py: \"{--space-y}\", ...inputStyle.sizes?.sm },\n },\n md: {\n root: { py: \"{--space-y}\", ...inputStyle.sizes?.md },\n },\n lg: {\n root: { py: \"{--space-y}\", ...inputStyle.sizes?.lg },\n },\n xl: {\n root: { py: \"{--space-y}\", ...inputStyle.sizes?.xl },\n },\n \"2xl\": {\n root: { py: \"{--space-y}\", ...inputStyle.sizes?.[\"2xl\"] },\n },\n },\n\n defaultProps: {\n size: \"md\",\n variant: \"outline\",\n },\n})\n\nexport type FileInputStyle = typeof fileInputStyle\n"],"mappings":";;;;AAGA,MAAa,iBAAiBA,wCAAyB;CACrD,MAAM;EACJ,MAAM;GACJ,GAAGC,+BAAW;GACd,YAAY;GACZ,QAAQ;GACR,SAAS;GACT,UAAU;GACV,MAAM;GACN,YAAY;GACZ,WAAW,EACT,YAAY,YACb;GACF;EACD,KAAK;GACH,SAAS;GACT,UAAU;GACV,YAAY;GACb;EACF;CAED,UAAU;EACR,QAAQ,EACN,MAAMA,+BAAW,UAAU,QAC5B;EACD,SAAS,EACP,MAAM;GACJ,GAAGA,+BAAW,UAAU;GACxB,GAAGC,oDAAgC;GACpC,EACF;EACD,SAAS,EACP,MAAMD,+BAAW,UAAU,SAC5B;EACD,OAAO,EACL,MAAMA,+BAAW,UAAU,OAC5B;EACF;CAED,OAAO;EACL,IAAI,EACF,MAAM;GAAE,IAAI;GAAe,GAAGA,+BAAW,OAAO;GAAI,EACrD;EACD,IAAI,EACF,MAAM;GAAE,IAAI;GAAe,GAAGA,+BAAW,OAAO;GAAI,EACrD;EACD,IAAI,EACF,MAAM;GAAE,IAAI;GAAe,GAAGA,+BAAW,OAAO;GAAI,EACrD;EACD,IAAI,EACF,MAAM;GAAE,IAAI;GAAe,GAAGA,+BAAW,OAAO;GAAI,EACrD;EACD,IAAI,EACF,MAAM;GAAE,IAAI;GAAe,GAAGA,+BAAW,OAAO;GAAI,EACrD;EACD,OAAO,EACL,MAAM;GAAE,IAAI;GAAe,GAAGA,+BAAW,QAAQ;GAAQ,EAC1D;EACF;CAED,cAAc;EACZ,MAAM;EACN,SAAS;EACV;CACF,CAAC"}