@rovula/ui 0.1.5 → 0.1.7

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 (97) hide show
  1. package/dist/cjs/bundle.css +404 -368
  2. package/dist/cjs/bundle.js +171 -171
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/Text/Text.d.ts +25 -1
  5. package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
  6. package/dist/cjs/types/utils/colors.d.ts +268 -268
  7. package/dist/components/Avatar/Avatar.styles.js +2 -2
  8. package/dist/components/Button/Buttons.stories.js +1 -1
  9. package/dist/components/Calendar/Calendar.js +1 -1
  10. package/dist/components/Dropdown/Dropdown.js +2 -2
  11. package/dist/components/DropdownMenu/DropdownMenu.js +4 -4
  12. package/dist/components/Footer/Footer.js +1 -1
  13. package/dist/components/Input/Input.styles.js +2 -2
  14. package/dist/components/InputFilter/InputFilter.js +2 -2
  15. package/dist/components/Label/Label.styles.js +4 -4
  16. package/dist/components/Menu/Menu.js +2 -2
  17. package/dist/components/Navbar/Navbar.js +1 -1
  18. package/dist/components/Switch/Switch.styles.js +1 -1
  19. package/dist/components/Tabs/Tabs.js +1 -1
  20. package/dist/components/Text/Text.js +11 -1
  21. package/dist/components/Text/Text.stories.js +6 -6
  22. package/dist/components/TextArea/TextArea.styles.js +6 -6
  23. package/dist/components/TextInput/TextInput.stories.js +1 -1
  24. package/dist/components/TextInput/TextInput.styles.js +18 -18
  25. package/dist/components/Toast/Toast.js +2 -2
  26. package/dist/esm/bundle.css +404 -368
  27. package/dist/esm/bundle.js +5 -5
  28. package/dist/esm/bundle.js.map +1 -1
  29. package/dist/esm/types/components/Text/Text.d.ts +25 -1
  30. package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
  31. package/dist/esm/types/utils/colors.d.ts +268 -268
  32. package/dist/index.d.ts +293 -269
  33. package/dist/src/theme/global.css +2514 -2607
  34. package/dist/utils/colors.js +268 -268
  35. package/package.json +1 -1
  36. package/src/components/Avatar/Avatar.styles.ts +2 -2
  37. package/src/components/Button/Buttons.stories.tsx +17 -9
  38. package/src/components/Calendar/Calendar.tsx +1 -1
  39. package/src/components/Dropdown/Dropdown.tsx +2 -2
  40. package/src/components/DropdownMenu/DropdownMenu.tsx +6 -6
  41. package/src/components/Footer/Footer.tsx +1 -1
  42. package/src/components/Input/Input.styles.tsx +2 -2
  43. package/src/components/InputFilter/InputFilter.tsx +2 -2
  44. package/src/components/Label/Label.styles.ts +4 -4
  45. package/src/components/Menu/Menu.tsx +2 -2
  46. package/src/components/Navbar/Navbar.tsx +1 -1
  47. package/src/components/Switch/Switch.styles.ts +1 -1
  48. package/src/components/Tabs/Tabs.tsx +1 -1
  49. package/src/components/Text/Text.stories.tsx +6 -6
  50. package/src/components/Text/Text.tsx +36 -1
  51. package/src/components/TextArea/TextArea.styles.ts +6 -6
  52. package/src/components/TextInput/TextInput.stories.tsx +3 -1
  53. package/src/components/TextInput/TextInput.styles.ts +18 -18
  54. package/src/components/Toast/Toast.tsx +2 -2
  55. package/src/theme/THEME_MAPPING.md +41 -42
  56. package/src/theme/global.css +8 -4
  57. package/src/theme/main-preset.js +49 -0
  58. package/src/theme/plugins/utilities/typography.js +40 -6
  59. package/src/theme/presets/colors.js +27 -29
  60. package/src/theme/themes/skyller/baseline.css +0 -4
  61. package/src/theme/themes/variable-mapping.css +1064 -0
  62. package/src/theme/themes/variable.css +317 -284
  63. package/src/theme/themes/xspector/baseline.css +0 -4
  64. package/src/theme/themes/xspector/components/dropdown-menu.css +4 -4
  65. package/src/theme/tokens/baseline.css +0 -3
  66. package/src/theme/tokens/color.css +34 -63
  67. package/src/theme/tokens/components/action-button.css +6 -6
  68. package/src/theme/tokens/components/button.css +189 -189
  69. package/src/theme/tokens/components/dropdown-menu.css +2 -2
  70. package/src/theme/tokens/components/footer.css +1 -1
  71. package/src/theme/tokens/components/switch.css +10 -10
  72. package/src/theme/tokens/typography.css +28 -28
  73. package/src/theme/tokens_old/baseline.css +13 -0
  74. package/src/theme/tokens_old/color.css +78 -0
  75. package/src/theme/tokens_old/components/action-button.css +127 -0
  76. package/src/theme/tokens_old/components/button.css +512 -0
  77. package/src/theme/tokens_old/components/dropdown-menu.css +27 -0
  78. package/src/theme/tokens_old/components/footer.css +9 -0
  79. package/src/theme/tokens_old/components/loading.css +11 -0
  80. package/src/theme/tokens_old/components/navbar.css +9 -0
  81. package/src/theme/tokens_old/components/progress-bar.css +8 -0
  82. package/src/theme/tokens_old/components/switch.css +29 -0
  83. package/src/theme/tokens_old/typography.css +199 -0
  84. package/src/theme/tokens_old/variables.css +28 -0
  85. package/src/theme/utils.js +16 -16
  86. package/src/utils/colors.ts +276 -279
  87. package/src/theme/themes/skyller/color.css +0 -79
  88. package/src/theme/themes/skyller/palette.css +0 -143
  89. package/src/theme/themes/skyller/state.css +0 -94
  90. package/src/theme/themes/skyller/transparent.css +0 -94
  91. package/src/theme/themes/xspector/color.css +0 -83
  92. package/src/theme/themes/xspector/palette.css +0 -142
  93. package/src/theme/themes/xspector/state.css +0 -94
  94. package/src/theme/themes/xspector/transparent.css +0 -93
  95. /package/src/theme/{tokens → tokens_old}/palette.css +0 -0
  96. /package/src/theme/{tokens → tokens_old}/state.css +0 -0
  97. /package/src/theme/{tokens → tokens_old}/transparent.css +0 -0
