@spothero/ui 25.15.0-beta.1 → 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/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/styles/footer.d.ts +1 -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/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 +459 -600
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +68 -18
- package/dist/index.esm.js +458 -599
- package/dist/index.esm.js.map +1 -1
- package/package.json +6 -4
|
@@ -1,3 +1,7 @@
|
|
|
1
|
-
export default AccordionActionButton;
|
|
2
|
-
declare const AccordionActionButton: React.ForwardRefExoticComponent<React.RefAttributes<any>>;
|
|
3
1
|
import React from 'react';
|
|
2
|
+
export type AccordionActionButtonProps = {
|
|
3
|
+
onClick?: () => void;
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
};
|
|
6
|
+
declare const AccordionActionButton: React.ForwardRefExoticComponent<AccordionActionButtonProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export default AccordionActionButton;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type MenuProps as ChakraMenuProps } from '@chakra-ui/react';
|
|
2
|
+
import type { ForwardRefComponent } from '../../types/forwardRefComponent';
|
|
3
|
+
export interface MenuProps extends ChakraMenuProps {
|
|
4
|
+
}
|
|
5
|
+
declare const Menu: ForwardRefComponent<HTMLDivElement, MenuProps>;
|
|
6
|
+
export default Menu;
|
|
@@ -1,258 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
2
|
+
type MenuStyle = NonNullable<typeof chakraDefaultTheme.components.Menu>;
|
|
3
|
+
declare const menuStyle: MenuStyle;
|
|
4
|
+
export default menuStyle;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type BoxProps } from '@chakra-ui/react';
|
|
3
|
+
import type { CheckboxProps } from '../Checkbox/Checkbox';
|
|
4
|
+
export type SelectionCardProps = Omit<CheckboxProps, 'children' | 'value' | 'size'> & {
|
|
5
|
+
label: React.ReactNode;
|
|
6
|
+
expandableChildren?: React.ReactNode;
|
|
7
|
+
defaultChecked?: boolean;
|
|
8
|
+
isChecked?: boolean;
|
|
9
|
+
isDisabled?: boolean;
|
|
10
|
+
value: string;
|
|
11
|
+
helperText?: string;
|
|
12
|
+
isRadio?: boolean;
|
|
13
|
+
isExpandable?: boolean;
|
|
14
|
+
expandableChildrenStyles?: BoxProps;
|
|
15
|
+
size?: 'sm' | 'md' | 'lg';
|
|
16
|
+
topChild?: React.ReactElement;
|
|
17
|
+
expandableContentKey?: string;
|
|
18
|
+
};
|
|
19
|
+
declare const SelectionCard: React.ForwardRefExoticComponent<Omit<SelectionCardProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
20
|
+
export default SelectionCard;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SelectionCard } from './SelectionCard';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Table as default } from '@chakra-ui/react';
|
|
@@ -1,66 +1,74 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
export declare const variants: {
|
|
2
|
+
rounded: {
|
|
3
|
+
table: {
|
|
4
|
+
backgroundColor: string;
|
|
5
|
+
borderRadius: number;
|
|
6
|
+
boxShadow: string;
|
|
7
|
+
marginBottom: number;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
roundedGray: {
|
|
11
|
+
table: {
|
|
12
|
+
backgroundColor: string;
|
|
13
|
+
borderRadius: number;
|
|
14
|
+
boxShadow: string;
|
|
15
|
+
marginBottom: number;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
declare const _default: {
|
|
20
|
+
parts: string[];
|
|
21
|
+
variants: {
|
|
22
|
+
rounded: {
|
|
23
|
+
table: {
|
|
24
|
+
backgroundColor: string;
|
|
25
|
+
borderRadius: number;
|
|
26
|
+
boxShadow: string;
|
|
27
|
+
marginBottom: number;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
roundedGray: {
|
|
31
|
+
table: {
|
|
32
|
+
backgroundColor: string;
|
|
33
|
+
borderRadius: number;
|
|
34
|
+
boxShadow: string;
|
|
35
|
+
marginBottom: number;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
baseStyle: {
|
|
40
|
+
table: {
|
|
41
|
+
borderCollapse: string;
|
|
42
|
+
color: string;
|
|
43
|
+
width: string;
|
|
44
|
+
};
|
|
45
|
+
thead: {
|
|
46
|
+
borderBottom: string;
|
|
47
|
+
borderColor: string;
|
|
48
|
+
};
|
|
49
|
+
th: {
|
|
50
|
+
fontFamily: string;
|
|
51
|
+
fontSize: unknown;
|
|
52
|
+
fontWeight: string;
|
|
53
|
+
letterSpacing: string;
|
|
54
|
+
padding: number;
|
|
55
|
+
textAlign: string;
|
|
56
|
+
textTransform: string;
|
|
57
|
+
};
|
|
58
|
+
tr: {
|
|
59
|
+
borderBottom: string;
|
|
60
|
+
borderColor: string;
|
|
61
|
+
_last: {
|
|
62
|
+
border: string;
|
|
63
|
+
};
|
|
64
|
+
};
|
|
65
|
+
td: {
|
|
66
|
+
padding: number;
|
|
67
|
+
textAlign: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
defaultProps: {
|
|
71
|
+
readonly variant: "rounded";
|
|
72
|
+
};
|
|
73
|
+
};
|
|
11
74
|
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: unknown;
|
|
42
|
-
let fontWeight: string;
|
|
43
|
-
let letterSpacing: string;
|
|
44
|
-
let padding: number;
|
|
45
|
-
let textAlign: string;
|
|
46
|
-
let textTransform: string;
|
|
47
|
-
}
|
|
48
|
-
export namespace tr {
|
|
49
|
-
let borderBottom_1: string;
|
|
50
|
-
export { borderBottom_1 as borderBottom };
|
|
51
|
-
let borderColor_1: string;
|
|
52
|
-
export { borderColor_1 as borderColor };
|
|
53
|
-
export namespace _last {
|
|
54
|
-
let border: string;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
export namespace td {
|
|
58
|
-
let padding_1: number;
|
|
59
|
-
export { padding_1 as padding };
|
|
60
|
-
let textAlign_1: string;
|
|
61
|
-
export { textAlign_1 as textAlign };
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
declare namespace defaultProps {
|
|
65
|
-
let variant: string;
|
|
66
|
-
}
|
|
@@ -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;
|