@chenzy-design/tokens 0.3.0 → 0.4.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/dist/alias/index.d.ts +7 -2
- package/dist/alias/index.d.ts.map +1 -1
- package/dist/alias/index.js +22 -3
- package/dist/alias/index.js.map +1 -1
- package/dist/build.js +68 -1
- package/dist/build.js.map +1 -1
- package/dist/components/ai-chat-input.d.ts +225 -0
- package/dist/components/ai-chat-input.d.ts.map +1 -0
- package/dist/components/ai-chat-input.js +235 -0
- package/dist/components/ai-chat-input.js.map +1 -0
- package/dist/components/anchor.d.ts +183 -0
- package/dist/components/anchor.d.ts.map +1 -0
- package/dist/components/anchor.js +44 -0
- package/dist/components/anchor.js.map +1 -0
- package/dist/components/audio-player.d.ts +243 -0
- package/dist/components/audio-player.d.ts.map +1 -0
- package/dist/components/audio-player.js +253 -0
- package/dist/components/audio-player.js.map +1 -0
- package/dist/components/autocomplete.d.ts +105 -0
- package/dist/components/autocomplete.d.ts.map +1 -0
- package/dist/components/autocomplete.js +27 -0
- package/dist/components/autocomplete.js.map +1 -0
- package/dist/components/back-top.d.ts +18 -14
- package/dist/components/back-top.d.ts.map +1 -1
- package/dist/components/back-top.js +6 -14
- package/dist/components/back-top.js.map +1 -1
- package/dist/components/banner.d.ts +132 -22
- package/dist/components/banner.d.ts.map +1 -1
- package/dist/components/banner.js +29 -23
- package/dist/components/banner.js.map +1 -1
- package/dist/components/breadcrumb.d.ts +171 -0
- package/dist/components/breadcrumb.d.ts.map +1 -0
- package/dist/components/breadcrumb.js +41 -0
- package/dist/components/breadcrumb.js.map +1 -0
- package/dist/components/button.d.ts +1086 -17
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +211 -20
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.d.ts +270 -20
- package/dist/components/calendar.d.ts.map +1 -1
- package/dist/components/calendar.js +97 -20
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/carousel.d.ts +225 -0
- package/dist/components/carousel.d.ts.map +1 -0
- package/dist/components/carousel.js +54 -0
- package/dist/components/carousel.js.map +1 -0
- package/dist/components/cascader.d.ts +123 -0
- package/dist/components/cascader.d.ts.map +1 -0
- package/dist/components/cascader.js +31 -0
- package/dist/components/cascader.js.map +1 -0
- package/dist/components/chat.d.ts +693 -0
- package/dist/components/chat.d.ts.map +1 -0
- package/dist/components/chat.js +125 -0
- package/dist/components/chat.js.map +1 -0
- package/dist/components/checkbox.d.ts +348 -20
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +69 -21
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/color-picker.d.ts +144 -16
- package/dist/components/color-picker.d.ts.map +1 -1
- package/dist/components/color-picker.js +30 -16
- package/dist/components/color-picker.js.map +1 -1
- package/dist/components/cropper.d.ts +33 -0
- package/dist/components/cropper.d.ts.map +1 -0
- package/dist/components/cropper.js +33 -0
- package/dist/components/cropper.js.map +1 -0
- package/dist/components/data-display.d.ts +552 -29
- package/dist/components/data-display.d.ts.map +1 -1
- package/dist/components/data-display.js +123 -33
- package/dist/components/data-display.js.map +1 -1
- package/dist/components/date-picker.d.ts +378 -17
- package/dist/components/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker.js +73 -17
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/display.d.ts +1800 -39
- package/dist/components/display.d.ts.map +1 -1
- package/dist/components/display.js +347 -43
- package/dist/components/display.js.map +1 -1
- package/dist/components/divider.d.ts +114 -7
- package/dist/components/divider.d.ts.map +1 -1
- package/dist/components/divider.js +25 -7
- package/dist/components/divider.js.map +1 -1
- package/dist/components/dropdown.d.ts +225 -0
- package/dist/components/dropdown.d.ts.map +1 -0
- package/dist/components/dropdown.js +51 -0
- package/dist/components/dropdown.js.map +1 -0
- package/dist/components/feedback.d.ts +99 -0
- package/dist/components/feedback.d.ts.map +1 -0
- package/dist/components/feedback.js +24 -0
- package/dist/components/feedback.js.map +1 -0
- package/dist/components/float-button.d.ts +219 -0
- package/dist/components/float-button.d.ts.map +1 -0
- package/dist/components/float-button.js +47 -0
- package/dist/components/float-button.js.map +1 -0
- package/dist/components/form.d.ts +252 -11
- package/dist/components/form.d.ts.map +1 -1
- package/dist/components/form.js +51 -11
- package/dist/components/form.js.map +1 -1
- package/dist/components/grid.d.ts +125 -4
- package/dist/components/grid.d.ts.map +1 -1
- package/dist/components/grid.js +22 -4
- package/dist/components/grid.js.map +1 -1
- package/dist/components/highlight.d.ts +21 -0
- package/dist/components/highlight.d.ts.map +1 -0
- package/dist/components/highlight.js +6 -0
- package/dist/components/highlight.js.map +1 -0
- package/dist/components/hotkeys.d.ts +51 -0
- package/dist/components/hotkeys.d.ts.map +1 -0
- package/dist/components/hotkeys.js +14 -0
- package/dist/components/hotkeys.js.map +1 -0
- package/dist/components/image.d.ts +201 -0
- package/dist/components/image.d.ts.map +1 -0
- package/dist/components/image.js +210 -0
- package/dist/components/image.js.map +1 -0
- package/dist/components/index.d.ts +17992 -717
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +60 -12
- package/dist/components/index.js.map +1 -1
- package/dist/components/input-number.d.ts +129 -0
- package/dist/components/input-number.d.ts.map +1 -0
- package/dist/components/input-number.js +29 -0
- package/dist/components/input-number.js.map +1 -0
- package/dist/components/input.d.ts +582 -24
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +119 -26
- package/dist/components/input.js.map +1 -1
- package/dist/components/json-viewer.d.ts +183 -0
- package/dist/components/json-viewer.d.ts.map +1 -0
- package/dist/components/json-viewer.js +41 -0
- package/dist/components/json-viewer.js.map +1 -0
- package/dist/components/list.d.ts +144 -19
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +25 -21
- package/dist/components/list.js.map +1 -1
- package/dist/components/markdown-render.d.ts +129 -0
- package/dist/components/markdown-render.d.ts.map +1 -0
- package/dist/components/markdown-render.js +28 -0
- package/dist/components/markdown-render.js.map +1 -0
- package/dist/components/modal.d.ts +270 -16
- package/dist/components/modal.d.ts.map +1 -1
- package/dist/components/modal.js +56 -16
- package/dist/components/modal.js.map +1 -1
- package/dist/components/navigation.d.ts +312 -26
- package/dist/components/navigation.d.ts.map +1 -1
- package/dist/components/navigation.js +60 -29
- package/dist/components/navigation.js.map +1 -1
- package/dist/components/notification.d.ts +210 -30
- package/dist/components/notification.d.ts.map +1 -1
- package/dist/components/notification.js +40 -32
- package/dist/components/notification.js.map +1 -1
- package/dist/components/overflow-list.d.ts +54 -10
- package/dist/components/overflow-list.d.ts.map +1 -1
- package/dist/components/overflow-list.js +9 -10
- package/dist/components/overflow-list.js.map +1 -1
- package/dist/components/pagination.d.ts +249 -0
- package/dist/components/pagination.d.ts.map +1 -0
- package/dist/components/pagination.js +49 -0
- package/dist/components/pagination.js.map +1 -0
- package/dist/components/pincode.d.ts +51 -0
- package/dist/components/pincode.d.ts.map +1 -0
- package/dist/components/pincode.js +14 -0
- package/dist/components/pincode.js.map +1 -0
- package/dist/components/popconfirm.d.ts +138 -21
- package/dist/components/popconfirm.d.ts.map +1 -1
- package/dist/components/popconfirm.js +28 -21
- package/dist/components/popconfirm.js.map +1 -1
- package/dist/components/popover.d.ts +93 -0
- package/dist/components/popover.d.ts.map +1 -0
- package/dist/components/popover.js +37 -0
- package/dist/components/popover.js.map +1 -0
- package/dist/components/progress.d.ts +114 -15
- package/dist/components/progress.d.ts.map +1 -1
- package/dist/components/progress.js +26 -15
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio.d.ts +576 -18
- package/dist/components/radio.d.ts.map +1 -1
- package/dist/components/radio.js +114 -20
- package/dist/components/radio.js.map +1 -1
- package/dist/components/rating.d.ts +90 -7
- package/dist/components/rating.d.ts.map +1 -1
- package/dist/components/rating.js +22 -8
- package/dist/components/rating.js.map +1 -1
- package/dist/components/scroll-list.d.ts +252 -13
- package/dist/components/scroll-list.d.ts.map +1 -1
- package/dist/components/scroll-list.js +49 -13
- package/dist/components/scroll-list.js.map +1 -1
- package/dist/components/select.d.ts +306 -21
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +67 -22
- package/dist/components/select.js.map +1 -1
- package/dist/components/side-sheet.d.ts +186 -23
- package/dist/components/side-sheet.d.ts.map +1 -1
- package/dist/components/side-sheet.js +37 -23
- package/dist/components/side-sheet.js.map +1 -1
- package/dist/components/sidebar.d.ts +561 -0
- package/dist/components/sidebar.d.ts.map +1 -0
- package/dist/components/sidebar.js +106 -0
- package/dist/components/sidebar.js.map +1 -0
- package/dist/components/skeleton.d.ts +102 -10
- package/dist/components/skeleton.d.ts.map +1 -1
- package/dist/components/skeleton.js +23 -10
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.d.ts +180 -11
- package/dist/components/slider.d.ts.map +1 -1
- package/dist/components/slider.js +36 -11
- package/dist/components/slider.js.map +1 -1
- package/dist/components/space.d.ts +18 -4
- package/dist/components/space.d.ts.map +1 -1
- package/dist/components/space.js +4 -4
- package/dist/components/space.js.map +1 -1
- package/dist/components/spin.d.ts +42 -14
- package/dist/components/spin.d.ts.map +1 -1
- package/dist/components/spin.js +11 -14
- package/dist/components/spin.js.map +1 -1
- package/dist/components/steps.d.ts +567 -0
- package/dist/components/steps.d.ts.map +1 -0
- package/dist/components/steps.js +102 -0
- package/dist/components/steps.js.map +1 -0
- package/dist/components/switch.d.ts +312 -11
- package/dist/components/switch.d.ts.map +1 -1
- package/dist/components/switch.js +61 -11
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.d.ts +444 -18
- package/dist/components/table.d.ts.map +1 -1
- package/dist/components/table.js +78 -18
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.d.ts +470 -26
- package/dist/components/tabs.d.ts.map +1 -1
- package/dist/components/tabs.js +97 -22
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/tag-input.d.ts +273 -0
- package/dist/components/tag-input.d.ts.map +1 -0
- package/dist/components/tag-input.js +58 -0
- package/dist/components/tag-input.js.map +1 -0
- package/dist/components/tag.d.ts +264 -0
- package/dist/components/tag.d.ts.map +1 -0
- package/dist/components/tag.js +58 -0
- package/dist/components/tag.js.map +1 -0
- package/dist/components/time-picker.d.ts +81 -0
- package/dist/components/time-picker.d.ts.map +1 -0
- package/dist/components/time-picker.js +21 -0
- package/dist/components/time-picker.js.map +1 -0
- package/dist/components/toast.d.ts +210 -24
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/toast.js +44 -25
- package/dist/components/toast.js.map +1 -1
- package/dist/components/token-def.d.ts +27 -0
- package/dist/components/token-def.d.ts.map +1 -0
- package/dist/components/token-def.js +16 -0
- package/dist/components/token-def.js.map +1 -0
- package/dist/components/tooltip.d.ts +174 -27
- package/dist/components/tooltip.d.ts.map +1 -1
- package/dist/components/tooltip.js +41 -31
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/transfer.d.ts +264 -18
- package/dist/components/transfer.d.ts.map +1 -1
- package/dist/components/transfer.js +49 -19
- package/dist/components/transfer.js.map +1 -1
- package/dist/components/tree-select.d.ts +141 -0
- package/dist/components/tree-select.d.ts.map +1 -0
- package/dist/components/tree-select.js +31 -0
- package/dist/components/tree-select.js.map +1 -0
- package/dist/components/tree.d.ts +210 -22
- package/dist/components/tree.d.ts.map +1 -1
- package/dist/components/tree.js +56 -23
- package/dist/components/tree.js.map +1 -1
- package/dist/components/typography.d.ts +462 -14
- package/dist/components/typography.d.ts.map +1 -1
- package/dist/components/typography.js +90 -14
- package/dist/components/typography.js.map +1 -1
- package/dist/components/upload.d.ts +519 -0
- package/dist/components/upload.d.ts.map +1 -0
- package/dist/components/upload.js +97 -0
- package/dist/components/upload.js.map +1 -0
- package/dist/components/user-guide.d.ts +231 -0
- package/dist/components/user-guide.d.ts.map +1 -0
- package/dist/components/user-guide.js +48 -0
- package/dist/components/user-guide.js.map +1 -0
- package/dist/components/video-player.d.ts +417 -0
- package/dist/components/video-player.d.ts.map +1 -0
- package/dist/components/video-player.js +78 -0
- package/dist/components/video-player.js.map +1 -0
- package/dist/components/virtual.d.ts +54 -10
- package/dist/components/virtual.d.ts.map +1 -1
- package/dist/components/virtual.js +11 -12
- package/dist/components/virtual.js.map +1 -1
- package/dist/contrast-check.js +25 -19
- package/dist/contrast-check.js.map +1 -1
- package/dist/global/color.d.ts +102 -0
- package/dist/global/color.d.ts.map +1 -1
- package/dist/global/color.js +114 -0
- package/dist/global/color.js.map +1 -1
- package/dist/global/scales.d.ts +9 -0
- package/dist/global/scales.d.ts.map +1 -1
- package/dist/global/scales.js +14 -0
- package/dist/global/scales.js.map +1 -1
- package/dist/manifest.d.ts +36 -0
- package/dist/manifest.d.ts.map +1 -0
- package/dist/manifest.js +276 -0
- package/dist/manifest.js.map +1 -0
- package/dist/token-manifest.json +52730 -0
- package/dist/tokens.css +3094 -657
- package/package.json +8 -2
- package/dist/components/drawer.d.ts +0 -26
- package/dist/components/drawer.d.ts.map +0 -1
- package/dist/components/drawer.js +0 -26
- package/dist/components/drawer.js.map +0 -1
- package/dist/components/icon.d.ts +0 -16
- package/dist/components/icon.d.ts.map +0 -1
- package/dist/components/icon.js +0 -16
- package/dist/components/icon.js.map +0 -1
- package/dist/components/layout.d.ts +0 -21
- package/dist/components/layout.d.ts.map +0 -1
- package/dist/components/layout.js +0 -21
- package/dist/components/layout.js.map +0 -1
- package/dist/components/lottie-icon.d.ts +0 -13
- package/dist/components/lottie-icon.d.ts.map +0 -1
- package/dist/components/lottie-icon.js +0 -13
- package/dist/components/lottie-icon.js.map +0 -1
- package/dist/components/menu.d.ts +0 -21
- package/dist/components/menu.d.ts.map +0 -1
- package/dist/components/menu.js +0 -25
- package/dist/components/menu.js.map +0 -1
- package/dist/components/nav.d.ts +0 -17
- package/dist/components/nav.d.ts.map +0 -1
- package/dist/components/nav.js +0 -17
- package/dist/components/nav.js.map +0 -1
package/dist/contrast-check.js
CHANGED
|
@@ -20,8 +20,9 @@ import { aliasLight, aliasDark } from './alias/index.js';
|
|
|
20
20
|
const AA_NORMAL = 4.5;
|
|
21
21
|
/** Resolve an alias token to a concrete color for a given theme (dark inherits light). */
|
|
22
22
|
function resolve(token, theme) {
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
// 先查 alias 语义层;未命中则回退全局基元(palette,如纯白 white)。
|
|
24
|
+
const alias = theme === 'dark' ? (aliasDark[token] ?? aliasLight[token]) : aliasLight[token];
|
|
25
|
+
return (alias ?? palette[token]);
|
|
25
26
|
}
|
|
26
27
|
/** Parse #rrggbb / #rgb / rgb()/rgba() into RGBA (0-255 channels, 0-1 alpha). */
|
|
27
28
|
function parse(color) {
|
|
@@ -86,31 +87,36 @@ const PAIRS = [
|
|
|
86
87
|
{ theme: 'light', label: 'text-2 on bg-2', fg: 'color-text-2', bg: 'color-bg-2', exempt: true },
|
|
87
88
|
{ theme: 'light', label: 'text-2 on bg-3', fg: 'color-text-2', bg: 'color-bg-3', exempt: true },
|
|
88
89
|
// --- light: solid status buttons (white inverse text) — Semi-parity tradeoff ---
|
|
89
|
-
{ theme: 'light', label: 'text-inverse on success', fg: '
|
|
90
|
-
{ theme: 'light', label: 'text-inverse on warning', fg: '
|
|
91
|
-
{ theme: 'light', label: 'text-inverse on danger', fg: '
|
|
90
|
+
{ theme: 'light', label: 'text-inverse on success', fg: 'white', bg: 'color-success', exempt: true },
|
|
91
|
+
{ theme: 'light', label: 'text-inverse on warning', fg: 'white', bg: 'color-warning', exempt: true },
|
|
92
|
+
{ theme: 'light', label: 'text-inverse on danger', fg: 'white', bg: 'color-danger', exempt: true },
|
|
92
93
|
// --- dark: solid primary/status buttons (white inverse text) ---
|
|
93
94
|
// Semi's dark-mode primary fill is a bright blue (#54a9ff) that, like the
|
|
94
95
|
// status fills, does not clear AA under white text. Exempt for Semi parity.
|
|
95
|
-
{ theme: 'dark', label: 'text-inverse on primary', fg: '
|
|
96
|
-
{ theme: 'dark', label: 'text-inverse on primary-hover', fg: '
|
|
97
|
-
{ theme: 'dark', label: 'text-inverse on primary-active', fg: '
|
|
98
|
-
{ theme: 'dark', label: 'text-inverse on info', fg: '
|
|
99
|
-
{ theme: 'dark', label: 'text-inverse on success', fg: '
|
|
100
|
-
{ theme: 'dark', label: 'text-inverse on warning', fg: '
|
|
101
|
-
{ theme: 'dark', label: 'text-inverse on danger', fg: '
|
|
96
|
+
{ theme: 'dark', label: 'text-inverse on primary', fg: 'white', bg: 'color-primary', exempt: true },
|
|
97
|
+
{ theme: 'dark', label: 'text-inverse on primary-hover', fg: 'white', bg: 'color-primary-hover', exempt: true },
|
|
98
|
+
{ theme: 'dark', label: 'text-inverse on primary-active', fg: 'white', bg: 'color-primary-active', exempt: true },
|
|
99
|
+
{ theme: 'dark', label: 'text-inverse on info', fg: 'white', bg: 'color-info', exempt: true },
|
|
100
|
+
{ theme: 'dark', label: 'text-inverse on success', fg: 'white', bg: 'color-success', exempt: true },
|
|
101
|
+
{ theme: 'dark', label: 'text-inverse on warning', fg: 'white', bg: 'color-warning', exempt: true },
|
|
102
|
+
{ theme: 'dark', label: 'text-inverse on danger', fg: 'white', bg: 'color-danger', exempt: true },
|
|
102
103
|
// --- dark: primary as link/foreground on surfaces ---
|
|
103
104
|
{ theme: 'dark', label: 'primary link on bg-0', fg: 'color-primary', bg: 'color-bg-0' },
|
|
104
105
|
{ theme: 'dark', label: 'primary link on bg-1', fg: 'color-primary', bg: 'color-bg-1' },
|
|
105
106
|
// --- component consumption: solid status fills (Switch / Tag / Badge) ---
|
|
106
107
|
// White text on Semi status fills; exempt for Semi parity (see above).
|
|
107
|
-
{ theme: 'light', label: 'solid primary fill text', fg: '
|
|
108
|
-
{ theme: 'light', label: 'solid success fill text', fg: '
|
|
109
|
-
{ theme: 'light', label: 'solid warning fill text', fg: '
|
|
110
|
-
{ theme: 'light', label: 'solid danger fill text', fg: '
|
|
111
|
-
{ theme: 'dark', label: 'solid success fill text', fg: '
|
|
112
|
-
{ theme: 'dark', label: 'solid warning fill text', fg: '
|
|
113
|
-
{ theme: 'dark', label: 'solid danger fill text', fg: '
|
|
108
|
+
{ theme: 'light', label: 'solid primary fill text', fg: 'white', bg: 'color-primary' },
|
|
109
|
+
{ theme: 'light', label: 'solid success fill text', fg: 'white', bg: 'color-success', exempt: true },
|
|
110
|
+
{ theme: 'light', label: 'solid warning fill text', fg: 'white', bg: 'color-warning', exempt: true },
|
|
111
|
+
{ theme: 'light', label: 'solid danger fill text', fg: 'white', bg: 'color-danger', exempt: true },
|
|
112
|
+
{ theme: 'dark', label: 'solid success fill text', fg: 'white', bg: 'color-success', exempt: true },
|
|
113
|
+
{ theme: 'dark', label: 'solid warning fill text', fg: 'white', bg: 'color-warning', exempt: true },
|
|
114
|
+
{ theme: 'dark', label: 'solid danger fill text', fg: 'white', bg: 'color-danger', exempt: true },
|
|
115
|
+
// NOTE: FloatButton `colorful` renders white text on the `color-ai-general`
|
|
116
|
+
// linear-gradient (Semi parity). A gradient has no single background color,
|
|
117
|
+
// so its contrast cannot be computed by parse() — it is intentionally NOT
|
|
118
|
+
// added as a PAIR here (parse() would throw on the gradient string). Semi
|
|
119
|
+
// parity exempt by design, same tradeoff as the solid status fills above.
|
|
114
120
|
];
|
|
115
121
|
let bodyFailures = 0;
|
|
116
122
|
const lines = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contrast-check.js","sourceRoot":"","sources":["../src/contrast-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,OAAO,
|
|
1
|
+
{"version":3,"file":"contrast-check.js","sourceRoot":"","sources":["../src/contrast-check.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AACH,OAAO,EAAE,OAAO,EAAuB,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAiB,MAAM,kBAAkB,CAAC;AAKxE,MAAM,SAAS,GAAG,GAAG,CAAC;AAEtB,0FAA0F;AAC1F,SAAS,OAAO,CAAC,KAAe,EAAE,KAAuB;IACvD,8CAA8C;IAC9C,MAAM,KAAK,GAAG,KAAK,KAAK,MAAM,C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AC9B,OAAO,CAAC,GAAG,CACT,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,QAAQ,KAAK,YAAY,2BAA2B,CACtF,CAAC;AAEF,mEAAmE;AACnE,KAAK,OAAO,CAAC;AAEb,OAAO,CAAC,IAAI,CAAC,YAAY,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC"}
|
package/dist/global/color.d.ts
CHANGED
|
@@ -68,6 +68,108 @@ export declare const palette: {
|
|
|
68
68
|
readonly 'yellow-7': "#a78b00";
|
|
69
69
|
readonly 'yellow-8': "#7d6a00";
|
|
70
70
|
readonly 'yellow-9': "#534800";
|
|
71
|
+
readonly 'amber-0': "#fefbeb";
|
|
72
|
+
readonly 'amber-1': "#fcf5ce";
|
|
73
|
+
readonly 'amber-2': "#f9e89e";
|
|
74
|
+
readonly 'amber-3': "#f6d86f";
|
|
75
|
+
readonly 'amber-4': "#f3c641";
|
|
76
|
+
readonly 'amber-5': "#f0b114";
|
|
77
|
+
readonly 'amber-6': "#c88a0f";
|
|
78
|
+
readonly 'amber-7': "#a0660a";
|
|
79
|
+
readonly 'amber-8': "#784606";
|
|
80
|
+
readonly 'amber-9': "#502b03";
|
|
81
|
+
readonly 'cyan-0': "#e5f7f8";
|
|
82
|
+
readonly 'cyan-1': "#c2eff0";
|
|
83
|
+
readonly 'cyan-2': "#8adde2";
|
|
84
|
+
readonly 'cyan-3': "#58cbd3";
|
|
85
|
+
readonly 'cyan-4': "#2cb8c5";
|
|
86
|
+
readonly 'cyan-5': "#05a4b6";
|
|
87
|
+
readonly 'cyan-6': "#038698";
|
|
88
|
+
readonly 'cyan-7': "#016979";
|
|
89
|
+
readonly 'cyan-8': "#004d5b";
|
|
90
|
+
readonly 'cyan-9': "#00323d";
|
|
91
|
+
readonly 'indigo-0': "#eceff8";
|
|
92
|
+
readonly 'indigo-1': "#d1d8f0";
|
|
93
|
+
readonly 'indigo-2': "#a7b3e1";
|
|
94
|
+
readonly 'indigo-3': "#8090d3";
|
|
95
|
+
readonly 'indigo-4': "#5e6fc4";
|
|
96
|
+
readonly 'indigo-5': "#3f51b5";
|
|
97
|
+
readonly 'indigo-6': "#3342a1";
|
|
98
|
+
readonly 'indigo-7': "#28348c";
|
|
99
|
+
readonly 'indigo-8': "#1f2878";
|
|
100
|
+
readonly 'indigo-9': "#171d63";
|
|
101
|
+
readonly 'light-blue-0': "#e9f7fd";
|
|
102
|
+
readonly 'light-blue-1': "#c9ecfc";
|
|
103
|
+
readonly 'light-blue-2': "#95d8f8";
|
|
104
|
+
readonly 'light-blue-3': "#62c3f5";
|
|
105
|
+
readonly 'light-blue-4': "#30acf1";
|
|
106
|
+
readonly 'light-blue-5': "#0095ee";
|
|
107
|
+
readonly 'light-blue-6': "#007bca";
|
|
108
|
+
readonly 'light-blue-7': "#0063a7";
|
|
109
|
+
readonly 'light-blue-8': "#004b83";
|
|
110
|
+
readonly 'light-blue-9': "#00355f";
|
|
111
|
+
readonly 'light-green-0': "#f3f8ec";
|
|
112
|
+
readonly 'light-green-1': "#e3f0d0";
|
|
113
|
+
readonly 'light-green-2': "#c8e2a5";
|
|
114
|
+
readonly 'light-green-3': "#add37e";
|
|
115
|
+
readonly 'light-green-4': "#93c55b";
|
|
116
|
+
readonly 'light-green-5': "#7bb63c";
|
|
117
|
+
readonly 'light-green-6': "#649830";
|
|
118
|
+
readonly 'light-green-7': "#4e7926";
|
|
119
|
+
readonly 'light-green-8': "#395b1b";
|
|
120
|
+
readonly 'light-green-9': "#253d12";
|
|
121
|
+
readonly 'lime-0': "#f2fae6";
|
|
122
|
+
readonly 'lime-1': "#e3f6c5";
|
|
123
|
+
readonly 'lime-2': "#cbed8e";
|
|
124
|
+
readonly 'lime-3': "#b7e35b";
|
|
125
|
+
readonly 'lime-4': "#a7da2c";
|
|
126
|
+
readonly 'lime-5': "#9bd100";
|
|
127
|
+
readonly 'lime-6': "#7eae00";
|
|
128
|
+
readonly 'lime-7': "#638b00";
|
|
129
|
+
readonly 'lime-8': "#486800";
|
|
130
|
+
readonly 'lime-9': "#2f4600";
|
|
131
|
+
readonly 'pink-0': "#fdecef";
|
|
132
|
+
readonly 'pink-1': "#fbcfd8";
|
|
133
|
+
readonly 'pink-2': "#f6a0b5";
|
|
134
|
+
readonly 'pink-3': "#f27396";
|
|
135
|
+
readonly 'pink-4': "#ed487b";
|
|
136
|
+
readonly 'pink-5': "#e91e63";
|
|
137
|
+
readonly 'pink-6': "#c51356";
|
|
138
|
+
readonly 'pink-7': "#a20b48";
|
|
139
|
+
readonly 'pink-8': "#7e053a";
|
|
140
|
+
readonly 'pink-9': "#5a012b";
|
|
141
|
+
readonly 'purple-0': "#f7e9f7";
|
|
142
|
+
readonly 'purple-1': "#efcaf0";
|
|
143
|
+
readonly 'purple-2': "#dd9be0";
|
|
144
|
+
readonly 'purple-3': "#c96fd1";
|
|
145
|
+
readonly 'purple-4': "#b449c2";
|
|
146
|
+
readonly 'purple-5': "#9e28b3";
|
|
147
|
+
readonly 'purple-6': "#871e9e";
|
|
148
|
+
readonly 'purple-7': "#71168a";
|
|
149
|
+
readonly 'purple-8': "#5c0f75";
|
|
150
|
+
readonly 'purple-9': "#490a61";
|
|
151
|
+
readonly 'teal-0': "#e4f7f4";
|
|
152
|
+
readonly 'teal-1': "#c0f0e8";
|
|
153
|
+
readonly 'teal-2': "#87e0d3";
|
|
154
|
+
readonly 'teal-3': "#54d1c1";
|
|
155
|
+
readonly 'teal-4': "#27c2b0";
|
|
156
|
+
readonly 'teal-5': "#00b3a1";
|
|
157
|
+
readonly 'teal-6': "#009589";
|
|
158
|
+
readonly 'teal-7': "#00776f";
|
|
159
|
+
readonly 'teal-8': "#005955";
|
|
160
|
+
readonly 'teal-9': "#003c3a";
|
|
161
|
+
readonly 'violet-0': "#f3edf9";
|
|
162
|
+
readonly 'violet-1': "#e2d1f4";
|
|
163
|
+
readonly 'violet-2': "#c4a7e9";
|
|
164
|
+
readonly 'violet-3': "#a67fdd";
|
|
165
|
+
readonly 'violet-4': "#885bd2";
|
|
166
|
+
readonly 'violet-5': "#6a3ac7";
|
|
167
|
+
readonly 'violet-6': "#572fb3";
|
|
168
|
+
readonly 'violet-7': "#46259e";
|
|
169
|
+
readonly 'violet-8': "#361c8a";
|
|
170
|
+
readonly 'violet-9': "#281475";
|
|
171
|
+
readonly white: "rgba(255, 255, 255, 1)";
|
|
172
|
+
readonly black: "rgba(0, 0, 0, 1)";
|
|
71
173
|
};
|
|
72
174
|
export type GlobalColorKey = keyof typeof palette;
|
|
73
175
|
//# sourceMappingURL=color.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/global/color.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"color.d.ts","sourceRoot":"","sources":["../../src/global/color.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqLV,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC"}
|
package/dist/global/color.js
CHANGED
|
@@ -74,5 +74,119 @@ export const palette = {
|
|
|
74
74
|
'yellow-7': '#a78b00',
|
|
75
75
|
'yellow-8': '#7d6a00',
|
|
76
76
|
'yellow-9': '#534800',
|
|
77
|
+
// —— Semi 扩展色系(Avatar 语义色板消费;0-9 全档镜像 Semi _palette.scss 亮色段)——
|
|
78
|
+
// Amber
|
|
79
|
+
'amber-0': '#fefbeb',
|
|
80
|
+
'amber-1': '#fcf5ce',
|
|
81
|
+
'amber-2': '#f9e89e',
|
|
82
|
+
'amber-3': '#f6d86f',
|
|
83
|
+
'amber-4': '#f3c641',
|
|
84
|
+
'amber-5': '#f0b114',
|
|
85
|
+
'amber-6': '#c88a0f',
|
|
86
|
+
'amber-7': '#a0660a',
|
|
87
|
+
'amber-8': '#784606',
|
|
88
|
+
'amber-9': '#502b03',
|
|
89
|
+
// Cyan
|
|
90
|
+
'cyan-0': '#e5f7f8',
|
|
91
|
+
'cyan-1': '#c2eff0',
|
|
92
|
+
'cyan-2': '#8adde2',
|
|
93
|
+
'cyan-3': '#58cbd3',
|
|
94
|
+
'cyan-4': '#2cb8c5',
|
|
95
|
+
'cyan-5': '#05a4b6',
|
|
96
|
+
'cyan-6': '#038698',
|
|
97
|
+
'cyan-7': '#016979',
|
|
98
|
+
'cyan-8': '#004d5b',
|
|
99
|
+
'cyan-9': '#00323d',
|
|
100
|
+
// Indigo
|
|
101
|
+
'indigo-0': '#eceff8',
|
|
102
|
+
'indigo-1': '#d1d8f0',
|
|
103
|
+
'indigo-2': '#a7b3e1',
|
|
104
|
+
'indigo-3': '#8090d3',
|
|
105
|
+
'indigo-4': '#5e6fc4',
|
|
106
|
+
'indigo-5': '#3f51b5',
|
|
107
|
+
'indigo-6': '#3342a1',
|
|
108
|
+
'indigo-7': '#28348c',
|
|
109
|
+
'indigo-8': '#1f2878',
|
|
110
|
+
'indigo-9': '#171d63',
|
|
111
|
+
// Light Blue
|
|
112
|
+
'light-blue-0': '#e9f7fd',
|
|
113
|
+
'light-blue-1': '#c9ecfc',
|
|
114
|
+
'light-blue-2': '#95d8f8',
|
|
115
|
+
'light-blue-3': '#62c3f5',
|
|
116
|
+
'light-blue-4': '#30acf1',
|
|
117
|
+
'light-blue-5': '#0095ee',
|
|
118
|
+
'light-blue-6': '#007bca',
|
|
119
|
+
'light-blue-7': '#0063a7',
|
|
120
|
+
'light-blue-8': '#004b83',
|
|
121
|
+
'light-blue-9': '#00355f',
|
|
122
|
+
// Light Green
|
|
123
|
+
'light-green-0': '#f3f8ec',
|
|
124
|
+
'light-green-1': '#e3f0d0',
|
|
125
|
+
'light-green-2': '#c8e2a5',
|
|
126
|
+
'light-green-3': '#add37e',
|
|
127
|
+
'light-green-4': '#93c55b',
|
|
128
|
+
'light-green-5': '#7bb63c',
|
|
129
|
+
'light-green-6': '#649830',
|
|
130
|
+
'light-green-7': '#4e7926',
|
|
131
|
+
'light-green-8': '#395b1b',
|
|
132
|
+
'light-green-9': '#253d12',
|
|
133
|
+
// Lime
|
|
134
|
+
'lime-0': '#f2fae6',
|
|
135
|
+
'lime-1': '#e3f6c5',
|
|
136
|
+
'lime-2': '#cbed8e',
|
|
137
|
+
'lime-3': '#b7e35b',
|
|
138
|
+
'lime-4': '#a7da2c',
|
|
139
|
+
'lime-5': '#9bd100',
|
|
140
|
+
'lime-6': '#7eae00',
|
|
141
|
+
'lime-7': '#638b00',
|
|
142
|
+
'lime-8': '#486800',
|
|
143
|
+
'lime-9': '#2f4600',
|
|
144
|
+
// Pink
|
|
145
|
+
'pink-0': '#fdecef',
|
|
146
|
+
'pink-1': '#fbcfd8',
|
|
147
|
+
'pink-2': '#f6a0b5',
|
|
148
|
+
'pink-3': '#f27396',
|
|
149
|
+
'pink-4': '#ed487b',
|
|
150
|
+
'pink-5': '#e91e63',
|
|
151
|
+
'pink-6': '#c51356',
|
|
152
|
+
'pink-7': '#a20b48',
|
|
153
|
+
'pink-8': '#7e053a',
|
|
154
|
+
'pink-9': '#5a012b',
|
|
155
|
+
// Purple
|
|
156
|
+
'purple-0': '#f7e9f7',
|
|
157
|
+
'purple-1': '#efcaf0',
|
|
158
|
+
'purple-2': '#dd9be0',
|
|
159
|
+
'purple-3': '#c96fd1',
|
|
160
|
+
'purple-4': '#b449c2',
|
|
161
|
+
'purple-5': '#9e28b3',
|
|
162
|
+
'purple-6': '#871e9e',
|
|
163
|
+
'purple-7': '#71168a',
|
|
164
|
+
'purple-8': '#5c0f75',
|
|
165
|
+
'purple-9': '#490a61',
|
|
166
|
+
// Teal
|
|
167
|
+
'teal-0': '#e4f7f4',
|
|
168
|
+
'teal-1': '#c0f0e8',
|
|
169
|
+
'teal-2': '#87e0d3',
|
|
170
|
+
'teal-3': '#54d1c1',
|
|
171
|
+
'teal-4': '#27c2b0',
|
|
172
|
+
'teal-5': '#00b3a1',
|
|
173
|
+
'teal-6': '#009589',
|
|
174
|
+
'teal-7': '#00776f',
|
|
175
|
+
'teal-8': '#005955',
|
|
176
|
+
'teal-9': '#003c3a',
|
|
177
|
+
// Violet
|
|
178
|
+
'violet-0': '#f3edf9',
|
|
179
|
+
'violet-1': '#e2d1f4',
|
|
180
|
+
'violet-2': '#c4a7e9',
|
|
181
|
+
'violet-3': '#a67fdd',
|
|
182
|
+
'violet-4': '#885bd2',
|
|
183
|
+
'violet-5': '#6a3ac7',
|
|
184
|
+
'violet-6': '#572fb3',
|
|
185
|
+
'violet-7': '#46259e',
|
|
186
|
+
'violet-8': '#361c8a',
|
|
187
|
+
'violet-9': '#281475',
|
|
188
|
+
// 纯黑/纯白基元(对齐 Semi $white / $black = 255,255,255 / 0,0,0,供反色文字等直接消费)
|
|
189
|
+
white: 'rgba(255, 255, 255, 1)',
|
|
190
|
+
black: 'rgba(0, 0, 0, 1)',
|
|
77
191
|
};
|
|
78
192
|
//# sourceMappingURL=color.js.map
|
package/dist/global/color.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"color.js","sourceRoot":"","sources":["../../src/global/color.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,gDAAgD;IAChD,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QA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AAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,OAAO;IACP,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,QAAQ,EAAE,SAAS;IACnB,SAAS;IACT,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,UAAU,EAAE,SAAS;IACrB,oEAAoE;IACpE,KAAK,EAAE,wBAAwB;IAC/B,KAAK,EAAE,kBAAkB;CACjB,CAAC"}
|
package/dist/global/scales.d.ts
CHANGED
|
@@ -33,6 +33,9 @@ export declare const fontSize: {
|
|
|
33
33
|
readonly 'header-2': "28px";
|
|
34
34
|
readonly 'header-1': "32px";
|
|
35
35
|
};
|
|
36
|
+
export declare const fontFamily: {
|
|
37
|
+
readonly code: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace";
|
|
38
|
+
};
|
|
36
39
|
export declare const fontWeight: {
|
|
37
40
|
readonly light: "200";
|
|
38
41
|
readonly regular: "400";
|
|
@@ -57,6 +60,11 @@ export declare const motion: {
|
|
|
57
60
|
readonly 'duration-mid': "200ms";
|
|
58
61
|
readonly 'duration-slow': "320ms";
|
|
59
62
|
readonly 'ease-standard': "cubic-bezier(.4,0,.2,1)";
|
|
63
|
+
readonly 'duration-none': "0ms";
|
|
64
|
+
readonly 'delay-none': "0ms";
|
|
65
|
+
readonly 'ease-in': "ease-in";
|
|
66
|
+
readonly 'scale-none': "scale(1, 1)";
|
|
67
|
+
readonly 'rotate-none': "rotate(0deg)";
|
|
60
68
|
};
|
|
61
69
|
export declare const zIndex: {
|
|
62
70
|
readonly affix: "10";
|
|
@@ -87,6 +95,7 @@ export declare const sizing: {
|
|
|
87
95
|
readonly 'width-icon-extra-large': "24px";
|
|
88
96
|
readonly 'border-thickness': "0";
|
|
89
97
|
readonly 'border-thickness-control': "1px";
|
|
98
|
+
readonly 'border-thickness-control-focus': "1px";
|
|
90
99
|
};
|
|
91
100
|
/** Responsive breakpoints (min-width). Emitted as CSS vars AND used as build-time
|
|
92
101
|
* constants for media queries (CSS @media cannot use var()). See Grid/Layout specs. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../src/global/scales.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;CAOT,CAAC;AAGX,eAAO,MAAM,QAAQ;;;;;;;;;CASX,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;CASb,CAAC;AAGX,eAAO,MAAM,MAAM;;CAET,CAAC;AAEX,eAAO,MAAM,MAAM
|
|
1
|
+
{"version":3,"file":"scales.d.ts","sourceRoot":"","sources":["../../src/global/scales.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,eAAO,MAAM,OAAO;;;;;;;;;;;;CAYV,CAAC;AAGX,eAAO,MAAM,MAAM;;;;;;;CAOT,CAAC;AAGX,eAAO,MAAM,QAAQ;;;;;;;;;CASX,CAAC;AAGX,eAAO,MAAM,UAAU;;CAEb,CAAC;AAEX,eAAO,MAAM,UAAU;;;;;CAKb,CAAC;AAGX,eAAO,MAAM,UAAU;;;;;;;;;CASb,CAAC;AAGX,eAAO,MAAM,MAAM;;CAET,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;CAYT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAcT,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;;CAcT,CAAC;AAEX;wFACwF;AACxF,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC"}
|
package/dist/global/scales.js
CHANGED
|
@@ -36,6 +36,10 @@ export const fontSize = {
|
|
|
36
36
|
'header-2': '28px',
|
|
37
37
|
'header-1': '32px',
|
|
38
38
|
};
|
|
39
|
+
// 等宽字体族(code/kbd 等消费;跨组件共享的设计基元,直引 alias 不组件化)
|
|
40
|
+
export const fontFamily = {
|
|
41
|
+
code: "'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",
|
|
42
|
+
};
|
|
39
43
|
export const fontWeight = {
|
|
40
44
|
light: '200',
|
|
41
45
|
regular: '400',
|
|
@@ -62,6 +66,13 @@ export const motion = {
|
|
|
62
66
|
'duration-mid': '200ms',
|
|
63
67
|
'duration-slow': '320ms',
|
|
64
68
|
'ease-standard': 'cubic-bezier(.4,0,.2,1)',
|
|
69
|
+
// 组件 transition/transform token 的默认档(对齐 Semi --semi-transition_*-none /
|
|
70
|
+
// --semi-transform_scale-none):默认无动画,主题/DSM 可统一开启。
|
|
71
|
+
'duration-none': '0ms',
|
|
72
|
+
'delay-none': '0ms',
|
|
73
|
+
'ease-in': 'ease-in',
|
|
74
|
+
'scale-none': 'scale(1, 1)',
|
|
75
|
+
'rotate-none': 'rotate(0deg)', // 对齐 Semi --semi-transform-rotate-none(如 Select 箭头默认态)
|
|
65
76
|
};
|
|
66
77
|
export const zIndex = {
|
|
67
78
|
affix: '10',
|
|
@@ -93,6 +104,9 @@ export const sizing = {
|
|
|
93
104
|
'width-icon-extra-large': '24px',
|
|
94
105
|
'border-thickness': '0',
|
|
95
106
|
'border-thickness-control': '1px',
|
|
107
|
+
// 描边宽度 - focus 状态。对齐 Semi $border-thickness-control-focus(默认主题同为 1px),
|
|
108
|
+
// 独立 alias 让主题/DSM 可单独调聚焦态边框粗细(input/checkbox/select 等聚焦边框消费)。
|
|
109
|
+
'border-thickness-control-focus': '1px',
|
|
96
110
|
};
|
|
97
111
|
/** Responsive breakpoints (min-width). Emitted as CSS vars AND used as build-time
|
|
98
112
|
* constants for media queries (CSS @media cannot use var()). See Grid/Layout specs. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scales.js","sourceRoot":"","sources":["../../src/global/scales.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,uEAAuE;AACvE,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,IAAI,EAAE,GAAG;IACT,aAAa,EAAE,KAAK;IACpB,aAAa,EAAE,KAAK;IACpB,KAAK,EAAE,KAAK;IACZ,YAAY,EAAE,MAAM;IACpB,IAAI,EAAE,MAAM;IACZ,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,MAAM;IACb,aAAa,EAAE,MAAM;IACrB,aAAa,EAAE,MAAM;IACrB,IAAI,EAAE,MAAM,EAAE,sBAAsB;CAC5B,CAAC;AAEX,iEAAiE;AACjE,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,aAAa,EAAE,KAAK;IACpB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,KAAK;IACb,KAAK,EAAE,MAAM;IACb,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,QAAQ;CACN,CAAC;AAEX,yEAAyE;AACzE,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,KAAK,EAAE,MAAM;IACb,OAAO,EAAE,MAAM;IACf,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,MAAM;IAClB,UAAU,EAAE,MAAM;CACV,CAAC;AAEX,MAAM,CAAC,MAAM,UAAU,GAAG;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AAK,EAAE,IAAI;IACX,MAAM,EAAE,KAAK;IACb,sBAAsB;IACtB,aAAa,EAAE,KAAK;IACpB,KAAK,EAAE,MAAM;IACb,YAAY,EAAE,MAAM;IACpB,KAAK,EAAE,MAAM,EAAE,kBAAkB;IACjC,YAAY,EAAE,MAAM;IACpB,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,MAAM;IAChB,OAAO,EAAE,MAAM,EAAE,kBAAkB;IACnC,eAAe,EAAE,MAAM;IACvB,IAAI,EAAE,MAAM,EAAE,0BAA0B;CAChC,CAAC;AAEX;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,sBAAsB,EAAE,MAAM;IAC9B,wBAAwB,EAAE,MAAM;IAChC,sBAAsB,EAAE,MAAM;IAC9B,wBAAwB,EAAE,KAAK;IAC/B,kBAAkB,EAAE,MAAM;IAC1B,mBAAmB,EAAE,MAAM;IAC3B,kBAAkB,EAAE,MAAM;IAC1B,wBAAwB,EAAE,MAAM;IAChC,kBAAkB,EAAE,GAAG;IACvB,0BAA0B,EAAE,KAAK;IACjC,uEAAuE;IACvE,+DAA+D;IAC/D,gCAAgC,EAAE,KAAK;CAC/B,CAAC;AAEX;wFACwF;AACxF,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,OAAO;IACX,EAAE,EAAE,QAAQ;IACZ,GAAG,EAAE,QAAQ;CACL,CAAC"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DSM token manifest 生成器:从 TS token 源结构化产出 dist/token-manifest.json,
|
|
3
|
+
* 供 DSM 可视化编辑器消费。见 specs/00-foundation/dsm.spec.md §地基1。
|
|
4
|
+
*
|
|
5
|
+
* 相对 docs/scripts/build-tokens-detail.ts(事后正则解析 CSS)的优势:
|
|
6
|
+
* 直接从类型化 TS 源产出,category/label/引用链准确,且带反向依赖图 + 明暗双值。
|
|
7
|
+
*/
|
|
8
|
+
import { type TokenCategory, type TokenGroup } from './components/token-def.js';
|
|
9
|
+
export interface ManifestToken {
|
|
10
|
+
name: string;
|
|
11
|
+
value: string;
|
|
12
|
+
resolvedLight: string;
|
|
13
|
+
resolvedDark: string;
|
|
14
|
+
category: TokenCategory;
|
|
15
|
+
component: string | null;
|
|
16
|
+
label: string;
|
|
17
|
+
usage: string;
|
|
18
|
+
references: string[];
|
|
19
|
+
referencedBy: string[];
|
|
20
|
+
editable: boolean;
|
|
21
|
+
scope: 'global' | 'alias' | 'component';
|
|
22
|
+
}
|
|
23
|
+
export interface BuildManifestInput {
|
|
24
|
+
/** 已展开为 { '--cd-xxx': value } 的 global 层(纯字面量)。 */
|
|
25
|
+
global: Record<string, string>;
|
|
26
|
+
/** alias light / dark({ '--cd-xxx': value })。 */
|
|
27
|
+
aliasLight: Record<string, string>;
|
|
28
|
+
aliasDark: Record<string, string>;
|
|
29
|
+
/** component token(含 TokenDef 元数据),key 不含前缀。 */
|
|
30
|
+
component: TokenGroup;
|
|
31
|
+
}
|
|
32
|
+
export declare function buildManifest(input: BuildManifestInput): {
|
|
33
|
+
count: number;
|
|
34
|
+
tokens: ManifestToken[];
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"manifest.d.ts","sourceRoot":"","sources":["../src/manifest.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,EAAa,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,2BAA2B,CAAC;AAE3F,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,aAAa,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,QAAQ,EAAE,OAAO,CAAC;IAClB,KAAK,EAAE,QAAQ,GAAG,OAAO,GAAG,WAAW,CAAC;CACzC;AAoMD,MAAM,WAAW,kBAAkB;IACjC,mDAAmD;IACnD,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC/B,iDAAiD;IACjD,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAClC,gDAAgD;IAChD,SAAS,EAAE,UAAU,CAAC;CACvB;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,EAAE,CAAA;CAAE,CA4EnG"}
|