@everlywell/ui-kit 0.3.0-next → 0.3.1-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.
@@ -64,61 +64,71 @@ export declare const theme: {
64
64
  };
65
65
  space: {
66
66
  /**
67
- * TODO: figure out best way to define spacing
68
- * maybe do something like this?
69
- * 0, 0.125, 0.25, 0.5, 0.75, 1, 1.5, 2, 2.5, 3, 4, 5, 6, 8, 10
70
- * 0, 2, 4, 8, 12, 16, 24, 32, 40, 48, 64, 80, 96, 128, 160
71
- */
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.
74
+ */
72
75
  0: number;
76
+ 0.5: string;
73
77
  1: string;
78
+ 1.5: string;
74
79
  2: string;
75
80
  3: string;
76
81
  4: string;
77
82
  5: string;
78
83
  6: string;
79
- 7: string;
80
84
  8: string;
81
- 9: string;
82
85
  10: string;
83
- 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;
84
118
  };
85
119
  colors: {
86
- white: {
87
- base: string;
88
- 50: string;
89
- 100: string;
90
- 200: string;
91
- 300: string;
92
- 400: string;
93
- 500: string;
94
- 600: string;
95
- 700: string;
96
- 800: string;
97
- 900: string;
98
- };
99
- black: {
100
- base: string;
101
- 50: string;
102
- 100: string;
103
- 200: string;
104
- 300: string;
105
- 400: string;
106
- 500: string;
107
- 600: string;
108
- 700: string;
109
- 800: string;
110
- 900: string;
111
- };
112
- grayscale: {
120
+ tints: {
121
+ black: string;
113
122
  darkGrey: string;
114
- grey: string;
115
- mediumGrey: string;
123
+ uiGrey: string;
124
+ medGrey: string;
116
125
  lightGrey: string;
117
126
  darkCream: string;
118
127
  cream: string;
119
128
  lightCream: string;
129
+ white: string;
120
130
  };
121
- red: {
131
+ viridian: {
122
132
  50: string;
123
133
  100: string;
124
134
  200: string;
@@ -129,20 +139,20 @@ export declare const theme: {
129
139
  700: string;
130
140
  800: string;
131
141
  900: string;
132
- wash: string;
133
- lighter: string;
134
- light: string;
135
- base: string;
136
142
  dark: string;
137
- };
138
- yellow: {
139
- wash: string;
140
- lighter: string;
141
- light: string;
142
143
  base: string;
144
+ light: string;
145
+ lighter: string;
146
+ wash: string;
147
+ };
148
+ sunshine: {
143
149
  dark: string;
150
+ base: string;
151
+ light: string;
152
+ lighter: string;
153
+ wash: string;
144
154
  };
145
- green: {
155
+ terracotta: {
146
156
  50: string;
147
157
  100: string;
148
158
  200: string;
@@ -153,39 +163,39 @@ export declare const theme: {
153
163
  700: string;
154
164
  800: string;
155
165
  900: string;
156
- wash: string;
157
- lighter: string;
158
- light: string;
159
- base: string;
160
166
  dark: string;
161
- };
162
- lightBlue: {
163
- wash: string;
164
- lighter: string;
165
- light: string;
166
167
  base: string;
167
- dark: string;
168
- };
169
- blue: {
170
- wash: string;
171
- lighter: string;
172
168
  light: string;
173
- base: string;
174
- dark: string;
175
- };
176
- indigo: {
177
- wash: string;
178
169
  lighter: string;
179
- light: string;
180
- base: string;
181
- dark: string;
170
+ wash: string;
182
171
  };
183
172
  violet: {
184
- wash: string;
173
+ dark: string;
174
+ base: string;
175
+ light: string;
185
176
  lighter: string;
177
+ wash: string;
178
+ };
179
+ eggplant: {
180
+ dark: string;
181
+ base: string;
186
182
  light: string;
183
+ lighter: string;
184
+ wash: string;
185
+ };
186
+ moonlight: {
187
+ dark: string;
187
188
  base: string;
189
+ light: string;
190
+ lighter: string;
191
+ wash: string;
192
+ };
193
+ sky: {
188
194
  dark: string;
195
+ base: string;
196
+ light: string;
197
+ lighter: string;
198
+ wash: string;
189
199
  };
190
200
  };
191
201
  components: {
@@ -206,18 +216,27 @@ export declare const theme: {
206
216
  fontSize: ("md" | "lg")[];
207
217
  px: number[];
208
218
  py: number[];
209
- '.chakra-button__icon > svg': {
210
- width: string;
211
- 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;
212
228
  };
213
229
  };
214
230
  md: {
215
231
  fontSize: ("lg" | "xl")[];
216
232
  px: number[];
217
233
  py: number[];
234
+ '&:has(> svg:only-child)': {
235
+ px: number[];
236
+ py: number[];
237
+ };
218
238
  svg: {
219
- width: ("1.25rem" | "1.5rem")[];
220
- height: ("1.25rem" | "1.5rem")[];
239
+ fontSize: ("1.5rem" | "1.25rem")[];
221
240
  };
222
241
  };
223
242
  wide: {
@@ -225,9 +244,12 @@ export declare const theme: {
225
244
  px: number;
226
245
  py: number;
227
246
  width: string;
228
- '.chakra-button__icon > svg': {
229
- width: string;
230
- height: string;
247
+ '&:has(> svg:only-child)': {
248
+ px: number;
249
+ py: number;
250
+ };
251
+ svg: {
252
+ fontSize: string;
231
253
  };
232
254
  };
233
255
  } | undefined;
@@ -270,35 +292,76 @@ export declare const theme: {
270
292
  colorScheme?: string | undefined;
271
293
  } | undefined;
272
294
  };
273
- Link: {
295
+ Drawer: {
274
296
  baseStyle?: {
275
- color: string;
276
- fontWeight: string;
277
- _hover: {
278
- textDecoration: string;
279
- cursor: string;
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;
280
338
  };
281
339
  } | undefined;
282
340
  sizes?: {
283
- sm: {
284
- fontSize: ("3xs" | "xs")[];
285
- lineHeight: string;
286
- };
287
- md: {
288
- fontSize: ("sm" | "2xs")[];
289
- lineHeight: string;
341
+ partial: {
342
+ dialog: {
343
+ maxW: number;
344
+ };
290
345
  };
291
- lg: {
292
- fontSize: ("md" | "xs")[];
293
- lineHeight: string;
346
+ full: {
347
+ dialog: {
348
+ maxW: string;
349
+ minH: string;
350
+ borderRadius: number;
351
+ };
294
352
  };
295
353
  } | undefined;
296
- variants?: {} | undefined;
354
+ variants?: {
355
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
356
+ keys: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
357
+ }>;
358
+ } | undefined;
297
359
  defaultProps?: {
298
- size?: "sm" | "md" | "lg" | undefined;
299
- variant?: undefined;
360
+ size?: "full" | "partial" | undefined;
361
+ variant?: string | number | undefined;
300
362
  colorScheme?: string | undefined;
301
363
  } | undefined;
364
+ parts: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
302
365
  };
303
366
  Heading: {
304
367
  baseStyle?: {
@@ -346,6 +409,56 @@ export declare const theme: {
346
409
  colorScheme?: string | undefined;
347
410
  } | undefined;
348
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: ("sm" | "2xs")[];
448
+ lineHeight: string;
449
+ };
450
+ lg: {
451
+ fontSize: ("md" | "xs")[];
452
+ lineHeight: string;
453
+ };
454
+ } | undefined;
455
+ variants?: {} | undefined;
456
+ defaultProps?: {
457
+ size?: "sm" | "md" | "lg" | undefined;
458
+ variant?: undefined;
459
+ colorScheme?: string | undefined;
460
+ } | undefined;
461
+ };
349
462
  Text: {
350
463
  baseStyle?: {
351
464
  fontWeight: string;
@@ -381,42 +494,9 @@ export declare const theme: {
381
494
  colorScheme?: string | undefined;
382
495
  } | undefined;
383
496
  };
384
- Icon: {
385
- baseStyle?: {} | undefined;
386
- sizes?: {
387
- sm: {
388
- fontSize: string;
389
- };
390
- md: {
391
- fontSize: string;
392
- };
393
- lg: {
394
- fontSize: string;
395
- };
396
- } | undefined;
397
- variants?: {} | undefined;
398
- defaultProps?: {
399
- size?: "sm" | "md" | "lg" | undefined;
400
- variant?: undefined;
401
- colorScheme?: string | undefined;
402
- } | undefined;
403
- };
404
497
  };
405
498
  styles: import("@chakra-ui/theme-tools/dist/component").Styles;
406
499
  config: import("@chakra-ui/theme/dist/theme.types").ThemeConfig;
407
- shadows: {
408
- xs: string;
409
- sm: string;
410
- base: string;
411
- md: string;
412
- lg: string;
413
- xl: string;
414
- "2xl": string;
415
- outline: string;
416
- inner: string;
417
- none: string;
418
- "dark-lg": string;
419
- };
420
500
  borders: {
421
501
  none: number;
422
502
  "1px": string;
@@ -447,21 +527,6 @@ export declare const theme: {
447
527
  "ultra-slow": string;
448
528
  };
449
529
  };
450
- zIndices: {
451
- hide: number;
452
- auto: string;
453
- base: number;
454
- docked: number;
455
- dropdown: number;
456
- sticky: number;
457
- banner: number;
458
- overlay: number;
459
- modal: number;
460
- popover: number;
461
- skipLink: number;
462
- toast: number;
463
- tooltip: number;
464
- };
465
530
  radii: {
466
531
  none: string;
467
532
  sm: string;
@@ -3,7 +3,7 @@ import { IconProps as ChakraIconProps, ThemingProps } from '@chakra-ui/react';
3
3
  import * as icons from '@phosphor-icons/react';
4
4
  declare const ICON_RED_LIST: readonly ["SSR", "Icon", "IconProps", "IconContext", "IconBase", "IconWeight"];
5
5
  declare const ICON_GREEN_LIST: readonly [];
6
- type IconKey = Exclude<keyof typeof icons, (typeof ICON_RED_LIST)[number]> | (typeof ICON_GREEN_LIST)[number];
6
+ export type IconKey = Exclude<keyof typeof icons, (typeof ICON_RED_LIST)[number]> | (typeof ICON_GREEN_LIST)[number];
7
7
  type IconType = Record<IconKey, React.ElementType>;
8
8
  export declare const ICON_SET: IconType;
9
9
  export type IconProps = ChakraIconProps & ThemingProps<'Icon'> & {
@@ -0,0 +1,72 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ overlay: {
4
+ bg: string;
5
+ backgroundImage: string;
6
+ };
7
+ dialogContainer: {
8
+ zIndex: string;
9
+ };
10
+ dialog: {
11
+ bg: string;
12
+ pt: number[];
13
+ display: string;
14
+ flexDirection: string;
15
+ alignItems: string;
16
+ gap: number;
17
+ boxShadow: string;
18
+ };
19
+ header: {
20
+ px: number;
21
+ display: string;
22
+ flexDirection: string;
23
+ justifyContent: string;
24
+ alignItems: string;
25
+ };
26
+ closeButton: {
27
+ bg: string;
28
+ borderRadius: string;
29
+ p: number;
30
+ _hover: {
31
+ bg: string;
32
+ };
33
+ '& .chakra-icon': {
34
+ p: number;
35
+ };
36
+ };
37
+ body: {
38
+ px: number;
39
+ flexGrow: number;
40
+ };
41
+ footer: {
42
+ py: number;
43
+ px: number;
44
+ };
45
+ } | undefined;
46
+ sizes?: {
47
+ partial: {
48
+ dialog: {
49
+ maxW: number;
50
+ };
51
+ };
52
+ full: {
53
+ dialog: {
54
+ maxW: string;
55
+ minH: string;
56
+ borderRadius: number;
57
+ };
58
+ };
59
+ } | undefined;
60
+ variants?: {
61
+ [key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
62
+ keys: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
63
+ }>;
64
+ } | undefined;
65
+ defaultProps?: {
66
+ size?: "full" | "partial" | undefined;
67
+ variant?: string | number | undefined;
68
+ colorScheme?: string | undefined;
69
+ } | undefined;
70
+ parts: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
71
+ };
72
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import { Drawer } from '@chakra-ui/react';
2
+ export { DrawerBody, DrawerCloseButton, DrawerContent, DrawerFooter, DrawerHeader, DrawerOverlay, type DrawerProps, } from '@chakra-ui/react';
3
+ export default Drawer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everlywell/ui-kit",
3
- "version": "0.3.0-next",
3
+ "version": "0.3.1-next",
4
4
  "main": "./index.js",
5
5
  "types": "./index.d.ts",
6
6
  "exports": {
@@ -8,12 +8,5 @@
8
8
  "import": "./index.mjs",
9
9
  "require": "./index.js"
10
10
  }
11
- },
12
- "peerDependencies": {
13
- "@chakra-ui/react": "^2.8.1",
14
- "@emotion/react": "11.11.3",
15
- "@emotion/styled": "11.11.0",
16
- "@phosphor-icons/react": "2.0.15",
17
- "framer-motion": "^10.16.4"
18
11
  }
19
12
  }