@spothero/ui 25.4.0 → 25.6.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 +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/Input/styles/index.d.ts +260 -0
- 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 +1992 -693
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +251 -0
- package/dist/index.esm.js +1990 -693
- 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 -116
- 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 +13 -11
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
baseStyle?: ((props: import("@chakra-ui/react").StyleFunctionProps) => {
|
|
3
|
+
icon: {
|
|
4
|
+
transitionProperty: string;
|
|
5
|
+
transitionDuration: string;
|
|
6
|
+
};
|
|
7
|
+
container: {
|
|
8
|
+
_disabled: {
|
|
9
|
+
cursor: string;
|
|
10
|
+
};
|
|
11
|
+
};
|
|
12
|
+
control: {
|
|
13
|
+
w: string;
|
|
14
|
+
h: string;
|
|
15
|
+
transitionProperty: string;
|
|
16
|
+
transitionDuration: string;
|
|
17
|
+
border: string;
|
|
18
|
+
borderRadius: string;
|
|
19
|
+
borderColor: string;
|
|
20
|
+
color: string;
|
|
21
|
+
_checked: {
|
|
22
|
+
bg: string;
|
|
23
|
+
borderColor: string;
|
|
24
|
+
color: string;
|
|
25
|
+
_hover: {
|
|
26
|
+
bg: string;
|
|
27
|
+
borderColor: string;
|
|
28
|
+
};
|
|
29
|
+
_disabled: {
|
|
30
|
+
borderColor: string;
|
|
31
|
+
bg: string;
|
|
32
|
+
color: string;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
_indeterminate: {
|
|
36
|
+
bg: string;
|
|
37
|
+
borderColor: string;
|
|
38
|
+
color: string;
|
|
39
|
+
};
|
|
40
|
+
_disabled: {
|
|
41
|
+
bg: string;
|
|
42
|
+
borderColor: string;
|
|
43
|
+
};
|
|
44
|
+
_focusVisible: {
|
|
45
|
+
boxShadow: string;
|
|
46
|
+
};
|
|
47
|
+
_invalid: {
|
|
48
|
+
borderColor: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
label: {
|
|
52
|
+
userSelect: string;
|
|
53
|
+
_disabled: {
|
|
54
|
+
opacity: number;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
}) | undefined;
|
|
58
|
+
sizes?: {
|
|
59
|
+
sm: {
|
|
60
|
+
control: {
|
|
61
|
+
[x: string]: string;
|
|
62
|
+
};
|
|
63
|
+
label: {
|
|
64
|
+
fontSize: string;
|
|
65
|
+
};
|
|
66
|
+
icon: {
|
|
67
|
+
fontSize: string;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
md: {
|
|
71
|
+
control: {
|
|
72
|
+
[x: string]: string;
|
|
73
|
+
};
|
|
74
|
+
label: {
|
|
75
|
+
fontSize: string;
|
|
76
|
+
};
|
|
77
|
+
icon: {
|
|
78
|
+
fontSize: string;
|
|
79
|
+
};
|
|
80
|
+
};
|
|
81
|
+
lg: {
|
|
82
|
+
control: {
|
|
83
|
+
[x: string]: string;
|
|
84
|
+
};
|
|
85
|
+
label: {
|
|
86
|
+
fontSize: string;
|
|
87
|
+
};
|
|
88
|
+
icon: {
|
|
89
|
+
fontSize: string;
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
} | undefined;
|
|
93
|
+
variants?: {
|
|
94
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
95
|
+
keys: ("container" | "icon" | "label" | "control")[];
|
|
96
|
+
}>;
|
|
97
|
+
} | undefined;
|
|
98
|
+
defaultProps?: {
|
|
99
|
+
size?: "md" | "sm" | "lg" | undefined;
|
|
100
|
+
variant?: string | number | undefined;
|
|
101
|
+
colorScheme?: string | undefined;
|
|
102
|
+
} | undefined;
|
|
103
|
+
parts: ("container" | "icon" | "label" | "control")[];
|
|
104
|
+
} & {
|
|
105
|
+
baseStyle: {
|
|
106
|
+
container: {
|
|
107
|
+
_disabled: {
|
|
108
|
+
cursor: string;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
control: {
|
|
112
|
+
borderWidth: number;
|
|
113
|
+
borderStyle: string;
|
|
114
|
+
borderImage: string;
|
|
115
|
+
borderRadius: string;
|
|
116
|
+
borderColor: string;
|
|
117
|
+
transition: string;
|
|
118
|
+
marginTop: number;
|
|
119
|
+
_readOnly: {
|
|
120
|
+
boxShadow: string;
|
|
121
|
+
userSelect: string;
|
|
122
|
+
};
|
|
123
|
+
_disabled: {
|
|
124
|
+
cursor: string;
|
|
125
|
+
userSelect: string;
|
|
126
|
+
borderColor: string;
|
|
127
|
+
};
|
|
128
|
+
_focus: {
|
|
129
|
+
zIndex: number;
|
|
130
|
+
boxShadow: string;
|
|
131
|
+
};
|
|
132
|
+
_checked: {
|
|
133
|
+
borderColor: string;
|
|
134
|
+
backgroundColor: string;
|
|
135
|
+
_hover: {
|
|
136
|
+
borderColor: string;
|
|
137
|
+
backgroundColor: string;
|
|
138
|
+
};
|
|
139
|
+
_disabled: {
|
|
140
|
+
borderColor: string;
|
|
141
|
+
backgroundColor: string;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
'& svg': {
|
|
145
|
+
filter: string;
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
label: {
|
|
149
|
+
_disabled: {
|
|
150
|
+
color: string;
|
|
151
|
+
cursor: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
icon: {
|
|
155
|
+
color: string;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
sizes: {
|
|
159
|
+
sm: {
|
|
160
|
+
control: {
|
|
161
|
+
marginTop: string;
|
|
162
|
+
width: number;
|
|
163
|
+
height: number;
|
|
164
|
+
};
|
|
165
|
+
icon: {
|
|
166
|
+
width: number;
|
|
167
|
+
height: number;
|
|
168
|
+
};
|
|
169
|
+
};
|
|
170
|
+
md: {
|
|
171
|
+
control: {
|
|
172
|
+
marginTop: number;
|
|
173
|
+
width: number;
|
|
174
|
+
height: number;
|
|
175
|
+
};
|
|
176
|
+
icon: {
|
|
177
|
+
width: number;
|
|
178
|
+
height: number;
|
|
179
|
+
};
|
|
180
|
+
label: {
|
|
181
|
+
fontSize: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
lg: {
|
|
185
|
+
control: {
|
|
186
|
+
marginTop: number;
|
|
187
|
+
width: number;
|
|
188
|
+
height: number;
|
|
189
|
+
};
|
|
190
|
+
icon: {
|
|
191
|
+
width: number;
|
|
192
|
+
height: number;
|
|
193
|
+
};
|
|
194
|
+
label: {
|
|
195
|
+
fontSize: string;
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
};
|
|
199
|
+
};
|
|
200
|
+
export default _default;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DividerProps as ChakraDividerProps } from '@chakra-ui/react';
|
|
3
|
+
type ColorScheme = 'low' | 'medium';
|
|
4
|
+
interface DividerProps extends Omit<ChakraDividerProps, 'colorScheme'> {
|
|
5
|
+
/** Color scheme used */
|
|
6
|
+
colorScheme?: ColorScheme;
|
|
7
|
+
/** The styling that will be applied to the HR tag */
|
|
8
|
+
variant?: 'solid' | 'dashed';
|
|
9
|
+
}
|
|
10
|
+
declare const Divider: React.ForwardRefExoticComponent<DividerProps & React.RefAttributes<HTMLHRElement>>;
|
|
11
|
+
export default Divider;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const colorScheme: {
|
|
2
|
+
low: {
|
|
3
|
+
borderColor: string;
|
|
4
|
+
};
|
|
5
|
+
medium: {
|
|
6
|
+
borderColor: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
declare const _default: {
|
|
10
|
+
baseStyle?: {
|
|
11
|
+
opacity: number;
|
|
12
|
+
borderColor: string;
|
|
13
|
+
} | undefined;
|
|
14
|
+
sizes?: {
|
|
15
|
+
[key: string]: import("@chakra-ui/react").SystemStyleInterpolation;
|
|
16
|
+
} | undefined;
|
|
17
|
+
variants?: {
|
|
18
|
+
solid: {
|
|
19
|
+
borderStyle: string;
|
|
20
|
+
};
|
|
21
|
+
dashed: {
|
|
22
|
+
borderStyle: string;
|
|
23
|
+
};
|
|
24
|
+
} | undefined;
|
|
25
|
+
defaultProps?: {
|
|
26
|
+
size?: string | number | undefined;
|
|
27
|
+
variant?: "dashed" | "solid" | undefined;
|
|
28
|
+
colorScheme?: string | undefined;
|
|
29
|
+
} | undefined;
|
|
30
|
+
} & {
|
|
31
|
+
colorScheme: {
|
|
32
|
+
low: {
|
|
33
|
+
borderColor: string;
|
|
34
|
+
};
|
|
35
|
+
medium: {
|
|
36
|
+
borderColor: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export default _default;
|
|
@@ -0,0 +1,149 @@
|
|
|
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
|
+
};
|
|
12
|
+
dialog: any;
|
|
13
|
+
header: {
|
|
14
|
+
px: string;
|
|
15
|
+
py: string;
|
|
16
|
+
fontSize: string;
|
|
17
|
+
fontWeight: string;
|
|
18
|
+
};
|
|
19
|
+
closeButton: {
|
|
20
|
+
position: string;
|
|
21
|
+
top: string;
|
|
22
|
+
insetEnd: string;
|
|
23
|
+
};
|
|
24
|
+
body: {
|
|
25
|
+
px: string;
|
|
26
|
+
py: string;
|
|
27
|
+
flex: string;
|
|
28
|
+
overflow: string;
|
|
29
|
+
};
|
|
30
|
+
footer: {
|
|
31
|
+
px: string;
|
|
32
|
+
py: string;
|
|
33
|
+
};
|
|
34
|
+
}) | undefined;
|
|
35
|
+
sizes?: {
|
|
36
|
+
xs: {
|
|
37
|
+
dialog: {
|
|
38
|
+
maxW: string;
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
sm: {
|
|
42
|
+
dialog: {
|
|
43
|
+
maxW: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
md: {
|
|
47
|
+
dialog: {
|
|
48
|
+
maxW: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
lg: {
|
|
52
|
+
dialog: {
|
|
53
|
+
maxW: string;
|
|
54
|
+
};
|
|
55
|
+
};
|
|
56
|
+
xl: {
|
|
57
|
+
dialog: {
|
|
58
|
+
maxW: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
full: {
|
|
62
|
+
dialog: {
|
|
63
|
+
maxW: string;
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
} | undefined;
|
|
67
|
+
variants?: {
|
|
68
|
+
[key: string]: import("@chakra-ui/react").PartsStyleInterpolation<{
|
|
69
|
+
keys: ("overlay" | "dialogContainer" | "dialog" | "header" | "closeButton" | "body" | "footer")[];
|
|
70
|
+
}>;
|
|
71
|
+
} | undefined;
|
|
72
|
+
defaultProps?: {
|
|
73
|
+
size?: "md" | "full" | "xs" | "sm" | "lg" | "xl" | undefined;
|
|
74
|
+
variant?: string | number | undefined;
|
|
75
|
+
colorScheme?: string | undefined;
|
|
76
|
+
} | undefined;
|
|
77
|
+
parts: ("overlay" | "dialogContainer" | "dialog" | "header" | "closeButton" | "body" | "footer")[];
|
|
78
|
+
} & {
|
|
79
|
+
defaultProps: {
|
|
80
|
+
size: string;
|
|
81
|
+
};
|
|
82
|
+
baseStyle: (props: any) => {
|
|
83
|
+
body: {
|
|
84
|
+
overflowY: string;
|
|
85
|
+
padding: number;
|
|
86
|
+
paddingBottom: number;
|
|
87
|
+
};
|
|
88
|
+
footer: {
|
|
89
|
+
padding: number;
|
|
90
|
+
backgroundColor: string;
|
|
91
|
+
position: string;
|
|
92
|
+
bottom: number;
|
|
93
|
+
width: string;
|
|
94
|
+
};
|
|
95
|
+
header: {
|
|
96
|
+
paddingY: number;
|
|
97
|
+
paddingX: number;
|
|
98
|
+
borderBottom: string;
|
|
99
|
+
borderBottomColor: string;
|
|
100
|
+
display: string;
|
|
101
|
+
gridGap: number;
|
|
102
|
+
alignItems: string;
|
|
103
|
+
justifyContent: string;
|
|
104
|
+
fontWeight: string;
|
|
105
|
+
};
|
|
106
|
+
dialog: {
|
|
107
|
+
backgroundColor: string;
|
|
108
|
+
boxShadow: string;
|
|
109
|
+
};
|
|
110
|
+
closeButton: {
|
|
111
|
+
width: number;
|
|
112
|
+
height: number;
|
|
113
|
+
fontSize: string;
|
|
114
|
+
background: string;
|
|
115
|
+
borderRadius: string;
|
|
116
|
+
display: string;
|
|
117
|
+
alignItems: string;
|
|
118
|
+
justifyContent: string;
|
|
119
|
+
flexShrink: number;
|
|
120
|
+
transitionProperty: string;
|
|
121
|
+
transitionDuration: string;
|
|
122
|
+
outline: string;
|
|
123
|
+
outlineOffset: string;
|
|
124
|
+
color: string;
|
|
125
|
+
_hover: {
|
|
126
|
+
color: string;
|
|
127
|
+
background: string;
|
|
128
|
+
};
|
|
129
|
+
_focus: {
|
|
130
|
+
outlineColor: string;
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
dialogContainer: {
|
|
134
|
+
zIndex: string;
|
|
135
|
+
backgroundColor: string;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
sizes: {
|
|
139
|
+
xs: {
|
|
140
|
+
dialog: {
|
|
141
|
+
maxWidth: {
|
|
142
|
+
base: string;
|
|
143
|
+
mobileXL: number;
|
|
144
|
+
};
|
|
145
|
+
};
|
|
146
|
+
};
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { FormControlProps as ChakraFormControlProps } from '@chakra-ui/react';
|
|
3
|
+
interface FormControlProps extends ChakraFormControlProps {
|
|
4
|
+
inputId: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
helperText?: string;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
isFieldset?: boolean;
|
|
9
|
+
isOptional?: boolean;
|
|
10
|
+
customRequiredText?: string;
|
|
11
|
+
}
|
|
12
|
+
declare const FormControl: React.ForwardRefExoticComponent<FormControlProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export default FormControl;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export namespace variants {
|
|
2
|
+
namespace h1 {
|
|
3
|
+
namespace fontSize {
|
|
4
|
+
let base: "2rem";
|
|
5
|
+
let desktop: "2.5rem";
|
|
6
|
+
}
|
|
7
|
+
let lineHeight: number;
|
|
8
|
+
let fontWeight: 600;
|
|
9
|
+
}
|
|
10
|
+
namespace h2 {
|
|
11
|
+
export namespace fontSize_1 {
|
|
12
|
+
let base_1: "1.5rem";
|
|
13
|
+
export { base_1 as base };
|
|
14
|
+
let desktop_1: "2rem";
|
|
15
|
+
export { desktop_1 as desktop };
|
|
16
|
+
}
|
|
17
|
+
export { fontSize_1 as fontSize };
|
|
18
|
+
}
|
|
19
|
+
namespace h3 {
|
|
20
|
+
export namespace fontSize_2 {
|
|
21
|
+
let base_2: "1.25rem";
|
|
22
|
+
export { base_2 as base };
|
|
23
|
+
let desktop_2: "1.5rem";
|
|
24
|
+
export { desktop_2 as desktop };
|
|
25
|
+
}
|
|
26
|
+
export { fontSize_2 as fontSize };
|
|
27
|
+
}
|
|
28
|
+
namespace h4 {
|
|
29
|
+
export namespace fontSize_3 {
|
|
30
|
+
let base_3: "1rem";
|
|
31
|
+
export { base_3 as base };
|
|
32
|
+
let desktop_3: "1.25rem";
|
|
33
|
+
export { desktop_3 as desktop };
|
|
34
|
+
}
|
|
35
|
+
export { fontSize_3 as fontSize };
|
|
36
|
+
}
|
|
37
|
+
namespace h5 {
|
|
38
|
+
export namespace fontSize_4 {
|
|
39
|
+
let base_4: "1rem";
|
|
40
|
+
export { base_4 as base };
|
|
41
|
+
let desktop_4: "1rem";
|
|
42
|
+
export { desktop_4 as desktop };
|
|
43
|
+
}
|
|
44
|
+
export { fontSize_4 as fontSize };
|
|
45
|
+
}
|
|
46
|
+
namespace h6 {
|
|
47
|
+
export namespace fontSize_5 {
|
|
48
|
+
let base_5: "0.875rem";
|
|
49
|
+
export { base_5 as base };
|
|
50
|
+
let desktop_5: "0.875rem";
|
|
51
|
+
export { desktop_5 as desktop };
|
|
52
|
+
}
|
|
53
|
+
export { fontSize_5 as fontSize };
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
declare namespace _default {
|
|
57
|
+
export { variants };
|
|
58
|
+
export { baseStyle };
|
|
59
|
+
export { defaultProps };
|
|
60
|
+
}
|
|
61
|
+
export default _default;
|
|
62
|
+
declare namespace baseStyle { }
|
|
63
|
+
declare namespace defaultProps {
|
|
64
|
+
import variant = variants.h2;
|
|
65
|
+
export { variant };
|
|
66
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { Icon as default } from
|
|
1
|
+
export { Icon as default } from '@chakra-ui/react';
|