@spothero/ui 25.6.0 → 25.12.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/Modal/styles/footer.d.ts +6 -0
- package/dist/components/Modal/styles/index.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 +2659 -3037
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +364 -59
- package/dist/index.esm.js +3088 -3467
- 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 +8 -7
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Checkbox as ChakraCheckbox } from '@chakra-ui/react';
|
|
3
|
+
export type CheckboxProps = Omit<React.ComponentProps<typeof ChakraCheckbox>, 'size'> & {
|
|
4
|
+
/** Optional helper text displayed below the checkbox */
|
|
5
|
+
helperText?: string;
|
|
6
|
+
/** The size of the checkbox */
|
|
7
|
+
size?: 'sm' | 'md' | 'lg';
|
|
8
|
+
};
|
|
9
|
+
declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
|
|
10
|
+
export default Checkbox;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Checkbox';
|
|
@@ -1,200 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
2
|
+
type CheckboxStyle = NonNullable<typeof chakraDefaultTheme.components.Checkbox>;
|
|
3
|
+
declare const checkboxStyle: CheckboxStyle;
|
|
4
|
+
export default checkboxStyle;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
1
2
|
export declare const colorScheme: {
|
|
2
3
|
low: {
|
|
3
4
|
borderColor: string;
|
|
@@ -6,35 +7,8 @@ export declare const colorScheme: {
|
|
|
6
7
|
borderColor: string;
|
|
7
8
|
};
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
-
|
|
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
|
-
};
|
|
10
|
+
type DividerStyle = NonNullable<typeof chakraDefaultTheme.components.Divider> & {
|
|
11
|
+
colorScheme: typeof colorScheme;
|
|
39
12
|
};
|
|
40
|
-
|
|
13
|
+
declare const dividerStyle: DividerStyle;
|
|
14
|
+
export default dividerStyle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DrawerHeader, type DrawerProps as ChakraDrawerProps } from '@chakra-ui/react';
|
|
3
|
+
export interface DrawerProps extends Omit<ChakraDrawerProps, 'children'> {
|
|
4
|
+
children: React.ReactNode;
|
|
5
|
+
header?: React.ReactNode;
|
|
6
|
+
drawerCloseButton?: React.ReactNode;
|
|
7
|
+
headerProps?: React.ComponentProps<typeof DrawerHeader>;
|
|
8
|
+
}
|
|
9
|
+
declare const Drawer: ({ header, drawerCloseButton, children, headerProps, ...props }: DrawerProps) => import("react/jsx-runtime").JSX.Element;
|
|
10
|
+
export default Drawer;
|
|
@@ -1,149 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
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;
|
|
1
|
+
import { theme as chakraDefaultTheme } from '@chakra-ui/react';
|
|
2
|
+
type DrawerStyle = NonNullable<typeof chakraDefaultTheme.components.Drawer>;
|
|
3
|
+
declare const drawerStyle: DrawerStyle;
|
|
4
|
+
export default drawerStyle;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Grid as ChakraGrid } from '@chakra-ui/react';
|
|
3
|
+
import type { ForwardRefComponent } from '../../types/forwardRefComponent';
|
|
4
|
+
export type GridProps = React.ComponentProps<typeof ChakraGrid> & {
|
|
5
|
+
/** This will reduce the grid gap by half */
|
|
6
|
+
isCompact?: boolean;
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
};
|
|
9
|
+
declare const Grid: ForwardRefComponent<HTMLDivElement, GridProps>;
|
|
10
|
+
export default Grid;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { GridItem as ChakraGridItem } from '@chakra-ui/react';
|
|
3
|
+
import type { ForwardRefComponent } from '../../types/forwardRefComponent';
|
|
4
|
+
export type GridItemProps = React.ComponentProps<typeof ChakraGridItem> & {
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
};
|
|
7
|
+
declare const GridItem: ForwardRefComponent<HTMLDivElement, GridItemProps>;
|
|
8
|
+
export default GridItem;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { HeadingProps as ChakraHeadingProps } from '@chakra-ui/react';
|
|
3
|
+
import { HeadingVariant } from './Heading.styles';
|
|
4
|
+
export interface HeadingProps extends Omit<ChakraHeadingProps, 'as' | 'variant'> {
|
|
5
|
+
as?: HeadingVariant;
|
|
6
|
+
variant?: HeadingVariant;
|
|
7
|
+
}
|
|
8
|
+
declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>>;
|
|
9
|
+
export default Heading;
|
|
@@ -1,66 +1,13 @@
|
|
|
1
|
-
export
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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
|
-
}
|
|
1
|
+
export type HeadingVariant = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6';
|
|
2
|
+
export declare const variants: Record<HeadingVariant, Record<string, unknown>>;
|
|
3
|
+
declare const _default: {
|
|
4
|
+
variants: Record<HeadingVariant, Record<string, unknown>>;
|
|
5
|
+
baseStyle: {
|
|
6
|
+
lineHeight: number;
|
|
7
|
+
fontWeight: 600;
|
|
8
|
+
};
|
|
9
|
+
defaultProps: {
|
|
10
|
+
variant: Record<string, unknown>;
|
|
11
|
+
};
|
|
12
|
+
};
|
|
61
13
|
export default _default;
|
|
62
|
-
declare namespace baseStyle { }
|
|
63
|
-
declare namespace defaultProps {
|
|
64
|
-
import variant = variants.h2;
|
|
65
|
-
export { variant };
|
|
66
|
-
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { type ImageProps as ChakraImageProps } from '@chakra-ui/react';
|
|
2
|
+
export type ImageProps = ChakraImageProps & {
|
|
3
|
+
/** If true, use the image directly without client side checks. */
|
|
4
|
+
isSSR?: boolean;
|
|
5
|
+
/** The Cloudinary account that this image is stored under. */
|
|
6
|
+
cloudinaryCloudName?: string;
|
|
7
|
+
/** The image ID that is stored in Cloudinary for this image. Will be used to replace the source path. */
|
|
8
|
+
cloudinaryImageId?: string;
|
|
9
|
+
/** The template URL to use to create the source path from. Replaceable values are {{WIDTH}}, {{HEIGHT}}, and {{QUALITY}}. */
|
|
10
|
+
cloudinaryTemplate?: string;
|
|
11
|
+
/** The width of the native HTML image, in pixels. Required if using a Cloudinary ID or Template. */
|
|
12
|
+
htmlWidth?: number;
|
|
13
|
+
/** The height of the native HTML image, in pixels. Required if using a Cloudinary ID or Template. */
|
|
14
|
+
htmlHeight?: number;
|
|
15
|
+
/** The quality setting if this image uses a Cloudinary ID or Template. */
|
|
16
|
+
quality?: number;
|
|
17
|
+
/** Whether to use lazy loading for this image. */
|
|
18
|
+
lazyLoad?: boolean;
|
|
19
|
+
};
|
|
20
|
+
declare const Image: ({ isSSR, cloudinaryImageId, cloudinaryTemplate, cloudinaryCloudName, htmlWidth, htmlHeight, quality, lazyLoad, ...otherProps }: ImageProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
|
+
export default Image;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { InputProps as ChakraInputProps } from '@chakra-ui/react';
|
|
3
|
+
export interface InputProps extends ChakraInputProps {
|
|
4
|
+
id: string;
|
|
5
|
+
label?: string;
|
|
6
|
+
helperText?: string;
|
|
7
|
+
errorMessage?: string;
|
|
8
|
+
isOptional?: boolean;
|
|
9
|
+
customRequiredText?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<HTMLInputElement>>;
|
|
12
|
+
export default Input;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Input';
|