@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.
Files changed (69) 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/Modal/styles/footer.d.ts +6 -0
  33. package/dist/components/Modal/styles/index.d.ts +13 -0
  34. package/dist/components/Progress/Progress.d.ts +8 -0
  35. package/dist/components/Progress/Progress.styles.d.ts +4 -75
  36. package/dist/components/Radio/Radio.d.ts +9 -0
  37. package/dist/components/Radio/RadioGroup.d.ts +14 -0
  38. package/dist/components/Radio/index.d.ts +2 -0
  39. package/dist/components/Radio/styles/index.d.ts +43 -277
  40. package/dist/components/RefreshedInput/Button/styles/index.d.ts +1 -263
  41. package/dist/components/RefreshedInput/Input/styles/index.d.ts +2 -254
  42. package/dist/components/RefreshedInput/Select/styles/index.d.ts +2 -71
  43. package/dist/components/Select/Select.d.ts +11 -0
  44. package/dist/components/Select/index.d.ts +1 -0
  45. package/dist/components/Select/styles/index.d.ts +28 -218
  46. package/dist/components/Skeleton/Skeleton.styles.d.ts +4 -26
  47. package/dist/components/Skeleton/index.d.ts +1 -0
  48. package/dist/components/Switch/Switch.d.ts +21 -0
  49. package/dist/components/Switch/index.d.ts +1 -0
  50. package/dist/components/Switch/styles/index.d.ts +4 -116
  51. package/dist/components/Table/Table.styles.d.ts +1 -4
  52. package/dist/components/Text/Text.d.ts +11 -0
  53. package/dist/components/Text/Text.styles.d.ts +29 -30
  54. package/dist/components/Text/combineAsWithVariant.d.ts +101 -0
  55. package/dist/components/Text/options.d.ts +2 -0
  56. package/dist/components/Textarea/Textarea.d.ts +12 -0
  57. package/dist/components/Textarea/index.d.ts +1 -0
  58. package/dist/components/Textarea/styles/index.d.ts +3 -0
  59. package/dist/index.cjs.js +2659 -3037
  60. package/dist/index.cjs.js.map +1 -1
  61. package/dist/index.d.ts +364 -59
  62. package/dist/index.esm.js +3088 -3467
  63. package/dist/index.esm.js.map +1 -1
  64. package/dist/theme/base/animation.d.ts +217 -0
  65. package/dist/theme/base/colors.d.ts +29 -13
  66. package/dist/theme/base/index.d.ts +1 -0
  67. package/dist/theme/base/notifications.d.ts +3 -3
  68. package/dist/types/forwardRefComponent.d.ts +2 -0
  69. package/package.json +8 -7
