@everlywell/ui-kit 0.0.1-alpha.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.
- package/index.d.mts +15 -0
- package/index.d.ts +15 -0
- package/index.js +104 -0
- package/index.mjs +3055 -0
- package/lib/components/Fonts/Fonts.d.ts +2 -0
- package/lib/components/Fonts/index.d.ts +1 -0
- package/lib/components/ThemeProvider/ThemeProvider.d.ts +5 -0
- package/lib/components/ThemeProvider/index.d.ts +1 -0
- package/lib/theme/actions/Button/Button.config.d.ts +95 -0
- package/lib/theme/actions/Button/Button.d.ts +3 -0
- package/lib/theme/actions/IconButton/IconButton.d.ts +11 -0
- package/lib/theme/actions/Menu/Menu.config.d.ts +92 -0
- package/lib/theme/actions/Menu/Menu.d.ts +3 -0
- package/lib/theme/foundations/colors.d.ts +96 -0
- package/lib/theme/index.d.ts +659 -0
- package/lib/theme/layout/Box/Box.d.ts +3 -0
- package/lib/theme/layout/Grid/Grid.d.ts +48 -0
- package/lib/theme/layout/Grid/GridItem.d.ts +5 -0
- package/lib/theme/layout/Grid/index.d.ts +2 -0
- package/lib/theme/layout/Show-Hide/Show-Hide.d.ts +5 -0
- package/lib/theme/media/Icon/Icon.config.d.ts +21 -0
- package/lib/theme/media/Icon/Icon.d.ts +14 -0
- package/lib/theme/navigation/Link/Link.config.d.ts +31 -0
- package/lib/theme/navigation/Link/Link.d.ts +3 -0
- package/lib/theme/overlay/Drawer/Drawer.config.d.ts +72 -0
- package/lib/theme/overlay/Drawer/Drawer.d.ts +3 -0
- package/lib/theme/typography/Heading/Heading.config.d.ts +48 -0
- package/lib/theme/typography/Heading/Heading.d.ts +3 -0
- package/lib/theme/typography/Text/Text.config.d.ts +37 -0
- package/lib/theme/typography/Text/Text.d.ts +3 -0
- package/package.json +23 -0
|
@@ -0,0 +1,659 @@
|
|
|
1
|
+
export declare const theme: {
|
|
2
|
+
breakpoints: {
|
|
3
|
+
mobile: string;
|
|
4
|
+
tablet: string;
|
|
5
|
+
largeTablet: string;
|
|
6
|
+
desktop: string;
|
|
7
|
+
largeDesktop: string;
|
|
8
|
+
};
|
|
9
|
+
fonts: {
|
|
10
|
+
body: string;
|
|
11
|
+
heading: string;
|
|
12
|
+
mono: string;
|
|
13
|
+
};
|
|
14
|
+
fontWeights: {
|
|
15
|
+
thin: string;
|
|
16
|
+
xlight: string;
|
|
17
|
+
light: string;
|
|
18
|
+
normal: string;
|
|
19
|
+
medium: string;
|
|
20
|
+
semiBold: string;
|
|
21
|
+
bold: string;
|
|
22
|
+
xbold: string;
|
|
23
|
+
black: string;
|
|
24
|
+
};
|
|
25
|
+
fontSizes: {
|
|
26
|
+
'3xs': string;
|
|
27
|
+
'2xs': string;
|
|
28
|
+
xs: string;
|
|
29
|
+
sm: string;
|
|
30
|
+
md: string;
|
|
31
|
+
lg: string;
|
|
32
|
+
xl: string;
|
|
33
|
+
'2xl': string;
|
|
34
|
+
'3xl': string;
|
|
35
|
+
'4xl': string;
|
|
36
|
+
'5xl': string;
|
|
37
|
+
'6xl': string;
|
|
38
|
+
'7xl': string;
|
|
39
|
+
'9xl': string;
|
|
40
|
+
'10xl': string;
|
|
41
|
+
'11xl': string;
|
|
42
|
+
};
|
|
43
|
+
letterSpacings: {
|
|
44
|
+
tighter: string;
|
|
45
|
+
tight: string;
|
|
46
|
+
normal: string;
|
|
47
|
+
wide: string;
|
|
48
|
+
wider: string;
|
|
49
|
+
widest: string;
|
|
50
|
+
};
|
|
51
|
+
lineHeights: {
|
|
52
|
+
body: number;
|
|
53
|
+
normal: string;
|
|
54
|
+
none: number;
|
|
55
|
+
shorter: number;
|
|
56
|
+
short: number;
|
|
57
|
+
base: number;
|
|
58
|
+
tall: number;
|
|
59
|
+
};
|
|
60
|
+
sizes: {
|
|
61
|
+
max: string;
|
|
62
|
+
min: string;
|
|
63
|
+
full: string;
|
|
64
|
+
};
|
|
65
|
+
space: {
|
|
66
|
+
/**
|
|
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
|
+
*/
|
|
75
|
+
0: number;
|
|
76
|
+
0.5: string;
|
|
77
|
+
1: string;
|
|
78
|
+
1.5: string;
|
|
79
|
+
2: string;
|
|
80
|
+
3: string;
|
|
81
|
+
4: string;
|
|
82
|
+
5: string;
|
|
83
|
+
6: string;
|
|
84
|
+
8: string;
|
|
85
|
+
10: 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;
|
|
118
|
+
};
|
|
119
|
+
colors: {
|
|
120
|
+
white: {
|
|
121
|
+
base: string;
|
|
122
|
+
50: string;
|
|
123
|
+
100: string;
|
|
124
|
+
200: string;
|
|
125
|
+
300: string;
|
|
126
|
+
400: string;
|
|
127
|
+
500: string;
|
|
128
|
+
600: string;
|
|
129
|
+
700: string;
|
|
130
|
+
800: string;
|
|
131
|
+
900: string;
|
|
132
|
+
};
|
|
133
|
+
tints: {
|
|
134
|
+
black: string;
|
|
135
|
+
darkGrey: string;
|
|
136
|
+
uiGrey: string;
|
|
137
|
+
medGrey: string;
|
|
138
|
+
lightGrey: string;
|
|
139
|
+
darkCream: string;
|
|
140
|
+
cream: string;
|
|
141
|
+
lightCream: string;
|
|
142
|
+
white: string;
|
|
143
|
+
};
|
|
144
|
+
viridian: {
|
|
145
|
+
50: string;
|
|
146
|
+
100: string;
|
|
147
|
+
200: string;
|
|
148
|
+
300: string;
|
|
149
|
+
400: string;
|
|
150
|
+
500: string;
|
|
151
|
+
600: string;
|
|
152
|
+
700: string;
|
|
153
|
+
800: string;
|
|
154
|
+
900: string;
|
|
155
|
+
dark: string;
|
|
156
|
+
base: string;
|
|
157
|
+
light: string;
|
|
158
|
+
lighter: string;
|
|
159
|
+
wash: string;
|
|
160
|
+
};
|
|
161
|
+
sunshine: {
|
|
162
|
+
dark: string;
|
|
163
|
+
base: string;
|
|
164
|
+
light: string;
|
|
165
|
+
lighter: string;
|
|
166
|
+
wash: string;
|
|
167
|
+
};
|
|
168
|
+
terracotta: {
|
|
169
|
+
50: string;
|
|
170
|
+
100: string;
|
|
171
|
+
200: string;
|
|
172
|
+
300: string;
|
|
173
|
+
400: string;
|
|
174
|
+
500: string;
|
|
175
|
+
600: string;
|
|
176
|
+
700: string;
|
|
177
|
+
800: string;
|
|
178
|
+
900: string;
|
|
179
|
+
dark: string;
|
|
180
|
+
base: string;
|
|
181
|
+
light: string;
|
|
182
|
+
lighter: string;
|
|
183
|
+
wash: string;
|
|
184
|
+
};
|
|
185
|
+
violet: {
|
|
186
|
+
dark: string;
|
|
187
|
+
base: string;
|
|
188
|
+
light: string;
|
|
189
|
+
lighter: string;
|
|
190
|
+
wash: string;
|
|
191
|
+
};
|
|
192
|
+
eggplant: {
|
|
193
|
+
dark: string;
|
|
194
|
+
base: string;
|
|
195
|
+
light: string;
|
|
196
|
+
lighter: string;
|
|
197
|
+
wash: string;
|
|
198
|
+
};
|
|
199
|
+
moonlight: {
|
|
200
|
+
dark: string;
|
|
201
|
+
base: string;
|
|
202
|
+
light: string;
|
|
203
|
+
lighter: string;
|
|
204
|
+
wash: string;
|
|
205
|
+
};
|
|
206
|
+
sky: {
|
|
207
|
+
dark: string;
|
|
208
|
+
base: string;
|
|
209
|
+
light: string;
|
|
210
|
+
lighter: string;
|
|
211
|
+
wash: string;
|
|
212
|
+
};
|
|
213
|
+
};
|
|
214
|
+
components: {
|
|
215
|
+
Button: {
|
|
216
|
+
baseStyle?: {
|
|
217
|
+
fontWeight: string;
|
|
218
|
+
lineHeight: string;
|
|
219
|
+
letterSpacing: string;
|
|
220
|
+
borderRadius: string;
|
|
221
|
+
_disabled: {
|
|
222
|
+
span: {
|
|
223
|
+
display: string;
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
} | undefined;
|
|
227
|
+
sizes?: {
|
|
228
|
+
sm: {
|
|
229
|
+
fontSize: ("md" | "lg")[];
|
|
230
|
+
px: number[];
|
|
231
|
+
py: number[];
|
|
232
|
+
'&:has(> svg:only-child)': {
|
|
233
|
+
px: number;
|
|
234
|
+
py: number;
|
|
235
|
+
svg: {
|
|
236
|
+
fontSize: string;
|
|
237
|
+
};
|
|
238
|
+
};
|
|
239
|
+
svg: {
|
|
240
|
+
fontSize: string;
|
|
241
|
+
};
|
|
242
|
+
};
|
|
243
|
+
md: {
|
|
244
|
+
fontSize: ("lg" | "xl")[];
|
|
245
|
+
px: number[];
|
|
246
|
+
py: number[];
|
|
247
|
+
'&:has(> svg:only-child)': {
|
|
248
|
+
px: number[];
|
|
249
|
+
py: number[];
|
|
250
|
+
};
|
|
251
|
+
svg: {
|
|
252
|
+
fontSize: ("1.5rem" | "1.25rem")[];
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
wide: {
|
|
256
|
+
fontSize: string;
|
|
257
|
+
px: number;
|
|
258
|
+
py: number;
|
|
259
|
+
width: string;
|
|
260
|
+
'&:has(> svg:only-child)': {
|
|
261
|
+
px: number;
|
|
262
|
+
py: number;
|
|
263
|
+
};
|
|
264
|
+
svg: {
|
|
265
|
+
fontSize: string;
|
|
266
|
+
};
|
|
267
|
+
};
|
|
268
|
+
} | undefined;
|
|
269
|
+
variants?: {
|
|
270
|
+
primary: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
271
|
+
bg: string;
|
|
272
|
+
color: string;
|
|
273
|
+
':hover, &.hover': {
|
|
274
|
+
bg: string;
|
|
275
|
+
};
|
|
276
|
+
':active, &.active': {
|
|
277
|
+
bg: string;
|
|
278
|
+
};
|
|
279
|
+
':disabled': {
|
|
280
|
+
bg: string;
|
|
281
|
+
color: string;
|
|
282
|
+
};
|
|
283
|
+
};
|
|
284
|
+
secondary: (props: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
285
|
+
color: string;
|
|
286
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
287
|
+
':hover, &.hover': {
|
|
288
|
+
color: string;
|
|
289
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
290
|
+
};
|
|
291
|
+
':active, &.active': {
|
|
292
|
+
color: string;
|
|
293
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
294
|
+
};
|
|
295
|
+
':disabled': {
|
|
296
|
+
color: string;
|
|
297
|
+
boxShadow: (theme: Record<string, any>) => string;
|
|
298
|
+
opacity: number;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
} | undefined;
|
|
302
|
+
defaultProps?: {
|
|
303
|
+
size?: "wide" | "sm" | "md" | undefined;
|
|
304
|
+
variant?: "primary" | "secondary" | undefined;
|
|
305
|
+
colorScheme?: string | undefined;
|
|
306
|
+
} | undefined;
|
|
307
|
+
};
|
|
308
|
+
Drawer: {
|
|
309
|
+
baseStyle?: {
|
|
310
|
+
overlay: {
|
|
311
|
+
zIndex: string;
|
|
312
|
+
bg: (theme: Record<string, any>) => string;
|
|
313
|
+
};
|
|
314
|
+
dialogContainer: {
|
|
315
|
+
zIndex: string;
|
|
316
|
+
};
|
|
317
|
+
dialog: {
|
|
318
|
+
bg: string;
|
|
319
|
+
pt: number[];
|
|
320
|
+
display: string;
|
|
321
|
+
flexDirection: string;
|
|
322
|
+
alignItems: string;
|
|
323
|
+
gap: number;
|
|
324
|
+
boxShadow: string;
|
|
325
|
+
};
|
|
326
|
+
header: {
|
|
327
|
+
px: number;
|
|
328
|
+
display: string;
|
|
329
|
+
flexDirection: string;
|
|
330
|
+
justifyContent: string;
|
|
331
|
+
alignItems: string;
|
|
332
|
+
};
|
|
333
|
+
closeButton: {
|
|
334
|
+
bg: string;
|
|
335
|
+
borderRadius: string;
|
|
336
|
+
p: number;
|
|
337
|
+
_hover: {
|
|
338
|
+
bg: string;
|
|
339
|
+
};
|
|
340
|
+
'& .chakra-icon': {
|
|
341
|
+
p: number;
|
|
342
|
+
};
|
|
343
|
+
};
|
|
344
|
+
body: {
|
|
345
|
+
px: number;
|
|
346
|
+
flexGrow: number;
|
|
347
|
+
};
|
|
348
|
+
footer: {
|
|
349
|
+
py: number;
|
|
350
|
+
px: number;
|
|
351
|
+
};
|
|
352
|
+
} | undefined;
|
|
353
|
+
sizes?: {
|
|
354
|
+
partial: {
|
|
355
|
+
dialog: {
|
|
356
|
+
maxW: number;
|
|
357
|
+
};
|
|
358
|
+
};
|
|
359
|
+
full: {
|
|
360
|
+
dialog: {
|
|
361
|
+
maxW: string;
|
|
362
|
+
minH: string;
|
|
363
|
+
borderRadius: number;
|
|
364
|
+
};
|
|
365
|
+
};
|
|
366
|
+
} | undefined;
|
|
367
|
+
variants?: {
|
|
368
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
369
|
+
keys: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
|
|
370
|
+
}>;
|
|
371
|
+
} | undefined;
|
|
372
|
+
defaultProps?: {
|
|
373
|
+
size?: "full" | "partial" | undefined;
|
|
374
|
+
variant?: string | number | undefined;
|
|
375
|
+
colorScheme?: string | undefined;
|
|
376
|
+
} | undefined;
|
|
377
|
+
parts: ("body" | "dialog" | "footer" | "header" | "overlay" | "dialogContainer" | "closeButton")[];
|
|
378
|
+
};
|
|
379
|
+
Heading: {
|
|
380
|
+
baseStyle?: {
|
|
381
|
+
fontFamily: string;
|
|
382
|
+
fontWeight: string;
|
|
383
|
+
color: string;
|
|
384
|
+
} | undefined;
|
|
385
|
+
sizes?: {
|
|
386
|
+
'3xl': {
|
|
387
|
+
fontSize: ("6xl" | "11xl")[];
|
|
388
|
+
lineHeight: string;
|
|
389
|
+
};
|
|
390
|
+
'2xl': {
|
|
391
|
+
fontSize: ("6xl" | "9xl")[];
|
|
392
|
+
lineHeight: string;
|
|
393
|
+
};
|
|
394
|
+
xl: {
|
|
395
|
+
fontSize: ("4xl" | "7xl")[];
|
|
396
|
+
lineHeight: string;
|
|
397
|
+
};
|
|
398
|
+
lg: {
|
|
399
|
+
fontFamily: string;
|
|
400
|
+
fontWeight: string;
|
|
401
|
+
fontSize: ("3xl" | "6xl")[];
|
|
402
|
+
lineHeight: string;
|
|
403
|
+
};
|
|
404
|
+
md: {
|
|
405
|
+
fontFamily: string;
|
|
406
|
+
fontWeight: string;
|
|
407
|
+
fontSize: ("2xl" | "4xl")[];
|
|
408
|
+
lineHeight: string;
|
|
409
|
+
};
|
|
410
|
+
sm: {
|
|
411
|
+
fontFamily: string;
|
|
412
|
+
fontWeight: string;
|
|
413
|
+
fontSize: ("lg" | "3xl")[];
|
|
414
|
+
lineHeight: string;
|
|
415
|
+
};
|
|
416
|
+
} | undefined;
|
|
417
|
+
variants?: {
|
|
418
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
419
|
+
} | undefined;
|
|
420
|
+
defaultProps?: {
|
|
421
|
+
size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | undefined;
|
|
422
|
+
variant?: string | number | undefined;
|
|
423
|
+
colorScheme?: string | undefined;
|
|
424
|
+
} | undefined;
|
|
425
|
+
};
|
|
426
|
+
Icon: {
|
|
427
|
+
baseStyle?: {} | undefined;
|
|
428
|
+
sizes?: {
|
|
429
|
+
sm: {
|
|
430
|
+
fontSize: string;
|
|
431
|
+
};
|
|
432
|
+
md: {
|
|
433
|
+
fontSize: string;
|
|
434
|
+
};
|
|
435
|
+
lg: {
|
|
436
|
+
fontSize: string;
|
|
437
|
+
};
|
|
438
|
+
} | undefined;
|
|
439
|
+
variants?: {} | undefined;
|
|
440
|
+
defaultProps?: {
|
|
441
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
442
|
+
variant?: undefined;
|
|
443
|
+
colorScheme?: string | undefined;
|
|
444
|
+
} | undefined;
|
|
445
|
+
};
|
|
446
|
+
Link: {
|
|
447
|
+
baseStyle?: {
|
|
448
|
+
color: string;
|
|
449
|
+
fontWeight: string;
|
|
450
|
+
_hover: {
|
|
451
|
+
textDecoration: string;
|
|
452
|
+
cursor: string;
|
|
453
|
+
};
|
|
454
|
+
} | undefined;
|
|
455
|
+
sizes?: {
|
|
456
|
+
sm: {
|
|
457
|
+
fontSize: ("xs" | "sm")[];
|
|
458
|
+
lineHeight: string;
|
|
459
|
+
};
|
|
460
|
+
md: {
|
|
461
|
+
fontSize: ("sm" | "md")[];
|
|
462
|
+
lineHeight: string;
|
|
463
|
+
};
|
|
464
|
+
lg: {
|
|
465
|
+
fontSize: ("md" | "lg")[];
|
|
466
|
+
lineHeight: string;
|
|
467
|
+
};
|
|
468
|
+
} | undefined;
|
|
469
|
+
variants?: {} | undefined;
|
|
470
|
+
defaultProps?: {
|
|
471
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
472
|
+
variant?: undefined;
|
|
473
|
+
colorScheme?: string | undefined;
|
|
474
|
+
} | undefined;
|
|
475
|
+
};
|
|
476
|
+
Text: {
|
|
477
|
+
baseStyle?: {
|
|
478
|
+
fontFamily: string;
|
|
479
|
+
fontWeight: string;
|
|
480
|
+
lineHeight: string;
|
|
481
|
+
letterSpacing: string;
|
|
482
|
+
fontSize: string;
|
|
483
|
+
p: number;
|
|
484
|
+
} | undefined;
|
|
485
|
+
sizes?: {
|
|
486
|
+
xs: {
|
|
487
|
+
fontSize: ("2xs" | "xs")[];
|
|
488
|
+
};
|
|
489
|
+
sm: {
|
|
490
|
+
fontSize: ("xs" | "sm")[];
|
|
491
|
+
};
|
|
492
|
+
md: {
|
|
493
|
+
fontSize: ("sm" | "md")[];
|
|
494
|
+
};
|
|
495
|
+
lg: {
|
|
496
|
+
fontSize: ("md" | "lg")[];
|
|
497
|
+
};
|
|
498
|
+
xl: {
|
|
499
|
+
fontSize: ("lg" | "2xl")[];
|
|
500
|
+
lineHeight: ("shorter" | "short")[];
|
|
501
|
+
};
|
|
502
|
+
} | undefined;
|
|
503
|
+
variants?: {
|
|
504
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
505
|
+
} | undefined;
|
|
506
|
+
defaultProps?: {
|
|
507
|
+
size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
|
|
508
|
+
variant?: string | number | undefined;
|
|
509
|
+
colorScheme?: string | undefined;
|
|
510
|
+
} | undefined;
|
|
511
|
+
};
|
|
512
|
+
Menu: {
|
|
513
|
+
baseStyle?: {
|
|
514
|
+
button: {};
|
|
515
|
+
list: {
|
|
516
|
+
boxShadow: string;
|
|
517
|
+
backgroundColor: string;
|
|
518
|
+
border: string;
|
|
519
|
+
borderColor: string;
|
|
520
|
+
borderRadius: string;
|
|
521
|
+
};
|
|
522
|
+
item: {
|
|
523
|
+
fontWeight: string;
|
|
524
|
+
lineHeight: string;
|
|
525
|
+
color: string;
|
|
526
|
+
_hover: {
|
|
527
|
+
backgroundColor: string;
|
|
528
|
+
};
|
|
529
|
+
_disabled: {
|
|
530
|
+
backgroundColor: string;
|
|
531
|
+
color: string;
|
|
532
|
+
cursor: string;
|
|
533
|
+
};
|
|
534
|
+
_first: {
|
|
535
|
+
borderTopRadius: string;
|
|
536
|
+
};
|
|
537
|
+
_last: {
|
|
538
|
+
borderBottomRadius: string;
|
|
539
|
+
};
|
|
540
|
+
};
|
|
541
|
+
groupTitle: {
|
|
542
|
+
color: string;
|
|
543
|
+
letterSpacing: string;
|
|
544
|
+
};
|
|
545
|
+
command: {
|
|
546
|
+
color: string;
|
|
547
|
+
};
|
|
548
|
+
divider: {
|
|
549
|
+
borderColor: string;
|
|
550
|
+
borderBottom: string;
|
|
551
|
+
};
|
|
552
|
+
} | undefined;
|
|
553
|
+
sizes?: {
|
|
554
|
+
sm: {
|
|
555
|
+
button: {};
|
|
556
|
+
item: {
|
|
557
|
+
fontSize: ("2xs" | "sm")[];
|
|
558
|
+
paddingY: string;
|
|
559
|
+
paddingX: string;
|
|
560
|
+
};
|
|
561
|
+
groupTitle: {
|
|
562
|
+
fontSize: ("md" | "lg")[];
|
|
563
|
+
paddingY: string;
|
|
564
|
+
paddingX: string;
|
|
565
|
+
};
|
|
566
|
+
divider: {
|
|
567
|
+
marginY: string;
|
|
568
|
+
};
|
|
569
|
+
};
|
|
570
|
+
md: {
|
|
571
|
+
item: {
|
|
572
|
+
fontSize: ("3xs" | "lg")[];
|
|
573
|
+
paddingY: string;
|
|
574
|
+
paddingX: string;
|
|
575
|
+
};
|
|
576
|
+
groupTitle: {
|
|
577
|
+
fontSize: ("lg" | "xl")[];
|
|
578
|
+
paddingY: string;
|
|
579
|
+
paddingX: string;
|
|
580
|
+
};
|
|
581
|
+
};
|
|
582
|
+
lg: {
|
|
583
|
+
item: {
|
|
584
|
+
fontSize: ("xl" | "2xl")[];
|
|
585
|
+
paddingX: string;
|
|
586
|
+
paddingY: string;
|
|
587
|
+
};
|
|
588
|
+
groupTitle: {
|
|
589
|
+
fontSize: ("3xl" | "4xl")[];
|
|
590
|
+
paddingX: string;
|
|
591
|
+
paddingY: string;
|
|
592
|
+
};
|
|
593
|
+
};
|
|
594
|
+
} | undefined;
|
|
595
|
+
variants?: {} | undefined;
|
|
596
|
+
defaultProps?: {
|
|
597
|
+
size?: "sm" | "md" | "lg" | undefined;
|
|
598
|
+
variant?: undefined;
|
|
599
|
+
colorScheme?: string | undefined;
|
|
600
|
+
} | undefined;
|
|
601
|
+
parts: ("button" | "list" | "item" | "groupTitle" | "command" | "divider")[];
|
|
602
|
+
};
|
|
603
|
+
};
|
|
604
|
+
styles: import("@chakra-ui/theme-tools/dist/component").Styles;
|
|
605
|
+
config: import("@chakra-ui/theme/dist/theme.types").ThemeConfig;
|
|
606
|
+
borders: {
|
|
607
|
+
none: number;
|
|
608
|
+
"1px": string;
|
|
609
|
+
"2px": string;
|
|
610
|
+
"4px": string;
|
|
611
|
+
"8px": string;
|
|
612
|
+
};
|
|
613
|
+
transition: {
|
|
614
|
+
property: {
|
|
615
|
+
common: string;
|
|
616
|
+
colors: string;
|
|
617
|
+
dimensions: string;
|
|
618
|
+
position: string;
|
|
619
|
+
background: string;
|
|
620
|
+
};
|
|
621
|
+
easing: {
|
|
622
|
+
"ease-in": string;
|
|
623
|
+
"ease-out": string;
|
|
624
|
+
"ease-in-out": string;
|
|
625
|
+
};
|
|
626
|
+
duration: {
|
|
627
|
+
"ultra-fast": string;
|
|
628
|
+
faster: string;
|
|
629
|
+
fast: string;
|
|
630
|
+
normal: string;
|
|
631
|
+
slow: string;
|
|
632
|
+
slower: string;
|
|
633
|
+
"ultra-slow": string;
|
|
634
|
+
};
|
|
635
|
+
};
|
|
636
|
+
radii: {
|
|
637
|
+
none: string;
|
|
638
|
+
sm: string;
|
|
639
|
+
base: string;
|
|
640
|
+
md: string;
|
|
641
|
+
lg: string;
|
|
642
|
+
xl: string;
|
|
643
|
+
"2xl": string;
|
|
644
|
+
"3xl": string;
|
|
645
|
+
full: string;
|
|
646
|
+
};
|
|
647
|
+
blur: {
|
|
648
|
+
none: number;
|
|
649
|
+
sm: string;
|
|
650
|
+
base: string;
|
|
651
|
+
md: string;
|
|
652
|
+
lg: string;
|
|
653
|
+
xl: string;
|
|
654
|
+
"2xl": string;
|
|
655
|
+
"3xl": string;
|
|
656
|
+
};
|
|
657
|
+
direction: "ltr";
|
|
658
|
+
};
|
|
659
|
+
export default theme;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FlexProps } from '@chakra-ui/react';
|
|
3
|
+
type Spacing = number | Array<number>;
|
|
4
|
+
type NumberFrom1To12 = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
5
|
+
type Columns = NumberFrom1To12 | NumberFrom1To12[];
|
|
6
|
+
type GridContextType = {
|
|
7
|
+
spacing: Spacing;
|
|
8
|
+
columns: Columns;
|
|
9
|
+
};
|
|
10
|
+
export declare const GridContext: React.Context<GridContextType>;
|
|
11
|
+
export type GridProps = {
|
|
12
|
+
/**
|
|
13
|
+
* Aligns the grid items within the container to the edges.
|
|
14
|
+
* Essentially removing the spacing around the container
|
|
15
|
+
*/
|
|
16
|
+
alignEdges?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* Define the spacing between elements using the spacing values defined
|
|
19
|
+
* in the design system. Default is the theme horizontal page spacing defined
|
|
20
|
+
* in the app's theme.
|
|
21
|
+
*/
|
|
22
|
+
spacing?: Spacing;
|
|
23
|
+
/**
|
|
24
|
+
* Indicates the number of columns
|
|
25
|
+
*/
|
|
26
|
+
columns?: Columns;
|
|
27
|
+
} & FlexProps;
|
|
28
|
+
/**
|
|
29
|
+
* Flexbox Grid component
|
|
30
|
+
*/
|
|
31
|
+
declare const Grid: React.ForwardRefExoticComponent<{
|
|
32
|
+
/**
|
|
33
|
+
* Aligns the grid items within the container to the edges.
|
|
34
|
+
* Essentially removing the spacing around the container
|
|
35
|
+
*/
|
|
36
|
+
alignEdges?: boolean | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Define the spacing between elements using the spacing values defined
|
|
39
|
+
* in the design system. Default is the theme horizontal page spacing defined
|
|
40
|
+
* in the app's theme.
|
|
41
|
+
*/
|
|
42
|
+
spacing?: Spacing | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* Indicates the number of columns
|
|
45
|
+
*/
|
|
46
|
+
columns?: Columns | undefined;
|
|
47
|
+
} & FlexProps & React.RefAttributes<unknown>>;
|
|
48
|
+
export default Grid;
|