@vellira-ui/tokens 2.28.0 → 2.29.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 +208 -49
- package/dist/dark/components/button.d.ts +15 -15
- package/dist/dark/components/button.js +1 -1
- package/dist/dark/components/checkbox.d.ts +15 -15
- package/dist/dark/components/checkbox.js +1 -1
- package/dist/dark/components/radio.d.ts +35 -25
- package/dist/dark/components/radio.d.ts.map +1 -1
- package/dist/dark/components/radio.js +117 -27
- package/dist/factories/createButtonPalette.d.ts.map +1 -0
- package/dist/factories/createCheckboxPalette.d.ts.map +1 -0
- package/dist/factories/createRadioPalette.d.ts +19 -0
- package/dist/factories/createRadioPalette.d.ts.map +1 -0
- package/dist/factories/createRadioPalette.js +6 -0
- package/dist/factories/index.d.ts +4 -0
- package/dist/factories/index.d.ts.map +1 -0
- package/dist/factories/index.js +3 -0
- package/dist/generated/token-types.d.ts +4 -4
- package/dist/generated/token-types.d.ts.map +1 -1
- package/dist/generated/token-types.js +276 -64
- package/dist/highContrast/components/button.d.ts +15 -15
- package/dist/highContrast/components/button.js +1 -1
- package/dist/highContrast/components/checkbox.d.ts +15 -15
- package/dist/highContrast/components/checkbox.js +1 -1
- package/dist/highContrast/components/radio.d.ts +35 -25
- package/dist/highContrast/components/radio.d.ts.map +1 -1
- package/dist/highContrast/components/radio.js +117 -27
- package/dist/light/components/button.d.ts +15 -15
- package/dist/light/components/button.js +1 -1
- package/dist/light/components/checkbox.d.ts +15 -15
- package/dist/light/components/checkbox.js +1 -1
- package/dist/light/components/radio.d.ts +35 -25
- package/dist/light/components/radio.d.ts.map +1 -1
- package/dist/light/components/radio.js +117 -27
- package/package.json +1 -1
- package/dist/utils/createButtonPalette.d.ts.map +0 -1
- package/dist/utils/createCheckboxPalette.d.ts.map +0 -1
- /package/dist/{utils → factories}/createButtonPalette.d.ts +0 -0
- /package/dist/{utils → factories}/createButtonPalette.js +0 -0
- /package/dist/{utils → factories}/createCheckboxPalette.d.ts +0 -0
- /package/dist/{utils → factories}/createCheckboxPalette.js +0 -0
|
@@ -1,40 +1,124 @@
|
|
|
1
|
+
import { createRadioPalette } from '../../factories/createRadioPalette.js';
|
|
1
2
|
import { colors } from '../../primitives/colors.js';
|
|
2
3
|
import { border } from '../semantic/border.js';
|
|
3
4
|
import { control } from '../semantic/control.js';
|
|
4
5
|
import { focus } from '../semantic/focus.js';
|
|
5
6
|
import { status } from '../semantic/status.js';
|
|
6
|
-
import { surface } from '../semantic/surface.js';
|
|
7
7
|
import { text } from '../semantic/text.js';
|
|
8
|
+
const primary = createRadioPalette({
|
|
9
|
+
ring: colors.primary[400],
|
|
10
|
+
default: {
|
|
11
|
+
bg: colors.primary[600],
|
|
12
|
+
fg: colors.primary[50],
|
|
13
|
+
border: colors.primary[600],
|
|
14
|
+
labelFg: colors.primary[300],
|
|
15
|
+
},
|
|
16
|
+
hover: {
|
|
17
|
+
bg: colors.primary[700],
|
|
18
|
+
fg: colors.primary[200],
|
|
19
|
+
border: colors.primary[700],
|
|
20
|
+
labelFg: colors.primary[400],
|
|
21
|
+
},
|
|
22
|
+
pressed: {
|
|
23
|
+
bg: colors.primary[800],
|
|
24
|
+
fg: colors.primary[300],
|
|
25
|
+
border: colors.primary[800],
|
|
26
|
+
labelFg: colors.primary[500],
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
const neutral = createRadioPalette({
|
|
30
|
+
ring: colors.grayBlue[400],
|
|
31
|
+
default: {
|
|
32
|
+
bg: colors.grayBlue[50],
|
|
33
|
+
fg: colors.grayBlue[950],
|
|
34
|
+
border: colors.grayBlue[50],
|
|
35
|
+
labelFg: colors.grayBlue[50],
|
|
36
|
+
},
|
|
37
|
+
hover: {
|
|
38
|
+
bg: colors.grayBlue[200],
|
|
39
|
+
fg: colors.grayBlue[900],
|
|
40
|
+
border: colors.grayBlue[200],
|
|
41
|
+
labelFg: colors.gray[200],
|
|
42
|
+
},
|
|
43
|
+
pressed: {
|
|
44
|
+
bg: colors.grayBlue[400],
|
|
45
|
+
fg: colors.grayBlue[800],
|
|
46
|
+
border: colors.grayBlue[400],
|
|
47
|
+
labelFg: colors.grayBlue[300],
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
const success = createRadioPalette({
|
|
51
|
+
ring: colors.success[500],
|
|
52
|
+
default: {
|
|
53
|
+
bg: colors.success[500],
|
|
54
|
+
fg: colors.success[950],
|
|
55
|
+
border: colors.success[500],
|
|
56
|
+
labelFg: colors.success[300],
|
|
57
|
+
},
|
|
58
|
+
hover: {
|
|
59
|
+
bg: colors.success[600],
|
|
60
|
+
fg: colors.success[900],
|
|
61
|
+
border: colors.success[600],
|
|
62
|
+
labelFg: colors.success[400],
|
|
63
|
+
},
|
|
64
|
+
pressed: {
|
|
65
|
+
bg: colors.success[700],
|
|
66
|
+
fg: colors.success[800],
|
|
67
|
+
border: colors.success[700],
|
|
68
|
+
labelFg: colors.success[500],
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
const warning = createRadioPalette({
|
|
72
|
+
ring: colors.warning[500],
|
|
73
|
+
default: {
|
|
74
|
+
bg: colors.warning[500],
|
|
75
|
+
fg: colors.warning[950],
|
|
76
|
+
border: colors.warning[500],
|
|
77
|
+
labelFg: colors.warning[500],
|
|
78
|
+
},
|
|
79
|
+
hover: {
|
|
80
|
+
bg: colors.warning[600],
|
|
81
|
+
fg: colors.warning[900],
|
|
82
|
+
border: colors.warning[600],
|
|
83
|
+
labelFg: colors.warning[400],
|
|
84
|
+
},
|
|
85
|
+
pressed: {
|
|
86
|
+
bg: colors.warning[700],
|
|
87
|
+
fg: colors.warning[800],
|
|
88
|
+
border: colors.warning[700],
|
|
89
|
+
labelFg: colors.warning[600],
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
const danger = createRadioPalette({
|
|
93
|
+
ring: colors.error[500],
|
|
94
|
+
default: {
|
|
95
|
+
bg: colors.error[700],
|
|
96
|
+
fg: colors.error[50],
|
|
97
|
+
border: colors.error[700],
|
|
98
|
+
labelFg: colors.error[400],
|
|
99
|
+
},
|
|
100
|
+
hover: {
|
|
101
|
+
bg: colors.error[600],
|
|
102
|
+
fg: colors.error[200],
|
|
103
|
+
border: colors.error[600],
|
|
104
|
+
labelFg: colors.error[200],
|
|
105
|
+
},
|
|
106
|
+
pressed: {
|
|
107
|
+
bg: colors.error[800],
|
|
108
|
+
fg: colors.error[300],
|
|
109
|
+
border: colors.error[800],
|
|
110
|
+
labelFg: colors.error[300],
|
|
111
|
+
},
|
|
112
|
+
});
|
|
8
113
|
export const radio = {
|
|
9
114
|
default: control.default,
|
|
10
115
|
hover: control.hover,
|
|
11
116
|
pressed: control.active,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
labelFg: text.interactive,
|
|
18
|
-
},
|
|
19
|
-
hover: {
|
|
20
|
-
bg: surface.hover,
|
|
21
|
-
fg: colors.warning[200],
|
|
22
|
-
border: colors.warning[200],
|
|
23
|
-
labelFg: text.interactiveHover,
|
|
24
|
-
},
|
|
25
|
-
pressed: {
|
|
26
|
-
bg: surface.active,
|
|
27
|
-
fg: colors.warning[400],
|
|
28
|
-
border: colors.warning[400],
|
|
29
|
-
labelFg: text.interactiveActive,
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
bg: surface.disabled,
|
|
33
|
-
fg: text.disabled,
|
|
34
|
-
border: border.disabled,
|
|
35
|
-
labelFg: text.disabled,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
117
|
+
primary,
|
|
118
|
+
neutral,
|
|
119
|
+
success,
|
|
120
|
+
warning,
|
|
121
|
+
danger,
|
|
38
122
|
focus: {
|
|
39
123
|
ring: focus.ring.color,
|
|
40
124
|
border: border.focus,
|
|
@@ -45,4 +129,10 @@ export const radio = {
|
|
|
45
129
|
ring: status.error.ring,
|
|
46
130
|
},
|
|
47
131
|
disabled: control.disabled,
|
|
132
|
+
selectedDisabled: {
|
|
133
|
+
bg: control.disabled.bg,
|
|
134
|
+
fg: text.disabled,
|
|
135
|
+
border: border.disabled,
|
|
136
|
+
labelFg: text.disabled,
|
|
137
|
+
},
|
|
48
138
|
};
|
|
@@ -2,9 +2,9 @@ export declare const button: {
|
|
|
2
2
|
readonly primary: {
|
|
3
3
|
readonly ring: string;
|
|
4
4
|
readonly solid: {
|
|
5
|
-
default: import("../../
|
|
6
|
-
hover: import("../../
|
|
7
|
-
pressed: import("../../
|
|
5
|
+
default: import("../../factories/createButtonPalette.js").ButtonState;
|
|
6
|
+
hover: import("../../factories/createButtonPalette.js").ButtonState;
|
|
7
|
+
pressed: import("../../factories/createButtonPalette.js").ButtonState;
|
|
8
8
|
};
|
|
9
9
|
readonly outline: {
|
|
10
10
|
readonly default: {
|
|
@@ -78,9 +78,9 @@ export declare const button: {
|
|
|
78
78
|
readonly neutral: {
|
|
79
79
|
readonly ring: string;
|
|
80
80
|
readonly solid: {
|
|
81
|
-
default: import("../../
|
|
82
|
-
hover: import("../../
|
|
83
|
-
pressed: import("../../
|
|
81
|
+
default: import("../../factories/createButtonPalette.js").ButtonState;
|
|
82
|
+
hover: import("../../factories/createButtonPalette.js").ButtonState;
|
|
83
|
+
pressed: import("../../factories/createButtonPalette.js").ButtonState;
|
|
84
84
|
};
|
|
85
85
|
readonly outline: {
|
|
86
86
|
readonly default: {
|
|
@@ -154,9 +154,9 @@ export declare const button: {
|
|
|
154
154
|
readonly success: {
|
|
155
155
|
readonly ring: string;
|
|
156
156
|
readonly solid: {
|
|
157
|
-
default: import("../../
|
|
158
|
-
hover: import("../../
|
|
159
|
-
pressed: import("../../
|
|
157
|
+
default: import("../../factories/createButtonPalette.js").ButtonState;
|
|
158
|
+
hover: import("../../factories/createButtonPalette.js").ButtonState;
|
|
159
|
+
pressed: import("../../factories/createButtonPalette.js").ButtonState;
|
|
160
160
|
};
|
|
161
161
|
readonly outline: {
|
|
162
162
|
readonly default: {
|
|
@@ -230,9 +230,9 @@ export declare const button: {
|
|
|
230
230
|
readonly warning: {
|
|
231
231
|
readonly ring: string;
|
|
232
232
|
readonly solid: {
|
|
233
|
-
default: import("../../
|
|
234
|
-
hover: import("../../
|
|
235
|
-
pressed: import("../../
|
|
233
|
+
default: import("../../factories/createButtonPalette.js").ButtonState;
|
|
234
|
+
hover: import("../../factories/createButtonPalette.js").ButtonState;
|
|
235
|
+
pressed: import("../../factories/createButtonPalette.js").ButtonState;
|
|
236
236
|
};
|
|
237
237
|
readonly outline: {
|
|
238
238
|
readonly default: {
|
|
@@ -306,9 +306,9 @@ export declare const button: {
|
|
|
306
306
|
readonly danger: {
|
|
307
307
|
readonly ring: string;
|
|
308
308
|
readonly solid: {
|
|
309
|
-
default: import("../../
|
|
310
|
-
hover: import("../../
|
|
311
|
-
pressed: import("../../
|
|
309
|
+
default: import("../../factories/createButtonPalette.js").ButtonState;
|
|
310
|
+
hover: import("../../factories/createButtonPalette.js").ButtonState;
|
|
311
|
+
pressed: import("../../factories/createButtonPalette.js").ButtonState;
|
|
312
312
|
};
|
|
313
313
|
readonly outline: {
|
|
314
314
|
readonly default: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { createButtonPalette } from '../../factories/createButtonPalette.js';
|
|
1
2
|
import { colors } from '../../primitives/colors.js';
|
|
2
|
-
import { createButtonPalette } from '../../utils/createButtonPalette.js';
|
|
3
3
|
import { border } from '../semantic/border.js';
|
|
4
4
|
import { surface } from '../semantic/surface.js';
|
|
5
5
|
import { text } from '../semantic/text.js';
|
|
@@ -12,33 +12,33 @@ export declare const checkbox: {
|
|
|
12
12
|
};
|
|
13
13
|
readonly primary: {
|
|
14
14
|
readonly ring: string;
|
|
15
|
-
readonly default: import("../../
|
|
16
|
-
readonly hover: import("../../
|
|
17
|
-
readonly pressed: import("../../
|
|
15
|
+
readonly default: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
16
|
+
readonly hover: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
17
|
+
readonly pressed: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
18
18
|
};
|
|
19
19
|
readonly neutral: {
|
|
20
20
|
readonly ring: string;
|
|
21
|
-
readonly default: import("../../
|
|
22
|
-
readonly hover: import("../../
|
|
23
|
-
readonly pressed: import("../../
|
|
21
|
+
readonly default: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
22
|
+
readonly hover: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
23
|
+
readonly pressed: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
24
24
|
};
|
|
25
25
|
readonly success: {
|
|
26
26
|
readonly ring: string;
|
|
27
|
-
readonly default: import("../../
|
|
28
|
-
readonly hover: import("../../
|
|
29
|
-
readonly pressed: import("../../
|
|
27
|
+
readonly default: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
28
|
+
readonly hover: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
29
|
+
readonly pressed: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
30
30
|
};
|
|
31
31
|
readonly warning: {
|
|
32
32
|
readonly ring: string;
|
|
33
|
-
readonly default: import("../../
|
|
34
|
-
readonly hover: import("../../
|
|
35
|
-
readonly pressed: import("../../
|
|
33
|
+
readonly default: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
34
|
+
readonly hover: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
35
|
+
readonly pressed: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
36
36
|
};
|
|
37
37
|
readonly danger: {
|
|
38
38
|
readonly ring: string;
|
|
39
|
-
readonly default: import("../../
|
|
40
|
-
readonly hover: import("../../
|
|
41
|
-
readonly pressed: import("../../
|
|
39
|
+
readonly default: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
40
|
+
readonly hover: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
41
|
+
readonly pressed: import("../../factories/createCheckboxPalette.js").CheckboxState;
|
|
42
42
|
};
|
|
43
43
|
readonly focus: {
|
|
44
44
|
readonly ring: "#5037C8";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { createCheckboxPalette } from '../../factories/createCheckboxPalette.js';
|
|
1
2
|
import { colors } from '../../primitives/colors.js';
|
|
2
|
-
import { createCheckboxPalette } from '../../utils/createCheckboxPalette.js';
|
|
3
3
|
import { control } from '../semantic/control.js';
|
|
4
4
|
import { focus } from '../semantic/focus.js';
|
|
5
5
|
import { status } from '../semantic/status.js';
|
|
@@ -14,31 +14,35 @@ export declare const radio: {
|
|
|
14
14
|
readonly fg: "#342580";
|
|
15
15
|
readonly border: "#402C9F";
|
|
16
16
|
};
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
readonly
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
17
|
+
readonly primary: {
|
|
18
|
+
readonly ring: string;
|
|
19
|
+
readonly default: import("../../factories/createRadioPalette.js").RadioState;
|
|
20
|
+
readonly hover: import("../../factories/createRadioPalette.js").RadioState;
|
|
21
|
+
readonly pressed: import("../../factories/createRadioPalette.js").RadioState;
|
|
22
|
+
};
|
|
23
|
+
readonly neutral: {
|
|
24
|
+
readonly ring: string;
|
|
25
|
+
readonly default: import("../../factories/createRadioPalette.js").RadioState;
|
|
26
|
+
readonly hover: import("../../factories/createRadioPalette.js").RadioState;
|
|
27
|
+
readonly pressed: import("../../factories/createRadioPalette.js").RadioState;
|
|
28
|
+
};
|
|
29
|
+
readonly success: {
|
|
30
|
+
readonly ring: string;
|
|
31
|
+
readonly default: import("../../factories/createRadioPalette.js").RadioState;
|
|
32
|
+
readonly hover: import("../../factories/createRadioPalette.js").RadioState;
|
|
33
|
+
readonly pressed: import("../../factories/createRadioPalette.js").RadioState;
|
|
34
|
+
};
|
|
35
|
+
readonly warning: {
|
|
36
|
+
readonly ring: string;
|
|
37
|
+
readonly default: import("../../factories/createRadioPalette.js").RadioState;
|
|
38
|
+
readonly hover: import("../../factories/createRadioPalette.js").RadioState;
|
|
39
|
+
readonly pressed: import("../../factories/createRadioPalette.js").RadioState;
|
|
40
|
+
};
|
|
41
|
+
readonly danger: {
|
|
42
|
+
readonly ring: string;
|
|
43
|
+
readonly default: import("../../factories/createRadioPalette.js").RadioState;
|
|
44
|
+
readonly hover: import("../../factories/createRadioPalette.js").RadioState;
|
|
45
|
+
readonly pressed: import("../../factories/createRadioPalette.js").RadioState;
|
|
42
46
|
};
|
|
43
47
|
readonly invalid: {
|
|
44
48
|
readonly border: "#E11D48";
|
|
@@ -55,5 +59,11 @@ export declare const radio: {
|
|
|
55
59
|
readonly fg: "#958CB0";
|
|
56
60
|
readonly border: "#E4DDF4";
|
|
57
61
|
};
|
|
62
|
+
readonly selectedDisabled: {
|
|
63
|
+
readonly bg: "#F4F1FB";
|
|
64
|
+
readonly fg: "#958CB0";
|
|
65
|
+
readonly border: "#E4DDF4";
|
|
66
|
+
readonly labelFg: "#958CB0";
|
|
67
|
+
};
|
|
58
68
|
};
|
|
59
69
|
//# sourceMappingURL=radio.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/light/components/radio.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../src/light/components/radio.ts"],"names":[],"mappings":"AAsHA,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCR,CAAC"}
|
|
@@ -1,40 +1,124 @@
|
|
|
1
|
+
import { createRadioPalette } from '../../factories/createRadioPalette.js';
|
|
1
2
|
import { colors } from '../../primitives/colors.js';
|
|
2
3
|
import { border } from '../semantic/border.js';
|
|
3
4
|
import { control } from '../semantic/control.js';
|
|
4
5
|
import { focus } from '../semantic/focus.js';
|
|
5
6
|
import { status } from '../semantic/status.js';
|
|
6
|
-
import { surface } from '../semantic/surface.js';
|
|
7
7
|
import { text } from '../semantic/text.js';
|
|
8
|
+
const primary = createRadioPalette({
|
|
9
|
+
ring: colors.primary[400],
|
|
10
|
+
default: {
|
|
11
|
+
bg: colors.primary[50],
|
|
12
|
+
fg: colors.primary[600],
|
|
13
|
+
border: colors.primary[600],
|
|
14
|
+
labelFg: colors.primary[700],
|
|
15
|
+
},
|
|
16
|
+
hover: {
|
|
17
|
+
bg: colors.primary[100],
|
|
18
|
+
fg: colors.primary[700],
|
|
19
|
+
border: colors.primary[700],
|
|
20
|
+
labelFg: colors.primary[800],
|
|
21
|
+
},
|
|
22
|
+
pressed: {
|
|
23
|
+
bg: colors.primary[200],
|
|
24
|
+
fg: colors.primary[800],
|
|
25
|
+
border: colors.primary[800],
|
|
26
|
+
labelFg: colors.primary[900],
|
|
27
|
+
},
|
|
28
|
+
});
|
|
29
|
+
const neutral = createRadioPalette({
|
|
30
|
+
ring: colors.vellira[400],
|
|
31
|
+
default: {
|
|
32
|
+
bg: colors.vellira[50],
|
|
33
|
+
fg: colors.vellira[600],
|
|
34
|
+
border: colors.vellira[500],
|
|
35
|
+
labelFg: colors.vellira[600],
|
|
36
|
+
},
|
|
37
|
+
hover: {
|
|
38
|
+
bg: colors.vellira[100],
|
|
39
|
+
fg: colors.vellira[700],
|
|
40
|
+
border: colors.vellira[600],
|
|
41
|
+
labelFg: colors.vellira[700],
|
|
42
|
+
},
|
|
43
|
+
pressed: {
|
|
44
|
+
bg: colors.vellira[200],
|
|
45
|
+
fg: colors.vellira[800],
|
|
46
|
+
border: colors.vellira[700],
|
|
47
|
+
labelFg: colors.vellira[800],
|
|
48
|
+
},
|
|
49
|
+
});
|
|
50
|
+
const success = createRadioPalette({
|
|
51
|
+
ring: colors.success[500],
|
|
52
|
+
default: {
|
|
53
|
+
bg: colors.success[50],
|
|
54
|
+
fg: colors.success[600],
|
|
55
|
+
border: colors.success[600],
|
|
56
|
+
labelFg: colors.success[700],
|
|
57
|
+
},
|
|
58
|
+
hover: {
|
|
59
|
+
bg: colors.success[100],
|
|
60
|
+
fg: colors.success[700],
|
|
61
|
+
border: colors.success[700],
|
|
62
|
+
labelFg: colors.success[800],
|
|
63
|
+
},
|
|
64
|
+
pressed: {
|
|
65
|
+
bg: colors.success[200],
|
|
66
|
+
fg: colors.success[800],
|
|
67
|
+
border: colors.success[800],
|
|
68
|
+
labelFg: colors.success[900],
|
|
69
|
+
},
|
|
70
|
+
});
|
|
71
|
+
const warning = createRadioPalette({
|
|
72
|
+
ring: colors.warning[500],
|
|
73
|
+
default: {
|
|
74
|
+
bg: colors.warning[50],
|
|
75
|
+
fg: colors.warning[600],
|
|
76
|
+
border: colors.warning[600],
|
|
77
|
+
labelFg: colors.warning[700],
|
|
78
|
+
},
|
|
79
|
+
hover: {
|
|
80
|
+
bg: colors.warning[100],
|
|
81
|
+
fg: colors.warning[700],
|
|
82
|
+
border: colors.warning[700],
|
|
83
|
+
labelFg: colors.warning[800],
|
|
84
|
+
},
|
|
85
|
+
pressed: {
|
|
86
|
+
bg: colors.warning[200],
|
|
87
|
+
fg: colors.warning[800],
|
|
88
|
+
border: colors.warning[800],
|
|
89
|
+
labelFg: colors.warning[900],
|
|
90
|
+
},
|
|
91
|
+
});
|
|
92
|
+
const danger = createRadioPalette({
|
|
93
|
+
ring: colors.error[500],
|
|
94
|
+
default: {
|
|
95
|
+
bg: colors.error[50],
|
|
96
|
+
fg: colors.error[700],
|
|
97
|
+
border: colors.error[700],
|
|
98
|
+
labelFg: colors.error[700],
|
|
99
|
+
},
|
|
100
|
+
hover: {
|
|
101
|
+
bg: colors.error[100],
|
|
102
|
+
fg: colors.error[800],
|
|
103
|
+
border: colors.error[800],
|
|
104
|
+
labelFg: colors.error[800],
|
|
105
|
+
},
|
|
106
|
+
pressed: {
|
|
107
|
+
bg: colors.error[200],
|
|
108
|
+
fg: colors.error[900],
|
|
109
|
+
border: colors.error[900],
|
|
110
|
+
labelFg: colors.error[700],
|
|
111
|
+
},
|
|
112
|
+
});
|
|
8
113
|
export const radio = {
|
|
9
114
|
default: control.default,
|
|
10
115
|
hover: control.hover,
|
|
11
116
|
pressed: control.active,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
labelFg: text.interactive,
|
|
18
|
-
},
|
|
19
|
-
hover: {
|
|
20
|
-
bg: colors.primary[50],
|
|
21
|
-
fg: colors.primary[700],
|
|
22
|
-
border: colors.primary[700],
|
|
23
|
-
labelFg: text.interactiveHover,
|
|
24
|
-
},
|
|
25
|
-
pressed: {
|
|
26
|
-
bg: colors.primary[100],
|
|
27
|
-
fg: colors.primary[800],
|
|
28
|
-
border: colors.primary[800],
|
|
29
|
-
labelFg: text.interactiveActive,
|
|
30
|
-
},
|
|
31
|
-
disabled: {
|
|
32
|
-
bg: surface.disabled,
|
|
33
|
-
fg: text.disabled,
|
|
34
|
-
border: border.disabled,
|
|
35
|
-
labelFg: text.disabled,
|
|
36
|
-
},
|
|
37
|
-
},
|
|
117
|
+
primary,
|
|
118
|
+
neutral,
|
|
119
|
+
success,
|
|
120
|
+
warning,
|
|
121
|
+
danger,
|
|
38
122
|
invalid: {
|
|
39
123
|
...control.default,
|
|
40
124
|
border: status.error.border,
|
|
@@ -45,4 +129,10 @@ export const radio = {
|
|
|
45
129
|
border: border.focus,
|
|
46
130
|
},
|
|
47
131
|
disabled: control.disabled,
|
|
132
|
+
selectedDisabled: {
|
|
133
|
+
bg: control.disabled.bg,
|
|
134
|
+
fg: text.disabled,
|
|
135
|
+
border: border.disabled,
|
|
136
|
+
labelFg: text.disabled,
|
|
137
|
+
},
|
|
48
138
|
};
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createButtonPalette.d.ts","sourceRoot":"","sources":["../../src/utils/createButtonPalette.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IAEb,KAAK,EAAE;QACL,OAAO,EAAE,WAAW,CAAC;QACrB,KAAK,EAAE,WAAW,CAAC;QACnB,OAAO,EAAE,WAAW,CAAC;KACtB,CAAC;IAEF,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IAEf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IAEvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,eAAO,MAAM,WAAW;;;CAGd,CAAC;AAEX,eAAO,MAAM,mBAAmB,GAAI,sJAejC,mBAAmB;;;iBA1CT,WAAW;eACb,WAAW;iBACT,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiHX,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"createCheckboxPalette.d.ts","sourceRoot":"","sources":["../../src/utils/createCheckboxPalette.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,aAAa,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,qBAAqB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,eAAO,MAAM,qBAAqB,GAAI,kDAKnC,qBAAqB;;;;;CAMX,CAAC"}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|