@jinmi/ui 6.0.1 → 6.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/ActionIcon/ActionIcon.mjs.map +1 -1
- package/es/Avatar/Avatar.mjs.map +1 -1
- package/es/Button/Button.mjs.map +1 -1
- package/es/Checkbox/style.mjs +7 -6
- package/es/Checkbox/style.mjs.map +1 -1
- package/es/Modal/Modal.mjs.map +1 -1
- package/es/Segmented/Segmented.mjs.map +1 -1
- package/es/Select/Select.mjs.map +1 -1
- package/es/Skeleton/Skeleton.mjs.map +1 -1
- package/es/Skeleton/SkeletonAvatar.mjs.map +1 -1
- package/es/Skeleton/SkeletonBlock.mjs.map +1 -1
- package/es/Skeleton/SkeletonButton.mjs.map +1 -1
- package/es/Skeleton/SkeletonParagraph.mjs.map +1 -1
- package/es/Skeleton/SkeletonTitle.mjs.map +1 -1
- package/es/Tabs/Tabs.mjs.map +1 -1
- package/es/Tag/Tag.mjs.map +1 -1
- package/es/Text/Text.mjs.map +1 -1
- package/es/ThemeProvider/GlobalStyle/antdOverride.mjs +6 -6
- package/es/ThemeProvider/GlobalStyle/antdOverride.mjs.map +1 -1
- package/es/ThemeProvider/GlobalStyle/essential.mjs +91 -84
- package/es/ThemeProvider/GlobalStyle/essential.mjs.map +1 -1
- package/es/ThemeProvider/GlobalStyle/global.mjs.map +1 -1
- package/es/ThemeProvider/ThemeProvider.mjs +1 -1
- package/es/awesome/Hero/Hero.mjs.map +1 -1
- package/es/base-ui/Anchor/style.mjs.map +1 -1
- package/es/base-ui/Button/SplitButton.mjs +5 -4
- package/es/base-ui/Button/SplitButton.mjs.map +1 -1
- package/es/base-ui/Button/style.mjs +10 -9
- package/es/base-ui/Button/style.mjs.map +1 -1
- package/es/base-ui/Carousel/style.mjs.map +1 -1
- package/es/base-ui/Checkbox/style.mjs +4 -3
- package/es/base-ui/Checkbox/style.mjs.map +1 -1
- package/es/base-ui/DraggablePanel/style.mjs.map +1 -1
- package/es/base-ui/Form/index.mjs.map +1 -1
- package/es/base-ui/FormKit/Field.mjs.map +1 -1
- package/es/base-ui/FormKit/context.mjs.map +1 -1
- package/es/base-ui/FormKit/instance.mjs.map +1 -1
- package/es/base-ui/Input/style.d.mts +1 -1
- package/es/base-ui/Progress/Progress.mjs +2 -1
- package/es/base-ui/Progress/Progress.mjs.map +1 -1
- package/es/base-ui/Progress/style.mjs +2 -1
- package/es/base-ui/Progress/style.mjs.map +1 -1
- package/es/base-ui/Radio/style.mjs +4 -3
- package/es/base-ui/Radio/style.mjs.map +1 -1
- package/es/base-ui/Rate/style.mjs.map +1 -1
- package/es/base-ui/Slider/style.mjs +3 -2
- package/es/base-ui/Slider/style.mjs.map +1 -1
- package/es/base-ui/Switch/Switch.mjs +3 -2
- package/es/base-ui/Switch/Switch.mjs.map +1 -1
- package/es/base-ui/Switch/style.mjs +4 -3
- package/es/base-ui/Switch/style.mjs.map +1 -1
- package/es/base-ui/Upload/style.mjs.map +1 -1
- package/es/color/colors/primary.d.mts +4 -2
- package/es/color/colors/primary.mjs +55 -53
- package/es/color/colors/primary.mjs.map +1 -1
- package/es/eslint/index.mjs.map +1 -1
- package/es/index.d.mts +3 -2
- package/es/index.mjs +3 -2
- package/es/static-css/baseline.mjs.map +1 -1
- package/es/static-css/scan.mjs.map +1 -1
- package/es/styles/index.d.mts +3 -2
- package/es/styles/index.mjs +3 -2
- package/es/styles/inkCssVar.d.mts +15 -0
- package/es/styles/inkCssVar.mjs +16 -0
- package/es/styles/inkCssVar.mjs.map +1 -0
- package/es/styles/theme/antdTheme.mjs +18 -2
- package/es/styles/theme/antdTheme.mjs.map +1 -1
- package/es/styles/theme/customToken.d.mts +20 -1
- package/es/styles/theme/customToken.mjs +21 -1
- package/es/styles/theme/customToken.mjs.map +1 -1
- package/es/styles/theme/token/dark.mjs.map +1 -1
- package/es/styles/theme/token/light.mjs.map +1 -1
- package/es/styles/theme/token/shadow.mjs.map +1 -1
- package/es/types/customToken.d.mts +6 -0
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primary.mjs","names":[],"sources":["../../../src/color/colors/primary.ts"],"sourcesContent":["import type { ColorScaleItem } from '../types';\n\n/**\n * Jinmi
|
|
1
|
+
{"version":3,"file":"primary.mjs","names":[],"sources":["../../../src/color/colors/primary.ts"],"sourcesContent":["import type { ColorScaleItem } from '../types';\n\n/**\n * Jinmi accent (design-system board 06). Step [9] is colorPrimary: accent text and\n * selected chips (#06759A light, AA on white; #5CD6F2 dark). Filled controls —\n * primary buttons, switches, checkboxes, radios, progress, sliders — use ink\n * (`inkToken` / `inkCssVar`) instead.\n */\nconst primary: ColorScaleItem = {\n dark: [\n '#050d10',\n '#0e2329',\n '#123139',\n '#15414c',\n '#1b5866',\n '#23768a',\n '#2c97b0',\n '#3fc9e8',\n '#4fd0ee',\n '#5cd6f2',\n '#8be4f6',\n '#bdf0fa',\n '#e8fbfe',\n ],\n darkA: [\n 'rgba(92, 214, 242, 0.02)',\n 'rgba(92, 214, 242, 0.08)',\n 'rgba(92, 214, 242, 0.16)',\n 'rgba(92, 214, 242, 0.22)',\n 'rgba(92, 214, 242, 0.36)',\n 'rgba(92, 214, 242, 0.48)',\n 'rgba(92, 214, 242, 0.6)',\n 'rgba(92, 214, 242, 0.72)',\n 'rgba(92, 214, 242, 0.84)',\n 'rgba(92, 214, 242, 0.88)',\n 'rgba(92, 214, 242, 0.92)',\n 'rgba(92, 214, 242, 0.96)',\n 'rgba(92, 214, 242, 0.98)',\n ],\n light: [\n '#ffffff',\n '#e6f9fd',\n '#cdf3fb',\n '#b4ecf7',\n '#9be3f3',\n '#5fcfea',\n '#22b5d9',\n '#0e99bf',\n '#0a86ac',\n '#06759a',\n '#055a77',\n '#044a62',\n '#02313f',\n ],\n lightA: [\n 'rgba(6, 117, 154, 0.02)',\n 'rgba(6, 117, 154, 0.08)',\n 'rgba(6, 117, 154, 0.16)',\n 'rgba(6, 117, 154, 0.22)',\n 'rgba(6, 117, 154, 0.36)',\n 'rgba(6, 117, 154, 0.48)',\n 'rgba(6, 117, 154, 0.6)',\n 'rgba(6, 117, 154, 0.72)',\n 'rgba(6, 117, 154, 0.84)',\n 'rgba(6, 117, 154, 0.88)',\n 'rgba(6, 117, 154, 0.92)',\n 'rgba(6, 117, 154, 0.96)',\n 'rgba(6, 117, 154, 0.98)',\n ],\n};\n\nexport default primary;\n"],"mappings":";;;;;;;AAQA,MAAM,UAA0B;CAC9B,MAAM;EACJ;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,OAAO;EACL;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;CACA,QAAQ;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;CACF;AACF"}
|
package/es/eslint/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/eslint/index.ts"],"sourcesContent":["import { noInlineFormSchema } from './noInlineFormSchema';\r\n\r\nconst DEPRECATED_UI_COMPONENTS = [\r\n 'Accordion',\r\n 'AccordionItem',\r\n 'ActionIcon',\r\n 'Alert',\r\n 'AutoComplete',\r\n 'Avatar',\r\n 'AvatarGroup',\r\n 'Burger',\r\n 'Button',\r\n 'Checkbox',\r\n 'CheckboxGroup',\r\n 'Collapse',\r\n 'DatePicker',\r\n 'DraggablePanel',\r\n 'DraggablePanelBody',\r\n 'DraggablePanelContainer',\r\n 'DraggablePanelFooter',\r\n 'DraggablePanelHeader',\r\n 'Drawer',\r\n 'Dropdown',\r\n 'FormSubmitFooter',\r\n 'FormTitle',\r\n 'Input',\r\n 'InputNumber',\r\n 'InputOPT',\r\n 'InputPassword',\r\n 'Modal',\r\n 'ModalHost',\r\n 'Radio',\r\n 'RadioGroup',\r\n 'Segmented',\r\n 'Select',\r\n 'Skeleton',\r\n 'SkeletonAvatar',\r\n 'SkeletonBlock',\r\n 'SkeletonButton',\r\n 'SkeletonParagraph',\r\n 'SkeletonTags',\r\n 'SkeletonTitle',\r\n 'Slider',\r\n 'SliderWithInput',\r\n 'Switch',\r\n 'Tabs',\r\n 'Tag',\r\n 'Text',\r\n 'TextArea',\r\n 'Tree',\r\n];\r\n\r\nconst DEPRECATED_ANTD_ONLY = [\r\n 'Anchor',\r\n 'Badge',\r\n 'Breadcrumb',\r\n 'Card',\r\n 'Carousel',\r\n 'ColorPicker',\r\n 'Descriptions',\r\n 'Divider',\r\n 'Empty',\r\n 'FloatButton',\r\n 'List',\r\n 'Menu',\r\n 'Pagination',\r\n 'Popover',\r\n 'Progress',\r\n 'QRCode',\r\n 'Rate',\r\n 'Result',\r\n 'Spin',\r\n 'Statistic',\r\n 'Steps',\r\n 'Table',\r\n 'Tooltip',\r\n 'Typography',\r\n 'Upload',\r\n];\r\n\r\nconst DEPRECATED_FORM_EXPORTS = [\r\n 'Form',\r\n 'FormDivider',\r\n 'FormFlatGroup',\r\n 'FormFooter',\r\n 'FormGroup',\r\n 'FormGroupItemType',\r\n 'FormInstance',\r\n 'FormItem',\r\n 'FormItemProps',\r\n 'FormModal',\r\n 'FormModalProps',\r\n 'FormProps',\r\n];\r\n\r\nconst FORM_MIGRATION_MESSAGE =\r\n 'Use `Form`, `useForm` and their types from \"@jinmi/ui/base-ui/form\" instead.';\r\n\r\nconst DEPRECATED_ANTD_COMPONENT_PATHS = [\r\n 'antd/es/alert',\r\n 'antd/es/alert/*',\r\n 'antd/es/anchor',\r\n 'antd/es/anchor/*',\r\n 'antd/es/auto-complete',\r\n 'antd/es/auto-complete/*',\r\n 'antd/es/badge',\r\n 'antd/es/badge/*',\r\n 'antd/es/breadcrumb',\r\n 'antd/es/breadcrumb/*',\r\n 'antd/es/card',\r\n 'antd/es/card/*',\r\n 'antd/es/carousel',\r\n 'antd/es/carousel/*',\r\n 'antd/es/checkbox',\r\n 'antd/es/checkbox/*',\r\n 'antd/es/collapse',\r\n 'antd/es/collapse/*',\r\n 'antd/es/color-picker',\r\n 'antd/es/color-picker/*',\r\n 'antd/es/date-picker',\r\n 'antd/es/date-picker/*',\r\n 'antd/es/descriptions',\r\n 'antd/es/descriptions/*',\r\n 'antd/es/divider',\r\n 'antd/es/divider/*',\r\n 'antd/es/dropdown',\r\n 'antd/es/dropdown/*',\r\n 'antd/es/empty',\r\n 'antd/es/empty/*',\r\n 'antd/es/float-button',\r\n 'antd/es/float-button/*',\r\n 'antd/es/input',\r\n 'antd/es/input-number',\r\n 'antd/es/input-number/*',\r\n 'antd/es/input/*',\r\n 'antd/es/list',\r\n 'antd/es/list/*',\r\n 'antd/es/message',\r\n 'antd/es/message/*',\r\n 'antd/es/notification',\r\n 'antd/es/notification/*',\r\n 'antd/es/pagination',\r\n 'antd/es/pagination/*',\r\n 'antd/es/popover',\r\n 'antd/es/popover/*',\r\n 'antd/es/progress',\r\n 'antd/es/progress/*',\r\n 'antd/es/qr-code',\r\n 'antd/es/qr-code/*',\r\n 'antd/es/radio',\r\n 'antd/es/radio/*',\r\n 'antd/es/rate',\r\n 'antd/es/rate/*',\r\n 'antd/es/result',\r\n 'antd/es/result/*',\r\n 'antd/es/skeleton',\r\n 'antd/es/skeleton/*',\r\n 'antd/es/slider',\r\n 'antd/es/slider/*',\r\n 'antd/es/spin',\r\n 'antd/es/spin/*',\r\n 'antd/es/statistic',\r\n 'antd/es/statistic/*',\r\n 'antd/es/steps',\r\n 'antd/es/steps/*',\r\n 'antd/es/switch',\r\n 'antd/es/switch/*',\r\n 'antd/es/table',\r\n 'antd/es/table/*',\r\n 'antd/es/tooltip',\r\n 'antd/es/tooltip/*',\r\n 'antd/es/tree',\r\n 'antd/es/tree/*',\r\n 'antd/es/typography',\r\n 'antd/es/typography/*',\r\n 'antd/es/upload',\r\n 'antd/es/upload/*',\r\n 'antd/lib/alert',\r\n 'antd/lib/alert/*',\r\n 'antd/lib/anchor',\r\n 'antd/lib/anchor/*',\r\n 'antd/lib/auto-complete',\r\n 'antd/lib/auto-complete/*',\r\n 'antd/lib/badge',\r\n 'antd/lib/badge/*',\r\n 'antd/lib/breadcrumb',\r\n 'antd/lib/breadcrumb/*',\r\n 'antd/lib/card',\r\n 'antd/lib/card/*',\r\n 'antd/lib/carousel',\r\n 'antd/lib/carousel/*',\r\n 'antd/lib/checkbox',\r\n 'antd/lib/checkbox/*',\r\n 'antd/lib/collapse',\r\n 'antd/lib/collapse/*',\r\n 'antd/lib/color-picker',\r\n 'antd/lib/color-picker/*',\r\n 'antd/lib/date-picker',\r\n 'antd/lib/date-picker/*',\r\n 'antd/lib/descriptions',\r\n 'antd/lib/descriptions/*',\r\n 'antd/lib/divider',\r\n 'antd/lib/divider/*',\r\n 'antd/lib/dropdown',\r\n 'antd/lib/dropdown/*',\r\n 'antd/lib/empty',\r\n 'antd/lib/empty/*',\r\n 'antd/lib/float-button',\r\n 'antd/lib/float-button/*',\r\n 'antd/lib/input',\r\n 'antd/lib/input-number',\r\n 'antd/lib/input-number/*',\r\n 'antd/lib/input/*',\r\n 'antd/lib/list',\r\n 'antd/lib/list/*',\r\n 'antd/lib/message',\r\n 'antd/lib/message/*',\r\n 'antd/lib/notification',\r\n 'antd/lib/notification/*',\r\n 'antd/lib/pagination',\r\n 'antd/lib/pagination/*',\r\n 'antd/lib/popover',\r\n 'antd/lib/popover/*',\r\n 'antd/lib/progress',\r\n 'antd/lib/progress/*',\r\n 'antd/lib/qr-code',\r\n 'antd/lib/qr-code/*',\r\n 'antd/lib/radio',\r\n 'antd/lib/radio/*',\r\n 'antd/lib/rate',\r\n 'antd/lib/rate/*',\r\n 'antd/lib/result',\r\n 'antd/lib/result/*',\r\n 'antd/lib/skeleton',\r\n 'antd/lib/skeleton/*',\r\n 'antd/lib/slider',\r\n 'antd/lib/slider/*',\r\n 'antd/lib/spin',\r\n 'antd/lib/spin/*',\r\n 'antd/lib/statistic',\r\n 'antd/lib/statistic/*',\r\n 'antd/lib/steps',\r\n 'antd/lib/steps/*',\r\n 'antd/lib/switch',\r\n 'antd/lib/switch/*',\r\n 'antd/lib/table',\r\n 'antd/lib/table/*',\r\n 'antd/lib/tooltip',\r\n 'antd/lib/tooltip/*',\r\n 'antd/lib/tree',\r\n 'antd/lib/tree/*',\r\n 'antd/lib/typography',\r\n 'antd/lib/typography/*',\r\n 'antd/lib/upload',\r\n 'antd/lib/upload/*',\r\n];\r\n\r\nexport const restrictedImports = {\r\n rules: {\r\n 'no-restricted-imports': [\r\n 'error',\r\n {\r\n paths: [\r\n {\r\n importNames: DEPRECATED_UI_COMPONENTS,\r\n message:\r\n 'The antd-based wrapper is deprecated. Import from \"@jinmi/ui/base-ui\" instead.',\r\n name: '@jinmi/ui',\r\n },\r\n {\r\n importNames: DEPRECATED_FORM_EXPORTS,\r\n message: FORM_MIGRATION_MESSAGE,\r\n name: '@jinmi/ui',\r\n },\r\n {\r\n importNames: DEPRECATED_FORM_EXPORTS,\r\n message: FORM_MIGRATION_MESSAGE,\r\n name: 'antd',\r\n },\r\n {\r\n importNames: ['createStyles'],\r\n message:\r\n '`createStyles` is banned in this project. Use `createStaticStyles` from \"antd-style\" instead.',\r\n name: 'antd-style',\r\n },\r\n {\r\n importNames: [...DEPRECATED_UI_COMPONENTS, ...DEPRECATED_ANTD_ONLY],\r\n message: 'Direct antd import is deprecated. Import from \"@jinmi/ui/base-ui\" instead.',\r\n name: 'antd',\r\n },\r\n {\r\n importNames: ['message', 'notification'],\r\n message: 'antd feedback APIs are deprecated. Use `toast` from \"@jinmi/ui/base-ui\".',\r\n name: 'antd',\r\n },\r\n {\r\n importNames: ['LoadingOutlined'],\r\n message: 'Use `Spin` from \"@jinmi/ui/base-ui\" instead of a hand-rolled spinner.',\r\n name: '@ant-design/icons',\r\n },\r\n {\r\n message: 'Use `Spin variant=\"network\"` from \"@jinmi/ui/base-ui\" instead.',\r\n name: 'thinking-orbs',\r\n },\r\n {\r\n message:\r\n 'ProComponents are deprecated. Use `Table` from \"@jinmi/ui/base-ui\" instead.',\r\n name: '@ant-design/pro-components',\r\n },\r\n ],\r\n patterns: [\r\n {\r\n group: ['antd/es/form', 'antd/es/form/*', 'antd/lib/form', 'antd/lib/form/*'],\r\n message: FORM_MIGRATION_MESSAGE,\r\n },\r\n {\r\n group: DEPRECATED_ANTD_COMPONENT_PATHS,\r\n message:\r\n 'Direct antd component import is deprecated. Import from \"@jinmi/ui/base-ui\" instead.',\r\n },\r\n ],\r\n },\r\n ],\r\n },\r\n};\r\n\r\nexport const formSchemaRules = {\r\n plugins: {\r\n '@jinmi/ui': { rules: { 'no-inline-form-schema': noInlineFormSchema } },\r\n },\r\n rules: {\r\n '@jinmi/ui/no-inline-form-schema': 'warn',\r\n },\r\n};\r\n\r\nexport default [restrictedImports, formSchemaRules];\r\n"],"mappings":";;AAEA,MAAM,2BAA2B;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,uBAAuB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,0BAA0B;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,yBACJ;AAEF,MAAM,kCAAkC;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,oBAAoB,EAC/B,OAAO,EACL,yBAAyB,CACvB,SACA;CACE,OAAO;EACL;GACE,aAAa;GACb,SACE;GACF,MAAM;EACR;EACA;GACE,aAAa;GACb,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa;GACb,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa,CAAC,cAAc;GAC5B,SACE;GACF,MAAM;EACR;EACA;GACE,aAAa,CAAC,GAAG,0BAA0B,GAAG,oBAAoB;GAClE,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa,CAAC,WAAW,cAAc;GACvC,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa,CAAC,iBAAiB;GAC/B,SAAS;GACT,MAAM;EACR;EACA;GACE,SAAS;GACT,MAAM;EACR;EACA;GACE,SACE;GACF,MAAM;EACR;CACF;CACA,UAAU,CACR;EACE,OAAO;GAAC;GAAgB;GAAkB;GAAiB;EAAiB;EAC5E,SAAS;CACX,GACA;EACE,OAAO;EACP,SACE;CACJ,CACF;AACF,CACF,EACF,EACF;AAEA,MAAa,kBAAkB;CAC7B,SAAS,EACP,aAAa,EAAE,OAAO,EAAE,yBAAyB,mBAAmB,EAAE,EACxE;CACA,OAAO,EACL,mCAAmC,OACrC;AACF;AAEA,IAAA,iBAAe,CAAC,mBAAmB,eAAe"}
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/eslint/index.ts"],"sourcesContent":["import { noInlineFormSchema } from './noInlineFormSchema';\n\nconst DEPRECATED_UI_COMPONENTS = [\n 'Accordion',\n 'AccordionItem',\n 'ActionIcon',\n 'Alert',\n 'AutoComplete',\n 'Avatar',\n 'AvatarGroup',\n 'Burger',\n 'Button',\n 'Checkbox',\n 'CheckboxGroup',\n 'Collapse',\n 'DatePicker',\n 'DraggablePanel',\n 'DraggablePanelBody',\n 'DraggablePanelContainer',\n 'DraggablePanelFooter',\n 'DraggablePanelHeader',\n 'Drawer',\n 'Dropdown',\n 'FormSubmitFooter',\n 'FormTitle',\n 'Input',\n 'InputNumber',\n 'InputOPT',\n 'InputPassword',\n 'Modal',\n 'ModalHost',\n 'Radio',\n 'RadioGroup',\n 'Segmented',\n 'Select',\n 'Skeleton',\n 'SkeletonAvatar',\n 'SkeletonBlock',\n 'SkeletonButton',\n 'SkeletonParagraph',\n 'SkeletonTags',\n 'SkeletonTitle',\n 'Slider',\n 'SliderWithInput',\n 'Switch',\n 'Tabs',\n 'Tag',\n 'Text',\n 'TextArea',\n 'Tree',\n];\n\nconst DEPRECATED_ANTD_ONLY = [\n 'Anchor',\n 'Badge',\n 'Breadcrumb',\n 'Card',\n 'Carousel',\n 'ColorPicker',\n 'Descriptions',\n 'Divider',\n 'Empty',\n 'FloatButton',\n 'List',\n 'Menu',\n 'Pagination',\n 'Popover',\n 'Progress',\n 'QRCode',\n 'Rate',\n 'Result',\n 'Spin',\n 'Statistic',\n 'Steps',\n 'Table',\n 'Tooltip',\n 'Typography',\n 'Upload',\n];\n\nconst DEPRECATED_FORM_EXPORTS = [\n 'Form',\n 'FormDivider',\n 'FormFlatGroup',\n 'FormFooter',\n 'FormGroup',\n 'FormGroupItemType',\n 'FormInstance',\n 'FormItem',\n 'FormItemProps',\n 'FormModal',\n 'FormModalProps',\n 'FormProps',\n];\n\nconst FORM_MIGRATION_MESSAGE =\n 'Use `Form`, `useForm` and their types from \"@jinmi/ui/base-ui/form\" instead.';\n\nconst DEPRECATED_ANTD_COMPONENT_PATHS = [\n 'antd/es/alert',\n 'antd/es/alert/*',\n 'antd/es/anchor',\n 'antd/es/anchor/*',\n 'antd/es/auto-complete',\n 'antd/es/auto-complete/*',\n 'antd/es/badge',\n 'antd/es/badge/*',\n 'antd/es/breadcrumb',\n 'antd/es/breadcrumb/*',\n 'antd/es/card',\n 'antd/es/card/*',\n 'antd/es/carousel',\n 'antd/es/carousel/*',\n 'antd/es/checkbox',\n 'antd/es/checkbox/*',\n 'antd/es/collapse',\n 'antd/es/collapse/*',\n 'antd/es/color-picker',\n 'antd/es/color-picker/*',\n 'antd/es/date-picker',\n 'antd/es/date-picker/*',\n 'antd/es/descriptions',\n 'antd/es/descriptions/*',\n 'antd/es/divider',\n 'antd/es/divider/*',\n 'antd/es/dropdown',\n 'antd/es/dropdown/*',\n 'antd/es/empty',\n 'antd/es/empty/*',\n 'antd/es/float-button',\n 'antd/es/float-button/*',\n 'antd/es/input',\n 'antd/es/input-number',\n 'antd/es/input-number/*',\n 'antd/es/input/*',\n 'antd/es/list',\n 'antd/es/list/*',\n 'antd/es/message',\n 'antd/es/message/*',\n 'antd/es/notification',\n 'antd/es/notification/*',\n 'antd/es/pagination',\n 'antd/es/pagination/*',\n 'antd/es/popover',\n 'antd/es/popover/*',\n 'antd/es/progress',\n 'antd/es/progress/*',\n 'antd/es/qr-code',\n 'antd/es/qr-code/*',\n 'antd/es/radio',\n 'antd/es/radio/*',\n 'antd/es/rate',\n 'antd/es/rate/*',\n 'antd/es/result',\n 'antd/es/result/*',\n 'antd/es/skeleton',\n 'antd/es/skeleton/*',\n 'antd/es/slider',\n 'antd/es/slider/*',\n 'antd/es/spin',\n 'antd/es/spin/*',\n 'antd/es/statistic',\n 'antd/es/statistic/*',\n 'antd/es/steps',\n 'antd/es/steps/*',\n 'antd/es/switch',\n 'antd/es/switch/*',\n 'antd/es/table',\n 'antd/es/table/*',\n 'antd/es/tooltip',\n 'antd/es/tooltip/*',\n 'antd/es/tree',\n 'antd/es/tree/*',\n 'antd/es/typography',\n 'antd/es/typography/*',\n 'antd/es/upload',\n 'antd/es/upload/*',\n 'antd/lib/alert',\n 'antd/lib/alert/*',\n 'antd/lib/anchor',\n 'antd/lib/anchor/*',\n 'antd/lib/auto-complete',\n 'antd/lib/auto-complete/*',\n 'antd/lib/badge',\n 'antd/lib/badge/*',\n 'antd/lib/breadcrumb',\n 'antd/lib/breadcrumb/*',\n 'antd/lib/card',\n 'antd/lib/card/*',\n 'antd/lib/carousel',\n 'antd/lib/carousel/*',\n 'antd/lib/checkbox',\n 'antd/lib/checkbox/*',\n 'antd/lib/collapse',\n 'antd/lib/collapse/*',\n 'antd/lib/color-picker',\n 'antd/lib/color-picker/*',\n 'antd/lib/date-picker',\n 'antd/lib/date-picker/*',\n 'antd/lib/descriptions',\n 'antd/lib/descriptions/*',\n 'antd/lib/divider',\n 'antd/lib/divider/*',\n 'antd/lib/dropdown',\n 'antd/lib/dropdown/*',\n 'antd/lib/empty',\n 'antd/lib/empty/*',\n 'antd/lib/float-button',\n 'antd/lib/float-button/*',\n 'antd/lib/input',\n 'antd/lib/input-number',\n 'antd/lib/input-number/*',\n 'antd/lib/input/*',\n 'antd/lib/list',\n 'antd/lib/list/*',\n 'antd/lib/message',\n 'antd/lib/message/*',\n 'antd/lib/notification',\n 'antd/lib/notification/*',\n 'antd/lib/pagination',\n 'antd/lib/pagination/*',\n 'antd/lib/popover',\n 'antd/lib/popover/*',\n 'antd/lib/progress',\n 'antd/lib/progress/*',\n 'antd/lib/qr-code',\n 'antd/lib/qr-code/*',\n 'antd/lib/radio',\n 'antd/lib/radio/*',\n 'antd/lib/rate',\n 'antd/lib/rate/*',\n 'antd/lib/result',\n 'antd/lib/result/*',\n 'antd/lib/skeleton',\n 'antd/lib/skeleton/*',\n 'antd/lib/slider',\n 'antd/lib/slider/*',\n 'antd/lib/spin',\n 'antd/lib/spin/*',\n 'antd/lib/statistic',\n 'antd/lib/statistic/*',\n 'antd/lib/steps',\n 'antd/lib/steps/*',\n 'antd/lib/switch',\n 'antd/lib/switch/*',\n 'antd/lib/table',\n 'antd/lib/table/*',\n 'antd/lib/tooltip',\n 'antd/lib/tooltip/*',\n 'antd/lib/tree',\n 'antd/lib/tree/*',\n 'antd/lib/typography',\n 'antd/lib/typography/*',\n 'antd/lib/upload',\n 'antd/lib/upload/*',\n];\n\nexport const restrictedImports = {\n rules: {\n 'no-restricted-imports': [\n 'error',\n {\n paths: [\n {\n importNames: DEPRECATED_UI_COMPONENTS,\n message:\n 'The antd-based wrapper is deprecated. Import from \"@jinmi/ui/base-ui\" instead.',\n name: '@jinmi/ui',\n },\n {\n importNames: DEPRECATED_FORM_EXPORTS,\n message: FORM_MIGRATION_MESSAGE,\n name: '@jinmi/ui',\n },\n {\n importNames: DEPRECATED_FORM_EXPORTS,\n message: FORM_MIGRATION_MESSAGE,\n name: 'antd',\n },\n {\n importNames: ['createStyles'],\n message:\n '`createStyles` is banned in this project. Use `createStaticStyles` from \"antd-style\" instead.',\n name: 'antd-style',\n },\n {\n importNames: [...DEPRECATED_UI_COMPONENTS, ...DEPRECATED_ANTD_ONLY],\n message: 'Direct antd import is deprecated. Import from \"@jinmi/ui/base-ui\" instead.',\n name: 'antd',\n },\n {\n importNames: ['message', 'notification'],\n message: 'antd feedback APIs are deprecated. Use `toast` from \"@jinmi/ui/base-ui\".',\n name: 'antd',\n },\n {\n importNames: ['LoadingOutlined'],\n message: 'Use `Spin` from \"@jinmi/ui/base-ui\" instead of a hand-rolled spinner.',\n name: '@ant-design/icons',\n },\n {\n message: 'Use `Spin variant=\"network\"` from \"@jinmi/ui/base-ui\" instead.',\n name: 'thinking-orbs',\n },\n {\n message: 'ProComponents are deprecated. Use `Table` from \"@jinmi/ui/base-ui\" instead.',\n name: '@ant-design/pro-components',\n },\n ],\n patterns: [\n {\n group: ['antd/es/form', 'antd/es/form/*', 'antd/lib/form', 'antd/lib/form/*'],\n message: FORM_MIGRATION_MESSAGE,\n },\n {\n group: DEPRECATED_ANTD_COMPONENT_PATHS,\n message:\n 'Direct antd component import is deprecated. Import from \"@jinmi/ui/base-ui\" instead.',\n },\n ],\n },\n ],\n },\n};\n\nexport const formSchemaRules = {\n plugins: {\n '@jinmi/ui': { rules: { 'no-inline-form-schema': noInlineFormSchema } },\n },\n rules: {\n '@jinmi/ui/no-inline-form-schema': 'warn',\n },\n};\n\nexport default [restrictedImports, formSchemaRules];\n"],"mappings":";;AAEA,MAAM,2BAA2B;CAC/B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,uBAAuB;CAC3B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,0BAA0B;CAC9B;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAM,yBACJ;AAEF,MAAM,kCAAkC;CACtC;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF;AAEA,MAAa,oBAAoB,EAC/B,OAAO,EACL,yBAAyB,CACvB,SACA;CACE,OAAO;EACL;GACE,aAAa;GACb,SACE;GACF,MAAM;EACR;EACA;GACE,aAAa;GACb,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa;GACb,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa,CAAC,cAAc;GAC5B,SACE;GACF,MAAM;EACR;EACA;GACE,aAAa,CAAC,GAAG,0BAA0B,GAAG,oBAAoB;GAClE,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa,CAAC,WAAW,cAAc;GACvC,SAAS;GACT,MAAM;EACR;EACA;GACE,aAAa,CAAC,iBAAiB;GAC/B,SAAS;GACT,MAAM;EACR;EACA;GACE,SAAS;GACT,MAAM;EACR;EACA;GACE,SAAS;GACT,MAAM;EACR;CACF;CACA,UAAU,CACR;EACE,OAAO;GAAC;GAAgB;GAAkB;GAAiB;EAAiB;EAC5E,SAAS;CACX,GACA;EACE,OAAO;EACP,SACE;CACJ,CACF;AACF,CACF,EACF,EACF;AAEA,MAAa,kBAAkB;CAC7B,SAAS,EACP,aAAa,EAAE,OAAO,EAAE,yBAAyB,mBAAmB,EAAE,EACxE;CACA,OAAO,EACL,mCAAmC,OACrC;AACF;AAEA,IAAA,iBAAe,CAAC,mBAAmB,eAAe"}
|
package/es/index.d.mts
CHANGED
|
@@ -293,9 +293,10 @@ import SortableList from "./SortableList/SortableList.mjs";
|
|
|
293
293
|
import "./SortableList/index.mjs";
|
|
294
294
|
import { brandCssVar } from "./styles/brandCssVar.mjs";
|
|
295
295
|
import { NeutralColors, NeutralColorsObj, PrimaryColors, PrimaryColorsObj, findCustomThemeName, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches } from "./styles/customTheme.mjs";
|
|
296
|
-
import {
|
|
296
|
+
import { inkCssVar } from "./styles/inkCssVar.mjs";
|
|
297
297
|
import { generateCustomStylish } from "./styles/theme/customStylish.mjs";
|
|
298
298
|
import { staticStylish } from "./styles/theme/customStylishStatic.mjs";
|
|
299
|
+
import { brandToken, generateCustomToken, inkToken } from "./styles/theme/customToken.mjs";
|
|
299
300
|
import { generateColorNeutralPalette, generateColorPalette } from "./styles/theme/generateColorPalette.mjs";
|
|
300
301
|
import "./styles/index.mjs";
|
|
301
302
|
import { CLASSNAMES } from "./styles/classNames.mjs";
|
|
@@ -330,4 +331,4 @@ import { LayoutToc } from "./Layout/components/LayoutToc.mjs";
|
|
|
330
331
|
import Layout from "./Layout/index.mjs";
|
|
331
332
|
import { rehypeStreamAnimated } from "@lobehub/streamdown";
|
|
332
333
|
import { ErrorBoundary, ErrorBoundaryProps } from "react-error-boundary";
|
|
333
|
-
export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSize, type BadgeStatus, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, type EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, FileTypeIcon, type FileTypeIconProps, _default as FlexBasic, type FlexBasicProps, _default as Flexbox, type FlexboxProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, Form, FormGroup, type FormGroupItemType, type FormGroupProps, type FormInstance, FormItem, type FormItemProps, FormModal, type FormModalProps, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, Freeze, type FreezeProps, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, HtmlPreview, HtmlPreviewIframe, type HtmlPreviewIframeProps, type HtmlPreviewMode, type HtmlPreviewProps, type HtmlPreviewStreamingMode, I18nProvider, type I18nProviderProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImagePreviewOptions, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider, NeutralColors, NeutralColorsObj, Pagination, type PaginationProps, type PaginationSize, PatchDiff, type PatchDiffProps, type Placement, type PlacementConfig, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, PopoverPortal, type PopoverPortalAtomProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetColorKey, type PresetColorType, type PresetSystemColorKey, type PresetSystemColorType, PreviewGroup, type PreviewGroupProps, PrimaryColors, PrimaryColorsObj, Progress, type ProgressProps, type ProgressSize, type ProgressStatus, type ProgressType, type ProgressVariant, type RawModalComponent, type RawModalComponentProps, type RawModalInstance, type RawModalKeyOptions, type RawModalOptions, Result, type ResultProps, type ResultStatus, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Select, type SelectProps, _default$1 as ShikiLobeTheme, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, type SpanProps, Spin, type SpinProps, type SpinSize, type SpinVariant, type SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, type SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, type Trigger, Typography, type TypographyProps, Upload, type UploadChangeInfo, UploadDragger, type UploadProps, type UseImagePreviewResult, Video, type VideoProps, brandCssVar, brandToken, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, containsScript as htmlPreviewContainsScript, installGlobalFocusRing, isFullHtmlDocument, isHtmlContentClosed, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useAppElement, useCdnFn, useImagePreview, useModalContext, useMotionComponent, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useToast, useTranslation };
|
|
334
|
+
export { A, type AProps, Accordion, AccordionItem, type AccordionItemProps, type AccordionProps, ActionIcon, ActionIconGroup, type ActionIconGroupEvent, type MenuItemType as ActionIconGroupItemType, type ActionIconGroupProps, type ActionIconProps, type ActionIconSize, Alert, type AlertProps, AutoComplete, type AutoCompleteProps, Avatar, AvatarGroup, type AvatarGroupProps, type AvatarProps, Badge, type BadgeProps, type BadgeSize, type BadgeStatus, type BaseMenuItemType, Block, type BlockProps, Burger, type BurgerProps, Button, type ButtonProps, type CDN, CLASSNAMES, Center, type CenterProps, Checkbox, CheckboxGroup, type CheckboxGroupOption, type CheckboxGroupProps, type CheckboxProps, CodeDiff, type CodeDiffProps, CodeEditor, type CodeEditorProps, Collapse, type CollapseItemType, type CollapseProps, type ColorPalettes, type ColorPalettesAlpha, ColorSwatches, type ColorSwatchesProps, type ColorToken, type Config, ConfigProvider, type ContextMenuCheckboxItem, ContextMenuHost, type ContextMenuInterceptor, type ContextMenuItem, ContextMenuTrigger, CopyButton, type CopyButtonProps, DatePicker, type DatePickerProps, type DiffViewMode, type DivProps, DownloadButton, type DownloadButtonProps, DraggablePanel, DraggablePanelBody, type DraggablePanelBodyProps, DraggablePanelContainer, type DraggablePanelContainerProps, DraggablePanelFooter, type DraggablePanelFooterProps, DraggablePanelHeader, type DraggablePanelHeaderProps, type DraggablePanelProps, DraggableSideNav, type DraggableSideNavProps, Drawer, type DrawerProps, Dropdown, type DropdownItem, DropdownMenu, type DropdownMenuCheckboxItem, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, type DropdownMenuFooterProps, DropdownMenuGroup, DropdownMenuGroupLabel, type DropdownMenuGroupLabelProps, DropdownMenuHeader, type DropdownMenuHeaderProps, DropdownMenuItem, DropdownMenuItemContent, type DropdownMenuItemContentProps, DropdownMenuItemExtra, type DropdownMenuItemExtraProps, DropdownMenuItemIcon, type DropdownMenuItemIconProps, DropdownMenuItemLabel, type DropdownMenuItemLabelProps, type DropdownMenuItemProps, type MenuItemType as DropdownMenuItemType, type DropdownMenuPlacement, DropdownMenuPopup, type DropdownMenuPopupProps, DropdownMenuPortal, type DropdownMenuPortalProps, DropdownMenuPositioner, type DropdownMenuPositionerProps, type DropdownMenuProps, DropdownMenuRoot, DropdownMenuScrollViewport, type DropdownMenuScrollViewportProps, DropdownMenuSeparator, type DropdownMenuSeparatorProps, DropdownMenuSubmenuArrow, type DropdownMenuSubmenuArrowProps, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, type DropdownMenuSubmenuTriggerProps, DropdownMenuTrigger, type DropdownMenuTriggerProps, type DropdownProps, EditableText, type EditableTextProps, EditorSlashMenu, type EditorSlashMenuGroup, type EditorSlashMenuItems, type EditorSlashMenuOption, EmojiPicker, type EmojiPickerProps, Empty, type EmptyProps, ErrorBoundary, type ErrorBoundaryProps, FileTypeIcon, type FileTypeIconProps, _default as FlexBasic, type FlexBasicProps, _default as Flexbox, type FlexboxProps, FluentEmoji, type FluentEmojiProps, FontLoader, type FontLoaderProps, Footer, type FooterProps, Form, FormGroup, type FormGroupItemType, type FormGroupProps, type FormInstance, FormItem, type FormItemProps, FormModal, type FormModalProps, type FormProps, FormSubmitFooter, type FormSubmitFooterProps, FormTitle, type FormTitleProps, Freeze, type FreezeProps, type GenericItemType, Grid, type GridProps, GroupAvatar, type GroupAvatarProps, GuideCard, type GuideCardProps, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, type HeaderProps, Highlighter, type HighlighterProps, Hotkey, HotkeyInput, type HotkeyInputProps, type HotkeyProps, HtmlPreview, HtmlPreviewIframe, type HtmlPreviewIframeProps, type HtmlPreviewMode, type HtmlPreviewProps, type HtmlPreviewStreamingMode, I18nProvider, type I18nProviderProps, Icon, type IconProps, IconProvider, type IconSize, Image, type ImagePreviewOptions, type ImageProps, ImageSelect, type ImageSelectItem, type ImageSelectProps, type ImgProps, type ImperativeModalProps, Input, InputNumber, type InputNumberProps, InputOPT, type InputOPTProps, InputPassword, type InputPasswordProps, type InputProps, type ItemType, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, type LayoutFooterProps, LayoutHeader, type LayoutHeaderProps, LayoutMain, type LayoutMainProps, type LayoutProps, LayoutSidebar, LayoutSidebarInner, type LayoutSidebarInnerProps, type LayoutSidebarProps, LayoutToc, type LayoutTocProps, List, ListItem, type ListItemProps, type ListProps, type LobeCustomStylish, type LobeCustomToken, I18nProvider as LobeUIProvider, Markdown, type MarkdownProps, MaskShadow, type MaskShadowProps, MaterialFileTypeIcon, type MaterialFileTypeIconProps, Menu, type MenuCheckboxItemType, type MenuInfo, type MenuItemType, type MenuProps, Mermaid, type MermaidProps, Meta, type MetaProps, Modal, ModalHost, type ModalHostProps, type ModalInstance, type ModalProps, ModalProvider, MotionComponent, type MotionComponentType, MotionProvider, NeutralColors, NeutralColorsObj, Pagination, type PaginationProps, type PaginationSize, PatchDiff, type PatchDiffProps, type Placement, type PlacementConfig, Popover, PopoverArrow, type PopoverArrowAtomProps, PopoverArrowIcon, PopoverBackdrop, type PopoverContextValue, PopoverGroup, type PopoverGroupHandle, type PopoverGroupItem, type PopoverPlacement, PopoverPopup, type PopoverPopupAtomProps, PopoverPortal, type PopoverPortalAtomProps, PopoverPositioner, type PopoverPositionerAtomProps, type PopoverProps, PopoverProvider, PopoverRoot, type PopoverTrigger, PopoverTriggerElement, type PopoverTriggerElementProps, PopoverViewport, type PopoverViewportAtomProps, type PresetColorKey, type PresetColorType, type PresetSystemColorKey, type PresetSystemColorType, PreviewGroup, type PreviewGroupProps, PrimaryColors, PrimaryColorsObj, Progress, type ProgressProps, type ProgressSize, type ProgressStatus, type ProgressType, type ProgressVariant, type RawModalComponent, type RawModalComponentProps, type RawModalInstance, type RawModalKeyOptions, type RawModalOptions, Result, type ResultProps, type ResultStatus, ScrollArea, ScrollAreaContent, type ScrollAreaContentProps, ScrollAreaCorner, type ScrollAreaCornerProps, type ScrollAreaProps, ScrollAreaRoot, type ScrollAreaRootProps, ScrollAreaScrollbar, type ScrollAreaScrollbarProps, ScrollAreaThumb, type ScrollAreaThumbProps, ScrollAreaViewport, type ScrollAreaViewportProps, ScrollShadow, type ScrollShadowProps, SearchBar, type SearchBarProps, SearchResultCards, type SearchResultCardsProps, Segmented, type SegmentedProps, Select, type SelectProps, _default$1 as ShikiLobeTheme, SideNav, type SideNavProps, Skeleton, SkeletonAvatar, type SkeletonAvatarProps, SkeletonBlock, type SkeletonBlockProps, SkeletonButton, type SkeletonButtonProps, SkeletonParagraph, type SkeletonParagraphProps, type SkeletonProps, SkeletonTags, type SkeletonTagsProps, SkeletonTitle, type SkeletonTitleProps, SliderWithInput, type SliderWithInputProps, Snippet, type SnippetProps, SortableList, type SortableListProps, type SpanProps, Spin, type SpinProps, type SpinSize, type SpinVariant, type SvgProps, SyntaxHighlighter, type SyntaxHighlighterProps, SyntaxMermaid, type SyntaxMermaidProps, type SystemColorToken, Tabs, type TabsProps, Tag, type TagProps, Text, TextArea, type TextAreaProps, type TextProps, ThemeProvider, type ThemeProviderProps, ThemeSwitch, type ThemeSwitchProps, type ToastAPI, ToastHost, type ToastHostProps, type ToastInstance, type ToastOptions, type ToastPosition, type ToastPromiseOptions, type ToastProps, type ToastType, Toc, type TocProps, Tooltip, TooltipGroup, type TooltipProps, type Trigger, Typography, type TypographyProps, Upload, type UploadChangeInfo, UploadDragger, type UploadProps, type UseImagePreviewResult, Video, type VideoProps, brandCssVar, brandToken, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, containsScript as htmlPreviewContainsScript, inkCssVar, inkToken, installGlobalFocusRing, isFullHtmlDocument, isHtmlContentClosed, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useAppElement, useCdnFn, useImagePreview, useModalContext, useMotionComponent, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useToast, useTranslation };
|
package/es/index.mjs
CHANGED
|
@@ -8,9 +8,10 @@ import FlexBasic_default from "./Flex/FlexBasic.mjs";
|
|
|
8
8
|
import Center from "./Flex/Center.mjs";
|
|
9
9
|
import { brandCssVar } from "./styles/brandCssVar.mjs";
|
|
10
10
|
import { findCustomThemeName, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches } from "./styles/customTheme.mjs";
|
|
11
|
-
import {
|
|
11
|
+
import { inkCssVar } from "./styles/inkCssVar.mjs";
|
|
12
12
|
import { generateCustomStylish } from "./styles/theme/customStylish.mjs";
|
|
13
13
|
import { staticStylish } from "./styles/theme/customStylishStatic.mjs";
|
|
14
|
+
import { brandToken, generateCustomToken, inkToken } from "./styles/theme/customToken.mjs";
|
|
14
15
|
import { generateColorNeutralPalette, generateColorPalette } from "./styles/theme/generateColorPalette.mjs";
|
|
15
16
|
import Block from "./Block/Block.mjs";
|
|
16
17
|
import { useAppElement } from "./ThemeProvider/AppElementContext.mjs";
|
|
@@ -170,4 +171,4 @@ import ThemeSwitch from "./ThemeSwitch/ThemeSwitch.mjs";
|
|
|
170
171
|
import Toc from "./Toc/Toc.mjs";
|
|
171
172
|
import { rehypeStreamAnimated } from "@lobehub/streamdown";
|
|
172
173
|
import { ErrorBoundary } from "react-error-boundary";
|
|
173
|
-
export { A, Accordion, AccordionItem, ActionIcon, ActionIconGroup, Alert, AutoComplete, Avatar, AvatarGroup, Badge, Block, Burger, Button, CLASSNAMES, Center, Checkbox, CheckboxGroup, CodeDiff, CodeEditor, Collapse, ColorSwatches, ConfigProvider, ContextMenuHost, ContextMenuTrigger, CopyButton, DatePicker, DownloadButton, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelFooter, DraggablePanelHeader, DraggableSideNav, Drawer, Dropdown, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuTrigger, EditableText, EditorSlashMenu, EmojiPicker, Empty, ErrorBoundary, FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji, FontLoader, Footer, Form, FormGroup, FormItem, FormModal, FormSubmitFooter, FormTitle, Freeze, Grid, GroupAvatar, GuideCard, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, Highlighter, Hotkey, HotkeyInput, HtmlPreview, HtmlPreviewIframe, I18nProvider, Icon, IconProvider, Image, ImageSelect, Input, InputNumber, InputOPT, InputPassword, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, LayoutHeader, LayoutMain, LayoutSidebar, LayoutSidebarInner, LayoutToc, List, ListItem, I18nProvider as LobeUIProvider, Markdown, MaskShadow, MaterialFileTypeIcon, Menu, Mermaid, Meta, Modal, ModalHost, ModalProvider, MotionComponent, MotionProvider, Pagination, PatchDiff, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, PreviewGroup, Progress, Result, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, ScrollShadow, SearchBar, SearchResultCards, Segmented, Select, lobe_theme_default as ShikiLobeTheme, SideNav, Skeleton, SkeletonAvatar, SkeletonBlock, SkeletonButton, SkeletonParagraph, SkeletonTags, SkeletonTitle, SliderWithInput, Snippet, SortableList, Spin, SyntaxHighlighter, SyntaxMermaid, Tabs, Tag, Text, TextArea, ThemeProvider, ThemeSwitch, ToastHost, Toc, Tooltip, TooltipGroup, Typography, Upload, UploadDragger, Video, brandCssVar, brandToken, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, containsScript as htmlPreviewContainsScript, installGlobalFocusRing, isFullHtmlDocument, isHtmlContentClosed, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useAppElement, useCdnFn, useImagePreview, useModalContext, useMotionComponent, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useToast, useTranslation };
|
|
174
|
+
export { A, Accordion, AccordionItem, ActionIcon, ActionIconGroup, Alert, AutoComplete, Avatar, AvatarGroup, Badge, Block, Burger, Button, CLASSNAMES, Center, Checkbox, CheckboxGroup, CodeDiff, CodeEditor, Collapse, ColorSwatches, ConfigProvider, ContextMenuHost, ContextMenuTrigger, CopyButton, DatePicker, DownloadButton, DraggablePanel, DraggablePanelBody, DraggablePanelContainer, DraggablePanelFooter, DraggablePanelHeader, DraggableSideNav, Drawer, Dropdown, DropdownMenu, DropdownMenuCheckboxItemIndicator, DropdownMenuCheckboxItemPrimitive, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuGroupLabel, DropdownMenuHeader, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemExtra, DropdownMenuItemIcon, DropdownMenuItemLabel, DropdownMenuPopup, DropdownMenuPortal, DropdownMenuPositioner, DropdownMenuRoot, DropdownMenuScrollViewport, DropdownMenuSeparator, DropdownMenuSubmenuArrow, DropdownMenuSubmenuRoot, DropdownMenuSubmenuTrigger, DropdownMenuTrigger, EditableText, EditorSlashMenu, EmojiPicker, Empty, ErrorBoundary, FileTypeIcon, FlexBasic_default as FlexBasic, FlexBasic_default as Flexbox, FluentEmoji, FontLoader, Footer, Form, FormGroup, FormItem, FormModal, FormSubmitFooter, FormTitle, Freeze, Grid, GroupAvatar, GuideCard, DEFAULT_HEIGHT as HTML_PREVIEW_DEFAULT_HEIGHT, DEFAULT_SANDBOX as HTML_PREVIEW_DEFAULT_SANDBOX, AUTO_HEIGHT_MESSAGE_TYPE as HTML_PREVIEW_RESIZE_MESSAGE, Header, Highlighter, Hotkey, HotkeyInput, HtmlPreview, HtmlPreviewIframe, I18nProvider, Icon, IconProvider, Image, ImageSelect, Input, InputNumber, InputOPT, InputPassword, KeyMapEnum, LOBE_THEME_APP_ID, Layout, LayoutFooter, LayoutHeader, LayoutMain, LayoutSidebar, LayoutSidebarInner, LayoutToc, List, ListItem, I18nProvider as LobeUIProvider, Markdown, MaskShadow, MaterialFileTypeIcon, Menu, Mermaid, Meta, Modal, ModalHost, ModalProvider, MotionComponent, MotionProvider, Pagination, PatchDiff, Popover, PopoverArrow, PopoverArrowIcon, PopoverBackdrop, PopoverGroup, PopoverPopup, PopoverPortal, PopoverPositioner, PopoverProvider, PopoverRoot, PopoverTriggerElement, PopoverViewport, PreviewGroup, Progress, Result, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaRoot, ScrollAreaScrollbar, ScrollAreaThumb, ScrollAreaViewport, ScrollShadow, SearchBar, SearchResultCards, Segmented, Select, lobe_theme_default as ShikiLobeTheme, SideNav, Skeleton, SkeletonAvatar, SkeletonBlock, SkeletonButton, SkeletonParagraph, SkeletonTags, SkeletonTitle, SliderWithInput, Snippet, SortableList, Spin, SyntaxHighlighter, SyntaxMermaid, Tabs, Tag, Text, TextArea, ThemeProvider, ThemeSwitch, ToastHost, Toc, Tooltip, TooltipGroup, Typography, Upload, UploadDragger, Video, brandCssVar, brandToken, closeContextMenu, combineKeys, copyToClipboard, createModal, createRawModal, findCustomThemeName, genCdnUrl, generateColorNeutralPalette, generateColorPalette, highlighterThemes, containsScript as htmlPreviewContainsScript, inkCssVar, inkToken, installGlobalFocusRing, isFullHtmlDocument, isHtmlContentClosed, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, styles as menuSharedStyles, mermaidThemes, neutralColors, neutralColorsSwatches, placementMap, preprocessMarkdownContent, preventDefault, preventDefaultAndStopPropagation, primaryColors, primaryColorsSwatches, rehypeCustomFootnotes, rehypeKatexDir, rehypeStreamAnimated, remarkBr, remarkColor, remarkCustomFootnotes, remarkGfmPlus, remarkVideo, renderDropdownMenuItems, setContextMenuInterceptor, showContextMenu, stopPropagation, toFloatingUIPlacement, toast, updateContextMenuItems, useAppElement, useCdnFn, useImagePreview, useModalContext, useMotionComponent, usePopoverContext, usePopoverGroupHandle, usePopoverPortalContainer, useToast, useTranslation };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"baseline.mjs","names":[],"sources":["../../src/static-css/baseline.ts"],"sourcesContent":["import type { AntdProbeName } from './registry';\
|
|
1
|
+
{"version":3,"file":"baseline.mjs","names":[],"sources":["../../src/static-css/baseline.ts"],"sourcesContent":["import type { AntdProbeName } from './registry';\n\n// The antd components @jinmi/ui internals can render. Kept in sync with the\n// source tree by baseline.test.ts — a failure there means this list must change.\nexport const lobeUiAntdBaseline: AntdProbeName[] = [\n 'alert',\n 'anchor',\n 'app',\n 'auto-complete',\n 'avatar',\n 'button',\n 'collapse',\n 'date-picker',\n 'divider',\n 'drawer',\n 'dropdown',\n 'form',\n 'input',\n 'input-number',\n 'input-textarea',\n 'menu',\n 'modal',\n 'segmented',\n 'select',\n 'slider',\n 'tabs',\n 'tag',\n 'tag-preset',\n 'tag-status',\n];\n"],"mappings":";AAIA,MAAa,qBAAsC;CACjD;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scan.mjs","names":[],"sources":["../../src/static-css/scan.ts"],"sourcesContent":["import { readdirSync, readFileSync, statSync } from 'node:fs';\
|
|
1
|
+
{"version":3,"file":"scan.mjs","names":[],"sources":["../../src/static-css/scan.ts"],"sourcesContent":["import { readdirSync, readFileSync, statSync } from 'node:fs';\nimport path from 'node:path';\n\nexport interface ScanAntdUsageOptions {\n cwd?: string;\n exclude?: RegExp[];\n extensions?: string[];\n roots?: string[];\n}\n\nexport interface AntdUsageScanResult {\n /** PascalCase antd export names found in value imports */\n components: string[];\n importsLobeUi: boolean;\n scannedFiles: number;\n /** a namespace/default antd import was found — usage is not statically enumerable */\n wildcard: boolean;\n}\n\nconst DEFAULT_EXTENSIONS = ['ts', 'tsx', 'js', 'jsx', 'mjs', 'mts', 'cjs', 'cts'];\nconst DEFAULT_EXCLUDE = [/node_modules/, /\\.test\\./, /\\.spec\\./, /\\.d\\.[cm]?ts$/, /__tests__/];\n\n// clause alternatives ({named} / Default / Default, {named} / * as ns) deliberately\n// exclude statement-crossing text so one match never spans two imports\nconst NAMED_IMPORT_RE =\n /import\\s+(type\\s+)?((?:[\\w$]+\\s*,\\s*)?\\{[^}]*\\}|[\\w$]+|\\*\\s+as\\s+[\\w$]+)\\s+from\\s+['\"]antd['\"]/g;\n// type-only deep imports are included too — over-approximation is harmless here\nconst DEEP_IMPORT_RE = /from\\s+['\"]antd\\/(?:es|lib)\\/([\\w-]+)/g;\n// `@lobehub/ui` stays matched: consumers alias it to @jinmi/ui for third-party peers.\nconst LOBE_UI_RE = /from\\s+['\"]@(?:jinmi|lobehub)\\/ui(?:['\"]|\\/)/;\n\nconst kebabToPascal = (name: string) =>\n name\n .split('-')\n .map((part) => part.charAt(0).toUpperCase() + part.slice(1))\n .join('');\n\nconst parseImportClause = (clause: string, components: Set<string>): boolean => {\n const braceStart = clause.indexOf('{');\n\n const bare = (braceStart === -1 ? clause : clause.slice(0, braceStart)).trim();\n const wildcard = bare.length > 0;\n\n if (braceStart === -1) return wildcard;\n\n const inner = clause.slice(braceStart + 1, clause.lastIndexOf('}'));\n for (const rawSpecifier of inner.split(',')) {\n const specifier = rawSpecifier.trim();\n if (!specifier || specifier.startsWith('type ')) continue;\n const name = specifier.split(/\\s+as\\s+/)[0]!.trim();\n if (/^[A-Za-z_$][\\w$]*$/.test(name)) components.add(name);\n }\n\n return wildcard;\n};\n\nconst listFiles = (root: string, extensions: Set<string>, exclude: RegExp[]): string[] => {\n let entries: string[];\n try {\n entries = readdirSync(root, { recursive: true }) as string[];\n } catch {\n return [];\n }\n\n return entries\n .map((entry) => path.join(root, entry))\n .filter((path) => {\n // Exclude patterns are written with `/`; normalize Windows separators first.\n const posixPath = path.replaceAll('\\\\', '/');\n if (exclude.some((pattern) => pattern.test(posixPath))) return false;\n const extension = path.split('.').pop();\n if (!extension || !extensions.has(extension)) return false;\n try {\n return statSync(path).isFile();\n } catch {\n return false;\n }\n });\n};\n\nexport const scanAntdUsage = (options: ScanAntdUsageOptions = {}): AntdUsageScanResult => {\n const {\n cwd = process.cwd(),\n roots = ['src'],\n extensions = DEFAULT_EXTENSIONS,\n exclude = DEFAULT_EXCLUDE,\n } = options;\n\n const components = new Set<string>();\n let importsLobeUi = false;\n let wildcard = false;\n let scannedFiles = 0;\n\n for (const root of roots) {\n for (const file of listFiles(path.resolve(cwd, root), new Set(extensions), exclude)) {\n let source: string;\n try {\n source = readFileSync(file, 'utf8');\n } catch {\n continue;\n }\n scannedFiles += 1;\n\n if (!importsLobeUi && LOBE_UI_RE.test(source)) importsLobeUi = true;\n\n for (const match of source.matchAll(NAMED_IMPORT_RE)) {\n if (match[1]) continue;\n if (parseImportClause(match[2]!, components)) wildcard = true;\n }\n\n for (const match of source.matchAll(DEEP_IMPORT_RE)) {\n components.add(kebabToPascal(match[1]!));\n }\n }\n }\n\n return { components: [...components].sort(), importsLobeUi, scannedFiles, wildcard };\n};\n"],"mappings":";;;AAmBA,MAAM,qBAAqB;CAAC;CAAM;CAAO;CAAM;CAAO;CAAO;CAAO;CAAO;AAAK;AAChF,MAAM,kBAAkB;CAAC;CAAgB;CAAY;CAAY;CAAiB;AAAW;AAI7F,MAAM,kBACJ;AAEF,MAAM,iBAAiB;AAEvB,MAAM,aAAa;AAEnB,MAAM,iBAAiB,SACrB,KACG,MAAM,GAAG,CAAC,CACV,KAAK,SAAS,KAAK,OAAO,CAAC,CAAC,CAAC,YAAY,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC,CAC3D,KAAK,EAAE;AAEZ,MAAM,qBAAqB,QAAgB,eAAqC;CAC9E,MAAM,aAAa,OAAO,QAAQ,GAAG;CAGrC,MAAM,YADQ,eAAe,KAAK,SAAS,OAAO,MAAM,GAAG,UAAU,EAAA,CAAG,KACpD,CAAC,CAAC,SAAS;CAE/B,IAAI,eAAe,IAAI,OAAO;CAE9B,MAAM,QAAQ,OAAO,MAAM,aAAa,GAAG,OAAO,YAAY,GAAG,CAAC;CAClE,KAAK,MAAM,gBAAgB,MAAM,MAAM,GAAG,GAAG;EAC3C,MAAM,YAAY,aAAa,KAAK;EACpC,IAAI,CAAC,aAAa,UAAU,WAAW,OAAO,GAAG;EACjD,MAAM,OAAO,UAAU,MAAM,UAAU,CAAC,CAAC,EAAE,CAAE,KAAK;EAClD,IAAI,qBAAqB,KAAK,IAAI,GAAG,WAAW,IAAI,IAAI;CAC1D;CAEA,OAAO;AACT;AAEA,MAAM,aAAa,MAAc,YAAyB,YAAgC;CACxF,IAAI;CACJ,IAAI;EACF,UAAU,YAAY,MAAM,EAAE,WAAW,KAAK,CAAC;CACjD,QAAQ;EACN,OAAO,CAAC;CACV;CAEA,OAAO,QACJ,KAAK,UAAU,KAAK,KAAK,MAAM,KAAK,CAAC,CAAC,CACtC,QAAQ,SAAS;EAEhB,MAAM,YAAY,KAAK,WAAW,MAAM,GAAG;EAC3C,IAAI,QAAQ,MAAM,YAAY,QAAQ,KAAK,SAAS,CAAC,GAAG,OAAO;EAC/D,MAAM,YAAY,KAAK,MAAM,GAAG,CAAC,CAAC,IAAI;EACtC,IAAI,CAAC,aAAa,CAAC,WAAW,IAAI,SAAS,GAAG,OAAO;EACrD,IAAI;GACF,OAAO,SAAS,IAAI,CAAC,CAAC,OAAO;EAC/B,QAAQ;GACN,OAAO;EACT;CACF,CAAC;AACL;AAEA,MAAa,iBAAiB,UAAgC,CAAC,MAA2B;CACxF,MAAM,EACJ,MAAM,QAAQ,IAAI,GAClB,QAAQ,CAAC,KAAK,GACd,aAAa,oBACb,UAAU,oBACR;CAEJ,MAAM,6BAAa,IAAI,IAAY;CACnC,IAAI,gBAAgB;CACpB,IAAI,WAAW;CACf,IAAI,eAAe;CAEnB,KAAK,MAAM,QAAQ,OACjB,KAAK,MAAM,QAAQ,UAAU,KAAK,QAAQ,KAAK,IAAI,GAAG,IAAI,IAAI,UAAU,GAAG,OAAO,GAAG;EACnF,IAAI;EACJ,IAAI;GACF,SAAS,aAAa,MAAM,MAAM;EACpC,QAAQ;GACN;EACF;EACA,gBAAgB;EAEhB,IAAI,CAAC,iBAAiB,WAAW,KAAK,MAAM,GAAG,gBAAgB;EAE/D,KAAK,MAAM,SAAS,OAAO,SAAS,eAAe,GAAG;GACpD,IAAI,MAAM,IAAI;GACd,IAAI,kBAAkB,MAAM,IAAK,UAAU,GAAG,WAAW;EAC3D;EAEA,KAAK,MAAM,SAAS,OAAO,SAAS,cAAc,GAChD,WAAW,IAAI,cAAc,MAAM,EAAG,CAAC;CAE3C;CAGF,OAAO;EAAE,YAAY,CAAC,GAAG,UAAU,CAAC,CAAC,KAAK;EAAG;EAAe;EAAc;CAAS;AACrF"}
|
package/es/styles/index.d.mts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { brandCssVar } from "./brandCssVar.mjs";
|
|
2
2
|
import { NeutralColors, NeutralColorsObj, PrimaryColors, PrimaryColorsObj, findCustomThemeName, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches } from "./customTheme.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { inkCssVar } from "./inkCssVar.mjs";
|
|
4
4
|
import { generateCustomStylish } from "./theme/customStylish.mjs";
|
|
5
5
|
import { staticStylish } from "./theme/customStylishStatic.mjs";
|
|
6
|
+
import { brandToken, generateCustomToken, inkToken } from "./theme/customToken.mjs";
|
|
6
7
|
import { generateColorNeutralPalette, generateColorPalette } from "./theme/generateColorPalette.mjs";
|
|
7
|
-
export { NeutralColors, NeutralColorsObj, PrimaryColors, PrimaryColorsObj, brandCssVar, brandToken, findCustomThemeName, generateColorNeutralPalette, generateColorPalette, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
|
|
8
|
+
export { NeutralColors, NeutralColorsObj, PrimaryColors, PrimaryColorsObj, brandCssVar, brandToken, findCustomThemeName, generateColorNeutralPalette, generateColorPalette, inkCssVar, inkToken, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
|
package/es/styles/index.mjs
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { brandCssVar } from "./brandCssVar.mjs";
|
|
2
2
|
import { findCustomThemeName, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches } from "./customTheme.mjs";
|
|
3
|
-
import {
|
|
3
|
+
import { inkCssVar } from "./inkCssVar.mjs";
|
|
4
4
|
import { generateCustomStylish } from "./theme/customStylish.mjs";
|
|
5
5
|
import { staticStylish } from "./theme/customStylishStatic.mjs";
|
|
6
|
+
import { brandToken, generateCustomToken, inkToken } from "./theme/customToken.mjs";
|
|
6
7
|
import { generateColorNeutralPalette, generateColorPalette } from "./theme/generateColorPalette.mjs";
|
|
7
|
-
export { brandCssVar, brandToken, findCustomThemeName, generateColorNeutralPalette, generateColorPalette, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
|
|
8
|
+
export { brandCssVar, brandToken, findCustomThemeName, generateColorNeutralPalette, generateColorPalette, inkCssVar, inkToken, generateCustomStylish as lobeCustomStylish, generateCustomToken as lobeCustomToken, staticStylish as lobeStaticStylish, neutralColors, neutralColorsSwatches, primaryColors, primaryColorsSwatches };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
//#region src/styles/inkCssVar.d.ts
|
|
2
|
+
/**
|
|
3
|
+
* CSS variables for the Jinmi ink tokens: the fill of primary buttons, switches,
|
|
4
|
+
* checkboxes, radios, progress and sliders. Emitted by `EssentialStyle`; read
|
|
5
|
+
* through this map inside `createStaticStyles`.
|
|
6
|
+
*/
|
|
7
|
+
declare const inkCssVar: {
|
|
8
|
+
readonly colorInk: "var(--jinmi-color-ink)";
|
|
9
|
+
readonly colorInkActive: "var(--jinmi-color-ink-active)";
|
|
10
|
+
readonly colorInkHover: "var(--jinmi-color-ink-hover)";
|
|
11
|
+
readonly colorInkText: "var(--jinmi-color-ink-text)";
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { inkCssVar };
|
|
15
|
+
//# sourceMappingURL=inkCssVar.d.mts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/styles/inkCssVar.ts
|
|
2
|
+
/**
|
|
3
|
+
* CSS variables for the Jinmi ink tokens: the fill of primary buttons, switches,
|
|
4
|
+
* checkboxes, radios, progress and sliders. Emitted by `EssentialStyle`; read
|
|
5
|
+
* through this map inside `createStaticStyles`.
|
|
6
|
+
*/
|
|
7
|
+
const inkCssVar = {
|
|
8
|
+
colorInk: "var(--jinmi-color-ink)",
|
|
9
|
+
colorInkActive: "var(--jinmi-color-ink-active)",
|
|
10
|
+
colorInkHover: "var(--jinmi-color-ink-hover)",
|
|
11
|
+
colorInkText: "var(--jinmi-color-ink-text)"
|
|
12
|
+
};
|
|
13
|
+
//#endregion
|
|
14
|
+
export { inkCssVar };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=inkCssVar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"inkCssVar.mjs","names":[],"sources":["../../src/styles/inkCssVar.ts"],"sourcesContent":["/**\n * CSS variables for the Jinmi ink tokens: the fill of primary buttons, switches,\n * checkboxes, radios, progress and sliders. Emitted by `EssentialStyle`; read\n * through this map inside `createStaticStyles`.\n */\nexport const inkCssVar = {\n colorInk: 'var(--jinmi-color-ink)',\n colorInkActive: 'var(--jinmi-color-ink-active)',\n colorInkHover: 'var(--jinmi-color-ink-hover)',\n colorInkText: 'var(--jinmi-color-ink-text)',\n} as const;\n"],"mappings":";;;;;;AAKA,MAAa,YAAY;CACvB,UAAU;CACV,gBAAgB;CAChB,eAAe;CACf,cAAc;AAChB"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { inkToken } from "./customToken.mjs";
|
|
1
2
|
import { darkAlgorithm } from "./algorithms/darkAlgorithm.mjs";
|
|
2
3
|
import { lightAlgorithm } from "./algorithms/lightAlgorithm.mjs";
|
|
3
4
|
import { baseToken } from "./token/base.mjs";
|
|
@@ -11,10 +12,21 @@ import { shadowToken } from "./token/shadow.mjs";
|
|
|
11
12
|
*/
|
|
12
13
|
const createLobeAntdTheme = ({ neutralColor, appearance, primaryColor }) => {
|
|
13
14
|
const isDark = appearance === "dark";
|
|
15
|
+
const ink = inkToken[isDark ? "dark" : "light"];
|
|
16
|
+
const inkFill = {
|
|
17
|
+
colorPrimary: ink.colorInk,
|
|
18
|
+
colorPrimaryActive: ink.colorInkActive,
|
|
19
|
+
colorPrimaryHover: ink.colorInkHover
|
|
20
|
+
};
|
|
14
21
|
return {
|
|
15
22
|
algorithm: isDark ? darkAlgorithm : lightAlgorithm,
|
|
16
23
|
components: {
|
|
17
|
-
Button: {
|
|
24
|
+
Button: {
|
|
25
|
+
...inkFill,
|
|
26
|
+
contentFontSizeSM: 12,
|
|
27
|
+
primaryColor: ink.colorInkText
|
|
28
|
+
},
|
|
29
|
+
Checkbox: inkFill,
|
|
18
30
|
DatePicker: {
|
|
19
31
|
activeBorderColor: baseToken.colorBorder,
|
|
20
32
|
hoverBorderColor: baseToken.colorBorder
|
|
@@ -31,10 +43,14 @@ const createLobeAntdTheme = ({ neutralColor, appearance, primaryColor }) => {
|
|
|
31
43
|
activeBorderColor: baseToken.colorBorder,
|
|
32
44
|
hoverBorderColor: baseToken.colorBorder
|
|
33
45
|
},
|
|
46
|
+
Progress: { defaultColor: ink.colorInk },
|
|
47
|
+
Radio: inkFill,
|
|
34
48
|
Select: {
|
|
35
49
|
activeBorderColor: baseToken.colorBorder,
|
|
36
50
|
hoverBorderColor: baseToken.colorBorder
|
|
37
|
-
}
|
|
51
|
+
},
|
|
52
|
+
Slider: inkFill,
|
|
53
|
+
Switch: inkFill
|
|
38
54
|
},
|
|
39
55
|
token: {
|
|
40
56
|
...baseToken,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"antdTheme.mjs","names":[],"sources":["../../../src/styles/theme/antdTheme.ts"],"sourcesContent":["import type { ThemeConfig } from 'antd';\
|
|
1
|
+
{"version":3,"file":"antdTheme.mjs","names":[],"sources":["../../../src/styles/theme/antdTheme.ts"],"sourcesContent":["import type { ThemeConfig } from 'antd';\nimport type { ThemeAppearance } from 'antd-style';\n\nimport type { NeutralColors, PrimaryColors } from '../customTheme';\nimport { darkAlgorithm } from './algorithms/darkAlgorithm';\nimport { lightAlgorithm } from './algorithms/lightAlgorithm';\nimport { inkToken } from './customToken';\nimport { baseToken } from './token/base';\nimport { shadowToken } from './token/shadow';\n\nexport interface LobeAntdThemeParams {\n appearance: ThemeAppearance;\n neutralColor?: NeutralColors;\n primaryColor?: PrimaryColors;\n}\n\n/**\n * create A LobeHub Style Antd Theme Object\n * @param neutralColor\n * @param appearance\n * @param primaryColor\n */\nexport const createLobeAntdTheme = ({\n neutralColor,\n appearance,\n primaryColor,\n}: LobeAntdThemeParams): ThemeConfig => {\n const isDark = appearance === 'dark';\n const ink = inkToken[isDark ? 'dark' : 'light'];\n // colorPrimary is the accent (board 06); filled controls stay ink.\n const inkFill = {\n colorPrimary: ink.colorInk,\n colorPrimaryActive: ink.colorInkActive,\n colorPrimaryHover: ink.colorInkHover,\n };\n\n return {\n algorithm: isDark ? darkAlgorithm : lightAlgorithm,\n components: {\n Button: {\n ...inkFill,\n contentFontSizeSM: 12,\n primaryColor: ink.colorInkText,\n },\n Checkbox: inkFill,\n DatePicker: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Input: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n InputNumber: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Mentions: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Progress: { defaultColor: ink.colorInk },\n Radio: inkFill,\n Select: {\n activeBorderColor: baseToken.colorBorder,\n hoverBorderColor: baseToken.colorBorder,\n },\n Slider: inkFill,\n Switch: inkFill,\n },\n token: {\n ...baseToken,\n ...shadowToken[isDark ? 'dark' : 'light'],\n // @ts-ignore\n neutralColor,\n primaryColor,\n },\n };\n};\n"],"mappings":";;;;;;;;;;;;AAsBA,MAAa,uBAAuB,EAClC,cACA,YACA,mBACsC;CACtC,MAAM,SAAS,eAAe;CAC9B,MAAM,MAAM,SAAS,SAAS,SAAS;CAEvC,MAAM,UAAU;EACd,cAAc,IAAI;EAClB,oBAAoB,IAAI;EACxB,mBAAmB,IAAI;CACzB;CAEA,OAAO;EACL,WAAW,SAAS,gBAAgB;EACpC,YAAY;GACV,QAAQ;IACN,GAAG;IACH,mBAAmB;IACnB,cAAc,IAAI;GACpB;GACA,UAAU;GACV,YAAY;IACV,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;GAC9B;GACA,OAAO;IACL,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;GAC9B;GACA,aAAa;IACX,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;GAC9B;GACA,UAAU;IACR,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;GAC9B;GACA,UAAU,EAAE,cAAc,IAAI,SAAS;GACvC,OAAO;GACP,QAAQ;IACN,mBAAmB,UAAU;IAC7B,kBAAkB,UAAU;GAC9B;GACA,QAAQ;GACR,QAAQ;EACV;EACA,OAAO;GACL,GAAG;GACH,GAAG,YAAY,SAAS,SAAS;GAEjC;GACA;EACF;CACF;AACF"}
|
|
@@ -21,7 +21,26 @@ declare const brandToken: {
|
|
|
21
21
|
readonly colorBrandText: "#06759a";
|
|
22
22
|
};
|
|
23
23
|
};
|
|
24
|
+
/**
|
|
25
|
+
* Jinmi ink: the fill of primary buttons, switches, checkboxes, radios, progress
|
|
26
|
+
* and sliders (board 06: colorText is "chữ chính, nút chính"). colorPrimary is
|
|
27
|
+
* the accent, so filled controls read ink from here instead.
|
|
28
|
+
*/
|
|
29
|
+
declare const inkToken: {
|
|
30
|
+
readonly dark: {
|
|
31
|
+
readonly colorInk: "#f3f5f7";
|
|
32
|
+
readonly colorInkActive: "#d5dadf";
|
|
33
|
+
readonly colorInkHover: "#ffffff";
|
|
34
|
+
readonly colorInkText: "#0b0d10";
|
|
35
|
+
};
|
|
36
|
+
readonly light: {
|
|
37
|
+
readonly colorInk: "#0b0f12";
|
|
38
|
+
readonly colorInkActive: "#000000";
|
|
39
|
+
readonly colorInkHover: "#2a3138";
|
|
40
|
+
readonly colorInkText: "#ffffff";
|
|
41
|
+
};
|
|
42
|
+
};
|
|
24
43
|
declare const generateCustomToken: GetCustomToken<LobeCustomToken>;
|
|
25
44
|
//#endregion
|
|
26
|
-
export { brandToken, generateCustomToken };
|
|
45
|
+
export { brandToken, generateCustomToken, inkToken };
|
|
27
46
|
//# sourceMappingURL=customToken.d.mts.map
|
|
@@ -73,14 +73,34 @@ const brandToken = {
|
|
|
73
73
|
colorBrandText: "#06759a"
|
|
74
74
|
}
|
|
75
75
|
};
|
|
76
|
+
/**
|
|
77
|
+
* Jinmi ink: the fill of primary buttons, switches, checkboxes, radios, progress
|
|
78
|
+
* and sliders (board 06: colorText is "chữ chính, nút chính"). colorPrimary is
|
|
79
|
+
* the accent, so filled controls read ink from here instead.
|
|
80
|
+
*/
|
|
81
|
+
const inkToken = {
|
|
82
|
+
dark: {
|
|
83
|
+
colorInk: "#f3f5f7",
|
|
84
|
+
colorInkActive: "#d5dadf",
|
|
85
|
+
colorInkHover: "#ffffff",
|
|
86
|
+
colorInkText: "#0b0d10"
|
|
87
|
+
},
|
|
88
|
+
light: {
|
|
89
|
+
colorInk: "#0b0f12",
|
|
90
|
+
colorInkActive: "#000000",
|
|
91
|
+
colorInkHover: "#2a3138",
|
|
92
|
+
colorInkText: "#ffffff"
|
|
93
|
+
}
|
|
94
|
+
};
|
|
76
95
|
const generateCustomToken = ({ isDarkMode, token }) => {
|
|
77
96
|
return {
|
|
78
97
|
...generateCustomColorToken(isDarkMode),
|
|
79
98
|
...brandToken[isDarkMode ? "dark" : "light"],
|
|
99
|
+
...inkToken[isDarkMode ? "dark" : "light"],
|
|
80
100
|
colorBgContainerSecondary: mix(.5, token.colorBgLayout, token.colorBgContainer)
|
|
81
101
|
};
|
|
82
102
|
};
|
|
83
103
|
//#endregion
|
|
84
|
-
export { brandToken, generateCustomColorToken, generateCustomToken };
|
|
104
|
+
export { brandToken, generateCustomColorToken, generateCustomToken, inkToken };
|
|
85
105
|
|
|
86
106
|
//# sourceMappingURL=customToken.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"customToken.mjs","names":[],"sources":["../../../src/styles/theme/customToken.ts"],"sourcesContent":["import { type AliasToken } from 'antd/es/theme/interface';\
|
|
1
|
+
{"version":3,"file":"customToken.mjs","names":[],"sources":["../../../src/styles/theme/customToken.ts"],"sourcesContent":["import { type AliasToken } from 'antd/es/theme/interface';\nimport { type GetCustomToken } from 'antd-style';\nimport { camelCase } from 'es-toolkit/compat';\nimport { mix } from 'polished';\n\nimport { colorScales } from '@/color/colors';\nimport { type ColorScaleItem } from '@/color/types';\nimport { type LobeCustomToken } from '@/types/customToken';\n\nconst generateColorPalette = ({\n name,\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n name: string;\n scale: ColorScaleItem;\n}) => {\n const isDarkMode = appearance === 'dark';\n return {\n [`${name}Fill`]: scale[`${appearance}A`][isDarkMode ? 3 : 4],\n [`${name}FillSecondary`]: scale[`${appearance}A`][isDarkMode ? 2 : 3],\n [`${name}FillTertiary`]: scale[`${appearance}A`][isDarkMode ? 1 : 2],\n [`${name}FillQuaternary`]: scale[`${appearance}A`][isDarkMode ? 0 : 1],\n [`${name}Bg`]: scale[`${appearance}A`][1],\n [`${name}BgHover`]: scale[`${appearance}A`][2],\n [`${name}Border`]: scale[appearance][4],\n [`${name}BorderSecondary`]: scale[appearance][3],\n [`${name}BorderHover`]: scale[appearance][isDarkMode ? 5 : 3],\n [`${name}Hover`]: scale[appearance][isDarkMode ? 10 : 8],\n [`${name}`]: scale[appearance][9],\n [`${name}Active`]: scale[appearance][isDarkMode ? 7 : 10],\n [`${name}TextHover`]: scale[`${appearance}A`][isDarkMode ? 10 : 8],\n [`${name}Text`]: scale[`${appearance}A`][9],\n [`${name}TextActive`]: scale[`${appearance}A`][isDarkMode ? 7 : 10],\n };\n};\n\nconst generateCustomColorPalette = ({\n name,\n scale,\n appearance,\n}: {\n appearance: 'light' | 'dark';\n name: string;\n scale: ColorScaleItem;\n}): Partial<AliasToken> => {\n const colorStepPalette: { [key: string]: string } = {};\n\n for (const [index, color] of scale[appearance].entries()) {\n if (index === 0 || index === 12) continue;\n\n colorStepPalette[`${name}${index}`] = color;\n }\n for (const [index, color] of scale[`${appearance}A`].entries()) {\n if (index === 0 || index === 12) continue;\n\n colorStepPalette[`${name}${index}A`] = color;\n }\n\n return {\n ...colorStepPalette,\n ...generateColorPalette({ appearance, name, scale }),\n };\n};\n\nexport const generateCustomColorToken = (isDarkMode: boolean) => {\n let colorCustomToken: any = {};\n\n for (const [type, scale] of Object.entries(colorScales)) {\n colorCustomToken = {\n ...colorCustomToken,\n ...generateCustomColorPalette({\n appearance: isDarkMode ? 'dark' : 'light',\n name: camelCase(type),\n scale,\n }),\n };\n }\n\n return colorCustomToken;\n};\n\n/**\n * Jinmi brand accent (Sky Cyan). Kept to a few moments: the home aura, the\n * \"running\" dot, focus rings, and readable accent text/links.\n */\nexport const brandToken = {\n dark: {\n colorBrand: '#2ccff2',\n colorBrandBg: 'rgba(44, 207, 242, 0.12)',\n colorBrandBorder: 'rgba(92, 214, 242, 0.5)',\n colorBrandGlow: 'rgba(44, 207, 242, 0.6)',\n colorBrandText: '#5cd6f2',\n },\n light: {\n colorBrand: '#0bc2eb',\n colorBrandBg: '#e6f9fd',\n colorBrandBorder: '#9be3f3',\n colorBrandGlow: 'rgba(11, 194, 235, 0.6)',\n colorBrandText: '#06759a',\n },\n} as const;\n\n/**\n * Jinmi ink: the fill of primary buttons, switches, checkboxes, radios, progress\n * and sliders (board 06: colorText is \"chữ chính, nút chính\"). colorPrimary is\n * the accent, so filled controls read ink from here instead.\n */\nexport const inkToken = {\n dark: {\n colorInk: '#f3f5f7',\n colorInkActive: '#d5dadf',\n colorInkHover: '#ffffff',\n colorInkText: '#0b0d10',\n },\n light: {\n colorInk: '#0b0f12',\n colorInkActive: '#000000',\n colorInkHover: '#2a3138',\n colorInkText: '#ffffff',\n },\n} as const;\n\nexport const generateCustomToken: GetCustomToken<LobeCustomToken> = ({ isDarkMode, token }) => {\n return {\n ...generateCustomColorToken(isDarkMode),\n ...brandToken[isDarkMode ? 'dark' : 'light'],\n ...inkToken[isDarkMode ? 'dark' : 'light'],\n colorBgContainerSecondary: mix(0.5, token.colorBgLayout, token.colorBgContainer),\n };\n};\n"],"mappings":";;;;AASA,MAAM,wBAAwB,EAC5B,MACA,OACA,iBAKI;CACJ,MAAM,aAAa,eAAe;CAClC,OAAO;GACJ,GAAG,KAAK,QAAQ,MAAM,GAAG,WAAW,GAAG,CAAC,aAAa,IAAI;GACzD,GAAG,KAAK,iBAAiB,MAAM,GAAG,WAAW,GAAG,CAAC,aAAa,IAAI;GAClE,GAAG,KAAK,gBAAgB,MAAM,GAAG,WAAW,GAAG,CAAC,aAAa,IAAI;GACjE,GAAG,KAAK,kBAAkB,MAAM,GAAG,WAAW,GAAG,CAAC,aAAa,IAAI;GACnE,GAAG,KAAK,MAAM,MAAM,GAAG,WAAW,GAAG,CAAC;GACtC,GAAG,KAAK,WAAW,MAAM,GAAG,WAAW,GAAG,CAAC;GAC3C,GAAG,KAAK,UAAU,MAAM,WAAW,CAAC;GACpC,GAAG,KAAK,mBAAmB,MAAM,WAAW,CAAC;GAC7C,GAAG,KAAK,eAAe,MAAM,WAAW,CAAC,aAAa,IAAI;GAC1D,GAAG,KAAK,SAAS,MAAM,WAAW,CAAC,aAAa,KAAK;GACrD,GAAG,SAAS,MAAM,WAAW,CAAC;GAC9B,GAAG,KAAK,UAAU,MAAM,WAAW,CAAC,aAAa,IAAI;GACrD,GAAG,KAAK,aAAa,MAAM,GAAG,WAAW,GAAG,CAAC,aAAa,KAAK;GAC/D,GAAG,KAAK,QAAQ,MAAM,GAAG,WAAW,GAAG,CAAC;GACxC,GAAG,KAAK,cAAc,MAAM,GAAG,WAAW,GAAG,CAAC,aAAa,IAAI;CAClE;AACF;AAEA,MAAM,8BAA8B,EAClC,MACA,OACA,iBAKyB;CACzB,MAAM,mBAA8C,CAAC;CAErD,KAAK,MAAM,CAAC,OAAO,UAAU,MAAM,WAAW,CAAC,QAAQ,GAAG;EACxD,IAAI,UAAU,KAAK,UAAU,IAAI;EAEjC,iBAAiB,GAAG,OAAO,WAAW;CACxC;CACA,KAAK,MAAM,CAAC,OAAO,UAAU,MAAM,GAAG,WAAW,GAAG,CAAC,QAAQ,GAAG;EAC9D,IAAI,UAAU,KAAK,UAAU,IAAI;EAEjC,iBAAiB,GAAG,OAAO,MAAM,MAAM;CACzC;CAEA,OAAO;EACL,GAAG;EACH,GAAG,qBAAqB;GAAE;GAAY;GAAM;EAAM,CAAC;CACrD;AACF;AAEA,MAAa,4BAA4B,eAAwB;CAC/D,IAAI,mBAAwB,CAAC;CAE7B,KAAK,MAAM,CAAC,MAAM,UAAU,OAAO,QAAQ,WAAW,GACpD,mBAAmB;EACjB,GAAG;EACH,GAAG,2BAA2B;GAC5B,YAAY,aAAa,SAAS;GAClC,MAAM,UAAU,IAAI;GACpB;EACF,CAAC;CACH;CAGF,OAAO;AACT;;;;;AAMA,MAAa,aAAa;CACxB,MAAM;EACJ,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,gBAAgB;EAChB,gBAAgB;CAClB;CACA,OAAO;EACL,YAAY;EACZ,cAAc;EACd,kBAAkB;EAClB,gBAAgB;EAChB,gBAAgB;CAClB;AACF;;;;;;AAOA,MAAa,WAAW;CACtB,MAAM;EACJ,UAAU;EACV,gBAAgB;EAChB,eAAe;EACf,cAAc;CAChB;CACA,OAAO;EACL,UAAU;EACV,gBAAgB;EAChB,eAAe;EACf,cAAc;CAChB;AACF;AAEA,MAAa,uBAAwD,EAAE,YAAY,YAAY;CAC7F,OAAO;EACL,GAAG,yBAAyB,UAAU;EACtC,GAAG,WAAW,aAAa,SAAS;EACpC,GAAG,SAAS,aAAa,SAAS;EAClC,2BAA2B,IAAI,IAAK,MAAM,eAAe,MAAM,gBAAgB;CACjF;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dark.mjs","names":["blue"],"sources":["../../../../src/styles/theme/token/dark.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\
|
|
1
|
+
{"version":3,"file":"dark.mjs","names":["blue"],"sources":["../../../../src/styles/theme/token/dark.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\nimport { blue, gold, gray, lime, primary, red } from '@/color/colors';\n\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nconst primaryToken = generateColorPalette({\n appearance: 'dark',\n scale: primary,\n type: 'Primary',\n});\n\nconst neutralToken = generateColorNeutralPalette({\n appearance: 'dark',\n scale: gray,\n});\n\nconst successToken = generateColorPalette({\n appearance: 'dark',\n scale: lime,\n type: 'Success',\n});\n\nconst warningToken = generateColorPalette({\n appearance: 'dark',\n scale: gold,\n type: 'Warning',\n});\n\nconst errorToken = generateColorPalette({\n appearance: 'dark',\n scale: red,\n type: 'Error',\n});\n\nconst infoToken = generateColorPalette({\n appearance: 'dark',\n scale: blue,\n type: 'Info',\n});\n\nconst darkBaseToken: Partial<AliasToken> = {\n ...primaryToken,\n ...neutralToken,\n ...successToken,\n ...warningToken,\n ...errorToken,\n ...infoToken,\n\n colorLink: '#5cd6f2',\n colorLinkActive: '#3fc9e8',\n\n colorLinkHover: '#8be4f6',\n colorTextLightSolid: neutralToken.colorBgLayout,\n};\n\nexport default darkBaseToken;\n"],"mappings":";;;;;;;;AAMA,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,eAAe,4BAA4B;CAC/C,YAAY;CACZ,OAAO;AACT,CAAC;AAED,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,aAAa,qBAAqB;CACtC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,YAAY,qBAAqB;CACrC,YAAY;CACZ,OAAOA;CACP,MAAM;AACR,CAAC;AAED,MAAM,gBAAqC;CACzC,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CAEH,WAAW;CACX,iBAAiB;CAEjB,gBAAgB;CAChB,qBAAqB,aAAa;AACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light.mjs","names":[],"sources":["../../../../src/styles/theme/token/light.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\
|
|
1
|
+
{"version":3,"file":"light.mjs","names":[],"sources":["../../../../src/styles/theme/token/light.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\nimport { geekblue, gold, gray, green, primary, volcano } from '@/color/colors';\n\nimport { generateColorNeutralPalette, generateColorPalette } from '../generateColorPalette';\n\nconst primaryToken = generateColorPalette({\n appearance: 'light',\n scale: primary,\n type: 'Primary',\n});\n\nconst neutralToken = generateColorNeutralPalette({\n appearance: 'light',\n scale: gray,\n});\n\nconst successToken = generateColorPalette({\n appearance: 'light',\n scale: green,\n type: 'Success',\n});\n\nconst warningToken = generateColorPalette({\n appearance: 'light',\n scale: gold,\n type: 'Warning',\n});\n\nconst errorToken = generateColorPalette({\n appearance: 'light',\n scale: volcano,\n type: 'Error',\n});\n\nconst infoToken = generateColorPalette({\n appearance: 'light',\n scale: geekblue,\n type: 'Info',\n});\n\nconst lightBaseToken: Partial<AliasToken> = {\n ...primaryToken,\n ...neutralToken,\n ...successToken,\n ...warningToken,\n ...errorToken,\n ...infoToken,\n\n colorLink: '#06759a',\n colorLinkActive: '#044a62',\n\n colorLinkHover: '#055a77',\n colorTextLightSolid: neutralToken.colorBgLayout,\n};\n\nexport default lightBaseToken;\n"],"mappings":";;;;;;;;AAMA,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,eAAe,4BAA4B;CAC/C,YAAY;CACZ,OAAO;AACT,CAAC;AAED,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,eAAe,qBAAqB;CACxC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,aAAa,qBAAqB;CACtC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,YAAY,qBAAqB;CACrC,YAAY;CACZ,OAAO;CACP,MAAM;AACR,CAAC;AAED,MAAM,iBAAsC;CAC1C,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CAEH,WAAW;CACX,iBAAiB;CAEjB,gBAAgB;CAChB,qBAAqB,aAAa;AACpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadow.mjs","names":[],"sources":["../../../../src/styles/theme/token/shadow.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\n/* antd's formatToken recomputes boxShadow* after the mapping algorithm runs, so these only take\n effect when passed through ThemeConfig.token, never from light/dark base tokens. */\nexport const shadowToken: Record<'light' | 'dark', Partial<AliasToken>> = {\n dark: {\n // Modals and dialogs.\n boxShadow: '0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 70px -28px rgba(0, 0, 0, 0.8)',\n // Popovers, menus, dropdowns.\n boxShadowSecondary: '0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 40px -18px rgba(0, 0, 0, 0.7)',\n // Raised cards and the composer.\n boxShadowTertiary: '0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -18px rgba(0, 0, 0, 0.6)',\n },\n light: {\n boxShadow: '0 1px 2px rgba(11, 15, 18, 0.04), 0 30px 70px -28px rgba(11, 15, 18, 0.45)',\n boxShadowSecondary
|
|
1
|
+
{"version":3,"file":"shadow.mjs","names":[],"sources":["../../../../src/styles/theme/token/shadow.ts"],"sourcesContent":["import type { AliasToken } from 'antd/es/theme/interface';\n\n/* antd's formatToken recomputes boxShadow* after the mapping algorithm runs, so these only take\n effect when passed through ThemeConfig.token, never from light/dark base tokens. */\nexport const shadowToken: Record<'light' | 'dark', Partial<AliasToken>> = {\n dark: {\n // Modals and dialogs.\n boxShadow: '0 0 0 1px rgba(255, 255, 255, 0.06), 0 30px 70px -28px rgba(0, 0, 0, 0.8)',\n // Popovers, menus, dropdowns.\n boxShadowSecondary: '0 0 0 1px rgba(255, 255, 255, 0.06), 0 16px 40px -18px rgba(0, 0, 0, 0.7)',\n // Raised cards and the composer.\n boxShadowTertiary: '0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -18px rgba(0, 0, 0, 0.6)',\n },\n light: {\n boxShadow: '0 1px 2px rgba(11, 15, 18, 0.04), 0 30px 70px -28px rgba(11, 15, 18, 0.45)',\n boxShadowSecondary:\n '0 1px 2px rgba(11, 15, 18, 0.04), 0 16px 40px -18px rgba(11, 15, 18, 0.35)',\n boxShadowTertiary:\n '0 1px 2px rgba(11, 15, 18, 0.04), 0 16px 40px -18px rgba(6, 117, 154, 0.35)',\n },\n};\n"],"mappings":";AAIA,MAAa,cAA6D;CACxE,MAAM;EAEJ,WAAW;EAEX,oBAAoB;EAEpB,mBAAmB;CACrB;CACA,OAAO;EACL,WAAW;EACX,oBACE;EACF,mBACE;CACJ;AACF"}
|
|
@@ -23,6 +23,12 @@ interface LobeCustomToken extends ColorPalettes, ColorPalettesAlpha, ColorToken,
|
|
|
23
23
|
colorBrandGlow: string;
|
|
24
24
|
/** Readable brand text and links (meets 4.5:1 on colorBgContainer). */
|
|
25
25
|
colorBrandText: string;
|
|
26
|
+
/** Ink fill of primary buttons, switches, checkboxes, radios, progress, sliders. */
|
|
27
|
+
colorInk: string;
|
|
28
|
+
colorInkActive: string;
|
|
29
|
+
colorInkHover: string;
|
|
30
|
+
/** Text and icons on an ink fill. */
|
|
31
|
+
colorInkText: string;
|
|
26
32
|
}
|
|
27
33
|
//#endregion
|
|
28
34
|
export { ColorPalettes, ColorPalettesAlpha, ColorToken, LobeCustomToken, PresetColorKey, PresetColorType, PresetSystemColorKey, PresetSystemColorType, SystemColorToken };
|