@spothero/ui 25.12.0 → 25.16.0-beta.2
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 +6 -2
- package/dist/components/Button/Button.styles.d.ts +46 -0
- package/dist/components/Menu/Menu.d.ts +6 -0
- package/dist/components/Menu/Menu.styles.d.ts +4 -258
- package/dist/components/Menu/index.d.ts +2 -0
- package/dist/components/Modal/AlwaysMountedModal.d.ts +7 -0
- package/dist/components/Modal/Modal.d.ts +17 -0
- package/dist/components/Modal/index.d.ts +3 -0
- package/dist/components/Modal/styles/body.d.ts +3 -6
- package/dist/components/Modal/styles/closeButton.d.ts +3 -4
- package/dist/components/Modal/styles/dialog.d.ts +3 -4
- package/dist/components/Modal/styles/dialogContainer.d.ts +12 -12
- package/dist/components/Modal/styles/footer.d.ts +13 -12
- package/dist/components/Modal/styles/header.d.ts +4 -6
- package/dist/components/Modal/styles/index.d.ts +4 -240
- package/dist/components/Modal/styles/overlay.d.ts +5 -5
- package/dist/components/Modal/types.d.ts +6 -0
- package/dist/components/Popover/Popover.d.ts +10 -0
- package/dist/components/Popover/PopoverArrow.d.ts +7 -0
- package/dist/components/Popover/PopoverCloseButton.d.ts +7 -0
- package/dist/components/Popover/PopoverContent.d.ts +15 -0
- package/dist/components/Popover/index.d.ts +4 -0
- package/dist/components/Popover/styles/index.d.ts +4 -100
- package/dist/components/Popover/styles/popover-arrow.d.ts +5 -0
- package/dist/components/Popover/styles/popover-body.d.ts +3 -2
- package/dist/components/Popover/styles/popover-close-button.d.ts +18 -0
- package/dist/components/Popover/styles/popover-content.d.ts +8 -5
- package/dist/components/Popover/styles/popover-header.d.ts +4 -4
- package/dist/components/Popover/styles/popper.d.ts +3 -3
- package/dist/components/Popover/types.d.ts +4 -0
- package/dist/components/SelectionCard/SelectionCard.d.ts +20 -0
- package/dist/components/SelectionCard/index.d.ts +1 -0
- package/dist/components/Table/Table.d.ts +1 -0
- package/dist/components/Table/Table.styles.d.ts +73 -65
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Tabs/Tabs.d.ts +10 -0
- package/dist/components/Tabs/combineSizeWithVariant.d.ts +120 -0
- package/dist/components/Tabs/index.d.ts +2 -0
- package/dist/components/Tabs/styles/index.d.ts +52 -298
- package/dist/components/ThemeProvider/ThemeProvider.d.ts +17 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.d.ts +27 -0
- package/dist/components/ToggleButtonGroup/index.d.ts +1 -0
- package/dist/components/ToggleButtonGroup/styles/index.d.ts +5 -0
- package/dist/index.cjs.js +743 -1039
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +143 -29
- package/dist/index.esm.js +743 -1039
- package/dist/index.esm.js.map +1 -1
- package/dist/utils/Spaces.d.ts +8 -0
- package/package.json +7 -5
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { type TabsProps as ChakraTabsProps } from '@chakra-ui/react';
|
|
2
|
+
import type { ForwardRefComponent } from '../../types/forwardRefComponent';
|
|
3
|
+
import { SIZE_BODY, SIZE_HEADING, SIZE_SMALL, type TabsSize } from './combineSizeWithVariant';
|
|
4
|
+
export interface TabsProps extends Omit<ChakraTabsProps, 'size'> {
|
|
5
|
+
/** Controls the size of Tabs */
|
|
6
|
+
size?: TabsSize;
|
|
7
|
+
}
|
|
8
|
+
declare const Tabs: ForwardRefComponent<HTMLDivElement, TabsProps>;
|
|
9
|
+
export default Tabs;
|
|
10
|
+
export { SIZE_BODY, SIZE_HEADING, SIZE_SMALL };
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { variants } from './styles/index';
|
|
2
|
+
export declare const SIZE_SMALL = "small";
|
|
3
|
+
export declare const SIZE_BODY = "body";
|
|
4
|
+
export declare const SIZE_HEADING = "heading";
|
|
5
|
+
export type TabsSize = typeof SIZE_SMALL | typeof SIZE_BODY | typeof SIZE_HEADING;
|
|
6
|
+
export type TabsVariant = keyof typeof variants;
|
|
7
|
+
/**
|
|
8
|
+
* ### `combineSizeWithVariant`
|
|
9
|
+
* A function that takes in the `size` value, and the
|
|
10
|
+
* `variant` value. The default-like styling for the `size` prop is merged with the styling from the
|
|
11
|
+
* `variant` and a combined styleProp object is returned.
|
|
12
|
+
*
|
|
13
|
+
* @function combineSizeWithVariant
|
|
14
|
+
* @param {string} args.size - The size of Tabs component
|
|
15
|
+
* @param {string} args.variant - The style variant for the Text component
|
|
16
|
+
* @returns {Object} An object containing the merged styleProps from the `variant` and the `size` props
|
|
17
|
+
*/
|
|
18
|
+
type CombineSizeWithVariantArgs = {
|
|
19
|
+
size: TabsSize;
|
|
20
|
+
variant?: TabsVariant;
|
|
21
|
+
};
|
|
22
|
+
declare const combineSizeWithVariant: ({ size, variant, }: CombineSizeWithVariantArgs) => {
|
|
23
|
+
tab: {
|
|
24
|
+
fontSize: "1.25rem" | "1rem" | "0.75rem";
|
|
25
|
+
color: "gray.600";
|
|
26
|
+
borderBottom: "2px solid";
|
|
27
|
+
borderColor: "transparent";
|
|
28
|
+
marginBottom: "-2px";
|
|
29
|
+
_selected: {
|
|
30
|
+
readonly color: "primary.default";
|
|
31
|
+
readonly borderColor: "primary.default";
|
|
32
|
+
readonly fontWeight: "semibold";
|
|
33
|
+
};
|
|
34
|
+
_active: {
|
|
35
|
+
readonly color: "black";
|
|
36
|
+
readonly bg: "transparent";
|
|
37
|
+
};
|
|
38
|
+
_disabled: {
|
|
39
|
+
readonly opacity: 0.4;
|
|
40
|
+
readonly cursor: "not-allowed";
|
|
41
|
+
};
|
|
42
|
+
_hover: {
|
|
43
|
+
readonly color: "black";
|
|
44
|
+
};
|
|
45
|
+
} | {
|
|
46
|
+
fontSize: "1.25rem" | "1rem" | "0.75rem";
|
|
47
|
+
borderRadius: "6px";
|
|
48
|
+
marginX: 1;
|
|
49
|
+
_selected: {
|
|
50
|
+
readonly fontWeight: "semibold";
|
|
51
|
+
readonly color: "white";
|
|
52
|
+
readonly backgroundColor: "primary.default";
|
|
53
|
+
readonly _hover: {
|
|
54
|
+
readonly backgroundColor: "primary.600";
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
_active: {
|
|
58
|
+
readonly backgroundColor: "gray.200";
|
|
59
|
+
};
|
|
60
|
+
_disabled: {
|
|
61
|
+
readonly opacity: 0.4;
|
|
62
|
+
readonly cursor: "not-allowed";
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
tablist: {
|
|
66
|
+
readonly borderBottom: "2px solid";
|
|
67
|
+
readonly borderColor: "inherit";
|
|
68
|
+
};
|
|
69
|
+
} | {
|
|
70
|
+
tab: {
|
|
71
|
+
fontSize: "1.25rem" | "1rem" | "0.75rem";
|
|
72
|
+
color: "gray.600";
|
|
73
|
+
borderBottom: "2px solid";
|
|
74
|
+
borderColor: "transparent";
|
|
75
|
+
marginBottom: "-2px";
|
|
76
|
+
_selected: {
|
|
77
|
+
readonly color: "primary.default";
|
|
78
|
+
readonly borderColor: "primary.default";
|
|
79
|
+
readonly fontWeight: "semibold";
|
|
80
|
+
};
|
|
81
|
+
_active: {
|
|
82
|
+
readonly color: "black";
|
|
83
|
+
readonly bg: "transparent";
|
|
84
|
+
};
|
|
85
|
+
_disabled: {
|
|
86
|
+
readonly opacity: 0.4;
|
|
87
|
+
readonly cursor: "not-allowed";
|
|
88
|
+
};
|
|
89
|
+
_hover: {
|
|
90
|
+
readonly color: "black";
|
|
91
|
+
};
|
|
92
|
+
} | {
|
|
93
|
+
fontSize: "1.25rem" | "1rem" | "0.75rem";
|
|
94
|
+
borderRadius: "6px";
|
|
95
|
+
marginX: 1;
|
|
96
|
+
_selected: {
|
|
97
|
+
readonly fontWeight: "semibold";
|
|
98
|
+
readonly color: "white";
|
|
99
|
+
readonly backgroundColor: "primary.default";
|
|
100
|
+
readonly _hover: {
|
|
101
|
+
readonly backgroundColor: "primary.600";
|
|
102
|
+
};
|
|
103
|
+
};
|
|
104
|
+
_active: {
|
|
105
|
+
readonly backgroundColor: "gray.200";
|
|
106
|
+
};
|
|
107
|
+
_disabled: {
|
|
108
|
+
readonly opacity: 0.4;
|
|
109
|
+
readonly cursor: "not-allowed";
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
tablist: {
|
|
113
|
+
readonly backgroundColor: "white";
|
|
114
|
+
readonly borderRadius: "8px";
|
|
115
|
+
readonly borderColor: "gray.200";
|
|
116
|
+
readonly borderWidth: "1px";
|
|
117
|
+
readonly paddingY: 1;
|
|
118
|
+
};
|
|
119
|
+
};
|
|
120
|
+
export default combineSizeWithVariant;
|
|
@@ -1,308 +1,62 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
sm: {
|
|
29
|
-
tab: {
|
|
30
|
-
py: number;
|
|
31
|
-
px: number;
|
|
32
|
-
fontSize: string;
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
2
|
+
export declare const variants: {
|
|
3
|
+
readonly line: {
|
|
4
|
+
readonly tablist: {
|
|
5
|
+
readonly borderBottom: "2px solid";
|
|
6
|
+
readonly borderColor: "inherit";
|
|
7
|
+
};
|
|
8
|
+
readonly tab: {
|
|
9
|
+
readonly color: "gray.600";
|
|
10
|
+
readonly borderBottom: "2px solid";
|
|
11
|
+
readonly borderColor: "transparent";
|
|
12
|
+
readonly marginBottom: "-2px";
|
|
13
|
+
readonly _selected: {
|
|
14
|
+
readonly color: "primary.default";
|
|
15
|
+
readonly borderColor: "primary.default";
|
|
16
|
+
readonly fontWeight: "semibold";
|
|
17
|
+
};
|
|
18
|
+
readonly _active: {
|
|
19
|
+
readonly color: "black";
|
|
20
|
+
readonly bg: "transparent";
|
|
21
|
+
};
|
|
22
|
+
readonly _disabled: {
|
|
23
|
+
readonly opacity: 0.4;
|
|
24
|
+
readonly cursor: "not-allowed";
|
|
25
|
+
};
|
|
26
|
+
readonly _hover: {
|
|
27
|
+
readonly color: "black";
|
|
33
28
|
};
|
|
34
29
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
tab: {
|
|
44
|
-
fontSize: string;
|
|
45
|
-
py: number;
|
|
46
|
-
px: number;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
} | undefined;
|
|
50
|
-
variants?: {
|
|
51
|
-
line: (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
52
|
-
tablist: {
|
|
53
|
-
[x: string]: string;
|
|
54
|
-
borderColor: string;
|
|
55
|
-
};
|
|
56
|
-
tab: {
|
|
57
|
-
[x: string]: string | {
|
|
58
|
-
[x: string]: string | {
|
|
59
|
-
[x: string]: string;
|
|
60
|
-
};
|
|
61
|
-
_dark: {
|
|
62
|
-
[x: string]: string;
|
|
63
|
-
};
|
|
64
|
-
borderColor: string;
|
|
65
|
-
_active?: undefined;
|
|
66
|
-
} | {
|
|
67
|
-
[x: string]: string | {
|
|
68
|
-
[x: string]: string;
|
|
69
|
-
};
|
|
70
|
-
_dark: {
|
|
71
|
-
[x: string]: string;
|
|
72
|
-
};
|
|
73
|
-
borderColor?: undefined;
|
|
74
|
-
_active?: undefined;
|
|
75
|
-
} | {
|
|
76
|
-
_active: {
|
|
77
|
-
bg: string;
|
|
78
|
-
};
|
|
79
|
-
_dark?: undefined;
|
|
80
|
-
borderColor?: undefined;
|
|
81
|
-
};
|
|
82
|
-
borderColor: string;
|
|
83
|
-
_selected: {
|
|
84
|
-
[x: string]: string | {
|
|
85
|
-
[x: string]: string;
|
|
86
|
-
};
|
|
87
|
-
_dark: {
|
|
88
|
-
[x: string]: string;
|
|
89
|
-
};
|
|
90
|
-
borderColor: string;
|
|
91
|
-
};
|
|
92
|
-
_active: {
|
|
93
|
-
[x: string]: string | {
|
|
94
|
-
[x: string]: string;
|
|
95
|
-
};
|
|
96
|
-
_dark: {
|
|
97
|
-
[x: string]: string;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
_disabled: {
|
|
101
|
-
_active: {
|
|
102
|
-
bg: string;
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
color: string;
|
|
106
|
-
bg: string;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
enclosed: (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
110
|
-
tab: {
|
|
111
|
-
[x: string]: string | {
|
|
112
|
-
[x: string]: string | {
|
|
113
|
-
[x: string]: string;
|
|
114
|
-
};
|
|
115
|
-
_dark: {
|
|
116
|
-
[x: string]: string;
|
|
117
|
-
};
|
|
118
|
-
borderColor: string;
|
|
119
|
-
borderBottomColor: string;
|
|
120
|
-
};
|
|
121
|
-
borderTopRadius: string;
|
|
122
|
-
border: string;
|
|
123
|
-
borderColor: string;
|
|
124
|
-
mb: string;
|
|
125
|
-
_selected: {
|
|
126
|
-
[x: string]: string | {
|
|
127
|
-
[x: string]: string;
|
|
128
|
-
};
|
|
129
|
-
_dark: {
|
|
130
|
-
[x: string]: string;
|
|
131
|
-
};
|
|
132
|
-
borderColor: string;
|
|
133
|
-
borderBottomColor: string;
|
|
134
|
-
};
|
|
135
|
-
color: string;
|
|
136
|
-
};
|
|
137
|
-
tablist: {
|
|
138
|
-
mb: string;
|
|
139
|
-
borderBottom: string;
|
|
140
|
-
borderColor: string;
|
|
141
|
-
};
|
|
142
|
-
};
|
|
143
|
-
"enclosed-colored": (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
144
|
-
tab: {
|
|
145
|
-
[x: string]: string | {
|
|
146
|
-
[x: string]: string;
|
|
147
|
-
marginEnd?: undefined;
|
|
148
|
-
_dark?: undefined;
|
|
149
|
-
borderColor?: undefined;
|
|
150
|
-
borderTopColor?: undefined;
|
|
151
|
-
borderBottomColor?: undefined;
|
|
152
|
-
} | {
|
|
153
|
-
marginEnd: string;
|
|
154
|
-
_dark?: undefined;
|
|
155
|
-
borderColor?: undefined;
|
|
156
|
-
borderTopColor?: undefined;
|
|
157
|
-
borderBottomColor?: undefined;
|
|
158
|
-
} | {
|
|
159
|
-
[x: string]: string | {
|
|
160
|
-
[x: string]: string;
|
|
161
|
-
};
|
|
162
|
-
_dark: {
|
|
163
|
-
[x: string]: string;
|
|
164
|
-
};
|
|
165
|
-
borderColor: string;
|
|
166
|
-
borderTopColor: string;
|
|
167
|
-
borderBottomColor: string;
|
|
168
|
-
marginEnd?: undefined;
|
|
169
|
-
};
|
|
170
|
-
border: string;
|
|
171
|
-
borderColor: string;
|
|
172
|
-
_dark: {
|
|
173
|
-
[x: string]: string;
|
|
174
|
-
};
|
|
175
|
-
mb: string;
|
|
176
|
-
_notLast: {
|
|
177
|
-
marginEnd: string;
|
|
178
|
-
};
|
|
179
|
-
_selected: {
|
|
180
|
-
[x: string]: string | {
|
|
181
|
-
[x: string]: string;
|
|
182
|
-
};
|
|
183
|
-
_dark: {
|
|
184
|
-
[x: string]: string;
|
|
185
|
-
};
|
|
186
|
-
borderColor: string;
|
|
187
|
-
borderTopColor: string;
|
|
188
|
-
borderBottomColor: string;
|
|
189
|
-
};
|
|
190
|
-
color: string;
|
|
191
|
-
bg: string;
|
|
192
|
-
};
|
|
193
|
-
tablist: {
|
|
194
|
-
mb: string;
|
|
195
|
-
borderBottom: string;
|
|
196
|
-
borderColor: string;
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
"soft-rounded": (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
200
|
-
tab: {
|
|
201
|
-
borderRadius: string;
|
|
202
|
-
fontWeight: string;
|
|
203
|
-
color: string;
|
|
204
|
-
_selected: {
|
|
205
|
-
color: any;
|
|
206
|
-
bg: any;
|
|
207
|
-
};
|
|
208
|
-
};
|
|
209
|
-
};
|
|
210
|
-
"solid-rounded": (props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
211
|
-
tab: {
|
|
212
|
-
[x: string]: string | {
|
|
213
|
-
[x: string]: string;
|
|
214
|
-
_dark?: undefined;
|
|
215
|
-
} | {
|
|
216
|
-
[x: string]: string | {
|
|
217
|
-
[x: string]: string;
|
|
218
|
-
};
|
|
219
|
-
_dark: {
|
|
220
|
-
[x: string]: string;
|
|
221
|
-
};
|
|
222
|
-
};
|
|
223
|
-
borderRadius: string;
|
|
224
|
-
fontWeight: string;
|
|
225
|
-
_dark: {
|
|
226
|
-
[x: string]: string;
|
|
227
|
-
};
|
|
228
|
-
_selected: {
|
|
229
|
-
[x: string]: string | {
|
|
230
|
-
[x: string]: string;
|
|
231
|
-
};
|
|
232
|
-
_dark: {
|
|
233
|
-
[x: string]: string;
|
|
234
|
-
};
|
|
235
|
-
};
|
|
236
|
-
color: string;
|
|
237
|
-
bg: string;
|
|
238
|
-
};
|
|
30
|
+
};
|
|
31
|
+
readonly enclosed: {
|
|
32
|
+
readonly tablist: {
|
|
33
|
+
readonly backgroundColor: "white";
|
|
34
|
+
readonly borderRadius: "8px";
|
|
35
|
+
readonly borderColor: "gray.200";
|
|
36
|
+
readonly borderWidth: "1px";
|
|
37
|
+
readonly paddingY: 1;
|
|
239
38
|
};
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
variants: {
|
|
250
|
-
line: {
|
|
251
|
-
tablist: {
|
|
252
|
-
borderBottom: string;
|
|
253
|
-
borderColor: string;
|
|
254
|
-
};
|
|
255
|
-
tab: {
|
|
256
|
-
color: string;
|
|
257
|
-
borderBottom: string;
|
|
258
|
-
borderColor: string;
|
|
259
|
-
marginBottom: string;
|
|
260
|
-
_selected: {
|
|
261
|
-
color: string;
|
|
262
|
-
borderColor: string;
|
|
263
|
-
fontWeight: string;
|
|
264
|
-
};
|
|
265
|
-
_active: {
|
|
266
|
-
color: string;
|
|
267
|
-
bg: string;
|
|
268
|
-
};
|
|
269
|
-
_disabled: {
|
|
270
|
-
opacity: number;
|
|
271
|
-
cursor: string;
|
|
272
|
-
};
|
|
273
|
-
_hover: {
|
|
274
|
-
color: string;
|
|
39
|
+
readonly tab: {
|
|
40
|
+
readonly borderRadius: "6px";
|
|
41
|
+
readonly marginX: 1;
|
|
42
|
+
readonly _selected: {
|
|
43
|
+
readonly fontWeight: "semibold";
|
|
44
|
+
readonly color: "white";
|
|
45
|
+
readonly backgroundColor: "primary.default";
|
|
46
|
+
readonly _hover: {
|
|
47
|
+
readonly backgroundColor: "primary.600";
|
|
275
48
|
};
|
|
276
49
|
};
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
tablist: {
|
|
280
|
-
backgroundColor: string;
|
|
281
|
-
borderRadius: string;
|
|
282
|
-
borederColor: string;
|
|
283
|
-
borderWidth: string;
|
|
284
|
-
paddingY: number;
|
|
50
|
+
readonly _active: {
|
|
51
|
+
readonly backgroundColor: "gray.200";
|
|
285
52
|
};
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
_selected: {
|
|
290
|
-
fontWeight: string;
|
|
291
|
-
color: string;
|
|
292
|
-
backgroundColor: string;
|
|
293
|
-
_hover: {
|
|
294
|
-
backgroundColor: string;
|
|
295
|
-
};
|
|
296
|
-
};
|
|
297
|
-
_active: {
|
|
298
|
-
backgroundColor: string;
|
|
299
|
-
};
|
|
300
|
-
_disabled: {
|
|
301
|
-
opacity: number;
|
|
302
|
-
cursor: string;
|
|
303
|
-
};
|
|
53
|
+
readonly _disabled: {
|
|
54
|
+
readonly opacity: 0.4;
|
|
55
|
+
readonly cursor: "not-allowed";
|
|
304
56
|
};
|
|
305
57
|
};
|
|
306
58
|
};
|
|
307
59
|
};
|
|
308
|
-
|
|
60
|
+
type TabsStyle = NonNullable<typeof chakraDefaultTheme.components.Tabs>;
|
|
61
|
+
declare const tabsStyle: TabsStyle;
|
|
62
|
+
export default tabsStyle;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ChakraProviderProps } from '@chakra-ui/react';
|
|
3
|
+
export interface ThemeProviderProps extends Omit<ChakraProviderProps, 'theme'> {
|
|
4
|
+
/** Adds additional theming on top of SpotHero's default configuration */
|
|
5
|
+
theme?: ChakraProviderProps['theme'];
|
|
6
|
+
/** If true, this will use the old `spothero-html` base styles */
|
|
7
|
+
useLegacyOverrides?: boolean;
|
|
8
|
+
/** If true, this will not load the `Fonts` global styles */
|
|
9
|
+
disableExternalFonts?: boolean;
|
|
10
|
+
/** The React node (generally your entire App) that will be provided the theme */
|
|
11
|
+
children?: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
declare const ThemeProvider: {
|
|
14
|
+
({ theme, useLegacyOverrides, disableExternalFonts, children, ...props }: ThemeProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
displayName: string;
|
|
16
|
+
};
|
|
17
|
+
export default ThemeProvider;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { type ButtonGroupProps, type SystemStyleObject } from '@chakra-ui/react';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
type ToggleButtonChildProps = {
|
|
4
|
+
value: string;
|
|
5
|
+
onClick?: React.MouseEventHandler;
|
|
6
|
+
sx?: SystemStyleObject;
|
|
7
|
+
};
|
|
8
|
+
export type ToggleButtonGroupProps = {
|
|
9
|
+
onChange: (value: string) => void;
|
|
10
|
+
value: string;
|
|
11
|
+
children: React.ReactElement<ToggleButtonChildProps> | Array<React.ReactElement<ToggleButtonChildProps>>;
|
|
12
|
+
groupProps?: ButtonGroupProps;
|
|
13
|
+
buttonGroupStyles?: SystemStyleObject;
|
|
14
|
+
childrenStyles?: SystemStyleObject;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* @example (
|
|
18
|
+
* <ToggleButtonGroup onChange={handleChangeValue} value={value}>
|
|
19
|
+
* <Button value={value1}>label1</Button>
|
|
20
|
+
* <Button value={value2}>label2</Button>
|
|
21
|
+
* </ToggleButtonGroup>
|
|
22
|
+
* )
|
|
23
|
+
* @note
|
|
24
|
+
* must have multiple child elements
|
|
25
|
+
*/
|
|
26
|
+
declare const ToggleButtonGroup: React.ForwardRefExoticComponent<ToggleButtonGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
|
+
export default ToggleButtonGroup;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ToggleButtonGroup } from './ToggleButtonGroup';
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { SystemStyleObject } from '@chakra-ui/react';
|
|
2
|
+
export declare const defaultStyles: SystemStyleObject;
|
|
3
|
+
export declare const inactiveStyles: SystemStyleObject;
|
|
4
|
+
export declare const activeStyles: SystemStyleObject;
|
|
5
|
+
export declare const buttonGroupStyles: SystemStyleObject;
|