@vellira-ui/tokens 2.25.1 → 2.26.0
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/css/tokens.css +1217 -870
- package/dist/dark/components/button.d.ts +53 -53
- package/dist/dark/components/button.d.ts.map +1 -1
- package/dist/dark/components/button.js +58 -60
- package/dist/dark/components/checkbox.d.ts +17 -13
- package/dist/dark/components/checkbox.d.ts.map +1 -1
- package/dist/dark/components/checkbox.js +21 -10
- package/dist/dark/components/contextMenu.d.ts +89 -0
- package/dist/dark/components/contextMenu.d.ts.map +1 -0
- package/dist/dark/components/contextMenu.js +52 -0
- package/dist/dark/components/dropdown.d.ts +33 -13
- package/dist/dark/components/dropdown.d.ts.map +1 -1
- package/dist/dark/components/dropdown.js +30 -27
- package/dist/dark/components/formField.d.ts +2 -2
- package/dist/dark/components/formField.js +1 -1
- package/dist/dark/components/index.d.ts +1 -1
- package/dist/dark/components/index.d.ts.map +1 -1
- package/dist/dark/components/index.js +1 -1
- package/dist/dark/components/input.d.ts +26 -26
- package/dist/dark/components/input.js +11 -11
- package/dist/dark/components/modal.d.ts +21 -4
- package/dist/dark/components/modal.d.ts.map +1 -1
- package/dist/dark/components/modal.js +18 -4
- package/dist/dark/components/radio.d.ts +24 -19
- package/dist/dark/components/radio.d.ts.map +1 -1
- package/dist/dark/components/radio.js +19 -19
- package/dist/dark/components/select.d.ts +24 -14
- package/dist/dark/components/select.d.ts.map +1 -1
- package/dist/dark/components/select.js +31 -24
- package/dist/dark/components/tabs.d.ts +17 -12
- package/dist/dark/components/tabs.d.ts.map +1 -1
- package/dist/dark/components/tabs.js +9 -8
- package/dist/dark/components/tooltip.d.ts +2 -1
- package/dist/dark/components/tooltip.d.ts.map +1 -1
- package/dist/dark/components/tooltip.js +7 -7
- package/dist/dark/semantic/action.d.ts +30 -30
- package/dist/dark/semantic/action.d.ts.map +1 -1
- package/dist/dark/semantic/action.js +45 -45
- package/dist/dark/semantic/border.d.ts +5 -5
- package/dist/dark/semantic/border.d.ts.map +1 -1
- package/dist/dark/semantic/border.js +5 -5
- package/dist/dark/semantic/control.d.ts +21 -16
- package/dist/dark/semantic/control.d.ts.map +1 -1
- package/dist/dark/semantic/control.js +24 -19
- package/dist/dark/semantic/divider.d.ts +3 -3
- package/dist/dark/semantic/divider.js +3 -3
- package/dist/dark/semantic/focus.d.ts +6 -2
- package/dist/dark/semantic/focus.d.ts.map +1 -1
- package/dist/dark/semantic/focus.js +6 -2
- package/dist/dark/semantic/icons.d.ts +10 -11
- package/dist/dark/semantic/icons.d.ts.map +1 -1
- package/dist/dark/semantic/icons.js +10 -11
- package/dist/dark/semantic/index.d.ts +3 -0
- package/dist/dark/semantic/index.d.ts.map +1 -1
- package/dist/dark/semantic/index.js +3 -0
- package/dist/dark/{components → semantic}/menu.d.ts +14 -19
- package/dist/dark/semantic/menu.d.ts.map +1 -0
- package/dist/dark/semantic/menu.js +47 -0
- package/dist/dark/semantic/navigation.d.ts +8 -8
- package/dist/dark/semantic/navigation.d.ts.map +1 -1
- package/dist/dark/semantic/navigation.js +5 -4
- package/dist/dark/semantic/overlay.d.ts +17 -0
- package/dist/dark/semantic/overlay.d.ts.map +1 -0
- package/dist/dark/semantic/overlay.js +19 -0
- package/dist/dark/semantic/shadow.d.ts +8 -0
- package/dist/dark/semantic/shadow.d.ts.map +1 -0
- package/dist/dark/semantic/shadow.js +7 -0
- package/dist/dark/semantic/skeleton.d.ts +2 -2
- package/dist/dark/semantic/skeleton.js +2 -2
- package/dist/dark/semantic/status.d.ts +12 -8
- package/dist/dark/semantic/status.d.ts.map +1 -1
- package/dist/dark/semantic/status.js +12 -8
- package/dist/dark/semantic/surface.d.ts +4 -4
- package/dist/dark/semantic/surface.d.ts.map +1 -1
- package/dist/dark/semantic/surface.js +4 -4
- package/dist/dark/semantic/text.d.ts +6 -5
- package/dist/dark/semantic/text.d.ts.map +1 -1
- package/dist/dark/semantic/text.js +6 -5
- package/dist/generated/token-types.d.ts +5 -5
- package/dist/generated/token-types.d.ts.map +1 -1
- package/dist/generated/token-types.js +565 -132
- package/dist/highContrast/components/button.d.ts +70 -70
- package/dist/highContrast/components/button.d.ts.map +1 -1
- package/dist/highContrast/components/button.js +68 -69
- package/dist/highContrast/components/checkbox.d.ts +19 -15
- package/dist/highContrast/components/checkbox.d.ts.map +1 -1
- package/dist/highContrast/components/checkbox.js +22 -12
- package/dist/highContrast/components/contextMenu.d.ts +89 -0
- package/dist/highContrast/components/contextMenu.d.ts.map +1 -0
- package/dist/highContrast/components/contextMenu.js +52 -0
- package/dist/highContrast/components/dropdown.d.ts +45 -25
- package/dist/highContrast/components/dropdown.d.ts.map +1 -1
- package/dist/highContrast/components/dropdown.js +28 -37
- package/dist/highContrast/components/formField.d.ts +5 -5
- package/dist/highContrast/components/formField.js +2 -2
- package/dist/highContrast/components/index.d.ts +1 -1
- package/dist/highContrast/components/index.d.ts.map +1 -1
- package/dist/highContrast/components/index.js +1 -1
- package/dist/highContrast/components/input.d.ts +29 -29
- package/dist/highContrast/components/input.d.ts.map +1 -1
- package/dist/highContrast/components/input.js +16 -17
- package/dist/highContrast/components/modal.d.ts +22 -5
- package/dist/highContrast/components/modal.d.ts.map +1 -1
- package/dist/highContrast/components/modal.js +19 -6
- package/dist/highContrast/components/radio.d.ts +27 -22
- package/dist/highContrast/components/radio.d.ts.map +1 -1
- package/dist/highContrast/components/radio.js +20 -20
- package/dist/highContrast/components/select.d.ts +27 -17
- package/dist/highContrast/components/select.d.ts.map +1 -1
- package/dist/highContrast/components/select.js +31 -30
- package/dist/highContrast/components/tabs.d.ts +21 -16
- package/dist/highContrast/components/tabs.d.ts.map +1 -1
- package/dist/highContrast/components/tabs.js +18 -15
- package/dist/highContrast/components/tooltip.d.ts +3 -2
- package/dist/highContrast/components/tooltip.d.ts.map +1 -1
- package/dist/highContrast/components/tooltip.js +7 -7
- package/dist/highContrast/semantic/action.d.ts +48 -38
- package/dist/highContrast/semantic/action.d.ts.map +1 -1
- package/dist/highContrast/semantic/action.js +58 -49
- package/dist/highContrast/semantic/border.d.ts +4 -4
- package/dist/highContrast/semantic/border.d.ts.map +1 -1
- package/dist/highContrast/semantic/border.js +4 -4
- package/dist/highContrast/semantic/control.d.ts +23 -28
- package/dist/highContrast/semantic/control.d.ts.map +1 -1
- package/dist/highContrast/semantic/control.js +24 -29
- package/dist/highContrast/semantic/divider.d.ts +2 -2
- package/dist/highContrast/semantic/divider.js +2 -2
- package/dist/highContrast/semantic/focus.d.ts +6 -2
- package/dist/highContrast/semantic/focus.d.ts.map +1 -1
- package/dist/highContrast/semantic/focus.js +6 -2
- package/dist/highContrast/semantic/icons.d.ts +10 -11
- package/dist/highContrast/semantic/icons.d.ts.map +1 -1
- package/dist/highContrast/semantic/icons.js +11 -12
- package/dist/highContrast/semantic/index.d.ts +4 -0
- package/dist/highContrast/semantic/index.d.ts.map +1 -1
- package/dist/highContrast/semantic/index.js +4 -0
- package/dist/highContrast/{components → semantic}/menu.d.ts +20 -25
- package/dist/highContrast/semantic/menu.d.ts.map +1 -0
- package/dist/highContrast/semantic/menu.js +47 -0
- package/dist/highContrast/semantic/navigation.d.ts +14 -25
- package/dist/highContrast/semantic/navigation.d.ts.map +1 -1
- package/dist/highContrast/semantic/navigation.js +12 -23
- package/dist/highContrast/semantic/overlay.d.ts +17 -0
- package/dist/highContrast/semantic/overlay.d.ts.map +1 -0
- package/dist/highContrast/semantic/overlay.js +19 -0
- package/dist/highContrast/semantic/shadow.d.ts +8 -0
- package/dist/highContrast/semantic/shadow.d.ts.map +1 -0
- package/dist/highContrast/semantic/shadow.js +7 -0
- package/dist/highContrast/semantic/skeleton.d.ts +1 -1
- package/dist/highContrast/semantic/skeleton.js +1 -1
- package/dist/highContrast/semantic/status.d.ts +17 -13
- package/dist/highContrast/semantic/status.d.ts.map +1 -1
- package/dist/highContrast/semantic/status.js +17 -13
- package/dist/highContrast/semantic/surface.d.ts +6 -6
- package/dist/highContrast/semantic/surface.d.ts.map +1 -1
- package/dist/highContrast/semantic/surface.js +7 -7
- package/dist/highContrast/semantic/text.d.ts +7 -6
- package/dist/highContrast/semantic/text.d.ts.map +1 -1
- package/dist/highContrast/semantic/text.js +7 -6
- package/dist/light/components/button.d.ts +49 -49
- package/dist/light/components/button.d.ts.map +1 -1
- package/dist/light/components/button.js +62 -64
- package/dist/light/components/checkbox.d.ts +18 -14
- package/dist/light/components/checkbox.d.ts.map +1 -1
- package/dist/light/components/checkbox.js +16 -12
- package/dist/light/components/contextMenu.d.ts +89 -0
- package/dist/light/components/contextMenu.d.ts.map +1 -0
- package/dist/light/components/contextMenu.js +52 -0
- package/dist/light/components/dropdown.d.ts +38 -18
- package/dist/light/components/dropdown.d.ts.map +1 -1
- package/dist/light/components/dropdown.js +21 -31
- package/dist/light/components/formField.d.ts +7 -7
- package/dist/light/components/formField.js +1 -1
- package/dist/light/components/index.d.ts +1 -1
- package/dist/light/components/index.d.ts.map +1 -1
- package/dist/light/components/index.js +1 -1
- package/dist/light/components/input.d.ts +31 -31
- package/dist/light/components/input.d.ts.map +1 -1
- package/dist/light/components/input.js +14 -15
- package/dist/light/components/modal.d.ts +25 -8
- package/dist/light/components/modal.d.ts.map +1 -1
- package/dist/light/components/modal.js +19 -6
- package/dist/light/components/radio.d.ts +23 -18
- package/dist/light/components/radio.d.ts.map +1 -1
- package/dist/light/components/radio.js +21 -21
- package/dist/light/components/select.d.ts +28 -18
- package/dist/light/components/select.d.ts.map +1 -1
- package/dist/light/components/select.js +31 -26
- package/dist/light/components/tabs.d.ts +20 -15
- package/dist/light/components/tabs.d.ts.map +1 -1
- package/dist/light/components/tabs.js +14 -13
- package/dist/light/components/tooltip.d.ts +3 -2
- package/dist/light/components/tooltip.d.ts.map +1 -1
- package/dist/light/components/tooltip.js +7 -7
- package/dist/light/semantic/action.d.ts +30 -28
- package/dist/light/semantic/action.d.ts.map +1 -1
- package/dist/light/semantic/action.js +38 -36
- package/dist/light/semantic/border.d.ts +4 -4
- package/dist/light/semantic/border.d.ts.map +1 -1
- package/dist/light/semantic/border.js +4 -4
- package/dist/light/semantic/control.d.ts +18 -13
- package/dist/light/semantic/control.d.ts.map +1 -1
- package/dist/light/semantic/control.js +18 -13
- package/dist/light/semantic/divider.d.ts +3 -3
- package/dist/light/semantic/divider.js +3 -3
- package/dist/light/semantic/focus.d.ts +6 -2
- package/dist/light/semantic/focus.d.ts.map +1 -1
- package/dist/light/semantic/focus.js +6 -2
- package/dist/light/semantic/icons.d.ts +10 -11
- package/dist/light/semantic/icons.d.ts.map +1 -1
- package/dist/light/semantic/icons.js +10 -11
- package/dist/light/semantic/index.d.ts +3 -0
- package/dist/light/semantic/index.d.ts.map +1 -1
- package/dist/light/semantic/index.js +3 -0
- package/dist/light/{components → semantic}/menu.d.ts +17 -22
- package/dist/light/semantic/menu.d.ts.map +1 -0
- package/dist/light/semantic/menu.js +47 -0
- package/dist/light/semantic/navigation.d.ts +13 -9
- package/dist/light/semantic/navigation.d.ts.map +1 -1
- package/dist/light/semantic/navigation.js +15 -9
- package/dist/light/semantic/overlay.d.ts +17 -0
- package/dist/light/semantic/overlay.d.ts.map +1 -0
- package/dist/light/semantic/overlay.js +19 -0
- package/dist/light/semantic/shadow.d.ts +8 -0
- package/dist/light/semantic/shadow.d.ts.map +1 -0
- package/dist/light/semantic/shadow.js +7 -0
- package/dist/light/semantic/skeleton.d.ts +2 -2
- package/dist/light/semantic/skeleton.js +2 -2
- package/dist/light/semantic/status.d.ts +14 -10
- package/dist/light/semantic/status.d.ts.map +1 -1
- package/dist/light/semantic/status.js +14 -10
- package/dist/light/semantic/surface.d.ts +6 -6
- package/dist/light/semantic/surface.d.ts.map +1 -1
- package/dist/light/semantic/surface.js +7 -7
- package/dist/light/semantic/text.d.ts +7 -5
- package/dist/light/semantic/text.d.ts.map +1 -1
- package/dist/light/semantic/text.js +7 -5
- package/dist/primitives/colors.d.ts +3 -5
- package/dist/primitives/colors.d.ts.map +1 -1
- package/dist/primitives/colors.js +3 -5
- package/package.json +1 -1
- package/dist/dark/components/menu.d.ts.map +0 -1
- package/dist/dark/components/menu.js +0 -47
- package/dist/highContrast/components/menu.d.ts.map +0 -1
- package/dist/highContrast/components/menu.js +0 -48
- package/dist/light/components/menu.d.ts.map +0 -1
- package/dist/light/components/menu.js +0 -48
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { focus } from '../semantic/focus.js';
|
|
2
|
+
import { menu as semanticMenu } from '../semantic/menu.js';
|
|
3
|
+
import { shadow } from '../semantic/shadow.js';
|
|
4
|
+
import { text } from '../semantic/text.js';
|
|
5
|
+
export const contextMenu = {
|
|
6
|
+
content: {
|
|
7
|
+
bg: semanticMenu.background,
|
|
8
|
+
border: semanticMenu.border,
|
|
9
|
+
shadow: shadow.lg,
|
|
10
|
+
},
|
|
11
|
+
item: {
|
|
12
|
+
default: semanticMenu.item.default,
|
|
13
|
+
hover: semanticMenu.item.hover,
|
|
14
|
+
active: {
|
|
15
|
+
...semanticMenu.item.active,
|
|
16
|
+
ring: 'transparent',
|
|
17
|
+
},
|
|
18
|
+
pressed: semanticMenu.item.pressed,
|
|
19
|
+
focus: {
|
|
20
|
+
ring: focus.ring,
|
|
21
|
+
},
|
|
22
|
+
disabled: semanticMenu.item.disabled,
|
|
23
|
+
danger: semanticMenu.item.danger,
|
|
24
|
+
},
|
|
25
|
+
trigger: {
|
|
26
|
+
default: {
|
|
27
|
+
bg: 'transparent',
|
|
28
|
+
fg: text.interactive,
|
|
29
|
+
border: 'transparent',
|
|
30
|
+
},
|
|
31
|
+
hover: {
|
|
32
|
+
bg: semanticMenu.item.hover.bg,
|
|
33
|
+
fg: text.interactiveHover,
|
|
34
|
+
border: 'transparent',
|
|
35
|
+
ring: 'transparent',
|
|
36
|
+
},
|
|
37
|
+
focus: {
|
|
38
|
+
bg: 'transparent',
|
|
39
|
+
fg: text.interactive,
|
|
40
|
+
border: 'transparent',
|
|
41
|
+
ring: focus.ring,
|
|
42
|
+
},
|
|
43
|
+
disabled: {
|
|
44
|
+
bg: 'transparent',
|
|
45
|
+
fg: text.disabled,
|
|
46
|
+
border: 'transparent',
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
groupLabel: {
|
|
50
|
+
fg: text.secondary,
|
|
51
|
+
},
|
|
52
|
+
};
|
|
@@ -7,7 +7,7 @@ export declare const dropdown: {
|
|
|
7
7
|
};
|
|
8
8
|
readonly hover: {
|
|
9
9
|
readonly bg: "#F4F1FB";
|
|
10
|
-
readonly fg: "#
|
|
10
|
+
readonly fg: "#402C9F";
|
|
11
11
|
readonly border: "transparent";
|
|
12
12
|
readonly ring: "transparent";
|
|
13
13
|
};
|
|
@@ -15,60 +15,80 @@ export declare const dropdown: {
|
|
|
15
15
|
readonly bg: "transparent";
|
|
16
16
|
readonly fg: "#5037C8";
|
|
17
17
|
readonly border: "#5037C8";
|
|
18
|
-
readonly ring:
|
|
18
|
+
readonly ring: {
|
|
19
|
+
readonly color: "#5037C8";
|
|
20
|
+
readonly width: "2px";
|
|
21
|
+
readonly shadow: "0 0 8px rgba(99, 70, 232, 0.14)";
|
|
22
|
+
readonly offset: "#FFFFFF";
|
|
23
|
+
};
|
|
19
24
|
};
|
|
20
25
|
readonly disabled: {
|
|
21
26
|
readonly bg: "#F4F1FB";
|
|
22
|
-
readonly fg: "#
|
|
23
|
-
readonly border: "#
|
|
27
|
+
readonly fg: "#958CB0";
|
|
28
|
+
readonly border: "#E4DDF4";
|
|
24
29
|
};
|
|
25
30
|
};
|
|
26
31
|
readonly content: {
|
|
27
32
|
readonly bg: "#FFFFFF";
|
|
28
|
-
readonly fg: "#
|
|
33
|
+
readonly fg: "#3D3754";
|
|
29
34
|
readonly border: "#E4DDF4";
|
|
35
|
+
readonly shadow: "0 12px 40px rgba(24, 21, 33, 0.16), 0 2px 8px rgba(24, 21, 33, 0.1)";
|
|
30
36
|
};
|
|
31
37
|
readonly item: {
|
|
32
38
|
readonly default: {
|
|
33
39
|
readonly bg: "transparent";
|
|
34
|
-
readonly fg: "#
|
|
40
|
+
readonly fg: "#3D3754";
|
|
35
41
|
};
|
|
36
42
|
readonly hover: {
|
|
37
43
|
readonly bg: "#F4F1FB";
|
|
38
|
-
readonly fg: "#
|
|
44
|
+
readonly fg: "#3D3754";
|
|
39
45
|
};
|
|
40
46
|
readonly active: {
|
|
41
|
-
readonly bg: "#F4F1FB";
|
|
42
|
-
readonly fg: "#4F4867";
|
|
43
47
|
readonly ring: "transparent";
|
|
48
|
+
readonly bg: "#EEE8FA";
|
|
49
|
+
readonly fg: "#3D3754";
|
|
50
|
+
};
|
|
51
|
+
readonly pressed: {
|
|
52
|
+
readonly bg: "#E4DDF4";
|
|
53
|
+
readonly fg: "#3D3754";
|
|
44
54
|
};
|
|
45
55
|
readonly focus: {
|
|
46
|
-
readonly ring:
|
|
56
|
+
readonly ring: {
|
|
57
|
+
readonly color: "#5037C8";
|
|
58
|
+
readonly width: "2px";
|
|
59
|
+
readonly shadow: "0 0 8px rgba(99, 70, 232, 0.14)";
|
|
60
|
+
readonly offset: "#FFFFFF";
|
|
61
|
+
};
|
|
47
62
|
};
|
|
48
63
|
readonly disabled: {
|
|
49
64
|
readonly bg: "transparent";
|
|
50
|
-
readonly fg: "#
|
|
65
|
+
readonly fg: "#958CB0";
|
|
51
66
|
};
|
|
52
67
|
readonly danger: {
|
|
53
68
|
readonly default: {
|
|
54
|
-
readonly
|
|
69
|
+
readonly bg: "transparent";
|
|
70
|
+
readonly fg: "#BE123C";
|
|
55
71
|
};
|
|
56
72
|
readonly hover: {
|
|
57
|
-
readonly bg: "#
|
|
58
|
-
readonly fg: "#
|
|
73
|
+
readonly bg: "#FFF1F2";
|
|
74
|
+
readonly fg: "#BE123C";
|
|
59
75
|
};
|
|
60
76
|
readonly active: {
|
|
61
|
-
readonly bg: "#FFE4E6";
|
|
62
|
-
readonly fg: "#E11D48";
|
|
63
77
|
readonly ring: "transparent";
|
|
78
|
+
readonly bg: "#FFE4E6";
|
|
79
|
+
readonly fg: "#9F1239";
|
|
80
|
+
};
|
|
81
|
+
readonly disabled: {
|
|
82
|
+
readonly bg: "transparent";
|
|
83
|
+
readonly fg: "#958CB0";
|
|
64
84
|
};
|
|
65
85
|
};
|
|
66
86
|
};
|
|
67
87
|
readonly groupLabel: {
|
|
68
|
-
readonly fg: "#
|
|
88
|
+
readonly fg: "#6B6386";
|
|
69
89
|
};
|
|
70
90
|
readonly separator: {
|
|
71
|
-
readonly bg: "#
|
|
91
|
+
readonly bg: "#E4DDF4";
|
|
72
92
|
readonly fg: "#958CB0";
|
|
73
93
|
};
|
|
74
94
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/light/components/dropdown.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ
|
|
1
|
+
{"version":3,"file":"dropdown.d.ts","sourceRoot":"","sources":["../../../src/light/components/dropdown.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0EX,CAAC"}
|
|
@@ -1,74 +1,64 @@
|
|
|
1
1
|
import { border } from '../semantic/border.js';
|
|
2
2
|
import { focus } from '../semantic/focus.js';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { menu } from '../semantic/menu.js';
|
|
4
|
+
import { shadow } from '../semantic/shadow.js';
|
|
5
5
|
import { surface } from '../semantic/surface.js';
|
|
6
6
|
import { text } from '../semantic/text.js';
|
|
7
7
|
export const dropdown = {
|
|
8
8
|
trigger: {
|
|
9
9
|
default: {
|
|
10
10
|
bg: 'transparent',
|
|
11
|
-
fg: text.
|
|
11
|
+
fg: text.interactive,
|
|
12
12
|
border: 'transparent',
|
|
13
13
|
},
|
|
14
14
|
hover: {
|
|
15
|
-
bg:
|
|
16
|
-
fg:
|
|
15
|
+
bg: surface.hover,
|
|
16
|
+
fg: text.interactiveHover,
|
|
17
17
|
border: 'transparent',
|
|
18
18
|
ring: 'transparent',
|
|
19
19
|
},
|
|
20
20
|
focus: {
|
|
21
21
|
bg: 'transparent',
|
|
22
|
-
fg: text.
|
|
22
|
+
fg: text.interactive,
|
|
23
23
|
border: border.focus,
|
|
24
24
|
ring: focus.ring,
|
|
25
25
|
},
|
|
26
26
|
disabled: {
|
|
27
27
|
bg: surface.disabled,
|
|
28
28
|
fg: text.disabled,
|
|
29
|
-
border: border.
|
|
29
|
+
border: border.disabled,
|
|
30
30
|
},
|
|
31
31
|
},
|
|
32
32
|
content: {
|
|
33
|
-
bg:
|
|
34
|
-
fg:
|
|
35
|
-
border:
|
|
33
|
+
bg: menu.background,
|
|
34
|
+
fg: menu.item.default.fg,
|
|
35
|
+
border: menu.border,
|
|
36
|
+
shadow: shadow.lg,
|
|
36
37
|
},
|
|
37
38
|
item: {
|
|
38
|
-
default:
|
|
39
|
-
|
|
40
|
-
fg: text.primary,
|
|
41
|
-
},
|
|
42
|
-
hover: navigation.hover,
|
|
39
|
+
default: menu.item.default,
|
|
40
|
+
hover: menu.item.hover,
|
|
43
41
|
active: {
|
|
44
|
-
|
|
45
|
-
fg: navigation.hover.fg,
|
|
42
|
+
...menu.item.active,
|
|
46
43
|
ring: 'transparent',
|
|
47
44
|
},
|
|
45
|
+
pressed: menu.item.pressed,
|
|
48
46
|
focus: {
|
|
49
47
|
ring: focus.ring,
|
|
50
48
|
},
|
|
51
|
-
disabled:
|
|
52
|
-
bg: 'transparent',
|
|
53
|
-
fg: text.disabled,
|
|
54
|
-
},
|
|
49
|
+
disabled: menu.item.disabled,
|
|
55
50
|
danger: {
|
|
56
|
-
default:
|
|
57
|
-
|
|
58
|
-
},
|
|
59
|
-
hover: {
|
|
60
|
-
bg: status.error.bg,
|
|
61
|
-
fg: status.error.fg,
|
|
62
|
-
},
|
|
51
|
+
default: menu.item.danger.default,
|
|
52
|
+
hover: menu.item.danger.hover,
|
|
63
53
|
active: {
|
|
64
|
-
|
|
65
|
-
fg: status.error.fg,
|
|
54
|
+
...menu.item.danger.active,
|
|
66
55
|
ring: 'transparent',
|
|
67
56
|
},
|
|
57
|
+
disabled: menu.item.danger.disabled,
|
|
68
58
|
},
|
|
69
59
|
},
|
|
70
60
|
groupLabel: {
|
|
71
|
-
fg: text.
|
|
61
|
+
fg: text.secondary,
|
|
72
62
|
},
|
|
73
63
|
separator: {
|
|
74
64
|
bg: border.muted,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const formField: {
|
|
2
2
|
readonly label: {
|
|
3
|
-
readonly fg: "#
|
|
3
|
+
readonly fg: "#3D3754";
|
|
4
4
|
};
|
|
5
5
|
readonly description: {
|
|
6
6
|
readonly fg: "#6B6386";
|
|
@@ -10,25 +10,25 @@ export declare const formField: {
|
|
|
10
10
|
readonly fg: "#958CB0";
|
|
11
11
|
};
|
|
12
12
|
readonly error: {
|
|
13
|
-
readonly fg: "#
|
|
13
|
+
readonly fg: "#BE123C";
|
|
14
14
|
};
|
|
15
15
|
readonly success: {
|
|
16
16
|
readonly fg: "#047857";
|
|
17
17
|
};
|
|
18
18
|
readonly warning: {
|
|
19
|
-
readonly fg: "#
|
|
19
|
+
readonly fg: "#92400E";
|
|
20
20
|
};
|
|
21
21
|
readonly info: {
|
|
22
22
|
readonly fg: "#0C4A6E";
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
readonly requiredMark: {
|
|
26
|
-
readonly fg: "#
|
|
26
|
+
readonly fg: "#BE123C";
|
|
27
27
|
};
|
|
28
28
|
readonly disabled: {
|
|
29
|
-
readonly labelFg: "#
|
|
30
|
-
readonly descriptionFg: "#
|
|
31
|
-
readonly helperTextFg: "#
|
|
29
|
+
readonly labelFg: "#958CB0";
|
|
30
|
+
readonly descriptionFg: "#958CB0";
|
|
31
|
+
readonly helperTextFg: "#958CB0";
|
|
32
32
|
};
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=formField.d.ts.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { button } from './button.js';
|
|
2
2
|
export { checkbox } from './checkbox.js';
|
|
3
|
+
export { contextMenu } from './contextMenu.js';
|
|
3
4
|
export { dropdown } from './dropdown.js';
|
|
4
5
|
export { formField } from './formField.js';
|
|
5
6
|
export { input } from './input.js';
|
|
6
|
-
export { menu } from './menu.js';
|
|
7
7
|
export { modal } from './modal.js';
|
|
8
8
|
export { radio } from './radio.js';
|
|
9
9
|
export { select } from './select.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/light/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/light/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
export { button } from './button.js';
|
|
2
2
|
export { checkbox } from './checkbox.js';
|
|
3
|
+
export { contextMenu } from './contextMenu.js';
|
|
3
4
|
export { dropdown } from './dropdown.js';
|
|
4
5
|
export { formField } from './formField.js';
|
|
5
6
|
export { input } from './input.js';
|
|
6
|
-
export { menu } from './menu.js';
|
|
7
7
|
export { modal } from './modal.js';
|
|
8
8
|
export { radio } from './radio.js';
|
|
9
9
|
export { select } from './select.js';
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
export declare const input: {
|
|
2
2
|
readonly default: {
|
|
3
3
|
readonly bg: "transparent";
|
|
4
|
-
readonly fg: "#
|
|
4
|
+
readonly fg: "#3D3754";
|
|
5
5
|
readonly border: "#BBB2D2";
|
|
6
6
|
readonly placeholder: "#6B6386";
|
|
7
|
-
readonly icon: "#
|
|
7
|
+
readonly icon: "#5037C8";
|
|
8
8
|
};
|
|
9
9
|
readonly hover: {
|
|
10
|
-
readonly bg: "#
|
|
11
|
-
readonly fg: "#
|
|
10
|
+
readonly bg: "#F4F1FB";
|
|
11
|
+
readonly fg: "#3D3754";
|
|
12
12
|
readonly border: "#5037C8";
|
|
13
|
-
readonly placeholder: "#
|
|
14
|
-
readonly icon: "#
|
|
13
|
+
readonly placeholder: "#6B6386";
|
|
14
|
+
readonly icon: "#402C9F";
|
|
15
15
|
};
|
|
16
16
|
readonly focus: {
|
|
17
17
|
readonly bg: "transparent";
|
|
18
|
-
readonly fg: "#
|
|
18
|
+
readonly fg: "#3D3754";
|
|
19
19
|
readonly border: "#5037C8";
|
|
20
20
|
readonly ring: "#5037C8";
|
|
21
|
-
readonly placeholder: "#
|
|
22
|
-
readonly icon: "#
|
|
21
|
+
readonly placeholder: "#6B6386";
|
|
22
|
+
readonly icon: "#5037C8";
|
|
23
23
|
};
|
|
24
24
|
readonly disabled: {
|
|
25
25
|
readonly bg: "#F4F1FB";
|
|
26
|
-
readonly fg: "#
|
|
26
|
+
readonly fg: "#958CB0";
|
|
27
27
|
readonly border: "#E4DDF4";
|
|
28
|
-
readonly placeholder: "#
|
|
28
|
+
readonly placeholder: "#958CB0";
|
|
29
29
|
readonly icon: "#958CB0";
|
|
30
30
|
};
|
|
31
31
|
readonly error: {
|
|
32
|
-
readonly border: "#
|
|
33
|
-
readonly ring: "#
|
|
32
|
+
readonly border: "#E11D48";
|
|
33
|
+
readonly ring: "#F43F5E";
|
|
34
34
|
};
|
|
35
35
|
readonly success: {
|
|
36
|
-
readonly border: "#
|
|
37
|
-
readonly ring: "#
|
|
36
|
+
readonly border: "#10B981";
|
|
37
|
+
readonly ring: "#10B981";
|
|
38
38
|
};
|
|
39
39
|
readonly readOnly: {
|
|
40
|
-
readonly bg: "#
|
|
40
|
+
readonly bg: "#FDFCFF";
|
|
41
41
|
readonly fg: "#6B6386";
|
|
42
|
-
readonly border: "#
|
|
42
|
+
readonly border: "#E4DDF4";
|
|
43
43
|
readonly placeholder: "#958CB0";
|
|
44
|
-
readonly icon: "#
|
|
44
|
+
readonly icon: "#958CB0";
|
|
45
45
|
};
|
|
46
46
|
readonly icon: {
|
|
47
|
-
readonly default: "#
|
|
48
|
-
readonly primary: "#
|
|
49
|
-
readonly secondary: "#
|
|
50
|
-
readonly success: "#
|
|
51
|
-
readonly danger: "#
|
|
52
|
-
readonly muted: "#
|
|
53
|
-
readonly inverse: "#
|
|
54
|
-
readonly brand: "#
|
|
47
|
+
readonly default: "#3D3754";
|
|
48
|
+
readonly primary: "#5037C8";
|
|
49
|
+
readonly secondary: "#6B6386";
|
|
50
|
+
readonly success: "#047857";
|
|
51
|
+
readonly danger: "#BE123C";
|
|
52
|
+
readonly muted: "#958CB0";
|
|
53
|
+
readonly inverse: "#FFFFFF";
|
|
54
|
+
readonly brand: "#5037C8";
|
|
55
55
|
};
|
|
56
56
|
readonly clearButton: {
|
|
57
|
-
readonly fg: "#
|
|
58
|
-
readonly hoverFg: "#
|
|
59
|
-
readonly hoverBg:
|
|
60
|
-
readonly focusBg: "#
|
|
61
|
-
readonly pressedBg: "#
|
|
57
|
+
readonly fg: "#958CB0";
|
|
58
|
+
readonly hoverFg: "#BE123C";
|
|
59
|
+
readonly hoverBg: "#FFF1F2";
|
|
60
|
+
readonly focusBg: "#FDFCFF";
|
|
61
|
+
readonly pressedBg: "#EEE8FA";
|
|
62
62
|
};
|
|
63
63
|
};
|
|
64
64
|
//# sourceMappingURL=input.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/light/components/input.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.d.ts","sourceRoot":"","sources":["../../../src/light/components/input.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsER,CAAC"}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { border } from '../semantic/border.js';
|
|
2
|
-
import { control } from '../semantic/control.js';
|
|
3
2
|
import { focus } from '../semantic/focus.js';
|
|
4
3
|
import { icons } from '../semantic/icons.js';
|
|
5
4
|
import { status } from '../semantic/status.js';
|
|
@@ -14,19 +13,19 @@ export const input = {
|
|
|
14
13
|
icon: icons.brand,
|
|
15
14
|
},
|
|
16
15
|
hover: {
|
|
17
|
-
bg:
|
|
16
|
+
bg: surface.hover,
|
|
18
17
|
fg: text.primary,
|
|
19
|
-
border:
|
|
20
|
-
placeholder: text.
|
|
18
|
+
border: border.focus,
|
|
19
|
+
placeholder: text.secondary,
|
|
21
20
|
icon: icons.hover,
|
|
22
21
|
},
|
|
23
22
|
focus: {
|
|
24
23
|
bg: 'transparent',
|
|
25
24
|
fg: text.primary,
|
|
26
25
|
border: border.focus,
|
|
27
|
-
ring: focus.ring,
|
|
28
|
-
placeholder: text.
|
|
29
|
-
icon: icons.
|
|
26
|
+
ring: focus.ring.color,
|
|
27
|
+
placeholder: text.secondary,
|
|
28
|
+
icon: icons.brand,
|
|
30
29
|
},
|
|
31
30
|
disabled: {
|
|
32
31
|
bg: surface.disabled,
|
|
@@ -36,17 +35,17 @@ export const input = {
|
|
|
36
35
|
icon: icons.disabled,
|
|
37
36
|
},
|
|
38
37
|
error: {
|
|
39
|
-
border: status.error.
|
|
40
|
-
ring: status.error.
|
|
38
|
+
border: status.error.border,
|
|
39
|
+
ring: status.error.ring,
|
|
41
40
|
},
|
|
42
41
|
success: {
|
|
43
|
-
border: status.success.
|
|
44
|
-
ring: status.success.
|
|
42
|
+
border: status.success.border,
|
|
43
|
+
ring: status.success.ring,
|
|
45
44
|
},
|
|
46
45
|
readOnly: {
|
|
47
46
|
bg: surface.subtle,
|
|
48
47
|
fg: text.secondary,
|
|
49
|
-
border: border.
|
|
48
|
+
border: border.muted,
|
|
50
49
|
placeholder: text.muted,
|
|
51
50
|
icon: icons.muted,
|
|
52
51
|
},
|
|
@@ -61,10 +60,10 @@ export const input = {
|
|
|
61
60
|
brand: icons.brand,
|
|
62
61
|
},
|
|
63
62
|
clearButton: {
|
|
64
|
-
fg:
|
|
63
|
+
fg: icons.muted,
|
|
65
64
|
hoverFg: status.error.fg,
|
|
66
|
-
hoverBg:
|
|
67
|
-
focusBg: surface.
|
|
65
|
+
hoverBg: status.error.bg,
|
|
66
|
+
focusBg: surface.subtle,
|
|
68
67
|
pressedBg: surface.active,
|
|
69
68
|
},
|
|
70
69
|
};
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
export declare const modal: {
|
|
2
2
|
readonly overlay: {
|
|
3
|
-
readonly bg: "rgba(
|
|
3
|
+
readonly bg: "rgba(24, 21, 33, 0.52)";
|
|
4
4
|
};
|
|
5
5
|
readonly content: {
|
|
6
6
|
readonly bg: "#FFFFFF";
|
|
7
|
-
readonly fg: "#
|
|
8
|
-
readonly border: "#
|
|
7
|
+
readonly fg: "#3D3754";
|
|
8
|
+
readonly border: "#E4DDF4";
|
|
9
|
+
readonly shadow: "0 20px 60px rgba(24, 21, 33, 0.2), 0 4px 16px rgba(24, 21, 33, 0.14)";
|
|
9
10
|
};
|
|
10
11
|
readonly title: {
|
|
11
|
-
readonly fg: "#
|
|
12
|
+
readonly fg: "#3D3754";
|
|
12
13
|
};
|
|
13
14
|
readonly description: {
|
|
14
15
|
readonly fg: "#6B6386";
|
|
@@ -16,15 +17,31 @@ export declare const modal: {
|
|
|
16
17
|
readonly closeButton: {
|
|
17
18
|
readonly default: {
|
|
18
19
|
readonly bg: "transparent";
|
|
19
|
-
readonly fg: "#
|
|
20
|
+
readonly fg: "#6B6386";
|
|
21
|
+
readonly border: "transparent";
|
|
20
22
|
};
|
|
21
23
|
readonly hover: {
|
|
22
|
-
readonly bg: "#
|
|
23
|
-
readonly fg: "#
|
|
24
|
+
readonly bg: "#F4F1FB";
|
|
25
|
+
readonly fg: "#3D3754";
|
|
26
|
+
readonly border: "transparent";
|
|
27
|
+
};
|
|
28
|
+
readonly pressed: {
|
|
29
|
+
readonly bg: "#E4DDF4";
|
|
30
|
+
readonly fg: "#3D3754";
|
|
31
|
+
readonly border: "transparent";
|
|
32
|
+
};
|
|
33
|
+
readonly focus: {
|
|
34
|
+
readonly ring: {
|
|
35
|
+
readonly color: "#5037C8";
|
|
36
|
+
readonly width: "2px";
|
|
37
|
+
readonly shadow: "0 0 8px rgba(99, 70, 232, 0.14)";
|
|
38
|
+
readonly offset: "#FFFFFF";
|
|
39
|
+
};
|
|
24
40
|
};
|
|
25
41
|
readonly disabled: {
|
|
26
42
|
readonly bg: "transparent";
|
|
27
|
-
readonly fg: "#
|
|
43
|
+
readonly fg: "#958CB0";
|
|
44
|
+
readonly border: "transparent";
|
|
28
45
|
};
|
|
29
46
|
};
|
|
30
47
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/light/components/modal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/light/components/modal.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDR,CAAC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { focus } from '../semantic/focus.js';
|
|
2
|
+
import { overlay } from '../semantic/overlay.js';
|
|
3
|
+
import { shadow } from '../semantic/shadow.js';
|
|
3
4
|
import { surface } from '../semantic/surface.js';
|
|
4
5
|
import { text } from '../semantic/text.js';
|
|
5
6
|
export const modal = {
|
|
@@ -7,9 +8,10 @@ export const modal = {
|
|
|
7
8
|
bg: overlay.backdrop,
|
|
8
9
|
},
|
|
9
10
|
content: {
|
|
10
|
-
bg:
|
|
11
|
+
bg: overlay.modal.bg,
|
|
11
12
|
fg: text.primary,
|
|
12
|
-
border: border
|
|
13
|
+
border: overlay.modal.border,
|
|
14
|
+
shadow: shadow.xl,
|
|
13
15
|
},
|
|
14
16
|
title: {
|
|
15
17
|
fg: text.primary,
|
|
@@ -20,15 +22,26 @@ export const modal = {
|
|
|
20
22
|
closeButton: {
|
|
21
23
|
default: {
|
|
22
24
|
bg: 'transparent',
|
|
23
|
-
fg: text.
|
|
25
|
+
fg: text.secondary,
|
|
26
|
+
border: 'transparent',
|
|
24
27
|
},
|
|
25
28
|
hover: {
|
|
26
|
-
bg: surface.
|
|
29
|
+
bg: surface.hover,
|
|
27
30
|
fg: text.primary,
|
|
31
|
+
border: 'transparent',
|
|
32
|
+
},
|
|
33
|
+
pressed: {
|
|
34
|
+
bg: surface.pressed,
|
|
35
|
+
fg: text.primary,
|
|
36
|
+
border: 'transparent',
|
|
37
|
+
},
|
|
38
|
+
focus: {
|
|
39
|
+
ring: focus.ring,
|
|
28
40
|
},
|
|
29
41
|
disabled: {
|
|
30
42
|
bg: 'transparent',
|
|
31
43
|
fg: text.disabled,
|
|
44
|
+
border: 'transparent',
|
|
32
45
|
},
|
|
33
46
|
},
|
|
34
47
|
};
|