@rovula/ui 0.0.19 → 0.0.21

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 (207) hide show
  1. package/dist/cjs/bundle.css +3220 -1382
  2. package/dist/cjs/bundle.js +3 -3
  3. package/dist/cjs/bundle.js.map +1 -1
  4. package/dist/cjs/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
  5. package/dist/cjs/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
  6. package/dist/cjs/types/components/Button/Button.styles copy.d.ts +7 -0
  7. package/dist/cjs/types/components/Button/Button.styles.d.ts +1 -0
  8. package/dist/cjs/types/components/Button/Buttons.stories.d.ts +12 -4
  9. package/dist/cjs/types/components/Calendar/Calendar.d.ts +0 -1
  10. package/dist/cjs/types/components/Calendar/Calendar.stories.d.ts +7 -7
  11. package/dist/cjs/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
  12. package/dist/cjs/types/components/DatePicker/DatePicker.d.ts +2 -0
  13. package/dist/cjs/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
  14. package/dist/cjs/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
  15. package/dist/cjs/types/components/Input/Input.stories.d.ts +12 -12
  16. package/dist/cjs/types/components/Label/Label.stories.d.ts +6 -6
  17. package/dist/cjs/types/components/Loading/Loading.d.ts +14 -0
  18. package/dist/cjs/types/components/Loading/Loading.stories.d.ts +35 -0
  19. package/dist/cjs/types/components/ProgressBar/ProgressBar.d.ts +13 -0
  20. package/dist/cjs/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
  21. package/dist/cjs/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
  22. package/dist/cjs/types/components/Search/Search.d.ts +22 -1
  23. package/dist/cjs/types/components/Search/Search.stories.d.ts +338 -7
  24. package/dist/cjs/types/components/Table/Table.stories.d.ts +4 -4
  25. package/dist/cjs/types/components/Text/Text.d.ts +1 -1
  26. package/dist/cjs/types/components/Text/Text.stories.d.ts +1 -1
  27. package/dist/cjs/types/components/TextInput/TextInput.d.ts +4 -0
  28. package/dist/cjs/types/components/TextInput/TextInput.stories.d.ts +11 -6
  29. package/dist/cjs/types/components/TextInput/TextInput.styles.d.ts +8 -0
  30. package/dist/cjs/types/index.d.ts +3 -0
  31. package/dist/cjs/types/stories/ColorGroupPreview.d.ts +1 -0
  32. package/dist/cjs/types/stories/ColorPreview.d.ts +5 -0
  33. package/dist/components/ActionButton/ActionButton.js +1 -1
  34. package/dist/components/ActionButton/ActionButton.stories.js +1 -1
  35. package/dist/components/ActionButton/ActionButton.styles copy.js +90 -0
  36. package/dist/components/ActionButton/ActionButton.styles.js +54 -15
  37. package/dist/components/AlertDialog/AlertDialog.js +2 -2
  38. package/dist/components/Avatar/Avatar.styles.js +1 -1
  39. package/dist/components/Button/Button.js +3 -2
  40. package/dist/components/Button/Button.styles copy.js +210 -0
  41. package/dist/components/Button/Button.styles.js +203 -43
  42. package/dist/components/Button/Buttons.stories.js +9 -1
  43. package/dist/components/Calendar/Calendar.js +39 -2
  44. package/dist/components/Checkbox/Checkbox.js +1 -1
  45. package/dist/components/Collapsible/Collapsible.styles.js +6 -3
  46. package/dist/components/DatePicker/DatePicker.js +13 -2
  47. package/dist/components/Dialog/Dialog.js +4 -4
  48. package/dist/components/Dropdown/Dropdown.js +9 -7
  49. package/dist/components/Dropdown/Dropdown.styles.js +1 -1
  50. package/dist/components/Input/Input.js +8 -1
  51. package/dist/components/Input/Input.stories.js +3 -2
  52. package/dist/components/Input/Input.styles.js +13 -5
  53. package/dist/components/Loading/Loading.js +23 -0
  54. package/dist/components/Loading/Loading.stories.js +37 -0
  55. package/dist/components/Popover/Popover.js +1 -1
  56. package/dist/components/ProgressBar/ProgressBar.js +22 -0
  57. package/dist/components/ProgressBar/ProgressBar.stories.js +52 -0
  58. package/dist/components/RadioGroup/RadioGroup.js +2 -2
  59. package/dist/components/Search/Search.js +6 -7
  60. package/dist/components/Search/Search.stories.js +8 -5
  61. package/dist/components/Text/Text.js +17 -2
  62. package/dist/components/Text/Text.stories.js +5 -1
  63. package/dist/components/TextInput/TextInput.js +14 -5
  64. package/dist/components/TextInput/TextInput.stories.js +3 -2
  65. package/dist/components/TextInput/TextInput.styles.js +120 -18
  66. package/dist/esm/bundle.css +3220 -1382
  67. package/dist/esm/bundle.js +3 -3
  68. package/dist/esm/bundle.js.map +1 -1
  69. package/dist/esm/types/components/ActionButton/ActionButton.stories.d.ts +4 -4
  70. package/dist/esm/types/components/ActionButton/ActionButton.styles copy.d.ts +6 -0
  71. package/dist/esm/types/components/Button/Button.styles copy.d.ts +7 -0
  72. package/dist/esm/types/components/Button/Button.styles.d.ts +1 -0
  73. package/dist/esm/types/components/Button/Buttons.stories.d.ts +12 -4
  74. package/dist/esm/types/components/Calendar/Calendar.d.ts +0 -1
  75. package/dist/esm/types/components/Calendar/Calendar.stories.d.ts +7 -7
  76. package/dist/esm/types/components/Checkbox/Checkbox.stories.d.ts +6 -6
  77. package/dist/esm/types/components/DatePicker/DatePicker.d.ts +2 -0
  78. package/dist/esm/types/components/DatePicker/DatePicker.stories.d.ts +2 -0
  79. package/dist/esm/types/components/Dropdown/Dropdown.stories.d.ts +8 -6
  80. package/dist/esm/types/components/Input/Input.stories.d.ts +12 -12
  81. package/dist/esm/types/components/Label/Label.stories.d.ts +6 -6
  82. package/dist/esm/types/components/Loading/Loading.d.ts +14 -0
  83. package/dist/esm/types/components/Loading/Loading.stories.d.ts +35 -0
  84. package/dist/esm/types/components/ProgressBar/ProgressBar.d.ts +13 -0
  85. package/dist/esm/types/components/ProgressBar/ProgressBar.stories.d.ts +37 -0
  86. package/dist/esm/types/components/RadioGroup/RadioGroup.stories.d.ts +5 -5
  87. package/dist/esm/types/components/Search/Search.d.ts +22 -1
  88. package/dist/esm/types/components/Search/Search.stories.d.ts +338 -7
  89. package/dist/esm/types/components/Table/Table.stories.d.ts +4 -4
  90. package/dist/esm/types/components/Text/Text.d.ts +1 -1
  91. package/dist/esm/types/components/Text/Text.stories.d.ts +1 -1
  92. package/dist/esm/types/components/TextInput/TextInput.d.ts +4 -0
  93. package/dist/esm/types/components/TextInput/TextInput.stories.d.ts +11 -6
  94. package/dist/esm/types/components/TextInput/TextInput.styles.d.ts +8 -0
  95. package/dist/esm/types/index.d.ts +3 -0
  96. package/dist/esm/types/stories/ColorGroupPreview.d.ts +1 -0
  97. package/dist/esm/types/stories/ColorPreview.d.ts +5 -0
  98. package/dist/index.d.ts +53 -2
  99. package/dist/index.js +3 -0
  100. package/dist/src/theme/global.css +5078 -918
  101. package/dist/stories/ColorGroupPreview.js +478 -0
  102. package/dist/stories/ColorPreview.js +8 -0
  103. package/dist/theme/global.css +7 -227
  104. package/dist/theme/main-preset.js +131 -67
  105. package/dist/theme/plugins/utilities/typography.js +12 -0
  106. package/dist/theme/presets/colors.js +101 -220
  107. package/dist/theme/theme.d.ts +69 -0
  108. package/dist/theme/themes/xspector/baseline.css +7 -0
  109. package/dist/theme/themes/xspector/color.css +67 -0
  110. package/dist/theme/themes/xspector/components/action-button.css +98 -0
  111. package/dist/theme/themes/xspector/components/loading.css +11 -0
  112. package/dist/theme/themes/xspector/palette.css +122 -0
  113. package/dist/theme/themes/xspector/state.css +89 -0
  114. package/dist/theme/themes/xspector/transparent.css +68 -0
  115. package/dist/theme/themes/xspector/typography.css +27 -0
  116. package/dist/theme/tokens/baseline.css +10 -0
  117. package/dist/theme/tokens/color.css +63 -0
  118. package/dist/theme/tokens/components/action-button.css +127 -0
  119. package/dist/theme/tokens/components/button.css +512 -0
  120. package/dist/theme/tokens/components/loading.css +11 -0
  121. package/dist/theme/tokens/components/navbar.css +8 -0
  122. package/dist/theme/tokens/components/progress-bar.css +8 -0
  123. package/dist/theme/tokens/palette.css +122 -0
  124. package/dist/theme/tokens/state.css +82 -0
  125. package/dist/theme/tokens/transparent.css +68 -0
  126. package/dist/theme/tokens/typography.css +178 -0
  127. package/dist/theme/tokens/variables.css +28 -0
  128. package/dist/theme/utils.js +98 -0
  129. package/package.json +1 -1
  130. package/src/_theme/global copy.css +761 -0
  131. package/src/_theme/global.css +39 -0
  132. package/src/_theme/main-preset.js +239 -0
  133. package/src/_theme/plugins/utilities/typography.js +81 -0
  134. package/src/_theme/presets/colors copy 2.js +319 -0
  135. package/src/_theme/presets/colors copy.js +229 -0
  136. package/src/_theme/presets/colors.js +94 -0
  137. package/src/_theme/theme.d.ts +69 -0
  138. package/src/_theme/variables/base/button.css +334 -0
  139. package/src/_theme/variables/base/components copy.css +19 -0
  140. package/src/_theme/variables/default/colors.css +292 -0
  141. package/src/_theme/variables/default/typography.css +178 -0
  142. package/src/_theme/variables/xspector/colors.css +468 -0
  143. package/src/_theme/variables/xspector/typography.css +178 -0
  144. package/src/components/ActionButton/ActionButton.stories.tsx +1 -1
  145. package/src/components/ActionButton/ActionButton.styles copy.ts +95 -0
  146. package/src/components/ActionButton/ActionButton.styles.ts +54 -19
  147. package/src/components/ActionButton/ActionButton.tsx +1 -1
  148. package/src/components/AlertDialog/AlertDialog.tsx +2 -2
  149. package/src/components/Avatar/Avatar.styles.ts +1 -1
  150. package/src/components/Button/Button.styles copy.ts +214 -0
  151. package/src/components/Button/Button.styles.ts +203 -47
  152. package/src/components/Button/Button.tsx +4 -0
  153. package/src/components/Button/Buttons.stories.tsx +9 -1
  154. package/src/components/Calendar/Calendar.tsx +49 -7
  155. package/src/components/Checkbox/Checkbox.tsx +1 -1
  156. package/src/components/Collapsible/Collapsible.styles.ts +6 -3
  157. package/src/components/DatePicker/DatePicker.tsx +8 -2
  158. package/src/components/Dialog/Dialog.tsx +5 -5
  159. package/src/components/Dropdown/Dropdown.styles.ts +1 -1
  160. package/src/components/Dropdown/Dropdown.tsx +14 -12
  161. package/src/components/Input/Input.stories.tsx +3 -2
  162. package/src/components/Input/Input.styles.tsx +13 -6
  163. package/src/components/Input/Input.tsx +8 -1
  164. package/src/components/Loading/Loading.stories.tsx +43 -0
  165. package/src/components/Loading/Loading.tsx +72 -0
  166. package/src/components/Popover/Popover.tsx +1 -1
  167. package/src/components/ProgressBar/ProgressBar.stories.tsx +78 -0
  168. package/src/components/ProgressBar/ProgressBar.tsx +62 -0
  169. package/src/components/RadioGroup/RadioGroup.tsx +2 -2
  170. package/src/components/Search/Search.stories.tsx +13 -13
  171. package/src/components/Search/Search.tsx +14 -19
  172. package/src/components/Text/Text.stories.tsx +6 -4
  173. package/src/components/Text/Text.tsx +27 -3
  174. package/src/components/TextInput/TextInput.stories.tsx +3 -2
  175. package/src/components/TextInput/TextInput.styles.ts +124 -19
  176. package/src/components/TextInput/TextInput.tsx +34 -4
  177. package/src/index.ts +3 -0
  178. package/src/stories/ColorGroupPreview.tsx +494 -0
  179. package/src/stories/ColorPreview.tsx +45 -0
  180. package/src/stories/Colors.mdx +14 -0
  181. package/src/stories/Typography.mdx +7 -151
  182. package/src/theme/global.css +7 -227
  183. package/src/theme/main-preset.js +131 -67
  184. package/src/theme/plugins/utilities/typography.js +12 -0
  185. package/src/theme/presets/colors.js +101 -220
  186. package/src/theme/theme.d.ts +69 -0
  187. package/src/theme/themes/xspector/baseline.css +7 -0
  188. package/src/theme/themes/xspector/color.css +67 -0
  189. package/src/theme/themes/xspector/components/action-button.css +98 -0
  190. package/src/theme/themes/xspector/components/loading.css +11 -0
  191. package/src/theme/themes/xspector/palette.css +122 -0
  192. package/src/theme/themes/xspector/state.css +89 -0
  193. package/src/theme/themes/xspector/transparent.css +68 -0
  194. package/src/theme/themes/xspector/typography.css +27 -0
  195. package/src/theme/tokens/baseline.css +10 -0
  196. package/src/theme/tokens/color.css +63 -0
  197. package/src/theme/tokens/components/action-button.css +127 -0
  198. package/src/theme/tokens/components/button.css +512 -0
  199. package/src/theme/tokens/components/loading.css +11 -0
  200. package/src/theme/tokens/components/navbar.css +8 -0
  201. package/src/theme/tokens/components/progress-bar.css +8 -0
  202. package/src/theme/tokens/palette.css +122 -0
  203. package/src/theme/tokens/state.css +82 -0
  204. package/src/theme/tokens/transparent.css +68 -0
  205. package/src/theme/tokens/typography.css +178 -0
  206. package/src/theme/tokens/variables.css +28 -0
  207. package/src/theme/utils.js +98 -0
