@nypl/design-system-react-components 1.2.1 → 1.3.0-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/components/FeedbackBox/FeedbackBox.d.ts +63 -0
- package/dist/components/FeedbackBox/useFeedbackBoxReducer.d.ts +19 -0
- package/dist/components/Icons/Icon.d.ts +4 -2
- package/dist/components/Icons/IconColors.d.ts +3 -0
- package/dist/components/Icons/IconNames.d.ts +3 -0
- package/dist/components/List/List.d.ts +7 -2
- package/dist/components/SearchBar/SearchBar.d.ts +1 -0
- package/dist/components/StyleGuide/ColorCard.d.ts +18 -6
- package/dist/components/StyledList/StyledList.d.ts +25 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +5 -3
- package/dist/design-system-react-components.cjs.development.js +495 -317
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +496 -319
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/hooks/useStateWithDependencies.d.ts +5 -0
- package/dist/index.d.ts +1 -0
- package/dist/theme/components/feedbackBox.d.ts +57 -0
- package/dist/theme/components/hero.d.ts +10 -2
- package/dist/theme/components/styledList.d.ts +41 -0
- package/dist/theme/components/textInput.d.ts +28 -1
- package/dist/theme/foundations/breakpoints.d.ts +1 -1
- package/package.json +8 -8
- package/CHANGELOG.md +0 -1677
|
@@ -56,7 +56,6 @@ var SvgAccessibilityFull = function SvgAccessibilityFull(_ref) {
|
|
|
56
56
|
viewBox: "0 0 18 18",
|
|
57
57
|
fill: "none",
|
|
58
58
|
xmlns: "http://www.w3.org/2000/svg",
|
|
59
|
-
role: "img",
|
|
60
59
|
"aria-labelledby": titleId
|
|
61
60
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
62
61
|
id: titleId
|
|
@@ -91,7 +90,6 @@ var SvgAccessibilityPartial = function SvgAccessibilityPartial(_ref) {
|
|
|
91
90
|
viewBox: "0 0 18 18",
|
|
92
91
|
fill: "none",
|
|
93
92
|
xmlns: "http://www.w3.org/2000/svg",
|
|
94
|
-
role: "img",
|
|
95
93
|
"aria-labelledby": titleId
|
|
96
94
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
97
95
|
id: titleId
|
|
@@ -125,7 +123,6 @@ var SvgActionCheckCircle = function SvgActionCheckCircle(_ref) {
|
|
|
125
123
|
return /*#__PURE__*/React.createElement("svg", _extends$3({
|
|
126
124
|
viewBox: "0 0 24 24",
|
|
127
125
|
xmlns: "http://www.w3.org/2000/svg",
|
|
128
|
-
role: "img",
|
|
129
126
|
"aria-labelledby": titleId
|
|
130
127
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
131
128
|
id: titleId
|
|
@@ -148,7 +145,6 @@ var SvgActionCheckCircleFilled = function SvgActionCheckCircleFilled(_ref) {
|
|
|
148
145
|
return /*#__PURE__*/React.createElement("svg", _extends$4({
|
|
149
146
|
viewBox: "0 0 24 24",
|
|
150
147
|
xmlns: "http://www.w3.org/2000/svg",
|
|
151
|
-
role: "img",
|
|
152
148
|
"aria-labelledby": titleId
|
|
153
149
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
154
150
|
id: titleId
|
|
@@ -169,7 +165,6 @@ var SvgActionExit = function SvgActionExit(_ref) {
|
|
|
169
165
|
return /*#__PURE__*/React.createElement("svg", _extends$5({
|
|
170
166
|
viewBox: "0 0 24 24",
|
|
171
167
|
xmlns: "http://www.w3.org/2000/svg",
|
|
172
|
-
role: "img",
|
|
173
168
|
"aria-labelledby": titleId
|
|
174
169
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
175
170
|
id: titleId
|
|
@@ -192,7 +187,6 @@ var SvgActionHelpDefault = function SvgActionHelpDefault(_ref) {
|
|
|
192
187
|
return /*#__PURE__*/React.createElement("svg", _extends$6({
|
|
193
188
|
viewBox: "0 0 24 24",
|
|
194
189
|
xmlns: "http://www.w3.org/2000/svg",
|
|
195
|
-
role: "img",
|
|
196
190
|
"aria-labelledby": titleId
|
|
197
191
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
198
192
|
id: titleId
|
|
@@ -215,7 +209,6 @@ var SvgActionHelpOutline = function SvgActionHelpOutline(_ref) {
|
|
|
215
209
|
return /*#__PURE__*/React.createElement("svg", _extends$7({
|
|
216
210
|
viewBox: "0 0 24 24",
|
|
217
211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
218
|
-
role: "img",
|
|
219
212
|
"aria-labelledby": titleId
|
|
220
213
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
221
214
|
id: titleId
|
|
@@ -238,7 +231,6 @@ var SvgActionLaunch = function SvgActionLaunch(_ref) {
|
|
|
238
231
|
return /*#__PURE__*/React.createElement("svg", _extends$8({
|
|
239
232
|
viewBox: "0 0 24 24",
|
|
240
233
|
xmlns: "http://www.w3.org/2000/svg",
|
|
241
|
-
role: "img",
|
|
242
234
|
"aria-labelledby": titleId
|
|
243
235
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
244
236
|
id: titleId
|
|
@@ -261,7 +253,6 @@ var SvgActionPower = function SvgActionPower(_ref) {
|
|
|
261
253
|
return /*#__PURE__*/React.createElement("svg", _extends$9({
|
|
262
254
|
viewBox: "0 0 24 24",
|
|
263
255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
264
|
-
role: "img",
|
|
265
256
|
"aria-labelledby": titleId
|
|
266
257
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
267
258
|
id: titleId
|
|
@@ -284,7 +275,6 @@ var SvgActionRegistration = function SvgActionRegistration(_ref) {
|
|
|
284
275
|
return /*#__PURE__*/React.createElement("svg", _extends$a({
|
|
285
276
|
viewBox: "0 0 24 24",
|
|
286
277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
287
|
-
role: "img",
|
|
288
278
|
"aria-labelledby": titleId
|
|
289
279
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
290
280
|
id: titleId
|
|
@@ -305,7 +295,6 @@ var SvgActionSettings = function SvgActionSettings(_ref) {
|
|
|
305
295
|
return /*#__PURE__*/React.createElement("svg", _extends$b({
|
|
306
296
|
viewBox: "0 0 24 24",
|
|
307
297
|
xmlns: "http://www.w3.org/2000/svg",
|
|
308
|
-
role: "img",
|
|
309
298
|
"aria-labelledby": titleId
|
|
310
299
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
311
300
|
id: titleId
|
|
@@ -328,7 +317,6 @@ var SvgAlertNotificationImportant = function SvgAlertNotificationImportant(_ref)
|
|
|
328
317
|
return /*#__PURE__*/React.createElement("svg", _extends$c({
|
|
329
318
|
viewBox: "0 0 24 24",
|
|
330
319
|
xmlns: "http://www.w3.org/2000/svg",
|
|
331
|
-
role: "img",
|
|
332
320
|
"aria-labelledby": titleId
|
|
333
321
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
334
322
|
id: titleId
|
|
@@ -351,7 +339,6 @@ var SvgAlertWarningFilled = function SvgAlertWarningFilled(_ref) {
|
|
|
351
339
|
return /*#__PURE__*/React.createElement("svg", _extends$d({
|
|
352
340
|
viewBox: "0 0 24 24",
|
|
353
341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
354
|
-
role: "img",
|
|
355
342
|
"aria-labelledby": titleId
|
|
356
343
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
357
344
|
id: titleId
|
|
@@ -374,7 +361,6 @@ var SvgAlertWarningOutline = function SvgAlertWarningOutline(_ref) {
|
|
|
374
361
|
return /*#__PURE__*/React.createElement("svg", _extends$e({
|
|
375
362
|
viewBox: "0 0 24 24",
|
|
376
363
|
xmlns: "http://www.w3.org/2000/svg",
|
|
377
|
-
role: "img",
|
|
378
364
|
"aria-labelledby": titleId
|
|
379
365
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
380
366
|
id: titleId
|
|
@@ -397,7 +383,6 @@ var SvgArrow = function SvgArrow(_ref) {
|
|
|
397
383
|
return /*#__PURE__*/React.createElement("svg", _extends$f({
|
|
398
384
|
viewBox: "0 0 24 14",
|
|
399
385
|
xmlns: "http://www.w3.org/2000/svg",
|
|
400
|
-
role: "img",
|
|
401
386
|
"aria-labelledby": titleId
|
|
402
387
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
403
388
|
id: titleId
|
|
@@ -420,7 +405,6 @@ var SvgBuilding = function SvgBuilding(_ref) {
|
|
|
420
405
|
return /*#__PURE__*/React.createElement("svg", _extends$g({
|
|
421
406
|
viewBox: "0 0 26 26",
|
|
422
407
|
xmlns: "http://www.w3.org/2000/svg",
|
|
423
|
-
role: "img",
|
|
424
408
|
"aria-labelledby": titleId
|
|
425
409
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
426
410
|
id: titleId
|
|
@@ -443,7 +427,6 @@ var SvgCheck = function SvgCheck(_ref) {
|
|
|
443
427
|
return /*#__PURE__*/React.createElement("svg", _extends$h({
|
|
444
428
|
viewBox: "0 0 24 24",
|
|
445
429
|
xmlns: "http://www.w3.org/2000/svg",
|
|
446
|
-
role: "img",
|
|
447
430
|
"aria-labelledby": titleId
|
|
448
431
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
449
432
|
id: titleId
|
|
@@ -464,7 +447,6 @@ var SvgClock = function SvgClock(_ref) {
|
|
|
464
447
|
return /*#__PURE__*/React.createElement("svg", _extends$i({
|
|
465
448
|
viewBox: "0 0 24 24",
|
|
466
449
|
xmlns: "http://www.w3.org/2000/svg",
|
|
467
|
-
role: "img",
|
|
468
450
|
"aria-labelledby": titleId
|
|
469
451
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
470
452
|
id: titleId
|
|
@@ -487,7 +469,6 @@ var SvgClose = function SvgClose(_ref) {
|
|
|
487
469
|
return /*#__PURE__*/React.createElement("svg", _extends$j({
|
|
488
470
|
viewBox: "0 0 24 24",
|
|
489
471
|
xmlns: "http://www.w3.org/2000/svg",
|
|
490
|
-
role: "img",
|
|
491
472
|
"aria-labelledby": titleId
|
|
492
473
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
493
474
|
id: titleId
|
|
@@ -508,7 +489,6 @@ var SvgDecorativeEnvelope = function SvgDecorativeEnvelope(_ref) {
|
|
|
508
489
|
return /*#__PURE__*/React.createElement("svg", _extends$k({
|
|
509
490
|
viewBox: "0 0 68 68",
|
|
510
491
|
xmlns: "http://www.w3.org/2000/svg",
|
|
511
|
-
role: "img",
|
|
512
492
|
"aria-labelledby": titleId
|
|
513
493
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
514
494
|
id: titleId
|
|
@@ -531,7 +511,6 @@ var SvgDecorativeLibraryCard = function SvgDecorativeLibraryCard(_ref) {
|
|
|
531
511
|
return /*#__PURE__*/React.createElement("svg", _extends$l({
|
|
532
512
|
viewBox: "0 0 68 68",
|
|
533
513
|
xmlns: "http://www.w3.org/2000/svg",
|
|
534
|
-
role: "img",
|
|
535
514
|
"aria-labelledby": titleId
|
|
536
515
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
537
516
|
id: titleId
|
|
@@ -554,7 +533,6 @@ var SvgDecorativeShoppingBag = function SvgDecorativeShoppingBag(_ref) {
|
|
|
554
533
|
return /*#__PURE__*/React.createElement("svg", _extends$m({
|
|
555
534
|
viewBox: "0 0 68 68",
|
|
556
535
|
xmlns: "http://www.w3.org/2000/svg",
|
|
557
|
-
role: "img",
|
|
558
536
|
"aria-labelledby": titleId
|
|
559
537
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
560
538
|
id: titleId
|
|
@@ -575,7 +553,6 @@ var SvgDownload = function SvgDownload(_ref) {
|
|
|
575
553
|
return /*#__PURE__*/React.createElement("svg", _extends$n({
|
|
576
554
|
viewBox: "0 0 14 18",
|
|
577
555
|
xmlns: "http://www.w3.org/2000/svg",
|
|
578
|
-
role: "img",
|
|
579
556
|
"aria-labelledby": titleId
|
|
580
557
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
581
558
|
id: titleId
|
|
@@ -598,14 +575,13 @@ var SvgErrorFilled = function SvgErrorFilled(_ref) {
|
|
|
598
575
|
return /*#__PURE__*/React.createElement("svg", _extends$o({
|
|
599
576
|
viewBox: "0 0 24 24",
|
|
600
577
|
xmlns: "http://www.w3.org/2000/svg",
|
|
601
|
-
role: "img",
|
|
602
578
|
"aria-labelledby": titleId
|
|
603
579
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
604
580
|
id: titleId
|
|
605
581
|
}, title) : null, _path$n || (_path$n = /*#__PURE__*/React.createElement("path", {
|
|
606
582
|
fillRule: "evenodd",
|
|
607
583
|
clipRule: "evenodd",
|
|
608
|
-
d: "M12
|
|
584
|
+
d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2Zm1.003 11h-2V7h2v6Zm-2 3.998h2v-2h-2v2Z"
|
|
609
585
|
})));
|
|
610
586
|
};
|
|
611
587
|
|
|
@@ -619,16 +595,15 @@ var SvgErrorOutline = function SvgErrorOutline(_ref) {
|
|
|
619
595
|
titleId = _ref.titleId,
|
|
620
596
|
props = _objectWithoutProperties$o(_ref, _excluded$o);
|
|
621
597
|
return /*#__PURE__*/React.createElement("svg", _extends$p({
|
|
622
|
-
viewBox: "0 0 24
|
|
598
|
+
viewBox: "0 0 24 24",
|
|
623
599
|
xmlns: "http://www.w3.org/2000/svg",
|
|
624
|
-
role: "img",
|
|
625
600
|
"aria-labelledby": titleId
|
|
626
601
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
627
602
|
id: titleId
|
|
628
603
|
}, title) : null, _path$o || (_path$o = /*#__PURE__*/React.createElement("path", {
|
|
629
604
|
fillRule: "evenodd",
|
|
630
605
|
clipRule: "evenodd",
|
|
631
|
-
d: "M11.
|
|
606
|
+
d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2Zm1.013 5h-2v6h2V7Zm0 7.998h-2v2h2v-2Zm-9.002-2.996c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8-8 3.58-8 8Z"
|
|
632
607
|
})));
|
|
633
608
|
};
|
|
634
609
|
|
|
@@ -644,7 +619,6 @@ var SvgFileTypeAudio = function SvgFileTypeAudio(_ref) {
|
|
|
644
619
|
return /*#__PURE__*/React.createElement("svg", _extends$q({
|
|
645
620
|
viewBox: "0 0 24 24",
|
|
646
621
|
xmlns: "http://www.w3.org/2000/svg",
|
|
647
|
-
role: "img",
|
|
648
622
|
"aria-labelledby": titleId
|
|
649
623
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
650
624
|
id: titleId
|
|
@@ -673,7 +647,6 @@ var SvgFileTypeDoc = function SvgFileTypeDoc(_ref) {
|
|
|
673
647
|
return /*#__PURE__*/React.createElement("svg", _extends$r({
|
|
674
648
|
viewBox: "0 0 24 24",
|
|
675
649
|
xmlns: "http://www.w3.org/2000/svg",
|
|
676
|
-
role: "img",
|
|
677
650
|
"aria-labelledby": titleId
|
|
678
651
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
679
652
|
id: titleId
|
|
@@ -702,7 +675,6 @@ var SvgFileTypeGenericDoc = function SvgFileTypeGenericDoc(_ref) {
|
|
|
702
675
|
return /*#__PURE__*/React.createElement("svg", _extends$s({
|
|
703
676
|
viewBox: "0 0 24 24",
|
|
704
677
|
xmlns: "http://www.w3.org/2000/svg",
|
|
705
|
-
role: "img",
|
|
706
678
|
"aria-labelledby": titleId
|
|
707
679
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
708
680
|
id: titleId
|
|
@@ -729,7 +701,6 @@ var SvgFileTypeImage = function SvgFileTypeImage(_ref) {
|
|
|
729
701
|
return /*#__PURE__*/React.createElement("svg", _extends$t({
|
|
730
702
|
viewBox: "0 0 24 24",
|
|
731
703
|
xmlns: "http://www.w3.org/2000/svg",
|
|
732
|
-
role: "img",
|
|
733
704
|
"aria-labelledby": titleId
|
|
734
705
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
735
706
|
id: titleId
|
|
@@ -766,7 +737,6 @@ var SvgFileTypePdf = function SvgFileTypePdf(_ref) {
|
|
|
766
737
|
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
767
738
|
viewBox: "0 0 24 24",
|
|
768
739
|
xmlns: "http://www.w3.org/2000/svg",
|
|
769
|
-
role: "img",
|
|
770
740
|
"aria-labelledby": titleId
|
|
771
741
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
772
742
|
id: titleId
|
|
@@ -795,7 +765,6 @@ var SvgFileTypeSpreadsheet = function SvgFileTypeSpreadsheet(_ref) {
|
|
|
795
765
|
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
796
766
|
viewBox: "0 0 24 24",
|
|
797
767
|
xmlns: "http://www.w3.org/2000/svg",
|
|
798
|
-
role: "img",
|
|
799
768
|
"aria-labelledby": titleId
|
|
800
769
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
801
770
|
id: titleId
|
|
@@ -824,7 +793,6 @@ var SvgFileTypeVideo = function SvgFileTypeVideo(_ref) {
|
|
|
824
793
|
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
825
794
|
viewBox: "0 0 24 24",
|
|
826
795
|
xmlns: "http://www.w3.org/2000/svg",
|
|
827
|
-
role: "img",
|
|
828
796
|
"aria-labelledby": titleId
|
|
829
797
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
830
798
|
id: titleId
|
|
@@ -851,7 +819,6 @@ var SvgHeadset = function SvgHeadset(_ref) {
|
|
|
851
819
|
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
852
820
|
viewBox: "0 0 18 19",
|
|
853
821
|
xmlns: "http://www.w3.org/2000/svg",
|
|
854
|
-
role: "img",
|
|
855
822
|
"aria-labelledby": titleId
|
|
856
823
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
857
824
|
id: titleId
|
|
@@ -872,7 +839,6 @@ var SvgLegacyAccountFilled = function SvgLegacyAccountFilled(_ref) {
|
|
|
872
839
|
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
873
840
|
viewBox: "0 0 32 33",
|
|
874
841
|
xmlns: "http://www.w3.org/2000/svg",
|
|
875
|
-
role: "img",
|
|
876
842
|
"aria-labelledby": titleId
|
|
877
843
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
878
844
|
id: titleId
|
|
@@ -893,7 +859,6 @@ var SvgLegacyAccountUnfilled = function SvgLegacyAccountUnfilled(_ref) {
|
|
|
893
859
|
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
894
860
|
viewBox: "0 0 33 33",
|
|
895
861
|
xmlns: "http://www.w3.org/2000/svg",
|
|
896
|
-
role: "img",
|
|
897
862
|
"aria-labelledby": titleId
|
|
898
863
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
899
864
|
id: titleId
|
|
@@ -914,7 +879,6 @@ var SvgLegacySocialFacebook = function SvgLegacySocialFacebook(_ref) {
|
|
|
914
879
|
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
915
880
|
viewBox: "0 0 32 32",
|
|
916
881
|
xmlns: "http://www.w3.org/2000/svg",
|
|
917
|
-
role: "img",
|
|
918
882
|
"aria-labelledby": titleId
|
|
919
883
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
920
884
|
id: titleId
|
|
@@ -935,7 +899,6 @@ var SvgLegacySocialInstagram = function SvgLegacySocialInstagram(_ref) {
|
|
|
935
899
|
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
936
900
|
viewBox: "0 0 32 32",
|
|
937
901
|
xmlns: "http://www.w3.org/2000/svg",
|
|
938
|
-
role: "img",
|
|
939
902
|
"aria-labelledby": titleId
|
|
940
903
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
941
904
|
id: titleId
|
|
@@ -956,7 +919,6 @@ var SvgLegacySocialTwitter = function SvgLegacySocialTwitter(_ref) {
|
|
|
956
919
|
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
957
920
|
viewBox: "0 0 32 32",
|
|
958
921
|
xmlns: "http://www.w3.org/2000/svg",
|
|
959
|
-
role: "img",
|
|
960
922
|
"aria-labelledby": titleId
|
|
961
923
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
962
924
|
id: titleId
|
|
@@ -977,7 +939,6 @@ var SvgLegacySocialYoutube = function SvgLegacySocialYoutube(_ref) {
|
|
|
977
939
|
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
978
940
|
viewBox: "0 0 32 32",
|
|
979
941
|
xmlns: "http://www.w3.org/2000/svg",
|
|
980
|
-
role: "img",
|
|
981
942
|
"aria-labelledby": titleId
|
|
982
943
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
983
944
|
id: titleId
|
|
@@ -998,7 +959,6 @@ var SvgLocator = function SvgLocator(_ref) {
|
|
|
998
959
|
return /*#__PURE__*/React.createElement("svg", _extends$E({
|
|
999
960
|
viewBox: "0 0 32 32",
|
|
1000
961
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1001
|
-
role: "img",
|
|
1002
962
|
"aria-labelledby": titleId
|
|
1003
963
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1004
964
|
id: titleId
|
|
@@ -1023,7 +983,6 @@ var SvgMinus = function SvgMinus(_ref) {
|
|
|
1023
983
|
width: 24,
|
|
1024
984
|
height: 2,
|
|
1025
985
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1026
|
-
role: "img",
|
|
1027
986
|
"aria-labelledby": titleId
|
|
1028
987
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1029
988
|
id: titleId
|
|
@@ -1046,7 +1005,6 @@ var SvgPlus = function SvgPlus(_ref) {
|
|
|
1046
1005
|
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
1047
1006
|
viewBox: "0 0 23 23",
|
|
1048
1007
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1049
|
-
role: "img",
|
|
1050
1008
|
"aria-labelledby": titleId
|
|
1051
1009
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1052
1010
|
id: titleId
|
|
@@ -1077,7 +1035,6 @@ var SvgSearch = function SvgSearch(_ref) {
|
|
|
1077
1035
|
return /*#__PURE__*/React.createElement("svg", _extends$H({
|
|
1078
1036
|
viewBox: "0 0 24 24",
|
|
1079
1037
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1080
|
-
role: "img",
|
|
1081
1038
|
"aria-labelledby": titleId
|
|
1082
1039
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1083
1040
|
id: titleId
|
|
@@ -1100,7 +1057,6 @@ var SvgSocialFacebook = function SvgSocialFacebook(_ref) {
|
|
|
1100
1057
|
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
1101
1058
|
viewBox: "0 0 36 36",
|
|
1102
1059
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1103
|
-
role: "img",
|
|
1104
1060
|
"aria-labelledby": titleId
|
|
1105
1061
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1106
1062
|
id: titleId
|
|
@@ -1123,7 +1079,6 @@ var SvgSocialInstagram = function SvgSocialInstagram(_ref) {
|
|
|
1123
1079
|
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
1124
1080
|
viewBox: "0 0 37 37",
|
|
1125
1081
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1126
|
-
role: "img",
|
|
1127
1082
|
"aria-labelledby": titleId
|
|
1128
1083
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1129
1084
|
id: titleId
|
|
@@ -1150,7 +1105,6 @@ var SvgSocialTumblr = function SvgSocialTumblr(_ref) {
|
|
|
1150
1105
|
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
1151
1106
|
viewBox: "0 0 36 36",
|
|
1152
1107
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1153
|
-
role: "img",
|
|
1154
1108
|
"aria-labelledby": titleId
|
|
1155
1109
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1156
1110
|
id: titleId
|
|
@@ -1175,7 +1129,6 @@ var SvgSocialTwitter = function SvgSocialTwitter(_ref) {
|
|
|
1175
1129
|
return /*#__PURE__*/React.createElement("svg", _extends$L({
|
|
1176
1130
|
viewBox: "0 0 36 36",
|
|
1177
1131
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1178
|
-
role: "img",
|
|
1179
1132
|
"aria-labelledby": titleId
|
|
1180
1133
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1181
1134
|
id: titleId
|
|
@@ -1198,7 +1151,6 @@ var SvgSocialYoutube = function SvgSocialYoutube(_ref) {
|
|
|
1198
1151
|
return /*#__PURE__*/React.createElement("svg", _extends$M({
|
|
1199
1152
|
viewBox: "0 0 36 36",
|
|
1200
1153
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1201
|
-
role: "img",
|
|
1202
1154
|
"aria-labelledby": titleId
|
|
1203
1155
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1204
1156
|
id: titleId
|
|
@@ -1223,7 +1175,6 @@ var SvgSpeakerNotes = function SvgSpeakerNotes(_ref) {
|
|
|
1223
1175
|
return /*#__PURE__*/React.createElement("svg", _extends$N({
|
|
1224
1176
|
viewBox: "0 0 24 24",
|
|
1225
1177
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1226
|
-
role: "img",
|
|
1227
1178
|
"aria-labelledby": titleId
|
|
1228
1179
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1229
1180
|
id: titleId
|
|
@@ -1247,7 +1198,6 @@ var SvgUtilityAccountFilled = function SvgUtilityAccountFilled(_ref) {
|
|
|
1247
1198
|
viewBox: "0 0 24 24",
|
|
1248
1199
|
fill: "none",
|
|
1249
1200
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1250
|
-
role: "img",
|
|
1251
1201
|
"aria-labelledby": titleId
|
|
1252
1202
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1253
1203
|
id: titleId
|
|
@@ -1273,7 +1223,6 @@ var SvgUtilityAccountUnfilled = function SvgUtilityAccountUnfilled(_ref) {
|
|
|
1273
1223
|
viewBox: "0 0 24 24",
|
|
1274
1224
|
fill: "none",
|
|
1275
1225
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1276
|
-
role: "img",
|
|
1277
1226
|
"aria-labelledby": titleId
|
|
1278
1227
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1279
1228
|
id: titleId
|
|
@@ -1304,7 +1253,6 @@ var SvgUtilityHamburger = function SvgUtilityHamburger(_ref) {
|
|
|
1304
1253
|
return /*#__PURE__*/React.createElement("svg", _extends$Q({
|
|
1305
1254
|
viewBox: "0 0 24 24",
|
|
1306
1255
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1307
|
-
role: "img",
|
|
1308
1256
|
"aria-labelledby": titleId
|
|
1309
1257
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
1310
1258
|
id: titleId
|
|
@@ -1591,9 +1539,6 @@ var Button = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
1591
1539
|
if (!id) {
|
|
1592
1540
|
console.warn("NYPL Reservoir Button: This component's required `id` prop was not passed.");
|
|
1593
1541
|
}
|
|
1594
|
-
if (buttonType === "link") {
|
|
1595
|
-
console.warn("NYPL Reservoir Button: The 'link' value for the 'buttonType' prop has been deprecated.");
|
|
1596
|
-
}
|
|
1597
1542
|
React__default.Children.map(children, function (child) {
|
|
1598
1543
|
childCount++;
|
|
1599
1544
|
if (child !== undefined && child !== null) {
|
|
@@ -2323,9 +2268,9 @@ var ButtonGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
2323
2268
|
buttonWidth: finalButtonWidth
|
|
2324
2269
|
});
|
|
2325
2270
|
React__default.Children.map(children, function (child, key) {
|
|
2326
|
-
if (child.type !== Button) {
|
|
2271
|
+
if ((child == null ? void 0 : child.type) !== Button) {
|
|
2327
2272
|
// Special case for Storybook MDX documentation.
|
|
2328
|
-
if (child.props.mdxType && child.props.mdxType === "Button") ; else {
|
|
2273
|
+
if (child != null && child.props.mdxType && (child == null ? void 0 : child.props.mdxType) === "Button") ; else {
|
|
2329
2274
|
console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
|
|
2330
2275
|
return;
|
|
2331
2276
|
}
|
|
@@ -2333,7 +2278,7 @@ var ButtonGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
2333
2278
|
var disabledProps = isDisabled ? {
|
|
2334
2279
|
isDisabled: isDisabled
|
|
2335
2280
|
} : {};
|
|
2336
|
-
newChildren.push(React__default.cloneElement(child, _extends({
|
|
2281
|
+
child && newChildren.push(React__default.cloneElement(child, _extends({
|
|
2337
2282
|
key: key
|
|
2338
2283
|
}, disabledProps)));
|
|
2339
2284
|
});
|
|
@@ -2450,8 +2395,7 @@ var Image = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
|
|
|
2450
2395
|
size: size
|
|
2451
2396
|
}, caption || credit ? {} : rest), imageComponent) : imageComponent;
|
|
2452
2397
|
return React__default.createElement(react.Box, {
|
|
2453
|
-
ref: finalRefs
|
|
2454
|
-
"data-testid": "test"
|
|
2398
|
+
ref: finalRefs
|
|
2455
2399
|
}, caption || credit ? React__default.createElement(react.Box, {
|
|
2456
2400
|
as: "figure",
|
|
2457
2401
|
__css: _extends({}, styles.figure, additionalFigureStyles)
|
|
@@ -3080,36 +3024,6 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
3080
3024
|
}));
|
|
3081
3025
|
}));
|
|
3082
3026
|
|
|
3083
|
-
var _excluded$15 = ["children", "columns", "className", "gap", "id"];
|
|
3084
|
-
var SimpleGrid = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3085
|
-
var children = props.children,
|
|
3086
|
-
columns = props.columns,
|
|
3087
|
-
className = props.className,
|
|
3088
|
-
_props$gap = props.gap,
|
|
3089
|
-
gap = _props$gap === void 0 ? "grid.l" : _props$gap,
|
|
3090
|
-
id = props.id,
|
|
3091
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$15);
|
|
3092
|
-
var responsiveCols = columns ? {
|
|
3093
|
-
base: 1,
|
|
3094
|
-
md: columns
|
|
3095
|
-
} : {
|
|
3096
|
-
base: 1,
|
|
3097
|
-
md: 2,
|
|
3098
|
-
lg: 3
|
|
3099
|
-
};
|
|
3100
|
-
return React__default.createElement(react.SimpleGrid, Object.assign({
|
|
3101
|
-
className: className,
|
|
3102
|
-
columns: responsiveCols,
|
|
3103
|
-
gap: gap,
|
|
3104
|
-
id: id,
|
|
3105
|
-
ref: ref
|
|
3106
|
-
}, rest), children);
|
|
3107
|
-
}), {
|
|
3108
|
-
shouldForwardProp: function shouldForwardProp() {
|
|
3109
|
-
return true;
|
|
3110
|
-
}
|
|
3111
|
-
});
|
|
3112
|
-
|
|
3113
3027
|
/**
|
|
3114
3028
|
* React hook used to get the window size on device resizing.
|
|
3115
3029
|
* Based on https://usehooks-typescript.com/react-hook/use-window-size
|
|
@@ -3139,7 +3053,7 @@ function useWindowSize() {
|
|
|
3139
3053
|
return windowSize;
|
|
3140
3054
|
}
|
|
3141
3055
|
|
|
3142
|
-
var _excluded$
|
|
3056
|
+
var _excluded$15 = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
|
|
3143
3057
|
/**
|
|
3144
3058
|
* Basic `Table` component used to organize and display tabular data in
|
|
3145
3059
|
* rows and columns.
|
|
@@ -3157,7 +3071,7 @@ var Table = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
|
|
|
3157
3071
|
titleText = props.titleText,
|
|
3158
3072
|
_props$useRowHeaders = props.useRowHeaders,
|
|
3159
3073
|
useRowHeaders = _props$useRowHeaders === void 0 ? false : _props$useRowHeaders,
|
|
3160
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
3074
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$15);
|
|
3161
3075
|
var customColors = {};
|
|
3162
3076
|
columnHeadersBackgroundColor && (customColors["backgroundColor"] = columnHeadersBackgroundColor);
|
|
3163
3077
|
columnHeadersTextColor && (customColors["color"] = columnHeadersTextColor);
|
|
@@ -3224,113 +3138,37 @@ var Table = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
|
|
|
3224
3138
|
}, rest), tableCaption, columnHeadersElems, tableBodyElems());
|
|
3225
3139
|
}));
|
|
3226
3140
|
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
return {
|
|
3241
|
-
// base, sm, md, lg, xl, 2xl
|
|
3242
|
-
breakpoints: theme.breakpoints,
|
|
3243
|
-
colors: {
|
|
3244
|
-
// primary, secondary
|
|
3245
|
-
brand: theme.colors.brand,
|
|
3246
|
-
// dark mode colors:
|
|
3247
|
-
// ui.disabled, ui.error, ui.focus, ui.link,
|
|
3248
|
-
// ui.status, ui.success, ui.test, ui.warning,
|
|
3249
|
-
// ui.bg, ui.border, ui.typography
|
|
3250
|
-
dark: theme.colors.dark,
|
|
3251
|
-
// blogs, books-and-more, education, locations,
|
|
3252
|
-
// research, research-library, whats-on
|
|
3253
|
-
section: theme.colors.section,
|
|
3254
|
-
transparent: theme.colors.transparent,
|
|
3255
|
-
// black, white, gray, disabled, error, focus, link,
|
|
3256
|
-
// status, success, test, warning, bg, border, typography
|
|
3257
|
-
ui: theme.colors.ui
|
|
3258
|
-
},
|
|
3259
|
-
fontSizes: {
|
|
3260
|
-
"-3": theme.fontSizes["-3"],
|
|
3261
|
-
"-2": theme.fontSizes["-2"],
|
|
3262
|
-
"-1": theme.fontSizes["-1"],
|
|
3263
|
-
"0": theme.fontSizes["0"],
|
|
3264
|
-
"1": theme.fontSizes["1"],
|
|
3265
|
-
"2": theme.fontSizes["2"],
|
|
3266
|
-
"3": theme.fontSizes["3"],
|
|
3267
|
-
"4": theme.fontSizes["4"],
|
|
3268
|
-
// default
|
|
3269
|
-
breadcrumbs: theme.fontSizes.breadcrumbs,
|
|
3270
|
-
// default
|
|
3271
|
-
button: theme.fontSizes.button,
|
|
3272
|
-
// primary, secondary, tertiary, callout
|
|
3273
|
-
heading: theme.fontSizes.heading,
|
|
3274
|
-
// default
|
|
3275
|
-
helper: theme.fontSizes.helper,
|
|
3276
|
-
// default, secondary
|
|
3277
|
-
label: theme.fontSizes.label,
|
|
3278
|
-
// default, caption, tag, mini
|
|
3279
|
-
text: theme.fontSizes.text
|
|
3280
|
-
},
|
|
3281
|
-
fontWeights: {
|
|
3282
|
-
light: theme.fontWeights.light,
|
|
3283
|
-
regular: theme.fontWeights.regular,
|
|
3284
|
-
medium: theme.fontWeights.medium,
|
|
3285
|
-
bold: theme.fontWeights.bold,
|
|
3286
|
-
// default, lastChild
|
|
3287
|
-
breadcrumbs: theme.fontWeights.breadcrumbs,
|
|
3288
|
-
// default
|
|
3289
|
-
button: theme.fontWeights.button,
|
|
3290
|
-
// primary, secondary, tertiary, callout
|
|
3291
|
-
heading: theme.fontWeights.heading,
|
|
3292
|
-
// default
|
|
3293
|
-
helper: theme.fontWeights.helper,
|
|
3294
|
-
// default
|
|
3295
|
-
label: theme.fontWeights.label,
|
|
3296
|
-
// default, caption, tag, mini
|
|
3297
|
-
text: theme.fontWeights.text
|
|
3298
|
-
},
|
|
3299
|
-
fonts: {
|
|
3300
|
-
body: theme.fonts.body,
|
|
3301
|
-
heading: theme.fonts.heading
|
|
3302
|
-
},
|
|
3303
|
-
radii: theme.radii,
|
|
3304
|
-
space: {
|
|
3305
|
-
xxs: theme.space.xxs,
|
|
3306
|
-
xs: theme.space.xs,
|
|
3307
|
-
s: theme.space.s,
|
|
3308
|
-
m: theme.space.m,
|
|
3309
|
-
l: theme.space.l,
|
|
3310
|
-
xl: theme.space.xl,
|
|
3311
|
-
xxl: theme.space.xxl,
|
|
3312
|
-
xxxl: theme.space.xxxl
|
|
3141
|
+
var SmallColorSwatch = function SmallColorSwatch(props) {
|
|
3142
|
+
var backgroundColor = props.backgroundColor,
|
|
3143
|
+
border = props.border,
|
|
3144
|
+
darkBorder = props.darkBorder;
|
|
3145
|
+
return React.createElement("span", {
|
|
3146
|
+
style: {
|
|
3147
|
+
backgroundColor: backgroundColor,
|
|
3148
|
+
border: !border && !darkBorder ? null : darkBorder ? "1px solid #191919" : "1px solid #E9E9E9",
|
|
3149
|
+
display: "inline-block",
|
|
3150
|
+
height: "1rem",
|
|
3151
|
+
marginRight: ".5rem",
|
|
3152
|
+
verticalAlign: "middle",
|
|
3153
|
+
width: "1rem"
|
|
3313
3154
|
}
|
|
3314
|
-
};
|
|
3315
|
-
}
|
|
3316
|
-
|
|
3155
|
+
});
|
|
3156
|
+
};
|
|
3317
3157
|
var DataTable = function DataTable(props) {
|
|
3318
3158
|
var dataBgPageColor = props.dataBgPageColor,
|
|
3319
3159
|
dataBgDefaultColor = props.dataBgDefaultColor,
|
|
3160
|
+
dataDarkBgPageColor = props.dataDarkBgPageColor,
|
|
3161
|
+
dataDarkBgDefaultColor = props.dataDarkBgDefaultColor,
|
|
3320
3162
|
_props$dataBlackColor = props.dataBlackColor,
|
|
3321
3163
|
dataBlackColor = _props$dataBlackColor === void 0 ? ["--", "--", "--"] : _props$dataBlackColor,
|
|
3322
|
-
|
|
3323
|
-
|
|
3164
|
+
dataDarkHeadingColor = props.dataDarkHeadingColor,
|
|
3165
|
+
dataDarkBodyColor = props.dataDarkBodyColor,
|
|
3324
3166
|
_props$dataWhiteColor = props.dataWhiteColor,
|
|
3325
3167
|
dataWhiteColor = _props$dataWhiteColor === void 0 ? ["--", "--", "--"] : _props$dataWhiteColor,
|
|
3168
|
+
dataBrandPrimaryColor = props.dataBrandPrimaryColor,
|
|
3169
|
+
dataBrandSecondaryColor = props.dataBrandSecondaryColor,
|
|
3326
3170
|
_props$textColor = props.textColor,
|
|
3327
3171
|
textColor = _props$textColor === void 0 ? "ui.white" : _props$textColor;
|
|
3328
|
-
var _useNYPLTheme = useNYPLTheme(),
|
|
3329
|
-
ui = _useNYPLTheme.colors.ui;
|
|
3330
|
-
var grayxxxxDark = ui.gray["xxxx-dark"];
|
|
3331
|
-
var grayxxxDark = ui.gray["xxx-dark"];
|
|
3332
|
-
var grayLightCool = ui.gray["light-cool"];
|
|
3333
|
-
var grayMedium = ui.gray.medium;
|
|
3334
3172
|
var SuccessIcon = function SuccessIcon() {
|
|
3335
3173
|
return React.createElement(Icon, {
|
|
3336
3174
|
color: textColor,
|
|
@@ -3355,29 +3193,41 @@ var DataTable = function DataTable(props) {
|
|
|
3355
3193
|
var whiteLargeTextSuccess = successfulContrast(dataWhiteColor, "large");
|
|
3356
3194
|
var blackSmallTextSuccess = successfulContrast(dataBlackColor);
|
|
3357
3195
|
var blackLargeTextSuccess = successfulContrast(dataBlackColor, "large");
|
|
3196
|
+
var brandPrimarySmallTextSuccess = dataBrandPrimaryColor && successfulContrast(dataBrandPrimaryColor);
|
|
3197
|
+
var brandPrimaryLargeTextSuccess = dataBrandPrimaryColor && successfulContrast(dataBrandPrimaryColor, "large");
|
|
3198
|
+
var brandSecondarySmallTextSuccess = dataBrandSecondaryColor && successfulContrast(dataBrandSecondaryColor);
|
|
3199
|
+
var brandSecondaryLargeTextSuccess = dataBrandSecondaryColor && successfulContrast(dataBrandSecondaryColor, "large");
|
|
3358
3200
|
// The dark theme colors might have the following color contrast information.
|
|
3359
3201
|
var bgPageSmallTextSuccess = dataBgPageColor && successfulContrast(dataBgPageColor);
|
|
3360
3202
|
var bgPageLargeTextSuccess = dataBgPageColor && successfulContrast(dataBgPageColor, "large");
|
|
3361
3203
|
var bgDefaultSmallTextSuccess = dataBgDefaultColor && successfulContrast(dataBgDefaultColor);
|
|
3362
3204
|
var bgDefaultLargeTextSuccess = dataBgDefaultColor && successfulContrast(dataBgDefaultColor, "large");
|
|
3363
|
-
var
|
|
3364
|
-
var
|
|
3365
|
-
var
|
|
3366
|
-
var
|
|
3205
|
+
var darkBgPageSmallTextSuccess = dataDarkBgPageColor && successfulContrast(dataDarkBgPageColor);
|
|
3206
|
+
var darkBgPageLargeTextSuccess = dataDarkBgPageColor && successfulContrast(dataDarkBgPageColor, "large");
|
|
3207
|
+
var darkBgDefaultSmallTextSuccess = dataDarkBgDefaultColor && successfulContrast(dataDarkBgDefaultColor);
|
|
3208
|
+
var darkBgDefaultLargeTextSuccess = dataDarkBgDefaultColor && successfulContrast(dataDarkBgDefaultColor, "large");
|
|
3209
|
+
var darkHeadingSmallTextSuccess = dataDarkHeadingColor && successfulContrast(dataDarkHeadingColor);
|
|
3210
|
+
var darkHeadingLargeTextSuccess = dataDarkHeadingColor && successfulContrast(dataDarkHeadingColor, "large");
|
|
3211
|
+
var textSmallTextSuccess = dataDarkBodyColor && successfulContrast(dataDarkBodyColor);
|
|
3212
|
+
var textLargeTextSuccess = dataDarkBodyColor && successfulContrast(dataDarkBodyColor, "large");
|
|
3367
3213
|
// All ColorCards have these two rows.
|
|
3368
3214
|
var tableData = [[React.createElement("span", {
|
|
3369
3215
|
key: "colorUiWhite",
|
|
3370
3216
|
style: {
|
|
3371
|
-
color: "white",
|
|
3372
3217
|
padding: 0
|
|
3373
3218
|
}
|
|
3374
|
-
},
|
|
3219
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3220
|
+
backgroundColor: "white",
|
|
3221
|
+
border: true
|
|
3222
|
+
}), "ui.white"), dataWhiteColor[0] + ":1", React.createElement(React.Fragment, null, dataWhiteColor[1], whiteSmallTextSuccess), React.createElement(React.Fragment, null, dataWhiteColor[2], whiteLargeTextSuccess)], [React.createElement("span", {
|
|
3375
3223
|
key: "colorUiBlack",
|
|
3376
3224
|
style: {
|
|
3377
|
-
color: "black",
|
|
3378
3225
|
padding: 0
|
|
3379
3226
|
}
|
|
3380
|
-
},
|
|
3227
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3228
|
+
backgroundColor: "black",
|
|
3229
|
+
darkBorder: true
|
|
3230
|
+
}), "ui.black"), dataBlackColor[0] + ":1", React.createElement(React.Fragment, null, dataBlackColor[1], blackSmallTextSuccess), React.createElement(React.Fragment, null, dataBlackColor[2], blackLargeTextSuccess)]];
|
|
3381
3231
|
var cellStyles = {
|
|
3382
3232
|
borderColor: textColor === "ui.white" ? "white !important" : "black !important",
|
|
3383
3233
|
fontWeight: "medium",
|
|
@@ -3386,56 +3236,109 @@ var DataTable = function DataTable(props) {
|
|
|
3386
3236
|
var tableStyles = {
|
|
3387
3237
|
tbody: {
|
|
3388
3238
|
td: _extends({
|
|
3389
|
-
fontSize: "text.
|
|
3239
|
+
fontSize: "text.tag"
|
|
3390
3240
|
}, cellStyles),
|
|
3391
3241
|
th: _extends({
|
|
3392
|
-
fontSize: "text.
|
|
3242
|
+
fontSize: "text.tag",
|
|
3393
3243
|
textTransform: "none"
|
|
3394
|
-
}, cellStyles
|
|
3244
|
+
}, cellStyles, {
|
|
3245
|
+
_first: {
|
|
3246
|
+
span: {
|
|
3247
|
+
color: textColor
|
|
3248
|
+
}
|
|
3249
|
+
}
|
|
3250
|
+
})
|
|
3395
3251
|
},
|
|
3396
3252
|
thead: {
|
|
3397
3253
|
th: _extends({
|
|
3398
3254
|
color: textColor,
|
|
3399
|
-
fontSize: "text.tag"
|
|
3255
|
+
fontSize: "text.tag",
|
|
3256
|
+
textTransform: "uppercase"
|
|
3400
3257
|
}, cellStyles)
|
|
3401
3258
|
}
|
|
3402
3259
|
};
|
|
3403
|
-
//
|
|
3260
|
+
// The Brand colors are needed for some `ColorCard`s.
|
|
3261
|
+
if (dataBrandPrimaryColor && dataBrandPrimaryColor.length > 0) {
|
|
3262
|
+
tableData.push([React.createElement("span", {
|
|
3263
|
+
key: "colorBrandPrimaryPage",
|
|
3264
|
+
style: {
|
|
3265
|
+
padding: 0
|
|
3266
|
+
}
|
|
3267
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3268
|
+
backgroundColor: "var(--nypl-colors-brand-primary)"
|
|
3269
|
+
}), "brand.primary"), dataBrandPrimaryColor[0] + ":1", React.createElement(React.Fragment, null, dataBrandPrimaryColor[1], brandPrimarySmallTextSuccess), React.createElement(React.Fragment, null, dataBrandPrimaryColor[2], brandPrimaryLargeTextSuccess)]);
|
|
3270
|
+
}
|
|
3271
|
+
if (dataBrandSecondaryColor && dataBrandSecondaryColor.length > 0) {
|
|
3272
|
+
tableData.push([React.createElement("span", {
|
|
3273
|
+
key: "colorBrandSecondaryPage",
|
|
3274
|
+
style: {
|
|
3275
|
+
padding: 0
|
|
3276
|
+
}
|
|
3277
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3278
|
+
backgroundColor: "var(--nypl-colors-brand-secondary)"
|
|
3279
|
+
}), "brand.secondary"), dataBrandSecondaryColor[0] + ":1", React.createElement(React.Fragment, null, dataBrandSecondaryColor[1], brandSecondarySmallTextSuccess), React.createElement(React.Fragment, null, dataBrandSecondaryColor[2], brandSecondaryLargeTextSuccess)]);
|
|
3280
|
+
}
|
|
3404
3281
|
if (dataBgPageColor && dataBgPageColor.length > 0) {
|
|
3405
3282
|
tableData.push([React.createElement("span", {
|
|
3406
3283
|
key: "colorBgPage",
|
|
3407
3284
|
style: {
|
|
3408
|
-
color: grayxxxxDark,
|
|
3409
3285
|
padding: 0
|
|
3410
3286
|
}
|
|
3411
|
-
},
|
|
3287
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3288
|
+
backgroundColor: "var(--nypl-colors-ui-bg-page)",
|
|
3289
|
+
border: true
|
|
3290
|
+
}), "ui.bg.page"), dataBgPageColor[0] + ":1", React.createElement(React.Fragment, null, dataBgPageColor[1], bgPageSmallTextSuccess), React.createElement(React.Fragment, null, dataBgPageColor[2], bgPageLargeTextSuccess)]);
|
|
3412
3291
|
}
|
|
3413
3292
|
if (dataBgDefaultColor && dataBgDefaultColor.length > 0) {
|
|
3414
3293
|
tableData.push([React.createElement("span", {
|
|
3415
3294
|
key: "colorBgDefault",
|
|
3416
3295
|
style: {
|
|
3417
|
-
color: grayxxxDark,
|
|
3418
3296
|
padding: 0
|
|
3419
3297
|
}
|
|
3420
|
-
},
|
|
3298
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3299
|
+
backgroundColor: "var(--nypl-colors-ui-bg-default)"
|
|
3300
|
+
}), "ui.bg.default"), dataBgDefaultColor[0] + ":1", React.createElement(React.Fragment, null, dataBgDefaultColor[1], bgDefaultSmallTextSuccess), React.createElement(React.Fragment, null, dataBgDefaultColor[2], bgDefaultLargeTextSuccess)]);
|
|
3421
3301
|
}
|
|
3422
|
-
|
|
3302
|
+
// For dark mode `ColorCard`s, there are four extra rows.
|
|
3303
|
+
if (dataDarkBgPageColor && dataDarkBgPageColor.length > 0) {
|
|
3423
3304
|
tableData.push([React.createElement("span", {
|
|
3424
|
-
key: "
|
|
3305
|
+
key: "colorDarkBgPage",
|
|
3425
3306
|
style: {
|
|
3426
|
-
color: grayLightCool,
|
|
3427
3307
|
padding: 0
|
|
3428
3308
|
}
|
|
3429
|
-
},
|
|
3309
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3310
|
+
backgroundColor: "var(--nypl-colors-dark-ui-bg-page)"
|
|
3311
|
+
}), "dark.ui.bg.page"), dataDarkBgPageColor[0] + ":1", React.createElement(React.Fragment, null, dataDarkBgPageColor[1], darkBgPageSmallTextSuccess), React.createElement(React.Fragment, null, dataDarkBgPageColor[2], darkBgPageLargeTextSuccess)]);
|
|
3430
3312
|
}
|
|
3431
|
-
if (
|
|
3313
|
+
if (dataDarkBgDefaultColor && dataDarkBgDefaultColor.length > 0) {
|
|
3432
3314
|
tableData.push([React.createElement("span", {
|
|
3433
|
-
key: "
|
|
3315
|
+
key: "colorDarkBgDefault",
|
|
3434
3316
|
style: {
|
|
3435
|
-
color: grayMedium,
|
|
3436
3317
|
padding: 0
|
|
3437
3318
|
}
|
|
3438
|
-
},
|
|
3319
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3320
|
+
backgroundColor: "var(--nypl-colors-dark-ui-bg-default)"
|
|
3321
|
+
}), "dark.ui.bg.default"), dataDarkBgDefaultColor[0] + ":1", React.createElement(React.Fragment, null, dataDarkBgDefaultColor[1], darkBgDefaultSmallTextSuccess), React.createElement(React.Fragment, null, dataDarkBgDefaultColor[2], darkBgDefaultLargeTextSuccess)]);
|
|
3322
|
+
}
|
|
3323
|
+
if (dataDarkHeadingColor && dataDarkHeadingColor.length > 0) {
|
|
3324
|
+
tableData.push([React.createElement("span", {
|
|
3325
|
+
key: "colorDarkHeading",
|
|
3326
|
+
style: {
|
|
3327
|
+
padding: 0
|
|
3328
|
+
}
|
|
3329
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3330
|
+
backgroundColor: "var(--nypl-colors-ui-typography-heading)"
|
|
3331
|
+
}), "ui.typography.heading"), dataDarkHeadingColor[0] + ":1", React.createElement(React.Fragment, null, dataDarkHeadingColor[1], darkHeadingSmallTextSuccess), React.createElement(React.Fragment, null, dataDarkHeadingColor[2], darkHeadingLargeTextSuccess)]);
|
|
3332
|
+
}
|
|
3333
|
+
if (dataDarkBodyColor && dataDarkBodyColor.length > 0) {
|
|
3334
|
+
tableData.push([React.createElement("span", {
|
|
3335
|
+
key: "colorDarkText",
|
|
3336
|
+
style: {
|
|
3337
|
+
padding: 0
|
|
3338
|
+
}
|
|
3339
|
+
}, React.createElement(SmallColorSwatch, {
|
|
3340
|
+
backgroundColor: "var(--nypl-colors-ui-typography-body)"
|
|
3341
|
+
}), "ui.typography.body"), dataDarkBodyColor[0] + ":1", React.createElement(React.Fragment, null, dataDarkBodyColor[1], textSmallTextSuccess), React.createElement(React.Fragment, null, dataDarkBodyColor[2], textLargeTextSuccess)]);
|
|
3439
3342
|
}
|
|
3440
3343
|
return React.createElement(Table, {
|
|
3441
3344
|
columnHeaders: columnHeaders,
|
|
@@ -3449,19 +3352,23 @@ var ColorCard = function ColorCard(props) {
|
|
|
3449
3352
|
var backgroundColor = props.backgroundColor,
|
|
3450
3353
|
dataBgPageColor = props.dataBgPageColor,
|
|
3451
3354
|
dataBgDefaultColor = props.dataBgDefaultColor,
|
|
3355
|
+
dataDarkBgPageColor = props.dataDarkBgPageColor,
|
|
3356
|
+
dataDarkBgDefaultColor = props.dataDarkBgDefaultColor,
|
|
3452
3357
|
_props$colorName = props.colorName,
|
|
3453
3358
|
colorName = _props$colorName === void 0 ? "" : _props$colorName,
|
|
3454
3359
|
colorSource = props.colorSource,
|
|
3455
3360
|
_props$dataBlackColor2 = props.dataBlackColor,
|
|
3456
3361
|
dataBlackColor = _props$dataBlackColor2 === void 0 ? ["--", "--", "--"] : _props$dataBlackColor2,
|
|
3457
|
-
|
|
3458
|
-
|
|
3362
|
+
dataDarkHeadingColor = props.dataDarkHeadingColor,
|
|
3363
|
+
dataDarkBodyColor = props.dataDarkBodyColor,
|
|
3459
3364
|
_props$dataWhiteColor2 = props.dataWhiteColor,
|
|
3460
3365
|
dataWhiteColor = _props$dataWhiteColor2 === void 0 ? ["--", "--", "--"] : _props$dataWhiteColor2,
|
|
3366
|
+
dataBrandPrimaryColor = props.dataBrandPrimaryColor,
|
|
3367
|
+
dataBrandSecondaryColor = props.dataBrandSecondaryColor,
|
|
3461
3368
|
_props$textColor2 = props.textColor,
|
|
3462
3369
|
textColor = _props$textColor2 === void 0 ? "ui.white" : _props$textColor2;
|
|
3463
3370
|
var cssVarName = "--nypl-colors-" + colorName.replace(/\./g, "-");
|
|
3464
|
-
var border = backgroundColor === "ui.white" ? "1px solid var(--nypl-colors-ui-gray-light-cool)" : undefined;
|
|
3371
|
+
var border = backgroundColor === "ui.white" || backgroundColor === "ui.typography.inverse.heading" || backgroundColor === "ui.typography.inverse.body" ? "1px solid var(--nypl-colors-ui-gray-light-cool)" : undefined;
|
|
3465
3372
|
return React.createElement(react.Box, {
|
|
3466
3373
|
bg: backgroundColor,
|
|
3467
3374
|
color: textColor,
|
|
@@ -3469,9 +3376,11 @@ var ColorCard = function ColorCard(props) {
|
|
|
3469
3376
|
paddingBottom: "m",
|
|
3470
3377
|
paddingTop: "s",
|
|
3471
3378
|
border: border
|
|
3472
|
-
}, React.createElement(
|
|
3473
|
-
|
|
3474
|
-
}, React.createElement(react.Box,
|
|
3379
|
+
}, React.createElement(react.HStack, {
|
|
3380
|
+
alignItems: "top"
|
|
3381
|
+
}, React.createElement(react.Box, {
|
|
3382
|
+
width: "80%"
|
|
3383
|
+
}, React.createElement(Heading, {
|
|
3475
3384
|
noSpace: true,
|
|
3476
3385
|
size: "tertiary"
|
|
3477
3386
|
}, backgroundColor), React.createElement(Text, {
|
|
@@ -3485,14 +3394,48 @@ var ColorCard = function ColorCard(props) {
|
|
|
3485
3394
|
}, "Source: ", colorSource)), React.createElement(DataTable, {
|
|
3486
3395
|
dataBgPageColor: dataBgPageColor,
|
|
3487
3396
|
dataBgDefaultColor: dataBgDefaultColor,
|
|
3397
|
+
dataDarkBgPageColor: dataDarkBgPageColor,
|
|
3398
|
+
dataDarkBgDefaultColor: dataDarkBgDefaultColor,
|
|
3488
3399
|
dataBlackColor: dataBlackColor,
|
|
3489
|
-
|
|
3490
|
-
|
|
3400
|
+
dataDarkHeadingColor: dataDarkHeadingColor,
|
|
3401
|
+
dataDarkBodyColor: dataDarkBodyColor,
|
|
3491
3402
|
dataWhiteColor: dataWhiteColor,
|
|
3403
|
+
dataBrandPrimaryColor: dataBrandPrimaryColor,
|
|
3404
|
+
dataBrandSecondaryColor: dataBrandSecondaryColor,
|
|
3492
3405
|
textColor: textColor
|
|
3493
3406
|
})));
|
|
3494
3407
|
};
|
|
3495
3408
|
|
|
3409
|
+
var _excluded$16 = ["children", "columns", "className", "gap", "id"];
|
|
3410
|
+
var SimpleGrid = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
3411
|
+
var children = props.children,
|
|
3412
|
+
columns = props.columns,
|
|
3413
|
+
className = props.className,
|
|
3414
|
+
_props$gap = props.gap,
|
|
3415
|
+
gap = _props$gap === void 0 ? "grid.l" : _props$gap,
|
|
3416
|
+
id = props.id,
|
|
3417
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$16);
|
|
3418
|
+
var responsiveCols = columns ? {
|
|
3419
|
+
base: 1,
|
|
3420
|
+
md: columns
|
|
3421
|
+
} : {
|
|
3422
|
+
base: 1,
|
|
3423
|
+
md: 2,
|
|
3424
|
+
lg: 3
|
|
3425
|
+
};
|
|
3426
|
+
return React__default.createElement(react.SimpleGrid, Object.assign({
|
|
3427
|
+
className: className,
|
|
3428
|
+
columns: responsiveCols,
|
|
3429
|
+
gap: gap,
|
|
3430
|
+
id: id,
|
|
3431
|
+
ref: ref
|
|
3432
|
+
}, rest), children);
|
|
3433
|
+
}), {
|
|
3434
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
3435
|
+
return true;
|
|
3436
|
+
}
|
|
3437
|
+
});
|
|
3438
|
+
|
|
3496
3439
|
var _excluded$17 = ["children", "className", "gap", "id"],
|
|
3497
3440
|
_excluded2$3 = ["children", "className", "gap", "id"],
|
|
3498
3441
|
_excluded3$1 = ["action", "children", "className", "gap", "id", "method", "onSubmit"];
|
|
@@ -3553,7 +3496,7 @@ var Form = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
3553
3496
|
action && (attributes["action"] = action);
|
|
3554
3497
|
method && (method === "get" || method === "post") && (attributes["method"] = method);
|
|
3555
3498
|
var alteredChildren = React__default.Children.map(children, function (child, i) {
|
|
3556
|
-
return React__default.cloneElement(child, {
|
|
3499
|
+
return child && React__default.cloneElement(child, {
|
|
3557
3500
|
gap: gap,
|
|
3558
3501
|
id: id + "-child" + i
|
|
3559
3502
|
});
|
|
@@ -3607,7 +3550,7 @@ var Label = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
|
|
|
3607
3550
|
}, rest), children, isRequired && React__default.createElement("span", null, requiredLabelText ? " (" + requiredLabelText + ")" : " (Required)"));
|
|
3608
3551
|
}));
|
|
3609
3552
|
|
|
3610
|
-
var _excluded$19 = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "max", "maxLength", "min", "name", "onChange", "onClick", "onFocus", "placeholder", "showHelperInvalidText", "showLabel", "showRequiredLabel", "requiredLabelText", "step", "textInputType", "type", "value"];
|
|
3553
|
+
var _excluded$19 = ["className", "defaultValue", "helperText", "id", "invalidText", "isClearable", "isDisabled", "isInvalid", "isRequired", "labelText", "max", "maxLength", "min", "name", "onChange", "onClick", "onFocus", "placeholder", "showHelperInvalidText", "showLabel", "showRequiredLabel", "requiredLabelText", "step", "textInputType", "type", "value"];
|
|
3611
3554
|
// Only used internally.
|
|
3612
3555
|
var TextInputFormats = {
|
|
3613
3556
|
email: "jdoe@domain.com",
|
|
@@ -3629,6 +3572,8 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3629
3572
|
helperText = props.helperText,
|
|
3630
3573
|
id = props.id,
|
|
3631
3574
|
invalidText = props.invalidText,
|
|
3575
|
+
_props$isClearable = props.isClearable,
|
|
3576
|
+
isClearable = _props$isClearable === void 0 ? false : _props$isClearable,
|
|
3632
3577
|
_props$isDisabled = props.isDisabled,
|
|
3633
3578
|
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
3634
3579
|
_props$isInvalid = props.isInvalid,
|
|
@@ -3659,12 +3604,24 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3659
3604
|
type = _props$type === void 0 ? "text" : _props$type,
|
|
3660
3605
|
value = props.value,
|
|
3661
3606
|
rest = _objectWithoutPropertiesLoose(props, _excluded$19);
|
|
3607
|
+
var _useState = React.useState(value || ""),
|
|
3608
|
+
finalValue = _useState[0],
|
|
3609
|
+
setFinalValue = _useState[1];
|
|
3610
|
+
var closedRef = React.useRef();
|
|
3611
|
+
var mergedRefs = react.useMergeRefs(closedRef, ref);
|
|
3612
|
+
// If a ref is not passed, then merging refs won't work.
|
|
3613
|
+
var finalRef = ref ? mergedRefs : closedRef;
|
|
3662
3614
|
var styles = react.useMultiStyleConfig("TextInput", {
|
|
3615
|
+
showLabel: showLabel,
|
|
3663
3616
|
variant: textInputType
|
|
3664
3617
|
});
|
|
3665
3618
|
var isTextArea = type === "textarea";
|
|
3666
3619
|
var isHidden = type === "hidden";
|
|
3667
3620
|
var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
|
|
3621
|
+
var internalOnChange = function internalOnChange(e) {
|
|
3622
|
+
setFinalValue(e.target.value);
|
|
3623
|
+
onChange && onChange(e);
|
|
3624
|
+
};
|
|
3668
3625
|
var footnote = isInvalid ? finalInvalidText : helperText;
|
|
3669
3626
|
var ariaAttributes = getAriaAttrs({
|
|
3670
3627
|
footnote: footnote,
|
|
@@ -3673,9 +3630,20 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3673
3630
|
name: "TextInput",
|
|
3674
3631
|
showLabel: showLabel
|
|
3675
3632
|
});
|
|
3633
|
+
var onClearClick = function onClearClick() {
|
|
3634
|
+
setFinalValue("");
|
|
3635
|
+
// Set focus back to the input element.
|
|
3636
|
+
finalRef.current.focus();
|
|
3637
|
+
};
|
|
3676
3638
|
var finalIsInvalid = isInvalid;
|
|
3677
3639
|
var fieldOutput;
|
|
3640
|
+
var clearButtonOutput;
|
|
3678
3641
|
var options;
|
|
3642
|
+
React.useEffect(function () {
|
|
3643
|
+
if (value && value !== finalValue) {
|
|
3644
|
+
setFinalValue(value);
|
|
3645
|
+
}
|
|
3646
|
+
}, [finalValue, value]);
|
|
3679
3647
|
if (!id) {
|
|
3680
3648
|
console.warn("NYPL Reservoir TextInput: This component's required `id` prop was not passed.");
|
|
3681
3649
|
}
|
|
@@ -3693,8 +3661,8 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3693
3661
|
id: id,
|
|
3694
3662
|
"aria-hidden": isHidden,
|
|
3695
3663
|
name: name,
|
|
3696
|
-
onChange:
|
|
3697
|
-
ref:
|
|
3664
|
+
onChange: internalOnChange,
|
|
3665
|
+
ref: finalRef
|
|
3698
3666
|
} : _extends({
|
|
3699
3667
|
"aria-required": isRequired,
|
|
3700
3668
|
defaultValue: defaultValue,
|
|
@@ -3706,11 +3674,11 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3706
3674
|
maxLength: maxLength,
|
|
3707
3675
|
min: min,
|
|
3708
3676
|
name: name,
|
|
3709
|
-
onChange:
|
|
3677
|
+
onChange: internalOnChange,
|
|
3710
3678
|
onClick: onClick,
|
|
3711
3679
|
onFocus: onFocus,
|
|
3712
3680
|
placeholder: placeholder,
|
|
3713
|
-
ref:
|
|
3681
|
+
ref: finalRef,
|
|
3714
3682
|
// The `step` attribute is useful for the number type.
|
|
3715
3683
|
step: type === "number" ? step : null
|
|
3716
3684
|
}, ariaAttributes, rest);
|
|
@@ -3719,12 +3687,27 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3719
3687
|
if (!isTextArea) {
|
|
3720
3688
|
options = _extends({
|
|
3721
3689
|
type: type,
|
|
3722
|
-
value:
|
|
3690
|
+
value: finalValue
|
|
3723
3691
|
}, options);
|
|
3724
3692
|
fieldOutput = React__default.createElement(react.Input, Object.assign({}, options, {
|
|
3725
3693
|
__css: styles.input
|
|
3726
3694
|
}));
|
|
3695
|
+
if (isClearable && !isHidden) {
|
|
3696
|
+
clearButtonOutput = React__default.createElement(Button, {
|
|
3697
|
+
buttonType: "text",
|
|
3698
|
+
id: id + "-clear-btn",
|
|
3699
|
+
onClick: onClearClick,
|
|
3700
|
+
sx: styles.clearButton
|
|
3701
|
+
}, React__default.createElement(Icon, {
|
|
3702
|
+
color: "ui.black",
|
|
3703
|
+
name: "close",
|
|
3704
|
+
size: "medium"
|
|
3705
|
+
}), React__default.createElement("span", null, "Clear ", labelText));
|
|
3706
|
+
}
|
|
3727
3707
|
} else {
|
|
3708
|
+
if (isClearable) {
|
|
3709
|
+
console.warn("NYPL Reservoir TextInput: The `isClearable` prop cannot be used with the `textarea` type.");
|
|
3710
|
+
}
|
|
3728
3711
|
fieldOutput = React__default.createElement(react.Textarea, Object.assign({}, options, {
|
|
3729
3712
|
__css: styles.textarea
|
|
3730
3713
|
}), value);
|
|
@@ -3742,7 +3725,7 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3742
3725
|
id: id + "-label",
|
|
3743
3726
|
isRequired: showRequiredLabel && isRequired,
|
|
3744
3727
|
requiredLabelText: requiredLabelText
|
|
3745
|
-
}, labelText), fieldOutput);
|
|
3728
|
+
}, labelText), fieldOutput, !isHidden && finalValue.length > 0 && clearButtonOutput);
|
|
3746
3729
|
}));
|
|
3747
3730
|
|
|
3748
3731
|
var _excluded$1a = ["dsRef", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "onClick", "showLabel", "showHelperInvalidText", "showRequiredLabel", "value"],
|
|
@@ -4233,7 +4216,7 @@ var global = {
|
|
|
4233
4216
|
* Chakra Value | DS Variable | EM/PX value
|
|
4234
4217
|
* ------------------------------------------------------
|
|
4235
4218
|
* sm | --nypl-breakpoint-small | 20em/320px
|
|
4236
|
-
* md | --nypl-breakpoint-medium |
|
|
4219
|
+
* md | --nypl-breakpoint-medium | 37.5em/600px
|
|
4237
4220
|
* lg | --nypl-breakpoint-large | 60em/960px
|
|
4238
4221
|
* xl | --nypl-breakpoint-xl | 80em/1280px
|
|
4239
4222
|
* 2xl | N/A | 96em/1536px
|
|
@@ -4243,7 +4226,7 @@ var global = {
|
|
|
4243
4226
|
*/
|
|
4244
4227
|
var breakpoints = /*#__PURE__*/themeTools.createBreakpoints({
|
|
4245
4228
|
sm: "20em",
|
|
4246
|
-
md: "
|
|
4229
|
+
md: "37.5em",
|
|
4247
4230
|
lg: "60em",
|
|
4248
4231
|
xl: "80em",
|
|
4249
4232
|
"2xl": "96em"
|
|
@@ -4320,6 +4303,7 @@ var colors = {
|
|
|
4320
4303
|
},
|
|
4321
4304
|
// Semantic colors
|
|
4322
4305
|
bg: {
|
|
4306
|
+
page: white,
|
|
4323
4307
|
"default": grayxLightCool,
|
|
4324
4308
|
hover: grayLightCool,
|
|
4325
4309
|
active: grayMedium
|
|
@@ -4330,7 +4314,11 @@ var colors = {
|
|
|
4330
4314
|
},
|
|
4331
4315
|
typography: {
|
|
4332
4316
|
heading: black,
|
|
4333
|
-
body: black
|
|
4317
|
+
body: black,
|
|
4318
|
+
inverse: {
|
|
4319
|
+
heading: white,
|
|
4320
|
+
body: white
|
|
4321
|
+
}
|
|
4334
4322
|
},
|
|
4335
4323
|
// Grayscale
|
|
4336
4324
|
gray: {
|
|
@@ -4391,7 +4379,11 @@ var colors = {
|
|
|
4391
4379
|
},
|
|
4392
4380
|
typography: {
|
|
4393
4381
|
heading: grayLightCool,
|
|
4394
|
-
body: grayMedium
|
|
4382
|
+
body: grayMedium,
|
|
4383
|
+
inverse: {
|
|
4384
|
+
heading: grayxxDark,
|
|
4385
|
+
body: grayxxDark
|
|
4386
|
+
}
|
|
4395
4387
|
}
|
|
4396
4388
|
}
|
|
4397
4389
|
},
|
|
@@ -4691,6 +4683,15 @@ var AlphabetFilter$1 = {
|
|
|
4691
4683
|
}
|
|
4692
4684
|
};
|
|
4693
4685
|
|
|
4686
|
+
var AudioPlayer$1 = {
|
|
4687
|
+
baseStyle: {
|
|
4688
|
+
invalid: {
|
|
4689
|
+
backgroundColor: "ui.bg.default",
|
|
4690
|
+
padding: "s"
|
|
4691
|
+
}
|
|
4692
|
+
}
|
|
4693
|
+
};
|
|
4694
|
+
|
|
4694
4695
|
// Variant styling
|
|
4695
4696
|
var blogs = {
|
|
4696
4697
|
bg: "section.blogs.secondary",
|
|
@@ -5579,6 +5580,47 @@ var DatePicker$1 = {
|
|
|
5579
5580
|
}
|
|
5580
5581
|
};
|
|
5581
5582
|
|
|
5583
|
+
var FeedbackBox = {
|
|
5584
|
+
parts: ["closeButton", "drawerBody", "drawerContent", "drawerHeader", "openButton"],
|
|
5585
|
+
baseStyle: {
|
|
5586
|
+
closeButton: {
|
|
5587
|
+
p: "0",
|
|
5588
|
+
span: /*#__PURE__*/screenreaderOnly()
|
|
5589
|
+
},
|
|
5590
|
+
drawerBody: {
|
|
5591
|
+
paddingTop: "m",
|
|
5592
|
+
paddingBottom: "m"
|
|
5593
|
+
},
|
|
5594
|
+
drawerContent: {
|
|
5595
|
+
marginStart: "auto",
|
|
5596
|
+
width: {
|
|
5597
|
+
base: "100%",
|
|
5598
|
+
md: "375px"
|
|
5599
|
+
}
|
|
5600
|
+
},
|
|
5601
|
+
drawerHeader: {
|
|
5602
|
+
alignItems: "baseline",
|
|
5603
|
+
background: "ui.gray.light-cool",
|
|
5604
|
+
borderBottomWidth: "1px",
|
|
5605
|
+
display: "flex",
|
|
5606
|
+
fontSize: "text.default",
|
|
5607
|
+
px: "m",
|
|
5608
|
+
paddingTop: "xs",
|
|
5609
|
+
paddingBottom: "xs",
|
|
5610
|
+
p: {
|
|
5611
|
+
marginBottom: "0"
|
|
5612
|
+
}
|
|
5613
|
+
},
|
|
5614
|
+
openButton: {
|
|
5615
|
+
position: "fixed",
|
|
5616
|
+
borderRadius: "0",
|
|
5617
|
+
bottom: "0",
|
|
5618
|
+
right: "0",
|
|
5619
|
+
zIndex: "5"
|
|
5620
|
+
}
|
|
5621
|
+
}
|
|
5622
|
+
};
|
|
5623
|
+
|
|
5582
5624
|
var Fieldset$1 = {
|
|
5583
5625
|
baseStyle: function baseStyle(_ref) {
|
|
5584
5626
|
var isLegendHidden = _ref.isLegendHidden;
|
|
@@ -6910,10 +6952,17 @@ var tertiary = {
|
|
|
6910
6952
|
color: "ui.white",
|
|
6911
6953
|
display: "flex",
|
|
6912
6954
|
flexFlow: "column nowrap",
|
|
6913
|
-
|
|
6955
|
+
px: "inset.default",
|
|
6956
|
+
py: {
|
|
6957
|
+
base: "inset.default",
|
|
6958
|
+
xl: "inset.wide"
|
|
6959
|
+
},
|
|
6914
6960
|
p: {
|
|
6915
6961
|
marginBottom: "0",
|
|
6916
|
-
marginTop:
|
|
6962
|
+
marginTop: {
|
|
6963
|
+
base: "xxs",
|
|
6964
|
+
xl: "xs"
|
|
6965
|
+
}
|
|
6917
6966
|
}
|
|
6918
6967
|
}),
|
|
6919
6968
|
heading: {
|
|
@@ -8188,6 +8237,30 @@ var StructuredContent = {
|
|
|
8188
8237
|
}
|
|
8189
8238
|
};
|
|
8190
8239
|
|
|
8240
|
+
var StyledList = {
|
|
8241
|
+
baseStyle: function baseStyle(_ref) {
|
|
8242
|
+
var _ref$textSize = _ref.textSize,
|
|
8243
|
+
textSize = _ref$textSize === void 0 ? "default" : _ref$textSize;
|
|
8244
|
+
return _extends({
|
|
8245
|
+
fontSize: "text." + textSize
|
|
8246
|
+
}, baseListStyles(false, true), baseUnorderedStyles(true));
|
|
8247
|
+
},
|
|
8248
|
+
variants: {
|
|
8249
|
+
capped: {
|
|
8250
|
+
li: {
|
|
8251
|
+
borderStart: "1px solid",
|
|
8252
|
+
borderEnd: {
|
|
8253
|
+
base: "1px solid",
|
|
8254
|
+
md: "none"
|
|
8255
|
+
},
|
|
8256
|
+
borderColor: "ui.border.default",
|
|
8257
|
+
my: "xs",
|
|
8258
|
+
px: "xs"
|
|
8259
|
+
}
|
|
8260
|
+
}
|
|
8261
|
+
}
|
|
8262
|
+
};
|
|
8263
|
+
|
|
8191
8264
|
var tablist = {
|
|
8192
8265
|
borderColor: "ui.black"
|
|
8193
8266
|
};
|
|
@@ -8619,12 +8692,28 @@ var input = {
|
|
|
8619
8692
|
};
|
|
8620
8693
|
var TextInput$1 = {
|
|
8621
8694
|
parts: ["input", "textarea"],
|
|
8622
|
-
baseStyle: {
|
|
8623
|
-
|
|
8624
|
-
|
|
8625
|
-
|
|
8626
|
-
|
|
8627
|
-
|
|
8695
|
+
baseStyle: function baseStyle(_ref) {
|
|
8696
|
+
var showLabel = _ref.showLabel;
|
|
8697
|
+
return {
|
|
8698
|
+
position: "relative",
|
|
8699
|
+
input: input,
|
|
8700
|
+
textarea: _extends({}, input, {
|
|
8701
|
+
lineheight: "1.5",
|
|
8702
|
+
minHeight: "xxl"
|
|
8703
|
+
}),
|
|
8704
|
+
clearButton: {
|
|
8705
|
+
position: "absolute",
|
|
8706
|
+
// When `showLabel` is false, the input field is at the top
|
|
8707
|
+
// which means the clear button should float higher.
|
|
8708
|
+
top: showLabel ? "32px" : "0",
|
|
8709
|
+
px: "xs",
|
|
8710
|
+
right: "0",
|
|
8711
|
+
// Don't visually show the text. This also helps
|
|
8712
|
+
// use the "text" `Button` type.
|
|
8713
|
+
span: screenreaderOnly(),
|
|
8714
|
+
zIndex: "9999"
|
|
8715
|
+
}
|
|
8716
|
+
};
|
|
8628
8717
|
},
|
|
8629
8718
|
variants: {
|
|
8630
8719
|
searchBar: {
|
|
@@ -8797,15 +8886,6 @@ var VideoPlayer = {
|
|
|
8797
8886
|
}
|
|
8798
8887
|
};
|
|
8799
8888
|
|
|
8800
|
-
var AudioPlayer$1 = {
|
|
8801
|
-
baseStyle: {
|
|
8802
|
-
invalid: {
|
|
8803
|
-
backgroundColor: "ui.bg.default",
|
|
8804
|
-
padding: "s"
|
|
8805
|
-
}
|
|
8806
|
-
}
|
|
8807
|
-
};
|
|
8808
|
-
|
|
8809
8889
|
/**
|
|
8810
8890
|
* See Chakra default theme for shape of theme object:
|
|
8811
8891
|
* https://github.com/chakra-ui/chakra-ui/tree/main/packages/theme
|
|
@@ -8853,6 +8933,7 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
|
|
|
8853
8933
|
CustomImageWrapper: CustomImageWrapper,
|
|
8854
8934
|
CustomSelect: Select,
|
|
8855
8935
|
DatePicker: DatePicker$1,
|
|
8936
|
+
FeedbackBox: FeedbackBox,
|
|
8856
8937
|
Fieldset: Fieldset$1,
|
|
8857
8938
|
Footer: Footer,
|
|
8858
8939
|
Header: Header,
|
|
@@ -8888,6 +8969,7 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
|
|
|
8888
8969
|
CustomSlider: CustomSlider,
|
|
8889
8970
|
StatusBadge: StatusBadge,
|
|
8890
8971
|
StructuredContent: StructuredContent,
|
|
8972
|
+
StyledList: StyledList,
|
|
8891
8973
|
Tabs: CustomTabs,
|
|
8892
8974
|
CustomTable: CustomTable
|
|
8893
8975
|
}, TagSetStyles, TemplateStyles, {
|
|
@@ -8985,18 +9067,6 @@ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
8985
9067
|
}
|
|
8986
9068
|
return null;
|
|
8987
9069
|
};
|
|
8988
|
-
/**
|
|
8989
|
-
* Checks for `li` elements and consoles a warning if the
|
|
8990
|
-
* children are different HTML elements.
|
|
8991
|
-
*/
|
|
8992
|
-
var checkListChildrenError = function checkListChildrenError(listType) {
|
|
8993
|
-
React__default.Children.map(children, function (child) {
|
|
8994
|
-
var _child$props;
|
|
8995
|
-
if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
|
|
8996
|
-
console.warn("NYPL Reservoir List: Direct children of `List` (" + listType + ") must be `<li>`s.");
|
|
8997
|
-
}
|
|
8998
|
-
});
|
|
8999
|
-
};
|
|
9000
9070
|
/**
|
|
9001
9071
|
* Checks for `dt` and `dd` elements and consoles a warning if the
|
|
9002
9072
|
* children are different HTML elements.
|
|
@@ -9009,7 +9079,7 @@ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
9009
9079
|
});
|
|
9010
9080
|
};
|
|
9011
9081
|
if (type === "ol" || type === "ul") {
|
|
9012
|
-
checkListChildrenError(type);
|
|
9082
|
+
checkListChildrenError(children, type);
|
|
9013
9083
|
listElement = React__default.createElement(react.Box, Object.assign({
|
|
9014
9084
|
as: type,
|
|
9015
9085
|
id: id,
|
|
@@ -9031,6 +9101,24 @@ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
9031
9101
|
}
|
|
9032
9102
|
return listElement;
|
|
9033
9103
|
}));
|
|
9104
|
+
/**
|
|
9105
|
+
* Checks for `li` elements and consoles a warning if the
|
|
9106
|
+
* children are different HTML elements.
|
|
9107
|
+
*/
|
|
9108
|
+
var checkListChildrenError = function checkListChildrenError(children, listType, componentName) {
|
|
9109
|
+
if (listType === void 0) {
|
|
9110
|
+
listType = "ul";
|
|
9111
|
+
}
|
|
9112
|
+
if (componentName === void 0) {
|
|
9113
|
+
componentName = "List";
|
|
9114
|
+
}
|
|
9115
|
+
React__default.Children.map(children, function (child) {
|
|
9116
|
+
var _child$props;
|
|
9117
|
+
if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
|
|
9118
|
+
console.warn("NYPL Reservoir " + componentName + ": Direct children of `" + componentName + "` (" + listType + ") must be `<li>`s.");
|
|
9119
|
+
}
|
|
9120
|
+
});
|
|
9121
|
+
};
|
|
9034
9122
|
|
|
9035
9123
|
var _path$L, _path2$f, _path3$7;
|
|
9036
9124
|
var _excluded$1c = ["title", "titleId"];
|
|
@@ -9045,7 +9133,6 @@ var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
|
|
|
9045
9133
|
viewBox: "0 0 200 67",
|
|
9046
9134
|
fill: "none",
|
|
9047
9135
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9048
|
-
role: "img",
|
|
9049
9136
|
"aria-labelledby": titleId
|
|
9050
9137
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9051
9138
|
id: titleId
|
|
@@ -9074,7 +9161,6 @@ var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
|
|
|
9074
9161
|
viewBox: "0 0 200 67",
|
|
9075
9162
|
fill: "none",
|
|
9076
9163
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9077
|
-
role: "img",
|
|
9078
9164
|
"aria-labelledby": titleId
|
|
9079
9165
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9080
9166
|
id: titleId
|
|
@@ -9102,7 +9188,6 @@ var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
|
|
|
9102
9188
|
return /*#__PURE__*/React.createElement("svg", _extends$T({
|
|
9103
9189
|
viewBox: "0 0 328 120",
|
|
9104
9190
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9105
|
-
role: "img",
|
|
9106
9191
|
"aria-labelledby": titleId
|
|
9107
9192
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9108
9193
|
id: titleId
|
|
@@ -9128,7 +9213,6 @@ var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
|
|
|
9128
9213
|
viewBox: "0 0 328 120",
|
|
9129
9214
|
fill: "#fff",
|
|
9130
9215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9131
|
-
role: "img",
|
|
9132
9216
|
"aria-labelledby": titleId
|
|
9133
9217
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9134
9218
|
id: titleId
|
|
@@ -9154,7 +9238,6 @@ var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
|
|
|
9154
9238
|
viewBox: "0 0 118 119",
|
|
9155
9239
|
fill: "none",
|
|
9156
9240
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9157
|
-
role: "img",
|
|
9158
9241
|
"aria-labelledby": titleId
|
|
9159
9242
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9160
9243
|
id: titleId
|
|
@@ -9185,7 +9268,6 @@ var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
|
|
|
9185
9268
|
viewBox: "0 0 312 88",
|
|
9186
9269
|
fill: "#436CF2",
|
|
9187
9270
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9188
|
-
role: "img",
|
|
9189
9271
|
"aria-labelledby": titleId
|
|
9190
9272
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9191
9273
|
id: titleId
|
|
@@ -9209,7 +9291,6 @@ var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
|
|
|
9209
9291
|
viewBox: "0 0 312 88",
|
|
9210
9292
|
fill: "#fff",
|
|
9211
9293
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9212
|
-
role: "img",
|
|
9213
9294
|
"aria-labelledby": titleId
|
|
9214
9295
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9215
9296
|
id: titleId
|
|
@@ -9233,7 +9314,6 @@ var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
|
|
|
9233
9314
|
viewBox: "0 0 172 152",
|
|
9234
9315
|
fill: "none",
|
|
9235
9316
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9236
|
-
role: "img",
|
|
9237
9317
|
"aria-labelledby": titleId
|
|
9238
9318
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9239
9319
|
id: titleId
|
|
@@ -9292,7 +9372,6 @@ var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref)
|
|
|
9292
9372
|
viewBox: "0 0 170 150",
|
|
9293
9373
|
fill: "none",
|
|
9294
9374
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9295
|
-
role: "img",
|
|
9296
9375
|
"aria-labelledby": titleId
|
|
9297
9376
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9298
9377
|
id: titleId
|
|
@@ -9356,7 +9435,6 @@ var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
|
|
|
9356
9435
|
viewBox: "0 0 200 60",
|
|
9357
9436
|
fill: "none",
|
|
9358
9437
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9359
|
-
role: "img",
|
|
9360
9438
|
"aria-labelledby": titleId
|
|
9361
9439
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9362
9440
|
id: titleId
|
|
@@ -9497,7 +9575,6 @@ var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
|
|
|
9497
9575
|
viewBox: "0 0 186 74",
|
|
9498
9576
|
fill: "none",
|
|
9499
9577
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9500
|
-
role: "img",
|
|
9501
9578
|
"aria-labelledby": titleId
|
|
9502
9579
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9503
9580
|
id: titleId
|
|
@@ -9522,7 +9599,6 @@ var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
|
|
|
9522
9599
|
return /*#__PURE__*/React.createElement("svg", _extends$10({
|
|
9523
9600
|
viewBox: "0 0 186 74",
|
|
9524
9601
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9525
|
-
role: "img",
|
|
9526
9602
|
"aria-labelledby": titleId
|
|
9527
9603
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9528
9604
|
id: titleId
|
|
@@ -9544,7 +9620,6 @@ var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
|
|
|
9544
9620
|
viewBox: "0 0 186 74",
|
|
9545
9621
|
fill: "#fff",
|
|
9546
9622
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9547
|
-
role: "img",
|
|
9548
9623
|
"aria-labelledby": titleId
|
|
9549
9624
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9550
9625
|
id: titleId
|
|
@@ -9565,7 +9640,6 @@ var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
|
|
|
9565
9640
|
return /*#__PURE__*/React.createElement("svg", _extends$12({
|
|
9566
9641
|
viewBox: "0 0 300 71",
|
|
9567
9642
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9568
|
-
role: "img",
|
|
9569
9643
|
"aria-labelledby": titleId
|
|
9570
9644
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9571
9645
|
id: titleId
|
|
@@ -9589,7 +9663,6 @@ var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
|
|
|
9589
9663
|
viewBox: "0 0 300 71",
|
|
9590
9664
|
fill: "#C60917",
|
|
9591
9665
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9592
|
-
role: "img",
|
|
9593
9666
|
"aria-labelledby": titleId
|
|
9594
9667
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9595
9668
|
id: titleId
|
|
@@ -9613,7 +9686,6 @@ var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
|
|
|
9613
9686
|
viewBox: "0 0 300 71",
|
|
9614
9687
|
fill: "#fff",
|
|
9615
9688
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9616
|
-
role: "img",
|
|
9617
9689
|
"aria-labelledby": titleId
|
|
9618
9690
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9619
9691
|
id: titleId
|
|
@@ -9637,7 +9709,6 @@ var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
|
|
|
9637
9709
|
viewBox: "0 0 341 61",
|
|
9638
9710
|
fill: "none",
|
|
9639
9711
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9640
|
-
role: "img",
|
|
9641
9712
|
"aria-labelledby": titleId
|
|
9642
9713
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9643
9714
|
id: titleId
|
|
@@ -9678,7 +9749,6 @@ var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
|
|
|
9678
9749
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9679
9750
|
viewBox: "0 0 966.787 543.733",
|
|
9680
9751
|
xmlSpace: "preserve",
|
|
9681
|
-
role: "img",
|
|
9682
9752
|
"aria-labelledby": titleId
|
|
9683
9753
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9684
9754
|
id: titleId
|
|
@@ -9761,7 +9831,6 @@ var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
|
|
|
9761
9831
|
viewBox: "0 0 967 568",
|
|
9762
9832
|
fill: "none",
|
|
9763
9833
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9764
|
-
role: "img",
|
|
9765
9834
|
"aria-labelledby": titleId
|
|
9766
9835
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9767
9836
|
id: titleId
|
|
@@ -9797,7 +9866,6 @@ var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
|
|
|
9797
9866
|
viewBox: "0 0 136 135",
|
|
9798
9867
|
fill: "none",
|
|
9799
9868
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9800
|
-
role: "img",
|
|
9801
9869
|
"aria-labelledby": titleId
|
|
9802
9870
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9803
9871
|
id: titleId
|
|
@@ -9828,7 +9896,6 @@ var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
|
|
|
9828
9896
|
viewBox: "0 0 125 126",
|
|
9829
9897
|
fill: "none",
|
|
9830
9898
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9831
|
-
role: "img",
|
|
9832
9899
|
"aria-labelledby": titleId
|
|
9833
9900
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9834
9901
|
id: titleId
|
|
@@ -9853,7 +9920,6 @@ var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
|
|
|
9853
9920
|
viewBox: "0 0 201 165",
|
|
9854
9921
|
fill: "none",
|
|
9855
9922
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9856
|
-
role: "img",
|
|
9857
9923
|
"aria-labelledby": titleId
|
|
9858
9924
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9859
9925
|
id: titleId
|
|
@@ -9932,7 +9998,6 @@ var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
|
|
|
9932
9998
|
viewBox: "0 0 201 165",
|
|
9933
9999
|
fill: "none",
|
|
9934
10000
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9935
|
-
role: "img",
|
|
9936
10001
|
"aria-labelledby": titleId
|
|
9937
10002
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
9938
10003
|
id: titleId
|
|
@@ -10011,7 +10076,6 @@ var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
|
|
|
10011
10076
|
viewBox: "0 0 152 139",
|
|
10012
10077
|
fill: "none",
|
|
10013
10078
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10014
|
-
role: "img",
|
|
10015
10079
|
"aria-labelledby": titleId
|
|
10016
10080
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10017
10081
|
id: titleId
|
|
@@ -10067,7 +10131,6 @@ var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
|
|
|
10067
10131
|
viewBox: "0 0 155 139",
|
|
10068
10132
|
fill: "none",
|
|
10069
10133
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10070
|
-
role: "img",
|
|
10071
10134
|
"aria-labelledby": titleId
|
|
10072
10135
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10073
10136
|
id: titleId
|
|
@@ -10146,7 +10209,6 @@ var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_re
|
|
|
10146
10209
|
viewBox: "0 0 152 139",
|
|
10147
10210
|
fill: "none",
|
|
10148
10211
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10149
|
-
role: "img",
|
|
10150
10212
|
"aria-labelledby": titleId
|
|
10151
10213
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10152
10214
|
id: titleId
|
|
@@ -10202,7 +10264,6 @@ var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegati
|
|
|
10202
10264
|
viewBox: "0 0 155 139",
|
|
10203
10265
|
fill: "none",
|
|
10204
10266
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10205
|
-
role: "img",
|
|
10206
10267
|
"aria-labelledby": titleId
|
|
10207
10268
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10208
10269
|
id: titleId
|
|
@@ -10283,7 +10344,6 @@ var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
|
|
|
10283
10344
|
return /*#__PURE__*/React.createElement("svg", _extends$1g({
|
|
10284
10345
|
viewBox: "0 0 250 134",
|
|
10285
10346
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10286
|
-
role: "img",
|
|
10287
10347
|
"aria-labelledby": titleId
|
|
10288
10348
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10289
10349
|
id: titleId
|
|
@@ -10305,7 +10365,6 @@ var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
|
|
|
10305
10365
|
viewBox: "0 0 250 134",
|
|
10306
10366
|
fill: "#fff",
|
|
10307
10367
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10308
|
-
role: "img",
|
|
10309
10368
|
"aria-labelledby": titleId
|
|
10310
10369
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10311
10370
|
id: titleId
|
|
@@ -10326,7 +10385,6 @@ var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
|
|
|
10326
10385
|
return /*#__PURE__*/React.createElement("svg", _extends$1i({
|
|
10327
10386
|
viewBox: "0 0 320 43",
|
|
10328
10387
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10329
|
-
role: "img",
|
|
10330
10388
|
"aria-labelledby": titleId
|
|
10331
10389
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10332
10390
|
id: titleId
|
|
@@ -10364,7 +10422,6 @@ var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
|
|
|
10364
10422
|
viewBox: "0 0 355 48",
|
|
10365
10423
|
fill: "none",
|
|
10366
10424
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10367
|
-
role: "img",
|
|
10368
10425
|
"aria-labelledby": titleId
|
|
10369
10426
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10370
10427
|
id: titleId
|
|
@@ -10420,7 +10477,6 @@ var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
|
|
|
10420
10477
|
viewBox: "0 0 320 43",
|
|
10421
10478
|
fill: "#fff",
|
|
10422
10479
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10423
|
-
role: "img",
|
|
10424
10480
|
"aria-labelledby": titleId
|
|
10425
10481
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10426
10482
|
id: titleId
|
|
@@ -10458,7 +10514,6 @@ var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
|
|
|
10458
10514
|
viewBox: "0 0 105 129",
|
|
10459
10515
|
fill: "none",
|
|
10460
10516
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10461
|
-
role: "img",
|
|
10462
10517
|
"aria-labelledby": titleId
|
|
10463
10518
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10464
10519
|
id: titleId
|
|
@@ -10493,7 +10548,6 @@ var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref)
|
|
|
10493
10548
|
viewBox: "0 0 234 261",
|
|
10494
10549
|
fill: "none",
|
|
10495
10550
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10496
|
-
role: "img",
|
|
10497
10551
|
"aria-labelledby": titleId
|
|
10498
10552
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10499
10553
|
id: titleId
|
|
@@ -10526,7 +10580,6 @@ var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
|
|
|
10526
10580
|
return /*#__PURE__*/React.createElement("svg", _extends$1n({
|
|
10527
10581
|
viewBox: "0 0 185 79",
|
|
10528
10582
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10529
|
-
role: "img",
|
|
10530
10583
|
"aria-labelledby": titleId
|
|
10531
10584
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10532
10585
|
id: titleId
|
|
@@ -10555,7 +10608,6 @@ var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
|
|
|
10555
10608
|
return /*#__PURE__*/React.createElement("svg", _extends$1o({
|
|
10556
10609
|
viewBox: "0 0 67 67",
|
|
10557
10610
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10558
|
-
role: "img",
|
|
10559
10611
|
"aria-labelledby": titleId
|
|
10560
10612
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10561
10613
|
id: titleId
|
|
@@ -10585,7 +10637,6 @@ var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
|
|
|
10585
10637
|
viewBox: "0 0 67 67",
|
|
10586
10638
|
fill: "none",
|
|
10587
10639
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10588
|
-
role: "img",
|
|
10589
10640
|
"aria-labelledby": titleId
|
|
10590
10641
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10591
10642
|
id: titleId
|
|
@@ -10620,7 +10671,6 @@ var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
|
|
|
10620
10671
|
viewBox: "0 0 67 67",
|
|
10621
10672
|
fill: "#fff",
|
|
10622
10673
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10623
|
-
role: "img",
|
|
10624
10674
|
"aria-labelledby": titleId
|
|
10625
10675
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10626
10676
|
id: titleId
|
|
@@ -10650,7 +10700,6 @@ var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
|
|
|
10650
10700
|
viewBox: "0 0 185 79",
|
|
10651
10701
|
fill: "none",
|
|
10652
10702
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10653
|
-
role: "img",
|
|
10654
10703
|
"aria-labelledby": titleId
|
|
10655
10704
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10656
10705
|
id: titleId
|
|
@@ -10691,7 +10740,6 @@ var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
|
|
|
10691
10740
|
viewBox: "0 0 185 79",
|
|
10692
10741
|
fill: "#fff",
|
|
10693
10742
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10694
|
-
role: "img",
|
|
10695
10743
|
"aria-labelledby": titleId
|
|
10696
10744
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10697
10745
|
id: titleId
|
|
@@ -10720,7 +10768,6 @@ var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
|
|
|
10720
10768
|
return /*#__PURE__*/React.createElement("svg", _extends$1t({
|
|
10721
10769
|
viewBox: "0 0 512 148",
|
|
10722
10770
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10723
|
-
role: "img",
|
|
10724
10771
|
"aria-labelledby": titleId
|
|
10725
10772
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10726
10773
|
id: titleId
|
|
@@ -10754,7 +10801,6 @@ var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
|
|
|
10754
10801
|
viewBox: "0 0 512 148",
|
|
10755
10802
|
fill: "#fff",
|
|
10756
10803
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10757
|
-
role: "img",
|
|
10758
10804
|
"aria-labelledby": titleId
|
|
10759
10805
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10760
10806
|
id: titleId
|
|
@@ -10787,7 +10833,6 @@ var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
|
|
|
10787
10833
|
viewBox: "0 0 682 196",
|
|
10788
10834
|
fill: "none",
|
|
10789
10835
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10790
|
-
role: "img",
|
|
10791
10836
|
"aria-labelledby": titleId
|
|
10792
10837
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10793
10838
|
id: titleId
|
|
@@ -10826,7 +10871,6 @@ var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
|
|
|
10826
10871
|
return /*#__PURE__*/React.createElement("svg", _extends$1w({
|
|
10827
10872
|
viewBox: "0 0 84 111",
|
|
10828
10873
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10829
|
-
role: "img",
|
|
10830
10874
|
"aria-labelledby": titleId
|
|
10831
10875
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10832
10876
|
id: titleId
|
|
@@ -10848,7 +10892,6 @@ var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
|
|
|
10848
10892
|
viewBox: "0 0 84 111",
|
|
10849
10893
|
fill: "#fff",
|
|
10850
10894
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10851
|
-
role: "img",
|
|
10852
10895
|
"aria-labelledby": titleId
|
|
10853
10896
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10854
10897
|
id: titleId
|
|
@@ -10870,7 +10913,6 @@ var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
|
|
|
10870
10913
|
viewBox: "0 0 324 265",
|
|
10871
10914
|
fill: "none",
|
|
10872
10915
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10873
|
-
role: "img",
|
|
10874
10916
|
"aria-labelledby": titleId
|
|
10875
10917
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
10876
10918
|
id: titleId
|
|
@@ -11055,7 +11097,6 @@ var SvgLogoTreasuresColorNegative = function SvgLogoTreasuresColorNegative(_ref)
|
|
|
11055
11097
|
viewBox: "0 0 327 266",
|
|
11056
11098
|
fill: "none",
|
|
11057
11099
|
xmlns: "http://www.w3.org/2000/svg",
|
|
11058
|
-
role: "img",
|
|
11059
11100
|
"aria-labelledby": titleId
|
|
11060
11101
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
11061
11102
|
id: titleId
|
|
@@ -13805,6 +13846,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
13805
13846
|
// Render the `TextInput` component.
|
|
13806
13847
|
var textInputNative = textInputProps && React__default.createElement(TextInput, Object.assign({
|
|
13807
13848
|
id: (textInputProps == null ? void 0 : textInputProps.id) || "searchbar-textinput-" + id,
|
|
13849
|
+
isClearable: textInputProps == null ? void 0 : textInputProps.isClearable,
|
|
13808
13850
|
labelText: textInputProps == null ? void 0 : textInputProps.labelText,
|
|
13809
13851
|
name: textInputProps == null ? void 0 : textInputProps.name,
|
|
13810
13852
|
onChange: textInputProps == null ? void 0 : textInputProps.onChange,
|
|
@@ -14287,6 +14329,47 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
|
|
|
14287
14329
|
}), finalBodyContent);
|
|
14288
14330
|
}));
|
|
14289
14331
|
|
|
14332
|
+
/**
|
|
14333
|
+
* The `StyledList` component renders an HTML list with styles that do not
|
|
14334
|
+
* adhere to traditional numbered and bulleted list styles. Unlike
|
|
14335
|
+
* the `List` component, `StyledList` only renders an unordered list.
|
|
14336
|
+
*/
|
|
14337
|
+
var StyledList$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
14338
|
+
var children = props.children,
|
|
14339
|
+
className = props.className,
|
|
14340
|
+
id = props.id,
|
|
14341
|
+
_props$listItems = props.listItems,
|
|
14342
|
+
listItems = _props$listItems === void 0 ? [] : _props$listItems,
|
|
14343
|
+
_props$style = props.style,
|
|
14344
|
+
style = _props$style === void 0 ? "capped" : _props$style,
|
|
14345
|
+
_props$textSize = props.textSize,
|
|
14346
|
+
textSize = _props$textSize === void 0 ? "default" : _props$textSize;
|
|
14347
|
+
var styles = react.useMultiStyleConfig("StyledList", {
|
|
14348
|
+
textSize: textSize,
|
|
14349
|
+
variant: style
|
|
14350
|
+
});
|
|
14351
|
+
var finalChildren;
|
|
14352
|
+
if (children && listItems.length > 0) {
|
|
14353
|
+
console.warn("NYPL Reservoir StyledList: Pass in either `<li>` children or use the " + "`listItems` data prop. Do not use both.");
|
|
14354
|
+
return null;
|
|
14355
|
+
}
|
|
14356
|
+
// Makes sure that the passed children elements are `li` elements but
|
|
14357
|
+
// it is not enforced. Only a warning is logged to the console.
|
|
14358
|
+
checkListChildrenError(children, "ul", "StyledList");
|
|
14359
|
+
finalChildren = children || listItems.map(function (item, i) {
|
|
14360
|
+
return React__default.createElement("li", {
|
|
14361
|
+
key: i
|
|
14362
|
+
}, item);
|
|
14363
|
+
});
|
|
14364
|
+
return React__default.createElement(react.Box, {
|
|
14365
|
+
as: "ul",
|
|
14366
|
+
className: className,
|
|
14367
|
+
id: id,
|
|
14368
|
+
ref: ref,
|
|
14369
|
+
__css: styles
|
|
14370
|
+
}, finalChildren);
|
|
14371
|
+
}));
|
|
14372
|
+
|
|
14290
14373
|
/**
|
|
14291
14374
|
* Custom hook that controls the sliding function for the carousel wrapper.
|
|
14292
14375
|
* This returns functions to use for the "previous" and "next" buttons as well
|
|
@@ -14536,12 +14619,16 @@ var Tooltip$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
14536
14619
|
}, children) : children;
|
|
14537
14620
|
var styles = react.useMultiStyleConfig("Tooltip", {});
|
|
14538
14621
|
return React__default.createElement(react.Tooltip, Object.assign({
|
|
14539
|
-
hasArrow: true,
|
|
14540
14622
|
"aria-label": typeof content !== "string" ? "Tooltip" : undefined,
|
|
14541
|
-
|
|
14623
|
+
closeDelay: 750,
|
|
14624
|
+
closeOnClick: true,
|
|
14625
|
+
closeOnEsc: true,
|
|
14626
|
+
closeOnMouseDown: true,
|
|
14627
|
+
hasArrow: true,
|
|
14542
14628
|
isDisabled: isDisabled,
|
|
14543
|
-
|
|
14629
|
+
label: content,
|
|
14544
14630
|
openDelay: 500,
|
|
14631
|
+
placement: "top",
|
|
14545
14632
|
ref: ref,
|
|
14546
14633
|
__css: styles
|
|
14547
14634
|
}, rest), newChildren);
|
|
@@ -15029,6 +15116,96 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
15029
15116
|
}), labelText)));
|
|
15030
15117
|
}));
|
|
15031
15118
|
|
|
15119
|
+
/**
|
|
15120
|
+
* A custom hook that returns the Chakra-based NYPL theme object. This must be
|
|
15121
|
+
* used inside a component that is wrapped in the `DSProvider` component, so
|
|
15122
|
+
* that the theme object can be available to use.
|
|
15123
|
+
*/
|
|
15124
|
+
function useNYPLTheme() {
|
|
15125
|
+
var theme = react.useTheme();
|
|
15126
|
+
if (!theme || Object.keys(theme).length === 0) {
|
|
15127
|
+
console.warn("NYPL Reservoir useNYPLTheme: hook must be used inside of `<DSProvider />`.");
|
|
15128
|
+
return {};
|
|
15129
|
+
}
|
|
15130
|
+
// Chakra provides a lot of their own styles but
|
|
15131
|
+
// only NYPL styles should be exported.
|
|
15132
|
+
return {
|
|
15133
|
+
// base, sm, md, lg, xl, 2xl
|
|
15134
|
+
breakpoints: theme.breakpoints,
|
|
15135
|
+
colors: {
|
|
15136
|
+
// primary, secondary
|
|
15137
|
+
brand: theme.colors.brand,
|
|
15138
|
+
// dark mode colors:
|
|
15139
|
+
// ui.disabled, ui.error, ui.focus, ui.link,
|
|
15140
|
+
// ui.status, ui.success, ui.test, ui.warning,
|
|
15141
|
+
// ui.bg, ui.border, ui.typography
|
|
15142
|
+
dark: theme.colors.dark,
|
|
15143
|
+
// blogs, books-and-more, education, locations,
|
|
15144
|
+
// research, research-library, whats-on
|
|
15145
|
+
section: theme.colors.section,
|
|
15146
|
+
transparent: theme.colors.transparent,
|
|
15147
|
+
// black, white, gray, disabled, error, focus, link,
|
|
15148
|
+
// status, success, test, warning, bg, border, typography
|
|
15149
|
+
ui: theme.colors.ui
|
|
15150
|
+
},
|
|
15151
|
+
fontSizes: {
|
|
15152
|
+
"-3": theme.fontSizes["-3"],
|
|
15153
|
+
"-2": theme.fontSizes["-2"],
|
|
15154
|
+
"-1": theme.fontSizes["-1"],
|
|
15155
|
+
"0": theme.fontSizes["0"],
|
|
15156
|
+
"1": theme.fontSizes["1"],
|
|
15157
|
+
"2": theme.fontSizes["2"],
|
|
15158
|
+
"3": theme.fontSizes["3"],
|
|
15159
|
+
"4": theme.fontSizes["4"],
|
|
15160
|
+
// default
|
|
15161
|
+
breadcrumbs: theme.fontSizes.breadcrumbs,
|
|
15162
|
+
// default
|
|
15163
|
+
button: theme.fontSizes.button,
|
|
15164
|
+
// primary, secondary, tertiary, callout
|
|
15165
|
+
heading: theme.fontSizes.heading,
|
|
15166
|
+
// default
|
|
15167
|
+
helper: theme.fontSizes.helper,
|
|
15168
|
+
// default, secondary
|
|
15169
|
+
label: theme.fontSizes.label,
|
|
15170
|
+
// default, caption, tag, mini
|
|
15171
|
+
text: theme.fontSizes.text
|
|
15172
|
+
},
|
|
15173
|
+
fontWeights: {
|
|
15174
|
+
light: theme.fontWeights.light,
|
|
15175
|
+
regular: theme.fontWeights.regular,
|
|
15176
|
+
medium: theme.fontWeights.medium,
|
|
15177
|
+
bold: theme.fontWeights.bold,
|
|
15178
|
+
// default, lastChild
|
|
15179
|
+
breadcrumbs: theme.fontWeights.breadcrumbs,
|
|
15180
|
+
// default
|
|
15181
|
+
button: theme.fontWeights.button,
|
|
15182
|
+
// primary, secondary, tertiary, callout
|
|
15183
|
+
heading: theme.fontWeights.heading,
|
|
15184
|
+
// default
|
|
15185
|
+
helper: theme.fontWeights.helper,
|
|
15186
|
+
// default
|
|
15187
|
+
label: theme.fontWeights.label,
|
|
15188
|
+
// default, caption, tag, mini
|
|
15189
|
+
text: theme.fontWeights.text
|
|
15190
|
+
},
|
|
15191
|
+
fonts: {
|
|
15192
|
+
body: theme.fonts.body,
|
|
15193
|
+
heading: theme.fonts.heading
|
|
15194
|
+
},
|
|
15195
|
+
radii: theme.radii,
|
|
15196
|
+
space: {
|
|
15197
|
+
xxs: theme.space.xxs,
|
|
15198
|
+
xs: theme.space.xs,
|
|
15199
|
+
s: theme.space.s,
|
|
15200
|
+
m: theme.space.m,
|
|
15201
|
+
l: theme.space.l,
|
|
15202
|
+
xl: theme.space.xl,
|
|
15203
|
+
xxl: theme.space.xxl,
|
|
15204
|
+
xxxl: theme.space.xxxl
|
|
15205
|
+
}
|
|
15206
|
+
};
|
|
15207
|
+
}
|
|
15208
|
+
|
|
15032
15209
|
var _excluded$2h = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
|
|
15033
15210
|
var VideoPlayer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
15034
15211
|
var aspectRatio = props.aspectRatio,
|
|
@@ -15273,6 +15450,7 @@ exports.SkipNavigation = SkipNavigation$1;
|
|
|
15273
15450
|
exports.Slider = Slider;
|
|
15274
15451
|
exports.StatusBadge = StatusBadge$1;
|
|
15275
15452
|
exports.StructuredContent = StructuredContent$1;
|
|
15453
|
+
exports.StyledList = StyledList$1;
|
|
15276
15454
|
exports.Table = Table;
|
|
15277
15455
|
exports.Tabs = Tabs;
|
|
15278
15456
|
exports.TagSet = TagSet$1;
|