@nypl/design-system-react-components 2.2.0-react-chakra-rc → 3.0.0-react-chakra-rc
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/design-system-react-components.cjs +58 -58
- package/dist/design-system-react-components.js +17460 -16512
- package/dist/src/components/Accordion/Accordion.d.ts +2 -1
- package/dist/src/components/AlphabetFilter/AlphabetFilter.d.ts +6 -3
- package/dist/src/components/AudioPlayer/AudioPlayer.d.ts +6 -3
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +2 -1
- package/dist/src/components/Button/Button.d.ts +23 -1
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +15 -1
- package/dist/src/components/Card/Card.d.ts +2 -1
- package/dist/src/components/Checkbox/Checkbox.d.ts +2 -1
- package/dist/src/components/CheckboxGroup/CheckboxGroup.d.ts +2 -1
- package/dist/src/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +14 -6
- package/dist/src/components/FeaturedContent/FeaturedContent.d.ts +2 -1
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +48 -2
- package/dist/src/components/Fieldset/Fieldset.d.ts +17 -1
- package/dist/src/components/Form/Form.d.ts +4 -3
- package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
- package/dist/src/components/Heading/Heading.d.ts +2 -1
- package/dist/src/components/HelperErrorText/HelperErrorText.d.ts +26 -1
- package/dist/src/components/Hero/Hero.d.ts +6 -1
- package/dist/src/components/HorizontalRule/HorizontalRule.d.ts +2 -1
- package/dist/src/components/Icons/Icon.d.ts +2 -1
- package/dist/src/components/Icons/IconSvgs.d.ts +24 -0
- package/dist/src/components/Icons/iconVariables.d.ts +2 -2
- package/dist/src/components/Image/Image.d.ts +9 -2
- package/dist/src/components/Label/Label.d.ts +19 -1
- package/dist/src/components/Link/Link.d.ts +2 -1
- package/dist/src/components/List/List.d.ts +6 -4
- package/dist/src/components/Logo/Logo.d.ts +5 -4
- package/dist/src/components/Logo/logoVariables.d.ts +0 -1
- package/dist/src/components/Menu/Menu.d.ts +58 -0
- package/dist/src/components/Modal/Modal.d.ts +13 -4
- package/dist/src/components/NewsletterSignup/NewsletterSignup.d.ts +42 -1
- package/dist/src/components/Notification/Notification.d.ts +11 -5
- package/dist/src/components/Pagination/Pagination.d.ts +2 -1
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/src/components/Radio/Radio.d.ts +2 -1
- package/dist/src/components/RadioGroup/RadioGroup.d.ts +2 -1
- package/dist/src/components/SearchBar/SearchBar.d.ts +4 -2
- package/dist/src/components/Select/Select.d.ts +2 -1
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
- package/dist/src/components/SkipNavigation/SkipNavigation.d.ts +10 -1
- package/dist/src/components/Slider/Slider.d.ts +2 -1
- package/dist/src/components/SocialMediaLinks/SocialMediaLinks.d.ts +2 -1
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +15 -6
- package/dist/src/components/StructuredContent/StructuredContent.d.ts +7 -4
- package/dist/src/components/StyleGuide/ColorCard.d.ts +2 -1
- package/dist/src/components/StyledList/StyledList.d.ts +2 -1
- package/dist/src/components/Table/Table.d.ts +2 -1
- package/dist/src/components/Tabs/Tabs.d.ts +2 -2
- package/dist/src/components/TagSet/TagSet.d.ts +2 -1
- package/dist/src/components/TagSet/TagSetExplore.d.ts +1 -1
- package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -1
- package/dist/src/components/Template/Template.d.ts +3 -2
- package/dist/src/components/Text/Text.d.ts +2 -1
- package/dist/src/components/TextInput/TextInput.d.ts +2 -1
- package/dist/src/components/Toggle/Toggle.d.ts +2 -1
- package/dist/src/components/Tooltip/Tooltip.d.ts +2 -1
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +6 -3
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/src/hooks/useDSHeading.d.ts +16 -0
- package/dist/src/hooks/useScrollTabIntoView.d.ts +9 -0
- package/dist/src/hooks/useStateWithDependencies.d.ts +4 -2
- package/dist/src/index.d.ts +3 -1
- package/dist/src/theme/components/accordion.d.ts +22 -2
- package/dist/src/theme/components/alphabetFilter.d.ts +24 -8
- package/dist/src/theme/components/audioPlayer.d.ts +18 -1
- package/dist/src/theme/components/breadcrumb.d.ts +24 -16
- package/dist/src/theme/components/button.d.ts +39 -0
- package/dist/src/theme/components/buttonGroup.d.ts +12 -3
- package/dist/src/theme/components/card.d.ts +104 -235
- package/dist/src/theme/components/checkbox.d.ts +44 -34
- package/dist/src/theme/components/checkboxGroup.d.ts +18 -4
- package/dist/src/theme/components/datePicker.d.ts +17 -6
- package/dist/src/theme/components/featuredContent.d.ts +75 -36
- package/dist/src/theme/components/feedbackBox.d.ts +28 -9
- package/dist/src/theme/components/fieldset.d.ts +14 -2
- package/dist/src/theme/components/global.d.ts +1 -0
- package/dist/src/theme/components/heading.d.ts +596 -249
- package/dist/src/theme/components/helperErrorText.d.ts +19 -3
- package/dist/src/theme/components/hero.d.ts +198 -176
- package/dist/src/theme/components/horizontalRule.d.ts +14 -2
- package/dist/src/theme/components/icon.d.ts +13 -4
- package/dist/src/theme/components/image.d.ts +326 -223
- package/dist/src/theme/components/label.d.ts +14 -2
- package/dist/src/theme/components/link.d.ts +40 -197
- package/dist/src/theme/components/list.d.ts +130 -101
- package/dist/src/theme/components/logo.d.ts +17 -5
- package/dist/src/theme/components/menu.d.ts +169 -0
- package/dist/src/theme/components/modal.d.ts +19 -4
- package/dist/src/theme/components/newsletterSignup.d.ts +37 -29
- package/dist/src/theme/components/notification.d.ts +51 -116
- package/dist/src/theme/components/notificationContent.d.ts +58 -0
- package/dist/src/theme/components/notificationHeading.d.ts +57 -0
- package/dist/src/theme/components/pagination.d.ts +17 -2
- package/dist/src/theme/components/progressIndicator.d.ts +21 -5
- package/dist/src/theme/components/radio.d.ts +25 -6
- package/dist/src/theme/components/radioGroup.d.ts +18 -4
- package/dist/src/theme/components/searchBar.d.ts +24 -6
- package/dist/src/theme/components/select.d.ts +21 -13
- package/dist/src/theme/components/skeletonLoader.d.ts +34 -12
- package/dist/src/theme/components/skipNavigation.d.ts +12 -1
- package/dist/src/theme/components/slider.d.ts +49 -33
- package/dist/src/theme/components/socialmedialinks.d.ts +22 -16
- package/dist/src/theme/components/statusBadge.d.ts +66 -10
- package/dist/src/theme/components/structuredContent.d.ts +233 -102
- package/dist/src/theme/components/styledList.d.ts +12 -6
- package/dist/src/theme/components/tabs.d.ts +27 -13
- package/dist/src/theme/components/tagSet.d.ts +83 -42
- package/dist/src/theme/components/template.d.ts +76 -25
- package/dist/src/theme/components/text.d.ts +27 -12
- package/dist/src/theme/components/textInput.d.ts +52 -44
- package/dist/src/theme/components/toggle.d.ts +33 -11
- package/dist/src/theme/components/tooltip.d.ts +13 -1
- package/dist/src/theme/components/videoPlayer.d.ts +32 -21
- package/dist/src/theme/foundations/global.d.ts +6 -0
- package/dist/styles.css +1 -1
- package/package.json +6 -9
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { StyleFunctionProps } from "@chakra-ui/system";
|
|
2
|
+
interface CardBaseStyleProps extends StyleFunctionProps {
|
|
2
3
|
hasImage: boolean;
|
|
3
4
|
imageIsAtEnd: boolean;
|
|
4
5
|
isAlignedRightActions: boolean;
|
|
@@ -7,13 +8,13 @@ interface CardBaseStyleProps {
|
|
|
7
8
|
layout: string;
|
|
8
9
|
mainActionLink: boolean;
|
|
9
10
|
}
|
|
10
|
-
interface CardImageBaseStyleProps {
|
|
11
|
+
interface CardImageBaseStyleProps extends StyleFunctionProps {
|
|
11
12
|
imageIsAtEnd: boolean;
|
|
12
13
|
isCentered: boolean;
|
|
13
14
|
size: keyof typeof imageSizes;
|
|
14
15
|
layout: string;
|
|
15
16
|
}
|
|
16
|
-
interface CardActionsBaseStyleProps {
|
|
17
|
+
interface CardActionsBaseStyleProps extends StyleFunctionProps {
|
|
17
18
|
bottomBorder: boolean;
|
|
18
19
|
isCentered: boolean;
|
|
19
20
|
layout: string;
|
|
@@ -49,165 +50,55 @@ declare const imageSizes: {
|
|
|
49
50
|
};
|
|
50
51
|
};
|
|
51
52
|
declare const _default: {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
flexFlow: {
|
|
57
|
-
base: string;
|
|
58
|
-
md: string;
|
|
59
|
-
};
|
|
60
|
-
maxWidth: string;
|
|
61
|
-
textAlign: string;
|
|
62
|
-
alignItems: string;
|
|
63
|
-
border: string;
|
|
64
|
-
borderColor: string;
|
|
65
|
-
_dark: {
|
|
66
|
-
borderColor: string;
|
|
67
|
-
};
|
|
68
|
-
actions: {
|
|
69
|
-
flexShrink: {
|
|
70
|
-
base: string;
|
|
71
|
-
md: string;
|
|
72
|
-
};
|
|
73
|
-
marginStart: {
|
|
74
|
-
base: string;
|
|
75
|
-
md: string;
|
|
76
|
-
};
|
|
77
|
-
marginTop: {
|
|
78
|
-
base: string;
|
|
79
|
-
md: string;
|
|
80
|
-
};
|
|
81
|
-
maxWidth: {
|
|
82
|
-
base: string;
|
|
83
|
-
md: string;
|
|
84
|
-
};
|
|
85
|
-
width: string;
|
|
86
|
-
};
|
|
87
|
-
body: {
|
|
88
|
-
display: {
|
|
89
|
-
md: string;
|
|
90
|
-
};
|
|
91
|
-
flexBasis: {
|
|
92
|
-
sm: string;
|
|
93
|
-
};
|
|
53
|
+
ReservoirCard: {
|
|
54
|
+
baseStyle?: ({ hasImage, imageIsAtEnd, isAlignedRightActions, isBordered, isCentered, layout, mainActionLink, }: CardBaseStyleProps) => {
|
|
55
|
+
base: {
|
|
56
|
+
display: string;
|
|
94
57
|
flexFlow: {
|
|
95
|
-
md: string;
|
|
96
|
-
};
|
|
97
|
-
margin: any;
|
|
98
|
-
padding: any;
|
|
99
|
-
width: {
|
|
100
58
|
base: string;
|
|
101
59
|
md: string;
|
|
102
60
|
};
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
textDecoration: string;
|
|
108
|
-
base: {
|
|
109
|
-
color: string;
|
|
110
|
-
textDecoration: string;
|
|
111
|
-
textDecorationStyle: string;
|
|
112
|
-
textDecorationThickness: string;
|
|
113
|
-
textUnderlineOffset: string;
|
|
114
|
-
_dark: {
|
|
115
|
-
color: string;
|
|
116
|
-
};
|
|
117
|
-
_hover: {
|
|
118
|
-
color: string;
|
|
119
|
-
textDecorationStyle: string;
|
|
120
|
-
textDecorationThickness: string;
|
|
121
|
-
_dark: {
|
|
122
|
-
color: string;
|
|
123
|
-
};
|
|
124
|
-
};
|
|
125
|
-
};
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
} | {
|
|
129
|
-
display: string;
|
|
130
|
-
flexFlow: string;
|
|
131
|
-
maxWidth?: undefined;
|
|
132
|
-
textAlign: string;
|
|
133
|
-
alignItems: string;
|
|
134
|
-
border: string;
|
|
135
|
-
borderColor: string;
|
|
136
|
-
_dark: {
|
|
61
|
+
maxWidth: string;
|
|
62
|
+
textAlign: string;
|
|
63
|
+
alignItems: string;
|
|
64
|
+
border: string;
|
|
137
65
|
borderColor: string;
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
maxWidth: {
|
|
153
|
-
base: string;
|
|
154
|
-
md: string;
|
|
155
|
-
};
|
|
156
|
-
width: string;
|
|
157
|
-
};
|
|
158
|
-
body: {
|
|
159
|
-
display: {
|
|
160
|
-
md: string;
|
|
161
|
-
};
|
|
162
|
-
flexBasis: {
|
|
163
|
-
sm: string;
|
|
66
|
+
_dark: {
|
|
67
|
+
borderColor: string;
|
|
68
|
+
};
|
|
69
|
+
} | {
|
|
70
|
+
display: string;
|
|
71
|
+
flexFlow: string;
|
|
72
|
+
maxWidth?: undefined;
|
|
73
|
+
textAlign: string;
|
|
74
|
+
alignItems: string;
|
|
75
|
+
border: string;
|
|
76
|
+
borderColor: string;
|
|
77
|
+
_dark: {
|
|
78
|
+
borderColor: string;
|
|
164
79
|
};
|
|
80
|
+
} | {
|
|
81
|
+
display: string;
|
|
165
82
|
flexFlow: {
|
|
166
|
-
md: string;
|
|
167
|
-
};
|
|
168
|
-
margin: any;
|
|
169
|
-
padding: any;
|
|
170
|
-
width: {
|
|
171
83
|
base: string;
|
|
172
84
|
md: string;
|
|
173
85
|
};
|
|
86
|
+
maxWidth: string;
|
|
87
|
+
textAlign: string;
|
|
88
|
+
alignItems: string;
|
|
89
|
+
border?: undefined;
|
|
90
|
+
borderColor?: undefined;
|
|
91
|
+
_dark?: undefined;
|
|
92
|
+
} | {
|
|
93
|
+
display: string;
|
|
94
|
+
flexFlow: string;
|
|
95
|
+
maxWidth?: undefined;
|
|
96
|
+
textAlign: string;
|
|
97
|
+
alignItems: string;
|
|
98
|
+
border?: undefined;
|
|
99
|
+
borderColor?: undefined;
|
|
100
|
+
_dark?: undefined;
|
|
174
101
|
};
|
|
175
|
-
heading: {
|
|
176
|
-
marginBottom: string;
|
|
177
|
-
a: {
|
|
178
|
-
textDecoration: string;
|
|
179
|
-
base: {
|
|
180
|
-
color: string;
|
|
181
|
-
textDecoration: string;
|
|
182
|
-
textDecorationStyle: string;
|
|
183
|
-
textDecorationThickness: string;
|
|
184
|
-
textUnderlineOffset: string;
|
|
185
|
-
_dark: {
|
|
186
|
-
color: string;
|
|
187
|
-
};
|
|
188
|
-
_hover: {
|
|
189
|
-
color: string;
|
|
190
|
-
textDecorationStyle: string;
|
|
191
|
-
textDecorationThickness: string;
|
|
192
|
-
_dark: {
|
|
193
|
-
color: string;
|
|
194
|
-
};
|
|
195
|
-
};
|
|
196
|
-
};
|
|
197
|
-
};
|
|
198
|
-
};
|
|
199
|
-
} | {
|
|
200
|
-
display: string;
|
|
201
|
-
flexFlow: {
|
|
202
|
-
base: string;
|
|
203
|
-
md: string;
|
|
204
|
-
};
|
|
205
|
-
maxWidth: string;
|
|
206
|
-
textAlign: string;
|
|
207
|
-
alignItems: string;
|
|
208
|
-
border?: undefined;
|
|
209
|
-
borderColor?: undefined;
|
|
210
|
-
_dark?: undefined;
|
|
211
102
|
actions: {
|
|
212
103
|
flexShrink: {
|
|
213
104
|
base: string;
|
|
@@ -229,118 +120,63 @@ declare const _default: {
|
|
|
229
120
|
};
|
|
230
121
|
body: {
|
|
231
122
|
display: {
|
|
232
|
-
md:
|
|
123
|
+
md: "block";
|
|
233
124
|
};
|
|
234
125
|
flexBasis: {
|
|
235
126
|
sm: string;
|
|
236
127
|
};
|
|
237
128
|
flexFlow: {
|
|
238
|
-
md:
|
|
129
|
+
md: "row nowrap";
|
|
239
130
|
};
|
|
240
131
|
margin: any;
|
|
241
132
|
padding: any;
|
|
242
133
|
width: {
|
|
243
|
-
base:
|
|
244
|
-
md:
|
|
134
|
+
base: "100%";
|
|
135
|
+
md: "auto";
|
|
245
136
|
};
|
|
246
137
|
};
|
|
247
138
|
heading: {
|
|
248
139
|
marginBottom: string;
|
|
249
140
|
a: {
|
|
250
141
|
textDecoration: string;
|
|
251
|
-
|
|
142
|
+
color: string;
|
|
143
|
+
textDecorationStyle: string;
|
|
144
|
+
textDecorationThickness: string;
|
|
145
|
+
textUnderlineOffset: string;
|
|
146
|
+
_dark: {
|
|
252
147
|
color: string;
|
|
253
|
-
textDecoration: string;
|
|
254
|
-
textDecorationStyle: string;
|
|
255
|
-
textDecorationThickness: string;
|
|
256
|
-
textUnderlineOffset: string;
|
|
257
|
-
_dark: {
|
|
258
|
-
color: string;
|
|
259
|
-
};
|
|
260
|
-
_hover: {
|
|
261
|
-
color: string;
|
|
262
|
-
textDecorationStyle: string;
|
|
263
|
-
textDecorationThickness: string;
|
|
264
|
-
_dark: {
|
|
265
|
-
color: string;
|
|
266
|
-
};
|
|
267
|
-
};
|
|
268
148
|
};
|
|
269
|
-
|
|
270
|
-
};
|
|
271
|
-
} | {
|
|
272
|
-
display: string;
|
|
273
|
-
flexFlow: string;
|
|
274
|
-
maxWidth?: undefined;
|
|
275
|
-
textAlign: string;
|
|
276
|
-
alignItems: string;
|
|
277
|
-
border?: undefined;
|
|
278
|
-
borderColor?: undefined;
|
|
279
|
-
_dark?: undefined;
|
|
280
|
-
actions: {
|
|
281
|
-
flexShrink: {
|
|
282
|
-
base: string;
|
|
283
|
-
md: string;
|
|
284
|
-
};
|
|
285
|
-
marginStart: {
|
|
286
|
-
base: string;
|
|
287
|
-
md: string;
|
|
288
|
-
};
|
|
289
|
-
marginTop: {
|
|
290
|
-
base: string;
|
|
291
|
-
md: string;
|
|
292
|
-
};
|
|
293
|
-
maxWidth: {
|
|
294
|
-
base: string;
|
|
295
|
-
md: string;
|
|
296
|
-
};
|
|
297
|
-
width: string;
|
|
298
|
-
};
|
|
299
|
-
body: {
|
|
300
|
-
display: {
|
|
301
|
-
md: string;
|
|
302
|
-
};
|
|
303
|
-
flexBasis: {
|
|
304
|
-
sm: string;
|
|
305
|
-
};
|
|
306
|
-
flexFlow: {
|
|
307
|
-
md: string;
|
|
308
|
-
};
|
|
309
|
-
margin: any;
|
|
310
|
-
padding: any;
|
|
311
|
-
width: {
|
|
312
|
-
base: string;
|
|
313
|
-
md: string;
|
|
314
|
-
};
|
|
315
|
-
};
|
|
316
|
-
heading: {
|
|
317
|
-
marginBottom: string;
|
|
318
|
-
a: {
|
|
319
|
-
textDecoration: string;
|
|
320
|
-
base: {
|
|
149
|
+
_hover: {
|
|
321
150
|
color: string;
|
|
322
151
|
textDecoration: string;
|
|
323
152
|
textDecorationStyle: string;
|
|
324
153
|
textDecorationThickness: string;
|
|
325
|
-
textUnderlineOffset: string;
|
|
326
154
|
_dark: {
|
|
327
155
|
color: string;
|
|
328
156
|
};
|
|
329
|
-
_hover: {
|
|
330
|
-
color: string;
|
|
331
|
-
textDecorationStyle: string;
|
|
332
|
-
textDecorationThickness: string;
|
|
333
|
-
_dark: {
|
|
334
|
-
color: string;
|
|
335
|
-
};
|
|
336
|
-
};
|
|
337
157
|
};
|
|
338
158
|
};
|
|
339
159
|
};
|
|
340
160
|
};
|
|
161
|
+
sizes?: {
|
|
162
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
163
|
+
keys: ("base" | "body" | "heading" | "action")[];
|
|
164
|
+
}>;
|
|
165
|
+
};
|
|
166
|
+
variants?: {
|
|
167
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
168
|
+
keys: ("base" | "body" | "heading" | "action")[];
|
|
169
|
+
}>;
|
|
170
|
+
};
|
|
171
|
+
defaultProps?: {
|
|
172
|
+
size?: string | number;
|
|
173
|
+
variant?: string | number;
|
|
174
|
+
colorScheme?: string;
|
|
175
|
+
};
|
|
176
|
+
parts: ("base" | "body" | "heading" | "action")[];
|
|
341
177
|
};
|
|
342
178
|
CardActions: {
|
|
343
|
-
baseStyle
|
|
179
|
+
baseStyle?: ({ bottomBorder, isCentered, layout, topBorder, }: CardActionsBaseStyleProps) => {
|
|
344
180
|
justifyContent: any;
|
|
345
181
|
borderColor: string;
|
|
346
182
|
_dark: {
|
|
@@ -405,17 +241,39 @@ declare const _default: {
|
|
|
405
241
|
marginBottom: string;
|
|
406
242
|
};
|
|
407
243
|
};
|
|
244
|
+
sizes?: {
|
|
245
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
246
|
+
};
|
|
247
|
+
variants?: {
|
|
248
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
249
|
+
};
|
|
250
|
+
defaultProps?: {
|
|
251
|
+
size?: string | number;
|
|
252
|
+
variant?: string | number;
|
|
253
|
+
colorScheme?: string;
|
|
254
|
+
};
|
|
408
255
|
};
|
|
409
256
|
CardContent: {
|
|
410
|
-
baseStyle
|
|
257
|
+
baseStyle?: {
|
|
411
258
|
marginBottom: string;
|
|
412
259
|
_last: {
|
|
413
260
|
marginBottom: string;
|
|
414
261
|
};
|
|
415
262
|
};
|
|
263
|
+
sizes?: {
|
|
264
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
265
|
+
};
|
|
266
|
+
variants?: {
|
|
267
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
268
|
+
};
|
|
269
|
+
defaultProps?: {
|
|
270
|
+
size?: string | number;
|
|
271
|
+
variant?: string | number;
|
|
272
|
+
colorScheme?: string;
|
|
273
|
+
};
|
|
416
274
|
};
|
|
417
275
|
CardImage: {
|
|
418
|
-
baseStyle
|
|
276
|
+
baseStyle?: ({ imageIsAtEnd, isCentered, layout, size }: CardImageBaseStyleProps) => {
|
|
419
277
|
flex: {
|
|
420
278
|
md: string;
|
|
421
279
|
};
|
|
@@ -468,6 +326,17 @@ declare const _default: {
|
|
|
468
326
|
marginTop?: undefined;
|
|
469
327
|
order?: undefined;
|
|
470
328
|
};
|
|
329
|
+
sizes?: {
|
|
330
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
331
|
+
};
|
|
332
|
+
variants?: {
|
|
333
|
+
[key: string]: import("@chakra-ui/styled-system").SystemStyleInterpolation;
|
|
334
|
+
};
|
|
335
|
+
defaultProps?: {
|
|
336
|
+
size?: string | number;
|
|
337
|
+
variant?: string | number;
|
|
338
|
+
colorScheme?: string;
|
|
339
|
+
};
|
|
471
340
|
};
|
|
472
341
|
};
|
|
473
342
|
export default _default;
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
declare const Checkbox: {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
};
|
|
9
|
-
_checked: {
|
|
10
|
-
borderColor: string;
|
|
11
|
-
};
|
|
12
|
-
_disabled: {
|
|
13
|
-
borderColor: string;
|
|
14
|
-
};
|
|
15
|
-
_invalid: {
|
|
16
|
-
borderColor: string;
|
|
17
|
-
};
|
|
2
|
+
baseStyle?: {
|
|
3
|
+
helperErrorText: {
|
|
4
|
+
marginStart: string;
|
|
5
|
+
_disabled: {
|
|
6
|
+
color: string;
|
|
7
|
+
fontStyle: string;
|
|
18
8
|
};
|
|
19
|
-
|
|
9
|
+
};
|
|
10
|
+
icon: {
|
|
11
|
+
animation: any;
|
|
12
|
+
width: string;
|
|
13
|
+
height: string;
|
|
14
|
+
};
|
|
15
|
+
base: {
|
|
16
|
+
_hover: {
|
|
20
17
|
span: {
|
|
21
18
|
_first: {
|
|
22
19
|
borderColor: string;
|
|
@@ -31,20 +28,31 @@ declare const Checkbox: {
|
|
|
31
28
|
borderColor: string;
|
|
32
29
|
};
|
|
33
30
|
};
|
|
31
|
+
_dark: {
|
|
32
|
+
span: {
|
|
33
|
+
_first: {
|
|
34
|
+
borderColor: string;
|
|
35
|
+
};
|
|
36
|
+
_checked: {
|
|
37
|
+
borderColor: string;
|
|
38
|
+
};
|
|
39
|
+
_disabled: {
|
|
40
|
+
borderColor: string;
|
|
41
|
+
};
|
|
42
|
+
_invalid: {
|
|
43
|
+
borderColor: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
};
|
|
34
47
|
};
|
|
35
48
|
};
|
|
36
|
-
icon: {
|
|
37
|
-
transitionProperty: string;
|
|
38
|
-
transitionDuration: string;
|
|
39
|
-
width: string;
|
|
40
|
-
height: string;
|
|
41
|
-
};
|
|
42
49
|
control: {
|
|
43
50
|
border: string;
|
|
44
51
|
borderRadius: string;
|
|
45
52
|
borderColor: string;
|
|
46
53
|
backgroundColor: string;
|
|
47
54
|
color: string;
|
|
55
|
+
cursor: string;
|
|
48
56
|
outline: string;
|
|
49
57
|
transitionProperty: string;
|
|
50
58
|
transitionDuration: string;
|
|
@@ -149,16 +157,11 @@ declare const Checkbox: {
|
|
|
149
157
|
color: string;
|
|
150
158
|
};
|
|
151
159
|
};
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
marginStart: string;
|
|
155
|
-
_disabled: {
|
|
156
|
-
color: string;
|
|
157
|
-
fontStyle: string;
|
|
158
|
-
};
|
|
160
|
+
cursor: string;
|
|
161
|
+
verticalAlign: string;
|
|
159
162
|
};
|
|
160
163
|
};
|
|
161
|
-
sizes
|
|
164
|
+
sizes?: {
|
|
162
165
|
lg: {
|
|
163
166
|
control: {
|
|
164
167
|
borderRadius: string;
|
|
@@ -170,9 +173,16 @@ declare const Checkbox: {
|
|
|
170
173
|
};
|
|
171
174
|
};
|
|
172
175
|
};
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
+
variants?: {
|
|
177
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
178
|
+
keys: ("base" | "label" | "container" | "icon" | "helperErrorText" | "control")[];
|
|
179
|
+
}>;
|
|
180
|
+
};
|
|
181
|
+
defaultProps?: {
|
|
182
|
+
size?: "lg";
|
|
183
|
+
variant?: string | number;
|
|
184
|
+
colorScheme?: string;
|
|
176
185
|
};
|
|
186
|
+
parts: ("base" | "label" | "container" | "icon" | "helperErrorText" | "control")[];
|
|
177
187
|
};
|
|
178
188
|
export default Checkbox;
|
|
@@ -1,14 +1,28 @@
|
|
|
1
1
|
declare const CheckboxGroup: {
|
|
2
|
-
|
|
3
|
-
baseStyle: ({ isFullWidth }: {
|
|
4
|
-
isFullWidth?: boolean;
|
|
5
|
-
}) => {
|
|
2
|
+
baseStyle?: ({ isFullWidth }: import("@chakra-ui/styled-system").StyleFunctionProps) => {
|
|
6
3
|
helperErrorText: {
|
|
7
4
|
marginTop: string;
|
|
8
5
|
};
|
|
9
6
|
label: {
|
|
7
|
+
display: string;
|
|
10
8
|
width: string;
|
|
11
9
|
};
|
|
12
10
|
};
|
|
11
|
+
sizes?: {
|
|
12
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
13
|
+
keys: "helperErrorText"[];
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
variants?: {
|
|
17
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
18
|
+
keys: "helperErrorText"[];
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
defaultProps?: {
|
|
22
|
+
size?: string | number;
|
|
23
|
+
variant?: string | number;
|
|
24
|
+
colorScheme?: string;
|
|
25
|
+
};
|
|
26
|
+
parts: "helperErrorText"[];
|
|
13
27
|
};
|
|
14
28
|
export default CheckboxGroup;
|
|
@@ -1,10 +1,5 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Note: these styles are only used when the
|
|
3
|
-
* DatePicker is in "date range" mode.
|
|
4
|
-
*/
|
|
5
1
|
declare const DatePicker: {
|
|
6
|
-
|
|
7
|
-
baseStyle: {
|
|
2
|
+
baseStyle?: {
|
|
8
3
|
subLabels: {
|
|
9
4
|
label: {
|
|
10
5
|
fontSize: string;
|
|
@@ -13,5 +8,21 @@ declare const DatePicker: {
|
|
|
13
8
|
};
|
|
14
9
|
};
|
|
15
10
|
};
|
|
11
|
+
sizes?: {
|
|
12
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
13
|
+
keys: "subLabels"[];
|
|
14
|
+
}>;
|
|
15
|
+
};
|
|
16
|
+
variants?: {
|
|
17
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
18
|
+
keys: "subLabels"[];
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
defaultProps?: {
|
|
22
|
+
size?: string | number;
|
|
23
|
+
variant?: string | number;
|
|
24
|
+
colorScheme?: string;
|
|
25
|
+
};
|
|
26
|
+
parts: "subLabels"[];
|
|
16
27
|
};
|
|
17
28
|
export default DatePicker;
|