@spothero/ui 25.2.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 (63) hide show
  1. package/dist/components/Accordion/AccordionActionButton.d.ts +2 -1
  2. package/dist/components/Accordion/styles/index.d.ts +2 -2
  3. package/dist/components/Badge/styles/index.d.ts +78 -0
  4. package/dist/components/Button/Button.styles.d.ts +601 -0
  5. package/dist/components/Card/Card.d.ts +4 -0
  6. package/dist/components/Checkbox/styles/index.d.ts +200 -0
  7. package/dist/components/Container/Container.d.ts +4 -0
  8. package/dist/components/Container/Container.styles.d.ts +10 -0
  9. package/dist/components/Divider/Divider.d.ts +11 -0
  10. package/dist/components/Divider/Divider.styles.d.ts +40 -0
  11. package/dist/components/Drawer/styles/index.d.ts +149 -0
  12. package/dist/components/FormControl/FormControl.d.ts +13 -0
  13. package/dist/components/Grid/GridItem.styles.d.ts +4 -0
  14. package/dist/components/Heading/Heading.styles.d.ts +66 -0
  15. package/dist/components/Icon/Icon.d.ts +1 -1
  16. package/dist/components/Input/styles/index.d.ts +217 -0
  17. package/dist/components/Link/Link.styles.d.ts +102 -0
  18. package/dist/components/List/styles/index.d.ts +32 -0
  19. package/dist/components/List/styles/item.styles.d.ts +4 -0
  20. package/dist/components/Menu/Menu.styles.d.ts +258 -0
  21. package/dist/components/Modal/styles/body.d.ts +30 -0
  22. package/dist/components/Modal/styles/closeButton.d.ts +18 -0
  23. package/dist/components/Modal/styles/dialog.d.ts +16 -0
  24. package/dist/components/Modal/styles/dialogContainer.d.ts +12 -0
  25. package/dist/components/Modal/styles/footer.d.ts +6 -0
  26. package/dist/components/Modal/styles/header.d.ts +10 -0
  27. package/dist/components/Modal/styles/index.d.ts +227 -0
  28. package/dist/components/Modal/styles/overlay.d.ts +5 -0
  29. package/dist/components/Popover/styles/index.d.ts +100 -0
  30. package/dist/components/Popover/styles/popover-body.d.ts +4 -0
  31. package/dist/components/Popover/styles/popover-content.d.ts +20 -0
  32. package/dist/components/Popover/styles/popover-header.d.ts +5 -0
  33. package/dist/components/Popover/styles/popper.d.ts +4 -0
  34. package/dist/components/Progress/Progress.styles.d.ts +75 -0
  35. package/dist/components/Radio/styles/index.d.ts +292 -0
  36. package/dist/components/RefreshedInput/Button/styles/index.d.ts +413 -0
  37. package/dist/components/RefreshedInput/FormControl/index.d.ts +2 -1
  38. package/dist/components/RefreshedInput/Input/styles/index.d.ts +260 -0
  39. package/dist/components/RefreshedInput/Select/Select.d.ts +2 -1
  40. package/dist/components/Select/styles/index.d.ts +2 -2
  41. package/dist/components/Skeleton/Skeleton.styles.d.ts +26 -0
  42. package/dist/components/Spinner/Spinner.d.ts +12 -0
  43. package/dist/components/Spinner/Spinner.styles.d.ts +144 -0
  44. package/dist/components/Switch/styles/index.d.ts +116 -0
  45. package/dist/components/Table/Table.styles.d.ts +69 -0
  46. package/dist/components/Tabs/styles/index.d.ts +308 -0
  47. package/dist/components/Text/Text.styles.d.ts +30 -0
  48. package/dist/components/styles.d.ts +26 -0
  49. package/dist/index.cjs.js +1847 -745
  50. package/dist/index.cjs.js.map +1 -1
  51. package/dist/index.d.ts +248 -0
  52. package/dist/index.esm.js +1847 -745
  53. package/dist/index.esm.js.map +1 -1
  54. package/dist/theme/base/breakpoints.d.ts +6 -6
  55. package/dist/theme/base/colors.d.ts +106 -115
  56. package/dist/theme/base/index.d.ts +7 -7
  57. package/dist/theme/base/notifications.d.ts +80 -104
  58. package/dist/theme/base/sizes.d.ts +41 -41
  59. package/dist/theme/base/typography.d.ts +22 -22
  60. package/dist/theme/base/zindices.d.ts +15 -15
  61. package/dist/theme/global.d.ts +21 -0
  62. package/dist/theme/index.d.ts +2 -0
  63. package/package.json +14 -9
@@ -0,0 +1,260 @@
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
+ variants: {
218
+ 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
+ };
257
+ };
258
+ };
259
+ };
260
+ export default _default;
@@ -5,4 +5,5 @@ export default Select;
5
5
  * using `<RefreshedSelect><option value="1"/>/<RefreshedSelect>` will bring in the core of this.
6
6
  * Left arrow is static for this select. You can pass a second left element in but it will not over write the down arrow currently
7
7
  */
