@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.
- package/dist/components/Accordion/AccordionActionButton.d.ts +2 -1
- package/dist/components/Accordion/styles/index.d.ts +2 -2
- package/dist/components/Badge/styles/index.d.ts +78 -0
- package/dist/components/Button/Button.styles.d.ts +601 -0
- package/dist/components/Card/Card.d.ts +4 -0
- package/dist/components/Checkbox/styles/index.d.ts +200 -0
- package/dist/components/Container/Container.d.ts +4 -0
- package/dist/components/Container/Container.styles.d.ts +10 -0
- package/dist/components/Divider/Divider.d.ts +11 -0
- package/dist/components/Divider/Divider.styles.d.ts +40 -0
- package/dist/components/Drawer/styles/index.d.ts +149 -0
- package/dist/components/FormControl/FormControl.d.ts +13 -0
- package/dist/components/Grid/GridItem.styles.d.ts +4 -0
- package/dist/components/Heading/Heading.styles.d.ts +66 -0
- package/dist/components/Icon/Icon.d.ts +1 -1
- package/dist/components/Input/styles/index.d.ts +217 -0
- package/dist/components/Link/Link.styles.d.ts +102 -0
- package/dist/components/List/styles/index.d.ts +32 -0
- package/dist/components/List/styles/item.styles.d.ts +4 -0
- package/dist/components/Menu/Menu.styles.d.ts +258 -0
- package/dist/components/Modal/styles/body.d.ts +30 -0
- package/dist/components/Modal/styles/closeButton.d.ts +18 -0
- package/dist/components/Modal/styles/dialog.d.ts +16 -0
- package/dist/components/Modal/styles/dialogContainer.d.ts +12 -0
- package/dist/components/Modal/styles/footer.d.ts +6 -0
- package/dist/components/Modal/styles/header.d.ts +10 -0
- package/dist/components/Modal/styles/index.d.ts +227 -0
- package/dist/components/Modal/styles/overlay.d.ts +5 -0
- package/dist/components/Popover/styles/index.d.ts +100 -0
- package/dist/components/Popover/styles/popover-body.d.ts +4 -0
- package/dist/components/Popover/styles/popover-content.d.ts +20 -0
- package/dist/components/Popover/styles/popover-header.d.ts +5 -0
- package/dist/components/Popover/styles/popper.d.ts +4 -0
- package/dist/components/Progress/Progress.styles.d.ts +75 -0
- package/dist/components/Radio/styles/index.d.ts +292 -0
- package/dist/components/RefreshedInput/Button/styles/index.d.ts +413 -0
- package/dist/components/RefreshedInput/FormControl/index.d.ts +2 -1
- package/dist/components/RefreshedInput/Input/styles/index.d.ts +260 -0
- package/dist/components/RefreshedInput/Select/Select.d.ts +2 -1
- package/dist/components/Select/styles/index.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.styles.d.ts +26 -0
- package/dist/components/Spinner/Spinner.d.ts +12 -0
- package/dist/components/Spinner/Spinner.styles.d.ts +144 -0
- package/dist/components/Switch/styles/index.d.ts +116 -0
- package/dist/components/Table/Table.styles.d.ts +69 -0
- package/dist/components/Tabs/styles/index.d.ts +308 -0
- package/dist/components/Text/Text.styles.d.ts +30 -0
- package/dist/components/styles.d.ts +26 -0
- package/dist/index.cjs.js +1847 -745
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +248 -0
- package/dist/index.esm.js +1847 -745
- package/dist/index.esm.js.map +1 -1
- package/dist/theme/base/breakpoints.d.ts +6 -6
- package/dist/theme/base/colors.d.ts +106 -115
- package/dist/theme/base/index.d.ts +7 -7
- package/dist/theme/base/notifications.d.ts +80 -104
- package/dist/theme/base/sizes.d.ts +41 -41
- package/dist/theme/base/typography.d.ts +22 -22
- package/dist/theme/base/zindices.d.ts +15 -15
- package/dist/theme/global.d.ts +21 -0
- package/dist/theme/index.d.ts +2 -0
- package/package.json +14 -9
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle?: ((props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
3
|
+
overlay: {
|
|
4
|
+
bg: string;
|
|
5
|
+
zIndex: string;
|
|
6
|
+
};
|
|
7
|
+
dialogContainer: {
|
|
8
|
+
display: string;
|
|
9
|
+
zIndex: string;
|
|
10
|
+
justifyContent: string;
|
|
11
|
+
alignItems: string;
|
|
12
|
+
overflow: string;
|
|
13
|
+
overscrollBehaviorY: string;
|
|
14
|
+
};
|
|
15
|
+
dialog: {
|
|
16
|
+
[x: string]: string | {
|
|
17
|
+
[x: string]: string;
|
|
18
|
+
} | undefined;
|
|
19
|
+
borderRadius: string;
|
|
20
|
+
color: string;
|
|
21
|
+
my: string;
|
|
22
|
+
mx: string | undefined;
|
|
23
|
+
zIndex: string;
|
|
24
|
+
maxH: string | undefined;
|
|
25
|
+
_dark: {
|
|
26
|
+
[x: string]: string;
|
|
27
|
+
};
|
|
28
|
+
bg: string;
|
|
29
|
+
boxShadow: string;
|
|
30
|
+
};
|
|
31
|
+
header: {
|
|
32
|
+
px: string;
|
|
33
|
+
py: string;
|
|
34
|
+
fontSize: string;
|
|
35
|
+
fontWeight: string;
|
|
36
|
+
};
|
|
37
|
+
closeButton: {
|
|
38
|
+
position: string;
|
|
39
|
+
top: string;
|
|
40
|
+
insetEnd: string;
|
|
41
|
+
};
|
|
42
|
+
body: {
|
|
43
|
+
px: string;
|
|
44
|
+
py: string;
|
|
45
|
+
flex: string;
|
|
46
|
+
overflow: string | undefined;
|
|
47
|
+
};
|
|
48
|
+
footer: {
|
|
49
|
+
px: string;
|
|
50
|
+
py: string;
|
|
51
|
+
};
|
|
52
|
+
}) | undefined;
|
|
53
|
+
sizes?: {
|
|
54
|
+
xs: {
|
|
55
|
+
dialog: {
|
|
56
|
+
maxW: string;
|
|
57
|
+
};
|
|
58
|
+
};
|
|
59
|
+
sm: {
|
|
60
|
+
dialog: {
|
|
61
|
+
maxW: string;
|
|
62
|
+
};
|
|
63
|
+
};
|
|
64
|
+
md: {
|
|
65
|
+
dialog: {
|
|
66
|
+
maxW: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
lg: {
|
|
70
|
+
dialog: {
|
|
71
|
+
maxW: string;
|
|
72
|
+
};
|
|
73
|
+
};
|
|
74
|
+
xl: {
|
|
75
|
+
dialog: {
|
|
76
|
+
maxW: string;
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
"2xl": {
|
|
80
|
+
dialog: {
|
|
81
|
+
maxW: string;
|
|
82
|
+
};
|
|
83
|
+
};
|
|
84
|
+
"3xl": {
|
|
85
|
+
dialog: {
|
|
86
|
+
maxW: string;
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
"4xl": {
|
|
90
|
+
dialog: {
|
|
91
|
+
maxW: string;
|
|
92
|
+
};
|
|
93
|
+
};
|
|
94
|
+
"5xl": {
|
|
95
|
+
dialog: {
|
|
96
|
+
maxW: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
"6xl": {
|
|
100
|
+
dialog: {
|
|
101
|
+
maxW: string;
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
full: {
|
|
105
|
+
dialog: {
|
|
106
|
+
maxW: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
} | undefined;
|
|
110
|
+
variants?: {
|
|
111
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
112
|
+
keys: ("overlay" | "dialogContainer" | "dialog" | "header" | "closeButton" | "body" | "footer")[];
|
|
113
|
+
}>;
|
|
114
|
+
} | undefined;
|
|
115
|
+
defaultProps?: {
|
|
116
|
+
size?: "md" | "full" | "xs" | "sm" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | undefined;
|
|
117
|
+
variant?: string | number | undefined;
|
|
118
|
+
colorScheme?: string | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
parts: ("overlay" | "dialogContainer" | "dialog" | "header" | "closeButton" | "body" | "footer")[];
|
|
121
|
+
} & {
|
|
122
|
+
baseStyle: (props: any) => {
|
|
123
|
+
overlay: {
|
|
124
|
+
background: string;
|
|
125
|
+
zIndex: string;
|
|
126
|
+
};
|
|
127
|
+
dialogContainer: {
|
|
128
|
+
display: string;
|
|
129
|
+
zIndex: string;
|
|
130
|
+
justifyContent: string;
|
|
131
|
+
alignItems: {
|
|
132
|
+
base: string;
|
|
133
|
+
tablet: string;
|
|
134
|
+
};
|
|
135
|
+
height: string;
|
|
136
|
+
minHeight: string;
|
|
137
|
+
};
|
|
138
|
+
header: {
|
|
139
|
+
padding: number;
|
|
140
|
+
fontSize: string;
|
|
141
|
+
fontWeight: string;
|
|
142
|
+
minHeight: number | null;
|
|
143
|
+
};
|
|
144
|
+
dialog: {
|
|
145
|
+
borderRadius: string;
|
|
146
|
+
borderBottomRadius: {
|
|
147
|
+
base: string;
|
|
148
|
+
tablet: string;
|
|
149
|
+
};
|
|
150
|
+
background: string;
|
|
151
|
+
color: string;
|
|
152
|
+
marginY: number;
|
|
153
|
+
zIndex: string;
|
|
154
|
+
boxShadow: string;
|
|
155
|
+
paddingBottom: number;
|
|
156
|
+
};
|
|
157
|
+
closeButton: {
|
|
158
|
+
position: string;
|
|
159
|
+
top: number;
|
|
160
|
+
insetEnd: number;
|
|
161
|
+
color: string;
|
|
162
|
+
borderRadius: string;
|
|
163
|
+
width: number;
|
|
164
|
+
height: number;
|
|
165
|
+
_focus: {
|
|
166
|
+
boxShadow: string;
|
|
167
|
+
};
|
|
168
|
+
_hover: {
|
|
169
|
+
bg: string;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
body: {
|
|
173
|
+
background: string;
|
|
174
|
+
backgroundRepeat: string;
|
|
175
|
+
backgroundColor: string;
|
|
176
|
+
backgroundSize: string;
|
|
177
|
+
backgroundAttachment: string;
|
|
178
|
+
borderBottomRadius: string | null;
|
|
179
|
+
paddingX: number;
|
|
180
|
+
paddingBottom: number;
|
|
181
|
+
flex: number;
|
|
182
|
+
overflow: string;
|
|
183
|
+
display: string;
|
|
184
|
+
} | {
|
|
185
|
+
background?: undefined;
|
|
186
|
+
backgroundRepeat?: undefined;
|
|
187
|
+
backgroundColor?: undefined;
|
|
188
|
+
backgroundSize?: undefined;
|
|
189
|
+
backgroundAttachment?: undefined;
|
|
190
|
+
borderBottomRadius: string | null;
|
|
191
|
+
paddingX: number;
|
|
192
|
+
paddingBottom: number;
|
|
193
|
+
flex: number;
|
|
194
|
+
overflow: string;
|
|
195
|
+
display: string;
|
|
196
|
+
};
|
|
197
|
+
footer: {
|
|
198
|
+
borderTop: string;
|
|
199
|
+
borderColor: string;
|
|
200
|
+
padding: number;
|
|
201
|
+
};
|
|
202
|
+
};
|
|
203
|
+
sizes: {
|
|
204
|
+
sm: {
|
|
205
|
+
dialog: {
|
|
206
|
+
maxWidth: string[];
|
|
207
|
+
maxHeight: string[];
|
|
208
|
+
minHeight: string[];
|
|
209
|
+
};
|
|
210
|
+
};
|
|
211
|
+
md: {
|
|
212
|
+
dialog: {
|
|
213
|
+
maxWidth: string[];
|
|
214
|
+
maxHeight: string[];
|
|
215
|
+
minHeight: string[];
|
|
216
|
+
};
|
|
217
|
+
};
|
|
218
|
+
lg: {
|
|
219
|
+
dialog: {
|
|
220
|
+
maxWidth: string[];
|
|
221
|
+
maxHeight: string[];
|
|
222
|
+
minHeight: string[];
|
|
223
|
+
};
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
};
|
|
227
|
+
export default _default;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle?: {
|
|
3
|
+
popper: {
|
|
4
|
+
zIndex: number;
|
|
5
|
+
};
|
|
6
|
+
content: {
|
|
7
|
+
[x: string]: string | {
|
|
8
|
+
[x: string]: string;
|
|
9
|
+
outline?: undefined;
|
|
10
|
+
boxShadow?: undefined;
|
|
11
|
+
} | {
|
|
12
|
+
outline: number;
|
|
13
|
+
boxShadow: string;
|
|
14
|
+
};
|
|
15
|
+
bg: string;
|
|
16
|
+
_dark: {
|
|
17
|
+
[x: string]: string;
|
|
18
|
+
};
|
|
19
|
+
width: string;
|
|
20
|
+
border: string;
|
|
21
|
+
borderColor: string;
|
|
22
|
+
borderRadius: string;
|
|
23
|
+
boxShadow: string;
|
|
24
|
+
zIndex: string;
|
|
25
|
+
_focusVisible: {
|
|
26
|
+
outline: number;
|
|
27
|
+
boxShadow: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
header: {
|
|
31
|
+
px: number;
|
|
32
|
+
py: number;
|
|
33
|
+
borderBottomWidth: string;
|
|
34
|
+
};
|
|
35
|
+
body: {
|
|
36
|
+
px: number;
|
|
37
|
+
py: number;
|
|
38
|
+
};
|
|
39
|
+
footer: {
|
|
40
|
+
px: number;
|
|
41
|
+
py: number;
|
|
42
|
+
borderTopWidth: string;
|
|
43
|
+
};
|
|
44
|
+
closeButton: {
|
|
45
|
+
position: string;
|
|
46
|
+
borderRadius: string;
|
|
47
|
+
top: number;
|
|
48
|
+
insetEnd: number;
|
|
49
|
+
padding: number;
|
|
50
|
+
};
|
|
51
|
+
} | undefined;
|
|
52
|
+
sizes?: {
|
|
53
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
54
|
+
keys: ("content" | "header" | "closeButton" | "body" | "footer" | "popper" | "arrow")[];
|
|
55
|
+
}>;
|
|
56
|
+
} | undefined;
|
|
57
|
+
variants?: {
|
|
58
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
59
|
+
keys: ("content" | "header" | "closeButton" | "body" | "footer" | "popper" | "arrow")[];
|
|
60
|
+
}>;
|
|
61
|
+
} | undefined;
|
|
62
|
+
defaultProps?: {
|
|
63
|
+
size?: string | number | undefined;
|
|
64
|
+
variant?: string | number | undefined;
|
|
65
|
+
colorScheme?: string | undefined;
|
|
66
|
+
} | undefined;
|
|
67
|
+
parts: ("content" | "header" | "closeButton" | "body" | "footer" | "popper" | "arrow")[];
|
|
68
|
+
} & {
|
|
69
|
+
parts: string[];
|
|
70
|
+
baseStyle: (props: any) => {
|
|
71
|
+
header: {
|
|
72
|
+
marginBottom: number;
|
|
73
|
+
fontWeight: string;
|
|
74
|
+
};
|
|
75
|
+
content: {
|
|
76
|
+
padding: number;
|
|
77
|
+
marginBottom: number;
|
|
78
|
+
maxWidth: string;
|
|
79
|
+
borderRadius: string;
|
|
80
|
+
background: string;
|
|
81
|
+
boxShadow: string;
|
|
82
|
+
color: string;
|
|
83
|
+
borderColor: string;
|
|
84
|
+
borderWidth: string;
|
|
85
|
+
borderStyle: string;
|
|
86
|
+
'--popper-arrow-shadow-color': (t: any) => any;
|
|
87
|
+
zIndex: string;
|
|
88
|
+
_focusVisible: {
|
|
89
|
+
outline: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
body: {
|
|
93
|
+
fontSize: string;
|
|
94
|
+
};
|
|
95
|
+
popper: {
|
|
96
|
+
borderRadius: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
export default _default;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export default popoverContentStyles;
|
|
2
|
+
declare function popoverContentStyles({ variant }: {
|
|
3
|
+
variant: any;
|
|
4
|
+
}): {
|
|
5
|
+
padding: number;
|
|
6
|
+
marginBottom: number;
|
|
7
|
+
maxWidth: string;
|
|
8
|
+
borderRadius: string;
|
|
9
|
+
background: string;
|
|
10
|
+
boxShadow: string;
|
|
11
|
+
color: string;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
borderWidth: string;
|
|
14
|
+
borderStyle: string;
|
|
15
|
+
'--popper-arrow-shadow-color': (t: any) => any;
|
|
16
|
+
zIndex: string;
|
|
17
|
+
_focusVisible: {
|
|
18
|
+
outline: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
defaultProps: {
|
|
3
|
+
size: string;
|
|
4
|
+
colorScheme: string;
|
|
5
|
+
variant: string;
|
|
6
|
+
};
|
|
7
|
+
variants: {
|
|
8
|
+
outlined: (props: any) => {
|
|
9
|
+
track: {
|
|
10
|
+
bg: string;
|
|
11
|
+
borderWidth: string;
|
|
12
|
+
borderColor: any;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
solid: (props: any) => {
|
|
16
|
+
track: {
|
|
17
|
+
bg: any;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
sizes: {
|
|
22
|
+
xl: {
|
|
23
|
+
track: {
|
|
24
|
+
height: number;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
lg: {
|
|
28
|
+
track: {
|
|
29
|
+
height: number;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
md: {
|
|
33
|
+
track: {
|
|
34
|
+
height: number;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
sm: {
|
|
38
|
+
track: {
|
|
39
|
+
height: number;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
xs: {
|
|
43
|
+
track: {
|
|
44
|
+
height: number;
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
baseStyle: (props: any) => {
|
|
49
|
+
label: {
|
|
50
|
+
lineHeight: string;
|
|
51
|
+
fontSize: string;
|
|
52
|
+
fontWeight: string;
|
|
53
|
+
color: string;
|
|
54
|
+
};
|
|
55
|
+
filledTrack: any;
|
|
56
|
+
track: {
|
|
57
|
+
bg: string;
|
|
58
|
+
};
|
|
59
|
+
} & {
|
|
60
|
+
filledTrack: {
|
|
61
|
+
backgroundImage: string;
|
|
62
|
+
borderRightRadius: string;
|
|
63
|
+
} | {
|
|
64
|
+
backgroundColor: any;
|
|
65
|
+
backgroundImage?: string | undefined;
|
|
66
|
+
borderRightRadius: string;
|
|
67
|
+
};
|
|
68
|
+
track: {
|
|
69
|
+
borderRightRadius: string;
|
|
70
|
+
borderLeftRadius: string;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
parts: ("label" | "filledTrack" | "track")[];
|
|
74
|
+
};
|
|
75
|
+
export default _default;
|