@spothero/ui 25.6.0 → 25.12.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/components/Accordion/styles/index.d.ts +13 -89
- package/dist/components/Alert/Alert.d.ts +33 -0
- package/dist/components/Badge/Badge.d.ts +1 -0
- package/dist/components/Badge/styles/index.d.ts +11 -75
- package/dist/components/Button/Button.d.ts +27 -0
- package/dist/components/Button/Button.styles.d.ts +174 -553
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/styles/index.d.ts +4 -200
- package/dist/components/Divider/Divider.styles.d.ts +5 -31
- package/dist/components/Drawer/Drawer.d.ts +10 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/styles/index.d.ts +4 -149
- package/dist/components/Grid/Grid.d.ts +10 -0
- package/dist/components/Grid/Grid.styles.d.ts +10 -0
- package/dist/components/Grid/GridItem.d.ts +8 -0
- package/dist/components/Grid/GridItem.styles.d.ts +3 -3
- package/dist/components/Heading/Heading.d.ts +9 -0
- package/dist/components/Heading/Heading.styles.d.ts +12 -65
- package/dist/components/Image/Image.d.ts +21 -0
- package/dist/components/Input/Input.d.ts +12 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/styles/index.d.ts +3 -217
- package/dist/components/Link/Link.d.ts +1 -0
- package/dist/components/Link/Link.styles.d.ts +11 -84
- package/dist/components/List/List.d.ts +25 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/List/styles/index.d.ts +4 -32
- package/dist/components/List/styles/item.styles.d.ts +3 -3
- package/dist/components/Loader/Loader.d.ts +13 -0
- package/dist/components/Modal/styles/footer.d.ts +6 -0
- package/dist/components/Modal/styles/index.d.ts +13 -0
- package/dist/components/Progress/Progress.d.ts +8 -0
- package/dist/components/Progress/Progress.styles.d.ts +4 -75
- package/dist/components/Radio/Radio.d.ts +9 -0
- package/dist/components/Radio/RadioGroup.d.ts +14 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/styles/index.d.ts +43 -277
- package/dist/components/RefreshedInput/Button/styles/index.d.ts +1 -263
- package/dist/components/RefreshedInput/Input/styles/index.d.ts +2 -254
- package/dist/components/RefreshedInput/Select/styles/index.d.ts +2 -71
- package/dist/components/Select/Select.d.ts +11 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/styles/index.d.ts +28 -218
- package/dist/components/Skeleton/Skeleton.styles.d.ts +4 -26
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +21 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/styles/index.d.ts +4 -116
- package/dist/components/Table/Table.styles.d.ts +1 -4
- package/dist/components/Text/Text.d.ts +11 -0
- package/dist/components/Text/Text.styles.d.ts +29 -30
- package/dist/components/Text/combineAsWithVariant.d.ts +101 -0
- package/dist/components/Text/options.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +12 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Textarea/styles/index.d.ts +3 -0
- package/dist/index.cjs.js +2659 -3037
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +364 -59
- package/dist/index.esm.js +3088 -3467
- package/dist/index.esm.js.map +1 -1
- package/dist/theme/base/animation.d.ts +217 -0
- package/dist/theme/base/colors.d.ts +29 -13
- package/dist/theme/base/index.d.ts +1 -0
- package/dist/theme/base/notifications.d.ts +3 -3
- package/dist/types/forwardRefComponent.d.ts +2 -0
- package/package.json +8 -7
|
@@ -1,601 +1,222 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
export { borderColor_2 as borderColor };
|
|
33
|
-
let color_4: string;
|
|
34
|
-
export { color_4 as color };
|
|
35
|
-
export namespace _hover_1 {
|
|
36
|
-
export { hoverDarkColor as bg };
|
|
37
|
-
export { hoverDarkColor as borderColor };
|
|
38
|
-
let color_5: string;
|
|
39
|
-
export { color_5 as color };
|
|
40
|
-
}
|
|
41
|
-
export { _hover_1 as _hover };
|
|
42
|
-
export namespace _focus {
|
|
43
|
-
let boxShadow: string;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
namespace secondary {
|
|
47
|
-
let bg_3: string;
|
|
48
|
-
export { bg_3 as bg };
|
|
49
|
-
let borderColor_3: string;
|
|
50
|
-
export { borderColor_3 as borderColor };
|
|
51
|
-
let color_6: string;
|
|
52
|
-
export { color_6 as color };
|
|
53
|
-
export namespace _hover_2 {
|
|
54
|
-
export { hoverSecondaryColor as bg };
|
|
55
|
-
let color_7: string;
|
|
56
|
-
export { color_7 as color };
|
|
57
|
-
}
|
|
58
|
-
export { _hover_2 as _hover };
|
|
59
|
-
export namespace _active_1 {
|
|
60
|
-
export { activeSecondaryColor as bg };
|
|
61
|
-
}
|
|
62
|
-
export { _active_1 as _active };
|
|
63
|
-
}
|
|
64
|
-
namespace secondaryOnDark {
|
|
65
|
-
let bg_4: string;
|
|
66
|
-
export { bg_4 as bg };
|
|
67
|
-
let borderColor_4: string;
|
|
68
|
-
export { borderColor_4 as borderColor };
|
|
69
|
-
let color_8: string;
|
|
70
|
-
export { color_8 as color };
|
|
71
|
-
export namespace _hover_3 {
|
|
72
|
-
let bg_5: string;
|
|
73
|
-
export { bg_5 as bg };
|
|
74
|
-
let color_9: string;
|
|
75
|
-
export { color_9 as color };
|
|
76
|
-
}
|
|
77
|
-
export { _hover_3 as _hover };
|
|
78
|
-
export namespace _focus_1 {
|
|
79
|
-
let boxShadow_1: string;
|
|
80
|
-
export { boxShadow_1 as boxShadow };
|
|
81
|
-
}
|
|
82
|
-
export { _focus_1 as _focus };
|
|
83
|
-
}
|
|
84
|
-
namespace tertiary {
|
|
85
|
-
let bg_6: string;
|
|
86
|
-
export { bg_6 as bg };
|
|
87
|
-
export let borderWidth: string;
|
|
88
|
-
export let borderRadius: string;
|
|
89
|
-
let color_10: string;
|
|
90
|
-
export { color_10 as color };
|
|
91
|
-
export let h: string;
|
|
92
|
-
export let m: string;
|
|
93
|
-
export let minW: string;
|
|
94
|
-
export let p: string;
|
|
95
|
-
export let lineHeight: number;
|
|
96
|
-
export namespace _disabled_1 {
|
|
97
|
-
let bg_7: string;
|
|
98
|
-
export { bg_7 as bg };
|
|
99
|
-
let color_11: string;
|
|
100
|
-
export { color_11 as color };
|
|
101
|
-
}
|
|
102
|
-
export { _disabled_1 as _disabled };
|
|
103
|
-
export namespace _hover_4 {
|
|
104
|
-
export namespace _disabled_2 {
|
|
105
|
-
let color_12: string;
|
|
106
|
-
export { color_12 as color };
|
|
107
|
-
}
|
|
108
|
-
export { _disabled_2 as _disabled };
|
|
109
|
-
}
|
|
110
|
-
export { _hover_4 as _hover };
|
|
111
|
-
export namespace _active_2 {
|
|
112
|
-
export namespace _disabled_3 {
|
|
113
|
-
let color_13: string;
|
|
114
|
-
export { color_13 as color };
|
|
115
|
-
}
|
|
116
|
-
export { _disabled_3 as _disabled };
|
|
117
|
-
}
|
|
118
|
-
export { _active_2 as _active };
|
|
119
|
-
}
|
|
120
|
-
namespace tertiaryOnDark {
|
|
121
|
-
let bg_8: string;
|
|
122
|
-
export { bg_8 as bg };
|
|
123
|
-
let borderRadius_1: string;
|
|
124
|
-
export { borderRadius_1 as borderRadius };
|
|
125
|
-
let borderWidth_1: string;
|
|
126
|
-
export { borderWidth_1 as borderWidth };
|
|
127
|
-
let color_14: string;
|
|
128
|
-
export { color_14 as color };
|
|
129
|
-
let h_1: string;
|
|
130
|
-
export { h_1 as h };
|
|
131
|
-
let m_1: string;
|
|
132
|
-
export { m_1 as m };
|
|
133
|
-
let minW_1: string;
|
|
134
|
-
export { minW_1 as minW };
|
|
135
|
-
let p_1: string;
|
|
136
|
-
export { p_1 as p };
|
|
137
|
-
export namespace _disabled_4 {
|
|
138
|
-
let bg_9: string;
|
|
139
|
-
export { bg_9 as bg };
|
|
140
|
-
let color_15: string;
|
|
141
|
-
export { color_15 as color };
|
|
142
|
-
export let opacity: number;
|
|
143
|
-
}
|
|
144
|
-
export { _disabled_4 as _disabled };
|
|
145
|
-
export namespace _hover_5 {
|
|
146
|
-
let color_16: string;
|
|
147
|
-
export { color_16 as color };
|
|
148
|
-
let opacity_1: number;
|
|
149
|
-
export { opacity_1 as opacity };
|
|
150
|
-
export namespace _disabled_5 {
|
|
151
|
-
let opacity_2: number;
|
|
152
|
-
export { opacity_2 as opacity };
|
|
153
|
-
}
|
|
154
|
-
export { _disabled_5 as _disabled };
|
|
155
|
-
}
|
|
156
|
-
export { _hover_5 as _hover };
|
|
157
|
-
}
|
|
158
|
-
namespace black {
|
|
159
|
-
let bg_10: string;
|
|
160
|
-
export { bg_10 as bg };
|
|
161
|
-
let borderColor_5: string;
|
|
162
|
-
export { borderColor_5 as borderColor };
|
|
163
|
-
let color_17: string;
|
|
164
|
-
export { color_17 as color };
|
|
165
|
-
export let py: number;
|
|
166
|
-
export namespace _hover_6 {
|
|
167
|
-
export { hoverBlackColor as bg };
|
|
168
|
-
export { hoverBlackColor as borderColor };
|
|
169
|
-
let color_18: string;
|
|
170
|
-
export { color_18 as color };
|
|
171
|
-
}
|
|
172
|
-
export { _hover_6 as _hover };
|
|
173
|
-
export namespace _active_3 {
|
|
174
|
-
export { activeBlackColor as bg };
|
|
175
|
-
export { activeBlackColor as borderColor };
|
|
176
|
-
let color_19: string;
|
|
177
|
-
export { color_19 as color };
|
|
178
|
-
}
|
|
179
|
-
export { _active_3 as _active };
|
|
180
|
-
}
|
|
181
|
-
namespace blackOnDark {
|
|
182
|
-
let bg_11: string;
|
|
183
|
-
export { bg_11 as bg };
|
|
184
|
-
let borderColor_6: string;
|
|
185
|
-
export { borderColor_6 as borderColor };
|
|
186
|
-
let color_20: string;
|
|
187
|
-
export { color_20 as color };
|
|
188
|
-
let py_1: number;
|
|
189
|
-
export { py_1 as py };
|
|
190
|
-
export namespace _hover_7 {
|
|
191
|
-
export { hoverSecondaryColor as bg };
|
|
192
|
-
export { hoverSecondaryColor as borderColor };
|
|
193
|
-
let color_21: string;
|
|
194
|
-
export { color_21 as color };
|
|
195
|
-
}
|
|
196
|
-
export { _hover_7 as _hover };
|
|
197
|
-
export namespace _active_4 {
|
|
198
|
-
export { activeSecondaryColor as bg };
|
|
199
|
-
export { activeSecondaryColor as borderColor };
|
|
200
|
-
let color_22: string;
|
|
201
|
-
export { color_22 as color };
|
|
202
|
-
}
|
|
203
|
-
export { _active_4 as _active };
|
|
204
|
-
export namespace _focus_2 {
|
|
205
|
-
let boxShadow_2: string;
|
|
206
|
-
export { boxShadow_2 as boxShadow };
|
|
207
|
-
}
|
|
208
|
-
export { _focus_2 as _focus };
|
|
209
|
-
}
|
|
210
|
-
namespace destructive {
|
|
211
|
-
let bg_12: string;
|
|
212
|
-
export { bg_12 as bg };
|
|
213
|
-
let borderColor_7: string;
|
|
214
|
-
export { borderColor_7 as borderColor };
|
|
215
|
-
let color_23: string;
|
|
216
|
-
export { color_23 as color };
|
|
217
|
-
export namespace _hover_8 {
|
|
218
|
-
let borderColor_8: string;
|
|
219
|
-
export { borderColor_8 as borderColor };
|
|
220
|
-
let color_24: string;
|
|
221
|
-
export { color_24 as color };
|
|
222
|
-
}
|
|
223
|
-
export { _hover_8 as _hover };
|
|
224
|
-
}
|
|
225
|
-
namespace destructiveOnDark { }
|
|
226
|
-
}
|
|
227
|
-
declare const _default: {
|
|
228
|
-
baseStyle?: {
|
|
229
|
-
lineHeight: string;
|
|
230
|
-
borderRadius: string;
|
|
231
|
-
fontWeight: string;
|
|
232
|
-
transitionProperty: string;
|
|
233
|
-
transitionDuration: string;
|
|
234
|
-
_focusVisible: {
|
|
235
|
-
boxShadow: string;
|
|
236
|
-
};
|
|
237
|
-
_disabled: {
|
|
238
|
-
opacity: number;
|
|
239
|
-
cursor: string;
|
|
240
|
-
boxShadow: string;
|
|
241
|
-
};
|
|
242
|
-
_hover: {
|
|
243
|
-
_disabled: {
|
|
244
|
-
bg: string;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
} | undefined;
|
|
248
|
-
sizes?: {
|
|
249
|
-
lg: {
|
|
250
|
-
h: string;
|
|
251
|
-
minW: string;
|
|
252
|
-
fontSize: string;
|
|
253
|
-
px: string;
|
|
254
|
-
};
|
|
255
|
-
md: {
|
|
256
|
-
h: string;
|
|
257
|
-
minW: string;
|
|
258
|
-
fontSize: string;
|
|
259
|
-
px: string;
|
|
260
|
-
};
|
|
261
|
-
sm: {
|
|
262
|
-
h: string;
|
|
263
|
-
minW: string;
|
|
264
|
-
fontSize: string;
|
|
265
|
-
px: string;
|
|
266
|
-
};
|
|
267
|
-
xs: {
|
|
268
|
-
h: string;
|
|
269
|
-
minW: string;
|
|
270
|
-
fontSize: string;
|
|
271
|
-
px: string;
|
|
272
|
-
};
|
|
273
|
-
} | undefined;
|
|
274
|
-
variants?: {
|
|
275
|
-
ghost: (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
276
|
-
color: string;
|
|
277
|
-
_hover: {
|
|
278
|
-
bg: string;
|
|
279
|
-
};
|
|
280
|
-
_active: {
|
|
281
|
-
bg: string;
|
|
282
|
-
};
|
|
283
|
-
bg?: undefined;
|
|
284
|
-
} | {
|
|
285
|
-
color: string;
|
|
286
|
-
bg: string;
|
|
287
|
-
_hover: {
|
|
288
|
-
bg: string;
|
|
289
|
-
};
|
|
290
|
-
_active: {
|
|
291
|
-
bg: string;
|
|
292
|
-
};
|
|
293
|
-
};
|
|
294
|
-
outline: (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
295
|
-
color: string;
|
|
296
|
-
_hover: {
|
|
297
|
-
bg: string;
|
|
298
|
-
};
|
|
299
|
-
_active: {
|
|
300
|
-
bg: string;
|
|
301
|
-
};
|
|
302
|
-
bg?: undefined;
|
|
303
|
-
border: string;
|
|
304
|
-
borderColor: string;
|
|
305
|
-
".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": {
|
|
306
|
-
marginEnd: string;
|
|
307
|
-
};
|
|
308
|
-
".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": {
|
|
309
|
-
marginBottom: string;
|
|
310
|
-
};
|
|
311
|
-
} | {
|
|
312
|
-
color: string;
|
|
313
|
-
bg: string;
|
|
314
|
-
_hover: {
|
|
315
|
-
bg: string;
|
|
316
|
-
};
|
|
317
|
-
_active: {
|
|
1
|
+
import { theme as chakraDefaultTheme, type ButtonProps as ChakraButtonProps } from '@chakra-ui/react';
|
|
2
|
+
export type ButtonHeight = ChakraButtonProps['height'] | 'md' | 'lg';
|
|
3
|
+
export declare const heightProps: (height?: ButtonHeight) => {};
|
|
4
|
+
/**
|
|
5
|
+
* Button Variants - Simplified Color System Using OKLCH
|
|
6
|
+
*
|
|
7
|
+
* This implementation uses OKLCH relative color syntax for perceptually uniform color adjustments.
|
|
8
|
+
* Benefits:
|
|
9
|
+
* - White-label theming: Only need ONE brand color (primary.brand)
|
|
10
|
+
* - No package dependencies (native CSS)
|
|
11
|
+
* - Text color NOT affected (unlike CSS filters)
|
|
12
|
+
* - Perceptually uniform adjustments (10% lighter looks consistent across all hues)
|
|
13
|
+
* - Can adjust lightness, chroma, or hue independently
|
|
14
|
+
* - Future-proof modern CSS standard
|
|
15
|
+
*
|
|
16
|
+
* OKLCH Syntax: oklch(from <color> <lightness> <chroma> <hue>)
|
|
17
|
+
* - Lightness adjustments: calc(l - 0.1) = 10% darker, calc(l + 0.1) = 10% lighter
|
|
18
|
+
* - Works with any color format (hex, rgb, etc.) - CSS converts automatically
|
|
19
|
+
*
|
|
20
|
+
* Browser Support: Chrome 111+, Safari 16.4+, Firefox 113+ (Mar-May 2023)
|
|
21
|
+
* Fallback: Older browsers use base color without hover effect degradation
|
|
22
|
+
*
|
|
23
|
+
* Note: Destructive variants still use semantic red for safety/UX consistency
|
|
24
|
+
*/
|
|
25
|
+
export declare const variants: {
|
|
26
|
+
readonly primary: {
|
|
27
|
+
readonly bg: "primary.brand";
|
|
28
|
+
readonly borderColor: "primary.brand";
|
|
29
|
+
readonly color: "text.brandText";
|
|
30
|
+
readonly _hover: {
|
|
31
|
+
readonly _disabled: {
|
|
318
32
|
bg: string;
|
|
319
|
-
|
|
320
|
-
border: string;
|
|
321
|
-
borderColor: string;
|
|
322
|
-
".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": {
|
|
323
|
-
marginEnd: string;
|
|
324
|
-
};
|
|
325
|
-
".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": {
|
|
326
|
-
marginBottom: string;
|
|
327
|
-
};
|
|
328
|
-
};
|
|
329
|
-
solid: (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
330
|
-
bg: string;
|
|
331
|
-
color: string;
|
|
332
|
-
_hover: {
|
|
333
|
-
bg: string;
|
|
334
|
-
_disabled: {
|
|
335
|
-
bg: string;
|
|
336
|
-
};
|
|
337
|
-
};
|
|
338
|
-
_active: {
|
|
339
|
-
bg: string;
|
|
340
|
-
};
|
|
341
|
-
};
|
|
342
|
-
link: (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
343
|
-
padding: number;
|
|
344
|
-
height: string;
|
|
345
|
-
lineHeight: string;
|
|
346
|
-
verticalAlign: string;
|
|
347
|
-
color: string;
|
|
348
|
-
_hover: {
|
|
349
|
-
textDecoration: string;
|
|
350
|
-
_disabled: {
|
|
351
|
-
textDecoration: string;
|
|
352
|
-
};
|
|
353
|
-
};
|
|
354
|
-
_active: {
|
|
33
|
+
borderColor: string;
|
|
355
34
|
color: string;
|
|
356
35
|
};
|
|
36
|
+
readonly bg: string;
|
|
37
|
+
readonly borderColor: string;
|
|
38
|
+
readonly color: "text.brandText";
|
|
357
39
|
};
|
|
358
|
-
|
|
359
|
-
bg: string;
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
lineHeight: string;
|
|
363
|
-
m: string;
|
|
364
|
-
p: string;
|
|
40
|
+
readonly _active: {
|
|
41
|
+
readonly bg: string;
|
|
42
|
+
readonly borderColor: string;
|
|
43
|
+
readonly color: "text.brandText";
|
|
365
44
|
};
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
variants: {
|
|
374
|
-
primary: {
|
|
375
|
-
bg: string;
|
|
376
|
-
borderColor: string;
|
|
377
|
-
color: string;
|
|
378
|
-
_hover: {
|
|
379
|
-
_disabled: {
|
|
380
|
-
bg: string;
|
|
381
|
-
borderColor: string;
|
|
382
|
-
color: string;
|
|
383
|
-
};
|
|
384
|
-
bg: string;
|
|
385
|
-
borderColor: string;
|
|
386
|
-
color: string;
|
|
387
|
-
};
|
|
388
|
-
_active: {
|
|
45
|
+
};
|
|
46
|
+
readonly primaryOnDark: {
|
|
47
|
+
readonly bg: "yellow.default";
|
|
48
|
+
readonly borderColor: "yellow.default";
|
|
49
|
+
readonly color: "black";
|
|
50
|
+
readonly _hover: {
|
|
51
|
+
readonly _disabled: {
|
|
389
52
|
bg: string;
|
|
390
53
|
borderColor: string;
|
|
391
54
|
color: string;
|
|
392
55
|
};
|
|
56
|
+
readonly bg: string;
|
|
57
|
+
readonly borderColor: string;
|
|
58
|
+
readonly color: "black";
|
|
393
59
|
};
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
60
|
+
readonly _focus: {
|
|
61
|
+
readonly boxShadow: "0 0 0 3px rgba(255, 255, 255, 0.7)";
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
readonly secondary: {
|
|
65
|
+
readonly bg: "white";
|
|
66
|
+
readonly borderColor: "gray.medium";
|
|
67
|
+
readonly color: "primary.default";
|
|
68
|
+
readonly _hover: {
|
|
69
|
+
readonly _disabled: {
|
|
404
70
|
bg: string;
|
|
405
71
|
borderColor: string;
|
|
406
72
|
color: string;
|
|
407
73
|
};
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
};
|
|
74
|
+
readonly bg: string;
|
|
75
|
+
readonly color: "primary.default";
|
|
411
76
|
};
|
|
412
|
-
|
|
413
|
-
bg: string;
|
|
414
|
-
borderColor: string;
|
|
415
|
-
color: string;
|
|
416
|
-
_hover: {
|
|
417
|
-
_disabled: {
|
|
418
|
-
bg: string;
|
|
419
|
-
borderColor: string;
|
|
420
|
-
color: string;
|
|
421
|
-
};
|
|
422
|
-
bg: string;
|
|
423
|
-
color: string;
|
|
424
|
-
};
|
|
425
|
-
_active: {
|
|
426
|
-
bg: string;
|
|
427
|
-
};
|
|
77
|
+
readonly _active: {
|
|
78
|
+
readonly bg: string;
|
|
428
79
|
};
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
borderColor: string;
|
|
437
|
-
color: string;
|
|
438
|
-
};
|
|
80
|
+
};
|
|
81
|
+
readonly secondaryOnDark: {
|
|
82
|
+
readonly bg: "none";
|
|
83
|
+
readonly borderColor: "white";
|
|
84
|
+
readonly color: "white";
|
|
85
|
+
readonly _hover: {
|
|
86
|
+
readonly _disabled: {
|
|
439
87
|
bg: string;
|
|
88
|
+
borderColor: string;
|
|
440
89
|
color: string;
|
|
441
90
|
};
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
};
|
|
91
|
+
readonly bg: "white";
|
|
92
|
+
readonly color: "primary.default";
|
|
445
93
|
};
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
borderWidth: string;
|
|
449
|
-
borderRadius: string;
|
|
450
|
-
color: string;
|
|
451
|
-
h: string;
|
|
452
|
-
m: string;
|
|
453
|
-
minW: string;
|
|
454
|
-
p: string;
|
|
455
|
-
lineHeight: number;
|
|
456
|
-
_disabled: {
|
|
457
|
-
bg: string;
|
|
458
|
-
color: string;
|
|
459
|
-
};
|
|
460
|
-
_hover: {
|
|
461
|
-
_disabled: {
|
|
462
|
-
color: string;
|
|
463
|
-
};
|
|
464
|
-
};
|
|
465
|
-
_active: {
|
|
466
|
-
_disabled: {
|
|
467
|
-
color: string;
|
|
468
|
-
};
|
|
469
|
-
};
|
|
94
|
+
readonly _focus: {
|
|
95
|
+
readonly boxShadow: "0 0 0 3px rgba(255, 255, 255, 0.7)";
|
|
470
96
|
};
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
97
|
+
};
|
|
98
|
+
readonly tertiary: {
|
|
99
|
+
readonly bg: "none";
|
|
100
|
+
readonly borderWidth: "none";
|
|
101
|
+
readonly borderRadius: "unset";
|
|
102
|
+
readonly color: "primary.default";
|
|
103
|
+
readonly h: "unset";
|
|
104
|
+
readonly m: "unset";
|
|
105
|
+
readonly minW: "unset";
|
|
106
|
+
readonly p: "unset";
|
|
107
|
+
readonly lineHeight: 1;
|
|
108
|
+
readonly _disabled: {
|
|
109
|
+
readonly bg: "none";
|
|
110
|
+
readonly color: "gray.dark";
|
|
111
|
+
};
|
|
112
|
+
readonly _hover: {
|
|
113
|
+
readonly _disabled: {
|
|
114
|
+
readonly color: "gray.dark";
|
|
115
|
+
};
|
|
116
|
+
};
|
|
117
|
+
readonly _active: {
|
|
118
|
+
readonly _disabled: {
|
|
119
|
+
readonly color: "gray.dark";
|
|
491
120
|
};
|
|
492
121
|
};
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
122
|
+
};
|
|
123
|
+
readonly tertiaryOnDark: {
|
|
124
|
+
readonly bg: "none";
|
|
125
|
+
readonly borderRadius: "unset";
|
|
126
|
+
readonly borderWidth: "none";
|
|
127
|
+
readonly color: "white";
|
|
128
|
+
readonly h: "unset";
|
|
129
|
+
readonly m: "unset";
|
|
130
|
+
readonly minW: "unset";
|
|
131
|
+
readonly p: "unset";
|
|
132
|
+
readonly _disabled: {
|
|
133
|
+
readonly bg: "none";
|
|
134
|
+
readonly color: "white";
|
|
135
|
+
readonly opacity: 0.4;
|
|
136
|
+
};
|
|
137
|
+
readonly _hover: {
|
|
138
|
+
readonly color: "white";
|
|
139
|
+
readonly opacity: 0.8;
|
|
140
|
+
readonly _disabled: {
|
|
141
|
+
readonly opacity: 0.4;
|
|
507
142
|
};
|
|
508
|
-
|
|
143
|
+
};
|
|
144
|
+
};
|
|
145
|
+
readonly black: {
|
|
146
|
+
readonly bg: "black";
|
|
147
|
+
readonly borderColor: "black";
|
|
148
|
+
readonly color: "white";
|
|
149
|
+
readonly py: 2;
|
|
150
|
+
readonly _hover: {
|
|
151
|
+
readonly _disabled: {
|
|
509
152
|
bg: string;
|
|
510
153
|
borderColor: string;
|
|
511
154
|
color: string;
|
|
512
155
|
};
|
|
156
|
+
readonly bg: string;
|
|
157
|
+
readonly borderColor: string;
|
|
158
|
+
readonly color: "white";
|
|
513
159
|
};
|
|
514
|
-
|
|
515
|
-
bg: string;
|
|
516
|
-
borderColor: string;
|
|
517
|
-
color:
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
160
|
+
readonly _active: {
|
|
161
|
+
readonly bg: string;
|
|
162
|
+
readonly borderColor: string;
|
|
163
|
+
readonly color: "white";
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
readonly blackOnDark: {
|
|
167
|
+
readonly bg: "white";
|
|
168
|
+
readonly borderColor: "white";
|
|
169
|
+
readonly color: "black";
|
|
170
|
+
readonly py: 2;
|
|
171
|
+
readonly _hover: {
|
|
172
|
+
readonly _disabled: {
|
|
525
173
|
bg: string;
|
|
526
174
|
borderColor: string;
|
|
527
175
|
color: string;
|
|
528
176
|
};
|
|
529
|
-
|
|
177
|
+
readonly bg: string;
|
|
178
|
+
readonly borderColor: string;
|
|
179
|
+
readonly color: "black";
|
|
180
|
+
};
|
|
181
|
+
readonly _active: {
|
|
182
|
+
readonly bg: string;
|
|
183
|
+
readonly borderColor: string;
|
|
184
|
+
readonly color: "black";
|
|
185
|
+
};
|
|
186
|
+
readonly _focus: {
|
|
187
|
+
readonly boxShadow: "0 0 0 3px rgba(255, 255, 255, 0.7)";
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
readonly destructive: {
|
|
191
|
+
readonly bg: string;
|
|
192
|
+
readonly borderColor: string;
|
|
193
|
+
readonly color: string;
|
|
194
|
+
readonly _hover: {
|
|
195
|
+
_disabled: {
|
|
530
196
|
bg: string;
|
|
531
197
|
borderColor: string;
|
|
532
198
|
color: string;
|
|
533
199
|
};
|
|
534
|
-
_focus: {
|
|
535
|
-
boxShadow: string;
|
|
536
|
-
};
|
|
537
|
-
};
|
|
538
|
-
destructive: {
|
|
539
|
-
bg: string;
|
|
540
200
|
borderColor: string;
|
|
541
201
|
color: string;
|
|
542
|
-
_hover: {
|
|
543
|
-
_disabled: {
|
|
544
|
-
bg: string;
|
|
545
|
-
borderColor: string;
|
|
546
|
-
color: string;
|
|
547
|
-
};
|
|
548
|
-
borderColor: string;
|
|
549
|
-
color: string;
|
|
550
|
-
};
|
|
551
202
|
};
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
color: string;
|
|
561
|
-
};
|
|
203
|
+
};
|
|
204
|
+
readonly destructiveOnDark: {
|
|
205
|
+
readonly bg: string;
|
|
206
|
+
readonly borderColor: string;
|
|
207
|
+
readonly color: string;
|
|
208
|
+
readonly _hover: {
|
|
209
|
+
_disabled: {
|
|
210
|
+
bg: string;
|
|
562
211
|
borderColor: string;
|
|
563
212
|
color: string;
|
|
564
213
|
};
|
|
565
|
-
};
|
|
566
|
-
};
|
|
567
|
-
baseStyle: {
|
|
568
|
-
px: number;
|
|
569
|
-
py: number;
|
|
570
|
-
fontSize: string;
|
|
571
|
-
fontFamily: string;
|
|
572
|
-
lineHeight: number;
|
|
573
|
-
fontWeight: string;
|
|
574
|
-
borderWidth: string;
|
|
575
|
-
borderStyle: string;
|
|
576
|
-
borderRadius: string;
|
|
577
|
-
textTransform: string;
|
|
578
|
-
transition: string;
|
|
579
|
-
_disabled: {
|
|
580
|
-
cursor: string;
|
|
581
|
-
opacity: number;
|
|
582
|
-
bg: string;
|
|
583
214
|
borderColor: string;
|
|
584
215
|
color: string;
|
|
585
216
|
};
|
|
586
|
-
'& svg': {
|
|
587
|
-
display: string;
|
|
588
|
-
};
|
|
589
|
-
};
|
|
590
|
-
defaultProps: {
|
|
591
|
-
size: null;
|
|
592
217
|
};
|
|
593
218
|
};
|
|
594
|
-
export
|
|
595
|
-
|
|
596
|
-
declare const
|
|
597
|
-
|
|
598
|
-
declare const hoverSecondaryColor: string;
|
|
599
|
-
declare const activeSecondaryColor: string;
|
|
600
|
-
declare const hoverBlackColor: string;
|
|
601
|
-
declare const activeBlackColor: string;
|
|
219
|
+
export type ButtonVariant = keyof typeof variants;
|
|
220
|
+
type ButtonStyle = NonNullable<typeof chakraDefaultTheme.components.Button>;
|
|
221
|
+
declare const buttonStyle: ButtonStyle;
|
|
222
|
+
export default buttonStyle;
|