@vellira-ui/tokens 2.26.0 → 2.27.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 +721 -352
- package/dist/dark/components/button.d.ts +263 -95
- package/dist/dark/components/button.d.ts.map +1 -1
- package/dist/dark/components/button.js +136 -151
- package/dist/dark/components/checkbox.d.ts +4 -3
- package/dist/dark/components/checkbox.d.ts.map +1 -1
- package/dist/dark/components/checkbox.js +2 -3
- package/dist/dark/components/formField.d.ts +1 -1
- package/dist/dark/components/input.d.ts +3 -3
- package/dist/dark/components/radio.d.ts +1 -1
- package/dist/dark/components/tabs.d.ts +1 -1
- package/dist/dark/semantic/action.d.ts +8 -8
- package/dist/dark/semantic/action.js +6 -6
- package/dist/dark/semantic/control.d.ts +2 -2
- package/dist/dark/semantic/icons.d.ts +1 -1
- package/dist/dark/semantic/status.d.ts +4 -4
- package/dist/dark/semantic/text.d.ts +1 -1
- package/dist/dark/theme.d.ts +12 -12
- 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 +708 -216
- package/dist/highContrast/components/button.d.ts +264 -96
- package/dist/highContrast/components/button.d.ts.map +1 -1
- package/dist/highContrast/components/button.js +135 -150
- package/dist/highContrast/components/checkbox.d.ts +1 -0
- package/dist/highContrast/components/checkbox.d.ts.map +1 -1
- package/dist/highContrast/components/checkbox.js +4 -1
- package/dist/highContrast/components/formField.d.ts +1 -1
- package/dist/highContrast/components/input.d.ts +3 -3
- package/dist/highContrast/semantic/action.d.ts +10 -10
- package/dist/highContrast/semantic/action.js +9 -9
- package/dist/highContrast/semantic/icons.d.ts +1 -1
- package/dist/highContrast/semantic/status.d.ts +5 -5
- package/dist/highContrast/theme.d.ts +12 -12
- package/dist/light/components/button.d.ts +264 -96
- package/dist/light/components/button.d.ts.map +1 -1
- package/dist/light/components/button.js +136 -151
- package/dist/light/components/checkbox.d.ts +1 -0
- package/dist/light/components/checkbox.d.ts.map +1 -1
- package/dist/light/components/checkbox.js +4 -1
- package/dist/light/components/formField.d.ts +2 -2
- package/dist/light/components/input.d.ts +3 -3
- package/dist/light/semantic/icons.d.ts +1 -1
- package/dist/light/semantic/status.d.ts +7 -7
- package/dist/light/semantic/status.js +3 -3
- package/dist/light/theme.d.ts +12 -12
- package/dist/primitives/colors.d.ts +12 -12
- package/dist/primitives/colors.js +12 -12
- package/dist/utils/createButtonPalette.d.ts +106 -0
- package/dist/utils/createButtonPalette.d.ts.map +1 -0
- package/dist/utils/createButtonPalette.js +72 -0
- package/package.json +1 -1
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export const transparent = {
|
|
2
|
+
bg: 'transparent',
|
|
3
|
+
border: 'transparent',
|
|
4
|
+
};
|
|
5
|
+
export const createButtonPalette = ({ ring, solid, fg, bg, border, hoverBg, hoverFg, hoverBorder = border, pressedBg, pressedFg, pressedBorder = border, softBorder = transparent.border, softHoverBorder = softBorder, softPressedBorder = softBorder, }) => ({
|
|
6
|
+
ring,
|
|
7
|
+
solid,
|
|
8
|
+
outline: {
|
|
9
|
+
default: {
|
|
10
|
+
bg: transparent.bg,
|
|
11
|
+
fg,
|
|
12
|
+
border,
|
|
13
|
+
},
|
|
14
|
+
hover: {
|
|
15
|
+
bg: hoverBg,
|
|
16
|
+
fg: hoverFg,
|
|
17
|
+
border: hoverBorder,
|
|
18
|
+
},
|
|
19
|
+
pressed: {
|
|
20
|
+
bg: pressedBg,
|
|
21
|
+
fg: pressedFg,
|
|
22
|
+
border: pressedBorder,
|
|
23
|
+
},
|
|
24
|
+
},
|
|
25
|
+
ghost: {
|
|
26
|
+
default: {
|
|
27
|
+
...transparent,
|
|
28
|
+
fg,
|
|
29
|
+
},
|
|
30
|
+
hover: {
|
|
31
|
+
...transparent,
|
|
32
|
+
bg: hoverBg,
|
|
33
|
+
fg: hoverFg,
|
|
34
|
+
},
|
|
35
|
+
pressed: {
|
|
36
|
+
...transparent,
|
|
37
|
+
bg: pressedBg,
|
|
38
|
+
fg: pressedFg,
|
|
39
|
+
},
|
|
40
|
+
},
|
|
41
|
+
soft: {
|
|
42
|
+
default: {
|
|
43
|
+
bg,
|
|
44
|
+
fg,
|
|
45
|
+
border: softBorder,
|
|
46
|
+
},
|
|
47
|
+
hover: {
|
|
48
|
+
bg: hoverBg,
|
|
49
|
+
fg: hoverFg,
|
|
50
|
+
border: softHoverBorder,
|
|
51
|
+
},
|
|
52
|
+
pressed: {
|
|
53
|
+
bg: pressedBg,
|
|
54
|
+
fg: pressedFg,
|
|
55
|
+
border: softPressedBorder,
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
link: {
|
|
59
|
+
default: {
|
|
60
|
+
...transparent,
|
|
61
|
+
fg,
|
|
62
|
+
},
|
|
63
|
+
hover: {
|
|
64
|
+
...transparent,
|
|
65
|
+
fg: hoverFg,
|
|
66
|
+
},
|
|
67
|
+
pressed: {
|
|
68
|
+
...transparent,
|
|
69
|
+
fg: pressedFg,
|
|
70
|
+
},
|
|
71
|
+
},
|
|
72
|
+
});
|