@spothero/ui 25.4.0 → 25.5.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.
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 +1824 -713
  47. package/dist/index.cjs.js.map +1 -1
  48. package/dist/index.d.ts +248 -0
  49. package/dist/index.esm.js +1824 -713
  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 +5 -5
@@ -0,0 +1,217 @@
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
+ };
217
+ export default _default;
@@ -0,0 +1,102 @@
1
+ export namespace variants {
2
+ export { baseStyle as standard };
3
+ export { linkOnDark as onDark };
4
+ }
5
+ declare const _default: {
6
+ baseStyle?: {
7
+ transitionProperty: string;
8
+ transitionDuration: string;
9
+ transitionTimingFunction: string;
10
+ cursor: string;
11
+ textDecoration: string;
12
+ outline: string;
13
+ color: string;
14
+ _hover: {
15
+ textDecoration: string;
16
+ };
17
+ _focusVisible: {
18
+ boxShadow: string;
19
+ };
20
+ } | undefined;
21
+ sizes?: {
22
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
23
+ } | undefined;
24
+ variants?: {
25
+ [key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
26
+ } | undefined;
27
+ defaultProps?: {
28
+ size?: string | number | undefined;
29
+ variant?: string | number | undefined;
30
+ colorScheme?: string | undefined;
31
+ } | undefined;
32
+ } & {
33
+ baseStyle: {
34
+ transition: string;
35
+ color: string;
36
+ fontWeight: string;
37
+ _hover: {
38
+ color: string;
39
+ textDecoration: string;
40
+ };
41
+ _focus: {
42
+ boxShadow: string;
43
+ };
44
+ '& svg': {
45
+ d: string;
46
+ verticalAlign: string;
47
+ };
48
+ };
49
+ variants: {
50
+ standard: {
51
+ transition: string;
52
+ color: string;
53
+ fontWeight: string;
54
+ _hover: {
55
+ color: string;
56
+ textDecoration: string;
57
+ };
58
+ _focus: {
59
+ boxShadow: string;
60
+ };
61
+ '& svg': {
62
+ d: string;
63
+ verticalAlign: string;
64
+ };
65
+ };
66
+ onDark: {
67
+ color: string;
68
+ _hover: {
69
+ color: string;
70
+ opacity: string;
71
+ };
72
+ };
73
+ };
74
+ defaultProps: {
75
+ variant: string;
76
+ };
77
+ };
78
+ export default _default;
79
+ declare const baseStyle: {
80
+ transition: string;
81
+ color: string;
82
+ fontWeight: string;
83
+ _hover: {
84
+ color: string;
85
+ textDecoration: string;
86
+ };
87
+ _focus: {
88
+ boxShadow: string;
89
+ };
90
+ '& svg': {
91
+ d: string;
92
+ verticalAlign: string;
93
+ };
94
+ };
95
+ declare namespace linkOnDark {
96
+ let color: string;
97
+ namespace _hover {
98
+ let color_1: string;
99
+ export { color_1 as color };
100
+ export let opacity: string;
101
+ }
102
+ }
@@ -0,0 +1,32 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ icon: {
4
+ marginEnd: string;
5
+ display: string;
6
+ verticalAlign: string;
7
+ };
8
+ } | undefined;
9
+ sizes?: {
10
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
11
+ keys: ("container" | "icon" | "item")[];
12
+ }>;
13
+ } | undefined;
14
+ variants?: {
15
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
16
+ keys: ("container" | "icon" | "item")[];
17
+ }>;
18
+ } | undefined;
19
+ defaultProps?: {
20
+ size?: string | number | undefined;
21
+ variant?: string | number | undefined;
22
+ colorScheme?: string | undefined;
23
+ } | undefined;
24
+ parts: ("container" | "icon" | "item")[];
25
+ } & {
26
+ baseStyle: {
27
+ item: {
28
+ mb: number;
29
+ };
30
+ };
31
+ };
32
+ export default _default;
@@ -0,0 +1,4 @@
1
+ export default item;
2
+ declare namespace item {
3
+ let mb: number;
4
+ }
@@ -0,0 +1,258 @@
1
+ declare const _default: {
2
+ baseStyle?: {
3
+ button: {
4
+ transitionProperty: string;
5
+ transitionDuration: string;
6
+ };
7
+ list: {
8
+ [x: string]: string | number | {
9
+ [x: string]: string;
10
+ };
11
+ _dark: {
12
+ [x: string]: string;
13
+ };
14
+ color: string;
15
+ minW: string;
16
+ py: string;
17
+ zIndex: number;
18
+ borderRadius: string;
19
+ borderWidth: string;
20
+ bg: string;
21
+ boxShadow: string;
22
+ };
23
+ item: {
24
+ py: string;
25
+ px: string;
26
+ transitionProperty: string;
27
+ transitionDuration: string;
28
+ transitionTimingFunction: string;
29
+ _focus: {
30
+ [x: string]: string | {
31
+ [x: string]: string;
32
+ };
33
+ _dark: {
34
+ [x: string]: string;
35
+ };
36
+ };
37
+ _active: {
38
+ [x: string]: string | {
39
+ [x: string]: string;
40
+ };
41
+ _dark: {
42
+ [x: string]: string;
43
+ };
44
+ };
45
+ _expanded: {
46
+ [x: string]: string | {
47
+ [x: string]: string;
48
+ };
49
+ _dark: {
50
+ [x: string]: string;
51
+ };
52
+ };
53
+ _disabled: {
54
+ opacity: number;
55
+ cursor: string;
56
+ };
57
+ bg: string;
58
+ };
59
+ groupTitle: {
60
+ mx: number;
61
+ my: number;
62
+ fontWeight: string;
63
+ fontSize: string;
64
+ };
65
+ icon: {
66
+ display: string;
67
+ alignItems: string;
68
+ justifyContent: string;
69
+ flexShrink: number;
70
+ };
71
+ command: {
72
+ opacity: number;
73
+ };
74
+ divider: {
75
+ border: number;
76
+ borderBottom: string;
77
+ borderColor: string;
78
+ my: string;
79
+ opacity: number;
80
+ };
81
+ } | undefined;
82
+ sizes?: {
83
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
84
+ keys: ("button" | "icon" | "item" | "list" | "groupTitle" | "command" | "divider")[];
85
+ }>;
86
+ } | undefined;
87
+ variants?: {
88
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
89
+ keys: ("button" | "icon" | "item" | "list" | "groupTitle" | "command" | "divider")[];
90
+ }>;
91
+ } | undefined;
92
+ defaultProps?: {
93
+ size?: string | number | undefined;
94
+ variant?: string | number | undefined;
95
+ colorScheme?: string | undefined;
96
+ } | undefined;
97
+ parts: ("button" | "icon" | "item" | "list" | "groupTitle" | "command" | "divider")[];
98
+ } & {
99
+ baseStyle: {
100
+ button: {
101
+ px: number;
102
+ py: number;
103
+ fontSize: string;
104
+ fontFamily: string;
105
+ lineHeight: number;
106
+ fontWeight: string;
107
+ borderWidth: string;
108
+ borderStyle: string;
109
+ borderRadius: string;
110
+ textTransform: string;
111
+ transition: string;
112
+ _hover: {
113
+ bg: string;
114
+ borderColor: string;
115
+ };
116
+ _disabled: {
117
+ cursor: string;
118
+ opacity: number;
119
+ bg: string;
120
+ borderColor: string;
121
+ color: string;
122
+ };
123
+ _focus: {
124
+ zIndex: number;
125
+ boxShadow: string;
126
+ };
127
+ };
128
+ list: {
129
+ bg: string;
130
+ boxShadow: string;
131
+ padding: number;
132
+ zIndex: string;
133
+ width: number;
134
+ };
135
+ item: {
136
+ paddingX: number;
137
+ paddingY: number;
138
+ _focus: {
139
+ zIndex: number;
140
+ boxShadow: string;
141
+ };
142
+ };
143
+ groupTitle: {
144
+ fontWeight: string;
145
+ color: string;
146
+ padding: number;
147
+ };
148
+ command: {
149
+ opacity: string;
150
+ fontFamily: string;
151
+ fontSize: string;
152
+ letterSpacing: string;
153
+ paddingL: number;
154
+ };
155
+ divider: {
156
+ marginY: number;
157
+ borderColor: string;
158
+ };
159
+ };
160
+ variants: {
161
+ basic: {
162
+ button: {
163
+ bg: string;
164
+ borderColor: string;
165
+ color: string;
166
+ _hover: {
167
+ bg: string;
168
+ borderColor: string;
169
+ color: string;
170
+ _disabled: {
171
+ bg: string;
172
+ borderColor: string;
173
+ color: string;
174
+ };
175
+ };
176
+ };
177
+ list: {
178
+ bg: string;
179
+ boxShadow: string;
180
+ zIndex: string;
181
+ borderColor: string;
182
+ borderWidth: string;
183
+ borderStyle: string;
184
+ borderRadius: string;
185
+ padding: number;
186
+ width: number;
187
+ };
188
+ groupTitle: {
189
+ fontWeight: string;
190
+ fontSize: string;
191
+ color: string;
192
+ padding: number;
193
+ };
194
+ item: {
195
+ fontWeight: string;
196
+ _hover: {
197
+ color: string;
198
+ };
199
+ };
200
+ };
201
+ full: {
202
+ button: {
203
+ height: number;
204
+ fontSize: string;
205
+ fontWeight: string;
206
+ color: string;
207
+ borderColor: string;
208
+ backgroundColor: string;
209
+ borderRadius: string;
210
+ paddingX: number;
211
+ paddingY: string;
212
+ _hover: {
213
+ color: string;
214
+ backgroundColor: string;
215
+ borderColor: string;
216
+ };
217
+ _active: {
218
+ color: string;
219
+ backgroundColor: string;
220
+ borderColor: string;
221
+ _hover: {
222
+ color: string;
223
+ backgroundColor: string;
224
+ borderColor: string;
225
+ };
226
+ };
227
+ };
228
+ list: {
229
+ height: string;
230
+ width: string;
231
+ padding: number;
232
+ backgroundColor: string;
233
+ };
234
+ groupTitle: {
235
+ fontSize: string;
236
+ weight: string;
237
+ color: string;
238
+ };
239
+ item: {
240
+ display: string;
241
+ paddingX: number;
242
+ paddingY: number;
243
+ marginBottom: number;
244
+ _last: {
245
+ marginBottom: number;
246
+ };
247
+ _hover: {
248
+ backgroundColor: string;
249
+ };
250
+ _focus: {
251
+ boxShadow: string;
252
+ backgroundColor: string;
253
+ };
254
+ };
255
+ };
256
+ };
257
+ };
258
+ export default _default;
@@ -0,0 +1,30 @@
1
+ declare function _default({ hasFooter, hasHeader, hideCloseButton }: {
2
+ hasFooter: any;
3
+ hasHeader: any;
4
+ hideCloseButton: any;
5
+ }): {
6
+ background: string;
7
+ backgroundRepeat: string;
8
+ backgroundColor: string;
9
+ backgroundSize: string;
10
+ backgroundAttachment: string;
11
+ borderBottomRadius: string | null;
12
+ paddingX: number;
13
+ paddingBottom: number;
14
+ flex: number;
15
+ overflow: string;
16
+ display: string;
17
+ } | {
18
+ background?: undefined;
19
+ backgroundRepeat?: undefined;
20
+ backgroundColor?: undefined;
21
+ backgroundSize?: undefined;
22
+ backgroundAttachment?: undefined;
23
+ borderBottomRadius: string | null;
24
+ paddingX: number;
25
+ paddingBottom: number;
26
+ flex: number;
27
+ overflow: string;
28
+ display: string;
29
+ };
30
+ export default _default;
@@ -0,0 +1,18 @@
1
+ declare function _default({ hasHeader }: {
2
+ hasHeader: any;
3
+ }): {
4
+ position: string;
5
+ top: number;
6
+ insetEnd: number;
7
+ color: string;
8
+ borderRadius: string;
9
+ width: number;
10
+ height: number;
11
+ _focus: {
12
+ boxShadow: string;
13
+ };
14
+ _hover: {
15
+ bg: string;
16
+ };
17
+ };
18
+ export default _default;
@@ -0,0 +1,16 @@
1
+ declare function _default({ hasFooter }: {
2
+ hasFooter: any;
3
+ }): {
4
+ borderRadius: string;
5
+ borderBottomRadius: {
6
+ base: string;
7
+ tablet: string;
8
+ };
9
+ background: string;
10
+ color: string;
11
+ marginY: number;
12
+ zIndex: string;
13
+ boxShadow: string;
14
+ paddingBottom: number;
15
+ };
16
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare namespace _default {
2
+ let display: string;
3
+ let zIndex: string;
4
+ let justifyContent: string;
5
+ namespace alignItems {
6
+ let base: string;
7
+ let tablet: string;
8
+ }
9
+ let height: string;
10
+ let minHeight: string;
11
+ }
12
+ export default _default;
@@ -0,0 +1,6 @@
1
+ declare namespace _default {
2
+ let borderTop: string;
3
+ let borderColor: string;
4
+ let padding: number;
5
+ }
6
+ export default _default;