@@ -1,210 +1,210 @@
1
1
  /** CSS variable names for theme colors (resolved by data-theme) */
2
2
  export const THEME_COLOR_KEYS = {
3
3
  /* ----- Palette: Primary ----- */
4
- "primary-5": "--primary-ramps-primary-5",
5
- "primary-10": "--primary-ramps-primary-10",
6
- "primary-20": "--primary-ramps-primary-20",
7
- "primary-30": "--primary-ramps-primary-30",
8
- "primary-40": "--primary-ramps-primary-40",
9
- "primary-50": "--primary-ramps-primary-50",
10
- "primary-60": "--primary-ramps-primary-60",
11
- "primary-70": "--primary-ramps-primary-70",
12
- "primary-80": "--primary-ramps-primary-80",
13
- "primary-90": "--primary-ramps-primary-90",
14
- "primary-100": "--primary-ramps-primary-100",
15
- "primary-110": "--primary-ramps-primary-110",
16
- "primary-120": "--primary-ramps-primary-120",
17
- "primary-130": "--primary-ramps-primary-130",
18
- "primary-140": "--primary-ramps-primary-140",
19
- "primary-150": "--primary-ramps-primary-150",
4
+ "primary-5": "--ramps-primary-5",
5
+ "primary-10": "--ramps-primary-10",
6
+ "primary-20": "--ramps-primary-20",
7
+ "primary-30": "--ramps-primary-30",
8
+ "primary-40": "--ramps-primary-40",
9
+ "primary-50": "--ramps-primary-50",
10
+ "primary-60": "--ramps-primary-60",
11
+ "primary-70": "--ramps-primary-70",
12
+ "primary-80": "--ramps-primary-80",
13
+ "primary-90": "--ramps-primary-90",
14
+ "primary-100": "--ramps-primary-100",
15
+ "primary-110": "--ramps-primary-110",
16
+ "primary-120": "--ramps-primary-120",
17
+ "primary-130": "--ramps-primary-130",
18
+ "primary-140": "--ramps-primary-140",
19
+ "primary-150": "--ramps-primary-150",
20
20
  /* ----- Palette: Secondary ----- */
21
- "secondary-5": "--secondary-ramps-secondary-5",
22
- "secondary-10": "--secondary-ramps-secondary-10",
23
- "secondary-20": "--secondary-ramps-secondary-20",
24
- "secondary-30": "--secondary-ramps-secondary-30",
25
- "secondary-40": "--secondary-ramps-secondary-40",
26
- "secondary-50": "--secondary-ramps-secondary-50",
27
- "secondary-60": "--secondary-ramps-secondary-60",
28
- "secondary-70": "--secondary-ramps-secondary-70",
29
- "secondary-80": "--secondary-ramps-secondary-80",
30
- "secondary-90": "--secondary-ramps-secondary-90",
31
- "secondary-100": "--secondary-ramps-secondary-100",
32
- "secondary-110": "--secondary-ramps-secondary-110",
33
- "secondary-120": "--secondary-ramps-secondary-120",
34
- "secondary-130": "--secondary-ramps-secondary-130",
35
- "secondary-140": "--secondary-ramps-secondary-140",
36
- "secondary-150": "--secondary-ramps-secondary-150",
21
+ "secondary-5": "--ramps-secondary-5",
22
+ "secondary-10": "--ramps-secondary-10",
23
+ "secondary-20": "--ramps-secondary-20",
24
+ "secondary-30": "--ramps-secondary-30",
25
+ "secondary-40": "--ramps-secondary-40",
26
+ "secondary-50": "--ramps-secondary-50",
27
+ "secondary-60": "--ramps-secondary-60",
28
+ "secondary-70": "--ramps-secondary-70",
29
+ "secondary-80": "--ramps-secondary-80",
30
+ "secondary-90": "--ramps-secondary-90",
31
+ "secondary-100": "--ramps-secondary-100",
32
+ "secondary-110": "--ramps-secondary-110",
33
+ "secondary-120": "--ramps-secondary-120",
34
+ "secondary-130": "--ramps-secondary-130",
35
+ "secondary-140": "--ramps-secondary-140",
36
+ "secondary-150": "--ramps-secondary-150",
37
37
  /* ----- Palette: Tertiary ----- */
38
- "tertiary-5": "--tertiary-ramps-tertiary-5",
39
- "tertiary-10": "--tertiary-ramps-tertiary-10",
40
- "tertiary-20": "--tertiary-ramps-tertiary-20",
41
- "tertiary-30": "--tertiary-ramps-tertiary-30",
42
- "tertiary-40": "--tertiary-ramps-tertiary-40",
43
- "tertiary-50": "--tertiary-ramps-tertiary-50",
44
- "tertiary-60": "--tertiary-ramps-tertiary-60",
45
- "tertiary-70": "--tertiary-ramps-tertiary-70",
46
- "tertiary-80": "--tertiary-ramps-tertiary-80",
47
- "tertiary-90": "--tertiary-ramps-tertiary-90",
48
- "tertiary-100": "--tertiary-ramps-tertiary-100",
49
- "tertiary-110": "--tertiary-ramps-tertiary-110",
50
- "tertiary-120": "--tertiary-ramps-tertiary-120",
51
- "tertiary-130": "--tertiary-ramps-tertiary-130",
52
- "tertiary-140": "--tertiary-ramps-tertiary-140",
53
- "tertiary-150": "--tertiary-ramps-tertiary-150",
38
+ "tertiary-5": "--ramps-tertiary-5",
39
+ "tertiary-10": "--ramps-tertiary-10",
40
+ "tertiary-20": "--ramps-tertiary-20",
41
+ "tertiary-30": "--ramps-tertiary-30",
42
+ "tertiary-40": "--ramps-tertiary-40",
43
+ "tertiary-50": "--ramps-tertiary-50",
44
+ "tertiary-60": "--ramps-tertiary-60",
45
+ "tertiary-70": "--ramps-tertiary-70",
46
+ "tertiary-80": "--ramps-tertiary-80",
47
+ "tertiary-90": "--ramps-tertiary-90",
48
+ "tertiary-100": "--ramps-tertiary-100",
49
+ "tertiary-110": "--ramps-tertiary-110",
50
+ "tertiary-120": "--ramps-tertiary-120",
51
+ "tertiary-130": "--ramps-tertiary-130",
52
+ "tertiary-140": "--ramps-tertiary-140",
53
+ "tertiary-150": "--ramps-tertiary-150",
54
54
  /* ----- Palette: Grey ----- */
55
- "grey-5": "--grey-grey-5",
56
- "grey-10": "--grey-grey-10",
57
- "grey-20": "--grey-grey-20",
58
- "grey-30": "--grey-grey-30",
59
- "grey-40": "--grey-grey-40",
60
- "grey-50": "--grey-grey-50",
61
- "grey-60": "--grey-grey-60",
62
- "grey-70": "--grey-grey-70",
63
- "grey-80": "--grey-grey-80",
64
- "grey-90": "--grey-grey-90",
65
- "grey-100": "--grey-grey-100",
66
- "grey-110": "--grey-grey-110",
67
- "grey-120": "--grey-grey-120",
68
- "grey-130": "--grey-grey-130",
69
- "grey-140": "--grey-grey-140",
70
- "grey-150": "--grey-grey-150",
55
+ "grey-5": "--ramps-grey-5",
56
+ "grey-10": "--ramps-grey-10",
57
+ "grey-20": "--ramps-grey-20",
58
+ "grey-30": "--ramps-grey-30",
59
+ "grey-40": "--ramps-grey-40",
60
+ "grey-50": "--ramps-grey-50",
61
+ "grey-60": "--ramps-grey-60",
62
+ "grey-70": "--ramps-grey-70",
63
+ "grey-80": "--ramps-grey-80",
64
+ "grey-90": "--ramps-grey-90",
65
+ "grey-100": "--ramps-grey-100",
66
+ "grey-110": "--ramps-grey-110",
67
+ "grey-120": "--ramps-grey-120",
68
+ "grey-130": "--ramps-grey-130",
69
+ "grey-140": "--ramps-grey-140",
70
+ "grey-150": "--ramps-grey-150",
71
71
  /* ----- Palette: Grey2 ----- */
72
- "grey2-50": "--grey2-grey2-50",
73
- "grey2-100": "--grey2-grey2-100",
74
- "grey2-200": "--grey2-grey2-200",
75
- "grey2-300": "--grey2-grey2-300",
76
- "grey2-400": "--grey2-grey2-400",
77
- "grey2-500": "--grey2-grey2-500",
78
- "grey2-600": "--grey2-grey2-600",
79
- "grey2-700": "--grey2-grey2-700",
80
- "grey2-800": "--grey2-grey2-800",
81
- "grey2-900": "--grey2-grey2-900",
82
- "grey2-950": "--grey2-grey2-950",
72
+ "grey2-50": "--ramps-grey2-50",
73
+ "grey2-100": "--ramps-grey2-100",
74
+ "grey2-200": "--ramps-grey2-200",
75
+ "grey2-300": "--ramps-grey2-300",
76
+ "grey2-400": "--ramps-grey2-400",
77
+ "grey2-500": "--ramps-grey2-500",
78
+ "grey2-600": "--ramps-grey2-600",
79
+ "grey2-700": "--ramps-grey2-700",
80
+ "grey2-800": "--ramps-grey2-800",
81
+ "grey2-900": "--ramps-grey2-900",
82
+ "grey2-950": "--ramps-grey2-950",
83
83
  /* ----- Palette: Info, Success, Warning, Error ----- */
84
- "info-50": "--info-info-50",
85
- "info-100": "--info-info-100",
86
- "info-200": "--info-info-200",
87
- "info-300": "--info-info-300",
88
- "info-400": "--info-info-400",
89
- "info-500": "--info-info-500",
90
- "info-600": "--info-info-600",
91
- "info-700": "--info-info-700",
92
- "info-800": "--info-info-800",
93
- "info-900": "--info-info-900",
94
- "info-950": "--info-info-950",
95
- "success-50": "--success-success-50",
96
- "success-100": "--success-success-100",
97
- "success-200": "--success-success-200",
98
- "success-300": "--success-success-300",
99
- "success-400": "--success-success-400",
100
- "success-500": "--success-success-500",
101
- "success-600": "--success-success-600",
102
- "success-700": "--success-success-700",
103
- "success-800": "--success-success-800",
104
- "success-900": "--success-success-900",
105
- "success-950": "--success-success-950",
106
- "warning-50": "--warning-warning-50",
107
- "warning-100": "--warning-warning-100",
108
- "warning-200": "--warning-warning-200",
109
- "warning-300": "--warning-warning-300",
110
- "warning-400": "--warning-warning-400",
111
- "warning-500": "--warning-warning-500",
112
- "warning-600": "--warning-warning-600",
113
- "warning-700": "--warning-warning-700",
114
- "warning-800": "--warning-warning-800",
115
- "warning-900": "--warning-warning-900",
116
- "warning-950": "--warning-warning-950",
117
- "error-50": "--error-error-50",
118
- "error-100": "--error-error-100",
119
- "error-200": "--error-error-200",
120
- "error-300": "--error-error-300",
121
- "error-400": "--error-error-400",
122
- "error-500": "--error-error-500",
123
- "error-600": "--error-error-600",
124
- "error-700": "--error-error-700",
125
- "error-800": "--error-error-800",
126
- "error-900": "--error-error-900",
127
- "error-950": "--error-error-950",
84
+ "info-50": "--ramps-info-50",
85
+ "info-100": "--ramps-info-100",
86
+ "info-200": "--ramps-info-200",
87
+ "info-300": "--ramps-info-300",
88
+ "info-400": "--ramps-info-400",
89
+ "info-500": "--ramps-info-500",
90
+ "info-600": "--ramps-info-600",
91
+ "info-700": "--ramps-info-700",
92
+ "info-800": "--ramps-info-800",
93
+ "info-900": "--ramps-info-900",
94
+ "info-950": "--ramps-info-950",
95
+ "success-50": "--ramps-success-50",
96
+ "success-100": "--ramps-success-100",
97
+ "success-200": "--ramps-success-200",
98
+ "success-300": "--ramps-success-300",
99
+ "success-400": "--ramps-success-400",
100
+ "success-500": "--ramps-success-500",
101
+ "success-600": "--ramps-success-600",
102
+ "success-700": "--ramps-success-700",
103
+ "success-800": "--ramps-success-800",
104
+ "success-900": "--ramps-success-900",
105
+ "success-950": "--ramps-success-950",
106
+ "warning-50": "--ramps-warning-50",
107
+ "warning-100": "--ramps-warning-100",
108
+ "warning-200": "--ramps-warning-200",
109
+ "warning-300": "--ramps-warning-300",
110
+ "warning-400": "--ramps-warning-400",
111
+ "warning-500": "--ramps-warning-500",
112
+ "warning-600": "--ramps-warning-600",
113
+ "warning-700": "--ramps-warning-700",
114
+ "warning-800": "--ramps-warning-800",
115
+ "warning-900": "--ramps-warning-900",
116
+ "warning-950": "--ramps-warning-950",
117
+ "error-50": "--ramps-error-50",
118
+ "error-100": "--ramps-error-100",
119
+ "error-200": "--ramps-error-200",
120
+ "error-300": "--ramps-error-300",
121
+ "error-400": "--ramps-error-400",
122
+ "error-500": "--ramps-error-500",
123
+ "error-600": "--ramps-error-600",
124
+ "error-700": "--ramps-error-700",
125
+ "error-800": "--ramps-error-800",
126
+ "error-900": "--ramps-error-900",
127
+ "error-950": "--ramps-error-950",
128
128
  /* ----- State: Primary ----- */
129
- primary: "--state-color-primary-default",
130
- "primary-hover": "--state-color-primary-hover",
131
- "primary-stroke": "--state-color-primary-stroke",
132
- "primary-hover-bg": "--state-color-primary-hover-bg",
133
- "primary-pressed": "--state-color-primary-pressed",
134
- "primary-active": "--state-color-primary-active",
135
- "primary-text-solid": "--state-color-primary-text-solid",
136
- "primary-text-outline": "--state-color-primary-text-outline",
137
- "primary-text-hover": "--state-color-primary-text-hover",
138
- "primary-text-pressed": "--state-color-primary-text-pressed",
129
+ primary: "--state-primary-default",
130
+ "primary-hover": "--state-primary-hover",
131
+ "primary-stroke": "--state-primary-stroke",
132
+ "primary-hover-bg": "--state-primary-hover-bg",
133
+ "primary-pressed": "--state-primary-pressed",
134
+ "primary-active": "--state-primary-active",
135
+ "primary-text-solid": "--state-primary-text-solid",
136
+ "primary-text-outline": "--state-primary-text-outline",
137
+ "primary-text-hover": "--state-primary-text-hover",
138
+ "primary-text-pressed": "--state-primary-text-pressed",
139
139
  /* ----- State: Secondary ----- */
140
- secondary: "--state-color-secondary-default",
141
- "secondary-hover": "--state-color-secondary-hover",
142
- "secondary-stroke": "--state-color-secondary-stroke",
143
- "secondary-hover-bg": "--state-color-secondary-hover-bg",
144
- "secondary-pressed": "--state-color-secondary-pressed",
145
- "secondary-active": "--state-color-secondary-active",
146
- "secondary-text-solid": "--state-color-secondary-text-solid",
147
- "secondary-text-outline": "--state-color-secondary-text-outline",
148
- "secondary-text-hover": "--state-color-secondary-text-hover",
149
- "secondary-text-pressed": "--state-color-secondary-text-pressed",
140
+ secondary: "--state-secondary-default",
141
+ "secondary-hover": "--state-secondary-hover",
142
+ "secondary-stroke": "--state-secondary-stroke",
143
+ "secondary-hover-bg": "--state-secondary-hover-bg",
144
+ "secondary-pressed": "--state-secondary-pressed",
145
+ "secondary-active": "--state-secondary-active",
146
+ "secondary-text-solid": "--state-secondary-text-solid",
147
+ "secondary-text-outline": "--state-secondary-text-outline",
148
+ "secondary-text-hover": "--state-secondary-text-hover",
149
+ "secondary-text-pressed": "--state-secondary-text-pressed",
150
150
  /* ----- State: Tertiary ----- */
151
- tertiary: "--state-color-tertiary-default",
152
- "tertiary-hover": "--state-color-tertiary-hover",
153
- "tertiary-stroke": "--state-color-tertiary-stroke",
154
- "tertiary-hover-bg": "--state-color-tertiary-hover-bg",
155
- "tertiary-pressed": "--state-color-tertiary-pressed",
156
- "tertiary-active": "--state-color-tertiary-active",
157
- "tertiary-text-solid": "--state-color-tertiary-text-solid",
158
- "tertiary-text-outline": "--state-color-tertiary-text-outline",
159
- "tertiary-text-hover": "--state-color-tertiary-text-hover",
160
- "tertiary-text-pressed": "--state-color-tertiary-text-pressed",
151
+ tertiary: "--state-tertiary-default",
152
+ "tertiary-hover": "--state-tertiary-hover",
153
+ "tertiary-stroke": "--state-tertiary-stroke",
154
+ "tertiary-hover-bg": "--state-tertiary-hover-bg",
155
+ "tertiary-pressed": "--state-tertiary-pressed",
156
+ "tertiary-active": "--state-tertiary-active",
157
+ "tertiary-text-solid": "--state-tertiary-text-solid",
158
+ "tertiary-text-outline": "--state-tertiary-text-outline",
159
+ "tertiary-text-hover": "--state-tertiary-text-hover",
160
+ "tertiary-text-pressed": "--state-tertiary-text-pressed",
161
161
  /* ----- State: Info ----- */
162
- info: "--state-color-info-default",
163
- "info-hover": "--state-color-info-hover",
164
- "info-stroke": "--state-color-info-stroke",
165
- "info-hover-bg": "--state-color-info-hover-bg",
166
- "info-pressed": "--state-color-info-pressed",
167
- "info-active": "--state-color-info-active",
168
- "info-text-solid": "--state-color-info-text-solid",
169
- "info-text-outline": "--state-color-info-text-outline",
170
- "info-text-hover": "--state-color-info-text-hover",
171
- "info-text-pressed": "--state-color-info-text-pressed",
162
+ info: "--state-info-default",
163
+ "info-hover": "--state-info-hover",
164
+ "info-stroke": "--state-info-stroke",
165
+ "info-hover-bg": "--state-info-hover-bg",
166
+ "info-pressed": "--state-info-pressed",
167
+ "info-active": "--state-info-active",
168
+ "info-text-solid": "--state-info-text-solid",
169
+ "info-text-outline": "--state-info-text-outline",
170
+ "info-text-hover": "--state-info-text-hover",
171
+ "info-text-pressed": "--state-info-text-pressed",
172
172
  /* ----- State: Success ----- */
173
- success: "--state-color-success-default",
174
- "success-hover": "--state-color-success-hover",
175
- "success-stroke": "--state-color-success-stroke",
176
- "success-hover-bg": "--state-color-success-hover-bg",
177
- "success-pressed": "--state-color-success-pressed",
178
- "success-active": "--state-color-success-active",
179
- "success-text-solid": "--state-color-success-text-solid",
180
- "success-text-outline": "--state-color-success-text-outline",
181
- "success-text-hover": "--state-color-success-text-hover",
182
- "success-text-pressed": "--state-color-success-text-pressed",
173
+ success: "--state-success-default",
174
+ "success-hover": "--state-success-hover",
175
+ "success-stroke": "--state-success-stroke",
176
+ "success-hover-bg": "--state-success-hover-bg",
177
+ "success-pressed": "--state-success-pressed",
178
+ "success-active": "--state-success-active",
179
+ "success-text-solid": "--state-success-text-solid",
180
+ "success-text-outline": "--state-success-text-outline",
181
+ "success-text-hover": "--state-success-text-hover",
182
+ "success-text-pressed": "--state-success-text-pressed",
183
183
  /* ----- State: Warning ----- */
184
- warning: "--state-color-warning-default",
185
- "warning-hover": "--state-color-warning-hover",
186
- "warning-stroke": "--state-color-warning-stroke",
187
- "warning-hover-bg": "--state-color-warning-hover-bg",
188
- "warning-pressed": "--state-color-warning-pressed",
189
- "warning-active": "--state-color-warning-active",
190
- "warning-text-solid": "--state-color-warning-text-solid",
191
- "warning-text-outline": "--state-color-warning-text-outline",
192
- "warning-text-hover": "--state-color-warning-text-hover",
193
- "warning-text-pressed": "--state-color-warning-text-pressed",
184
+ warning: "--state-warning-default",
185
+ "warning-hover": "--state-warning-hover",
186
+ "warning-stroke": "--state-warning-stroke",
187
+ "warning-hover-bg": "--state-warning-hover-bg",
188
+ "warning-pressed": "--state-warning-pressed",
189
+ "warning-active": "--state-warning-active",
190
+ "warning-text-solid": "--state-warning-text-solid",
191
+ "warning-text-outline": "--state-warning-text-outline",
192
+ "warning-text-hover": "--state-warning-text-hover",
193
+ "warning-text-pressed": "--state-warning-text-pressed",
194
194
  /* ----- State: Error ----- */
195
- error: "--state-color-error-default",
196
- "error-hover": "--state-color-error-hover",
197
- "error-stroke": "--state-color-error-stroke",
198
- "error-hover-bg": "--state-color-error-hover-bg",
199
- "error-pressed": "--state-color-error-pressed",
200
- "error-active": "--state-color-error-active",
201
- "error-text-solid": "--state-color-error-text-solid",
202
- "error-text-outline": "--state-color-error-text-outline",
203
- "error-text-hover": "--state-color-error-text-hover",
204
- "error-text-pressed": "--state-color-error-text-pressed",
195
+ error: "--state-error-default",
196
+ "error-hover": "--state-error-hover",
197
+ "error-stroke": "--state-error-stroke",
198
+ "error-hover-bg": "--state-error-hover-bg",
199
+ "error-pressed": "--state-error-pressed",
200
+ "error-active": "--state-error-active",
201
+ "error-text-solid": "--state-error-text-solid",
202
+ "error-text-outline": "--state-error-text-outline",
203
+ "error-text-hover": "--state-error-text-hover",
204
+ "error-text-pressed": "--state-error-text-pressed",
205
205
  /* ----- State: Disable ----- */
206
- "disable-solid": "--state-color-disable-solid",
207
- "disable-outline": "--state-color-disable-outline",
206
+ "disable-solid": "--state-disable-solid",
207
+ "disable-outline": "--state-disable-outline",
208
208
  /* ----- Text ----- */
209
209
  "text-black": "--text-black",
210
210
  "text-dark": "--text-dark",
@@ -215,15 +215,15 @@ export const THEME_COLOR_KEYS = {
215
215
  "text-grey-light": "--text-grey-light",
216
216
  "text-white": "--text-white",
217
217
  /* ----- Input ----- */
218
- "input-default-text": "--input-color-default-text",
219
- "input-default-stroke": "--input-color-default-stroke",
220
- "input-filled-text": "--input-color-filled-text",
221
- "input-active-stroke": "--input-color-active-stroke",
222
- "input-disable-text": "--input-color-disable-text",
223
- "input-disable-stroke": "--input-color-disable-stroke",
224
- "input-disable-bg": "--input-color-disable-bg",
225
- "input-label-bg": "--input-color-label-bg",
226
- "input-error": "--input-color-error",
218
+ "input-default-text": "--input-default-text",
219
+ "input-default-stroke": "--input-default-stroke",
220
+ "input-filled-text": "--input-filled-text",
221
+ "input-active-stroke": "--input-active-stroke",
222
+ "input-disable-text": "--input-disable-text",
223
+ "input-disable-stroke": "--input-disable-stroke",
224
+ "input-disable-bg": "--input-disable-bg",
225
+ "input-label-bg": "--input-label-bg",
226
+ "input-error": "--input-error",
227
227
  /* ----- Function button ----- */
228
228
  "function-default-solid": "--function-default-solid",
229
229
  "function-default-hover": "--function-default-hover",
@@ -243,7 +243,7 @@ export const THEME_COLOR_KEYS = {
243
243
  "base-workspace-stroke": "--base-color-workspace-stroke",
244
244
  "base-guideline-stroke": "--base-color-guideline-stroke",
245
245
  "base-popup": "--base-color-popup",
246
- "base-popup-highlight": "--base-color-popup-hightlight",
246
+ "base-popup-highlight": "--base-color-popup-highlight",
247
247
  "base-popup-curtain": "--base-color-popup-curtain",
248
248
  "base-popup-foreground": "--base-color-popup-foreground",
249
249
  /* ----- Common ----- */
@@ -264,76 +264,76 @@ export const THEME_COLOR_KEYS = {
264
264
  "grey-foreground": "--grey-foreground",
265
265
  "grey2-foreground": "--grey2-foreground",
266
266
  /* ----- Transparency: Primary ----- */
267
- "primary-transparent-8": "--main-transparency-primary-8",
268
- "primary-transparent-12": "--main-transparency-primary-12",
269
- "primary-transparent-16": "--main-transparency-primary-16",
270
- "primary-transparent-24": "--main-transparency-primary-24",
271
- "primary-transparent-32": "--main-transparency-primary-32",
272
- "primary-transparent-48": "--main-transparency-primary-48",
267
+ "primary-transparent-8": "--transparent-primary-8",
268
+ "primary-transparent-12": "--transparent-primary-12",
269
+ "primary-transparent-16": "--transparent-primary-16",
270
+ "primary-transparent-24": "--transparent-primary-24",
271
+ "primary-transparent-32": "--transparent-primary-32",
272
+ "primary-transparent-48": "--transparent-primary-48",
273
273
  /* ----- Transparency: Secondary ----- */
274
- "secondary-transparent-8": "--main-transparency-secondary-8",
275
- "secondary-transparent-12": "--main-transparency-secondary-12",
276
- "secondary-transparent-16": "--main-transparency-secondary-16",
277
- "secondary-transparent-24": "--main-transparency-secondary-24",
278
- "secondary-transparent-32": "--main-transparency-secondary-32",
279
- "secondary-transparent-48": "--main-transparency-secondary-48",
274
+ "secondary-transparent-8": "--transparent-secondary-8",
275
+ "secondary-transparent-12": "--transparent-secondary-12",
276
+ "secondary-transparent-16": "--transparent-secondary-16",
277
+ "secondary-transparent-24": "--transparent-secondary-24",
278
+ "secondary-transparent-32": "--transparent-secondary-32",
279
+ "secondary-transparent-48": "--transparent-secondary-48",
280
280
  /* ----- Transparency: Tertiary ----- */
281
- "tertiary-transparent-8": "--main-transparency-tertiary-8",
282
- "tertiary-transparent-12": "--main-transparency-tertiary-12",
283
- "tertiary-transparent-16": "--main-transparency-tertiary-16",
284
- "tertiary-transparent-24": "--main-transparency-tertiary-24",
285
- "tertiary-transparent-32": "--main-transparency-tertiary-32",
286
- "tertiary-transparent-48": "--main-transparency-tertiary-48",
281
+ "tertiary-transparent-8": "--transparent-tertiary-8",
282
+ "tertiary-transparent-12": "--transparent-tertiary-12",
283
+ "tertiary-transparent-16": "--transparent-tertiary-16",
284
+ "tertiary-transparent-24": "--transparent-tertiary-24",
285
+ "tertiary-transparent-32": "--transparent-tertiary-32",
286
+ "tertiary-transparent-48": "--transparent-tertiary-48",
287
287
  /* ----- Transparency: Info, Success, Warning, Error, Grey, Grey2 ----- */
288
- "info-transparent-8": "--other-transparency-info-8",
289
- "info-transparent-12": "--other-transparency-info-12",
290
- "info-transparent-16": "--other-transparency-info-16",
291
- "info-transparent-24": "--other-transparency-info-24",
292
- "info-transparent-32": "--other-transparency-info-32",
293
- "info-transparent-48": "--other-transparency-info-48",
294
- "success-transparent-8": "--other-transparency-success-8",
295
- "success-transparent-12": "--other-transparency-success-12",
296
- "success-transparent-16": "--other-transparency-success-16",
297
- "success-transparent-24": "--other-transparency-success-24",
298
- "success-transparent-32": "--other-transparency-success-32",
299
- "success-transparent-48": "--other-transparency-success-48",
300
- "warning-transparent-8": "--other-transparency-warning-8",
301
- "warning-transparent-12": "--other-transparency-warning-12",
302
- "warning-transparent-16": "--other-transparency-warning-16",
303
- "warning-transparent-24": "--other-transparency-warning-24",
304
- "warning-transparent-32": "--other-transparency-warning-32",
305
- "warning-transparent-48": "--other-transparency-warning-48",
306
- "error-transparent-8": "--other-transparency-error-8",
307
- "error-transparent-12": "--other-transparency-error-12",
308
- "error-transparent-16": "--other-transparency-error-16",
309
- "error-transparent-24": "--other-transparency-error-24",
310
- "error-transparent-32": "--other-transparency-error-32",
311
- "error-transparent-48": "--other-transparency-error-48",
312
- "grey-transparent-8": "--other-transparency-grey-8",
313
- "grey-transparent-12": "--other-transparency-grey-12",
314
- "grey-transparent-16": "--other-transparency-grey-16",
315
- "grey-transparent-24": "--other-transparency-grey-24",
316
- "grey-transparent-32": "--other-transparency-grey-32",
317
- "grey-transparent-48": "--other-transparency-grey-48",
318
- "grey2-transparent-8": "--other-transparency-grey2-8",
319
- "grey2-transparent-12": "--other-transparency-grey2-12",
320
- "grey2-transparent-16": "--other-transparency-grey2-16",
321
- "grey2-transparent-24": "--other-transparency-grey2-24",
322
- "grey2-transparent-32": "--other-transparency-grey2-32",
323
- "grey2-transparent-48": "--other-transparency-grey2-48",
288
+ "info-transparent-8": "--transparent-info-8",
289
+ "info-transparent-12": "--transparent-info-12",
290
+ "info-transparent-16": "--transparent-info-16",
291
+ "info-transparent-24": "--transparent-info-24",
292
+ "info-transparent-32": "--transparent-info-32",
293
+ "info-transparent-48": "--transparent-info-48",
294
+ "success-transparent-8": "--transparent-success-8",
295
+ "success-transparent-12": "--transparent-success-12",
296
+ "success-transparent-16": "--transparent-success-16",
297
+ "success-transparent-24": "--transparent-success-24",
298
+ "success-transparent-32": "--transparent-success-32",
299
+ "success-transparent-48": "--transparent-success-48",
300
+ "warning-transparent-8": "--transparent-warning-8",
301
+ "warning-transparent-12": "--transparent-warning-12",
302
+ "warning-transparent-16": "--transparent-warning-16",
303
+ "warning-transparent-24": "--transparent-warning-24",
304
+ "warning-transparent-32": "--transparent-warning-32",
305
+ "warning-transparent-48": "--transparent-warning-48",
306
+ "error-transparent-8": "--transparent-error-8",
307
+ "error-transparent-12": "--transparent-error-12",
308
+ "error-transparent-16": "--transparent-error-16",
309
+ "error-transparent-24": "--transparent-error-24",
310
+ "error-transparent-32": "--transparent-error-32",
311
+ "error-transparent-48": "--transparent-error-48",
312
+ "grey-transparent-8": "--transparent-grey-8",
313
+ "grey-transparent-12": "--transparent-grey-12",
314
+ "grey-transparent-16": "--transparent-grey-16",
315
+ "grey-transparent-24": "--transparent-grey-24",
316
+ "grey-transparent-32": "--transparent-grey-32",
317
+ "grey-transparent-48": "--transparent-grey-48",
318
+ "grey2-transparent-8": "--transparent-grey2-8",
319
+ "grey2-transparent-12": "--transparent-grey2-12",
320
+ "grey2-transparent-16": "--transparent-grey2-16",
321
+ "grey2-transparent-24": "--transparent-grey2-24",
322
+ "grey2-transparent-32": "--transparent-grey2-32",
323
+ "grey2-transparent-48": "--transparent-grey2-48",
324
324
  /* ----- Transparency: White, Black ----- */
325
- "white-transparent-8": "--other-transparency-white-08",
326
- "white-transparent-12": "--other-transparency-white-12",
327
- "white-transparent-16": "--other-transparency-white-16",
328
- "white-transparent-24": "--other-transparency-white-24",
329
- "white-transparent-32": "--other-transparency-white-32",
330
- "white-transparent-48": "--other-transparency-white-48",
331
- "black-transparent-8": "--other-transparency-black-08",
332
- "black-transparent-12": "--other-transparency-black-12",
333
- "black-transparent-16": "--other-transparency-black-16",
334
- "black-transparent-24": "--other-transparency-black-24",
335
- "black-transparent-32": "--other-transparency-black-32",
336
- "black-transparent-48": "--other-transparency-black-48",
325
+ "white-transparent-8": "--transparent-white-8",
326
+ "white-transparent-12": "--transparent-white-12",
327
+ "white-transparent-16": "--transparent-white-16",
328
+ "white-transparent-24": "--transparent-white-24",
329
+ "white-transparent-32": "--transparent-white-32",
330
+ "white-transparent-48": "--transparent-white-48",
331
+ "black-transparent-8": "--transparent-black-8",
332
+ "black-transparent-12": "--transparent-black-12",
333
+ "black-transparent-16": "--transparent-black-16",
334
+ "black-transparent-24": "--transparent-black-24",
335
+ "black-transparent-32": "--transparent-black-32",
336
+ "black-transparent-48": "--transparent-black-48",
337
337
  };
338
338
  /**
339
339
  * Get computed color value from a CSS variable (respects current theme).
@@ -341,7 +341,7 @@ export const THEME_COLOR_KEYS = {
341
341
  *
342
342
  * @example
343
343
  * const primary = getThemeColor('primary');
344
- * const hex = getThemeColor('--primary-ramps-primary-100');
344
+ * const hex = getThemeColor('--ramps-primary-100');
345
345
  */
346
346
  export function getThemeColor(keyOrVar, element = document) {
347
347
  if (typeof window === "undefined")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rovula/ui",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "main": "dist/cjs/bundle.js",
5
5
  "module": "dist/esm/bundle.js",
6
6
  "types": "dist/index.d.ts",
@@ -2,12 +2,12 @@ import { cva } from "class-variance-authority";
2
2
 
3
3
  export const avatarVariants = cva(
4
4
  [
5
- "flex items-center justify-center bg-grey2-700 text-foreground typography-subtitile2 truncate",
5
+ "flex items-center justify-center bg-grey2-700 text-foreground typography-subtitle2 truncate",
6
6
  ],
7
7
  {
8
8
  variants: {
9
9
  size: {
10
- xxs: "w-[24px] h-[24px] typography-subtitile3",
10
+ xxs: "w-[24px] h-[24px] typography-subtitle3",
11
11
  xs: "w-[32px] h-[32px]",
12
12
  sm: "w-[40px] h-[40px]",
13
13
  md: "w-[48px] h-[48px]",