@everlywell/ui-kit 0.0.1 → 0.0.2-menu-next

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 (30) hide show
  1. package/index.d.mts +12 -2
  2. package/index.d.ts +12 -2
  3. package/index.js +78 -1
  4. package/index.mjs +67292 -230
  5. package/lib/components/Fonts/Fonts.d.ts +2 -0
  6. package/lib/components/Fonts/index.d.ts +1 -0
  7. package/lib/components/ThemeProvider/ThemeProvider.d.ts +5 -0
  8. package/lib/components/ThemeProvider/index.d.ts +1 -0
  9. package/lib/theme/{forms/Button/config.d.ts → actions/Button/Button.config.d.ts} +26 -14
  10. package/lib/theme/actions/IconButton/IconButton.d.ts +11 -0
  11. package/lib/theme/actions/Menu/Menu.config.d.ts +83 -0
  12. package/lib/theme/actions/Menu/Menu.d.ts +3 -0
  13. package/lib/theme/foundations/colors.d.ts +39 -63
  14. package/lib/theme/index.d.ts +418 -125
  15. package/lib/theme/layout/Box/Box.d.ts +3 -0
  16. package/lib/theme/layout/Grid/Grid.d.ts +48 -0
  17. package/lib/theme/layout/Grid/GridItem.d.ts +5 -0
  18. package/lib/theme/layout/Grid/index.d.ts +2 -0
  19. package/lib/theme/media/Icon/Icon.config.d.ts +21 -0
  20. package/lib/theme/media/Icon/Icon.d.ts +14 -0
  21. package/lib/theme/navigation/Link/Link.config.d.ts +31 -0
  22. package/lib/theme/navigation/Link/Link.d.ts +3 -0
  23. package/lib/theme/overlay/Drawer/Drawer.config.d.ts +72 -0
  24. package/lib/theme/overlay/Drawer/Drawer.d.ts +3 -0
  25. package/lib/theme/typography/Heading/Heading.config.d.ts +47 -0
  26. package/lib/theme/typography/Heading/Heading.d.ts +3 -0
  27. package/lib/theme/typography/Text/Text.config.d.ts +36 -0
  28. package/lib/theme/typography/Text/Text.d.ts +3 -0
  29. package/package.json +1 -1
  30. /package/lib/theme/{forms → actions}/Button/Button.d.ts +0 -0