8
- declare const Select: any;
8
+ declare const Select: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
9
+ import React from 'react';
@@ -180,8 +180,8 @@ declare const _default: {
180
180
  } & {
181
181
  baseStyle: {
182
182
  field: {
183
- fontFamily: string;
184
- fontWeight: number;
183
+ fontFamily: "\"Plus Jakarta Sans\", sans-serif";
184
+ fontWeight: 400;
185
185
  };
186
186
  };
187
187
  variants: {
@@ -0,0 +1,26 @@
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;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { SpinnerProps as ChakraSpinnerProps } from '@chakra-ui/react';
3
+ import { SIZE_MAP } from './Spinner.styles';
4
+ type SpinnerSize = keyof typeof SIZE_MAP;
5
+ interface SpinnerProps extends Omit<ChakraSpinnerProps, 'size' | 'thickness'> {
6
+ /** The diameter of the spinner ring in pixels */
7
+ thickness?: number;
8
+ /** The size of the spinner */
9
+ size?: SpinnerSize;
10
+ }
11
+ declare const Spinner: React.ForwardRefExoticComponent<SpinnerProps & React.RefAttributes<HTMLDivElement>>;
12
+ export default Spinner;
@@ -0,0 +1,144 @@
1
+ export declare const SIZE_MAP: {
2
+ readonly xs: "xs";
3
+ readonly sm: "sm";
4
+ readonly md: "md";
5
+ readonly lg: "lg";
6
+ readonly xl: "xl";
7
+ readonly '2xl': "2xl";
8
+ readonly '3xl': "3xl";
9
+ readonly '4xl': "4xl";
10
+ readonly '5xl': "5xl";
11
+ readonly '6xl': "6xl";
12
+ readonly '7xl': "7xl";
13
+ readonly '8xl': "8xl";
14
+ readonly '9xl': "9xl";
15
+ readonly '10xl': "10xl";
16
+ };
17
+ export declare const sizes: {
18
+ xs: {
19
+ [x: string]: string;
20
+ };
21
+ sm: {
22
+ [x: string]: string;
23
+ };
24
+ md: {
25
+ [x: string]: string;
26
+ };
27
+ lg: {
28
+ [x: string]: string;
29
+ };
30
+ xl: {
31
+ [x: string]: string;
32
+ };
33
+ } & {
34
+ "2xl": {
35
+ w: string;
36
+ h: string;
37
+ };
38
+ "3xl": {
39
+ w: string;
40
+ h: string;
41
+ };
42
+ "4xl": {
43
+ w: string;
44
+ h: string;
45
+ };
46
+ "5xl": {
47
+ w: string;
48
+ h: string;
49
+ };
50
+ "6xl": {
51
+ w: string;
52
+ h: string;
53
+ };
54
+ "7xl": {
55
+ w: string;
56
+ h: string;
57
+ };
58
+ "8xl": {
59
+ w: string;
60
+ h: string;
61
+ };
62
+ "9xl": {
63
+ w: string;
64
+ h: string;
65
+ };
66
+ "10xl": {
67
+ w: string;
68
+ h: string;
69
+ };
70
+ };
71
+ export declare const thicknesses: {
72
+ xl: number;
73
+ "2xl": number;
74
+ "3xl": number;
75
+ "4xl": number;
76
+ "5xl": number;
77
+ "6xl": number;
78
+ "7xl": number;
79
+ "8xl": number;
80
+ "9xl": number;
81
+ "10xl": number;
82
+ };
83
+ declare const _default: {
84
+ sizes: {
85
+ xs: {
86
+ [x: string]: string;
87
+ };
88
+ sm: {
89
+ [x: string]: string;
90
+ };
91
+ md: {
92
+ [x: string]: string;
93
+ };
94
+ lg: {
95
+ [x: string]: string;
96
+ };
97
+ xl: {
98
+ [x: string]: string;
99
+ };
100
+ } & {
101
+ "2xl": {
102
+ w: string;
103
+ h: string;
104
+ };
105
+ "3xl": {
106
+ w: string;
107
+ h: string;
108
+ };
109
+ "4xl": {
110
+ w: string;
111
+ h: string;
112
+ };
113
+ "5xl": {
114
+ w: string;
115
+ h: string;
116
+ };
117
+ "6xl": {
118
+ w: string;
119
+ h: string;
120
+ };
121
+ "7xl": {
122
+ w: string;
123
+ h: string;
124
+ };
125
+ "8xl": {
126
+ w: string;
127
+ h: string;
128
+ };
129
+ "9xl": {
130
+ w: string;
131
+ h: string;
132
+ };
133
+ "10xl": {
134
+ w: string;
135
+ h: string;
136
+ };
137
+ };
138
+ defaultProps: {
139
+ speed: string;
140
+ size: "2xl";
141
+ thickness: number;
142
+ };
143
+ };
144
+ export default _default;
@@ -0,0 +1,116 @@
1
+ declare const _default: {
2
+ defaultProps: {
3
+ colorScheme: string;
4
+ size: string;
5
+ };
6
+ baseStyle: (props: any) => {
7
+ container: {
8
+ [x: string]: string | {
9
+ [x: string]: string;
10
+ };
11
+ _rtl: {
12
+ [x: string]: string;
13
+ };
14
+ };
15
+ track: {
16
+ [x: string]: string | string[] | {
17
+ [x: string]: string;
18
+ boxShadow?: undefined;
19
+ opacity?: undefined;
20
+ cursor?: undefined;
21
+ _dark?: undefined;
22
+ } | {
23
+ boxShadow: string;
24
+ opacity?: undefined;
25
+ cursor?: undefined;
26
+ _dark?: undefined;
27
+ } | {
28
+ opacity: number;
29
+ cursor: string;
30
+ boxShadow?: undefined;
31
+ _dark?: undefined;
32
+ } | {
33
+ [x: string]: string | {
34
+ [x: string]: string;
35
+ };
36
+ _dark: {
37
+ [x: string]: string;
38
+ };
39
+ boxShadow?: undefined;
40
+ opacity?: undefined;
41
+ cursor?: undefined;
42
+ };
43
+ borderRadius: string;
44
+ p: string;
45
+ width: string[];
46
+ height: string[];
47
+ transitionProperty: string;
48
+ transitionDuration: string;
49
+ _dark: {
50
+ [x: string]: string;
51
+ };
52
+ _focusVisible: {
53
+ boxShadow: string;
54
+ };
55
+ _disabled: {
56
+ opacity: number;
57
+ cursor: string;
58
+ };
59
+ _checked: {
60
+ [x: string]: string | {
61
+ [x: string]: string;
62
+ };
63
+ _dark: {
64
+ [x: string]: string;
65
+ };
66
+ };
67
+ bg: string;
68
+ };
69
+ thumb: {
70
+ bg: string;
71
+ transitionProperty: string;
72
+ transitionDuration: string;
73
+ borderRadius: string;
74
+ width: string[];
75
+ height: string[];
76
+ _checked: {
77
+ transform: string;
78
+ };
79
+ };
80
+ } & {
81
+ track: {
82
+ overflow: string;
83
+ };
84
+ thumb: {
85
+ transition: string;
86
+ boxShadow: string;
87
+ _hover: {
88
+ boxShadow: string;
89
+ };
90
+ };
91
+ };
92
+ sizes?: {
93
+ sm: {
94
+ container: {
95
+ [x: string]: string;
96
+ };
97
+ };
98
+ md: {
99
+ container: {
100
+ [x: string]: string;
101
+ };
102
+ };
103
+ lg: {
104
+ container: {
105
+ [x: string]: string;
106
+ };
107
+ };
108
+ } | undefined;
109
+ variants?: {
110
+ [key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
111
+ keys: ("container" | "label" | "track" | "thumb")[];
112
+ }>;
113
+ } | undefined;
114
+ parts: ("container" | "label" | "track" | "thumb")[];
115
+ };
116
+ export default _default;
@@ -0,0 +1,69 @@
1
+ export namespace variants {
2
+ export { roundedWhiteVariant as rounded };
3
+ export { roundedGrayVariant as roundedGray };
4
+ }
5
+ declare namespace _default {
6
+ export { parts };
7
+ export { variants };
8
+ export { baseStyle };
9
+ export { defaultProps };
10
+ }
11
+ export default _default;
12
+ declare namespace roundedWhiteVariant {
13
+ namespace table {
14
+ let backgroundColor: string;
15
+ let borderRadius: number;
16
+ let boxShadow: string;
17
+ let marginBottom: number;
18
+ }
19
+ }
20
+ declare namespace roundedGrayVariant {
21
+ export namespace table_1 {
22
+ let backgroundColor_1: string;
23
+ export { backgroundColor_1 as backgroundColor };
24
+ }
25
+ export { table_1 as table };
26
+ }
27
+ declare const parts: string[];
28
+ declare namespace baseStyle {
29
+ export namespace table_2 {
30
+ let borderCollapse: string;
31
+ let color: string;
32
+ let width: string;
33
+ }
34
+ export { table_2 as table };
35
+ export namespace thead {
36
+ let borderBottom: string;
37
+ let borderColor: string;
38
+ }
39
+ export namespace th {
40
+ let fontFamily: string;
41
+ let fontSize: {
42
+ base: "1rem";
43
+ desktop: "1.25rem";
44
+ };
45
+ let fontWeight: string;
46
+ let letterSpacing: string;
47
+ let padding: number;
48
+ let textAlign: string;
49
+ let textTransform: string;
50
+ }
51
+ export namespace tr {
52
+ let borderBottom_1: string;
53
+ export { borderBottom_1 as borderBottom };
54
+ let borderColor_1: string;
55
+ export { borderColor_1 as borderColor };
56
+ export namespace _last {
57
+ let border: string;
58
+ }
59
+ }
60
+ export namespace td {
61
+ let padding_1: number;
62
+ export { padding_1 as padding };
63
+ let textAlign_1: string;
64
+ export { textAlign_1 as textAlign };
65
+ }
66
+ }
67
+ declare namespace defaultProps {
68
+ let variant: string;
69
+ }