@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,17 +1,24 @@
|
|
|
1
1
|
declare const Hero: {
|
|
2
|
-
baseStyle
|
|
3
|
-
|
|
2
|
+
baseStyle?: {};
|
|
3
|
+
sizes?: {
|
|
4
|
+
[key: string]: import("@chakra-ui/styled-system").PartsStyleInterpolation<{
|
|
5
|
+
keys: ("base" | "content" | "heading" | "imgWrapper" | "bodyText" | "interior")[];
|
|
6
|
+
}>;
|
|
7
|
+
};
|
|
8
|
+
variants?: {
|
|
4
9
|
primary: {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
base: {
|
|
11
|
+
alignItems: string;
|
|
12
|
+
backgroundSize: string;
|
|
13
|
+
backgroundPosition: string;
|
|
14
|
+
display: string;
|
|
15
|
+
flexFlow: {
|
|
16
|
+
base: "column nowrap";
|
|
17
|
+
md: "row nowrap";
|
|
18
|
+
};
|
|
19
|
+
justifyContent: string;
|
|
20
|
+
minHeight: string;
|
|
21
|
+
};
|
|
15
22
|
content: {
|
|
16
23
|
bg: string;
|
|
17
24
|
color: string;
|
|
@@ -20,7 +27,7 @@ declare const Hero: {
|
|
|
20
27
|
md: string;
|
|
21
28
|
};
|
|
22
29
|
maxWidth: {
|
|
23
|
-
md:
|
|
30
|
+
md: "960px";
|
|
24
31
|
};
|
|
25
32
|
paddingTop: string;
|
|
26
33
|
paddingBottom: string;
|
|
@@ -68,15 +75,20 @@ declare const Hero: {
|
|
|
68
75
|
zIndex: string;
|
|
69
76
|
order: string;
|
|
70
77
|
};
|
|
71
|
-
|
|
72
|
-
|
|
78
|
+
base: {
|
|
79
|
+
overflowX: string;
|
|
80
|
+
bgColor: string;
|
|
81
|
+
_dark: {
|
|
82
|
+
bgColor: string;
|
|
83
|
+
};
|
|
84
|
+
};
|
|
73
85
|
content: {
|
|
74
86
|
paddingEnd: string;
|
|
75
87
|
paddingStart: string;
|
|
76
88
|
display: string;
|
|
77
89
|
flexFlow: {
|
|
78
|
-
base:
|
|
79
|
-
md:
|
|
90
|
+
base: "column nowrap";
|
|
91
|
+
md: "row wrap";
|
|
80
92
|
};
|
|
81
93
|
marginY: string;
|
|
82
94
|
marginX: string;
|
|
@@ -86,20 +98,20 @@ declare const Hero: {
|
|
|
86
98
|
};
|
|
87
99
|
imgWrapper: {
|
|
88
100
|
marginEnd: {
|
|
89
|
-
base:
|
|
90
|
-
md:
|
|
101
|
+
base: "calc(-50vw + 50%)";
|
|
102
|
+
md: "0";
|
|
91
103
|
};
|
|
92
104
|
marginStart: {
|
|
93
|
-
base:
|
|
94
|
-
md:
|
|
105
|
+
base: "calc(-50vw + 50%)";
|
|
106
|
+
md: "0";
|
|
95
107
|
};
|
|
96
108
|
flex: {
|
|
97
109
|
base: string;
|
|
98
110
|
md: string;
|
|
99
111
|
};
|
|
100
112
|
order: {
|
|
101
|
-
base:
|
|
102
|
-
md:
|
|
113
|
+
base: "2";
|
|
114
|
+
md: "3";
|
|
103
115
|
};
|
|
104
116
|
img: {
|
|
105
117
|
height: string;
|
|
@@ -111,20 +123,17 @@ declare const Hero: {
|
|
|
111
123
|
bodyText: {
|
|
112
124
|
paddingBottom: string;
|
|
113
125
|
paddingEnd: {
|
|
114
|
-
md:
|
|
126
|
+
md: "inset.default";
|
|
115
127
|
};
|
|
116
128
|
paddingTop: string;
|
|
117
129
|
flex: {
|
|
118
130
|
md: string;
|
|
119
131
|
};
|
|
120
132
|
order: {
|
|
121
|
-
base:
|
|
122
|
-
md:
|
|
133
|
+
base: "3";
|
|
134
|
+
md: "2";
|
|
123
135
|
};
|
|
124
136
|
};
|
|
125
|
-
_dark: {
|
|
126
|
-
bgColor: string;
|
|
127
|
-
};
|
|
128
137
|
};
|
|
129
138
|
secondaryBooksAndMore: {
|
|
130
139
|
heading: {
|
|
@@ -152,15 +161,20 @@ declare const Hero: {
|
|
|
152
161
|
zIndex: string;
|
|
153
162
|
order: string;
|
|
154
163
|
};
|
|
155
|
-
|
|
156
|
-
|
|
164
|
+
base: {
|
|
165
|
+
overflowX: string;
|
|
166
|
+
bgColor: string;
|
|
167
|
+
_dark: {
|
|
168
|
+
bgColor: string;
|
|
169
|
+
};
|
|
170
|
+
};
|
|
157
171
|
content: {
|
|
158
172
|
paddingEnd: string;
|
|
159
173
|
paddingStart: string;
|
|
160
174
|
display: string;
|
|
161
175
|
flexFlow: {
|
|
162
|
-
base:
|
|
163
|
-
md:
|
|
176
|
+
base: "column nowrap";
|
|
177
|
+
md: "row wrap";
|
|
164
178
|
};
|
|
165
179
|
marginY: string;
|
|
166
180
|
marginX: string;
|
|
@@ -170,20 +184,20 @@ declare const Hero: {
|
|
|
170
184
|
};
|
|
171
185
|
imgWrapper: {
|
|
172
186
|
marginEnd: {
|
|
173
|
-
base:
|
|
174
|
-
md:
|
|
187
|
+
base: "calc(-50vw + 50%)";
|
|
188
|
+
md: "0";
|
|
175
189
|
};
|
|
176
190
|
marginStart: {
|
|
177
|
-
base:
|
|
178
|
-
md:
|
|
191
|
+
base: "calc(-50vw + 50%)";
|
|
192
|
+
md: "0";
|
|
179
193
|
};
|
|
180
194
|
flex: {
|
|
181
195
|
base: string;
|
|
182
196
|
md: string;
|
|
183
197
|
};
|
|
184
198
|
order: {
|
|
185
|
-
base:
|
|
186
|
-
md:
|
|
199
|
+
base: "2";
|
|
200
|
+
md: "3";
|
|
187
201
|
};
|
|
188
202
|
img: {
|
|
189
203
|
height: string;
|
|
@@ -195,20 +209,17 @@ declare const Hero: {
|
|
|
195
209
|
bodyText: {
|
|
196
210
|
paddingBottom: string;
|
|
197
211
|
paddingEnd: {
|
|
198
|
-
md:
|
|
212
|
+
md: "inset.default";
|
|
199
213
|
};
|
|
200
214
|
paddingTop: string;
|
|
201
215
|
flex: {
|
|
202
216
|
md: string;
|
|
203
217
|
};
|
|
204
218
|
order: {
|
|
205
|
-
base:
|
|
206
|
-
md:
|
|
219
|
+
base: "3";
|
|
220
|
+
md: "2";
|
|
207
221
|
};
|
|
208
222
|
};
|
|
209
|
-
_dark: {
|
|
210
|
-
bgColor: string;
|
|
211
|
-
};
|
|
212
223
|
};
|
|
213
224
|
secondaryLocations: {
|
|
214
225
|
heading: {
|
|
@@ -236,15 +247,20 @@ declare const Hero: {
|
|
|
236
247
|
zIndex: string;
|
|
237
248
|
order: string;
|
|
238
249
|
};
|
|
239
|
-
|
|
240
|
-
|
|
250
|
+
base: {
|
|
251
|
+
overflowX: string;
|
|
252
|
+
bgColor: string;
|
|
253
|
+
_dark: {
|
|
254
|
+
bgColor: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
241
257
|
content: {
|
|
242
258
|
paddingEnd: string;
|
|
243
259
|
paddingStart: string;
|
|
244
260
|
display: string;
|
|
245
261
|
flexFlow: {
|
|
246
|
-
base:
|
|
247
|
-
md:
|
|
262
|
+
base: "column nowrap";
|
|
263
|
+
md: "row wrap";
|
|
248
264
|
};
|
|
249
265
|
marginY: string;
|
|
250
266
|
marginX: string;
|
|
@@ -254,20 +270,20 @@ declare const Hero: {
|
|
|
254
270
|
};
|
|
255
271
|
imgWrapper: {
|
|
256
272
|
marginEnd: {
|
|
257
|
-
base:
|
|
258
|
-
md:
|
|
273
|
+
base: "calc(-50vw + 50%)";
|
|
274
|
+
md: "0";
|
|
259
275
|
};
|
|
260
276
|
marginStart: {
|
|
261
|
-
base:
|
|
262
|
-
md:
|
|
277
|
+
base: "calc(-50vw + 50%)";
|
|
278
|
+
md: "0";
|
|
263
279
|
};
|
|
264
280
|
flex: {
|
|
265
281
|
base: string;
|
|
266
282
|
md: string;
|
|
267
283
|
};
|
|
268
284
|
order: {
|
|
269
|
-
base:
|
|
270
|
-
md:
|
|
285
|
+
base: "2";
|
|
286
|
+
md: "3";
|
|
271
287
|
};
|
|
272
288
|
img: {
|
|
273
289
|
height: string;
|
|
@@ -279,20 +295,17 @@ declare const Hero: {
|
|
|
279
295
|
bodyText: {
|
|
280
296
|
paddingBottom: string;
|
|
281
297
|
paddingEnd: {
|
|
282
|
-
md:
|
|
298
|
+
md: "inset.default";
|
|
283
299
|
};
|
|
284
300
|
paddingTop: string;
|
|
285
301
|
flex: {
|
|
286
302
|
md: string;
|
|
287
303
|
};
|
|
288
304
|
order: {
|
|
289
|
-
base:
|
|
290
|
-
md:
|
|
305
|
+
base: "3";
|
|
306
|
+
md: "2";
|
|
291
307
|
};
|
|
292
308
|
};
|
|
293
|
-
_dark: {
|
|
294
|
-
bgColor: string;
|
|
295
|
-
};
|
|
296
309
|
};
|
|
297
310
|
secondaryResearch: {
|
|
298
311
|
heading: {
|
|
@@ -320,15 +333,20 @@ declare const Hero: {
|
|
|
320
333
|
zIndex: string;
|
|
321
334
|
order: string;
|
|
322
335
|
};
|
|
323
|
-
|
|
324
|
-
|
|
336
|
+
base: {
|
|
337
|
+
overflowX: string;
|
|
338
|
+
bgColor: string;
|
|
339
|
+
_dark: {
|
|
340
|
+
bgColor: string;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
325
343
|
content: {
|
|
326
344
|
paddingEnd: string;
|
|
327
345
|
paddingStart: string;
|
|
328
346
|
display: string;
|
|
329
347
|
flexFlow: {
|
|
330
|
-
base:
|
|
331
|
-
md:
|
|
348
|
+
base: "column nowrap";
|
|
349
|
+
md: "row wrap";
|
|
332
350
|
};
|
|
333
351
|
marginY: string;
|
|
334
352
|
marginX: string;
|
|
@@ -338,20 +356,20 @@ declare const Hero: {
|
|
|
338
356
|
};
|
|
339
357
|
imgWrapper: {
|
|
340
358
|
marginEnd: {
|
|
341
|
-
base:
|
|
342
|
-
md:
|
|
359
|
+
base: "calc(-50vw + 50%)";
|
|
360
|
+
md: "0";
|
|
343
361
|
};
|
|
344
362
|
marginStart: {
|
|
345
|
-
base:
|
|
346
|
-
md:
|
|
363
|
+
base: "calc(-50vw + 50%)";
|
|
364
|
+
md: "0";
|
|
347
365
|
};
|
|
348
366
|
flex: {
|
|
349
367
|
base: string;
|
|
350
368
|
md: string;
|
|
351
369
|
};
|
|
352
370
|
order: {
|
|
353
|
-
base:
|
|
354
|
-
md:
|
|
371
|
+
base: "2";
|
|
372
|
+
md: "3";
|
|
355
373
|
};
|
|
356
374
|
img: {
|
|
357
375
|
height: string;
|
|
@@ -363,20 +381,17 @@ declare const Hero: {
|
|
|
363
381
|
bodyText: {
|
|
364
382
|
paddingBottom: string;
|
|
365
383
|
paddingEnd: {
|
|
366
|
-
md:
|
|
384
|
+
md: "inset.default";
|
|
367
385
|
};
|
|
368
386
|
paddingTop: string;
|
|
369
387
|
flex: {
|
|
370
388
|
md: string;
|
|
371
389
|
};
|
|
372
390
|
order: {
|
|
373
|
-
base:
|
|
374
|
-
md:
|
|
391
|
+
base: "3";
|
|
392
|
+
md: "2";
|
|
375
393
|
};
|
|
376
394
|
};
|
|
377
|
-
_dark: {
|
|
378
|
-
bgColor: string;
|
|
379
|
-
};
|
|
380
395
|
};
|
|
381
396
|
secondaryWhatsOn: {
|
|
382
397
|
heading: {
|
|
@@ -404,15 +419,20 @@ declare const Hero: {
|
|
|
404
419
|
zIndex: string;
|
|
405
420
|
order: string;
|
|
406
421
|
};
|
|
407
|
-
|
|
408
|
-
|
|
422
|
+
base: {
|
|
423
|
+
overflowX: string;
|
|
424
|
+
bgColor: string;
|
|
425
|
+
_dark: {
|
|
426
|
+
bgColor: string;
|
|
427
|
+
};
|
|
428
|
+
};
|
|
409
429
|
content: {
|
|
410
430
|
paddingEnd: string;
|
|
411
431
|
paddingStart: string;
|
|
412
432
|
display: string;
|
|
413
433
|
flexFlow: {
|
|
414
|
-
base:
|
|
415
|
-
md:
|
|
434
|
+
base: "column nowrap";
|
|
435
|
+
md: "row wrap";
|
|
416
436
|
};
|
|
417
437
|
marginY: string;
|
|
418
438
|
marginX: string;
|
|
@@ -422,20 +442,20 @@ declare const Hero: {
|
|
|
422
442
|
};
|
|
423
443
|
imgWrapper: {
|
|
424
444
|
marginEnd: {
|
|
425
|
-
base:
|
|
426
|
-
md:
|
|
445
|
+
base: "calc(-50vw + 50%)";
|
|
446
|
+
md: "0";
|
|
427
447
|
};
|
|
428
448
|
marginStart: {
|
|
429
|
-
base:
|
|
430
|
-
md:
|
|
449
|
+
base: "calc(-50vw + 50%)";
|
|
450
|
+
md: "0";
|
|
431
451
|
};
|
|
432
452
|
flex: {
|
|
433
453
|
base: string;
|
|
434
454
|
md: string;
|
|
435
455
|
};
|
|
436
456
|
order: {
|
|
437
|
-
base:
|
|
438
|
-
md:
|
|
457
|
+
base: "2";
|
|
458
|
+
md: "3";
|
|
439
459
|
};
|
|
440
460
|
img: {
|
|
441
461
|
height: string;
|
|
@@ -447,41 +467,43 @@ declare const Hero: {
|
|
|
447
467
|
bodyText: {
|
|
448
468
|
paddingBottom: string;
|
|
449
469
|
paddingEnd: {
|
|
450
|
-
md:
|
|
470
|
+
md: "inset.default";
|
|
451
471
|
};
|
|
452
472
|
paddingTop: string;
|
|
453
473
|
flex: {
|
|
454
474
|
md: string;
|
|
455
475
|
};
|
|
456
476
|
order: {
|
|
457
|
-
base:
|
|
458
|
-
md:
|
|
477
|
+
base: "3";
|
|
478
|
+
md: "2";
|
|
459
479
|
};
|
|
460
480
|
};
|
|
461
|
-
_dark: {
|
|
462
|
-
bgColor: string;
|
|
463
|
-
};
|
|
464
481
|
};
|
|
465
482
|
tertiary: {
|
|
483
|
+
base: {
|
|
484
|
+
p: {
|
|
485
|
+
marginBottom: "0";
|
|
486
|
+
};
|
|
487
|
+
};
|
|
466
488
|
content: {
|
|
467
489
|
color: string;
|
|
468
490
|
display: string;
|
|
469
491
|
flexFlow: string;
|
|
470
492
|
px: string;
|
|
471
493
|
py: {
|
|
472
|
-
base:
|
|
473
|
-
xl:
|
|
494
|
+
base: "inset.default";
|
|
495
|
+
xl: "inset.wide";
|
|
474
496
|
};
|
|
475
497
|
p: {
|
|
476
|
-
marginBottom:
|
|
498
|
+
marginBottom: "0";
|
|
477
499
|
marginTop: {
|
|
478
|
-
base:
|
|
479
|
-
xl:
|
|
500
|
+
base: "xxs";
|
|
501
|
+
xl: "xs";
|
|
480
502
|
};
|
|
481
503
|
};
|
|
482
504
|
_dark: {
|
|
483
505
|
p: {
|
|
484
|
-
color:
|
|
506
|
+
color: "dark.ui.typography.body";
|
|
485
507
|
};
|
|
486
508
|
};
|
|
487
509
|
marginY: string;
|
|
@@ -497,46 +519,59 @@ declare const Hero: {
|
|
|
497
519
|
marginBottom: string;
|
|
498
520
|
};
|
|
499
521
|
};
|
|
500
|
-
p: {
|
|
501
|
-
marginBottom: string;
|
|
502
|
-
};
|
|
503
522
|
};
|
|
504
523
|
campaign: {
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
524
|
+
base: {
|
|
525
|
+
alignItems: string;
|
|
526
|
+
display: string;
|
|
527
|
+
justifyContent: string;
|
|
528
|
+
padding: {
|
|
529
|
+
base: "inset.wide";
|
|
530
|
+
md: "calc(var(--nypl-space-xxl) + var(--nypl-space-s)) var(--nypl-space-s) 0";
|
|
531
|
+
};
|
|
532
|
+
position: string;
|
|
533
|
+
a: {
|
|
534
|
+
color: string;
|
|
535
|
+
display: string;
|
|
536
|
+
};
|
|
537
|
+
img: {
|
|
538
|
+
clip: string;
|
|
539
|
+
height: {
|
|
540
|
+
base: string;
|
|
541
|
+
md: string;
|
|
542
|
+
};
|
|
543
|
+
overflow: string;
|
|
544
|
+
position: {
|
|
545
|
+
base: string;
|
|
546
|
+
md: string;
|
|
547
|
+
};
|
|
548
|
+
width: {
|
|
549
|
+
base: string;
|
|
550
|
+
md: string;
|
|
551
|
+
};
|
|
552
|
+
wordWrap: string;
|
|
553
|
+
};
|
|
554
|
+
};
|
|
518
555
|
content: {
|
|
519
556
|
alignItems: string;
|
|
520
557
|
bg: string;
|
|
521
558
|
color: string;
|
|
522
559
|
display: string;
|
|
523
560
|
flexFlow: {
|
|
524
|
-
base:
|
|
525
|
-
lg:
|
|
561
|
+
base: "column nowrap";
|
|
562
|
+
lg: "row nowrap";
|
|
526
563
|
};
|
|
527
564
|
minHeight: string;
|
|
528
565
|
flex: {
|
|
529
566
|
md: string;
|
|
530
567
|
};
|
|
531
568
|
maxWidth: {
|
|
532
|
-
md:
|
|
569
|
+
md: "1248px";
|
|
533
570
|
};
|
|
534
571
|
position: {
|
|
535
|
-
md:
|
|
536
|
-
};
|
|
537
|
-
top: {
|
|
538
|
-
md: string;
|
|
572
|
+
md: "relative";
|
|
539
573
|
};
|
|
574
|
+
zIndex: number;
|
|
540
575
|
_dark: {
|
|
541
576
|
color: string;
|
|
542
577
|
};
|
|
@@ -544,58 +579,56 @@ declare const Hero: {
|
|
|
544
579
|
heading: {
|
|
545
580
|
color: string;
|
|
546
581
|
};
|
|
547
|
-
a: {
|
|
548
|
-
color: string;
|
|
549
|
-
display: string;
|
|
550
|
-
};
|
|
551
|
-
img: {
|
|
552
|
-
clip: string;
|
|
553
|
-
height: {
|
|
554
|
-
base: string;
|
|
555
|
-
md: string;
|
|
556
|
-
};
|
|
557
|
-
overflow: string;
|
|
558
|
-
position: {
|
|
559
|
-
base: string;
|
|
560
|
-
md: string;
|
|
561
|
-
};
|
|
562
|
-
width: {
|
|
563
|
-
base: string;
|
|
564
|
-
md: string;
|
|
565
|
-
};
|
|
566
|
-
wordWrap: string;
|
|
567
|
-
};
|
|
568
582
|
imgWrapper: {
|
|
569
583
|
backgroundPosition: string;
|
|
570
584
|
backgroundSize: string;
|
|
571
585
|
minHeight: string;
|
|
572
586
|
width: {
|
|
573
|
-
base:
|
|
574
|
-
lg:
|
|
587
|
+
base: "100%";
|
|
588
|
+
lg: "50%";
|
|
575
589
|
};
|
|
576
590
|
};
|
|
577
591
|
interior: {
|
|
578
592
|
alignSelf: string;
|
|
579
593
|
maxWidth: {
|
|
580
|
-
md:
|
|
594
|
+
md: "960px";
|
|
581
595
|
};
|
|
582
596
|
padding: {
|
|
583
|
-
base:
|
|
584
|
-
md:
|
|
597
|
+
base: "inset.default";
|
|
598
|
+
md: "inset.wide";
|
|
585
599
|
};
|
|
586
600
|
width: {
|
|
587
|
-
base:
|
|
588
|
-
lg:
|
|
601
|
+
base: "100%";
|
|
602
|
+
lg: "50%";
|
|
589
603
|
};
|
|
590
604
|
};
|
|
591
605
|
};
|
|
592
606
|
fiftyFifty: {
|
|
607
|
+
base: {
|
|
608
|
+
img: {
|
|
609
|
+
clip: string;
|
|
610
|
+
height: {
|
|
611
|
+
base: string;
|
|
612
|
+
md: string;
|
|
613
|
+
};
|
|
614
|
+
overflow: string;
|
|
615
|
+
position: {
|
|
616
|
+
base: string;
|
|
617
|
+
md: string;
|
|
618
|
+
};
|
|
619
|
+
width: {
|
|
620
|
+
base: string;
|
|
621
|
+
md: string;
|
|
622
|
+
};
|
|
623
|
+
wordWrap: string;
|
|
624
|
+
};
|
|
625
|
+
};
|
|
593
626
|
content: {
|
|
594
627
|
alignItems: string;
|
|
595
628
|
display: string;
|
|
596
629
|
flexFlow: {
|
|
597
|
-
base:
|
|
598
|
-
lg:
|
|
630
|
+
base: "column nowrap";
|
|
631
|
+
lg: "row nowrap";
|
|
599
632
|
};
|
|
600
633
|
marginY: string;
|
|
601
634
|
marginX: string;
|
|
@@ -608,42 +641,31 @@ declare const Hero: {
|
|
|
608
641
|
backgroundSize: string;
|
|
609
642
|
minHeight: string;
|
|
610
643
|
width: {
|
|
611
|
-
base:
|
|
612
|
-
lg:
|
|
613
|
-
};
|
|
614
|
-
};
|
|
615
|
-
img: {
|
|
616
|
-
clip: string;
|
|
617
|
-
height: {
|
|
618
|
-
base: string;
|
|
619
|
-
md: string;
|
|
620
|
-
};
|
|
621
|
-
overflow: string;
|
|
622
|
-
position: {
|
|
623
|
-
base: string;
|
|
624
|
-
md: string;
|
|
625
|
-
};
|
|
626
|
-
width: {
|
|
627
|
-
base: string;
|
|
628
|
-
md: string;
|
|
644
|
+
base: "100%";
|
|
645
|
+
lg: "50%";
|
|
629
646
|
};
|
|
630
|
-
wordWrap: string;
|
|
631
647
|
};
|
|
632
648
|
bodyText: {
|
|
633
649
|
alignSelf: string;
|
|
634
650
|
maxWidth: {
|
|
635
|
-
md:
|
|
651
|
+
md: "960px";
|
|
636
652
|
};
|
|
637
653
|
padding: {
|
|
638
|
-
base:
|
|
639
|
-
md:
|
|
654
|
+
base: "inset.default";
|
|
655
|
+
md: "inset.wide";
|
|
640
656
|
};
|
|
641
657
|
width: {
|
|
642
|
-
base:
|
|
643
|
-
lg:
|
|
658
|
+
base: "100%";
|
|
659
|
+
lg: "50%";
|
|
644
660
|
};
|
|
645
661
|
};
|
|
646
662
|
};
|
|
647
663
|
};
|
|
664
|
+
defaultProps?: {
|
|
665
|
+
size?: string | number;
|
|
666
|
+
variant?: "primary" | "secondary" | "tertiary" | "secondaryBooksAndMore" | "secondaryLocations" | "secondaryResearch" | "secondaryWhatsOn" | "campaign" | "fiftyFifty";
|
|
667
|
+
colorScheme?: string;
|
|
668
|
+
};
|
|
669
|
+
parts: ("base" | "content" | "heading" | "imgWrapper" | "bodyText" | "interior")[];
|
|
648
670
|
};
|
|
649
671
|
export default Hero;
|