@superad/ui 0.1.1
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/LICENSE +21 -0
- package/README.md +42 -0
- package/es/Button/Button.d.mts +7 -0
- package/es/Button/Button.mjs +29 -0
- package/es/Button/Button.mjs.map +1 -0
- package/es/Button/index.d.mts +3 -0
- package/es/Button/index.d.ts +1 -0
- package/es/Button/index.js +1 -0
- package/es/Button/index.mjs +2 -0
- package/es/Button/style.mjs +33 -0
- package/es/Button/style.mjs.map +1 -0
- package/es/Button/type.d.mts +21 -0
- package/es/ConfigProvider/index.d.mts +9 -0
- package/es/ConfigProvider/index.d.ts +1 -0
- package/es/ConfigProvider/index.js +1 -0
- package/es/ConfigProvider/index.mjs +82 -0
- package/es/ConfigProvider/index.mjs.map +1 -0
- package/es/ConfigProvider/type.d.mts +24 -0
- package/es/DraggablePanel/DraggablePanel.d.mts +6 -0
- package/es/DraggablePanel/DraggablePanel.mjs +104 -0
- package/es/DraggablePanel/DraggablePanel.mjs.map +1 -0
- package/es/DraggablePanel/index.d.mts +3 -0
- package/es/DraggablePanel/index.d.ts +1 -0
- package/es/DraggablePanel/index.js +1 -0
- package/es/DraggablePanel/index.mjs +3 -0
- package/es/DraggablePanel/style.mjs +86 -0
- package/es/DraggablePanel/style.mjs.map +1 -0
- package/es/DraggablePanel/type.d.mts +27 -0
- package/es/Flex/Center.d.mts +7 -0
- package/es/Flex/Center.mjs +14 -0
- package/es/Flex/Center.mjs.map +1 -0
- package/es/Flex/FlexBasic.d.mts +6 -0
- package/es/Flex/FlexBasic.mjs +46 -0
- package/es/Flex/FlexBasic.mjs.map +1 -0
- package/es/Flex/Flexbox.d.mts +2 -0
- package/es/Flex/index.d.mts +5 -0
- package/es/Flex/index.d.ts +1 -0
- package/es/Flex/index.js +1 -0
- package/es/Flex/index.mjs +3 -0
- package/es/Flex/type.d.mts +35 -0
- package/es/Flex/utils.mjs +24 -0
- package/es/Flex/utils.mjs.map +1 -0
- package/es/FontLoader/index.d.mts +9 -0
- package/es/FontLoader/index.d.ts +1 -0
- package/es/FontLoader/index.js +1 -0
- package/es/FontLoader/index.mjs +23 -0
- package/es/FontLoader/index.mjs.map +1 -0
- package/es/GlobalFocusRing/index.d.mts +6 -0
- package/es/GlobalFocusRing/index.d.ts +1 -0
- package/es/GlobalFocusRing/index.js +1 -0
- package/es/GlobalFocusRing/index.mjs +204 -0
- package/es/GlobalFocusRing/index.mjs.map +1 -0
- package/es/GlobalFocusRing/style.mjs +35 -0
- package/es/GlobalFocusRing/style.mjs.map +1 -0
- package/es/Provider.d.mts +5 -0
- package/es/Table/canvas/canvasPalette.mjs +11 -0
- package/es/Table/canvas/canvasPalette.mjs.map +1 -0
- package/es/Table/canvas/chipPainters.mjs +408 -0
- package/es/Table/canvas/chipPainters.mjs.map +1 -0
- package/es/Table/canvas/controlPainters.mjs +193 -0
- package/es/Table/canvas/controlPainters.mjs.map +1 -0
- package/es/Table/canvas/groupTitle.mjs +181 -0
- package/es/Table/canvas/groupTitle.mjs.map +1 -0
- package/es/Table/canvas/paintUtils.mjs +70 -0
- package/es/Table/canvas/paintUtils.mjs.map +1 -0
- package/es/Table/canvas/rowSeries.mjs +130 -0
- package/es/Table/canvas/rowSeries.mjs.map +1 -0
- package/es/Table/canvas/textPainters.mjs +97 -0
- package/es/Table/canvas/textPainters.mjs.map +1 -0
- package/es/Table/canvas/theme.d.mts +14 -0
- package/es/Table/canvas/theme.mjs +276 -0
- package/es/Table/canvas/theme.mjs.map +1 -0
- package/es/Table/core/cellValue.d.mts +1 -0
- package/es/Table/core/cellValue.mjs +240 -0
- package/es/Table/core/cellValue.mjs.map +1 -0
- package/es/Table/core/rowSelection.mjs +138 -0
- package/es/Table/core/rowSelection.mjs.map +1 -0
- package/es/Table/core/size.mjs +60 -0
- package/es/Table/core/size.mjs.map +1 -0
- package/es/Table/core/tableI18n.d.mts +11 -0
- package/es/Table/core/tableI18n.mjs +123 -0
- package/es/Table/core/tableI18n.mjs.map +1 -0
- package/es/Table/core/tagTone.mjs +245 -0
- package/es/Table/core/tagTone.mjs.map +1 -0
- package/es/Table/core/zIndex.mjs +7 -0
- package/es/Table/core/zIndex.mjs.map +1 -0
- package/es/Table/index.d.mts +6 -0
- package/es/Table/index.d.ts +1 -0
- package/es/Table/index.js +1 -0
- package/es/Table/index.mjs +6 -0
- package/es/Table/react/Table.d.mts +9 -0
- package/es/Table/react/Table.mjs +407 -0
- package/es/Table/react/Table.mjs.map +1 -0
- package/es/Table/react/TableColumnSettings.mjs +65 -0
- package/es/Table/react/TableColumnSettings.mjs.map +1 -0
- package/es/Table/react/a11y.mjs +72 -0
- package/es/Table/react/a11y.mjs.map +1 -0
- package/es/Table/react/editors/base.mjs +427 -0
- package/es/Table/react/editors/base.mjs.map +1 -0
- package/es/Table/react/editors/inline.mjs +225 -0
- package/es/Table/react/editors/inline.mjs.map +1 -0
- package/es/Table/react/editors/picker.mjs +368 -0
- package/es/Table/react/editors/picker.mjs.map +1 -0
- package/es/Table/react/overlayChips.mjs +50 -0
- package/es/Table/react/overlayChips.mjs.map +1 -0
- package/es/Table/react/sameRenderInputs.mjs +50 -0
- package/es/Table/react/sameRenderInputs.mjs.map +1 -0
- package/es/Table/react/style.mjs +650 -0
- package/es/Table/react/style.mjs.map +1 -0
- package/es/Table/react/useTableCellEvents.mjs +32 -0
- package/es/Table/react/useTableCellEvents.mjs.map +1 -0
- package/es/Table/react/useTableColumnSettings.mjs +107 -0
- package/es/Table/react/useTableColumnSettings.mjs.map +1 -0
- package/es/Table/react/useTableEditorSync.mjs +41 -0
- package/es/Table/react/useTableEditorSync.mjs.map +1 -0
- package/es/Table/react/useTableHoverHint.mjs +62 -0
- package/es/Table/react/useTableHoverHint.mjs.map +1 -0
- package/es/Table/react/useTableKeyboard.mjs +41 -0
- package/es/Table/react/useTableKeyboard.mjs.map +1 -0
- package/es/Table/react/useTableRenderState.mjs +194 -0
- package/es/Table/react/useTableRenderState.mjs.map +1 -0
- package/es/Table/react/useTableScroll.mjs +33 -0
- package/es/Table/react/useTableScroll.mjs.map +1 -0
- package/es/Table/react/useTableSelectionInfo.mjs +48 -0
- package/es/Table/react/useTableSelectionInfo.mjs.map +1 -0
- package/es/Table/react/useTableVTableEvents.mjs +132 -0
- package/es/Table/react/useTableVTableEvents.mjs.map +1 -0
- package/es/Table/type.d.mts +279 -0
- package/es/Table/type.mjs +34 -0
- package/es/Table/type.mjs.map +1 -0
- package/es/Table/vtable/columns.d.mts +17 -0
- package/es/Table/vtable/columns.mjs +381 -0
- package/es/Table/vtable/columns.mjs.map +1 -0
- package/es/Table/vtable/frozenShadow.mjs +27 -0
- package/es/Table/vtable/frozenShadow.mjs.map +1 -0
- package/es/Table/vtable/interaction.mjs +175 -0
- package/es/Table/vtable/interaction.mjs.map +1 -0
- package/es/Table/vtable/option.d.mts +39 -0
- package/es/Table/vtable/option.mjs +232 -0
- package/es/Table/vtable/option.mjs.map +1 -0
- package/es/Table/vtable/seriesSelection.mjs +374 -0
- package/es/Table/vtable/seriesSelection.mjs.map +1 -0
- package/es/Table/vtable/vtableAdapter.mjs +96 -0
- package/es/Table/vtable/vtableAdapter.mjs.map +1 -0
- package/es/ThemeProvider/AppElementContext.d.mts +5 -0
- package/es/ThemeProvider/AppElementContext.mjs +10 -0
- package/es/ThemeProvider/AppElementContext.mjs.map +1 -0
- package/es/ThemeProvider/ConfigProvider.mjs +29 -0
- package/es/ThemeProvider/ConfigProvider.mjs.map +1 -0
- package/es/ThemeProvider/GlobalStyle/antdOverride.mjs +73 -0
- package/es/ThemeProvider/GlobalStyle/antdOverride.mjs.map +1 -0
- package/es/ThemeProvider/GlobalStyle/essential.mjs +50 -0
- package/es/ThemeProvider/GlobalStyle/essential.mjs.map +1 -0
- package/es/ThemeProvider/GlobalStyle/global.mjs +90 -0
- package/es/ThemeProvider/GlobalStyle/global.mjs.map +1 -0
- package/es/ThemeProvider/GlobalStyle/index.mjs +14 -0
- package/es/ThemeProvider/GlobalStyle/index.mjs.map +1 -0
- package/es/ThemeProvider/Meta.d.mts +7 -0
- package/es/ThemeProvider/Meta.mjs +48 -0
- package/es/ThemeProvider/Meta.mjs.map +1 -0
- package/es/ThemeProvider/ThemeProvider.d.mts +6 -0
- package/es/ThemeProvider/ThemeProvider.mjs +89 -0
- package/es/ThemeProvider/ThemeProvider.mjs.map +1 -0
- package/es/ThemeProvider/constants.d.mts +5 -0
- package/es/ThemeProvider/constants.mjs +6 -0
- package/es/ThemeProvider/constants.mjs.map +1 -0
- package/es/ThemeProvider/index.d.mts +6 -0
- package/es/ThemeProvider/index.d.ts +1 -0
- package/es/ThemeProvider/index.js +1 -0
- package/es/ThemeProvider/index.mjs +5 -0
- package/es/ThemeProvider/type.d.mts +48 -0
- package/es/_virtual/_rolldown/runtime.mjs +13 -0
- package/es/color/colors/blue.d.mts +6 -0
- package/es/color/colors/blue.mjs +67 -0
- package/es/color/colors/blue.mjs.map +1 -0
- package/es/color/colors/cyan.d.mts +6 -0
- package/es/color/colors/cyan.mjs +67 -0
- package/es/color/colors/cyan.mjs.map +1 -0
- package/es/color/colors/geekblue.d.mts +6 -0
- package/es/color/colors/geekblue.mjs +67 -0
- package/es/color/colors/geekblue.mjs.map +1 -0
- package/es/color/colors/gold.d.mts +6 -0
- package/es/color/colors/gold.mjs +67 -0
- package/es/color/colors/gold.mjs.map +1 -0
- package/es/color/colors/gray.d.mts +6 -0
- package/es/color/colors/gray.mjs +67 -0
- package/es/color/colors/gray.mjs.map +1 -0
- package/es/color/colors/green.d.mts +6 -0
- package/es/color/colors/green.mjs +67 -0
- package/es/color/colors/green.mjs.map +1 -0
- package/es/color/colors/index.d.mts +22 -0
- package/es/color/colors/index.mjs +35 -0
- package/es/color/colors/index.mjs.map +1 -0
- package/es/color/colors/lime.d.mts +6 -0
- package/es/color/colors/lime.mjs +67 -0
- package/es/color/colors/lime.mjs.map +1 -0
- package/es/color/colors/magenta.d.mts +6 -0
- package/es/color/colors/magenta.mjs +67 -0
- package/es/color/colors/magenta.mjs.map +1 -0
- package/es/color/colors/orange.d.mts +6 -0
- package/es/color/colors/orange.mjs +67 -0
- package/es/color/colors/orange.mjs.map +1 -0
- package/es/color/colors/primary.d.mts +6 -0
- package/es/color/colors/primary.mjs +67 -0
- package/es/color/colors/primary.mjs.map +1 -0
- package/es/color/colors/purple.d.mts +6 -0
- package/es/color/colors/purple.mjs +67 -0
- package/es/color/colors/purple.mjs.map +1 -0
- package/es/color/colors/red.d.mts +6 -0
- package/es/color/colors/red.mjs +67 -0
- package/es/color/colors/red.mjs.map +1 -0
- package/es/color/colors/volcano.d.mts +6 -0
- package/es/color/colors/volcano.mjs +67 -0
- package/es/color/colors/volcano.mjs.map +1 -0
- package/es/color/colors/yellow.d.mts +6 -0
- package/es/color/colors/yellow.mjs +67 -0
- package/es/color/colors/yellow.mjs.map +1 -0
- package/es/color/index.d.mts +23 -0
- package/es/color/index.d.ts +1 -0
- package/es/color/index.js +1 -0
- package/es/color/index.mjs +22 -0
- package/es/color/neutrals/index.d.mts +13 -0
- package/es/color/neutrals/index.mjs +17 -0
- package/es/color/neutrals/index.mjs.map +1 -0
- package/es/color/neutrals/mauve.d.mts +6 -0
- package/es/color/neutrals/mauve.mjs +67 -0
- package/es/color/neutrals/mauve.mjs.map +1 -0
- package/es/color/neutrals/olive.d.mts +6 -0
- package/es/color/neutrals/olive.mjs +67 -0
- package/es/color/neutrals/olive.mjs.map +1 -0
- package/es/color/neutrals/sage.d.mts +6 -0
- package/es/color/neutrals/sage.mjs +67 -0
- package/es/color/neutrals/sage.mjs.map +1 -0
- package/es/color/neutrals/sand.d.mts +6 -0
- package/es/color/neutrals/sand.mjs +67 -0
- package/es/color/neutrals/sand.mjs.map +1 -0
- package/es/color/neutrals/slate.d.mts +6 -0
- package/es/color/neutrals/slate.mjs +67 -0
- package/es/color/neutrals/slate.mjs.map +1 -0
- package/es/color/types.d.mts +16 -0
- package/es/eslint/index.d.mts +26 -0
- package/es/eslint/index.d.ts +1 -0
- package/es/eslint/index.js +1 -0
- package/es/eslint/index.mjs +11 -0
- package/es/eslint/index.mjs.map +1 -0
- package/es/hooks/useIsClient.d.mts +8 -0
- package/es/hooks/useIsClient.mjs +13 -0
- package/es/hooks/useIsClient.mjs.map +1 -0
- package/es/i18n/context.d.mts +7 -0
- package/es/i18n/context.mjs +16 -0
- package/es/i18n/context.mjs.map +1 -0
- package/es/i18n/index.d.mts +6 -0
- package/es/i18n/index.d.ts +1 -0
- package/es/i18n/index.js +1 -0
- package/es/i18n/index.mjs +5 -0
- package/es/i18n/resources/en/common.d.mts +35 -0
- package/es/i18n/resources/en/common.mjs +36 -0
- package/es/i18n/resources/en/common.mjs.map +1 -0
- package/es/i18n/resources/en/index.d.mts +7 -0
- package/es/i18n/resources/en/index.mjs +8 -0
- package/es/i18n/resources/en/index.mjs.map +1 -0
- package/es/i18n/resources/zhCn/common.d.mts +35 -0
- package/es/i18n/resources/zhCn/common.mjs +36 -0
- package/es/i18n/resources/zhCn/common.mjs.map +1 -0
- package/es/i18n/resources/zhCn/index.d.mts +7 -0
- package/es/i18n/resources/zhCn/index.mjs +8 -0
- package/es/i18n/resources/zhCn/index.mjs.map +1 -0
- package/es/i18n/types.d.mts +22 -0
- package/es/i18n/useTranslation.d.mts +12 -0
- package/es/i18n/useTranslation.mjs +22 -0
- package/es/i18n/useTranslation.mjs.map +1 -0
- package/es/index.d.mts +43 -0
- package/es/index.mjs +26 -0
- package/es/storybook/StoryBook/StoryBook.d.mts +7 -0
- package/es/storybook/StoryBook/StoryBook.mjs +52 -0
- package/es/storybook/StoryBook/StoryBook.mjs.map +1 -0
- package/es/storybook/StoryBook/index.d.mts +3 -0
- package/es/storybook/StoryBook/style.mjs +97 -0
- package/es/storybook/StoryBook/style.mjs.map +1 -0
- package/es/storybook/StoryBook/type.d.mts +13 -0
- package/es/storybook/index.d.mts +4 -0
- package/es/storybook/index.d.ts +1 -0
- package/es/storybook/index.js +1 -0
- package/es/storybook/index.mjs +2 -0
- package/es/styles/classNames.d.mts +11 -0
- package/es/styles/classNames.mjs +12 -0
- package/es/styles/classNames.mjs.map +1 -0
- package/es/styles/customTheme.d.mts +36 -0
- package/es/styles/customTheme.mjs +71 -0
- package/es/styles/customTheme.mjs.map +1 -0
- package/es/styles/index.d.mts +6 -0
- package/es/styles/index.d.ts +1 -0
- package/es/styles/index.js +1 -0
- package/es/styles/index.mjs +6 -0
- package/es/styles/theme/algorithms/darkAlgorithm.mjs +18 -0
- package/es/styles/theme/algorithms/darkAlgorithm.mjs.map +1 -0
- package/es/styles/theme/algorithms/lightAlgorithm.mjs +18 -0
- package/es/styles/theme/algorithms/lightAlgorithm.mjs.map +1 -0
- package/es/styles/theme/algorithms/resolveScales.mjs +25 -0
- package/es/styles/theme/algorithms/resolveScales.mjs.map +1 -0
- package/es/styles/theme/antdTheme.mjs +31 -0
- package/es/styles/theme/antdTheme.mjs.map +1 -0
- package/es/styles/theme/customStylish.d.mts +7 -0
- package/es/styles/theme/customStylish.mjs +158 -0
- package/es/styles/theme/customStylish.mjs.map +1 -0
- package/es/styles/theme/customStylishStatic.d.mts +6 -0
- package/es/styles/theme/customStylishStatic.mjs +156 -0
- package/es/styles/theme/customStylishStatic.mjs.map +1 -0
- package/es/styles/theme/customToken.d.mts +7 -0
- package/es/styles/theme/customToken.mjs +127 -0
- package/es/styles/theme/customToken.mjs.map +1 -0
- package/es/styles/theme/generateColorPalette.d.mts +16 -0
- package/es/styles/theme/generateColorPalette.mjs +170 -0
- package/es/styles/theme/generateColorPalette.mjs.map +1 -0
- package/es/styles/theme/token/base.mjs +64 -0
- package/es/styles/theme/token/base.mjs.map +1 -0
- package/es/styles/theme/token/dark.mjs +37 -0
- package/es/styles/theme/token/dark.mjs.map +1 -0
- package/es/styles/theme/token/light.mjs +37 -0
- package/es/styles/theme/token/light.mjs.map +1 -0
- package/es/types/customStylish.d.mts +28 -0
- package/es/types/customToken.d.mts +34 -0
- package/es/types/customToken.mjs +32 -0
- package/es/types/customToken.mjs.map +1 -0
- package/es/types/index.d.mts +15 -0
- package/es/types/index.d.ts +1 -0
- package/es/types/index.js +1 -0
- package/es/types/index.mjs +2 -0
- package/es/utils/composeEventHandlers.d.mts +5 -0
- package/es/utils/composeEventHandlers.mjs +10 -0
- package/es/utils/composeEventHandlers.mjs.map +1 -0
- package/es/utils/copyToClipboard.d.mts +5 -0
- package/es/utils/copyToClipboard.mjs +28 -0
- package/es/utils/copyToClipboard.mjs.map +1 -0
- package/es/utils/dom.d.mts +15 -0
- package/es/utils/dom.mjs +16 -0
- package/es/utils/dom.mjs.map +1 -0
- package/es/utils/genCdnUrl.d.mts +12 -0
- package/es/utils/genCdnUrl.mjs +17 -0
- package/es/utils/genCdnUrl.mjs.map +1 -0
- package/es/utils/safeReadableColor.mjs +6 -0
- package/es/utils/safeReadableColor.mjs.map +1 -0
- package/package.json +96 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region src/color/neutrals/olive.ts
|
|
2
|
+
const olive = {
|
|
3
|
+
dark: [
|
|
4
|
+
"#090908",
|
|
5
|
+
"#0c0d0b",
|
|
6
|
+
"#121311",
|
|
7
|
+
"#1a1b19",
|
|
8
|
+
"#232522",
|
|
9
|
+
"#2f312e",
|
|
10
|
+
"#3d3f3b",
|
|
11
|
+
"#4c4e4b",
|
|
12
|
+
"#5d605b",
|
|
13
|
+
"#70736e",
|
|
14
|
+
"#999b98",
|
|
15
|
+
"#c4c6c4",
|
|
16
|
+
"#f1f2f1"
|
|
17
|
+
],
|
|
18
|
+
darkA: [
|
|
19
|
+
"rgba(241, 242, 239, 0.02)",
|
|
20
|
+
"rgba(241, 242, 239, 0.05)",
|
|
21
|
+
"rgba(241, 242, 239, 0.09)",
|
|
22
|
+
"rgba(241, 242, 239, 0.14)",
|
|
23
|
+
"rgba(241, 242, 239, 0.2)",
|
|
24
|
+
"rgba(241, 242, 239, 0.27)",
|
|
25
|
+
"rgba(241, 242, 239, 0.33)",
|
|
26
|
+
"rgba(241, 242, 239, 0.39)",
|
|
27
|
+
"rgba(241, 242, 239, 0.45)",
|
|
28
|
+
"rgba(241, 242, 239, 0.52)",
|
|
29
|
+
"rgba(241, 242, 239, 0.68)",
|
|
30
|
+
"rgba(241, 242, 239, 0.85)",
|
|
31
|
+
"#f1f2ef"
|
|
32
|
+
],
|
|
33
|
+
light: [
|
|
34
|
+
"#fefefe",
|
|
35
|
+
"#fafaf9",
|
|
36
|
+
"#f1f2f1",
|
|
37
|
+
"#e7e7e6",
|
|
38
|
+
"#dadbd9",
|
|
39
|
+
"#cccecb",
|
|
40
|
+
"#bdbfbb",
|
|
41
|
+
"#acafaa",
|
|
42
|
+
"#9b9e98",
|
|
43
|
+
"#898c86",
|
|
44
|
+
"#676964",
|
|
45
|
+
"#464845",
|
|
46
|
+
"#282927"
|
|
47
|
+
],
|
|
48
|
+
lightA: [
|
|
49
|
+
"rgba(44, 47, 42, 0.02)",
|
|
50
|
+
"rgba(44, 47, 42, 0.05)",
|
|
51
|
+
"rgba(44, 47, 42, 0.09)",
|
|
52
|
+
"rgba(44, 47, 42, 0.14)",
|
|
53
|
+
"rgba(44, 47, 42, 0.2)",
|
|
54
|
+
"rgba(44, 47, 42, 0.27)",
|
|
55
|
+
"rgba(44, 47, 42, 0.33)",
|
|
56
|
+
"rgba(44, 47, 42, 0.39)",
|
|
57
|
+
"rgba(44, 47, 42, 0.45)",
|
|
58
|
+
"rgba(44, 47, 42, 0.52)",
|
|
59
|
+
"rgba(44, 47, 42, 0.68)",
|
|
60
|
+
"rgba(44, 47, 42, 0.85)",
|
|
61
|
+
"#2c2f2a"
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { olive as default };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=olive.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"olive.mjs","names":[],"sources":["../../../src/color/neutrals/olive.ts"],"sourcesContent":["import type { ColorScaleItem } from '../types';\n\n// 由 scripts/generateColorScales.ts 生成,请勿手改;调色改脚本里的配置。\nconst olive: ColorScaleItem = {\n dark: [\n '#090908',\n '#0c0d0b',\n '#121311',\n '#1a1b19',\n '#232522',\n '#2f312e',\n '#3d3f3b',\n '#4c4e4b',\n '#5d605b',\n '#70736e',\n '#999b98',\n '#c4c6c4',\n '#f1f2f1',\n ],\n darkA: [\n 'rgba(241, 242, 239, 0.02)',\n 'rgba(241, 242, 239, 0.05)',\n 'rgba(241, 242, 239, 0.09)',\n 'rgba(241, 242, 239, 0.14)',\n 'rgba(241, 242, 239, 0.2)',\n 'rgba(241, 242, 239, 0.27)',\n 'rgba(241, 242, 239, 0.33)',\n 'rgba(241, 242, 239, 0.39)',\n 'rgba(241, 242, 239, 0.45)',\n 'rgba(241, 242, 239, 0.52)',\n 'rgba(241, 242, 239, 0.68)',\n 'rgba(241, 242, 239, 0.85)',\n '#f1f2ef',\n ],\n light: [\n '#fefefe',\n '#fafaf9',\n '#f1f2f1',\n '#e7e7e6',\n '#dadbd9',\n '#cccecb',\n '#bdbfbb',\n '#acafaa',\n '#9b9e98',\n '#898c86',\n '#676964',\n '#464845',\n '#282927',\n ],\n lightA: [\n 'rgba(44, 47, 42, 0.02)',\n 'rgba(44, 47, 42, 0.05)',\n 'rgba(44, 47, 42, 0.09)',\n 'rgba(44, 47, 42, 0.14)',\n 'rgba(44, 47, 42, 0.2)',\n 'rgba(44, 47, 42, 0.27)',\n 'rgba(44, 47, 42, 0.33)',\n 'rgba(44, 47, 42, 0.39)',\n 'rgba(44, 47, 42, 0.45)',\n 'rgba(44, 47, 42, 0.52)',\n 'rgba(44, 47, 42, 0.68)',\n 'rgba(44, 47, 42, 0.85)',\n '#2c2f2a',\n ],\n};\n\nexport default olive;\n"],"mappings":";AAGA,MAAM,QAAwB;CAC5B,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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region src/color/neutrals/sage.ts
|
|
2
|
+
const sage = {
|
|
3
|
+
dark: [
|
|
4
|
+
"#080909",
|
|
5
|
+
"#0b0d0c",
|
|
6
|
+
"#111312",
|
|
7
|
+
"#191b1a",
|
|
8
|
+
"#232524",
|
|
9
|
+
"#2e3130",
|
|
10
|
+
"#3b3f3e",
|
|
11
|
+
"#4b4f4d",
|
|
12
|
+
"#5b605e",
|
|
13
|
+
"#6e7371",
|
|
14
|
+
"#989b9a",
|
|
15
|
+
"#c4c6c5",
|
|
16
|
+
"#f1f2f2"
|
|
17
|
+
],
|
|
18
|
+
darkA: [
|
|
19
|
+
"rgba(239, 243, 241, 0.02)",
|
|
20
|
+
"rgba(239, 243, 241, 0.05)",
|
|
21
|
+
"rgba(239, 243, 241, 0.09)",
|
|
22
|
+
"rgba(239, 243, 241, 0.14)",
|
|
23
|
+
"rgba(239, 243, 241, 0.2)",
|
|
24
|
+
"rgba(239, 243, 241, 0.27)",
|
|
25
|
+
"rgba(239, 243, 241, 0.33)",
|
|
26
|
+
"rgba(239, 243, 241, 0.39)",
|
|
27
|
+
"rgba(239, 243, 241, 0.45)",
|
|
28
|
+
"rgba(239, 243, 241, 0.52)",
|
|
29
|
+
"rgba(239, 243, 241, 0.68)",
|
|
30
|
+
"rgba(239, 243, 241, 0.85)",
|
|
31
|
+
"#eff3f1"
|
|
32
|
+
],
|
|
33
|
+
light: [
|
|
34
|
+
"#fefefe",
|
|
35
|
+
"#f9f9f9",
|
|
36
|
+
"#eff0f0",
|
|
37
|
+
"#e3e5e4",
|
|
38
|
+
"#d5d7d6",
|
|
39
|
+
"#c5c8c6",
|
|
40
|
+
"#b4b7b5",
|
|
41
|
+
"#a1a5a3",
|
|
42
|
+
"#8d9290",
|
|
43
|
+
"#797f7c",
|
|
44
|
+
"#5c615e",
|
|
45
|
+
"#414443",
|
|
46
|
+
"#272928"
|
|
47
|
+
],
|
|
48
|
+
lightA: [
|
|
49
|
+
"rgba(42, 47, 45, 0.02)",
|
|
50
|
+
"rgba(42, 47, 45, 0.05)",
|
|
51
|
+
"rgba(42, 47, 45, 0.09)",
|
|
52
|
+
"rgba(42, 47, 45, 0.14)",
|
|
53
|
+
"rgba(42, 47, 45, 0.2)",
|
|
54
|
+
"rgba(42, 47, 45, 0.27)",
|
|
55
|
+
"rgba(42, 47, 45, 0.33)",
|
|
56
|
+
"rgba(42, 47, 45, 0.39)",
|
|
57
|
+
"rgba(42, 47, 45, 0.45)",
|
|
58
|
+
"rgba(42, 47, 45, 0.52)",
|
|
59
|
+
"rgba(42, 47, 45, 0.68)",
|
|
60
|
+
"rgba(42, 47, 45, 0.85)",
|
|
61
|
+
"#2a2f2d"
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { sage as default };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=sage.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sage.mjs","names":[],"sources":["../../../src/color/neutrals/sage.ts"],"sourcesContent":["import type { ColorScaleItem } from '../types';\n\n// 由 scripts/generateColorScales.ts 生成,请勿手改;调色改脚本里的配置。\nconst sage: ColorScaleItem = {\n dark: [\n '#080909',\n '#0b0d0c',\n '#111312',\n '#191b1a',\n '#232524',\n '#2e3130',\n '#3b3f3e',\n '#4b4f4d',\n '#5b605e',\n '#6e7371',\n '#989b9a',\n '#c4c6c5',\n '#f1f2f2',\n ],\n darkA: [\n 'rgba(239, 243, 241, 0.02)',\n 'rgba(239, 243, 241, 0.05)',\n 'rgba(239, 243, 241, 0.09)',\n 'rgba(239, 243, 241, 0.14)',\n 'rgba(239, 243, 241, 0.2)',\n 'rgba(239, 243, 241, 0.27)',\n 'rgba(239, 243, 241, 0.33)',\n 'rgba(239, 243, 241, 0.39)',\n 'rgba(239, 243, 241, 0.45)',\n 'rgba(239, 243, 241, 0.52)',\n 'rgba(239, 243, 241, 0.68)',\n 'rgba(239, 243, 241, 0.85)',\n '#eff3f1',\n ],\n light: [\n '#fefefe',\n '#f9f9f9',\n '#eff0f0',\n '#e3e5e4',\n '#d5d7d6',\n '#c5c8c6',\n '#b4b7b5',\n '#a1a5a3',\n '#8d9290',\n '#797f7c',\n '#5c615e',\n '#414443',\n '#272928',\n ],\n lightA: [\n 'rgba(42, 47, 45, 0.02)',\n 'rgba(42, 47, 45, 0.05)',\n 'rgba(42, 47, 45, 0.09)',\n 'rgba(42, 47, 45, 0.14)',\n 'rgba(42, 47, 45, 0.2)',\n 'rgba(42, 47, 45, 0.27)',\n 'rgba(42, 47, 45, 0.33)',\n 'rgba(42, 47, 45, 0.39)',\n 'rgba(42, 47, 45, 0.45)',\n 'rgba(42, 47, 45, 0.52)',\n 'rgba(42, 47, 45, 0.68)',\n 'rgba(42, 47, 45, 0.85)',\n '#2a2f2d',\n ],\n};\n\nexport default sage;\n"],"mappings":";AAGA,MAAM,OAAuB;CAC3B,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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region src/color/neutrals/sand.ts
|
|
2
|
+
const sand = {
|
|
3
|
+
dark: [
|
|
4
|
+
"#090908",
|
|
5
|
+
"#0d0c0a",
|
|
6
|
+
"#131210",
|
|
7
|
+
"#1b1a17",
|
|
8
|
+
"#252521",
|
|
9
|
+
"#31302c",
|
|
10
|
+
"#3f3e39",
|
|
11
|
+
"#4f4e47",
|
|
12
|
+
"#605f58",
|
|
13
|
+
"#73726a",
|
|
14
|
+
"#9b9b95",
|
|
15
|
+
"#c6c5c2",
|
|
16
|
+
"#f2f2f0"
|
|
17
|
+
],
|
|
18
|
+
darkA: [
|
|
19
|
+
"rgba(242, 242, 237, 0.02)",
|
|
20
|
+
"rgba(242, 242, 237, 0.05)",
|
|
21
|
+
"rgba(242, 242, 237, 0.09)",
|
|
22
|
+
"rgba(242, 242, 237, 0.14)",
|
|
23
|
+
"rgba(242, 242, 237, 0.2)",
|
|
24
|
+
"rgba(242, 242, 237, 0.27)",
|
|
25
|
+
"rgba(242, 242, 237, 0.33)",
|
|
26
|
+
"rgba(242, 242, 237, 0.39)",
|
|
27
|
+
"rgba(242, 242, 237, 0.45)",
|
|
28
|
+
"rgba(242, 242, 237, 0.52)",
|
|
29
|
+
"rgba(242, 242, 237, 0.68)",
|
|
30
|
+
"rgba(242, 242, 237, 0.85)",
|
|
31
|
+
"#f2f2ed"
|
|
32
|
+
],
|
|
33
|
+
light: [
|
|
34
|
+
"#fefefe",
|
|
35
|
+
"#f9f9f8",
|
|
36
|
+
"#f0f0ef",
|
|
37
|
+
"#e5e4e2",
|
|
38
|
+
"#d7d7d4",
|
|
39
|
+
"#c8c7c3",
|
|
40
|
+
"#b7b6b2",
|
|
41
|
+
"#a5a49f",
|
|
42
|
+
"#92928b",
|
|
43
|
+
"#7f7e76",
|
|
44
|
+
"#61605a",
|
|
45
|
+
"#44443f",
|
|
46
|
+
"#292926"
|
|
47
|
+
],
|
|
48
|
+
lightA: [
|
|
49
|
+
"rgba(47, 46, 40, 0.02)",
|
|
50
|
+
"rgba(47, 46, 40, 0.05)",
|
|
51
|
+
"rgba(47, 46, 40, 0.09)",
|
|
52
|
+
"rgba(47, 46, 40, 0.14)",
|
|
53
|
+
"rgba(47, 46, 40, 0.2)",
|
|
54
|
+
"rgba(47, 46, 40, 0.27)",
|
|
55
|
+
"rgba(47, 46, 40, 0.33)",
|
|
56
|
+
"rgba(47, 46, 40, 0.39)",
|
|
57
|
+
"rgba(47, 46, 40, 0.45)",
|
|
58
|
+
"rgba(47, 46, 40, 0.52)",
|
|
59
|
+
"rgba(47, 46, 40, 0.68)",
|
|
60
|
+
"rgba(47, 46, 40, 0.85)",
|
|
61
|
+
"#2f2e28"
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { sand as default };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=sand.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sand.mjs","names":[],"sources":["../../../src/color/neutrals/sand.ts"],"sourcesContent":["import type { ColorScaleItem } from '../types';\n\n// 由 scripts/generateColorScales.ts 生成,请勿手改;调色改脚本里的配置。\nconst sand: ColorScaleItem = {\n dark: [\n '#090908',\n '#0d0c0a',\n '#131210',\n '#1b1a17',\n '#252521',\n '#31302c',\n '#3f3e39',\n '#4f4e47',\n '#605f58',\n '#73726a',\n '#9b9b95',\n '#c6c5c2',\n '#f2f2f0',\n ],\n darkA: [\n 'rgba(242, 242, 237, 0.02)',\n 'rgba(242, 242, 237, 0.05)',\n 'rgba(242, 242, 237, 0.09)',\n 'rgba(242, 242, 237, 0.14)',\n 'rgba(242, 242, 237, 0.2)',\n 'rgba(242, 242, 237, 0.27)',\n 'rgba(242, 242, 237, 0.33)',\n 'rgba(242, 242, 237, 0.39)',\n 'rgba(242, 242, 237, 0.45)',\n 'rgba(242, 242, 237, 0.52)',\n 'rgba(242, 242, 237, 0.68)',\n 'rgba(242, 242, 237, 0.85)',\n '#f2f2ed',\n ],\n light: [\n '#fefefe',\n '#f9f9f8',\n '#f0f0ef',\n '#e5e4e2',\n '#d7d7d4',\n '#c8c7c3',\n '#b7b6b2',\n '#a5a49f',\n '#92928b',\n '#7f7e76',\n '#61605a',\n '#44443f',\n '#292926',\n ],\n lightA: [\n 'rgba(47, 46, 40, 0.02)',\n 'rgba(47, 46, 40, 0.05)',\n 'rgba(47, 46, 40, 0.09)',\n 'rgba(47, 46, 40, 0.14)',\n 'rgba(47, 46, 40, 0.2)',\n 'rgba(47, 46, 40, 0.27)',\n 'rgba(47, 46, 40, 0.33)',\n 'rgba(47, 46, 40, 0.39)',\n 'rgba(47, 46, 40, 0.45)',\n 'rgba(47, 46, 40, 0.52)',\n 'rgba(47, 46, 40, 0.68)',\n 'rgba(47, 46, 40, 0.85)',\n '#2f2e28',\n ],\n};\n\nexport default sand;\n"],"mappings":";AAGA,MAAM,OAAuB;CAC3B,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"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
//#region src/color/neutrals/slate.ts
|
|
2
|
+
const slate = {
|
|
3
|
+
dark: [
|
|
4
|
+
"#09090a",
|
|
5
|
+
"#0c0c0d",
|
|
6
|
+
"#121214",
|
|
7
|
+
"#1a1a1c",
|
|
8
|
+
"#232426",
|
|
9
|
+
"#2f3033",
|
|
10
|
+
"#3d3e41",
|
|
11
|
+
"#4c4e51",
|
|
12
|
+
"#5d5f63",
|
|
13
|
+
"#707276",
|
|
14
|
+
"#999b9d",
|
|
15
|
+
"#c4c5c7",
|
|
16
|
+
"#f1f2f2"
|
|
17
|
+
],
|
|
18
|
+
darkA: [
|
|
19
|
+
"rgba(241, 242, 243, 0.02)",
|
|
20
|
+
"rgba(241, 242, 243, 0.05)",
|
|
21
|
+
"rgba(241, 242, 243, 0.09)",
|
|
22
|
+
"rgba(241, 242, 243, 0.14)",
|
|
23
|
+
"rgba(241, 242, 243, 0.2)",
|
|
24
|
+
"rgba(241, 242, 243, 0.27)",
|
|
25
|
+
"rgba(241, 242, 243, 0.33)",
|
|
26
|
+
"rgba(241, 242, 243, 0.39)",
|
|
27
|
+
"rgba(241, 242, 243, 0.45)",
|
|
28
|
+
"rgba(241, 242, 243, 0.52)",
|
|
29
|
+
"rgba(241, 242, 243, 0.68)",
|
|
30
|
+
"rgba(241, 242, 243, 0.85)",
|
|
31
|
+
"#f1f2f3"
|
|
32
|
+
],
|
|
33
|
+
light: [
|
|
34
|
+
"#fefeff",
|
|
35
|
+
"#fafafa",
|
|
36
|
+
"#f1f2f2",
|
|
37
|
+
"#e7e7e8",
|
|
38
|
+
"#dadbdc",
|
|
39
|
+
"#cccdce",
|
|
40
|
+
"#bdbec0",
|
|
41
|
+
"#acaeb0",
|
|
42
|
+
"#9b9d9f",
|
|
43
|
+
"#898b8e",
|
|
44
|
+
"#67686b",
|
|
45
|
+
"#464749",
|
|
46
|
+
"#28292a"
|
|
47
|
+
],
|
|
48
|
+
lightA: [
|
|
49
|
+
"rgba(44, 46, 48, 0.02)",
|
|
50
|
+
"rgba(44, 46, 48, 0.05)",
|
|
51
|
+
"rgba(44, 46, 48, 0.09)",
|
|
52
|
+
"rgba(44, 46, 48, 0.14)",
|
|
53
|
+
"rgba(44, 46, 48, 0.2)",
|
|
54
|
+
"rgba(44, 46, 48, 0.27)",
|
|
55
|
+
"rgba(44, 46, 48, 0.33)",
|
|
56
|
+
"rgba(44, 46, 48, 0.39)",
|
|
57
|
+
"rgba(44, 46, 48, 0.45)",
|
|
58
|
+
"rgba(44, 46, 48, 0.52)",
|
|
59
|
+
"rgba(44, 46, 48, 0.68)",
|
|
60
|
+
"rgba(44, 46, 48, 0.85)",
|
|
61
|
+
"#2c2e30"
|
|
62
|
+
]
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { slate as default };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=slate.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"slate.mjs","names":[],"sources":["../../../src/color/neutrals/slate.ts"],"sourcesContent":["import type { ColorScaleItem } from '../types';\n\n// 由 scripts/generateColorScales.ts 生成,请勿手改;调色改脚本里的配置。\nconst slate: ColorScaleItem = {\n dark: [\n '#09090a',\n '#0c0c0d',\n '#121214',\n '#1a1a1c',\n '#232426',\n '#2f3033',\n '#3d3e41',\n '#4c4e51',\n '#5d5f63',\n '#707276',\n '#999b9d',\n '#c4c5c7',\n '#f1f2f2',\n ],\n darkA: [\n 'rgba(241, 242, 243, 0.02)',\n 'rgba(241, 242, 243, 0.05)',\n 'rgba(241, 242, 243, 0.09)',\n 'rgba(241, 242, 243, 0.14)',\n 'rgba(241, 242, 243, 0.2)',\n 'rgba(241, 242, 243, 0.27)',\n 'rgba(241, 242, 243, 0.33)',\n 'rgba(241, 242, 243, 0.39)',\n 'rgba(241, 242, 243, 0.45)',\n 'rgba(241, 242, 243, 0.52)',\n 'rgba(241, 242, 243, 0.68)',\n 'rgba(241, 242, 243, 0.85)',\n '#f1f2f3',\n ],\n light: [\n '#fefeff',\n '#fafafa',\n '#f1f2f2',\n '#e7e7e8',\n '#dadbdc',\n '#cccdce',\n '#bdbec0',\n '#acaeb0',\n '#9b9d9f',\n '#898b8e',\n '#67686b',\n '#464749',\n '#28292a',\n ],\n lightA: [\n 'rgba(44, 46, 48, 0.02)',\n 'rgba(44, 46, 48, 0.05)',\n 'rgba(44, 46, 48, 0.09)',\n 'rgba(44, 46, 48, 0.14)',\n 'rgba(44, 46, 48, 0.2)',\n 'rgba(44, 46, 48, 0.27)',\n 'rgba(44, 46, 48, 0.33)',\n 'rgba(44, 46, 48, 0.39)',\n 'rgba(44, 46, 48, 0.45)',\n 'rgba(44, 46, 48, 0.52)',\n 'rgba(44, 46, 48, 0.68)',\n 'rgba(44, 46, 48, 0.85)',\n '#2c2e30',\n ],\n};\n\nexport default slate;\n"],"mappings":";AAGA,MAAM,QAAwB;CAC5B,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"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
//#region src/color/types.d.ts
|
|
2
|
+
/** 13 步色阶:下标 0 靠背景端,12 靠文字端,9 为代表色。 */
|
|
3
|
+
type ColorStep = [step0: string, step1: string, step2: string, step3: string, step4: string, step5: string, step6: string, step7: string, step8: string, step9: string, step10: string, step11: string, step12: string];
|
|
4
|
+
interface ColorScaleItem {
|
|
5
|
+
/** 暗色实心色阶 */
|
|
6
|
+
dark: ColorStep;
|
|
7
|
+
/** 暗色透明色阶 */
|
|
8
|
+
darkA: ColorStep;
|
|
9
|
+
/** 亮色实心色阶 */
|
|
10
|
+
light: ColorStep;
|
|
11
|
+
/** 亮色透明色阶 */
|
|
12
|
+
lightA: ColorStep;
|
|
13
|
+
}
|
|
14
|
+
//#endregion
|
|
15
|
+
export { ColorScaleItem, ColorStep };
|
|
16
|
+
//# sourceMappingURL=types.d.mts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/eslint/index.d.ts
|
|
2
|
+
declare const restrictedImports: {
|
|
3
|
+
rules: {
|
|
4
|
+
'no-restricted-imports': (string | {
|
|
5
|
+
paths: {
|
|
6
|
+
importNames: string[];
|
|
7
|
+
message: string;
|
|
8
|
+
name: string;
|
|
9
|
+
}[];
|
|
10
|
+
})[];
|
|
11
|
+
};
|
|
12
|
+
};
|
|
13
|
+
declare const _default: {
|
|
14
|
+
rules: {
|
|
15
|
+
'no-restricted-imports': (string | {
|
|
16
|
+
paths: {
|
|
17
|
+
importNames: string[];
|
|
18
|
+
message: string;
|
|
19
|
+
name: string;
|
|
20
|
+
}[];
|
|
21
|
+
})[];
|
|
22
|
+
};
|
|
23
|
+
}[];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { _default as default, restrictedImports };
|
|
26
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.d.mts';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.mjs';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//#region src/eslint/index.ts
|
|
2
|
+
const restrictedImports = { rules: { "no-restricted-imports": ["error", { paths: [{
|
|
3
|
+
importNames: ["createStyles"],
|
|
4
|
+
message: "`createStyles` is banned in this project. Use `createStaticStyles` from \"antd-style\" instead.",
|
|
5
|
+
name: "antd-style"
|
|
6
|
+
}] }] } };
|
|
7
|
+
var eslint_default = [restrictedImports];
|
|
8
|
+
//#endregion
|
|
9
|
+
export { eslint_default as default, restrictedImports };
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/eslint/index.ts"],"sourcesContent":["export const restrictedImports = {\n rules: {\n 'no-restricted-imports': [\n 'error',\n {\n paths: [\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 },\n ],\n },\n};\n\nexport default [restrictedImports];\n"],"mappings":";AAAA,MAAa,oBAAoB,EAC/B,OAAO,EACL,yBAAyB,CACvB,SACA,EACE,OAAO,CACL;CACE,aAAa,CAAC,cAAc;CAC5B,SACE;CACF,MAAM;AACR,CACF,EACF,CACF,EACF,EACF;AAEA,IAAA,iBAAe,CAAC,iBAAiB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useSyncExternalStore } from "react";
|
|
2
|
+
//#region src/hooks/useIsClient.ts
|
|
3
|
+
const emptySubscribe = () => () => {};
|
|
4
|
+
const onClient = () => true;
|
|
5
|
+
const onServer = () => false;
|
|
6
|
+
/**
|
|
7
|
+
* 服务端渲染时返回 false,客户端首帧即为 true(无 effect 二次渲染)。
|
|
8
|
+
*/
|
|
9
|
+
const useIsClient = () => useSyncExternalStore(emptySubscribe, onClient, onServer);
|
|
10
|
+
//#endregion
|
|
11
|
+
export { useIsClient };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=useIsClient.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useIsClient.mjs","names":[],"sources":["../../src/hooks/useIsClient.ts"],"sourcesContent":["import { useSyncExternalStore } from 'react';\n\nconst emptySubscribe = () => () => {};\nconst onClient = () => true;\nconst onServer = () => false;\n\n/**\n * 服务端渲染时返回 false,客户端首帧即为 true(无 effect 二次渲染)。\n */\nexport const useIsClient = () => useSyncExternalStore(emptySubscribe, onClient, onServer);\n"],"mappings":";;AAEA,MAAM,6BAA6B,CAAC;AACpC,MAAM,iBAAiB;AACvB,MAAM,iBAAiB;;;;AAKvB,MAAa,oBAAoB,qBAAqB,gBAAgB,UAAU,QAAQ"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { I18nProviderProps } from "./types.mjs";
|
|
2
|
+
import { useI18n } from "../ConfigProvider/index.mjs";
|
|
3
|
+
//#region src/i18n/context.d.ts
|
|
4
|
+
declare const I18nProvider: import("react").NamedExoticComponent<I18nProviderProps>;
|
|
5
|
+
//#endregion
|
|
6
|
+
export { I18nProvider, type I18nProviderProps };
|
|
7
|
+
//# sourceMappingURL=context.d.mts.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import ConfigProvider from "../ConfigProvider/index.mjs";
|
|
2
|
+
import { jsx } from "react/jsx-runtime";
|
|
3
|
+
import { memo } from "react";
|
|
4
|
+
//#region src/i18n/context.tsx
|
|
5
|
+
const I18nProvider = memo(({ children, locale, resources }) => {
|
|
6
|
+
return /* @__PURE__ */ jsx(ConfigProvider, {
|
|
7
|
+
locale,
|
|
8
|
+
resources,
|
|
9
|
+
children
|
|
10
|
+
});
|
|
11
|
+
});
|
|
12
|
+
I18nProvider.displayName = "SuperadI18nProvider";
|
|
13
|
+
//#endregion
|
|
14
|
+
export { I18nProvider };
|
|
15
|
+
|
|
16
|
+
//# sourceMappingURL=context.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.mjs","names":[],"sources":["../../src/i18n/context.tsx"],"sourcesContent":["import { memo } from 'react';\n\nimport ConfigProvider from '@/ConfigProvider';\n\nimport type { I18nProviderProps } from './types';\n\nexport type { I18nProviderProps } from './types';\nexport { I18nContext, useI18n } from '@/ConfigProvider';\n\nexport const I18nProvider = memo<I18nProviderProps>(({ children, locale, resources }) => {\n return (\n <ConfigProvider locale={locale} resources={resources}>\n {children}\n </ConfigProvider>\n );\n});\n\nI18nProvider.displayName = 'SuperadI18nProvider';\n"],"mappings":";;;;AASA,MAAa,eAAe,MAAyB,EAAE,UAAU,QAAQ,gBAAgB;CACvF,OACE,oBAAC,gBAAD;EAAwB;EAAmB;EACxC;CACa,CAAA;AAEpB,CAAC;AAED,aAAa,cAAc"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { I18nContextValue, I18nProviderProps, Locale, TranslationKey, TranslationResources, TranslationResourcesInput, TranslationResourcesMap, TranslationValue } from "./types.mjs";
|
|
2
|
+
import { I18nProvider } from "./context.mjs";
|
|
3
|
+
import { index_d_exports } from "./resources/en/index.mjs";
|
|
4
|
+
import { index_d_exports as index_d_exports$1 } from "./resources/zhCn/index.mjs";
|
|
5
|
+
import { useTranslation } from "./useTranslation.mjs";
|
|
6
|
+
export { type I18nContextValue, I18nProvider, type I18nProviderProps, type Locale, type TranslationKey, type TranslationResources, type TranslationResourcesInput, type TranslationResourcesMap, type TranslationValue, index_d_exports as en, useTranslation, index_d_exports$1 as zhCn };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.d.mts';
|
package/es/i18n/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './index.mjs';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { en_exports } from "./resources/en/index.mjs";
|
|
2
|
+
import { zhCn_exports } from "./resources/zhCn/index.mjs";
|
|
3
|
+
import { I18nProvider } from "./context.mjs";
|
|
4
|
+
import { useTranslation } from "./useTranslation.mjs";
|
|
5
|
+
export { I18nProvider, en_exports as en, useTranslation, zhCn_exports as zhCn };
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/i18n/resources/en/common.d.ts
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly 'common.cancel': "Cancel";
|
|
4
|
+
readonly 'common.confirm': "Confirm";
|
|
5
|
+
readonly 'common.delete': "Delete";
|
|
6
|
+
readonly 'common.edit': "Edit";
|
|
7
|
+
readonly 'common.empty': "(empty)";
|
|
8
|
+
readonly 'table.addByEnter': "Press Enter to add";
|
|
9
|
+
readonly 'table.address.city': "City";
|
|
10
|
+
readonly 'table.address.country': "Country";
|
|
11
|
+
readonly 'table.address.postcode': "Postal code";
|
|
12
|
+
readonly 'table.address.state': "State / Province";
|
|
13
|
+
readonly 'table.address.street': "Street";
|
|
14
|
+
readonly 'table.address.street2': "Address line 2";
|
|
15
|
+
readonly 'table.clearSelection': "Clear selection";
|
|
16
|
+
readonly 'table.copy': "Copy";
|
|
17
|
+
readonly 'table.endDate': "End date";
|
|
18
|
+
readonly 'table.fieldSettings': "Column settings";
|
|
19
|
+
readonly 'table.hideColumn': "Hide {title}";
|
|
20
|
+
readonly 'table.moveLeft': "Move left";
|
|
21
|
+
readonly 'table.moveRight': "Move right";
|
|
22
|
+
readonly 'table.noMatch': "No matching results";
|
|
23
|
+
readonly 'table.pickDate': "Select date";
|
|
24
|
+
readonly 'table.remove': "Remove {label}";
|
|
25
|
+
readonly 'table.search': "Search";
|
|
26
|
+
readonly 'table.searchPeople': "Search people or groups…";
|
|
27
|
+
readonly 'table.selectedRows': "{count} selected";
|
|
28
|
+
readonly 'table.set': "Set";
|
|
29
|
+
readonly 'table.setField': "Set {title}";
|
|
30
|
+
readonly 'table.showColumn': "Show {title}";
|
|
31
|
+
readonly 'table.startDate': "Start date";
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { _default as default };
|
|
35
|
+
//# sourceMappingURL=common.d.mts.map
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
//#region src/i18n/resources/en/common.ts
|
|
2
|
+
var common_default = {
|
|
3
|
+
"common.cancel": "Cancel",
|
|
4
|
+
"common.confirm": "Confirm",
|
|
5
|
+
"common.delete": "Delete",
|
|
6
|
+
"common.edit": "Edit",
|
|
7
|
+
"common.empty": "(empty)",
|
|
8
|
+
"table.addByEnter": "Press Enter to add",
|
|
9
|
+
"table.address.city": "City",
|
|
10
|
+
"table.address.country": "Country",
|
|
11
|
+
"table.address.postcode": "Postal code",
|
|
12
|
+
"table.address.state": "State / Province",
|
|
13
|
+
"table.address.street": "Street",
|
|
14
|
+
"table.address.street2": "Address line 2",
|
|
15
|
+
"table.clearSelection": "Clear selection",
|
|
16
|
+
"table.copy": "Copy",
|
|
17
|
+
"table.endDate": "End date",
|
|
18
|
+
"table.fieldSettings": "Column settings",
|
|
19
|
+
"table.hideColumn": "Hide {title}",
|
|
20
|
+
"table.moveLeft": "Move left",
|
|
21
|
+
"table.moveRight": "Move right",
|
|
22
|
+
"table.noMatch": "No matching results",
|
|
23
|
+
"table.pickDate": "Select date",
|
|
24
|
+
"table.remove": "Remove {label}",
|
|
25
|
+
"table.search": "Search",
|
|
26
|
+
"table.searchPeople": "Search people or groups…",
|
|
27
|
+
"table.selectedRows": "{count} selected",
|
|
28
|
+
"table.set": "Set",
|
|
29
|
+
"table.setField": "Set {title}",
|
|
30
|
+
"table.showColumn": "Show {title}",
|
|
31
|
+
"table.startDate": "Start date"
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { common_default as default };
|
|
35
|
+
|
|
36
|
+
//# sourceMappingURL=common.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.mjs","names":[],"sources":["../../../../src/i18n/resources/en/common.ts"],"sourcesContent":["export default {\n 'common.cancel': 'Cancel',\n 'common.confirm': 'Confirm',\n 'common.delete': 'Delete',\n 'common.edit': 'Edit',\n 'common.empty': '(empty)',\n 'table.addByEnter': 'Press Enter to add',\n 'table.address.city': 'City',\n 'table.address.country': 'Country',\n 'table.address.postcode': 'Postal code',\n 'table.address.state': 'State / Province',\n 'table.address.street': 'Street',\n 'table.address.street2': 'Address line 2',\n 'table.clearSelection': 'Clear selection',\n 'table.copy': 'Copy',\n 'table.endDate': 'End date',\n 'table.fieldSettings': 'Column settings',\n 'table.hideColumn': 'Hide {title}',\n 'table.moveLeft': 'Move left',\n 'table.moveRight': 'Move right',\n 'table.noMatch': 'No matching results',\n 'table.pickDate': 'Select date',\n 'table.remove': 'Remove {label}',\n 'table.search': 'Search',\n 'table.searchPeople': 'Search people or groups…',\n 'table.selectedRows': '{count} selected',\n 'table.set': 'Set',\n 'table.setField': 'Set {title}',\n 'table.showColumn': 'Show {title}',\n 'table.startDate': 'Start date',\n} as const;\n"],"mappings":";AAAA,IAAA,iBAAe;CACb,iBAAiB;CACjB,kBAAkB;CAClB,iBAAiB;CACjB,eAAe;CACf,gBAAgB;CAChB,oBAAoB;CACpB,sBAAsB;CACtB,yBAAyB;CACzB,0BAA0B;CAC1B,uBAAuB;CACvB,wBAAwB;CACxB,yBAAyB;CACzB,wBAAwB;CACxB,cAAc;CACd,iBAAiB;CACjB,uBAAuB;CACvB,oBAAoB;CACpB,kBAAkB;CAClB,mBAAmB;CACnB,iBAAiB;CACjB,kBAAkB;CAClB,gBAAgB;CAChB,gBAAgB;CAChB,sBAAsB;CACtB,sBAAsB;CACtB,aAAa;CACb,kBAAkB;CAClB,oBAAoB;CACpB,mBAAmB;AACrB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { __exportAll } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import common_default from "./common.mjs";
|
|
3
|
+
//#region src/i18n/resources/en/index.ts
|
|
4
|
+
var en_exports = /* @__PURE__ */ __exportAll({ common: () => common_default });
|
|
5
|
+
//#endregion
|
|
6
|
+
export { common_default as common, en_exports };
|
|
7
|
+
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../../src/i18n/resources/en/index.ts"],"sourcesContent":["export { default as common } from './common';\n"],"mappings":""}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
//#region src/i18n/resources/zhCn/common.d.ts
|
|
2
|
+
declare const _default: {
|
|
3
|
+
readonly 'common.cancel': "取消";
|
|
4
|
+
readonly 'common.confirm': "确认";
|
|
5
|
+
readonly 'common.delete': "删除";
|
|
6
|
+
readonly 'common.edit': "编辑";
|
|
7
|
+
readonly 'common.empty': "(空)";
|
|
8
|
+
readonly 'table.addByEnter': "回车添加";
|
|
9
|
+
readonly 'table.address.city': "城市";
|
|
10
|
+
readonly 'table.address.country': "国家";
|
|
11
|
+
readonly 'table.address.postcode': "邮编";
|
|
12
|
+
readonly 'table.address.state': "州/省";
|
|
13
|
+
readonly 'table.address.street': "街道";
|
|
14
|
+
readonly 'table.address.street2': "地址2";
|
|
15
|
+
readonly 'table.clearSelection': "取消选择";
|
|
16
|
+
readonly 'table.copy': "复制";
|
|
17
|
+
readonly 'table.endDate': "结束日期";
|
|
18
|
+
readonly 'table.fieldSettings': "字段设置";
|
|
19
|
+
readonly 'table.hideColumn': "隐藏 {title}";
|
|
20
|
+
readonly 'table.moveLeft': "左移";
|
|
21
|
+
readonly 'table.moveRight': "右移";
|
|
22
|
+
readonly 'table.noMatch': "无匹配项";
|
|
23
|
+
readonly 'table.pickDate': "选择日期";
|
|
24
|
+
readonly 'table.remove': "移除 {label}";
|
|
25
|
+
readonly 'table.search': "搜索";
|
|
26
|
+
readonly 'table.searchPeople': "搜索人员或群组…";
|
|
27
|
+
readonly 'table.selectedRows': "已选 {count} 行";
|
|
28
|
+
readonly 'table.set': "设置";
|
|
29
|
+
readonly 'table.setField': "设置 {title}";
|
|
30
|
+
readonly 'table.showColumn': "显示 {title}";
|
|
31
|
+
readonly 'table.startDate': "开始日期";
|
|
32
|
+
};
|
|
33
|
+
//#endregion
|
|
34
|
+
export { _default as default };
|
|
35
|
+
//# sourceMappingURL=common.d.mts.map
|