@spothero/ui 25.5.1 → 25.11.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 (67) hide show
  1. package/dist/components/Accordion/styles/index.d.ts +13 -89
  2. package/dist/components/Alert/Alert.d.ts +33 -0
  3. package/dist/components/Badge/Badge.d.ts +1 -0
  4. package/dist/components/Badge/styles/index.d.ts +11 -75
  5. package/dist/components/Button/Button.d.ts +27 -0
  6. package/dist/components/Button/Button.styles.d.ts +174 -553
  7. package/dist/components/Button/index.d.ts +2 -0
  8. package/dist/components/Checkbox/Checkbox.d.ts +10 -0
  9. package/dist/components/Checkbox/index.d.ts +1 -0
  10. package/dist/components/Checkbox/styles/index.d.ts +4 -200
  11. package/dist/components/Divider/Divider.styles.d.ts +5 -31
  12. package/dist/components/Drawer/Drawer.d.ts +10 -0
  13. package/dist/components/Drawer/index.d.ts +2 -0
  14. package/dist/components/Drawer/styles/index.d.ts +4 -149
  15. package/dist/components/Grid/Grid.d.ts +10 -0
  16. package/dist/components/Grid/Grid.styles.d.ts +10 -0
  17. package/dist/components/Grid/GridItem.d.ts +8 -0
  18. package/dist/components/Grid/GridItem.styles.d.ts +3 -3
  19. package/dist/components/Heading/Heading.d.ts +9 -0
  20. package/dist/components/Heading/Heading.styles.d.ts +12 -65
  21. package/dist/components/Image/Image.d.ts +21 -0
  22. package/dist/components/Input/Input.d.ts +12 -0
  23. package/dist/components/Input/index.d.ts +1 -0
  24. package/dist/components/Input/styles/index.d.ts +3 -217
  25. package/dist/components/Link/Link.d.ts +1 -0
  26. package/dist/components/Link/Link.styles.d.ts +11 -84
  27. package/dist/components/List/List.d.ts +25 -0
  28. package/dist/components/List/index.d.ts +2 -0
  29. package/dist/components/List/styles/index.d.ts +4 -32
  30. package/dist/components/List/styles/item.styles.d.ts +3 -3
  31. package/dist/components/Loader/Loader.d.ts +13 -0
  32. package/dist/components/Progress/Progress.d.ts +8 -0
  33. package/dist/components/Progress/Progress.styles.d.ts +4 -75
  34. package/dist/components/Radio/Radio.d.ts +9 -0
  35. package/dist/components/Radio/RadioGroup.d.ts +14 -0
  36. package/dist/components/Radio/index.d.ts +2 -0
  37. package/dist/components/Radio/styles/index.d.ts +43 -277
  38. package/dist/components/RefreshedInput/Button/styles/index.d.ts +1 -263
  39. package/dist/components/RefreshedInput/Input/styles/index.d.ts +2 -254
  40. package/dist/components/RefreshedInput/Select/styles/index.d.ts +2 -71
  41. package/dist/components/Select/Select.d.ts +11 -0
  42. package/dist/components/Select/index.d.ts +1 -0
  43. package/dist/components/Select/styles/index.d.ts +28 -218
  44. package/dist/components/Skeleton/Skeleton.styles.d.ts +4 -26
  45. package/dist/components/Skeleton/index.d.ts +1 -0
  46. package/dist/components/Switch/Switch.d.ts +21 -0
  47. package/dist/components/Switch/index.d.ts +1 -0
  48. package/dist/components/Switch/styles/index.d.ts +4 -116
  49. package/dist/components/Table/Table.styles.d.ts +1 -4
  50. package/dist/components/Text/Text.d.ts +11 -0
  51. package/dist/components/Text/Text.styles.d.ts +29 -30
  52. package/dist/components/Text/combineAsWithVariant.d.ts +101 -0
  53. package/dist/components/Text/options.d.ts +2 -0
  54. package/dist/components/Textarea/Textarea.d.ts +12 -0
  55. package/dist/components/Textarea/index.d.ts +1 -0
  56. package/dist/components/Textarea/styles/index.d.ts +3 -0
  57. package/dist/index.cjs.js +3277 -3480
  58. package/dist/index.cjs.js.map +1 -1
  59. package/dist/index.d.ts +366 -58
  60. package/dist/index.esm.js +3272 -3478
  61. package/dist/index.esm.js.map +1 -1
  62. package/dist/theme/base/animation.d.ts +217 -0
  63. package/dist/theme/base/colors.d.ts +29 -13
  64. package/dist/theme/base/index.d.ts +1 -0
  65. package/dist/theme/base/notifications.d.ts +3 -3
  66. package/dist/types/forwardRefComponent.d.ts +2 -0
  67. package/package.json +17 -14
@@ -1,292 +1,58 @@
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: {
1
+ import type { ComponentMultiStyleConfig } from '@chakra-ui/react';
2
+ export declare const baseStyle: {
3
+ container: {
4
+ alignItems: string;
5
+ };
6
+ control: {
7
+ borderRadius: string;
8
+ borderWidth: string;
9
+ borderColor: string;
10
+ backgroundColor: string;
11
+ color: string;
12
+ minWidth: number;
13
+ minHeight: number;
14
+ marginTop: number;
15
+ transition: string;
16
+ _before: {
17
+ content: string;
18
+ display: string;
19
+ position: string;
20
+ width: string;
21
+ height: string;
22
+ opacity: string;
85
23
  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;
24
+ background: string;
25
+ transition: string;
26
+ filter: string;
178
27
  };
179
- control: {
180
- borderRadius: string;
181
- borderWidth: string;
28
+ _checked: {
182
29
  borderColor: string;
183
- backgroundColor: string;
184
30
  color: string;
185
- minWidth: number;
186
- minHeight: number;
187
- marginTop: number;
188
- transition: string;
31
+ backgroundColor: string;
189
32
  _before: {
190
- content: string;
191
- display: string;
192
- position: string;
193
- width: string;
194
- height: string;
33
+ width: number;
34
+ height: number;
195
35
  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
36
  };
242
37
  };
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
- };
38
+ _focus: {
39
+ boxShadow: string;
257
40
  };
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;
41
+ _disabled: {
42
+ borderColor: string;
43
+ _checked: {
44
+ backgroundColor: string;
271
45
  };
272
46
  };
273
47
  };
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
- };
48
+ label: {
49
+ fontSize: string;
50
+ color: string;
51
+ marginLeft: number;
52
+ _disabled: {
53
+ color: string;
289
54
  };
290
55
  };
291
56
  };
292
- export default _default;
57
+ declare const radioStyle: ComponentMultiStyleConfig;
58
+ export default radioStyle;
@@ -145,269 +145,7 @@ declare const _default: {
145
145
  } | undefined;
146
146
  } & {
147
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
- };
148
+ refreshed: any;
411
149
  };
412
150
  };
413
151
  export default _default;