@@ -0,0 +1,478 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import ColorPreview from "./ColorPreview";
3
+ export default function ColorGroupPreview() {
4
+ var style = getComputedStyle(document.body);
5
+ var colorGroups = {
6
+ "Main Colors": {
7
+ prefix: "--main-color",
8
+ variable: [
9
+ "--main-color-primary",
10
+ "--main-color-secondary",
11
+ "--main-color-tertiary",
12
+ ],
13
+ },
14
+ "Text Colors": {
15
+ prefix: "--text",
16
+ variable: [
17
+ "--text-dark",
18
+ "--text-medium",
19
+ "--text-light",
20
+ "--text-grey-dark",
21
+ "--text-grey-medium",
22
+ "--text-grey-light",
23
+ "--text-white",
24
+ ],
25
+ },
26
+ // "State Colors": {
27
+ // prefix: "--state-color",
28
+ // variable: [
29
+ // "--state-color-primary-primary-default",
30
+ // "--state-color-primary-primary-hover",
31
+ // "--state-color-primary-primary-stroke",
32
+ // "--state-color-primary-primary-hover-bg",
33
+ // "--state-color-primary-primary-pressed",
34
+ // "--state-color-primary-primary-active",
35
+ // "--state-color-secondary-secondary-default",
36
+ // "--state-color-secondary-secondary-hover",
37
+ // "--state-color-secondary-secondary-stroke",
38
+ // "--state-color-secondary-secondary-hover-bg",
39
+ // "--state-color-secondary-secondary-pressed",
40
+ // "--state-color-secondary-secondary-active",
41
+ // "--state-color-tertiery-tertiary-default",
42
+ // "--state-color-tertiery-tertiary-hover",
43
+ // "--state-color-tertiery-tertiary-stroke",
44
+ // "--state-color-tertiery-tertiary-hover-bg",
45
+ // "--state-color-tertiery-tertiary-pressed",
46
+ // "--state-color-tertiery-tertiery-active",
47
+ // "--state-color-info-info-default",
48
+ // "--state-color-info-info-hover",
49
+ // "--state-color-info-info-stroke",
50
+ // "--state-color-info-info-hover-bg",
51
+ // "--state-color-info-info-pressed",
52
+ // "--state-color-info-info-active",
53
+ // "--state-color-success-success-default",
54
+ // "--state-color-success-success-hover",
55
+ // "--state-color-success-success-stroke",
56
+ // "--state-color-success-success-hover-bg",
57
+ // "--state-color-success-success-pressed",
58
+ // "--state-color-success-success-active",
59
+ // "--state-color-warning-warning-default",
60
+ // "--state-color-warning-warning-hover",
61
+ // "--state-color-warning-warning-stroke",
62
+ // "--state-color-warning-warning-hover-bg",
63
+ // "--state-color-warning-warning-pressed",
64
+ // "--state-color-warning-warning-active",
65
+ // "--state-color-error-error-default",
66
+ // "--state-color-error-error-hover",
67
+ // "--state-color-error-error-stroke",
68
+ // "--state-color-error-error-hover-bg",
69
+ // "--state-color-error-error-pressed",
70
+ // "--state-color-error-error-active",
71
+ // ],
72
+ // },
73
+ "Primary Colors": {
74
+ prefix: "--primary-ramps-primary",
75
+ variable: [
76
+ "--primary-ramps-primary-5",
77
+ "--primary-ramps-primary-10",
78
+ "--primary-ramps-primary-20",
79
+ "--primary-ramps-primary-30",
80
+ "--primary-ramps-primary-40",
81
+ "--primary-ramps-primary-50",
82
+ "--primary-ramps-primary-60",
83
+ "--primary-ramps-primary-70",
84
+ "--primary-ramps-primary-80",
85
+ "--primary-ramps-primary-90",
86
+ "--primary-ramps-primary-100",
87
+ "--primary-ramps-primary-110",
88
+ "--primary-ramps-primary-120",
89
+ "--primary-ramps-primary-130",
90
+ "--primary-ramps-primary-140",
91
+ "--primary-ramps-primary-150",
92
+ ],
93
+ },
94
+ "Primary Action State": {
95
+ prefix: "--state-color",
96
+ variable: [
97
+ "--state-color-primary-primary-default",
98
+ "--state-color-primary-primary-hover",
99
+ "--state-color-primary-primary-stroke",
100
+ "--state-color-primary-primary-hover-bg",
101
+ "--state-color-primary-primary-pressed",
102
+ "--state-color-primary-primary-active",
103
+ ],
104
+ },
105
+ "Secondary Colors": {
106
+ prefix: "--secondary-ramps-secondary",
107
+ variable: [
108
+ "--secondary-ramps-secondary-5",
109
+ "--secondary-ramps-secondary-10",
110
+ "--secondary-ramps-secondary-20",
111
+ "--secondary-ramps-secondary-30",
112
+ "--secondary-ramps-secondary-40",
113
+ "--secondary-ramps-secondary-50",
114
+ "--secondary-ramps-secondary-60",
115
+ "--secondary-ramps-secondary-70",
116
+ "--secondary-ramps-secondary-80",
117
+ "--secondary-ramps-secondary-90",
118
+ "--secondary-ramps-secondary-100",
119
+ "--secondary-ramps-secondary-110",
120
+ "--secondary-ramps-secondary-120",
121
+ "--secondary-ramps-secondary-130",
122
+ "--secondary-ramps-secondary-140",
123
+ "--secondary-ramps-secondary-150",
124
+ ],
125
+ },
126
+ "Secondary Action State": {
127
+ prefix: "--state-color",
128
+ variable: [
129
+ "--state-color-secondary-secondary-default",
130
+ "--state-color-secondary-secondary-hover",
131
+ "--state-color-secondary-secondary-stroke",
132
+ "--state-color-secondary-secondary-hover-bg",
133
+ "--state-color-secondary-secondary-pressed",
134
+ "--state-color-secondary-secondary-active",
135
+ ],
136
+ },
137
+ "Tertiary Colors": {
138
+ prefix: "--tertiary-ramps-tertiary",
139
+ variable: [
140
+ "--tertiary-ramps-tertiary-5",
141
+ "--tertiary-ramps-tertiary-10",
142
+ "--tertiary-ramps-tertiary-20",
143
+ "--tertiary-ramps-tertiary-30",
144
+ "--tertiary-ramps-tertiary-40",
145
+ "--tertiary-ramps-tertiary-50",
146
+ "--tertiary-ramps-tertiary-60",
147
+ "--tertiary-ramps-tertiary-70",
148
+ "--tertiary-ramps-tertiary-80",
149
+ "--tertiary-ramps-tertiary-90",
150
+ "--tertiary-ramps-tertiary-100",
151
+ "--tertiary-ramps-tertiary-110",
152
+ "--tertiary-ramps-tertiary-120",
153
+ "--tertiary-ramps-tertiary-130",
154
+ "--tertiary-ramps-tertiary-140",
155
+ "--tertiary-ramps-tertiary-150",
156
+ ],
157
+ },
158
+ "Tertiary Action State": {
159
+ prefix: "--state-color",
160
+ variable: [
161
+ "--state-color-tertiery-tertiary-default",
162
+ "--state-color-tertiery-tertiary-hover",
163
+ "--state-color-tertiery-tertiary-stroke",
164
+ "--state-color-tertiery-tertiary-hover-bg",
165
+ "--state-color-tertiery-tertiary-pressed",
166
+ "--state-color-tertiery-tertiery-active",
167
+ ],
168
+ },
169
+ "Grey Colors": {
170
+ prefix: "--grey-grey",
171
+ variable: [
172
+ "--grey-grey-5",
173
+ "--grey-grey-10",
174
+ "--grey-grey-20",
175
+ "--grey-grey-30",
176
+ "--grey-grey-40",
177
+ "--grey-grey-50",
178
+ "--grey-grey-60",
179
+ "--grey-grey-70",
180
+ "--grey-grey-80",
181
+ "--grey-grey-90",
182
+ "--grey-grey-100",
183
+ "--grey-grey-110",
184
+ "--grey-grey-120",
185
+ "--grey-grey-130",
186
+ "--grey-grey-140",
187
+ "--grey-grey-150",
188
+ ],
189
+ },
190
+ "Grey 2 Colors": {
191
+ prefix: "--grey2-grey2",
192
+ variable: [
193
+ "--grey2-grey2-50",
194
+ "--grey2-grey2-100",
195
+ "--grey2-grey2-200",
196
+ "--grey2-grey2-300",
197
+ "--grey2-grey2-400",
198
+ "--grey2-grey2-500",
199
+ "--grey2-grey2-600",
200
+ "--grey2-grey2-700",
201
+ "--grey2-grey2-800",
202
+ "--grey2-grey2-900",
203
+ "--grey2-grey2-950",
204
+ ],
205
+ },
206
+ "Info Colors": {
207
+ prefix: "--info-info",
208
+ variable: [
209
+ "--info-info-50",
210
+ "--info-info-100",
211
+ "--info-info-200",
212
+ "--info-info-300",
213
+ "--info-info-400",
214
+ "--info-info-500",
215
+ "--info-info-600",
216
+ "--info-info-700",
217
+ "--info-info-800",
218
+ "--info-info-900",
219
+ "--info-info-950",
220
+ ],
221
+ },
222
+ "Info Action State": {
223
+ prefix: "--state-color",
224
+ variable: [
225
+ "--state-color-info-info-default",
226
+ "--state-color-info-info-hover",
227
+ "--state-color-info-info-stroke",
228
+ "--state-color-info-info-hover-bg",
229
+ "--state-color-info-info-pressed",
230
+ "--state-color-info-info-active",
231
+ ],
232
+ },
233
+ "Success Colors": {
234
+ prefix: "--success-success",
235
+ variable: [
236
+ "--success-success-50",
237
+ "--success-success-100",
238
+ "--success-success-200",
239
+ "--success-success-300",
240
+ "--success-success-400",
241
+ "--success-success-500",
242
+ "--success-success-600",
243
+ "--success-success-700",
244
+ "--success-success-800",
245
+ "--success-success-900",
246
+ "--success-success-950",
247
+ ],
248
+ },
249
+ "Success Action State": {
250
+ prefix: "--state-color",
251
+ variable: [
252
+ "--state-color-success-success-default",
253
+ "--state-color-success-success-hover",
254
+ "--state-color-success-success-stroke",
255
+ "--state-color-success-success-hover-bg",
256
+ "--state-color-success-success-pressed",
257
+ "--state-color-success-success-active",
258
+ ],
259
+ },
260
+ "Warning Colors": {
261
+ prefix: "--warning-warning",
262
+ variable: [
263
+ "--warning-warning-50",
264
+ "--warning-warning-100",
265
+ "--warning-warning-200",
266
+ "--warning-warning-300",
267
+ "--warning-warning-400",
268
+ "--warning-warning-500",
269
+ "--warning-warning-600",
270
+ "--warning-warning-700",
271
+ "--warning-warning-800",
272
+ "--warning-warning-900",
273
+ "--warning-warning-950",
274
+ ],
275
+ },
276
+ "Warning Action State": {
277
+ prefix: "--state-color",
278
+ variable: [
279
+ "--state-color-warning-warning-default",
280
+ "--state-color-warning-warning-hover",
281
+ "--state-color-warning-warning-stroke",
282
+ "--state-color-warning-warning-hover-bg",
283
+ "--state-color-warning-warning-pressed",
284
+ "--state-color-warning-warning-active",
285
+ ],
286
+ },
287
+ "Error Colors": {
288
+ prefix: "--error-error",
289
+ variable: [
290
+ "--error-error-50",
291
+ "--error-error-100",
292
+ "--error-error-200",
293
+ "--error-error-300",
294
+ "--error-error-400",
295
+ "--error-error-500",
296
+ "--error-error-600",
297
+ "--error-error-700",
298
+ "--error-error-800",
299
+ "--error-error-900",
300
+ "--error-error-950",
301
+ ],
302
+ },
303
+ "Error Action State": {
304
+ prefix: "--state-color",
305
+ variable: [
306
+ "--state-color-error-error-default",
307
+ "--state-color-error-error-hover",
308
+ "--state-color-error-error-stroke",
309
+ "--state-color-error-error-hover-bg",
310
+ "--state-color-error-error-pressed",
311
+ "--state-color-error-error-active",
312
+ ],
313
+ },
314
+ "Main Transparency Primary": {
315
+ prefix: "--main-transparency",
316
+ variable: [
317
+ "--main-transparency-primary-8",
318
+ "--main-transparency-primary-12",
319
+ "--main-transparency-primary-16",
320
+ "--main-transparency-primary-24",
321
+ "--main-transparency-primary-32",
322
+ "--main-transparency-primary-48",
323
+ ],
324
+ },
325
+ "Main Transparency Secondary": {
326
+ prefix: "--main-transparency",
327
+ variable: [
328
+ "--main-transparency-secondary-8",
329
+ "--main-transparency-secondary-12",
330
+ "--main-transparency-secondary-16",
331
+ "--main-transparency-secondary-24",
332
+ "--main-transparency-secondary-32",
333
+ "--main-transparency-secondary-48",
334
+ ],
335
+ },
336
+ "Main Transparency Tertiary": {
337
+ prefix: "--main-transparency",
338
+ variable: [
339
+ "--main-transparency-tertiary-8",
340
+ "--main-transparency-tertiary-12",
341
+ "--main-transparency-tertiary-16",
342
+ "--main-transparency-tertiary-24",
343
+ "--main-transparency-tertiary-32",
344
+ "--main-transparency-tertiary-48",
345
+ ],
346
+ },
347
+ "Other Transparency Info": {
348
+ prefix: "--other-transparency",
349
+ variable: [
350
+ "--other-transparency-info-8",
351
+ "--other-transparency-info-12",
352
+ "--other-transparency-info-16",
353
+ "--other-transparency-info-24",
354
+ "--other-transparency-info-32",
355
+ "--other-transparency-info-48",
356
+ ],
357
+ },
358
+ "Other Transparency Success": {
359
+ prefix: "--other-transparency",
360
+ variable: [
361
+ "--other-transparency-success-8",
362
+ "--other-transparency-success-12",
363
+ "--other-transparency-success-16",
364
+ "--other-transparency-success-24",
365
+ "--other-transparency-success-32",
366
+ "--other-transparency-success-48",
367
+ ],
368
+ },
369
+ "Other Transparency Warning": {
370
+ prefix: "--other-transparency",
371
+ variable: [
372
+ "--other-transparency-warning-8",
373
+ "--other-transparency-warning-12",
374
+ "--other-transparency-warning-16",
375
+ "--other-transparency-warning-24",
376
+ "--other-transparency-warning-32",
377
+ "--other-transparency-warning-48",
378
+ ],
379
+ },
380
+ "Other Transparency Error": {
381
+ prefix: "--other-transparency",
382
+ variable: [
383
+ "--other-transparency-error-8",
384
+ "--other-transparency-error-12",
385
+ "--other-transparency-error-16",
386
+ "--other-transparency-error-24",
387
+ "--other-transparency-error-32",
388
+ "--other-transparency-error-48",
389
+ ],
390
+ },
391
+ "Other Transparency White": {
392
+ prefix: "--other-transparency",
393
+ variable: [
394
+ "--other-transparency-white-8",
395
+ "--other-transparency-white-12",
396
+ "--other-transparency-white-16",
397
+ "--other-transparency-white-24",
398
+ "--other-transparency-white-32",
399
+ "--other-transparency-white-48",
400
+ ],
401
+ },
402
+ "Other Transparency Grey": {
403
+ prefix: "--other-transparency",
404
+ variable: [
405
+ "--other-transparency-grey-8",
406
+ "--other-transparency-grey-12",
407
+ "--other-transparency-grey-16",
408
+ "--other-transparency-grey-24",
409
+ "--other-transparency-grey-32",
410
+ "--other-transparency-grey-48",
411
+ ],
412
+ },
413
+ "Other Transparency Grey 2": {
414
+ prefix: "--other-transparency",
415
+ variable: [
416
+ "--other-transparency-grey2-8",
417
+ "--other-transparency-grey2-12",
418
+ "--other-transparency-grey2-16",
419
+ "--other-transparency-grey2-24",
420
+ "--other-transparency-grey2-32",
421
+ "--other-transparency-grey2-48",
422
+ ],
423
+ },
424
+ "Other Transparency Black": {
425
+ prefix: "--other-transparency",
426
+ variable: [
427
+ "--other-transparency-black-8",
428
+ "--other-transparency-black-12",
429
+ "--other-transparency-black-16",
430
+ "--other-transparency-black-24",
431
+ "--other-transparency-black-32",
432
+ "--other-transparency-black-48",
433
+ ],
434
+ },
435
+ Other: {
436
+ prefix: "--other",
437
+ variable: [
438
+ "--other-bg",
439
+ "--other-bg2",
440
+ "--other-popup",
441
+ "--other-popup-hightlight",
442
+ "--other-popup-curtain",
443
+ ],
444
+ },
445
+ Disabled: {
446
+ prefix: "--state-color-disable",
447
+ variable: [
448
+ "--state-color-disable-disable-solid",
449
+ "--state-color-disable-disable-outline",
450
+ ],
451
+ },
452
+ "Input Colors": {
453
+ prefix: "--input-color",
454
+ variable: [
455
+ "--input-color-default-text",
456
+ "--input-color-default-stroke",
457
+ "--input-color-filled-text",
458
+ "--input-color-active-stroke",
459
+ "--input-color-disable-text",
460
+ "--input-color-disable-stroke",
461
+ "--input-color-disable-bg",
462
+ "--input-color-label-bg",
463
+ "--input-color-error",
464
+ ],
465
+ },
466
+ Common: {
467
+ prefix: "--common",
468
+ variable: ["--common-white", "--common-black"],
469
+ },
470
+ };
471
+ return (_jsx("div", { className: "flex flex-col gap-20", children: Object.entries(colorGroups).map(function (_a) {
472
+ var groupName = _a[0], colorVariables = _a[1];
473
+ return (_jsxs("div", { className: "flex flex-col", children: [_jsx("h3", { className: "text-black m-0", children: groupName }), _jsx("div", { className: "flex flex-row flex-wrap gap-3", children: colorVariables.variable.map(function (colorVariable) {
474
+ var _a;
475
+ return (_jsx(ColorPreview, { colorName: (_a = colorVariable.split("-").reverse()) === null || _a === void 0 ? void 0 : _a[0], colorCode: style.getPropertyValue(colorVariable).trim(), isSmall: colorVariables.variable.length > 7 }, colorVariable));
476
+ }) })] }, groupName));
477
+ }) }));
478
+ }
@@ -0,0 +1,8 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ export default function ColorPreview(_a) {
3
+ var colorName = _a.colorName, colorCode = _a.colorCode, isSmall = _a.isSmall;
4
+ if (isSmall) {
5
+ return (_jsxs("div", { className: " flex-1 h-[120px] flex flex-col rounded-xl shadow-lg overflow-hidden", children: [_jsx("div", { className: "flex flex-1", style: { backgroundColor: colorCode } }), _jsx("div", { className: "bg-white p-3 px-3 flex flex-col justify-center items-start", children: _jsx("h3", { className: "text-black leading-3 p-0", children: colorName }) })] }));
6
+ }
7
+ return (_jsxs("div", { className: " flex-1 h-[160px] flex flex-col rounded-xl shadow-lg overflow-hidden", children: [_jsx("div", { className: "flex flex-1", style: { backgroundColor: colorCode } }), _jsxs("div", { className: "bg-white p-3 px-6 flex flex-col justify-center items-start", children: [_jsx("h3", { className: "text-black leading-3 p-0 text-error", children: colorName }), _jsx("div", { className: "text-gray-600 leading-1 p-0 m-0", style: { fontSize: "8px" }, children: colorCode })] })] }));
8
+ }