@chenzy-design/tokens 0.2.1 → 0.3.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 +72 -7
- package/dist/alias/index.d.ts.map +1 -1
- package/dist/alias/index.js +170 -29
- package/dist/alias/index.js.map +1 -1
- package/dist/build.js +2 -1
- package/dist/build.js.map +1 -1
- package/dist/components/back-top.d.ts +2 -2
- package/dist/components/back-top.js +2 -2
- package/dist/components/back-top.js.map +1 -1
- package/dist/components/banner.d.ts +10 -10
- package/dist/components/banner.js +11 -11
- package/dist/components/banner.js.map +1 -1
- package/dist/components/button.d.ts +11 -6
- package/dist/components/button.d.ts.map +1 -1
- package/dist/components/button.js +14 -6
- package/dist/components/button.js.map +1 -1
- package/dist/components/calendar.d.ts +3 -3
- package/dist/components/calendar.js +3 -3
- package/dist/components/calendar.js.map +1 -1
- package/dist/components/checkbox.d.ts +10 -7
- package/dist/components/checkbox.d.ts.map +1 -1
- package/dist/components/checkbox.js +10 -7
- package/dist/components/checkbox.js.map +1 -1
- package/dist/components/color-picker.d.ts +3 -3
- package/dist/components/color-picker.js +3 -3
- package/dist/components/color-picker.js.map +1 -1
- package/dist/components/data-display.d.ts +12 -8
- package/dist/components/data-display.d.ts.map +1 -1
- package/dist/components/data-display.js +14 -10
- package/dist/components/data-display.js.map +1 -1
- package/dist/components/date-picker.d.ts +5 -3
- package/dist/components/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker.js +5 -3
- package/dist/components/date-picker.js.map +1 -1
- package/dist/components/display.d.ts +26 -18
- package/dist/components/display.d.ts.map +1 -1
- package/dist/components/display.js +29 -21
- package/dist/components/display.js.map +1 -1
- package/dist/components/divider.d.ts +3 -3
- package/dist/components/divider.js +3 -3
- package/dist/components/divider.js.map +1 -1
- package/dist/components/drawer.d.ts +5 -5
- package/dist/components/drawer.js +5 -5
- package/dist/components/drawer.js.map +1 -1
- package/dist/components/form.d.ts +6 -6
- package/dist/components/form.js +6 -6
- package/dist/components/form.js.map +1 -1
- package/dist/components/index.d.ts +295 -235
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -1
- package/dist/components/input.d.ts +19 -9
- package/dist/components/input.d.ts.map +1 -1
- package/dist/components/input.js +21 -9
- package/dist/components/input.js.map +1 -1
- package/dist/components/layout.d.ts +1 -1
- package/dist/components/layout.js +1 -1
- package/dist/components/layout.js.map +1 -1
- package/dist/components/list.d.ts +7 -6
- package/dist/components/list.d.ts.map +1 -1
- package/dist/components/list.js +8 -7
- package/dist/components/list.js.map +1 -1
- package/dist/components/lottie-icon.d.ts +1 -1
- package/dist/components/lottie-icon.js +1 -1
- package/dist/components/lottie-icon.js.map +1 -1
- package/dist/components/menu.d.ts +8 -7
- package/dist/components/menu.d.ts.map +1 -1
- package/dist/components/menu.js +10 -7
- package/dist/components/menu.js.map +1 -1
- package/dist/components/modal.d.ts +9 -8
- package/dist/components/modal.d.ts.map +1 -1
- package/dist/components/modal.js +9 -8
- package/dist/components/modal.js.map +1 -1
- package/dist/components/nav.d.ts +17 -0
- package/dist/components/nav.d.ts.map +1 -0
- package/dist/components/nav.js +17 -0
- package/dist/components/nav.js.map +1 -0
- package/dist/components/navigation.d.ts +12 -11
- package/dist/components/navigation.d.ts.map +1 -1
- package/dist/components/navigation.js +13 -12
- package/dist/components/navigation.js.map +1 -1
- package/dist/components/notification.d.ts +8 -7
- package/dist/components/notification.d.ts.map +1 -1
- package/dist/components/notification.js +8 -7
- package/dist/components/notification.js.map +1 -1
- package/dist/components/overflow-list.d.ts +4 -4
- package/dist/components/overflow-list.js +4 -4
- package/dist/components/overflow-list.js.map +1 -1
- package/dist/components/popconfirm.d.ts +10 -9
- package/dist/components/popconfirm.d.ts.map +1 -1
- package/dist/components/popconfirm.js +10 -9
- package/dist/components/popconfirm.js.map +1 -1
- package/dist/components/progress.d.ts +3 -3
- package/dist/components/progress.js +3 -3
- package/dist/components/progress.js.map +1 -1
- package/dist/components/radio.d.ts +9 -7
- package/dist/components/radio.d.ts.map +1 -1
- package/dist/components/radio.js +9 -7
- package/dist/components/radio.js.map +1 -1
- package/dist/components/rating.d.ts +3 -3
- package/dist/components/rating.d.ts.map +1 -1
- package/dist/components/rating.js +4 -3
- package/dist/components/rating.js.map +1 -1
- package/dist/components/scroll-list.d.ts +1 -1
- package/dist/components/scroll-list.js +1 -1
- package/dist/components/scroll-list.js.map +1 -1
- package/dist/components/select.d.ts +15 -13
- package/dist/components/select.d.ts.map +1 -1
- package/dist/components/select.js +16 -13
- package/dist/components/select.js.map +1 -1
- package/dist/components/side-sheet.d.ts +6 -6
- package/dist/components/side-sheet.js +6 -6
- package/dist/components/side-sheet.js.map +1 -1
- package/dist/components/skeleton.d.ts +4 -4
- package/dist/components/skeleton.js +4 -4
- package/dist/components/skeleton.js.map +1 -1
- package/dist/components/slider.d.ts +1 -1
- package/dist/components/slider.js +1 -1
- package/dist/components/slider.js.map +1 -1
- package/dist/components/space.d.ts +3 -3
- package/dist/components/space.js +3 -3
- package/dist/components/space.js.map +1 -1
- package/dist/components/spin.d.ts +1 -1
- package/dist/components/spin.js +1 -1
- package/dist/components/spin.js.map +1 -1
- package/dist/components/switch.d.ts +7 -7
- package/dist/components/switch.js +7 -7
- package/dist/components/switch.js.map +1 -1
- package/dist/components/table.d.ts +5 -5
- package/dist/components/table.js +5 -5
- package/dist/components/table.js.map +1 -1
- package/dist/components/tabs.d.ts +8 -8
- package/dist/components/tabs.js +9 -9
- package/dist/components/tabs.js.map +1 -1
- package/dist/components/toast.d.ts +7 -6
- package/dist/components/toast.d.ts.map +1 -1
- package/dist/components/toast.js +7 -6
- package/dist/components/toast.js.map +1 -1
- package/dist/components/tooltip.d.ts +10 -10
- package/dist/components/tooltip.js +10 -10
- package/dist/components/tooltip.js.map +1 -1
- package/dist/components/transfer.d.ts +6 -5
- package/dist/components/transfer.d.ts.map +1 -1
- package/dist/components/transfer.js +7 -6
- package/dist/components/transfer.js.map +1 -1
- package/dist/components/tree.d.ts +6 -5
- package/dist/components/tree.d.ts.map +1 -1
- package/dist/components/tree.js +6 -5
- package/dist/components/tree.js.map +1 -1
- package/dist/components/typography.d.ts +7 -5
- package/dist/components/typography.d.ts.map +1 -1
- package/dist/components/typography.js +7 -5
- package/dist/components/typography.js.map +1 -1
- package/dist/components/virtual.d.ts +5 -5
- package/dist/components/virtual.d.ts.map +1 -1
- package/dist/components/virtual.js +6 -5
- package/dist/components/virtual.js.map +1 -1
- package/dist/global/color.d.ts +10 -0
- package/dist/global/color.d.ts.map +1 -1
- package/dist/global/color.js +11 -0
- package/dist/global/color.js.map +1 -1
- package/dist/global/scales.d.ts +58 -27
- package/dist/global/scales.d.ts.map +1 -1
- package/dist/global/scales.js +66 -29
- package/dist/global/scales.js.map +1 -1
- package/dist/tokens.css +494 -282
- package/dist/uno-theme.d.ts +9 -9
- package/dist/uno-theme.js +9 -9
- package/dist/uno-theme.js.map +1 -1
- package/package.json +1 -1
- package/dist/components/ai-chat-dialogue.d.ts +0 -15
- package/dist/components/ai-chat-dialogue.d.ts.map +0 -1
- package/dist/components/ai-chat-dialogue.js +0 -15
- package/dist/components/ai-chat-dialogue.js.map +0 -1
- package/dist/components/ai-chat-input.d.ts +0 -9
- package/dist/components/ai-chat-input.d.ts.map +0 -1
- package/dist/components/ai-chat-input.js +0 -9
- package/dist/components/ai-chat-input.js.map +0 -1
- package/dist/components/audio-player.d.ts +0 -11
- package/dist/components/audio-player.d.ts.map +0 -1
- package/dist/components/audio-player.js +0 -11
- package/dist/components/audio-player.js.map +0 -1
- package/dist/components/chat.d.ts +0 -8
- package/dist/components/chat.d.ts.map +0 -1
- package/dist/components/chat.js +0 -8
- package/dist/components/chat.js.map +0 -1
- package/dist/components/code-highlight.d.ts +0 -10
- package/dist/components/code-highlight.d.ts.map +0 -1
- package/dist/components/code-highlight.js +0 -10
- package/dist/components/code-highlight.js.map +0 -1
- package/dist/components/collapsible.d.ts +0 -5
- package/dist/components/collapsible.d.ts.map +0 -1
- package/dist/components/collapsible.js +0 -5
- package/dist/components/collapsible.js.map +0 -1
- package/dist/components/cropper.d.ts +0 -9
- package/dist/components/cropper.d.ts.map +0 -1
- package/dist/components/cropper.js +0 -9
- package/dist/components/cropper.js.map +0 -1
- package/dist/components/drag-move.d.ts +0 -5
- package/dist/components/drag-move.d.ts.map +0 -1
- package/dist/components/drag-move.js +0 -5
- package/dist/components/drag-move.js.map +0 -1
- package/dist/components/float-button.d.ts +0 -12
- package/dist/components/float-button.d.ts.map +0 -1
- package/dist/components/float-button.js +0 -12
- package/dist/components/float-button.js.map +0 -1
- package/dist/components/hot-keys.d.ts +0 -10
- package/dist/components/hot-keys.d.ts.map +0 -1
- package/dist/components/hot-keys.js +0 -10
- package/dist/components/hot-keys.js.map +0 -1
- package/dist/components/icon-button.d.ts +0 -5
- package/dist/components/icon-button.d.ts.map +0 -1
- package/dist/components/icon-button.js +0 -5
- package/dist/components/icon-button.js.map +0 -1
- package/dist/components/json-viewer.d.ts +0 -12
- package/dist/components/json-viewer.d.ts.map +0 -1
- package/dist/components/json-viewer.js +0 -12
- package/dist/components/json-viewer.js.map +0 -1
- package/dist/components/markdown-render.d.ts +0 -9
- package/dist/components/markdown-render.d.ts.map +0 -1
- package/dist/components/markdown-render.js +0 -9
- package/dist/components/markdown-render.js.map +0 -1
- package/dist/components/pin-code.d.ts +0 -11
- package/dist/components/pin-code.d.ts.map +0 -1
- package/dist/components/pin-code.js +0 -11
- package/dist/components/pin-code.js.map +0 -1
- package/dist/components/resizable.d.ts +0 -10
- package/dist/components/resizable.d.ts.map +0 -1
- package/dist/components/resizable.js +0 -10
- package/dist/components/resizable.js.map +0 -1
- package/dist/components/user-guide.d.ts +0 -9
- package/dist/components/user-guide.d.ts.map +0 -1
- package/dist/components/user-guide.js +0 -9
- package/dist/components/user-guide.js.map +0 -1
- package/dist/components/video-player.d.ts +0 -12
- package/dist/components/video-player.d.ts.map +0 -1
- package/dist/components/video-player.js +0 -12
- package/dist/components/video-player.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtual.js","sourceRoot":"","sources":["../../src/components/virtual.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,cAAc;IACd,iBAAiB,EAAE,sBAAsB;IACzC,wBAAwB,EAAE,wBAAwB;IAClD,WAAW;IACX,iBAAiB,EAAE
|
|
1
|
+
{"version":3,"file":"virtual.js","sourceRoot":"","sources":["../../src/components/virtual.ts"],"names":[],"mappings":"AAAA,6DAA6D;AAC7D,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,cAAc;IACd,iBAAiB,EAAE,sBAAsB;IACzC,wBAAwB,EAAE,wBAAwB;IAClD,WAAW;IACX,iBAAiB,EAAE,+BAA+B;IAClD,+CAA+C;IAC/C,0BAA0B,EAAE,0BAA0B;IACtD,iCAAiC,EAAE,wBAAwB;IAC3D,wBAAwB,EAAE,yBAAyB;IACnD,mBAAmB,EAAE,oBAAoB;IACzC,sBAAsB,EAAE,sBAAsB;IAC9C,qBAAqB,EAAE,MAAM;CACrB,CAAC"}
|
package/dist/global/color.d.ts
CHANGED
|
@@ -58,6 +58,16 @@ export declare const palette: {
|
|
|
58
58
|
readonly 'orange-7': "#a84a00";
|
|
59
59
|
readonly 'orange-8': "#7e3100";
|
|
60
60
|
readonly 'orange-9': "#541d00";
|
|
61
|
+
readonly 'yellow-0': "#fffdea";
|
|
62
|
+
readonly 'yellow-1': "#fefbcb";
|
|
63
|
+
readonly 'yellow-2': "#fdf398";
|
|
64
|
+
readonly 'yellow-3': "#fce865";
|
|
65
|
+
readonly 'yellow-4': "#fbda32";
|
|
66
|
+
readonly 'yellow-5': "#fac800";
|
|
67
|
+
readonly 'yellow-6': "#d0aa00";
|
|
68
|
+
readonly 'yellow-7': "#a78b00";
|
|
69
|
+
readonly 'yellow-8': "#7d6a00";
|
|
70
|
+
readonly 'yellow-9': "#534800";
|
|
61
71
|
};
|
|
62
72
|
export type GlobalColorKey = keyof typeof palette;
|
|
63
73
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmEV,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG,MAAM,OAAO,OAAO,CAAC"}
|
package/dist/global/color.js
CHANGED
|
@@ -63,5 +63,16 @@ export const palette = {
|
|
|
63
63
|
'orange-7': '#a84a00',
|
|
64
64
|
'orange-8': '#7e3100',
|
|
65
65
|
'orange-9': '#541d00',
|
|
66
|
+
// Yellow — 镜像 Semi yellow ramp(Rating 星色 yellow-5 用;warning 走 orange,二者独立)
|
|
67
|
+
'yellow-0': '#fffdea',
|
|
68
|
+
'yellow-1': '#fefbcb',
|
|
69
|
+
'yellow-2': '#fdf398',
|
|
70
|
+
'yellow-3': '#fce865',
|
|
71
|
+
'yellow-4': '#fbda32',
|
|
72
|
+
'yellow-5': '#fac800',
|
|
73
|
+
'yellow-6': '#d0aa00',
|
|
74
|
+
'yellow-7': '#a78b00',
|
|
75
|
+
'yellow-8': '#7d6a00',
|
|
76
|
+
'yellow-9': '#534800',
|
|
66
77
|
};
|
|
67
78
|
//# 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;IACh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+D;IAC/D,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,2EAA2E;IAC3E,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;CACb,CAAC"}
|
package/dist/global/scales.d.ts
CHANGED
|
@@ -3,44 +3,54 @@
|
|
|
3
3
|
* Atomic values only. Consume via Alias / Component tokens.
|
|
4
4
|
*/
|
|
5
5
|
export declare const spacing: {
|
|
6
|
-
readonly
|
|
7
|
-
readonly '
|
|
8
|
-
readonly '
|
|
9
|
-
readonly
|
|
10
|
-
readonly '
|
|
11
|
-
readonly
|
|
12
|
-
readonly '
|
|
13
|
-
readonly
|
|
6
|
+
readonly none: "0";
|
|
7
|
+
readonly 'super-tight': "2px";
|
|
8
|
+
readonly 'extra-tight': "4px";
|
|
9
|
+
readonly tight: "8px";
|
|
10
|
+
readonly 'base-tight': "12px";
|
|
11
|
+
readonly base: "16px";
|
|
12
|
+
readonly 'base-loose': "20px";
|
|
13
|
+
readonly loose: "24px";
|
|
14
|
+
readonly 'extra-loose': "32px";
|
|
15
|
+
readonly 'super-loose': "40px";
|
|
14
16
|
readonly '12': "48px";
|
|
15
17
|
};
|
|
16
18
|
export declare const radius: {
|
|
17
|
-
readonly '
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
19
|
+
readonly 'extra-small': "3px";
|
|
20
|
+
readonly small: "3px";
|
|
21
|
+
readonly medium: "6px";
|
|
22
|
+
readonly large: "12px";
|
|
23
|
+
readonly circle: "50%";
|
|
20
24
|
readonly full: "9999px";
|
|
21
25
|
};
|
|
22
26
|
export declare const fontSize: {
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
readonly '
|
|
26
|
-
readonly '
|
|
27
|
-
readonly '
|
|
28
|
-
readonly '
|
|
27
|
+
readonly small: "12px";
|
|
28
|
+
readonly regular: "14px";
|
|
29
|
+
readonly 'header-6': "16px";
|
|
30
|
+
readonly 'header-5': "18px";
|
|
31
|
+
readonly 'header-4': "20px";
|
|
32
|
+
readonly 'header-3': "24px";
|
|
33
|
+
readonly 'header-2': "28px";
|
|
34
|
+
readonly 'header-1': "32px";
|
|
29
35
|
};
|
|
30
36
|
export declare const fontWeight: {
|
|
37
|
+
readonly light: "200";
|
|
31
38
|
readonly regular: "400";
|
|
32
39
|
readonly medium: "500";
|
|
33
|
-
readonly
|
|
40
|
+
readonly bold: "600";
|
|
34
41
|
};
|
|
35
42
|
export declare const lineHeight: {
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
43
|
+
readonly small: "16px";
|
|
44
|
+
readonly regular: "20px";
|
|
45
|
+
readonly 'header-6': "22px";
|
|
46
|
+
readonly 'header-5': "24px";
|
|
47
|
+
readonly 'header-4': "28px";
|
|
48
|
+
readonly 'header-3': "32px";
|
|
49
|
+
readonly 'header-2': "40px";
|
|
50
|
+
readonly 'header-1': "44px";
|
|
39
51
|
};
|
|
40
52
|
export declare const shadow: {
|
|
41
|
-
readonly
|
|
42
|
-
readonly '2': "0 4px 12px rgba(0,0,0,.12)";
|
|
43
|
-
readonly '3': "0 8px 24px rgba(0,0,0,.16)";
|
|
53
|
+
readonly elevated: "0 0 1px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.1)";
|
|
44
54
|
};
|
|
45
55
|
export declare const motion: {
|
|
46
56
|
readonly 'duration-fast': "120ms";
|
|
@@ -51,11 +61,32 @@ export declare const motion: {
|
|
|
51
61
|
export declare const zIndex: {
|
|
52
62
|
readonly affix: "10";
|
|
53
63
|
readonly sticky: "900";
|
|
54
|
-
readonly
|
|
64
|
+
readonly 'table-fixed': "101";
|
|
55
65
|
readonly modal: "1000";
|
|
66
|
+
readonly 'modal-mask': "1000";
|
|
67
|
+
readonly toast: "1010";
|
|
68
|
+
readonly notification: "1010";
|
|
56
69
|
readonly popover: "1030";
|
|
57
|
-
readonly
|
|
58
|
-
readonly tooltip: "
|
|
70
|
+
readonly dropdown: "1050";
|
|
71
|
+
readonly tooltip: "1060";
|
|
72
|
+
readonly 'image-preview': "1070";
|
|
73
|
+
readonly drag: "2000";
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* Foundation 尺寸常量(对齐 Semi variables.scss:$height-control-* / $width-icon-* / $border-thickness-*)。
|
|
77
|
+
* 控件高度供 button/input/select 等消费(PR1 引入全局 token,组件迁移见后续)。
|
|
78
|
+
*/
|
|
79
|
+
export declare const sizing: {
|
|
80
|
+
readonly 'control-height-small': "24px";
|
|
81
|
+
readonly 'control-height-default': "32px";
|
|
82
|
+
readonly 'control-height-large': "40px";
|
|
83
|
+
readonly 'width-icon-extra-small': "8px";
|
|
84
|
+
readonly 'width-icon-small': "12px";
|
|
85
|
+
readonly 'width-icon-medium': "16px";
|
|
86
|
+
readonly 'width-icon-large': "20px";
|
|
87
|
+
readonly 'width-icon-extra-large': "24px";
|
|
88
|
+
readonly 'border-thickness': "0";
|
|
89
|
+
readonly 'border-thickness-control': "1px";
|
|
59
90
|
};
|
|
60
91
|
/** Responsive breakpoints (min-width). Emitted as CSS vars AND used as build-time
|
|
61
92
|
* 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;
|
|
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;;;;;CAKT,CAAC;AAEX,eAAO,MAAM,MAAM;;;;;;;;;;;;;CAcT,CAAC;AAEX;;;GAGG;AACH,eAAO,MAAM,MAAM;;;;;;;;;;;CAWT,CAAC;AAEX;wFACwF;AACxF,eAAO,MAAM,UAAU;;;;;;CAMb,CAAC"}
|
package/dist/global/scales.js
CHANGED
|
@@ -2,45 +2,60 @@
|
|
|
2
2
|
* Global non-color scales — spacing, radius, typography, shadow, motion, z-index.
|
|
3
3
|
* Atomic values only. Consume via Alias / Component tokens.
|
|
4
4
|
*/
|
|
5
|
+
// 命名对齐 Semi $spacing-*(emit 时 category=spacing → --cd-spacing-tight 等)
|
|
5
6
|
export const spacing = {
|
|
6
|
-
|
|
7
|
-
'
|
|
8
|
-
'
|
|
9
|
-
|
|
10
|
-
'
|
|
11
|
-
|
|
12
|
-
'
|
|
13
|
-
|
|
14
|
-
'
|
|
7
|
+
none: '0',
|
|
8
|
+
'super-tight': '2px',
|
|
9
|
+
'extra-tight': '4px',
|
|
10
|
+
tight: '8px',
|
|
11
|
+
'base-tight': '12px',
|
|
12
|
+
base: '16px',
|
|
13
|
+
'base-loose': '20px',
|
|
14
|
+
loose: '24px',
|
|
15
|
+
'extra-loose': '32px',
|
|
16
|
+
'super-loose': '40px',
|
|
17
|
+
'12': '48px', // Semi 无 48px 档,保留数字名
|
|
15
18
|
};
|
|
19
|
+
// 命名对齐 Semi $border-radius-*(build.ts category 改为 border-radius)
|
|
16
20
|
export const radius = {
|
|
17
|
-
'
|
|
18
|
-
|
|
19
|
-
|
|
21
|
+
'extra-small': '3px',
|
|
22
|
+
small: '3px',
|
|
23
|
+
medium: '6px',
|
|
24
|
+
large: '12px',
|
|
25
|
+
circle: '50%',
|
|
20
26
|
full: '9999px',
|
|
21
27
|
};
|
|
28
|
+
// 命名对齐 Semi $font-size-*(category=font-size → --cd-font-size-header-1 等)
|
|
22
29
|
export const fontSize = {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'
|
|
30
|
+
small: '12px',
|
|
31
|
+
regular: '14px',
|
|
32
|
+
'header-6': '16px',
|
|
33
|
+
'header-5': '18px',
|
|
34
|
+
'header-4': '20px',
|
|
35
|
+
'header-3': '24px',
|
|
36
|
+
'header-2': '28px',
|
|
37
|
+
'header-1': '32px',
|
|
29
38
|
};
|
|
30
39
|
export const fontWeight = {
|
|
40
|
+
light: '200',
|
|
31
41
|
regular: '400',
|
|
32
|
-
medium: '500',
|
|
33
|
-
|
|
42
|
+
medium: '500', // Semi 无 500,PR3 清理
|
|
43
|
+
bold: '600', // 对齐 Semi $font-weight-bold(原 semibold)
|
|
34
44
|
};
|
|
45
|
+
// 对齐 Semi _font.scss 的 font-size↔line-height 像素绑定
|
|
35
46
|
export const lineHeight = {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
small: '16px',
|
|
48
|
+
regular: '20px',
|
|
49
|
+
'header-6': '22px',
|
|
50
|
+
'header-5': '24px',
|
|
51
|
+
'header-4': '28px',
|
|
52
|
+
'header-3': '32px',
|
|
53
|
+
'header-2': '40px',
|
|
54
|
+
'header-1': '44px',
|
|
39
55
|
};
|
|
56
|
+
// 对齐 Semi $shadow-elevated 单值体系(弃我们的 1/2/3 三档)
|
|
40
57
|
export const shadow = {
|
|
41
|
-
|
|
42
|
-
'2': '0 4px 12px rgba(0,0,0,.12)',
|
|
43
|
-
'3': '0 8px 24px rgba(0,0,0,.16)',
|
|
58
|
+
elevated: '0 0 1px rgba(0,0,0,.3), 0 4px 14px rgba(0,0,0,.1)',
|
|
44
59
|
};
|
|
45
60
|
export const motion = {
|
|
46
61
|
'duration-fast': '120ms',
|
|
@@ -51,11 +66,33 @@ export const motion = {
|
|
|
51
66
|
export const zIndex = {
|
|
52
67
|
affix: '10',
|
|
53
68
|
sticky: '900',
|
|
54
|
-
|
|
69
|
+
// 对齐 Semi z-index 层级值
|
|
70
|
+
'table-fixed': '101',
|
|
55
71
|
modal: '1000',
|
|
72
|
+
'modal-mask': '1000',
|
|
73
|
+
toast: '1010', // 对齐 Semi(原 1080)
|
|
74
|
+
notification: '1010',
|
|
56
75
|
popover: '1030',
|
|
57
|
-
|
|
58
|
-
tooltip: '
|
|
76
|
+
dropdown: '1050',
|
|
77
|
+
tooltip: '1060', // 对齐 Semi(原 1070)
|
|
78
|
+
'image-preview': '1070',
|
|
79
|
+
drag: '2000', // transfer/tagInput 拖拽中元素
|
|
80
|
+
};
|
|
81
|
+
/**
|
|
82
|
+
* Foundation 尺寸常量(对齐 Semi variables.scss:$height-control-* / $width-icon-* / $border-thickness-*)。
|
|
83
|
+
* 控件高度供 button/input/select 等消费(PR1 引入全局 token,组件迁移见后续)。
|
|
84
|
+
*/
|
|
85
|
+
export const sizing = {
|
|
86
|
+
'control-height-small': '24px',
|
|
87
|
+
'control-height-default': '32px',
|
|
88
|
+
'control-height-large': '40px',
|
|
89
|
+
'width-icon-extra-small': '8px',
|
|
90
|
+
'width-icon-small': '12px',
|
|
91
|
+
'width-icon-medium': '16px',
|
|
92
|
+
'width-icon-large': '20px',
|
|
93
|
+
'width-icon-extra-large': '24px',
|
|
94
|
+
'border-thickness': '0',
|
|
95
|
+
'border-thickness-control': '1px',
|
|
59
96
|
};
|
|
60
97
|
/** Responsive breakpoints (min-width). Emitted as CSS vars AND used as build-time
|
|
61
98
|
* 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,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,GAAG,EAAE,KAAK;
|
|
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;IACxB,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,KAAK;IACd,MAAM,EAAE,KAAK,EAAE,oBAAoB;IACnC,IAAI,EAAE,KAAK,EAAE,wCAAwC;CAC7C,CAAC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