@veeqo/ui 0.0.1

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 (64) hide show
  1. package/.nvmrc +1 -0
  2. package/.prettierrc +6 -0
  3. package/.storybook/main.ts +21 -0
  4. package/.storybook/preview.ts +9 -0
  5. package/.vscode/settings.json +11 -0
  6. package/lib/components/Loader/Grid.d.ts +10 -0
  7. package/lib/components/Loader/Loader.d.ts +3 -0
  8. package/lib/components/Loader/TailSpin.d.ts +10 -0
  9. package/lib/components/Loader/ThreeDots.d.ts +10 -0
  10. package/lib/components/Loader/index.d.ts +1 -0
  11. package/lib/components/Loader/loaderTypes.d.ts +8 -0
  12. package/lib/components/Stack/Alignments.d.ts +9 -0
  13. package/lib/components/Stack/Stack.d.ts +6 -0
  14. package/lib/components/Stack/index.d.ts +1 -0
  15. package/lib/components/Stack/types.d.ts +38 -0
  16. package/lib/components/index.d.ts +2 -0
  17. package/lib/index.d.ts +520 -0
  18. package/lib/index.esm.js +2 -0
  19. package/lib/index.esm.js.map +1 -0
  20. package/lib/index.js +2 -0
  21. package/lib/index.js.map +1 -0
  22. package/lib/theme/index.d.ts +454 -0
  23. package/lib/theme/modules/breakpoints.d.ts +7 -0
  24. package/lib/theme/modules/colors.d.ts +116 -0
  25. package/lib/theme/modules/layers.d.ts +6 -0
  26. package/lib/theme/modules/radius.d.ts +7 -0
  27. package/lib/theme/modules/shadows.d.ts +6 -0
  28. package/lib/theme/modules/sizes.d.ts +20 -0
  29. package/lib/theme/modules/text.d.ts +315 -0
  30. package/lib/theme/storybook/components.d.ts +2 -0
  31. package/package.json +52 -0
  32. package/rollup.config.mjs +49 -0
  33. package/src/components/Loader/Docs.mdx +26 -0
  34. package/src/components/Loader/Grid.tsx +113 -0
  35. package/src/components/Loader/Loader.stories.tsx +62 -0
  36. package/src/components/Loader/Loader.tsx +28 -0
  37. package/src/components/Loader/TailSpin.tsx +54 -0
  38. package/src/components/Loader/ThreeDots.tsx +90 -0
  39. package/src/components/Loader/__snapshots__/Loader.test.tsx.snap +73 -0
  40. package/src/components/Loader/index.ts +1 -0
  41. package/src/components/Loader/loaderTypes.ts +9 -0
  42. package/src/components/Stack/Alignments.ts +10 -0
  43. package/src/components/Stack/Docs.mdx +28 -0
  44. package/src/components/Stack/Stack.stories.tsx +112 -0
  45. package/src/components/Stack/Stack.tsx +61 -0
  46. package/src/components/Stack/__snapshots__/Stack.test.tsx.snap +45 -0
  47. package/src/components/Stack/index.ts +1 -0
  48. package/src/components/Stack/types.ts +73 -0
  49. package/src/components/index.ts +2 -0
  50. package/src/index.ts +2 -0
  51. package/src/theme/index.ts +18 -0
  52. package/src/theme/modules/breakpoints.ts +7 -0
  53. package/src/theme/modules/colors.ts +116 -0
  54. package/src/theme/modules/layers.ts +6 -0
  55. package/src/theme/modules/radius.ts +7 -0
  56. package/src/theme/modules/shadows.ts +6 -0
  57. package/src/theme/modules/sizes.ts +52 -0
  58. package/src/theme/modules/text.ts +319 -0
  59. package/src/theme/storybook/ColorDocs.mdx +130 -0
  60. package/src/theme/storybook/RadiusDocs.mdx +39 -0
  61. package/src/theme/storybook/ShadowDocs.mdx +37 -0
  62. package/src/theme/storybook/SizesDocs.mdx +104 -0
  63. package/src/theme/storybook/components.tsx +19 -0
  64. package/tsconfig.json +23 -0