@@ -1,4 +1,11 @@
1
1
  export declare const theme: {
2
+ breakpoints: {
3
+ mobile: string;
4
+ tablet: string;
5
+ largeTablet: string;
6
+ desktop: string;
7
+ largeDesktop: string;
8
+ };
2
9
  fonts: {
3
10
  body: string;
4
11
  heading: string;
@@ -8,12 +15,16 @@ export declare const theme: {
8
15
  thin: string;
9
16
  xlight: string;
10
17
  light: string;
11
- book: string;
12
- regular: string;
18
+ normal: string;
19
+ medium: string;
20
+ semiBold: string;
13
21
  bold: string;
14
22
  xbold: string;
23
+ black: string;
15
24
  };
16
25
  fontSizes: {
26
+ '3xs': string;
27
+ '2xs': string;
17
28
  xs: string;
18
29
  sm: string;
19
30
  md: string;
@@ -22,17 +33,29 @@ export declare const theme: {
22
33
  '2xl': string;
23
34
  '3xl': string;
24
35
  '4xl': string;
36
+ '5xl': string;
37
+ '6xl': string;
38
+ '7xl': string;
39
+ '9xl': string;
40
+ '10xl': string;
41
+ '11xl': string;
25
42
  };
26
43
  letterSpacings: {
27
- tightest: string;
44
+ tighter: string;
28
45
  tight: string;
29
46
  normal: string;
30
47
  wide: string;
48
+ wider: string;
31
49
  widest: string;
32
50
  };
33
51
  lineHeights: {
34
- body: string;
35
- button: string;
52
+ body: number;
53
+ normal: string;
54
+ none: number;
55
+ shorter: number;
56
+ short: number;
57
+ base: number;
58
+ tall: number;
36
59
  };
37
60
  sizes: {
38
61
  max: string;
@@ -41,61 +64,71 @@ export declare const theme: {
41
64
  };
42
65
  space: {
43
66
  /**
44
- * TODO: figure out best way to define spacing
45
- * maybe do something like this?
46
- * 0, 0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10
47
- * 0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128, 160
67
+ * Base unit: 4px
68
+ * 1 rem = 16px
69
+ *
70
+ * Mental model:
71
+ *
72
+ * If you need a spacing of 40px, divide it by 4.
73
+ * That'll give you 10. Then use it in your component.
48
74
  */
49
75
  0: number;
76
+ 0.5: string;
50
77
  1: string;
78
+ 1.5: string;
51
79
  2: string;
52
80
  3: string;
53
81
  4: string;
54
82
  5: string;
55
83
  6: string;
56
- 7: string;
57
84
  8: string;
58
- 9: string;
59
85
  10: string;
60
- 11: string;
86
+ 12: string;
87
+ 16: string;
88
+ 20: string;
89
+ };
90
+ shadows: {
91
+ xs: string;
92
+ sm: string;
93
+ base: string;
94
+ md: string;
95
+ lg: string;
96
+ xl: string;
97
+ '2xl': string;
98
+ outline: string;
99
+ inner: string;
100
+ none: string;
101
+ 'dark-lg': string;
102
+ dialog: string;
103
+ };
104
+ zIndices: {
105
+ hide: number;
106
+ auto: string;
107
+ base: number;
108
+ docked: number;
109
+ dropdown: number;
110
+ sticky: number;
111
+ banner: number;
112
+ overlay: number;
113
+ modal: number;
114
+ popover: number;
115
+ skipLink: number;
116
+ toast: number;
117
+ tooltip: number;
61
118
  };
62
119
  colors: {
63
- white: {
64
- base: string;
65
- 50: string;
66
- 100: string;
67
- 200: string;
68
- 300: string;
69
- 400: string;
70
- 500: string;
71
- 600: string;
72
- 700: string;
73
- 800: string;
74
- 900: string;
75
- };
76
- black: {
77
- base: string;
78
- 50: string;
79
- 100: string;
80
- 200: string;
81
- 300: string;
82
- 400: string;
83
- 500: string;
84
- 600: string;
85
- 700: string;
86
- 800: string;
87
- 900: string;
88
- };
89
- grayscale: {
120
+ tints: {
121
+ black: string;
90
122
  darkGrey: string;
91
- grey: string;
92
- mediumGrey: string;
123
+ uiGrey: string;
124
+ medGrey: string;
93
125
  lightGrey: string;
94
126
  darkCream: string;
95
127
  cream: string;
96
128
  lightCream: string;
129
+ white: string;
97
130
  };
98
- red: {
131
+ viridian: {
99
132
  50: string;
100
133
  100: string;
101
134
  200: string;
@@ -106,20 +139,20 @@ export declare const theme: {
106
139
  700: string;
107
140
  800: string;
108
141
  900: string;
109
- wash: string;
110
- lighter: string;
111
- light: string;
112
- base: string;
113
142
  dark: string;
114
- };
115
- yellow: {
116
- wash: string;
117
- lighter: string;
118
- light: string;
119
143
  base: string;
144
+ light: string;
145
+ lighter: string;
146
+ wash: string;
147
+ };
148
+ sunshine: {
120
149
  dark: string;
150
+ base: string;
151
+ light: string;
152
+ lighter: string;
153
+ wash: string;
121
154
  };
122
- green: {
155
+ terracotta: {
123
156
  50: string;
124
157
  100: string;
125
158
  200: string;
@@ -130,39 +163,39 @@ export declare const theme: {
130
163
  700: string;
131
164
  800: string;
132
165
  900: string;
133
- wash: string;
134
- lighter: string;
135
- light: string;
136
- base: string;
137
166
  dark: string;
138
- };
139
- lightBlue: {
140
- wash: string;
141
- lighter: string;
142
- light: string;
143
167
  base: string;
144
- dark: string;
145
- };
146
- blue: {
147
- wash: string;
148
- lighter: string;
149
168
  light: string;
150
- base: string;
151
- dark: string;
152
- };
153
- indigo: {
154
- wash: string;
155
169
  lighter: string;
156
- light: string;
157
- base: string;
158
- dark: string;
170
+ wash: string;
159
171
  };
160
172
  violet: {
161
- wash: string;
173
+ dark: string;
174
+ base: string;
175
+ light: string;
162
176
  lighter: string;
177
+ wash: string;
178
+ };
179
+ eggplant: {
180
+ dark: string;
181
+ base: string;
163
182
  light: string;
183
+ lighter: string;
184
+ wash: string;
185
+ };
186
+ moonlight: {
187
+ dark: string;
164
188
  base: string;
189
+ light: string;
190
+ lighter: string;
191
+ wash: string;
192
+ };
193
+ sky: {
165
194
  dark: string;
195
+ base: string;
196
+ light: string;
197
+ lighter: string;
198
+ wash: string;
166
199
  };
167
200
  };
168
201
  components: {
@@ -180,21 +213,30 @@ export declare const theme: {
180
213
  } | undefined;
181
214
  sizes?: {
182
215
  sm: {
183
- fontSize: string;
216
+ fontSize: ("md" | "lg")[];
184
217
  px: number[];
185
218
  py: number[];
186
- '.chakra-button__icon > svg': {
187
- width: string;
188
- height: string;
219
+ '&:has(> svg:only-child)': {
220
+ px: number;
221
+ py: number;
222
+ svg: {
223
+ fontSize: string;
224
+ };
225
+ };
226
+ svg: {
227
+ fontSize: string;
189
228
  };
190
229
  };
191
230
  md: {
192
- fontSize: string;
231
+ fontSize: ("lg" | "xl")[];
193
232
  px: number[];
194
233
  py: number[];
234
+ '&:has(> svg:only-child)': {
235
+ px: number[];
236
+ py: number[];
237
+ };
195
238
  svg: {
196
- width: ("1.25rem" | "1.5rem")[];
197
- height: ("1.25rem" | "1.5rem")[];
239
+ fontSize: ("1.5rem" | "1.25rem")[];
198
240
  };
199
241
  };
200
242
  wide: {
@@ -202,14 +244,17 @@ export declare const theme: {
202
244
  px: number;
203
245
  py: number;
204
246
  width: string;
205
- '.chakra-button__icon > svg': {
206
- width: string;
207
- height: string;
247
+ '&:has(> svg:only-child)': {
248
+ px: number;
249
+ py: number;
250
+ };
251
+ svg: {
252
+ fontSize: string;
208
253
  };
209
254
  };
210
255
  } | undefined;
211
256
  variants?: {
212
- solid: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
257
+ primary: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
213
258
  bg: string;
214
259
  color: string;
215
260
  ':hover, &.hover': {
@@ -223,7 +268,7 @@ export declare const theme: {
223
268
  color: string;
224
269
  };
225
270
  };
226
- outline: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
271
+ secondary: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
227
272
  color: string;
228
273
  boxShadow: (theme: Record<string, any>) => string;
229
274
  ':hover, &.hover': {
@@ -242,27 +287,298 @@ export declare const theme: {
242
287
  };
243
288
  } | undefined;
244
289
  defaultProps?: {
245
- size?: "sm" | "md" | "wide" | undefined;
246
- variant?: "outline" | "solid" | undefined;
290
+ size?: "wide" | "sm" | "md" | undefined;
291
+ variant?: "primary" | "secondary" | undefined;
292
+ colorScheme?: string | undefined;
293
+ } | undefined;
294
+ };
295
+ Drawer: {
296
+ baseStyle?: {
297
+ overlay: {
298
+ bg: string;
299
+ backgroundImage: string;
300
+ };
301
+ dialogContainer: {
302
+ zIndex: string;
303
+ };
304
+ dialog: {
305
+ bg: string;
306
+ pt: number[];
307
+ display: string;
308
+ flexDirection: string;
309
+ alignItems: string;
310
+ gap: number;
311
+ boxShadow: string;
312
+ };
313
+ header: {
314
+ px: number;
315
+ display: string;
316
+ flexDirection: string;
317
+ justifyContent: string;
318
+ alignItems: string;
319
+ };
320
+ closeButton: {
321
+ bg: string;
322
+ borderRadius: string;
323
+ p: number;
324
+ _hover: {
325
+ bg: string;
326
+ };
327
+ '& .chakra-icon': {
328
+ p: number;
329
+ };
330
+ };
331
+ body: {
332
+ px: number;
333
+ flexGrow: number;
334
+ };
335
+ footer: {
336
+ py: number;
337
+ px: number;
338
+ };
339
+ } | undefined;
340
+ sizes?: {
341
+ partial: {
342
+ dialog: {
343
+ maxW: number;
344
+ };
345
+ };
346
+ full: {
347
+ dialog: {
348
+ maxW: string;
349
+ minH: string;
350
+ borderRadius: number;
351
+ };
352
+ };
353
+ } | undefined;
354
+ variants?: {
355
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
356
+ keys: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
357
+ }>;
358
+ } | undefined;
359
+ defaultProps?: {
360
+ size?: "full" | "partial" | undefined;
361
+ variant?: string | number | undefined;
362
+ colorScheme?: string | undefined;
363
+ } | undefined;
364
+ parts: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
365
+ };
366
+ Heading: {
367
+ baseStyle?: {
368
+ fontFamily: (theme: Record<string, any>) => string;
369
+ fontWeight: string;
370
+ } | undefined;
371
+ sizes?: {
372
+ '3xl': {
373
+ fontSize: ("6xl" | "11xl")[];
374
+ lineHeight: string;
375
+ };
376
+ '2xl': {
377
+ fontSize: ("6xl" | "9xl")[];
378
+ lineHeight: string;
379
+ };
380
+ xl: {
381
+ fontSize: ("4xl" | "7xl")[];
382
+ lineHeight: string;
383
+ };
384
+ lg: {
385
+ fontFamily: (theme: Record<string, any>) => string;
386
+ fontWeight: string;
387
+ fontSize: ("3xl" | "6xl")[];
388
+ lineHeight: string;
389
+ };
390
+ md: {
391
+ fontFamily: (theme: Record<string, any>) => string;
392
+ fontWeight: string;
393
+ fontSize: ("2xl" | "4xl")[];
394
+ lineHeight: string;
395
+ };
396
+ sm: {
397
+ fontFamily: (theme: Record<string, any>) => string;
398
+ fontWeight: string;
399
+ fontSize: ("lg" | "3xl")[];
400
+ lineHeight: string;
401
+ };
402
+ } | undefined;
403
+ variants?: {
404
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
405
+ } | undefined;
406
+ defaultProps?: {
407
+ size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | undefined;
408
+ variant?: string | number | undefined;
409
+ colorScheme?: string | undefined;
410
+ } | undefined;
411
+ };
412
+ Icon: {
413
+ baseStyle?: {} | undefined;
414
+ sizes?: {
415
+ sm: {
416
+ fontSize: string;
417
+ };
418
+ md: {
419
+ fontSize: string;
420
+ };
421
+ lg: {
422
+ fontSize: string;
423
+ };
424
+ } | undefined;
425
+ variants?: {} | undefined;
426
+ defaultProps?: {
427
+ size?: "sm" | "md" | "lg" | undefined;
428
+ variant?: undefined;
429
+ colorScheme?: string | undefined;
430
+ } | undefined;
431
+ };
432
+ Link: {
433
+ baseStyle?: {
434
+ color: string;
435
+ fontWeight: string;
436
+ _hover: {
437
+ textDecoration: string;
438
+ cursor: string;
439
+ };
440
+ } | undefined;
441
+ sizes?: {
442
+ sm: {
443
+ fontSize: ("3xs" | "xs")[];
444
+ lineHeight: string;
445
+ };
446
+ md: {
447
+ fontSize: ("2xs" | "sm")[];
448
+ lineHeight: string;
449
+ };
450
+ lg: {
451
+ fontSize: ("xs" | "md")[];
452
+ lineHeight: string;
453
+ };
454
+ } | undefined;
455
+ variants?: {} | undefined;
456
+ defaultProps?: {
457
+ size?: "sm" | "md" | "lg" | undefined;
458
+ variant?: undefined;
247
459
  colorScheme?: string | undefined;
248
460
  } | undefined;
249
461
  };
462
+ Text: {
463
+ baseStyle?: {
464
+ fontWeight: string;
465
+ lineHeight: string;
466
+ letterSpacing: string;
467
+ fontSize: string;
468
+ p: number;
469
+ } | undefined;
470
+ sizes?: {
471
+ xs: {
472
+ fontSize: ("2xs" | "xs")[];
473
+ };
474
+ sm: {
475
+ fontSize: ("xs" | "sm")[];
476
+ };
477
+ md: {
478
+ fontSize: ("sm" | "md")[];
479
+ };
480
+ lg: {
481
+ fontSize: ("md" | "lg")[];
482
+ };
483
+ xl: {
484
+ fontSize: ("lg" | "2xl")[];
485
+ lineHeight: ("shorter" | "short")[];
486
+ };
487
+ } | undefined;
488
+ variants?: {
489
+ [key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
490
+ } | undefined;
491
+ defaultProps?: {
492
+ size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
493
+ variant?: string | number | undefined;
494
+ colorScheme?: string | undefined;
495
+ } | undefined;
496
+ };
497
+ Menu: {
498
+ baseStyle?: {
499
+ button: {};
500
+ list: {
501
+ boxShadow: string;
502
+ backgroundColor: string;
503
+ };
504
+ item: {
505
+ fontWeight: string;
506
+ lineHeight: string;
507
+ color: string;
508
+ _hover: {
509
+ backgroundColor: string;
510
+ };
511
+ _disabled: {
512
+ backgroundColor: string;
513
+ color: string;
514
+ cursor: string;
515
+ };
516
+ };
517
+ groupTitle: {
518
+ color: string;
519
+ letterSpacing: string;
520
+ };
521
+ command: {
522
+ color: string;
523
+ };
524
+ divider: {
525
+ borderColor: string;
526
+ borderBottom: string;
527
+ };
528
+ } | undefined;
529
+ sizes?: {
530
+ sm: {
531
+ button: {};
532
+ item: {
533
+ fontSize: ("sm" | "md")[];
534
+ paddingY: string;
535
+ paddingX: string;
536
+ };
537
+ groupTitle: {
538
+ fontSize: ("md" | "lg")[];
539
+ paddingY: string;
540
+ paddingX: string;
541
+ };
542
+ divider: {
543
+ marginY: string;
544
+ };
545
+ };
546
+ md: {
547
+ item: {
548
+ fontSize: ("lg" | "xl")[];
549
+ paddingY: string;
550
+ paddingX: string;
551
+ };
552
+ groupTitle: {
553
+ fontSize: ("xl" | "2xl")[];
554
+ paddingY: string;
555
+ paddingX: string;
556
+ };
557
+ };
558
+ lg: {
559
+ item: {
560
+ fontSize: ("2xl" | "3xl")[];
561
+ paddingX: string;
562
+ paddingY: string;
563
+ };
564
+ groupTitle: {
565
+ fontSize: ("4xl" | "5xl")[];
566
+ paddingX: string;
567
+ paddingY: string;
568
+ };
569
+ };
570
+ } | undefined;
571
+ variants?: {} | undefined;
572
+ defaultProps?: {
573
+ size?: "sm" | "md" | "lg" | undefined;
574
+ variant?: undefined;
575
+ colorScheme?: string | undefined;
576
+ } | undefined;
577
+ parts: ("button" | "list" | "item" | "groupTitle" | "command" | "divider")[];
578
+ };
250
579
  };
251
580
  styles: import("@chakra-ui/theme-tools/dist/component").Styles;
252
581
  config: import("@chakra-ui/theme/dist/theme.types").ThemeConfig;
253
- shadows: {
254
- xs: string;
255
- sm: string;
256
- base: string;
257
- md: string;
258
- lg: string;
259
- xl: string;
260
- "2xl": string;
261
- outline: string;
262
- inner: string;
263
- none: string;
264
- "dark-lg": string;
265
- };
266
582
  borders: {
267
583
  none: number;
268
584
  "1px": string;
@@ -293,29 +609,6 @@ export declare const theme: {
293
609
  "ultra-slow": string;
294
610
  };
295
611
  };
296
- breakpoints: {
297
- base: string;
298
- sm: string;
299
- md: string;
300
- lg: string;
301
- xl: string;
302
- "2xl": string;
303
- };
304
- zIndices: {
305
- hide: number;
306
- auto: string;
307
- base: number;
308
- docked: number;
309
- dropdown: number;
310
- sticky: number;
311
- banner: number;
312
- overlay: number;
313
- modal: number;
314
- popover: number;
315
- skipLink: number;
316
- toast: number;
317
- tooltip: number;
318
- };
319
612
  radii: {
320
613
  none: string;
321
614
  sm: string;
@@ -0,0 +1,3 @@
1
+ import { Box, BoxProps as ChakraButtonProps } from '@chakra-ui/react';
2
+ export type BoxProps = ChakraButtonProps;
3
+ export default Box;