@spothero/ui 25.4.0 → 25.6.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.
Files changed (60) hide show
  1. package/dist/components/Accordion/styles/index.d.ts +2 -2
  2. package/dist/components/Badge/styles/index.d.ts +78 -0
  3. package/dist/components/Button/Button.styles.d.ts +601 -0
  4. package/dist/components/Card/Card.d.ts +4 -0
  5. package/dist/components/Checkbox/styles/index.d.ts +200 -0
  6. package/dist/components/Container/Container.d.ts +4 -0
  7. package/dist/components/Container/Container.styles.d.ts +10 -0
  8. package/dist/components/Divider/Divider.d.ts +11 -0
  9. package/dist/components/Divider/Divider.styles.d.ts +40 -0
  10. package/dist/components/Drawer/styles/index.d.ts +149 -0
  11. package/dist/components/FormControl/FormControl.d.ts +13 -0
  12. package/dist/components/Grid/GridItem.styles.d.ts +4 -0
  13. package/dist/components/Heading/Heading.styles.d.ts +66 -0
  14. package/dist/components/Icon/Icon.d.ts +1 -1
  15. package/dist/components/Input/styles/index.d.ts +217 -0
  16. package/dist/components/Link/Link.styles.d.ts +102 -0
  17. package/dist/components/List/styles/index.d.ts +32 -0
  18. package/dist/components/List/styles/item.styles.d.ts +4 -0
  19. package/dist/components/Menu/Menu.styles.d.ts +258 -0
  20. package/dist/components/Modal/styles/body.d.ts +30 -0
  21. package/dist/components/Modal/styles/closeButton.d.ts +18 -0
  22. package/dist/components/Modal/styles/dialog.d.ts +16 -0
  23. package/dist/components/Modal/styles/dialogContainer.d.ts +12 -0
  24. package/dist/components/Modal/styles/footer.d.ts +6 -0
  25. package/dist/components/Modal/styles/header.d.ts +10 -0
  26. package/dist/components/Modal/styles/index.d.ts +227 -0
  27. package/dist/components/Modal/styles/overlay.d.ts +5 -0
  28. package/dist/components/Popover/styles/index.d.ts +100 -0
  29. package/dist/components/Popover/styles/popover-body.d.ts +4 -0
  30. package/dist/components/Popover/styles/popover-content.d.ts +20 -0
  31. package/dist/components/Popover/styles/popover-header.d.ts +5 -0
  32. package/dist/components/Popover/styles/popper.d.ts +4 -0
  33. package/dist/components/Progress/Progress.styles.d.ts +75 -0
  34. package/dist/components/Radio/styles/index.d.ts +292 -0
  35. package/dist/components/RefreshedInput/Button/styles/index.d.ts +413 -0
  36. package/dist/components/RefreshedInput/Input/styles/index.d.ts +260 -0
  37. package/dist/components/Select/styles/index.d.ts +2 -2
  38. package/dist/components/Skeleton/Skeleton.styles.d.ts +26 -0
  39. package/dist/components/Spinner/Spinner.d.ts +12 -0
  40. package/dist/components/Spinner/Spinner.styles.d.ts +144 -0
  41. package/dist/components/Switch/styles/index.d.ts +116 -0
  42. package/dist/components/Table/Table.styles.d.ts +69 -0
  43. package/dist/components/Tabs/styles/index.d.ts +308 -0
  44. package/dist/components/Text/Text.styles.d.ts +30 -0
  45. package/dist/components/styles.d.ts +26 -0
  46. package/dist/index.cjs.js +1992 -693
  47. package/dist/index.cjs.js.map +1 -1
  48. package/dist/index.d.ts +251 -0
  49. package/dist/index.esm.js +1990 -693
  50. package/dist/index.esm.js.map +1 -1
  51. package/dist/theme/base/breakpoints.d.ts +6 -6
  52. package/dist/theme/base/colors.d.ts +106 -116
  53. package/dist/theme/base/index.d.ts +7 -7
  54. package/dist/theme/base/notifications.d.ts +80 -104
  55. package/dist/theme/base/sizes.d.ts +41 -41
  56. package/dist/theme/base/typography.d.ts +22 -22
  57. package/dist/theme/base/zindices.d.ts +15 -15
  58. package/dist/theme/global.d.ts +21 -0
  59. package/dist/theme/index.d.ts +2 -0
  60. package/package.json +13 -11
