@bigstack-oss/cube-ui 0.0.2 → 0.1.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/index.css +517 -0
- package/dist/index.d.cts +244 -10
- package/dist/index.d.ts +244 -10
- package/dist/index.js +1497 -39
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1492 -41
- package/dist/index.mjs.map +1 -1
- package/dist/theme.d.cts +405 -405
- package/dist/theme.d.ts +405 -405
- package/package.json +1 -1
package/dist/theme.d.cts
CHANGED
|
@@ -2,377 +2,6 @@ import * as react from 'react';
|
|
|
2
2
|
import { PropsWithChildren } from 'react';
|
|
3
3
|
import * as tailwindcss_types_config from 'tailwindcss/types/config';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Brand palettes shipped as `themes/*.css`. Add a new entry here, a matching
|
|
7
|
-
* `your-theme.css` file in `themes/`, and an `@import` for it in
|
|
8
|
-
* `themes/index.css`, for each additional product palette.
|
|
9
|
-
*/
|
|
10
|
-
type CubeThemeName = 'cubeCOS' | 'cubeEMP';
|
|
11
|
-
|
|
12
|
-
type CubeThemeProviderProps = PropsWithChildren<{
|
|
13
|
-
/** Which brand palette's CSS variables (see `theme/tokens/themes/*.css`) to apply. */
|
|
14
|
-
theme: CubeThemeName;
|
|
15
|
-
}>;
|
|
16
|
-
/**
|
|
17
|
-
* Selects which brand palette @bigstack-oss/cube-ui's colors resolve to by
|
|
18
|
-
* setting `data-cube-theme` on the document root.
|
|
19
|
-
*
|
|
20
|
-
* **Optional** — omitting this provider falls back to the `cubeCOS` palette,
|
|
21
|
-
* which is applied at `:root` in `cubeCOS.css` by default.
|
|
22
|
-
*/
|
|
23
|
-
declare const CubeThemeProvider: (props: CubeThemeProviderProps) => react.ReactNode;
|
|
24
|
-
|
|
25
|
-
declare const cubePreset: {
|
|
26
|
-
theme: {
|
|
27
|
-
extend: {
|
|
28
|
-
screens: {
|
|
29
|
-
'height-sm': {
|
|
30
|
-
raw: string;
|
|
31
|
-
};
|
|
32
|
-
'height-md': {
|
|
33
|
-
raw: string;
|
|
34
|
-
};
|
|
35
|
-
'height-lg': {
|
|
36
|
-
raw: string;
|
|
37
|
-
};
|
|
38
|
-
'height-xl': {
|
|
39
|
-
raw: string;
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
colors: {
|
|
43
|
-
primary: {
|
|
44
|
-
DEFAULT: string;
|
|
45
|
-
0: string;
|
|
46
|
-
50: string;
|
|
47
|
-
100: string;
|
|
48
|
-
150: string;
|
|
49
|
-
200: string;
|
|
50
|
-
300: string;
|
|
51
|
-
400: string;
|
|
52
|
-
500: string;
|
|
53
|
-
600: string;
|
|
54
|
-
700: string;
|
|
55
|
-
800: string;
|
|
56
|
-
850: string;
|
|
57
|
-
};
|
|
58
|
-
secondary: {
|
|
59
|
-
DEFAULT: string;
|
|
60
|
-
0: string;
|
|
61
|
-
50: string;
|
|
62
|
-
100: string;
|
|
63
|
-
150: string;
|
|
64
|
-
200: string;
|
|
65
|
-
300: string;
|
|
66
|
-
400: string;
|
|
67
|
-
500: string;
|
|
68
|
-
600: string;
|
|
69
|
-
700: string;
|
|
70
|
-
800: string;
|
|
71
|
-
850: string;
|
|
72
|
-
};
|
|
73
|
-
dark: {
|
|
74
|
-
0: string;
|
|
75
|
-
50: string;
|
|
76
|
-
100: string;
|
|
77
|
-
150: string;
|
|
78
|
-
200: string;
|
|
79
|
-
300: string;
|
|
80
|
-
400: string;
|
|
81
|
-
500: string;
|
|
82
|
-
600: string;
|
|
83
|
-
700: string;
|
|
84
|
-
800: string;
|
|
85
|
-
850: string;
|
|
86
|
-
};
|
|
87
|
-
grey: {
|
|
88
|
-
0: string;
|
|
89
|
-
50: string;
|
|
90
|
-
100: string;
|
|
91
|
-
150: string;
|
|
92
|
-
200: string;
|
|
93
|
-
300: string;
|
|
94
|
-
400: string;
|
|
95
|
-
500: string;
|
|
96
|
-
600: string;
|
|
97
|
-
700: string;
|
|
98
|
-
800: string;
|
|
99
|
-
850: string;
|
|
100
|
-
};
|
|
101
|
-
blue: {
|
|
102
|
-
0: string;
|
|
103
|
-
50: string;
|
|
104
|
-
100: string;
|
|
105
|
-
150: string;
|
|
106
|
-
200: string;
|
|
107
|
-
300: string;
|
|
108
|
-
400: string;
|
|
109
|
-
500: string;
|
|
110
|
-
600: string;
|
|
111
|
-
700: string;
|
|
112
|
-
800: string;
|
|
113
|
-
850: string;
|
|
114
|
-
};
|
|
115
|
-
green: {
|
|
116
|
-
0: string;
|
|
117
|
-
50: string;
|
|
118
|
-
100: string;
|
|
119
|
-
150: string;
|
|
120
|
-
200: string;
|
|
121
|
-
300: string;
|
|
122
|
-
400: string;
|
|
123
|
-
500: string;
|
|
124
|
-
600: string;
|
|
125
|
-
700: string;
|
|
126
|
-
800: string;
|
|
127
|
-
850: string;
|
|
128
|
-
};
|
|
129
|
-
yellow: {
|
|
130
|
-
0: string;
|
|
131
|
-
50: string;
|
|
132
|
-
100: string;
|
|
133
|
-
150: string;
|
|
134
|
-
200: string;
|
|
135
|
-
300: string;
|
|
136
|
-
400: string;
|
|
137
|
-
500: string;
|
|
138
|
-
600: string;
|
|
139
|
-
700: string;
|
|
140
|
-
800: string;
|
|
141
|
-
850: string;
|
|
142
|
-
};
|
|
143
|
-
red: {
|
|
144
|
-
0: string;
|
|
145
|
-
50: string;
|
|
146
|
-
100: string;
|
|
147
|
-
150: string;
|
|
148
|
-
200: string;
|
|
149
|
-
300: string;
|
|
150
|
-
400: string;
|
|
151
|
-
500: string;
|
|
152
|
-
600: string;
|
|
153
|
-
700: string;
|
|
154
|
-
800: string;
|
|
155
|
-
850: string;
|
|
156
|
-
};
|
|
157
|
-
cosmos: {
|
|
158
|
-
primary: string;
|
|
159
|
-
secondary: string;
|
|
160
|
-
};
|
|
161
|
-
scene: {
|
|
162
|
-
gradient: string;
|
|
163
|
-
background: string;
|
|
164
|
-
};
|
|
165
|
-
functional: {
|
|
166
|
-
title: string;
|
|
167
|
-
text: string;
|
|
168
|
-
'text-light': string;
|
|
169
|
-
'hover-primary': string;
|
|
170
|
-
'hover-secondary': string;
|
|
171
|
-
'hover-grey': string;
|
|
172
|
-
'hover-grey-darker': string;
|
|
173
|
-
'border-divider': string;
|
|
174
|
-
'border-darker': string;
|
|
175
|
-
disable: string;
|
|
176
|
-
'disable-text': string;
|
|
177
|
-
'disable-light': string;
|
|
178
|
-
skeleton: string;
|
|
179
|
-
};
|
|
180
|
-
status: {
|
|
181
|
-
positive: string;
|
|
182
|
-
'positive-text': string;
|
|
183
|
-
negative: string;
|
|
184
|
-
warning: string;
|
|
185
|
-
paused: string;
|
|
186
|
-
neutral: string;
|
|
187
|
-
'over-limit': string;
|
|
188
|
-
};
|
|
189
|
-
chart: {
|
|
190
|
-
1: string;
|
|
191
|
-
2: string;
|
|
192
|
-
3: string;
|
|
193
|
-
4: string;
|
|
194
|
-
5: string;
|
|
195
|
-
6: string;
|
|
196
|
-
7: string;
|
|
197
|
-
8: string;
|
|
198
|
-
9: string;
|
|
199
|
-
10: string;
|
|
200
|
-
11: string;
|
|
201
|
-
12: string;
|
|
202
|
-
13: string;
|
|
203
|
-
14: string;
|
|
204
|
-
15: string;
|
|
205
|
-
16: string;
|
|
206
|
-
17: string;
|
|
207
|
-
18: string;
|
|
208
|
-
19: string;
|
|
209
|
-
20: string;
|
|
210
|
-
21: string;
|
|
211
|
-
22: string;
|
|
212
|
-
23: string;
|
|
213
|
-
24: string;
|
|
214
|
-
25: string;
|
|
215
|
-
26: string;
|
|
216
|
-
27: string;
|
|
217
|
-
28: string;
|
|
218
|
-
29: string;
|
|
219
|
-
30: string;
|
|
220
|
-
31: string;
|
|
221
|
-
32: string;
|
|
222
|
-
};
|
|
223
|
-
};
|
|
224
|
-
fontFamily: {
|
|
225
|
-
urbanist: [string, string, ...string[]];
|
|
226
|
-
inter: [string, string, ...string[]];
|
|
227
|
-
"noto-sans-tc": [string, ...string[]];
|
|
228
|
-
sans: [string, string, ...string[]];
|
|
229
|
-
};
|
|
230
|
-
fontWeight: {
|
|
231
|
-
regular: string;
|
|
232
|
-
medium: string;
|
|
233
|
-
semibold: string;
|
|
234
|
-
};
|
|
235
|
-
keyframes: {
|
|
236
|
-
'cube-spinner-vector-0': {
|
|
237
|
-
'0%, 100%': {
|
|
238
|
-
opacity: string;
|
|
239
|
-
};
|
|
240
|
-
'33.3%, 66.6%': {
|
|
241
|
-
opacity: string;
|
|
242
|
-
};
|
|
243
|
-
};
|
|
244
|
-
'cube-spinner-vector-1': {
|
|
245
|
-
'0%, 66.6%, 100%': {
|
|
246
|
-
opacity: string;
|
|
247
|
-
};
|
|
248
|
-
'33.3%': {
|
|
249
|
-
opacity: string;
|
|
250
|
-
};
|
|
251
|
-
};
|
|
252
|
-
'cube-spinner-vector-2': {
|
|
253
|
-
'0%, 33.3%, 100%': {
|
|
254
|
-
opacity: string;
|
|
255
|
-
};
|
|
256
|
-
'66.6%': {
|
|
257
|
-
opacity: string;
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
'cube-dot-spinner-120-vector-0': {
|
|
261
|
-
'0%, 100%': {
|
|
262
|
-
opacity: string;
|
|
263
|
-
};
|
|
264
|
-
'33.3%, 66.6%': {
|
|
265
|
-
opacity: string;
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
|
-
'cube-dot-spinner-120-vector-1': {
|
|
269
|
-
'0%, 66.6%, 100%': {
|
|
270
|
-
opacity: string;
|
|
271
|
-
};
|
|
272
|
-
'33.3%': {
|
|
273
|
-
opacity: string;
|
|
274
|
-
};
|
|
275
|
-
};
|
|
276
|
-
'cube-dot-spinner-120-vector-2': {
|
|
277
|
-
'0%, 33.3%, 100%': {
|
|
278
|
-
opacity: string;
|
|
279
|
-
};
|
|
280
|
-
'66.6%': {
|
|
281
|
-
opacity: string;
|
|
282
|
-
};
|
|
283
|
-
};
|
|
284
|
-
'cube-dot-spinner-45-vector-0': {
|
|
285
|
-
'0%, 100%': {
|
|
286
|
-
opacity: string;
|
|
287
|
-
};
|
|
288
|
-
'12.5%, 87.5%': {
|
|
289
|
-
opacity: string;
|
|
290
|
-
};
|
|
291
|
-
};
|
|
292
|
-
'cube-dot-spinner-45-vector-1': {
|
|
293
|
-
'0%, 25%, 100%': {
|
|
294
|
-
opacity: string;
|
|
295
|
-
};
|
|
296
|
-
'12.5%': {
|
|
297
|
-
opacity: string;
|
|
298
|
-
};
|
|
299
|
-
};
|
|
300
|
-
'cube-dot-spinner-45-vector-2': {
|
|
301
|
-
'0%, 12.5%, 37.5%, 100%': {
|
|
302
|
-
opacity: string;
|
|
303
|
-
};
|
|
304
|
-
'25%': {
|
|
305
|
-
opacity: string;
|
|
306
|
-
};
|
|
307
|
-
};
|
|
308
|
-
'cube-dot-spinner-45-vector-3': {
|
|
309
|
-
'0%, 25%, 50%, 100%': {
|
|
310
|
-
opacity: string;
|
|
311
|
-
};
|
|
312
|
-
'37.5%': {
|
|
313
|
-
opacity: string;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
'cube-dot-spinner-45-vector-4': {
|
|
317
|
-
'0%, 37.5%, 62.5%, 100%': {
|
|
318
|
-
opacity: string;
|
|
319
|
-
};
|
|
320
|
-
'50%': {
|
|
321
|
-
opacity: string;
|
|
322
|
-
};
|
|
323
|
-
};
|
|
324
|
-
'cube-dot-spinner-45-vector-5': {
|
|
325
|
-
'0%, 50%, 75%, 100%': {
|
|
326
|
-
opacity: string;
|
|
327
|
-
};
|
|
328
|
-
'62.5%': {
|
|
329
|
-
opacity: string;
|
|
330
|
-
};
|
|
331
|
-
};
|
|
332
|
-
'cube-dot-spinner-45-vector-6': {
|
|
333
|
-
'0%, 62.5%, 87.5%, 100%': {
|
|
334
|
-
opacity: string;
|
|
335
|
-
};
|
|
336
|
-
'75%': {
|
|
337
|
-
opacity: string;
|
|
338
|
-
};
|
|
339
|
-
};
|
|
340
|
-
'cube-dot-spinner-45-vector-7': {
|
|
341
|
-
'0%, 75%, 100%': {
|
|
342
|
-
opacity: string;
|
|
343
|
-
};
|
|
344
|
-
'87.5%': {
|
|
345
|
-
opacity: string;
|
|
346
|
-
};
|
|
347
|
-
};
|
|
348
|
-
'cube-skeleton': {
|
|
349
|
-
'100%': {
|
|
350
|
-
backgroundPositionX: string;
|
|
351
|
-
};
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
animation: {
|
|
355
|
-
'cube-spinner-vector-0': string;
|
|
356
|
-
'cube-spinner-vector-1': string;
|
|
357
|
-
'cube-spinner-vector-2': string;
|
|
358
|
-
'cube-dot-spinner-120-vector-0': string;
|
|
359
|
-
'cube-dot-spinner-120-vector-1': string;
|
|
360
|
-
'cube-dot-spinner-120-vector-2': string;
|
|
361
|
-
'cube-dot-spinner-45-vector-0': string;
|
|
362
|
-
'cube-dot-spinner-45-vector-1': string;
|
|
363
|
-
'cube-dot-spinner-45-vector-2': string;
|
|
364
|
-
'cube-dot-spinner-45-vector-3': string;
|
|
365
|
-
'cube-dot-spinner-45-vector-4': string;
|
|
366
|
-
'cube-dot-spinner-45-vector-5': string;
|
|
367
|
-
'cube-dot-spinner-45-vector-6': string;
|
|
368
|
-
'cube-dot-spinner-45-vector-7': string;
|
|
369
|
-
'cube-skeleton': string;
|
|
370
|
-
};
|
|
371
|
-
};
|
|
372
|
-
};
|
|
373
|
-
plugins: tailwindcss_types_config.PluginCreator[];
|
|
374
|
-
};
|
|
375
|
-
|
|
376
5
|
type FlattenObjectKeysInternal<T extends Record<string | number, unknown>, Separator extends string = '.', ExcludedKeys extends string | number = '', Key = keyof T> = Key extends string | number ? Key extends ExcludedKeys ? never : T[Key] extends Record<string | number, unknown> ? `${Key}${Separator}${FlattenObjectKeysInternal<T[Key], Separator, ExcludedKeys>}` : `${Key}` : never;
|
|
377
6
|
type FlattenedObjectKeys<T extends Record<string | number, unknown>, Separator extends string = '.', ExcludedKeys extends string | number = ''> = FlattenObjectKeysInternal<T, Separator, ExcludedKeys>;
|
|
378
7
|
|
|
@@ -685,47 +314,418 @@ declare const cubeTheme: {
|
|
|
685
314
|
'0%, 62.5%, 87.5%, 100%': {
|
|
686
315
|
opacity: string;
|
|
687
316
|
};
|
|
688
|
-
'75%': {
|
|
689
|
-
opacity: string;
|
|
317
|
+
'75%': {
|
|
318
|
+
opacity: string;
|
|
319
|
+
};
|
|
320
|
+
};
|
|
321
|
+
'cube-dot-spinner-45-vector-7': {
|
|
322
|
+
'0%, 75%, 100%': {
|
|
323
|
+
opacity: string;
|
|
324
|
+
};
|
|
325
|
+
'87.5%': {
|
|
326
|
+
opacity: string;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
'cube-skeleton': {
|
|
330
|
+
'100%': {
|
|
331
|
+
backgroundPositionX: string;
|
|
332
|
+
};
|
|
333
|
+
};
|
|
334
|
+
};
|
|
335
|
+
animation: {
|
|
336
|
+
'cube-spinner-vector-0': string;
|
|
337
|
+
'cube-spinner-vector-1': string;
|
|
338
|
+
'cube-spinner-vector-2': string;
|
|
339
|
+
'cube-dot-spinner-120-vector-0': string;
|
|
340
|
+
'cube-dot-spinner-120-vector-1': string;
|
|
341
|
+
'cube-dot-spinner-120-vector-2': string;
|
|
342
|
+
'cube-dot-spinner-45-vector-0': string;
|
|
343
|
+
'cube-dot-spinner-45-vector-1': string;
|
|
344
|
+
'cube-dot-spinner-45-vector-2': string;
|
|
345
|
+
'cube-dot-spinner-45-vector-3': string;
|
|
346
|
+
'cube-dot-spinner-45-vector-4': string;
|
|
347
|
+
'cube-dot-spinner-45-vector-5': string;
|
|
348
|
+
'cube-dot-spinner-45-vector-6': string;
|
|
349
|
+
'cube-dot-spinner-45-vector-7': string;
|
|
350
|
+
'cube-skeleton': string;
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
type BorderColorClass = `border-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
354
|
+
type BackgroundColorClass = `bg-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
355
|
+
type FillColorClass = `fill-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
356
|
+
type StrokeColorClass = `stroke-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
357
|
+
type TextColorClass = `text-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* Brand palettes shipped as `themes/*.css`. Add a new entry here, a matching
|
|
361
|
+
* `your-theme.css` file in `themes/`, and an `@import` for it in
|
|
362
|
+
* `themes/index.css`, for each additional product palette.
|
|
363
|
+
*/
|
|
364
|
+
type CubeThemeName = 'cubeCOS' | 'cubeEMP';
|
|
365
|
+
|
|
366
|
+
type CubeThemeProviderProps = PropsWithChildren<{
|
|
367
|
+
/** Which brand palette's CSS variables (see `theme/tokens/themes/*.css`) to apply. */
|
|
368
|
+
theme: CubeThemeName;
|
|
369
|
+
}>;
|
|
370
|
+
/**
|
|
371
|
+
* Selects which brand palette @bigstack-oss/cube-ui's colors resolve to by
|
|
372
|
+
* setting `data-cube-theme` on the document root.
|
|
373
|
+
*
|
|
374
|
+
* **Optional** — omitting this provider falls back to the `cubeCOS` palette,
|
|
375
|
+
* which is applied at `:root` in `cubeCOS.css` by default.
|
|
376
|
+
*/
|
|
377
|
+
declare const CubeThemeProvider: (props: CubeThemeProviderProps) => react.ReactNode;
|
|
378
|
+
|
|
379
|
+
declare const cubePreset: {
|
|
380
|
+
theme: {
|
|
381
|
+
extend: {
|
|
382
|
+
screens: {
|
|
383
|
+
'height-sm': {
|
|
384
|
+
raw: string;
|
|
385
|
+
};
|
|
386
|
+
'height-md': {
|
|
387
|
+
raw: string;
|
|
388
|
+
};
|
|
389
|
+
'height-lg': {
|
|
390
|
+
raw: string;
|
|
391
|
+
};
|
|
392
|
+
'height-xl': {
|
|
393
|
+
raw: string;
|
|
394
|
+
};
|
|
395
|
+
};
|
|
396
|
+
colors: {
|
|
397
|
+
primary: {
|
|
398
|
+
DEFAULT: string;
|
|
399
|
+
0: string;
|
|
400
|
+
50: string;
|
|
401
|
+
100: string;
|
|
402
|
+
150: string;
|
|
403
|
+
200: string;
|
|
404
|
+
300: string;
|
|
405
|
+
400: string;
|
|
406
|
+
500: string;
|
|
407
|
+
600: string;
|
|
408
|
+
700: string;
|
|
409
|
+
800: string;
|
|
410
|
+
850: string;
|
|
411
|
+
};
|
|
412
|
+
secondary: {
|
|
413
|
+
DEFAULT: string;
|
|
414
|
+
0: string;
|
|
415
|
+
50: string;
|
|
416
|
+
100: string;
|
|
417
|
+
150: string;
|
|
418
|
+
200: string;
|
|
419
|
+
300: string;
|
|
420
|
+
400: string;
|
|
421
|
+
500: string;
|
|
422
|
+
600: string;
|
|
423
|
+
700: string;
|
|
424
|
+
800: string;
|
|
425
|
+
850: string;
|
|
426
|
+
};
|
|
427
|
+
dark: {
|
|
428
|
+
0: string;
|
|
429
|
+
50: string;
|
|
430
|
+
100: string;
|
|
431
|
+
150: string;
|
|
432
|
+
200: string;
|
|
433
|
+
300: string;
|
|
434
|
+
400: string;
|
|
435
|
+
500: string;
|
|
436
|
+
600: string;
|
|
437
|
+
700: string;
|
|
438
|
+
800: string;
|
|
439
|
+
850: string;
|
|
440
|
+
};
|
|
441
|
+
grey: {
|
|
442
|
+
0: string;
|
|
443
|
+
50: string;
|
|
444
|
+
100: string;
|
|
445
|
+
150: string;
|
|
446
|
+
200: string;
|
|
447
|
+
300: string;
|
|
448
|
+
400: string;
|
|
449
|
+
500: string;
|
|
450
|
+
600: string;
|
|
451
|
+
700: string;
|
|
452
|
+
800: string;
|
|
453
|
+
850: string;
|
|
454
|
+
};
|
|
455
|
+
blue: {
|
|
456
|
+
0: string;
|
|
457
|
+
50: string;
|
|
458
|
+
100: string;
|
|
459
|
+
150: string;
|
|
460
|
+
200: string;
|
|
461
|
+
300: string;
|
|
462
|
+
400: string;
|
|
463
|
+
500: string;
|
|
464
|
+
600: string;
|
|
465
|
+
700: string;
|
|
466
|
+
800: string;
|
|
467
|
+
850: string;
|
|
468
|
+
};
|
|
469
|
+
green: {
|
|
470
|
+
0: string;
|
|
471
|
+
50: string;
|
|
472
|
+
100: string;
|
|
473
|
+
150: string;
|
|
474
|
+
200: string;
|
|
475
|
+
300: string;
|
|
476
|
+
400: string;
|
|
477
|
+
500: string;
|
|
478
|
+
600: string;
|
|
479
|
+
700: string;
|
|
480
|
+
800: string;
|
|
481
|
+
850: string;
|
|
482
|
+
};
|
|
483
|
+
yellow: {
|
|
484
|
+
0: string;
|
|
485
|
+
50: string;
|
|
486
|
+
100: string;
|
|
487
|
+
150: string;
|
|
488
|
+
200: string;
|
|
489
|
+
300: string;
|
|
490
|
+
400: string;
|
|
491
|
+
500: string;
|
|
492
|
+
600: string;
|
|
493
|
+
700: string;
|
|
494
|
+
800: string;
|
|
495
|
+
850: string;
|
|
496
|
+
};
|
|
497
|
+
red: {
|
|
498
|
+
0: string;
|
|
499
|
+
50: string;
|
|
500
|
+
100: string;
|
|
501
|
+
150: string;
|
|
502
|
+
200: string;
|
|
503
|
+
300: string;
|
|
504
|
+
400: string;
|
|
505
|
+
500: string;
|
|
506
|
+
600: string;
|
|
507
|
+
700: string;
|
|
508
|
+
800: string;
|
|
509
|
+
850: string;
|
|
510
|
+
};
|
|
511
|
+
cosmos: {
|
|
512
|
+
primary: string;
|
|
513
|
+
secondary: string;
|
|
514
|
+
};
|
|
515
|
+
scene: {
|
|
516
|
+
gradient: string;
|
|
517
|
+
background: string;
|
|
518
|
+
};
|
|
519
|
+
functional: {
|
|
520
|
+
title: string;
|
|
521
|
+
text: string;
|
|
522
|
+
'text-light': string;
|
|
523
|
+
'hover-primary': string;
|
|
524
|
+
'hover-secondary': string;
|
|
525
|
+
'hover-grey': string;
|
|
526
|
+
'hover-grey-darker': string;
|
|
527
|
+
'border-divider': string;
|
|
528
|
+
'border-darker': string;
|
|
529
|
+
disable: string;
|
|
530
|
+
'disable-text': string;
|
|
531
|
+
'disable-light': string;
|
|
532
|
+
skeleton: string;
|
|
533
|
+
};
|
|
534
|
+
status: {
|
|
535
|
+
positive: string;
|
|
536
|
+
'positive-text': string;
|
|
537
|
+
negative: string;
|
|
538
|
+
warning: string;
|
|
539
|
+
paused: string;
|
|
540
|
+
neutral: string;
|
|
541
|
+
'over-limit': string;
|
|
542
|
+
};
|
|
543
|
+
chart: {
|
|
544
|
+
1: string;
|
|
545
|
+
2: string;
|
|
546
|
+
3: string;
|
|
547
|
+
4: string;
|
|
548
|
+
5: string;
|
|
549
|
+
6: string;
|
|
550
|
+
7: string;
|
|
551
|
+
8: string;
|
|
552
|
+
9: string;
|
|
553
|
+
10: string;
|
|
554
|
+
11: string;
|
|
555
|
+
12: string;
|
|
556
|
+
13: string;
|
|
557
|
+
14: string;
|
|
558
|
+
15: string;
|
|
559
|
+
16: string;
|
|
560
|
+
17: string;
|
|
561
|
+
18: string;
|
|
562
|
+
19: string;
|
|
563
|
+
20: string;
|
|
564
|
+
21: string;
|
|
565
|
+
22: string;
|
|
566
|
+
23: string;
|
|
567
|
+
24: string;
|
|
568
|
+
25: string;
|
|
569
|
+
26: string;
|
|
570
|
+
27: string;
|
|
571
|
+
28: string;
|
|
572
|
+
29: string;
|
|
573
|
+
30: string;
|
|
574
|
+
31: string;
|
|
575
|
+
32: string;
|
|
576
|
+
};
|
|
577
|
+
};
|
|
578
|
+
fontFamily: {
|
|
579
|
+
urbanist: [string, string, ...string[]];
|
|
580
|
+
inter: [string, string, ...string[]];
|
|
581
|
+
"noto-sans-tc": [string, ...string[]];
|
|
582
|
+
sans: [string, string, ...string[]];
|
|
690
583
|
};
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
584
|
+
fontWeight: {
|
|
585
|
+
regular: string;
|
|
586
|
+
medium: string;
|
|
587
|
+
semibold: string;
|
|
695
588
|
};
|
|
696
|
-
|
|
697
|
-
|
|
589
|
+
keyframes: {
|
|
590
|
+
'cube-spinner-vector-0': {
|
|
591
|
+
'0%, 100%': {
|
|
592
|
+
opacity: string;
|
|
593
|
+
};
|
|
594
|
+
'33.3%, 66.6%': {
|
|
595
|
+
opacity: string;
|
|
596
|
+
};
|
|
597
|
+
};
|
|
598
|
+
'cube-spinner-vector-1': {
|
|
599
|
+
'0%, 66.6%, 100%': {
|
|
600
|
+
opacity: string;
|
|
601
|
+
};
|
|
602
|
+
'33.3%': {
|
|
603
|
+
opacity: string;
|
|
604
|
+
};
|
|
605
|
+
};
|
|
606
|
+
'cube-spinner-vector-2': {
|
|
607
|
+
'0%, 33.3%, 100%': {
|
|
608
|
+
opacity: string;
|
|
609
|
+
};
|
|
610
|
+
'66.6%': {
|
|
611
|
+
opacity: string;
|
|
612
|
+
};
|
|
613
|
+
};
|
|
614
|
+
'cube-dot-spinner-120-vector-0': {
|
|
615
|
+
'0%, 100%': {
|
|
616
|
+
opacity: string;
|
|
617
|
+
};
|
|
618
|
+
'33.3%, 66.6%': {
|
|
619
|
+
opacity: string;
|
|
620
|
+
};
|
|
621
|
+
};
|
|
622
|
+
'cube-dot-spinner-120-vector-1': {
|
|
623
|
+
'0%, 66.6%, 100%': {
|
|
624
|
+
opacity: string;
|
|
625
|
+
};
|
|
626
|
+
'33.3%': {
|
|
627
|
+
opacity: string;
|
|
628
|
+
};
|
|
629
|
+
};
|
|
630
|
+
'cube-dot-spinner-120-vector-2': {
|
|
631
|
+
'0%, 33.3%, 100%': {
|
|
632
|
+
opacity: string;
|
|
633
|
+
};
|
|
634
|
+
'66.6%': {
|
|
635
|
+
opacity: string;
|
|
636
|
+
};
|
|
637
|
+
};
|
|
638
|
+
'cube-dot-spinner-45-vector-0': {
|
|
639
|
+
'0%, 100%': {
|
|
640
|
+
opacity: string;
|
|
641
|
+
};
|
|
642
|
+
'12.5%, 87.5%': {
|
|
643
|
+
opacity: string;
|
|
644
|
+
};
|
|
645
|
+
};
|
|
646
|
+
'cube-dot-spinner-45-vector-1': {
|
|
647
|
+
'0%, 25%, 100%': {
|
|
648
|
+
opacity: string;
|
|
649
|
+
};
|
|
650
|
+
'12.5%': {
|
|
651
|
+
opacity: string;
|
|
652
|
+
};
|
|
653
|
+
};
|
|
654
|
+
'cube-dot-spinner-45-vector-2': {
|
|
655
|
+
'0%, 12.5%, 37.5%, 100%': {
|
|
656
|
+
opacity: string;
|
|
657
|
+
};
|
|
658
|
+
'25%': {
|
|
659
|
+
opacity: string;
|
|
660
|
+
};
|
|
661
|
+
};
|
|
662
|
+
'cube-dot-spinner-45-vector-3': {
|
|
663
|
+
'0%, 25%, 50%, 100%': {
|
|
664
|
+
opacity: string;
|
|
665
|
+
};
|
|
666
|
+
'37.5%': {
|
|
667
|
+
opacity: string;
|
|
668
|
+
};
|
|
669
|
+
};
|
|
670
|
+
'cube-dot-spinner-45-vector-4': {
|
|
671
|
+
'0%, 37.5%, 62.5%, 100%': {
|
|
672
|
+
opacity: string;
|
|
673
|
+
};
|
|
674
|
+
'50%': {
|
|
675
|
+
opacity: string;
|
|
676
|
+
};
|
|
677
|
+
};
|
|
678
|
+
'cube-dot-spinner-45-vector-5': {
|
|
679
|
+
'0%, 50%, 75%, 100%': {
|
|
680
|
+
opacity: string;
|
|
681
|
+
};
|
|
682
|
+
'62.5%': {
|
|
683
|
+
opacity: string;
|
|
684
|
+
};
|
|
685
|
+
};
|
|
686
|
+
'cube-dot-spinner-45-vector-6': {
|
|
687
|
+
'0%, 62.5%, 87.5%, 100%': {
|
|
688
|
+
opacity: string;
|
|
689
|
+
};
|
|
690
|
+
'75%': {
|
|
691
|
+
opacity: string;
|
|
692
|
+
};
|
|
693
|
+
};
|
|
694
|
+
'cube-dot-spinner-45-vector-7': {
|
|
695
|
+
'0%, 75%, 100%': {
|
|
696
|
+
opacity: string;
|
|
697
|
+
};
|
|
698
|
+
'87.5%': {
|
|
699
|
+
opacity: string;
|
|
700
|
+
};
|
|
701
|
+
};
|
|
702
|
+
'cube-skeleton': {
|
|
703
|
+
'100%': {
|
|
704
|
+
backgroundPositionX: string;
|
|
705
|
+
};
|
|
706
|
+
};
|
|
698
707
|
};
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
708
|
+
animation: {
|
|
709
|
+
'cube-spinner-vector-0': string;
|
|
710
|
+
'cube-spinner-vector-1': string;
|
|
711
|
+
'cube-spinner-vector-2': string;
|
|
712
|
+
'cube-dot-spinner-120-vector-0': string;
|
|
713
|
+
'cube-dot-spinner-120-vector-1': string;
|
|
714
|
+
'cube-dot-spinner-120-vector-2': string;
|
|
715
|
+
'cube-dot-spinner-45-vector-0': string;
|
|
716
|
+
'cube-dot-spinner-45-vector-1': string;
|
|
717
|
+
'cube-dot-spinner-45-vector-2': string;
|
|
718
|
+
'cube-dot-spinner-45-vector-3': string;
|
|
719
|
+
'cube-dot-spinner-45-vector-4': string;
|
|
720
|
+
'cube-dot-spinner-45-vector-5': string;
|
|
721
|
+
'cube-dot-spinner-45-vector-6': string;
|
|
722
|
+
'cube-dot-spinner-45-vector-7': string;
|
|
723
|
+
'cube-skeleton': string;
|
|
703
724
|
};
|
|
704
725
|
};
|
|
705
726
|
};
|
|
706
|
-
|
|
707
|
-
'cube-spinner-vector-0': string;
|
|
708
|
-
'cube-spinner-vector-1': string;
|
|
709
|
-
'cube-spinner-vector-2': string;
|
|
710
|
-
'cube-dot-spinner-120-vector-0': string;
|
|
711
|
-
'cube-dot-spinner-120-vector-1': string;
|
|
712
|
-
'cube-dot-spinner-120-vector-2': string;
|
|
713
|
-
'cube-dot-spinner-45-vector-0': string;
|
|
714
|
-
'cube-dot-spinner-45-vector-1': string;
|
|
715
|
-
'cube-dot-spinner-45-vector-2': string;
|
|
716
|
-
'cube-dot-spinner-45-vector-3': string;
|
|
717
|
-
'cube-dot-spinner-45-vector-4': string;
|
|
718
|
-
'cube-dot-spinner-45-vector-5': string;
|
|
719
|
-
'cube-dot-spinner-45-vector-6': string;
|
|
720
|
-
'cube-dot-spinner-45-vector-7': string;
|
|
721
|
-
'cube-skeleton': string;
|
|
722
|
-
};
|
|
727
|
+
plugins: tailwindcss_types_config.PluginCreator[];
|
|
723
728
|
};
|
|
724
|
-
type BorderColorClass = `border-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
725
|
-
type BackgroundColorClass = `bg-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
726
|
-
type FillColorClass = `fill-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
727
|
-
type StrokeColorClass = `stroke-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
728
|
-
type TextColorClass = `text-${FlattenedObjectKeys<typeof cubeTheme.colors, '-', 'DEFAULT'>}`;
|
|
729
729
|
|
|
730
730
|
type Typography = {
|
|
731
731
|
fontFamily: keyof (typeof cubeTheme)['fontFamily'];
|