@vellira-ui/tokens 2.26.1 → 2.28.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.
Files changed (49) hide show
  1. package/dist/css/tokens.css +890 -365
  2. package/dist/dark/components/button.d.ts +263 -95
  3. package/dist/dark/components/button.d.ts.map +1 -1
  4. package/dist/dark/components/button.js +136 -151
  5. package/dist/dark/components/checkbox.d.ts +29 -19
  6. package/dist/dark/components/checkbox.d.ts.map +1 -1
  7. package/dist/dark/components/checkbox.js +112 -14
  8. package/dist/dark/components/formField.d.ts +1 -1
  9. package/dist/dark/components/input.d.ts +3 -3
  10. package/dist/dark/semantic/icons.d.ts +1 -1
  11. package/dist/dark/semantic/status.d.ts +4 -4
  12. package/dist/dark/theme.d.ts +11 -11
  13. package/dist/generated/token-types.d.ts +4 -4
  14. package/dist/generated/token-types.d.ts.map +1 -1
  15. package/dist/generated/token-types.js +964 -264
  16. package/dist/highContrast/components/button.d.ts +264 -96
  17. package/dist/highContrast/components/button.d.ts.map +1 -1
  18. package/dist/highContrast/components/button.js +135 -150
  19. package/dist/highContrast/components/checkbox.d.ts +29 -19
  20. package/dist/highContrast/components/checkbox.d.ts.map +1 -1
  21. package/dist/highContrast/components/checkbox.js +112 -20
  22. package/dist/highContrast/components/formField.d.ts +1 -1
  23. package/dist/highContrast/components/input.d.ts +3 -3
  24. package/dist/highContrast/semantic/action.d.ts +6 -6
  25. package/dist/highContrast/semantic/action.js +6 -6
  26. package/dist/highContrast/semantic/icons.d.ts +1 -1
  27. package/dist/highContrast/semantic/status.d.ts +5 -5
  28. package/dist/highContrast/theme.d.ts +11 -11
  29. package/dist/light/components/button.d.ts +264 -96
  30. package/dist/light/components/button.d.ts.map +1 -1
  31. package/dist/light/components/button.js +136 -151
  32. package/dist/light/components/checkbox.d.ts +29 -19
  33. package/dist/light/components/checkbox.d.ts.map +1 -1
  34. package/dist/light/components/checkbox.js +112 -14
  35. package/dist/light/components/formField.d.ts +2 -2
  36. package/dist/light/components/input.d.ts +3 -3
  37. package/dist/light/semantic/icons.d.ts +1 -1
  38. package/dist/light/semantic/status.d.ts +7 -7
  39. package/dist/light/semantic/status.js +3 -3
  40. package/dist/light/theme.d.ts +11 -11
  41. package/dist/primitives/colors.d.ts +11 -11
  42. package/dist/primitives/colors.js +11 -11
  43. package/dist/utils/createButtonPalette.d.ts +106 -0
  44. package/dist/utils/createButtonPalette.d.ts.map +1 -0
  45. package/dist/utils/createButtonPalette.js +72 -0
  46. package/dist/utils/createCheckboxPalette.d.ts +19 -0
  47. package/dist/utils/createCheckboxPalette.d.ts.map +1 -0
  48. package/dist/utils/createCheckboxPalette.js +6 -0
  49. package/package.json +1 -1
@@ -64,17 +64,17 @@ export const colors = {
64
64
  950: '#071927',
65
65
  },
66
66
  success: {
67
- 50: '#ECFDF5',
68
- 100: '#D1FAE5',
69
- 200: '#A7F3D0',
70
- 300: '#6EE7B7',
71
- 400: '#34D399',
72
- 500: '#10B981',
73
- 600: '#059669',
74
- 700: '#047857',
75
- 800: '#065F46',
76
- 900: '#064E3B',
77
- 950: '#022C22',
67
+ 50: '#F0FDFA',
68
+ 100: '#CCFBF1',
69
+ 200: '#99F6E4',
70
+ 300: '#5EEAD4',
71
+ 400: '#2DD4BF',
72
+ 500: '#14B8A6',
73
+ 600: '#0F9E94',
74
+ 700: '#0F766E',
75
+ 800: '#115E59',
76
+ 900: '#134E4A',
77
+ 950: '#042F2E',
78
78
  },