@@ -0,0 +1,292 @@
1
+ export namespace baseStyle {
2
+ namespace container {
3
+ let alignItems: string;
4
+ }
5
+ namespace control {
6
+ let borderRadius: string;
7
+ let borderWidth: string;
8
+ let borderColor: string;
9
+ let backgroundColor: string;
10
+ let color: string;
11
+ let minWidth: number;
12
+ let minHeight: number;
13
+ let marginTop: number;
14
+ let transition: string;
15
+ namespace _before {
16
+ export let content: string;
17
+ export let display: string;
18
+ export let position: string;
19
+ export let width: string;
20
+ export let height: string;
21
+ export let opacity: string;
22
+ let borderRadius_1: string;
23
+ export { borderRadius_1 as borderRadius };
24
+ export let background: string;
25
+ let transition_1: string;
26
+ export { transition_1 as transition };
27
+ export let filter: string;
28
+ }
29
+ namespace _checked {
30
+ let borderColor_1: string;
31
+ export { borderColor_1 as borderColor };
32
+ let color_1: string;
33
+ export { color_1 as color };
34
+ let backgroundColor_1: string;
35
+ export { backgroundColor_1 as backgroundColor };
36
+ export namespace _before_1 {
37
+ let width_1: number;
38
+ export { width_1 as width };
39
+ let height_1: number;
40
+ export { height_1 as height };
41
+ let opacity_1: string;
42
+ export { opacity_1 as opacity };
43
+ }
44
+ export { _before_1 as _before };
45
+ }
46
+ namespace _focus {
47
+ let boxShadow: string;
48
+ }
49
+ namespace _disabled {
50
+ let borderColor_2: string;
51
+ export { borderColor_2 as borderColor };
52
+ export namespace _checked_1 {
53
+ let backgroundColor_2: string;
54
+ export { backgroundColor_2 as backgroundColor };
55
+ }
56
+ export { _checked_1 as _checked };
57
+ }
58
+ }
59
+ namespace label {
60
+ export let fontSize: string;
61
+ let color_2: string;
62
+ export { color_2 as color };
63
+ export let marginLeft: number;
64
+ export namespace _disabled_1 {
65
+ let color_3: string;
66
+ export { color_3 as color };
67
+ }
68
+ export { _disabled_1 as _disabled };
69
+ }
70
+ }
71
+ declare const _default: {
72
+ baseStyle?: ((props: import("@chakra-ui/react").StyleFunctionProps) => {
73
+ label: {
74
+ userSelect: string;
75
+ _disabled: {
76
+ opacity: number;
77
+ };
78
+ } | undefined;
79
+ container: {
80
+ _disabled: {
81
+ cursor: string;
82
+ };
83
+ } | undefined;
84
+ control: {
85
+ borderRadius: string;
86
+ _checked: {
87
+ _before: {
88
+ content: string;
89
+ display: string;
90
+ pos: string;
91
+ w: string;
92
+ h: string;
93
+ borderRadius: string;
94
+ bg: string;
95
+ };
96
+ bg?: string | undefined;
97
+ borderColor?: string | undefined;
98
+ color?: string | undefined;
99
+ _hover?: {
100
+ bg: string;
101
+ borderColor: string;
102
+ } | undefined;
103
+ _disabled?: {
104
+ borderColor: string;
105
+ bg: string;
106
+ color: string;
107
+ } | undefined;
108
+ };
109
+ w?: string | undefined;
110
+ h?: string | undefined;
111
+ transitionProperty?: string | undefined;
112
+ transitionDuration?: string | undefined;
113
+ border?: string | undefined;
114
+ borderColor?: string | undefined;
115
+ color?: string | undefined;
116
+ _indeterminate?: {
117
+ bg: string;
118
+ borderColor: string;
119
+ color: string;
120
+ } | undefined;
121
+ _disabled?: {
122
+ bg: string;
123
+ borderColor: string;
124
+ } | undefined;
125
+ _focusVisible?: {
126
+ boxShadow: string;
127
+ } | undefined;
128
+ _invalid?: {
129
+ borderColor: string;
130
+ } | undefined;
131
+ };
132
+ }) | undefined;
133
+ sizes?: {
134
+ md: {
135
+ control: {
136
+ w: string;
137
+ h: string;
138
+ };
139
+ label: {
140
+ fontSize: string;
141
+ };
142
+ };
143
+ lg: {
144
+ control: {
145
+ w: string;
146
+ h: string;
147
+ };
148
+ label: {
149
+ fontSize: string;
150
+ };
151
+ };
152
+ sm: {
153
+ control: {
154
+ width: string;
155
+ height: string;
156
+ };
157
+ label: {
158
+ fontSize: string;
159
+ };
160
+ };
161
+ } | undefined;
162
+ variants?: {
163
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
164
+ keys: ("container" | "label" | "control")[];
165
+ }>;
166
+ } | undefined;
167
+ defaultProps?: {
168
+ size?: "md" | "sm" | "lg" | undefined;
169
+ variant?: string | number | undefined;
170
+ colorScheme?: string | undefined;
171
+ } | undefined;
172
+ parts: ("container" | "label" | "control")[];
173
+ } & {
174
+ parts: string[];
175
+ baseStyle: {
176
+ container: {
177
+ alignItems: string;
178
+ };
179
+ control: {
180
+ borderRadius: string;
181
+ borderWidth: string;
182
+ borderColor: string;
183
+ backgroundColor: string;
184
+ color: string;
185
+ minWidth: number;
186
+ minHeight: number;
187
+ marginTop: number;
188
+ transition: string;
189
+ _before: {
190
+ content: string;
191
+ display: string;
192
+ position: string;
193
+ width: string;
194
+ height: string;
195
+ opacity: string;
196
+ borderRadius: string;
197
+ background: string;
198
+ transition: string;
199
+ filter: string;
200
+ };
201
+ _checked: {
202
+ borderColor: string;
203
+ color: string;
204
+ backgroundColor: string;
205
+ _before: {
206
+ width: number;
207
+ height: number;
208
+ opacity: string;
209
+ };
210
+ };
211
+ _focus: {
212
+ boxShadow: string;
213
+ };
214
+ _disabled: {
215
+ borderColor: string;
216
+ _checked: {
217
+ backgroundColor: string;
218
+ };
219
+ };
220
+ };
221
+ label: {
222
+ fontSize: string;
223
+ color: string;
224
+ marginLeft: number;
225
+ _disabled: {
226
+ color: string;
227
+ };
228
+ };
229
+ };
230
+ sizes: {
231
+ sm: {
232
+ control: {
233
+ minWidth: number;
234
+ minHeight: number;
235
+ _checked: {
236
+ _before: {
237
+ width: number;
238
+ height: number;
239
+ };
240
+ };
241
+ };
242
+ };
243
+ md: {
244
+ control: {
245
+ minWidth: number;
246
+ minHeight: number;
247
+ _checked: {
248
+ _before: {
249
+ width: number;
250
+ height: number;
251
+ };
252
+ };
253
+ };
254
+ label: {
255
+ fontSize: string;
256
+ };
257
+ };
258
+ lg: {
259
+ control: {
260
+ minWidth: number;
261
+ minHeight: number;
262
+ _checked: {
263
+ _before: {
264
+ width: number;
265
+ height: number;
266
+ };
267
+ };
268
+ };
269
+ label: {
270
+ fontSize: string;
271
+ };
272
+ };
273
+ };
274
+ defaultProps: {
275
+ size: {
276
+ control: {
277
+ minWidth: number;
278
+ minHeight: number;
279
+ _checked: {
280
+ _before: {
281
+ width: number;
282
+ height: number;
283
+ };
284
+ };
285
+ };
286
+ label: {
287
+ fontSize: string;
288
+ };
289
+ };
290
+ };
291
+ };
292
+ export default _default;
@@ -0,0 +1,413 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ lineHeight: string;
4
+ borderRadius: string;
5
+ fontWeight: string;
6
+ transitionProperty: string;
7
+ transitionDuration: string;
8
+ _focusVisible: {
9
+ boxShadow: string;
10
+ };
11
+ _disabled: {
12
+ opacity: number;
13
+ cursor: string;
14
+ boxShadow: string;
15
+ };
16
+ _hover: {
17
+ _disabled: {
18
+ bg: string;
19
+ };
20
+ };
21
+ } | undefined;
22
+ sizes?: {
23
+ lg: {
24
+ h: string;
25
+ minW: string;
26
+ fontSize: string;
27
+ px: string;
28
+ };
29
+ md: {
30
+ h: string;
31
+ minW: string;
32
+ fontSize: string;
33
+ px: string;
34
+ };
35
+ sm: {
36
+ h: string;
37
+ minW: string;
38
+ fontSize: string;
39
+ px: string;
40
+ };
41
+ xs: {
42
+ h: string;
43
+ minW: string;
44
+ fontSize: string;
45
+ px: string;
46
+ };
47
+ } | undefined;
48
+ variants?: {
49
+ ghost: (props: import("@chakra-ui/react").StyleFunctionProps) => {
50
+ color: string;
51
+ _hover: {
52
+ bg: string;
53
+ };
54
+ _active: {
55
+ bg: string;
56
+ };
57
+ bg?: undefined;
58
+ } | {
59
+ color: string;
60
+ bg: string;
61
+ _hover: {
62
+ bg: string;
63
+ };
64
+ _active: {
65
+ bg: string;
66
+ };
67
+ };
68
+ outline: (props: import("@chakra-ui/react").StyleFunctionProps) => {
69
+ color: string;
70
+ _hover: {
71
+ bg: string;
72
+ };
73
+ _active: {
74
+ bg: string;
75
+ };
76
+ bg?: undefined;
77
+ border: string;
78
+ borderColor: string;
79
+ ".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": {
80
+ marginEnd: string;
81
+ };
82
+ ".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": {
83
+ marginBottom: string;
84
+ };
85
+ } | {
86
+ color: string;
87
+ bg: string;
88
+ _hover: {
89
+ bg: string;
90
+ };
91
+ _active: {
92
+ bg: string;
93
+ };
94
+ border: string;
95
+ borderColor: string;
96
+ ".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)": {
97
+ marginEnd: string;
98
+ };
99
+ ".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)": {
100
+ marginBottom: string;
101
+ };
102
+ };
103
+ solid: (props: import("@chakra-ui/react").StyleFunctionProps) => {
104
+ bg: string;
105
+ color: string;
106
+ _hover: {
107
+ bg: string;
108
+ _disabled: {
109
+ bg: string;
110
+ };
111
+ };
112
+ _active: {
113
+ bg: string;
114
+ };
115
+ };
116
+ link: (props: import("@chakra-ui/react").StyleFunctionProps) => {
117
+ padding: number;
118
+ height: string;
119
+ lineHeight: string;
120
+ verticalAlign: string;
121
+ color: string;
122
+ _hover: {
123
+ textDecoration: string;
124
+ _disabled: {
125
+ textDecoration: string;
126
+ };
127
+ };
128
+ _active: {
129
+ color: string;
130
+ };
131
+ };
132
+ unstyled: {
133
+ bg: string;
134
+ color: string;
135
+ display: string;
136
+ lineHeight: string;
137
+ m: string;
138
+ p: string;
139
+ };
140
+ } | undefined;
141
+ defaultProps?: {
142
+ size?: "md" | "xs" | "sm" | "lg" | undefined;
143
+ variant?: "link" | "outline" | "solid" | "ghost" | "unstyled" | undefined;
144
+ colorScheme?: string | undefined;
145
+ } | undefined;
146
+ } & {
147
+ variants: {
148
+ primary: {
149
+ bg: string;
150
+ borderColor: string;
151
+ color: string;
152
+ _hover: {
153
+ _disabled: {
154
+ bg: string;
155
+ borderColor: string;
156
+ color: string;
157
+ };
158
+ bg: string;
159
+ borderColor: string;
160
+ color: string;
161
+ };
162
+ _active: {
163
+ bg: string;
164
+ borderColor: string;
165
+ color: string;
166
+ };
167
+ };
168
+ primaryOnDark: {
169
+ bg: string;
170
+ borderColor: string;
171
+ color: string;
172
+ _hover: {
173
+ _disabled: {
174
+ bg: string;
175
+ borderColor: string;
176
+ color: string;
177
+ };
178
+ bg: string;
179
+ borderColor: string;
180
+ color: string;
181
+ };
182
+ _focus: {
183
+ boxShadow: string;
184
+ };
185
+ };
186
+ secondary: {
187
+ bg: string;
188
+ borderColor: string;
189
+ color: string;
190
+ _hover: {
191
+ _disabled: {
192
+ bg: string;
193
+ borderColor: string;
194
+ color: string;
195
+ };
196
+ bg: string;
197
+ color: string;
198
+ };
199
+ _active: {
200
+ bg: string;
201
+ };
202
+ };
203
+ secondaryOnDark: {
204
+ bg: string;
205
+ borderColor: string;
206
+ color: string;
207
+ _hover: {
208
+ _disabled: {
209
+ bg: string;
210
+ borderColor: string;
211
+ color: string;
212
+ };
213
+ bg: string;
214
+ color: string;
215
+ };
216
+ _focus: {
217
+ boxShadow: string;
218
+ };
219
+ };
220
+ tertiary: {
221
+ bg: string;
222
+ borderWidth: string;
223
+ borderRadius: string;
224
+ color: string;
225
+ h: string;
226
+ m: string;
227
+ minW: string;
228
+ p: string;
229
+ lineHeight: number;
230
+ _disabled: {
231
+ bg: string;
232
+ color: string;
233
+ };
234
+ _hover: {
235
+ _disabled: {
236
+ color: string;
237
+ };
238
+ };
239
+ _active: {
240
+ _disabled: {
241
+ color: string;
242
+ };
243
+ };
244
+ };
245
+ tertiaryOnDark: {
246
+ bg: string;
247
+ borderRadius: string;
248
+ borderWidth: string;
249
+ color: string;
250
+ h: string;
251
+ m: string;
252
+ minW: string;
253
+ p: string;
254
+ _disabled: {
255
+ bg: string;
256
+ color: string;
257
+ opacity: number;
258
+ };
259
+ _hover: {
260
+ color: string;
261
+ opacity: number;
262
+ _disabled: {
263
+ opacity: number;
264
+ };
265
+ };
266
+ };
267
+ black: {
268
+ bg: string;
269
+ borderColor: string;
270
+ color: string;
271
+ py: number;
272
+ _hover: {
273
+ _disabled: {
274
+ bg: string;
275
+ borderColor: string;
276
+ color: string;
277
+ };
278
+ bg: string;
279
+ borderColor: string;
280
+ color: string;
281
+ };
282
+ _active: {
283
+ bg: string;
284
+ borderColor: string;
285
+ color: string;
286
+ };
287
+ };
288
+ blackOnDark: {
289
+ bg: string;
290
+ borderColor: string;
291
+ color: string;
292
+ py: number;
293
+ _hover: {
294
+ _disabled: {
295
+ bg: string;
296
+ borderColor: string;
297
+ color: string;
298
+ };
299
+ bg: string;
300
+ borderColor: string;
301
+ color: string;
302
+ };
303
+ _active: {
304
+ bg: string;
305
+ borderColor: string;
306
+ color: string;
307
+ };
308
+ _focus: {
309
+ boxShadow: string;
310
+ };
311
+ };
312
+ destructive: {
313
+ bg: string;
314
+ borderColor: string;
315
+ color: string;
316
+ _hover: {
317
+ _disabled: {
318
+ bg: string;
319
+ borderColor: string;
320
+ color: string;
321
+ };
322
+ borderColor: string;
323
+ color: string;
324
+ };
325
+ };
326
+ destructiveOnDark: {
327
+ bg: string;
328
+ borderColor: string;
329
+ color: string;
330
+ _hover: {
331
+ _disabled: {
332
+ bg: string;
333
+ borderColor: string;
334
+ color: string;
335
+ };
336
+ borderColor: string;
337
+ color: string;
338
+ };
339
+ };
340
+ };
341
+ baseStyle: {
342
+ px: number;
343
+ py: number;
344
+ fontSize: string;
345
+ fontFamily: string;
346
+ lineHeight: number;
347
+ fontWeight: string;
348
+ borderWidth: string;
349
+ borderStyle: string;
350
+ borderRadius: string;
351
+ textTransform: string;
352
+ transition: string;
353
+ _disabled: {
354
+ cursor: string;
355
+ opacity: number;
356
+ bg: string;
357
+ borderColor: string;
358
+ color: string;
359
+ };
360
+ '& svg': {
361
+ display: string;
362
+ };
363
+ };
364
+ defaultProps: {
365
+ size: null;
366
+ };
367
+ } & {
368
+ variants: {
369
+ refreshed: {
370
+ lineHeight: string;
371
+ width: string;
372
+ paddingTop: number;
373
+ paddingBottom: number;
374
+ borderRadius: string;
375
+ justifyContent: string;
376
+ minHeight: string;
377
+ border: string;
378
+ borderColor: string;
379
+ fontSize: string;
380
+ paddingLeft: number;
381
+ paddingRight: number;
382
+ bg: string;
383
+ fontWeight: string;
384
+ boxShadow: string;
385
+ _placeholder: {
386
+ color: string;
387
+ fontWeight: string;
388
+ };
389
+ _focus: {
390
+ borderColor: string;
391
+ };
392
+ _hover: {
393
+ borderColor: string;
394
+ };
395
+ _readOnly: {
396
+ boxShadow: string;
397
+ userSelect: string;
398
+ };
399
+ _disabled: {
400
+ backgroundColor: string;
401
+ opacity: number;
402
+ cursor: string;
403
+ };
404
+ _invalid: {
405
+ borderColor: string;
406
+ _focus: {
407
+ borderColor: string;
408
+ };
409
+ };
410
+ };
411
+ };
412
+ };
413
+ export default _default;