@lobehub/ui
Version:
Lobe UI is an open-source UI component library for building AIGC web apps
1 lines • 2.21 kB
Source Map (JSON)
{"version":3,"file":"style.mjs","names":["lobeStaticStylish","cssVar"],"sources":["../../src/Select/style.ts"],"sourcesContent":["import { createStaticStyles } from 'antd-style';\nimport { cva } from 'class-variance-authority';\n\nimport { lobeStaticStylish } from '@/styles';\n\nexport const styles = createStaticStyles(({ css, cssVar }) => {\n return {\n borderless: css`\n &[class*='ant-select'] {\n > [class*='ant-select-selector'] {\n ${lobeStaticStylish.variantBorderless}\n }\n }\n `,\n filled: css`\n &[class*='ant-select'] {\n > [class*='ant-select-selector'] {\n ${lobeStaticStylish.variantFilled}\n }\n }\n `,\n outlined: css`\n &[class*='ant-select'] {\n > [class*='ant-select-selector'] {\n ${lobeStaticStylish.variantOutlined}\n }\n }\n `,\n root: css`\n &[class*='ant-select'] {\n &[class*='ant-select-focused'] {\n > [class*='ant-select-selector'] {\n background: ${cssVar.colorFillTertiary} !important;\n }\n }\n }\n `,\n shadow: css`\n &[class*='ant-select'] {\n > [class*='ant-select-selector'] {\n ${lobeStaticStylish.shadow}\n }\n }\n `,\n };\n});\n\nexport const variants = cva(styles.root, {\n defaultVariants: {\n shadow: false,\n },\n /* eslint-disable sort-keys-fix/sort-keys-fix */\n variants: {\n variant: {\n filled: styles.filled,\n outlined: styles.outlined,\n borderless: styles.borderless,\n underlined: null,\n },\n shadow: {\n false: null,\n true: styles.shadow,\n },\n },\n /* eslint-enable sort-keys-fix/sort-keys-fix */\n});\n"],"mappings":";;;;;AAKA,MAAa,SAAS,oBAAoB,EAAE,YAAK,uBAAa;AAC5D,QAAO;EACL,YAAY,KAAG;;;YAGPA,cAAkB,kBAAkB;;;;EAI5C,QAAQ,KAAG;;;YAGHA,cAAkB,cAAc;;;;EAIxC,UAAU,KAAG;;;YAGLA,cAAkB,gBAAgB;;;;EAI1C,MAAM,KAAG;;;;0BAIaC,SAAO,kBAAkB;;;;;EAK/C,QAAQ,KAAG;;;YAGHD,cAAkB,OAAO;;;;EAIlC;EACD;AAEF,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,iBAAiB,EACf,QAAQ,OACT;CAED,UAAU;EACR,SAAS;GACP,QAAQ,OAAO;GACf,UAAU,OAAO;GACjB,YAAY,OAAO;GACnB,YAAY;GACb;EACD,QAAQ;GACN,OAAO;GACP,MAAM,OAAO;GACd;EACF;CAEF,CAAC"}