@spothero/ui 25.6.0 → 25.11.0
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/styles/index.d.ts +13 -89
- package/dist/components/Alert/Alert.d.ts +33 -0
- package/dist/components/Badge/Badge.d.ts +1 -0
- package/dist/components/Badge/styles/index.d.ts +11 -75
- package/dist/components/Button/Button.d.ts +27 -0
- package/dist/components/Button/Button.styles.d.ts +174 -553
- package/dist/components/Button/index.d.ts +2 -0
- package/dist/components/Checkbox/Checkbox.d.ts +10 -0
- package/dist/components/Checkbox/index.d.ts +1 -0
- package/dist/components/Checkbox/styles/index.d.ts +4 -200
- package/dist/components/Divider/Divider.styles.d.ts +5 -31
- package/dist/components/Drawer/Drawer.d.ts +10 -0
- package/dist/components/Drawer/index.d.ts +2 -0
- package/dist/components/Drawer/styles/index.d.ts +4 -149
- package/dist/components/Grid/Grid.d.ts +10 -0
- package/dist/components/Grid/Grid.styles.d.ts +10 -0
- package/dist/components/Grid/GridItem.d.ts +8 -0
- package/dist/components/Grid/GridItem.styles.d.ts +3 -3
- package/dist/components/Heading/Heading.d.ts +9 -0
- package/dist/components/Heading/Heading.styles.d.ts +12 -65
- package/dist/components/Image/Image.d.ts +21 -0
- package/dist/components/Input/Input.d.ts +12 -0
- package/dist/components/Input/index.d.ts +1 -0
- package/dist/components/Input/styles/index.d.ts +3 -217
- package/dist/components/Link/Link.d.ts +1 -0
- package/dist/components/Link/Link.styles.d.ts +11 -84
- package/dist/components/List/List.d.ts +25 -0
- package/dist/components/List/index.d.ts +2 -0
- package/dist/components/List/styles/index.d.ts +4 -32
- package/dist/components/List/styles/item.styles.d.ts +3 -3
- package/dist/components/Loader/Loader.d.ts +13 -0
- package/dist/components/Progress/Progress.d.ts +8 -0
- package/dist/components/Progress/Progress.styles.d.ts +4 -75
- package/dist/components/Radio/Radio.d.ts +9 -0
- package/dist/components/Radio/RadioGroup.d.ts +14 -0
- package/dist/components/Radio/index.d.ts +2 -0
- package/dist/components/Radio/styles/index.d.ts +43 -277
- package/dist/components/RefreshedInput/Button/styles/index.d.ts +1 -263
- package/dist/components/RefreshedInput/Input/styles/index.d.ts +2 -254
- package/dist/components/RefreshedInput/Select/styles/index.d.ts +2 -71
- package/dist/components/Select/Select.d.ts +11 -0
- package/dist/components/Select/index.d.ts +1 -0
- package/dist/components/Select/styles/index.d.ts +28 -218
- package/dist/components/Skeleton/Skeleton.styles.d.ts +4 -26
- package/dist/components/Skeleton/index.d.ts +1 -0
- package/dist/components/Switch/Switch.d.ts +21 -0
- package/dist/components/Switch/index.d.ts +1 -0
- package/dist/components/Switch/styles/index.d.ts +4 -116
- package/dist/components/Table/Table.styles.d.ts +1 -4
- package/dist/components/Text/Text.d.ts +11 -0
- package/dist/components/Text/Text.styles.d.ts +29 -30
- package/dist/components/Text/combineAsWithVariant.d.ts +101 -0
- package/dist/components/Text/options.d.ts +2 -0
- package/dist/components/Textarea/Textarea.d.ts +12 -0
- package/dist/components/Textarea/index.d.ts +1 -0
- package/dist/components/Textarea/styles/index.d.ts +3 -0
- package/dist/index.cjs.js +3074 -3465
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +364 -59
- package/dist/index.esm.js +2578 -2970
- package/dist/index.esm.js.map +1 -1
- package/dist/theme/base/animation.d.ts +217 -0
- package/dist/theme/base/colors.d.ts +29 -13
- package/dist/theme/base/index.d.ts +1 -0
- package/dist/theme/base/notifications.d.ts +3 -3
- package/dist/types/forwardRefComponent.d.ts +2 -0
- package/package.json +7 -6
|
@@ -1,217 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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;
|
|
1
|
+
import type { StyleConfig } from '@chakra-ui/react';
|
|
2
|
+
declare const inputStyle: StyleConfig;
|
|
3
|
+
export default inputStyle;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link as default } from '@chakra-ui/react';
|
|
@@ -1,36 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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: {
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
2
|
+
type LinkStyle = NonNullable<typeof chakraDefaultTheme.components.Link>;
|
|
3
|
+
export declare const variants: {
|
|
4
|
+
standard: {
|
|
34
5
|
transition: string;
|
|
35
6
|
color: string;
|
|
36
7
|
fontWeight: string;
|
|
@@ -38,7 +9,7 @@ declare const _default: {
|
|
|
38
9
|
color: string;
|
|
39
10
|
textDecoration: string;
|
|
40
11
|
};
|
|
41
|
-
|
|
12
|
+
_focusVisible: {
|
|
42
13
|
boxShadow: string;
|
|
43
14
|
};
|
|
44
15
|
'& svg': {
|
|
@@ -46,57 +17,13 @@ declare const _default: {
|
|
|
46
17
|
verticalAlign: string;
|
|
47
18
|
};
|
|
48
19
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
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: {
|
|
20
|
+
onDark: {
|
|
21
|
+
color: string;
|
|
22
|
+
_hover: {
|
|
67
23
|
color: string;
|
|
68
|
-
|
|
69
|
-
color: string;
|
|
70
|
-
opacity: string;
|
|
71
|
-
};
|
|
24
|
+
opacity: string;
|
|
72
25
|
};
|
|
73
26
|
};
|
|
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
27
|
};
|
|
95
|
-
declare
|
|
96
|
-
|
|
97
|
-
namespace _hover {
|
|
98
|
-
let color_1: string;
|
|
99
|
-
export { color_1 as color };
|
|
100
|
-
export let opacity: string;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
28
|
+
declare const linkStyle: LinkStyle;
|
|
29
|
+
export default linkStyle;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { type ListProps as ChakraListProps } from '@chakra-ui/react';
|
|
2
|
+
import type { ForwardRefComponent } from '../../types/forwardRefComponent';
|
|
3
|
+
export declare const STYLE_POSITIONS: {
|
|
4
|
+
readonly unset: "unset";
|
|
5
|
+
readonly revert: "revert";
|
|
6
|
+
readonly inside: "inside";
|
|
7
|
+
readonly outside: "outside";
|
|
8
|
+
readonly initial: "initial";
|
|
9
|
+
readonly inherit: "inherit";
|
|
10
|
+
};
|
|
11
|
+
export declare const TYPES: {
|
|
12
|
+
readonly ordered: "ordered";
|
|
13
|
+
readonly unstyled: "unstyled";
|
|
14
|
+
readonly unordered: "unordered";
|
|
15
|
+
};
|
|
16
|
+
export type ListStylePosition = keyof typeof STYLE_POSITIONS;
|
|
17
|
+
export type ListType = keyof typeof TYPES;
|
|
18
|
+
export interface ListProps extends Omit<ChakraListProps, 'type'> {
|
|
19
|
+
/** The position of the list style */
|
|
20
|
+
stylePosition?: ListStylePosition;
|
|
21
|
+
/** Changes the underlying markup to be an ordered or unordered list. */
|
|
22
|
+
type?: ListType;
|
|
23
|
+
}
|
|
24
|
+
declare const List: ForwardRefComponent<HTMLUListElement | HTMLOListElement, ListProps>;
|
|
25
|
+
export default List;
|
|
@@ -1,32 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
2
|
+
type ListStyle = NonNullable<typeof chakraDefaultTheme.components.List>;
|
|
3
|
+
declare const listStyle: ListStyle;
|
|
4
|
+
export default listStyle;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { type CircularProgressProps as ChakraCircularProgressProps } from '@chakra-ui/react';
|
|
2
|
+
export type LoaderProps = ChakraCircularProgressProps & {
|
|
3
|
+
/**
|
|
4
|
+
* Determines if Loader spins for an infinite amount of time. If `true` value prop will be ignored.
|
|
5
|
+
*/
|
|
6
|
+
isInfinite?: boolean;
|
|
7
|
+
/**
|
|
8
|
+
* Sets the background color of the Loader (inside the circle). Use color names defined within `theme/base/colors`.
|
|
9
|
+
*/
|
|
10
|
+
loaderBackgroundColor?: string;
|
|
11
|
+
};
|
|
12
|
+
declare const Loader: ({ color, loaderBackgroundColor, isInfinite, size, thickness, trackColor, value, ...props }: LoaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export default Loader;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ProgressProps as ChakraProgressProps } from '@chakra-ui/react';
|
|
2
|
+
import type { ForwardRefComponent } from '../../types/forwardRefComponent';
|
|
3
|
+
export type ProgressProps = ChakraProgressProps & {
|
|
4
|
+
/** If true, the Progress Bar and Track are rounded */
|
|
5
|
+
isRounded?: boolean;
|
|
6
|
+
};
|
|
7
|
+
declare const Progress: ForwardRefComponent<HTMLDivElement, ProgressProps>;
|
|
8
|
+
export default Progress;
|
|
@@ -1,75 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
2
|
+
type ChakraProgressStyle = NonNullable<typeof chakraDefaultTheme.components.Progress>;
|
|
3
|
+
declare const progressStyle: ChakraProgressStyle;
|
|
4
|
+
export default progressStyle;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioProps as ChakraRadioProps } from '@chakra-ui/react';
|
|
3
|
+
export interface RadioProps extends Omit<ChakraRadioProps, 'size'> {
|
|
4
|
+
value: string;
|
|
5
|
+
helperText?: string;
|
|
6
|
+
size?: 'sm' | 'md' | 'lg';
|
|
7
|
+
}
|
|
8
|
+
declare const Radio: React.ForwardRefExoticComponent<RadioProps & React.RefAttributes<HTMLInputElement>>;
|
|
9
|
+
export default Radio;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { RadioGroupProps as ChakraRadioGroupProps } from '@chakra-ui/react';
|
|
3
|
+
export interface RadioGroupProps extends Omit<ChakraRadioGroupProps, 'onChange'> {
|
|
4
|
+
id: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
errorMessage?: string;
|
|
7
|
+
isDisabled?: boolean;
|
|
8
|
+
isInvalid?: boolean;
|
|
9
|
+
isRequired?: boolean;
|
|
10
|
+
onChange?: (value: string) => void;
|
|
11
|
+
direction?: 'row' | 'column';
|
|
12
|
+
}
|
|
13
|
+
declare const RadioGroup: React.ForwardRefExoticComponent<RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export default RadioGroup;
|