79
79
  error: {
80
80
  50: '#FFF1F2',
@@ -0,0 +1,106 @@
1
+ export type ButtonState = {
2
+ bg: string;
3
+ fg: string;
4
+ border: string;
5
+ };
6
+ export type ButtonPaletteConfig = {
7
+ ring: string;
8
+ solid: {
9
+ default: ButtonState;
10
+ hover: ButtonState;
11
+ pressed: ButtonState;
12
+ };
13
+ fg: string;
14
+ bg: string;
15
+ border: string;
16
+ hoverBg: string;
17
+ hoverFg: string;
18
+ hoverBorder?: string;
19
+ pressedBg: string;
20
+ pressedFg: string;
21
+ pressedBorder?: string;
22
+ softBorder?: string;
23
+ softHoverBorder?: string;
24
+ softPressedBorder?: string;
25
+ };
26
+ export declare const transparent: {
27
+ readonly bg: "transparent";
28
+ readonly border: "transparent";
29
+ };
30
+ export declare const createButtonPalette: ({ ring, solid, fg, bg, border, hoverBg, hoverFg, hoverBorder, pressedBg, pressedFg, pressedBorder, softBorder, softHoverBorder, softPressedBorder, }: ButtonPaletteConfig) => {
31
+ readonly ring: string;
32
+ readonly solid: {
33
+ default: ButtonState;
34
+ hover: ButtonState;
35
+ pressed: ButtonState;
36
+ };
37
+ readonly outline: {
38
+ readonly default: {
39
+ readonly bg: "transparent";
40
+ readonly fg: string;
41
+ readonly border: string;
42
+ };
43
+ readonly hover: {
44
+ readonly bg: string;
45
+ readonly fg: string;
46
+ readonly border: string;
47
+ };
48
+ readonly pressed: {
49
+ readonly bg: string;
50
+ readonly fg: string;
51
+ readonly border: string;
52
+ };
53
+ };
54
+ readonly ghost: {
55
+ readonly default: {
56
+ readonly fg: string;
57
+ readonly bg: "transparent";
58
+ readonly border: "transparent";
59
+ };
60
+ readonly hover: {
61
+ readonly bg: string;
62
+ readonly fg: string;
63
+ readonly border: "transparent";
64
+ };
65
+ readonly pressed: {
66
+ readonly bg: string;
67
+ readonly fg: string;
68
+ readonly border: "transparent";
69
+ };
70
+ };
71
+ readonly soft: {
72
+ readonly default: {
73
+ readonly bg: string;
74
+ readonly fg: string;
75
+ readonly border: string;
76
+ };
77
+ readonly hover: {
78
+ readonly bg: string;
79
+ readonly fg: string;
80
+ readonly border: string;
81
+ };
82
+ readonly pressed: {
83
+ readonly bg: string;
84
+ readonly fg: string;
85
+ readonly border: string;
86
+ };
87
+ };
88
+ readonly link: {
89
+ readonly default: {
90
+ readonly fg: string;
91
+ readonly bg: "transparent";
92
+ readonly border: "transparent";
93
+ };
94
+ readonly hover: {
95
+ readonly fg: string;
96
+ readonly bg: "transparent";
97
+ readonly border: "transparent";
98
+ };
99
+ readonly pressed: {
100
+ readonly fg: string;
101
+ readonly bg: "transparent";
102
+ readonly border: "transparent";
103
+ };
104
+ };
105
+ };
106
+ //# sourceMappingURL=createButtonPalette.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -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
+ });
@@ -0,0 +1,19 @@
1
+ export type CheckboxState = {
2
+ bg: string;
3
+ fg: string;
4
+ border: string;
5
+ labelFg: string;
6
+ };
7
+ export type CheckboxPaletteConfig = {
8
+ ring: string;
9
+ default: CheckboxState;
10
+ hover: CheckboxState;
11
+ pressed: CheckboxState;
12
+ };
13
+ export declare const createCheckboxPalette: ({ ring, default: defaultState, hover, pressed, }: CheckboxPaletteConfig) => {
14
+ readonly ring: string;
15
+ readonly default: CheckboxState;
16
+ readonly hover: CheckboxState;
17
+ readonly pressed: CheckboxState;
18
+ };
19
+ //# sourceMappingURL=createCheckboxPalette.d.ts.map
@@ -0,0 +1 @@
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"}
@@ -0,0 +1,6 @@
1
+ export const createCheckboxPalette = ({ ring, default: defaultState, hover, pressed, }) => ({
2
+ ring,
3
+ default: defaultState,
4
+ hover,
5
+ pressed,
6
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vellira-ui/tokens",
3
- "version": "2.26.1",
3
+ "version": "2.28.0",
4
4
  "description": "Design tokens for Vellira Design System",
5
5
  "author": "Roman Bakurov",
6
6
  "license": "MIT",