UNPKG

@lobehub/ui

Version:

Lobe UI is an open-source UI component library for building AIGC web apps

1 lines 2.9 kB
{"version":3,"file":"style.mjs","names":["lobeStaticStylish","cssVar"],"sources":["../../src/GuideCard/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 borderless: lobeStaticStylish.variantBorderlessWithoutHover,\n close: css`\n position: absolute;\n inset-block-start: 8px;\n inset-inline-end: 8px;\n `,\n content: css`\n padding: 16px;\n `,\n cover: css`\n align-self: center;\n `,\n desc: css`\n color: ${cssVar.colorTextDescription};\n `,\n filledDark: css`\n ${lobeStaticStylish.variantFilledWithoutHover};\n background: linear-gradient(\n to bottom,\n ${cssVar.colorFillTertiary},\n ${cssVar.colorFillQuaternary}\n );\n `,\n filledLight: css`\n ${lobeStaticStylish.variantFilledWithoutHover};\n background: linear-gradient(\n to bottom,\n ${cssVar.colorFillQuaternary},\n ${cssVar.colorFillTertiary}\n );\n `,\n outlined: lobeStaticStylish.variantOutlinedWithoutHover,\n root: css`\n position: relative;\n overflow: hidden;\n border-radius: ${cssVar.borderRadiusLG};\n `,\n shadow: lobeStaticStylish.shadow,\n title: css`\n font-size: 16px;\n font-weight: bold;\n `,\n}));\n\nexport const variants = cva(styles.root, {\n compoundVariants: [\n {\n class: styles.filledDark,\n isDarkMode: true,\n variant: 'filled',\n },\n {\n class: styles.filledLight,\n isDarkMode: false,\n variant: 'filled',\n },\n ],\n defaultVariants: {\n isDarkMode: false,\n shadow: false,\n variant: 'filled',\n },\n /* eslint-disable sort-keys-fix/sort-keys-fix */\n variants: {\n isDarkMode: {\n false: null,\n true: null,\n },\n shadow: {\n false: null,\n true: styles.shadow,\n },\n variant: {\n borderless: styles.borderless,\n filled: null,\n outlined: styles.outlined,\n },\n },\n /* eslint-enable sort-keys-fix/sort-keys-fix */\n});\n"],"mappings":";;;;;AAKA,MAAa,SAAS,oBAAoB,EAAE,YAAK,wBAAc;CAC7D,YAAYA,cAAkB;CAC9B,OAAO,KAAG;;;;;CAKV,SAAS,KAAG;;;CAGZ,OAAO,KAAG;;;CAGV,MAAM,KAAG;aACEC,SAAO,qBAAqB;;CAEvC,YAAY,KAAG;MACXD,cAAkB,0BAA0B;;;QAG1CC,SAAO,kBAAkB;QACzBA,SAAO,oBAAoB;;;CAGjC,aAAa,KAAG;MACZD,cAAkB,0BAA0B;;;QAG1CC,SAAO,oBAAoB;QAC3BA,SAAO,kBAAkB;;;CAG/B,UAAUD,cAAkB;CAC5B,MAAM,KAAG;;;qBAGUC,SAAO,eAAe;;CAEzC,QAAQD,cAAkB;CAC1B,OAAO,KAAG;;;;CAIX,EAAE;AAEH,MAAa,WAAW,IAAI,OAAO,MAAM;CACvC,kBAAkB,CAChB;EACE,OAAO,OAAO;EACd,YAAY;EACZ,SAAS;EACV,EACD;EACE,OAAO,OAAO;EACd,YAAY;EACZ,SAAS;EACV,CACF;CACD,iBAAiB;EACf,YAAY;EACZ,QAAQ;EACR,SAAS;EACV;CAED,UAAU;EACR,YAAY;GACV,OAAO;GACP,MAAM;GACP;EACD,QAAQ;GACN,OAAO;GACP,MAAM,OAAO;GACd;EACD,SAAS;GACP,YAAY,OAAO;GACnB,QAAQ;GACR,UAAU,OAAO;GAClB;EACF;CAEF,CAAC"}