@@ -0,0 +1,454 @@
1
+ import { shadows } from './modules/shadows';
2
+ export declare const theme: {
3
+ breakpoints: {
4
+ readonly mobile: "640px";
5
+ readonly tablet: "720px";
6
+ readonly lgTablet: "960px";
7
+ readonly desktop: "1280px";
8
+ readonly lgDesktop: "1440px";
9
+ };
10
+ colors: {
11
+ brand: {
12
+ blue: {
13
+ lightest: string;
14
+ light: string;
15
+ base: string;
16
+ dark: string;
17
+ darkest: string;
18
+ };
19
+ peach: {
20
+ lightest: string;
21
+ light: string;
22
+ base: string;
23
+ dark: string;
24
+ darkest: string;
25
+ };
26
+ };
27
+ neutral: {
28
+ ink: {
29
+ lightest: string;
30
+ light: string;
31
+ base: string;
32
+ dark: string;
33
+ };
34
+ grey: {
35
+ lightest: string;
36
+ light: string;
37
+ base: string;
38
+ dark: string;
39
+ };
40
+ greyBlue: {
41
+ lightest: string;
42
+ light: string;
43
+ base: string;
44
+ dark: string;
45
+ };
46
+ };
47
+ secondary: {
48
+ red: {
49
+ lightest: string;
50
+ light: string;
51
+ base: string;
52
+ dark: string;
53
+ darkest: string;
54
+ };
55
+ yellow: {
56
+ lightest: string;
57
+ light: string;
58
+ base: string;
59
+ dark: string;
60
+ darkest: string;
61
+ };
62
+ green: {
63
+ lightest: string;
64
+ light: string;
65
+ base: string;
66
+ dark: string;
67
+ darkest: string;
68
+ };
69
+ lime: {
70
+ lightest: string;
71
+ light: string;
72
+ base: string;
73
+ dark: string;
74
+ darkest: string;
75
+ };
76
+ teal: {
77
+ lightest: string;
78
+ light: string;
79
+ base: string;
80
+ dark: string;
81
+ darkest: string;
82
+ };
83
+ aqua: {
84
+ lightest: string;
85
+ light: string;
86
+ base: string;
87
+ dark: string;
88
+ darkest: string;
89
+ };
90
+ purple: {
91
+ lightest: string;
92
+ light: string;
93
+ base: string;
94
+ dark: string;
95
+ darkest: string;
96
+ };
97
+ blue: {
98
+ lightest: string;
99
+ light: string;
100
+ base: string;
101
+ dark: string;
102
+ darkest: string;
103
+ };
104
+ pink: {
105
+ lightest: string;
106
+ light: string;
107
+ base: string;
108
+ dark: string;
109
+ darkest: string;
110
+ };
111
+ orange: {
112
+ lightest: string;
113
+ light: string;
114
+ base: string;
115
+ dark: string;
116
+ darkest: string;
117
+ };
118
+ };
119
+ system: {
120
+ scrollbar: {
121
+ thumb: string;
122
+ background: string;
123
+ };
124
+ };
125
+ };
126
+ layers: {
127
+ base: number;
128
+ popup: number;
129
+ modal: number;
130
+ tooltip: number;
131
+ };
132
+ radius: {
133
+ sm: string;
134
+ base: string;
135
+ md: string;
136
+ lg: string;
137
+ full: string;
138
+ };
139
+ shadows: typeof shadows;
140
+ sizes: import("./modules/sizes").SizeScale;
141
+ text: {
142
+ headingXXL: {
143
+ fontFamily: string;
144
+ fontStyle: string;
145
+ fontWeight: number;
146
+ fontSize: string;
147
+ lineHeight: string;
148
+ color: string;
149
+ textDecoration: string;
150
+ letterSpacing: string;
151
+ };
152
+ headingXL: {
153
+ fontFamily: string;
154
+ fontStyle: string;
155
+ fontWeight: number;
156
+ fontSize: string;
157
+ lineHeight: string;
158
+ color: string;
159
+ textDecoration: string;
160
+ letterSpacing: string;
161
+ };
162
+ headingLarge: {
163
+ fontFamily: string;
164
+ fontStyle: string;
165
+ fontWeight: number;
166
+ fontSize: string;
167
+ lineHeight: string;
168
+ color: string;
169
+ textDecoration: string;
170
+ letterSpacing: string;
171
+ };
172
+ headingMedium: {
173
+ fontFamily: string;
174
+ fontStyle: string;
175
+ fontWeight: number;
176
+ fontSize: string;
177
+ lineHeight: string;
178
+ color: string;
179
+ textDecoration: string;
180
+ letterSpacing: string;
181
+ };
182
+ headingSmall: {
183
+ fontFamily: string;
184
+ fontStyle: string;
185
+ fontWeight: number;
186
+ fontSize: string;
187
+ lineHeight: string;
188
+ color: string;
189
+ textDecoration: string;
190
+ letterSpacing: string;
191
+ };
192
+ headingTable: {
193
+ fontFamily: string;
194
+ fontStyle: string;
195
+ fontWeight: number;
196
+ fontSize: string;
197
+ lineHeight: string;
198
+ color: string;
199
+ textDecoration: string;
200
+ letterSpacing: string;
201
+ };
202
+ subheadingLarge: {
203
+ fontFamily: string;
204
+ fontStyle: string;
205
+ fontWeight: string;
206
+ fontSize: string;
207
+ lineHeight: string;
208
+ color: string;
209
+ textDecoration: string;
210
+ letterSpacing: string;
211
+ };
212
+ subheadingMedium: {
213
+ fontFamily: string;
214
+ fontStyle: string;
215
+ fontWeight: string;
216
+ fontSize: string;
217
+ lineHeight: string;
218
+ color: string;
219
+ textDecoration: string;
220
+ letterSpacing: string;
221
+ };
222
+ subheadingSmall: {
223
+ fontFamily: string;
224
+ fontStyle: string;
225
+ fontWeight: string;
226
+ fontSize: string;
227
+ lineHeight: string;
228
+ color: string;
229
+ textDecoration: string;
230
+ letterSpacing: string;
231
+ };
232
+ subheadingSmallBold: {
233
+ fontFamily: string;
234
+ fontStyle: string;
235
+ fontWeight: number;
236
+ fontSize: string;
237
+ lineHeight: string;
238
+ color: string;
239
+ textDecoration: string;
240
+ letterSpacing: string;
241
+ };
242
+ body: {
243
+ fontFamily: string;
244
+ fontStyle: string;
245
+ fontWeight: string;
246
+ fontSize: string;
247
+ lineHeight: string;
248
+ color: string;
249
+ textDecoration: string;
250
+ letterSpacing: string;
251
+ };
252
+ bodySmall: {
253
+ fontFamily: string;
254
+ fontStyle: string;
255
+ fontWeight: string;
256
+ fontSize: string;
257
+ lineHeight: string;
258
+ color: string;
259
+ textDecoration: string;
260
+ letterSpacing: string;
261
+ };
262
+ bodyBold: {
263
+ fontFamily: string;
264
+ fontStyle: string;
265
+ fontWeight: number;
266
+ fontSize: string;
267
+ lineHeight: string;
268
+ color: string;
269
+ textDecoration: string;
270
+ letterSpacing: string;
271
+ };
272
+ bodyBoldDark: {
273
+ fontFamily: string;
274
+ fontStyle: string;
275
+ fontWeight: number;
276
+ fontSize: string;
277
+ lineHeight: string;
278
+ color: string;
279
+ textDecoration: string;
280
+ letterSpacing: string;
281
+ };
282
+ bodySmallBold: {
283
+ fontFamily: string;
284
+ fontStyle: string;
285
+ fontWeight: number;
286
+ fontSize: string;
287
+ lineHeight: string;
288
+ color: string;
289
+ textDecoration: string;
290
+ letterSpacing: string;
291
+ };
292
+ button: {
293
+ fontFamily: string;
294
+ fontStyle: string;
295
+ fontWeight: number;
296
+ fontSize: string;
297
+ lineHeight: string;
298
+ color: string;
299
+ textDecoration: string;
300
+ letterSpacing: string;
301
+ };
302
+ buttonSmall: {
303
+ fontFamily: string;
304
+ fontStyle: string;
305
+ fontWeight: number;
306
+ fontSize: string;
307
+ lineHeight: string;
308
+ color: string;
309
+ textDecoration: string;
310
+ letterSpacing: string;
311
+ };
312
+ linkLarge: {
313
+ fontFamily: string;
314
+ fontStyle: string;
315
+ fontWeight: string;
316
+ fontSize: string;
317
+ lineHeight: string;
318
+ color: string;
319
+ textDecoration: string;
320
+ letterSpacing: string;
321
+ };
322
+ linkMedium: {
323
+ fontFamily: string;
324
+ fontStyle: string;
325
+ fontWeight: string;
326
+ fontSize: string;
327
+ lineHeight: string;
328
+ color: string;
329
+ textDecoration: string;
330
+ letterSpacing: string;
331
+ };
332
+ link: {
333
+ fontFamily: string;
334
+ fontStyle: string;
335
+ fontWeight: string;
336
+ fontSize: string;
337
+ lineHeight: string;
338
+ color: string;
339
+ textDecoration: string;
340
+ letterSpacing: string;
341
+ };
342
+ linkSmall: {
343
+ fontFamily: string;
344
+ fontStyle: string;
345
+ fontWeight: string;
346
+ fontSize: string;
347
+ lineHeight: string;
348
+ color: string;
349
+ textDecoration: string;
350
+ letterSpacing: string;
351
+ };
352
+ inputLabel: {
353
+ fontFamily: string;
354
+ fontStyle: string;
355
+ fontWeight: number;
356
+ fontSize: string;
357
+ lineHeight: string;
358
+ color: string;
359
+ textDecoration: string;
360
+ letterSpacing: string;
361
+ };
362
+ inputLabelSmall: {
363
+ fontFamily: string;
364
+ fontStyle: string;
365
+ fontWeight: number;
366
+ fontSize: string;
367
+ lineHeight: string;
368
+ color: string;
369
+ textDecoration: string;
370
+ letterSpacing: string;
371
+ };
372
+ hintText: {
373
+ fontFamily: string;
374
+ fontStyle: string;
375
+ fontWeight: string;
376
+ fontSize: string;
377
+ lineHeight: string;
378
+ color: string;
379
+ textDecoration: string;
380
+ letterSpacing: string;
381
+ };
382
+ placeholder: {
383
+ fontFamily: string;
384
+ fontStyle: string;
385
+ fontWeight: string;
386
+ fontSize: string;
387
+ lineHeight: string;
388
+ color: string;
389
+ textDecoration: string;
390
+ letterSpacing: string;
391
+ };
392
+ placeholderSmall: {
393
+ fontFamily: string;
394
+ fontStyle: string;
395
+ fontWeight: string;
396
+ fontSize: string;
397
+ lineHeight: string;
398
+ color: string;
399
+ textDecoration: string;
400
+ letterSpacing: string;
401
+ };
402
+ placeholderCode: {
403
+ fontFamily: string;
404
+ fontStyle: string;
405
+ fontWeight: string;
406
+ fontSize: string;
407
+ lineHeight: string;
408
+ color: string;
409
+ textDecoration: string;
410
+ letterSpacing: string;
411
+ };
412
+ placeholderCodeSmall: {
413
+ fontFamily: string;
414
+ fontStyle: string;
415
+ fontWeight: string;
416
+ fontSize: string;
417
+ lineHeight: string;
418
+ color: string;
419
+ textDecoration: string;
420
+ letterSpacing: string;
421
+ };
422
+ error: {
423
+ fontFamily: string;
424
+ fontStyle: string;
425
+ fontWeight: number;
426
+ fontSize: string;
427
+ lineHeight: string;
428
+ color: string;
429
+ textDecoration: string;
430
+ letterSpacing: string;
431
+ };
432
+ errorSmall: {
433
+ fontFamily: string;
434
+ fontStyle: string;
435
+ fontWeight: number;
436
+ fontSize: string;
437
+ lineHeight: string;
438
+ color: string;
439
+ textDecoration: string;
440
+ letterSpacing: string;
441
+ };
442
+ successSmall: {
443
+ fontFamily: string;
444
+ fontStyle: string;
445
+ fontWeight: number;
446
+ fontSize: string;
447
+ lineHeight: string;
448
+ color: string;
449
+ textDecoration: string;
450
+ letterSpacing: string;
451
+ };
452
+ };
453
+ fontFamily: string;
454
+ };
@@ -0,0 +1,7 @@
1
+ export declare const breakpoints: {
2
+ readonly mobile: "640px";
3
+ readonly tablet: "720px";
4
+ readonly lgTablet: "960px";
5
+ readonly desktop: "1280px";
6
+ readonly lgDesktop: "1440px";
7
+ };
@@ -0,0 +1,116 @@
1
+ export declare const colors: {
2
+ brand: {
3
+ blue: {
4
+ lightest: string;
5
+ light: string;
6
+ base: string;
7
+ dark: string;
8
+ darkest: string;
9
+ };
10
+ peach: {
11
+ lightest: string;
12
+ light: string;
13
+ base: string;
14
+ dark: string;
15
+ darkest: string;
16
+ };
17
+ };
18
+ neutral: {
19
+ ink: {
20
+ lightest: string;
21
+ light: string;
22
+ base: string;
23
+ dark: string;
24
+ };
25
+ grey: {
26
+ lightest: string;
27
+ light: string;
28
+ base: string;
29
+ dark: string;
30
+ };
31
+ greyBlue: {
32
+ lightest: string;
33
+ light: string;
34
+ base: string;
35
+ dark: string;
36
+ };
37
+ };
38
+ secondary: {
39
+ red: {
40
+ lightest: string;
41
+ light: string;
42
+ base: string;
43
+ dark: string;
44
+ darkest: string;
45
+ };
46
+ yellow: {
47
+ lightest: string;
48
+ light: string;
49
+ base: string;
50
+ dark: string;
51
+ darkest: string;
52
+ };
53
+ green: {
54
+ lightest: string;
55
+ light: string;
56
+ base: string;
57
+ dark: string;
58
+ darkest: string;
59
+ };
60
+ lime: {
61
+ lightest: string;
62
+ light: string;
63
+ base: string;
64
+ dark: string;
65
+ darkest: string;
66
+ };
67
+ teal: {
68
+ lightest: string;
69
+ light: string;
70
+ base: string;
71
+ dark: string;
72
+ darkest: string;
73
+ };
74
+ aqua: {
75
+ lightest: string;
76
+ light: string;
77
+ base: string;
78
+ dark: string;
79
+ darkest: string;
80
+ };
81
+ purple: {
82
+ lightest: string;
83
+ light: string;
84
+ base: string;
85
+ dark: string;
86
+ darkest: string;
87
+ };
88
+ blue: {
89
+ lightest: string;
90
+ light: string;
91
+ base: string;
92
+ dark: string;
93
+ darkest: string;
94
+ };
95
+ pink: {
96
+ lightest: string;
97
+ light: string;
98
+ base: string;
99
+ dark: string;
100
+ darkest: string;
101
+ };
102
+ orange: {
103
+ lightest: string;
104
+ light: string;
105
+ base: string;
106
+ dark: string;
107
+ darkest: string;
108
+ };
109
+ };
110
+ system: {
111
+ scrollbar: {
112
+ thumb: string;
113
+ background: string;
114
+ };
115
+ };
116
+ };
@@ -0,0 +1,6 @@
1
+ export declare const layers: {
2
+ base: number;
3
+ popup: number;
4
+ modal: number;
5
+ tooltip: number;
6
+ };
@@ -0,0 +1,7 @@
1
+ export declare const radius: {
2
+ sm: string;
3
+ base: string;
4
+ md: string;
5
+ lg: string;
6
+ full: string;
7
+ };
@@ -0,0 +1,6 @@
1
+ export declare enum shadows {
2
+ sm = "0px 1px 3px rgba(55, 66, 77, 0.15)",
3
+ base = "0px 4px 6px rgba(27, 33, 38, 0.2)",
4
+ md = "0px 10px 15px rgba(27, 33, 38, 0.2)",
5
+ lg = "0px 20px 25px rgba(27, 33, 38, 0.2)"
6
+ }
@@ -0,0 +1,20 @@
1
+ declare enum SizeAlias {
2
+ none = "none",
3
+ line = "line",
4
+ xs = "xs",
5
+ sm = "sm",
6
+ base = "base",
7
+ md = "md",
8
+ lg = "lg",
9
+ xl = "xl",
10
+ xxl = "xxl"
11
+ }
12
+ export type SizeScaleIndex = number | keyof typeof SizeAlias;
13
+ export type SizeScale = {
14
+ [index: number]: string;
15
+ [index: string]: string;
16
+ };
17
+ export declare const sizeScale: SizeScale;
18
+ export declare const sizeAliases: SizeScale;
19
+ export declare const sizes: SizeScale;
20
+ export {};