@@ -1,259 +1,7 @@
1
- declare const _default: {
2
- baseStyle?: {
3
- addon: {
4
- height: string;
5
- fontSize: string;
6
- px: string;
7
- borderRadius: string;
8
- };
9
- field: {
10
- width: string;
11
- height: string;
12
- fontSize: string;
13
- px: string;
14
- borderRadius: string;
15
- minWidth: number;
16
- outline: number;
17
- position: string;
18
- appearance: string;
19
- transitionProperty: string;
20
- transitionDuration: string;
21
- _disabled: {
22
- opacity: number;
23
- cursor: string;
24
- };
25
- };
26
- } | undefined;
27
- sizes?: {
28
- lg: {
29
- field: {
30
- [x: string]: string;
31
- };
32
- group: {
33
- [x: string]: string;
34
- };
35
- };
36
- md: {
37
- field: {
38
- [x: string]: string;
39
- };
40
- group: {
41
- [x: string]: string;
42
- };
43
- };
44
- sm: {
45
- field: {
46
- [x: string]: string;
47
- };
48
- group: {
49
- [x: string]: string;
50
- };
51
- };
52
- xs: {
53
- field: {
54
- [x: string]: string;
55
- };
56
- group: {
57
- [x: string]: string;
58
- };
59
- };
60
- } | undefined;
61
- variants?: {
62
- outline: (props: import("@chakra-ui/react").StyleFunctionProps) => {
63
- field: {
64
- border: string;
65
- borderColor: string;
66
- bg: string;
67
- _hover: {
68
- borderColor: string;
69
- };
70
- _readOnly: {
71
- boxShadow: string;
72
- userSelect: string;
73
- };
74
- _invalid: {
75
- borderColor: any;
76
- boxShadow: string;
77
- };
78
- _focusVisible: {
79
- zIndex: number;
80
- borderColor: any;
81
- boxShadow: string;
82
- };
83
- };
84
- addon: {
85
- border: string;
86
- borderColor: string;
87
- bg: string;
88
- };
89
- };
90
- filled: (props: import("@chakra-ui/react").StyleFunctionProps) => {
91
- field: {
92
- border: string;
93
- borderColor: string;
94
- bg: string;
95
- _hover: {
96
- bg: string;
97
- };
98
- _readOnly: {
99
- boxShadow: string;
100
- userSelect: string;
101
- };
102
- _invalid: {
103
- borderColor: any;
104
- };
105
- _focusVisible: {
106
- bg: string;
107
- borderColor: any;
108
- };
109
- };
110
- addon: {
111
- border: string;
112
- borderColor: string;
113
- bg: string;
114
- };
115
- };
116
- flushed: (props: import("@chakra-ui/react").StyleFunctionProps) => {
117
- field: {
118
- borderBottom: string;
119
- borderColor: string;
120
- borderRadius: string;
121
- px: string;
122
- bg: string;
123
- _readOnly: {
124
- boxShadow: string;
125
- userSelect: string;
126
- };
127
- _invalid: {
128
- borderColor: any;
129
- boxShadow: string;
130
- };
131
- _focusVisible: {
132
- borderColor: any;
133
- boxShadow: string;
134
- };
135
- };
136
- addon: {
137
- borderBottom: string;
138
- borderColor: string;
139
- borderRadius: string;
140
- px: string;
141
- bg: string;
142
- };
143
- };
144
- unstyled: {
145
- field: {
146
- bg: string;
147
- px: string;
148
- height: string;
149
- };
150
- addon: {
151
- bg: string;
152
- px: string;
153
- height: string;
154
- };
155
- };
156
- } | undefined;
157
- defaultProps?: {
158
- size?: "md" | "xs" | "sm" | "lg" | undefined;
159
- variant?: "outline" | "filled" | "unstyled" | "flushed" | undefined;
160
- colorScheme?: string | undefined;
161
- } | undefined;
162
- parts: ("element" | "group" | "addon" | "field")[];
163
- } & {
164
- baseStyle: {
165
- field: {
166
- fontFamily: string;
167
- _placeholder: {
168
- color: string;
169
- fontWeight: string;
170
- _disabled: {
171
- color: string;
172
- opacity: number;
173
- };
174
- };
175
- };
176
- };
177
- variants: {
178
- outline: {
179
- field: {
180
- border: string;
181
- borderColor: string;
182
- fontSize: string;
183
- paddingLeft: number;
184
- paddingRight: number;
185
- bg: string;
186
- fontWeight: string;
187
- boxShadow: string;
188
- _placeholder: {
189
- color: string;
190
- fontWeight: string;
191
- };
192
- _focus: {
193
- borderColor: string;
194
- };
195
- _hover: {
196
- borderColor: string;
197
- };
198
- _readOnly: {
199
- boxShadow: string;
200
- userSelect: string;
201
- };
202
- _disabled: {
203
- backgroundColor: string;
204
- opacity: number;
205
- cursor: string;
206
- };
207
- _invalid: {
208
- borderColor: string;
209
- _focus: {
210
- borderColor: string;
211
- };
212
- };
213
- };
214
- };
215
- };
216
- } & {
1
+ declare const _default: import("@chakra-ui/react").StyleConfig & {
217
2
  variants: {
218
3
  refreshed: {
219
- field: {
220
- height: string;
221
- paddingTop: number;
222
- paddingBottom: number;
223
- border: string;
224
- borderColor: string;
225
- fontSize: string;
226
- paddingLeft: number;
227
- paddingRight: number;
228
- bg: string;
229
- fontWeight: string;
230
- boxShadow: string;
231
- _placeholder: {
232
- color: string;
233
- fontWeight: string;
234
- };
235
- _focus: {
236
- borderColor: string;
237
- };
238
- _hover: {
239
- borderColor: string;
240
- };
241
- _readOnly: {
242
- boxShadow: string;
243
- userSelect: string;
244
- };
245
- _disabled: {
246
- backgroundColor: string;
247
- opacity: number;
248
- cursor: string;
249
- };
250
- _invalid: {
251
- borderColor: string;
252
- _focus: {
253
- borderColor: string;
254
- };
255
- };
256
- };
4
+ field: any;
257
5
  };
258
6
  };
259
7
  };
@@ -1,73 +1,4 @@
1
- export declare const selectTheme: {
2
- baseStyle?: import("@chakra-ui/react").PartsStyleInterpolation<{
3
- keys: ("icon" | "field")[];
4
- }> | undefined;
5
- sizes?: {
6
- [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
7
- keys: ("icon" | "field")[];
8
- }>;
9
- } | undefined;
10
- variants?: {
11
- refreshed: {
12
- field: {
13
- height: string;
14
- paddingTop: number;
15
- paddingBottom: number;
16
- border: string;
17
- borderColor: string;
18
- bg: string;
19
- _hover: {
20
- borderColor: string;
21
- };
22
- _readOnly: {
23
- boxShadow: string;
24
- userSelect: string;
25
- };
26
- _disabled: {
27
- opacity: number;
28
- cursor: string;
29
- };
30
- _invalid: {
31
- borderColor: string;
32
- boxShadow: (t: any) => string;
33
- };
34
- _focus: {
35
- borderColor: string;
36
- boxShadow: (t: any) => string;
37
- };
38
- };
39
- icon: {
40
- border: string;
41
- borderColor: string;
42
- bg: string;
43
- _hover: {
44
- borderColor: string;
45
- };
46
- _readOnly: {
47
- boxShadow: string;
48
- userSelect: string;
49
- };
50
- _disabled: {
51
- opacity: number;
52
- cursor: string;
53
- };
54
- _invalid: {
55
- borderColor: string;
56
- boxShadow: (t: any) => string;
57
- };
58
- _focus: {
59
- borderColor: string;
60
- boxShadow: (t: any) => string;
61
- };
62
- };
63
- };
64
- } | undefined;
65
- defaultProps?: {
66
- size?: string | number | undefined;
67
- variant?: "refreshed" | undefined;
68
- colorScheme?: string | undefined;
69
- } | undefined;
70
- parts: ("icon" | "field")[];
71
- };
1
+ import { type ComponentMultiStyleConfig } from '@chakra-ui/react';
2
+ export declare const selectTheme: ComponentMultiStyleConfig;
72
3
  export declare const theme: Record<string, any>;
73
4
  export default theme;
@@ -0,0 +1,11 @@
1
+ import { SelectProps as ChakraSelectProps } from '@chakra-ui/react';
2
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
3
+ export interface SelectProps extends ChakraSelectProps {
4
+ id: string;
5
+ label?: string;
6
+ helperText?: string;
7
+ errorMessage?: string;
8
+ isOptional?: boolean;
9
+ }
10
+ declare const Select: ForwardRefComponent<HTMLSelectElement, SelectProps>;
11
+ export default Select;
@@ -0,0 +1 @@
1
+ export { default } from './Select';
@@ -1,221 +1,31 @@
1
- declare const _default: {
2
- baseStyle?: {
3
- field: {
4
- appearance: string;
5
- paddingBottom: string;
6
- lineHeight: string;
7
- bg: string;
8
- _dark: {
9
- [x: string]: string;
10
- };
11
- "> option, > optgroup": {
12
- bg: string;
13
- };
14
- width?: string | undefined;
15
- height?: string | undefined;
16
- fontSize?: string | undefined;
17
- px?: string | undefined;
18
- borderRadius?: string | undefined;
19
- minWidth?: number | undefined;
20
- outline?: number | undefined;
21
- position?: string | undefined;
22
- transitionProperty?: string | undefined;
23
- transitionDuration?: string | undefined;
24
- _disabled?: {
25
- opacity: number;
26
- cursor: string;
27
- } | undefined;
28
- };
29
- icon: {
30
- width: string;
31
- height: string;
32
- insetEnd: string;
33
- position: string;
34
- color: string;
35
- fontSize: string;
36
- _disabled: {
37
- opacity: number;
38
- };
39
- };
40
- } | undefined;
41
- sizes?: {
42
- lg: {
43
- field: {
44
- paddingInlineEnd: string;
45
- };
46
- group?: {
47
- [x: string]: string;
48
- } | undefined;
49
- };
50
- md: {
51
- field: {
52
- paddingInlineEnd: string;
53
- };
54
- group?: {
55
- [x: string]: string;
56
- } | undefined;
57
- };
58
- sm: {
59
- field: {
60
- paddingInlineEnd: string;
61
- };
62
- group?: {
63
- [x: string]: string;
64
- } | undefined;
65
- };
66
- xs: {
67
- field: {
68
- paddingInlineEnd: string;
69
- };
70
- icon: {
71
- insetEnd: string;
72
- };
73
- group?: {
74
- [x: string]: string;
75
- } | undefined;
76
- };
77
- } | undefined;
78
- variants?: {
79
- outline: (props: import("@chakra-ui/react").StyleFunctionProps) => {
80
- field: {
81
- border: string;
82
- borderColor: string;
83
- bg: string;
84
- _hover: {
85
- borderColor: string;
86
- };
87
- _readOnly: {
88
- boxShadow: string;
89
- userSelect: string;
90
- };
91
- _invalid: {
92
- borderColor: any;
93
- boxShadow: string;
94
- };
95
- _focusVisible: {
96
- zIndex: number;
97
- borderColor: any;
98
- boxShadow: string;
99
- };
100
- };
101
- addon: {
102
- border: string;
103
- borderColor: string;
104
- bg: string;
105
- };
106
- };
107
- filled: (props: import("@chakra-ui/react").StyleFunctionProps) => {
108
- field: {
109
- border: string;
110
- borderColor: string;
111
- bg: string;
112
- _hover: {
113
- bg: string;
114
- };
115
- _readOnly: {
116
- boxShadow: string;
117
- userSelect: string;
118
- };
119
- _invalid: {
120
- borderColor: any;
121
- };
122
- _focusVisible: {
123
- bg: string;
124
- borderColor: any;
125
- };
126
- };
127
- addon: {
128
- border: string;
129
- borderColor: string;
130
- bg: string;
131
- };
132
- };
133
- flushed: (props: import("@chakra-ui/react").StyleFunctionProps) => {
134
- field: {
135
- borderBottom: string;
136
- borderColor: string;
137
- borderRadius: string;
138
- px: string;
139
- bg: string;
140
- _readOnly: {
141
- boxShadow: string;
142
- userSelect: string;
143
- };
144
- _invalid: {
145
- borderColor: any;
146
- boxShadow: string;
147
- };
148
- _focusVisible: {
149
- borderColor: any;
150
- boxShadow: string;
151
- };
152
- };
153
- addon: {
154
- borderBottom: string;
155
- borderColor: string;
156
- borderRadius: string;
157
- px: string;
158
- bg: string;
159
- };
160
- };
161
- unstyled: {
162
- field: {
163
- bg: string;
164
- px: string;
165
- height: string;
166
- };
167
- addon: {
168
- bg: string;
169
- px: string;
170
- height: string;
171
- };
172
- };
173
- } | undefined;
174
- defaultProps?: {
175
- size?: "md" | "xs" | "sm" | "lg" | undefined;
176
- variant?: "outline" | "filled" | "unstyled" | "flushed" | undefined;
177
- colorScheme?: string | undefined;
178
- } | undefined;
179
- parts: ("icon" | "field")[];
180
- } & {
181
- baseStyle: {
182
- field: {
183
- fontFamily: "\"Plus Jakarta Sans\", sans-serif";
184
- fontWeight: 400;
185
- };
1
+ import { theme as chakraDefaultTheme, type ComponentMultiStyleConfig } from '@chakra-ui/react';
2
+ type SelectStyle = NonNullable<typeof chakraDefaultTheme.components.Select>;
3
+ type SelectBaseStyle = NonNullable<SelectStyle['baseStyle']>;
4
+ export declare const baseStyle: SelectBaseStyle;
5
+ export declare const outlineFieldStyle: {
6
+ border: string;
7
+ borderColor: string;
8
+ bg: string;
9
+ _hover: {
10
+ borderColor: string;
186
11
  };
187
- variants: {
188
- outline: {
189
- field: {
190
- border: string;
191
- borderColor: string;
192
- bg: string;
193
- _hover: {
194
- borderColor: string;
195
- };
196
- _readOnly: {
197
- boxShadow: string;
198
- userSelect: string;
199
- };
200
- _disabled: {
201
- opacity: number;
202
- cursor: string;
203
- };
204
- _invalid: {
205
- borderColor: string;
206
- boxShadow: (t: any) => string;
207
- };
208
- _focus: {
209
- borderColor: string;
210
- boxShadow: (t: any) => string;
211
- };
212
- };
213
- addon: {
214
- border: string;
215
- borderColor: string;
216
- bg: string;
217
- };
218
- };
12
+ _readOnly: {
13
+ boxShadow: string;
14
+ userSelect: string;
15
+ };
16
+ _disabled: {
17
+ opacity: number;
18
+ cursor: string;
19
+ };
20
+ _invalid: {
21
+ borderColor: string;
22
+ boxShadow: string;
23
+ };
24
+ _focusVisible: {
25
+ zIndex: number;
26
+ borderColor: string;
27
+ boxShadow: string;
219
28
  };
220
29
  };
221
- export default _default;
30
+ declare const selectStyle: ComponentMultiStyleConfig;
31
+ export default selectStyle;
@@ -1,26 +1,4 @@
1
- declare const _default: {
2
- baseStyle?: {
3
- [x: string]: string | number | {
4
- [x: string]: string;
5
- };
6
- _dark: {
7
- [x: string]: string;
8
- };
9
- background: string;
10
- borderColor: string;
11
- opacity: number;
12
- borderRadius: string;
13
- } | undefined;
14
- sizes?: {
15
- [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
16
- } | undefined;
17
- variants?: {
18
- [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
19
- } | undefined;
20
- defaultProps?: {
21
- size?: string | number | undefined;
22
- variant?: string | number | undefined;
23
- colorScheme?: string | undefined;
24
- } | undefined;
25
- };
26
- export default _default;
1
+ import { theme as chakraDefaultTheme } from '@chakra-ui/react';
2
+ type SkeletonStyle = NonNullable<typeof chakraDefaultTheme.components.Skeleton>;
3
+ declare const skeletonStyle: SkeletonStyle;
4
+ export default skeletonStyle;
@@ -0,0 +1 @@
1
+ export { Skeleton, SkeletonCircle, SkeletonText } from '@chakra-ui/react';
@@ -0,0 +1,21 @@
1
+ import React from 'react';
2
+ import { Switch as ChakraSwitch } from '@chakra-ui/react';
3
+ import type { ForwardRefComponent } from '../../types/forwardRefComponent';
4
+ export type SwitchProps = React.ComponentProps<typeof ChakraSwitch> & {
5
+ /** The label for the switch */
6
+ label?: string;
7
+ /** Optional helper text displayed below the switch */
8
+ helperText?: string;
9
+ /** Error message to display when invalid */
10
+ errorMessage?: string;
11
+ /** Whether the switch has an invalid state */
12
+ isInvalid?: boolean;
13
+ /** Whether the switch is disabled */
14
+ isDisabled?: boolean;
15
+ /** Whether the switch is required */
16
+ isRequired?: boolean;
17
+ /** Unique identifier for the switch */
18
+ id: string;
19
+ };
20
+ declare const Switch: ForwardRefComponent<HTMLInputElement, SwitchProps>;
21
+ export default Switch;
@@ -0,0 +1 @@
1
+ export { default } from './Switch';