@nypl/design-system-react-components 1.2.2 → 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.
@@ -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,7 +575,6 @@ 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
@@ -621,7 +597,6 @@ var SvgErrorOutline = function SvgErrorOutline(_ref) {
621
597
  return /*#__PURE__*/React.createElement("svg", _extends$p({
622
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
@@ -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
  });
@@ -3079,36 +3024,6 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
3079
3024
  }));
3080
3025
  }));
3081
3026
 
3082
- var _excluded$15 = ["children", "columns", "className", "gap", "id"];
3083
- var SimpleGrid = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
3084
- var children = props.children,
3085
- columns = props.columns,
3086
- className = props.className,
3087
- _props$gap = props.gap,
3088
- gap = _props$gap === void 0 ? "grid.l" : _props$gap,
3089
- id = props.id,
3090
- rest = _objectWithoutPropertiesLoose(props, _excluded$15);
3091
- var responsiveCols = columns ? {
3092
- base: 1,
3093
- md: columns
3094
- } : {
3095
- base: 1,
3096
- md: 2,
3097
- lg: 3
3098
- };
3099
- return React__default.createElement(react.SimpleGrid, Object.assign({
3100
- className: className,
3101
- columns: responsiveCols,
3102
- gap: gap,
3103
- id: id,
3104
- ref: ref
3105
- }, rest), children);
3106
- }), {
3107
- shouldForwardProp: function shouldForwardProp() {
3108
- return true;
3109
- }
3110
- });
3111
-
3112
3027
  /**
3113
3028
  * React hook used to get the window size on device resizing.
3114
3029
  * Based on https://usehooks-typescript.com/react-hook/use-window-size
@@ -3138,7 +3053,7 @@ function useWindowSize() {
3138
3053
  return windowSize;
3139
3054
  }
3140
3055
 
3141
- var _excluded$16 = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
3056
+ var _excluded$15 = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
3142
3057
  /**
3143
3058
  * Basic `Table` component used to organize and display tabular data in
3144
3059
  * rows and columns.
@@ -3156,7 +3071,7 @@ var Table = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
3156
3071
  titleText = props.titleText,
3157
3072
  _props$useRowHeaders = props.useRowHeaders,
3158
3073
  useRowHeaders = _props$useRowHeaders === void 0 ? false : _props$useRowHeaders,
3159
- rest = _objectWithoutPropertiesLoose(props, _excluded$16);
3074
+ rest = _objectWithoutPropertiesLoose(props, _excluded$15);
3160
3075
  var customColors = {};
3161
3076
  columnHeadersBackgroundColor && (customColors["backgroundColor"] = columnHeadersBackgroundColor);
3162
3077
  columnHeadersTextColor && (customColors["color"] = columnHeadersTextColor);
@@ -3223,113 +3138,37 @@ var Table = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (p
3223
3138
  }, rest), tableCaption, columnHeadersElems, tableBodyElems());
3224
3139
  }));
3225
3140
 
3226
- /**
3227
- * A custom hook that returns the Chakra-based NYPL theme object. This must be
3228
- * used inside a component that is wrapped in the `DSProvider` component, so
3229
- * that the theme object can be available to use.
3230
- */
3231
- function useNYPLTheme() {
3232
- var theme = react.useTheme();
3233
- if (!theme || Object.keys(theme).length === 0) {
3234
- console.warn("NYPL Reservoir useNYPLTheme: hook must be used inside of `<DSProvider />`.");
3235
- return {};
3236
- }
3237
- // Chakra provides a lot of their own styles but
3238
- // only NYPL styles should be exported.
3239
- return {
3240
- // base, sm, md, lg, xl, 2xl
3241
- breakpoints: theme.breakpoints,
3242
- colors: {
3243
- // primary, secondary
3244
- brand: theme.colors.brand,
3245
- // dark mode colors:
3246
- // ui.disabled, ui.error, ui.focus, ui.link,
3247
- // ui.status, ui.success, ui.test, ui.warning,
3248
- // ui.bg, ui.border, ui.typography
3249
- dark: theme.colors.dark,
3250
- // blogs, books-and-more, education, locations,
3251
- // research, research-library, whats-on
3252
- section: theme.colors.section,
3253
- transparent: theme.colors.transparent,
3254
- // black, white, gray, disabled, error, focus, link,
3255
- // status, success, test, warning, bg, border, typography
3256
- ui: theme.colors.ui
3257
- },
3258
- fontSizes: {
3259
- "-3": theme.fontSizes["-3"],
3260
- "-2": theme.fontSizes["-2"],
3261
- "-1": theme.fontSizes["-1"],
3262
- "0": theme.fontSizes["0"],
3263
- "1": theme.fontSizes["1"],
3264
- "2": theme.fontSizes["2"],
3265
- "3": theme.fontSizes["3"],
3266
- "4": theme.fontSizes["4"],
3267
- // default
3268
- breadcrumbs: theme.fontSizes.breadcrumbs,
3269
- // default
3270
- button: theme.fontSizes.button,
3271
- // primary, secondary, tertiary, callout
3272
- heading: theme.fontSizes.heading,
3273
- // default
3274
- helper: theme.fontSizes.helper,
3275
- // default, secondary
3276
- label: theme.fontSizes.label,
3277
- // default, caption, tag, mini
3278
- text: theme.fontSizes.text
3279
- },
3280
- fontWeights: {
3281
- light: theme.fontWeights.light,
3282
- regular: theme.fontWeights.regular,
3283
- medium: theme.fontWeights.medium,
3284
- bold: theme.fontWeights.bold,
3285
- // default, lastChild
3286
- breadcrumbs: theme.fontWeights.breadcrumbs,
3287
- // default
3288
- button: theme.fontWeights.button,
3289
- // primary, secondary, tertiary, callout
3290
- heading: theme.fontWeights.heading,
3291
- // default
3292
- helper: theme.fontWeights.helper,
3293
- // default
3294
- label: theme.fontWeights.label,
3295
- // default, caption, tag, mini
3296
- text: theme.fontWeights.text
3297
- },
3298
- fonts: {
3299
- body: theme.fonts.body,
3300
- heading: theme.fonts.heading
3301
- },
3302
- radii: theme.radii,
3303
- space: {
3304
- xxs: theme.space.xxs,
3305
- xs: theme.space.xs,
3306
- s: theme.space.s,
3307
- m: theme.space.m,
3308
- l: theme.space.l,
3309
- xl: theme.space.xl,
3310
- xxl: theme.space.xxl,
3311
- 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"
3312
3154
  }
3313
- };
3314
- }
3315
-
3155
+ });
3156
+ };
3316
3157
  var DataTable = function DataTable(props) {
3317
3158
  var dataBgPageColor = props.dataBgPageColor,
3318
3159
  dataBgDefaultColor = props.dataBgDefaultColor,
3160
+ dataDarkBgPageColor = props.dataDarkBgPageColor,
3161
+ dataDarkBgDefaultColor = props.dataDarkBgDefaultColor,
3319
3162
  _props$dataBlackColor = props.dataBlackColor,
3320
3163
  dataBlackColor = _props$dataBlackColor === void 0 ? ["--", "--", "--"] : _props$dataBlackColor,
3321
- dataHeadingColor = props.dataHeadingColor,
3322
- dataBodyColor = props.dataBodyColor,
3164
+ dataDarkHeadingColor = props.dataDarkHeadingColor,
3165
+ dataDarkBodyColor = props.dataDarkBodyColor,
3323
3166
  _props$dataWhiteColor = props.dataWhiteColor,
3324
3167
  dataWhiteColor = _props$dataWhiteColor === void 0 ? ["--", "--", "--"] : _props$dataWhiteColor,
3168
+ dataBrandPrimaryColor = props.dataBrandPrimaryColor,
3169
+ dataBrandSecondaryColor = props.dataBrandSecondaryColor,
3325
3170
  _props$textColor = props.textColor,
3326
3171
  textColor = _props$textColor === void 0 ? "ui.white" : _props$textColor;
3327
- var _useNYPLTheme = useNYPLTheme(),
3328
- ui = _useNYPLTheme.colors.ui;
3329
- var grayxxxxDark = ui.gray["xxxx-dark"];
3330
- var grayxxxDark = ui.gray["xxx-dark"];
3331
- var grayLightCool = ui.gray["light-cool"];
3332
- var grayMedium = ui.gray.medium;
3333
3172
  var SuccessIcon = function SuccessIcon() {
3334
3173
  return React.createElement(Icon, {
3335
3174
  color: textColor,
@@ -3354,29 +3193,41 @@ var DataTable = function DataTable(props) {
3354
3193
  var whiteLargeTextSuccess = successfulContrast(dataWhiteColor, "large");
3355
3194
  var blackSmallTextSuccess = successfulContrast(dataBlackColor);
3356
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");
3357
3200
  // The dark theme colors might have the following color contrast information.
3358
3201
  var bgPageSmallTextSuccess = dataBgPageColor && successfulContrast(dataBgPageColor);
3359
3202
  var bgPageLargeTextSuccess = dataBgPageColor && successfulContrast(dataBgPageColor, "large");
3360
3203
  var bgDefaultSmallTextSuccess = dataBgDefaultColor && successfulContrast(dataBgDefaultColor);
3361
3204
  var bgDefaultLargeTextSuccess = dataBgDefaultColor && successfulContrast(dataBgDefaultColor, "large");
3362
- var headingSmallTextSuccess = dataHeadingColor && successfulContrast(dataHeadingColor);
3363
- var headingLargeTextSuccess = dataHeadingColor && successfulContrast(dataHeadingColor, "large");
3364
- var textSmallTextSuccess = dataBodyColor && successfulContrast(dataBodyColor);
3365
- var textLargeTextSuccess = dataBodyColor && successfulContrast(dataBodyColor, "large");
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");
3366
3213
  // All ColorCards have these two rows.
3367
3214
  var tableData = [[React.createElement("span", {
3368
3215
  key: "colorUiWhite",
3369
3216
  style: {
3370
- color: "white",
3371
3217
  padding: 0
3372
3218
  }
3373
- }, "ui.white"), dataWhiteColor[0] + ":1", React.createElement(React.Fragment, null, dataWhiteColor[1], whiteSmallTextSuccess), React.createElement(React.Fragment, null, dataWhiteColor[2], whiteLargeTextSuccess)], [React.createElement("span", {
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", {
3374
3223
  key: "colorUiBlack",
3375
3224
  style: {
3376
- color: "black",
3377
3225
  padding: 0
3378
3226
  }
3379
- }, "ui.black"), dataBlackColor[0] + ":1", React.createElement(React.Fragment, null, dataBlackColor[1], blackSmallTextSuccess), React.createElement(React.Fragment, null, dataBlackColor[2], blackLargeTextSuccess)]];
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)]];
3380
3231
  var cellStyles = {
3381
3232
  borderColor: textColor === "ui.white" ? "white !important" : "black !important",
3382
3233
  fontWeight: "medium",
@@ -3385,56 +3236,109 @@ var DataTable = function DataTable(props) {
3385
3236
  var tableStyles = {
3386
3237
  tbody: {
3387
3238
  td: _extends({
3388
- fontSize: "text.caption"
3239
+ fontSize: "text.tag"
3389
3240
  }, cellStyles),
3390
3241
  th: _extends({
3391
- fontSize: "text.caption",
3242
+ fontSize: "text.tag",
3392
3243
  textTransform: "none"
3393
- }, cellStyles)
3244
+ }, cellStyles, {
3245
+ _first: {
3246
+ span: {
3247
+ color: textColor
3248
+ }
3249
+ }
3250
+ })
3394
3251
  },
3395
3252
  thead: {
3396
3253
  th: _extends({
3397
3254
  color: textColor,
3398
- fontSize: "text.tag"
3255
+ fontSize: "text.tag",
3256
+ textTransform: "uppercase"
3399
3257
  }, cellStyles)
3400
3258
  }
3401
3259
  };
3402
- // For dark mode `ColorCard`s, there are four extra rows.
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
+ }
3403
3281
  if (dataBgPageColor && dataBgPageColor.length > 0) {
3404
3282
  tableData.push([React.createElement("span", {
3405
3283
  key: "colorBgPage",
3406
3284
  style: {
3407
- color: grayxxxxDark,
3408
3285
  padding: 0
3409
3286
  }
3410
- }, "bg page"), dataBgPageColor[0] + ":1", React.createElement(React.Fragment, null, dataBgPageColor[1], bgPageSmallTextSuccess), React.createElement(React.Fragment, null, dataBgPageColor[2], bgPageLargeTextSuccess)]);
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)]);
3411
3291
  }
3412
3292
  if (dataBgDefaultColor && dataBgDefaultColor.length > 0) {
3413
3293
  tableData.push([React.createElement("span", {
3414
3294
  key: "colorBgDefault",
3415
3295
  style: {
3416
- color: grayxxxDark,
3417
3296
  padding: 0
3418
3297
  }
3419
- }, "bg default"), dataBgDefaultColor[0] + ":1", React.createElement(React.Fragment, null, dataBgDefaultColor[1], bgDefaultSmallTextSuccess), React.createElement(React.Fragment, null, dataBgDefaultColor[2], bgDefaultLargeTextSuccess)]);
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)]);
3420
3301
  }
3421
- if (dataHeadingColor && dataHeadingColor.length > 0) {
3302
+ // For dark mode `ColorCard`s, there are four extra rows.
3303
+ if (dataDarkBgPageColor && dataDarkBgPageColor.length > 0) {
3422
3304
  tableData.push([React.createElement("span", {
3423
- key: "colorHeading",
3305
+ key: "colorDarkBgPage",
3424
3306
  style: {
3425
- color: grayLightCool,
3426
3307
  padding: 0
3427
3308
  }
3428
- }, "heading"), dataHeadingColor[0] + ":1", React.createElement(React.Fragment, null, dataHeadingColor[1], headingSmallTextSuccess), React.createElement(React.Fragment, null, dataHeadingColor[2], headingLargeTextSuccess)]);
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)]);
3429
3312
  }
3430
- if (dataBodyColor && dataBodyColor.length > 0) {
3313
+ if (dataDarkBgDefaultColor && dataDarkBgDefaultColor.length > 0) {
3431
3314
  tableData.push([React.createElement("span", {
3432
- key: "colorText",
3315
+ key: "colorDarkBgDefault",
3433
3316
  style: {
3434
- color: grayMedium,
3435
3317
  padding: 0
3436
3318
  }
3437
- }, "body"), dataBodyColor[0] + ":1", React.createElement(React.Fragment, null, dataBodyColor[1], textSmallTextSuccess), React.createElement(React.Fragment, null, dataBodyColor[2], textLargeTextSuccess)]);
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)]);
3438
3342
  }
3439
3343
  return React.createElement(Table, {
3440
3344
  columnHeaders: columnHeaders,
@@ -3448,19 +3352,23 @@ var ColorCard = function ColorCard(props) {
3448
3352
  var backgroundColor = props.backgroundColor,
3449
3353
  dataBgPageColor = props.dataBgPageColor,
3450
3354
  dataBgDefaultColor = props.dataBgDefaultColor,
3355
+ dataDarkBgPageColor = props.dataDarkBgPageColor,
3356
+ dataDarkBgDefaultColor = props.dataDarkBgDefaultColor,
3451
3357
  _props$colorName = props.colorName,
3452
3358
  colorName = _props$colorName === void 0 ? "" : _props$colorName,
3453
3359
  colorSource = props.colorSource,
3454
3360
  _props$dataBlackColor2 = props.dataBlackColor,
3455
3361
  dataBlackColor = _props$dataBlackColor2 === void 0 ? ["--", "--", "--"] : _props$dataBlackColor2,
3456
- dataHeadingColor = props.dataHeadingColor,
3457
- dataBodyColor = props.dataBodyColor,
3362
+ dataDarkHeadingColor = props.dataDarkHeadingColor,
3363
+ dataDarkBodyColor = props.dataDarkBodyColor,
3458
3364
  _props$dataWhiteColor2 = props.dataWhiteColor,
3459
3365
  dataWhiteColor = _props$dataWhiteColor2 === void 0 ? ["--", "--", "--"] : _props$dataWhiteColor2,
3366
+ dataBrandPrimaryColor = props.dataBrandPrimaryColor,
3367
+ dataBrandSecondaryColor = props.dataBrandSecondaryColor,
3460
3368
  _props$textColor2 = props.textColor,
3461
3369
  textColor = _props$textColor2 === void 0 ? "ui.white" : _props$textColor2;
3462
3370
  var cssVarName = "--nypl-colors-" + colorName.replace(/\./g, "-");
3463
- 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;
3464
3372
  return React.createElement(react.Box, {
3465
3373
  bg: backgroundColor,
3466
3374
  color: textColor,
@@ -3468,9 +3376,11 @@ var ColorCard = function ColorCard(props) {
3468
3376
  paddingBottom: "m",
3469
3377
  paddingTop: "s",
3470
3378
  border: border
3471
- }, React.createElement(SimpleGrid, {
3472
- columns: 2
3473
- }, React.createElement(react.Box, null, React.createElement(Heading, {
3379
+ }, React.createElement(react.HStack, {
3380
+ alignItems: "top"
3381
+ }, React.createElement(react.Box, {
3382
+ width: "80%"
3383
+ }, React.createElement(Heading, {
3474
3384
  noSpace: true,
3475
3385
  size: "tertiary"
3476
3386
  }, backgroundColor), React.createElement(Text, {
@@ -3484,14 +3394,48 @@ var ColorCard = function ColorCard(props) {
3484
3394
  }, "Source: ", colorSource)), React.createElement(DataTable, {
3485
3395
  dataBgPageColor: dataBgPageColor,
3486
3396
  dataBgDefaultColor: dataBgDefaultColor,
3397
+ dataDarkBgPageColor: dataDarkBgPageColor,
3398
+ dataDarkBgDefaultColor: dataDarkBgDefaultColor,
3487
3399
  dataBlackColor: dataBlackColor,
3488
- dataHeadingColor: dataHeadingColor,
3489
- dataBodyColor: dataBodyColor,
3400
+ dataDarkHeadingColor: dataDarkHeadingColor,
3401
+ dataDarkBodyColor: dataDarkBodyColor,
3490
3402
  dataWhiteColor: dataWhiteColor,
3403
+ dataBrandPrimaryColor: dataBrandPrimaryColor,
3404
+ dataBrandSecondaryColor: dataBrandSecondaryColor,
3491
3405
  textColor: textColor
3492
3406
  })));
3493
3407
  };
3494
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
+
3495
3439
  var _excluded$17 = ["children", "className", "gap", "id"],
3496
3440
  _excluded2$3 = ["children", "className", "gap", "id"],
3497
3441
  _excluded3$1 = ["action", "children", "className", "gap", "id", "method", "onSubmit"];
@@ -3552,7 +3496,7 @@ var Form = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
3552
3496
  action && (attributes["action"] = action);
3553
3497
  method && (method === "get" || method === "post") && (attributes["method"] = method);
3554
3498
  var alteredChildren = React__default.Children.map(children, function (child, i) {
3555
- return React__default.cloneElement(child, {
3499
+ return child && React__default.cloneElement(child, {
3556
3500
  gap: gap,
3557
3501
  id: id + "-child" + i
3558
3502
  });
@@ -4272,7 +4216,7 @@ var global = {
4272
4216
  * Chakra Value | DS Variable | EM/PX value
4273
4217
  * ------------------------------------------------------
4274
4218
  * sm | --nypl-breakpoint-small | 20em/320px
4275
- * md | --nypl-breakpoint-medium | 38em/600px
4219
+ * md | --nypl-breakpoint-medium | 37.5em/600px
4276
4220
  * lg | --nypl-breakpoint-large | 60em/960px
4277
4221
  * xl | --nypl-breakpoint-xl | 80em/1280px
4278
4222
  * 2xl | N/A | 96em/1536px
@@ -4282,7 +4226,7 @@ var global = {
4282
4226
  */
4283
4227
  var breakpoints = /*#__PURE__*/themeTools.createBreakpoints({
4284
4228
  sm: "20em",
4285
- md: "38em",
4229
+ md: "37.5em",
4286
4230
  lg: "60em",
4287
4231
  xl: "80em",
4288
4232
  "2xl": "96em"
@@ -4359,6 +4303,7 @@ var colors = {
4359
4303
  },
4360
4304
  // Semantic colors
4361
4305
  bg: {
4306
+ page: white,
4362
4307
  "default": grayxLightCool,
4363
4308
  hover: grayLightCool,
4364
4309
  active: grayMedium
@@ -4369,7 +4314,11 @@ var colors = {
4369
4314
  },
4370
4315
  typography: {
4371
4316
  heading: black,
4372
- body: black
4317
+ body: black,
4318
+ inverse: {
4319
+ heading: white,
4320
+ body: white
4321
+ }
4373
4322
  },
4374
4323
  // Grayscale
4375
4324
  gray: {
@@ -4430,7 +4379,11 @@ var colors = {
4430
4379
  },
4431
4380
  typography: {
4432
4381
  heading: grayLightCool,
4433
- body: grayMedium
4382
+ body: grayMedium,
4383
+ inverse: {
4384
+ heading: grayxxDark,
4385
+ body: grayxxDark
4386
+ }
4434
4387
  }
4435
4388
  }
4436
4389
  },
@@ -4730,6 +4683,15 @@ var AlphabetFilter$1 = {
4730
4683
  }
4731
4684
  };
4732
4685
 
4686
+ var AudioPlayer$1 = {
4687
+ baseStyle: {
4688
+ invalid: {
4689
+ backgroundColor: "ui.bg.default",
4690
+ padding: "s"
4691
+ }
4692
+ }
4693
+ };
4694
+
4733
4695
  // Variant styling
4734
4696
  var blogs = {
4735
4697
  bg: "section.blogs.secondary",
@@ -5618,6 +5580,47 @@ var DatePicker$1 = {
5618
5580
  }
5619
5581
  };
5620
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
+
5621
5624
  var Fieldset$1 = {
5622
5625
  baseStyle: function baseStyle(_ref) {
5623
5626
  var isLegendHidden = _ref.isLegendHidden;
@@ -8234,6 +8237,30 @@ var StructuredContent = {
8234
8237
  }
8235
8238
  };
8236
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
+
8237
8264
  var tablist = {
8238
8265
  borderColor: "ui.black"
8239
8266
  };
@@ -8859,15 +8886,6 @@ var VideoPlayer = {
8859
8886
  }
8860
8887
  };
8861
8888
 
8862
- var AudioPlayer$1 = {
8863
- baseStyle: {
8864
- invalid: {
8865
- backgroundColor: "ui.bg.default",
8866
- padding: "s"
8867
- }
8868
- }
8869
- };
8870
-
8871
8889
  /**
8872
8890
  * See Chakra default theme for shape of theme object:
8873
8891
  * https://github.com/chakra-ui/chakra-ui/tree/main/packages/theme
@@ -8915,6 +8933,7 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
8915
8933
  CustomImageWrapper: CustomImageWrapper,
8916
8934
  CustomSelect: Select,
8917
8935
  DatePicker: DatePicker$1,
8936
+ FeedbackBox: FeedbackBox,
8918
8937
  Fieldset: Fieldset$1,
8919
8938
  Footer: Footer,
8920
8939
  Header: Header,
@@ -8950,6 +8969,7 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
8950
8969
  CustomSlider: CustomSlider,
8951
8970
  StatusBadge: StatusBadge,
8952
8971
  StructuredContent: StructuredContent,
8972
+ StyledList: StyledList,
8953
8973
  Tabs: CustomTabs,
8954
8974
  CustomTable: CustomTable
8955
8975
  }, TagSetStyles, TemplateStyles, {
@@ -9047,18 +9067,6 @@ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
9047
9067
  }
9048
9068
  return null;
9049
9069
  };
9050
- /**
9051
- * Checks for `li` elements and consoles a warning if the
9052
- * children are different HTML elements.
9053
- */
9054
- var checkListChildrenError = function checkListChildrenError(listType) {
9055
- React__default.Children.map(children, function (child) {
9056
- var _child$props;
9057
- if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
9058
- console.warn("NYPL Reservoir List: Direct children of `List` (" + listType + ") must be `<li>`s.");
9059
- }
9060
- });
9061
- };
9062
9070
  /**
9063
9071
  * Checks for `dt` and `dd` elements and consoles a warning if the
9064
9072
  * children are different HTML elements.
@@ -9071,7 +9079,7 @@ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
9071
9079
  });
9072
9080
  };
9073
9081
  if (type === "ol" || type === "ul") {
9074
- checkListChildrenError(type);
9082
+ checkListChildrenError(children, type);
9075
9083
  listElement = React__default.createElement(react.Box, Object.assign({
9076
9084
  as: type,
9077
9085
  id: id,
@@ -9093,6 +9101,24 @@ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
9093
9101
  }
9094
9102
  return listElement;
9095
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
+ };
9096
9122
 
9097
9123
  var _path$L, _path2$f, _path3$7;
9098
9124
  var _excluded$1c = ["title", "titleId"];
@@ -9107,7 +9133,6 @@ var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
9107
9133
  viewBox: "0 0 200 67",
9108
9134
  fill: "none",
9109
9135
  xmlns: "http://www.w3.org/2000/svg",
9110
- role: "img",
9111
9136
  "aria-labelledby": titleId
9112
9137
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9113
9138
  id: titleId
@@ -9136,7 +9161,6 @@ var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
9136
9161
  viewBox: "0 0 200 67",
9137
9162
  fill: "none",
9138
9163
  xmlns: "http://www.w3.org/2000/svg",
9139
- role: "img",
9140
9164
  "aria-labelledby": titleId
9141
9165
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9142
9166
  id: titleId
@@ -9164,7 +9188,6 @@ var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
9164
9188
  return /*#__PURE__*/React.createElement("svg", _extends$T({
9165
9189
  viewBox: "0 0 328 120",
9166
9190
  xmlns: "http://www.w3.org/2000/svg",
9167
- role: "img",
9168
9191
  "aria-labelledby": titleId
9169
9192
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9170
9193
  id: titleId
@@ -9190,7 +9213,6 @@ var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
9190
9213
  viewBox: "0 0 328 120",
9191
9214
  fill: "#fff",
9192
9215
  xmlns: "http://www.w3.org/2000/svg",
9193
- role: "img",
9194
9216
  "aria-labelledby": titleId
9195
9217
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9196
9218
  id: titleId
@@ -9216,7 +9238,6 @@ var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
9216
9238
  viewBox: "0 0 118 119",
9217
9239
  fill: "none",
9218
9240
  xmlns: "http://www.w3.org/2000/svg",
9219
- role: "img",
9220
9241
  "aria-labelledby": titleId
9221
9242
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9222
9243
  id: titleId
@@ -9247,7 +9268,6 @@ var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
9247
9268
  viewBox: "0 0 312 88",
9248
9269
  fill: "#436CF2",
9249
9270
  xmlns: "http://www.w3.org/2000/svg",
9250
- role: "img",
9251
9271
  "aria-labelledby": titleId
9252
9272
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9253
9273
  id: titleId
@@ -9271,7 +9291,6 @@ var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
9271
9291
  viewBox: "0 0 312 88",
9272
9292
  fill: "#fff",
9273
9293
  xmlns: "http://www.w3.org/2000/svg",
9274
- role: "img",
9275
9294
  "aria-labelledby": titleId
9276
9295
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9277
9296
  id: titleId
@@ -9295,7 +9314,6 @@ var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
9295
9314
  viewBox: "0 0 172 152",
9296
9315
  fill: "none",
9297
9316
  xmlns: "http://www.w3.org/2000/svg",
9298
- role: "img",
9299
9317
  "aria-labelledby": titleId
9300
9318
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9301
9319
  id: titleId
@@ -9354,7 +9372,6 @@ var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref)
9354
9372
  viewBox: "0 0 170 150",
9355
9373
  fill: "none",
9356
9374
  xmlns: "http://www.w3.org/2000/svg",
9357
- role: "img",
9358
9375
  "aria-labelledby": titleId
9359
9376
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9360
9377
  id: titleId
@@ -9418,7 +9435,6 @@ var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
9418
9435
  viewBox: "0 0 200 60",
9419
9436
  fill: "none",
9420
9437
  xmlns: "http://www.w3.org/2000/svg",
9421
- role: "img",
9422
9438
  "aria-labelledby": titleId
9423
9439
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9424
9440
  id: titleId
@@ -9559,7 +9575,6 @@ var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
9559
9575
  viewBox: "0 0 186 74",
9560
9576
  fill: "none",
9561
9577
  xmlns: "http://www.w3.org/2000/svg",
9562
- role: "img",
9563
9578
  "aria-labelledby": titleId
9564
9579
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9565
9580
  id: titleId
@@ -9584,7 +9599,6 @@ var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
9584
9599
  return /*#__PURE__*/React.createElement("svg", _extends$10({
9585
9600
  viewBox: "0 0 186 74",
9586
9601
  xmlns: "http://www.w3.org/2000/svg",
9587
- role: "img",
9588
9602
  "aria-labelledby": titleId
9589
9603
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9590
9604
  id: titleId
@@ -9606,7 +9620,6 @@ var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
9606
9620
  viewBox: "0 0 186 74",
9607
9621
  fill: "#fff",
9608
9622
  xmlns: "http://www.w3.org/2000/svg",
9609
- role: "img",
9610
9623
  "aria-labelledby": titleId
9611
9624
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9612
9625
  id: titleId
@@ -9627,7 +9640,6 @@ var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
9627
9640
  return /*#__PURE__*/React.createElement("svg", _extends$12({
9628
9641
  viewBox: "0 0 300 71",
9629
9642
  xmlns: "http://www.w3.org/2000/svg",
9630
- role: "img",
9631
9643
  "aria-labelledby": titleId
9632
9644
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9633
9645
  id: titleId
@@ -9651,7 +9663,6 @@ var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
9651
9663
  viewBox: "0 0 300 71",
9652
9664
  fill: "#C60917",
9653
9665
  xmlns: "http://www.w3.org/2000/svg",
9654
- role: "img",
9655
9666
  "aria-labelledby": titleId
9656
9667
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9657
9668
  id: titleId
@@ -9675,7 +9686,6 @@ var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
9675
9686
  viewBox: "0 0 300 71",
9676
9687
  fill: "#fff",
9677
9688
  xmlns: "http://www.w3.org/2000/svg",
9678
- role: "img",
9679
9689
  "aria-labelledby": titleId
9680
9690
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9681
9691
  id: titleId
@@ -9699,7 +9709,6 @@ var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
9699
9709
  viewBox: "0 0 341 61",
9700
9710
  fill: "none",
9701
9711
  xmlns: "http://www.w3.org/2000/svg",
9702
- role: "img",
9703
9712
  "aria-labelledby": titleId
9704
9713
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9705
9714
  id: titleId
@@ -9740,7 +9749,6 @@ var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
9740
9749
  xmlns: "http://www.w3.org/2000/svg",
9741
9750
  viewBox: "0 0 966.787 543.733",
9742
9751
  xmlSpace: "preserve",
9743
- role: "img",
9744
9752
  "aria-labelledby": titleId
9745
9753
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9746
9754
  id: titleId
@@ -9823,7 +9831,6 @@ var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
9823
9831
  viewBox: "0 0 967 568",
9824
9832
  fill: "none",
9825
9833
  xmlns: "http://www.w3.org/2000/svg",
9826
- role: "img",
9827
9834
  "aria-labelledby": titleId
9828
9835
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9829
9836
  id: titleId
@@ -9859,7 +9866,6 @@ var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
9859
9866
  viewBox: "0 0 136 135",
9860
9867
  fill: "none",
9861
9868
  xmlns: "http://www.w3.org/2000/svg",
9862
- role: "img",
9863
9869
  "aria-labelledby": titleId
9864
9870
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9865
9871
  id: titleId
@@ -9890,7 +9896,6 @@ var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
9890
9896
  viewBox: "0 0 125 126",
9891
9897
  fill: "none",
9892
9898
  xmlns: "http://www.w3.org/2000/svg",
9893
- role: "img",
9894
9899
  "aria-labelledby": titleId
9895
9900
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9896
9901
  id: titleId
@@ -9915,7 +9920,6 @@ var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
9915
9920
  viewBox: "0 0 201 165",
9916
9921
  fill: "none",
9917
9922
  xmlns: "http://www.w3.org/2000/svg",
9918
- role: "img",
9919
9923
  "aria-labelledby": titleId
9920
9924
  }, props), title ? /*#__PURE__*/React.createElement("title", {
9921
9925
  id: titleId
@@ -9994,7 +9998,6 @@ var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
9994
9998
  viewBox: "0 0 201 165",
9995
9999
  fill: "none",
9996
10000
  xmlns: "http://www.w3.org/2000/svg",
9997
- role: "img",
9998
10001
  "aria-labelledby": titleId
9999
10002
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10000
10003
  id: titleId
@@ -10073,7 +10076,6 @@ var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
10073
10076
  viewBox: "0 0 152 139",
10074
10077
  fill: "none",
10075
10078
  xmlns: "http://www.w3.org/2000/svg",
10076
- role: "img",
10077
10079
  "aria-labelledby": titleId
10078
10080
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10079
10081
  id: titleId
@@ -10129,7 +10131,6 @@ var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
10129
10131
  viewBox: "0 0 155 139",
10130
10132
  fill: "none",
10131
10133
  xmlns: "http://www.w3.org/2000/svg",
10132
- role: "img",
10133
10134
  "aria-labelledby": titleId
10134
10135
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10135
10136
  id: titleId
@@ -10208,7 +10209,6 @@ var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_re
10208
10209
  viewBox: "0 0 152 139",
10209
10210
  fill: "none",
10210
10211
  xmlns: "http://www.w3.org/2000/svg",
10211
- role: "img",
10212
10212
  "aria-labelledby": titleId
10213
10213
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10214
10214
  id: titleId
@@ -10264,7 +10264,6 @@ var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegati
10264
10264
  viewBox: "0 0 155 139",
10265
10265
  fill: "none",
10266
10266
  xmlns: "http://www.w3.org/2000/svg",
10267
- role: "img",
10268
10267
  "aria-labelledby": titleId
10269
10268
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10270
10269
  id: titleId
@@ -10345,7 +10344,6 @@ var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
10345
10344
  return /*#__PURE__*/React.createElement("svg", _extends$1g({
10346
10345
  viewBox: "0 0 250 134",
10347
10346
  xmlns: "http://www.w3.org/2000/svg",
10348
- role: "img",
10349
10347
  "aria-labelledby": titleId
10350
10348
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10351
10349
  id: titleId
@@ -10367,7 +10365,6 @@ var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
10367
10365
  viewBox: "0 0 250 134",
10368
10366
  fill: "#fff",
10369
10367
  xmlns: "http://www.w3.org/2000/svg",
10370
- role: "img",
10371
10368
  "aria-labelledby": titleId
10372
10369
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10373
10370
  id: titleId
@@ -10388,7 +10385,6 @@ var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
10388
10385
  return /*#__PURE__*/React.createElement("svg", _extends$1i({
10389
10386
  viewBox: "0 0 320 43",
10390
10387
  xmlns: "http://www.w3.org/2000/svg",
10391
- role: "img",
10392
10388
  "aria-labelledby": titleId
10393
10389
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10394
10390
  id: titleId
@@ -10426,7 +10422,6 @@ var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
10426
10422
  viewBox: "0 0 355 48",
10427
10423
  fill: "none",
10428
10424
  xmlns: "http://www.w3.org/2000/svg",
10429
- role: "img",
10430
10425
  "aria-labelledby": titleId
10431
10426
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10432
10427
  id: titleId
@@ -10482,7 +10477,6 @@ var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
10482
10477
  viewBox: "0 0 320 43",
10483
10478
  fill: "#fff",
10484
10479
  xmlns: "http://www.w3.org/2000/svg",
10485
- role: "img",
10486
10480
  "aria-labelledby": titleId
10487
10481
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10488
10482
  id: titleId
@@ -10520,7 +10514,6 @@ var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
10520
10514
  viewBox: "0 0 105 129",
10521
10515
  fill: "none",
10522
10516
  xmlns: "http://www.w3.org/2000/svg",
10523
- role: "img",
10524
10517
  "aria-labelledby": titleId
10525
10518
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10526
10519
  id: titleId
@@ -10555,7 +10548,6 @@ var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref)
10555
10548
  viewBox: "0 0 234 261",
10556
10549
  fill: "none",
10557
10550
  xmlns: "http://www.w3.org/2000/svg",
10558
- role: "img",
10559
10551
  "aria-labelledby": titleId
10560
10552
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10561
10553
  id: titleId
@@ -10588,7 +10580,6 @@ var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
10588
10580
  return /*#__PURE__*/React.createElement("svg", _extends$1n({
10589
10581
  viewBox: "0 0 185 79",
10590
10582
  xmlns: "http://www.w3.org/2000/svg",
10591
- role: "img",
10592
10583
  "aria-labelledby": titleId
10593
10584
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10594
10585
  id: titleId
@@ -10617,7 +10608,6 @@ var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
10617
10608
  return /*#__PURE__*/React.createElement("svg", _extends$1o({
10618
10609
  viewBox: "0 0 67 67",
10619
10610
  xmlns: "http://www.w3.org/2000/svg",
10620
- role: "img",
10621
10611
  "aria-labelledby": titleId
10622
10612
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10623
10613
  id: titleId
@@ -10647,7 +10637,6 @@ var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
10647
10637
  viewBox: "0 0 67 67",
10648
10638
  fill: "none",
10649
10639
  xmlns: "http://www.w3.org/2000/svg",
10650
- role: "img",
10651
10640
  "aria-labelledby": titleId
10652
10641
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10653
10642
  id: titleId
@@ -10682,7 +10671,6 @@ var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
10682
10671
  viewBox: "0 0 67 67",
10683
10672
  fill: "#fff",
10684
10673
  xmlns: "http://www.w3.org/2000/svg",
10685
- role: "img",
10686
10674
  "aria-labelledby": titleId
10687
10675
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10688
10676
  id: titleId
@@ -10712,7 +10700,6 @@ var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
10712
10700
  viewBox: "0 0 185 79",
10713
10701
  fill: "none",
10714
10702
  xmlns: "http://www.w3.org/2000/svg",
10715
- role: "img",
10716
10703
  "aria-labelledby": titleId
10717
10704
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10718
10705
  id: titleId
@@ -10753,7 +10740,6 @@ var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
10753
10740
  viewBox: "0 0 185 79",
10754
10741
  fill: "#fff",
10755
10742
  xmlns: "http://www.w3.org/2000/svg",
10756
- role: "img",
10757
10743
  "aria-labelledby": titleId
10758
10744
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10759
10745
  id: titleId
@@ -10782,7 +10768,6 @@ var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
10782
10768
  return /*#__PURE__*/React.createElement("svg", _extends$1t({
10783
10769
  viewBox: "0 0 512 148",
10784
10770
  xmlns: "http://www.w3.org/2000/svg",
10785
- role: "img",
10786
10771
  "aria-labelledby": titleId
10787
10772
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10788
10773
  id: titleId
@@ -10816,7 +10801,6 @@ var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
10816
10801
  viewBox: "0 0 512 148",
10817
10802
  fill: "#fff",
10818
10803
  xmlns: "http://www.w3.org/2000/svg",
10819
- role: "img",
10820
10804
  "aria-labelledby": titleId
10821
10805
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10822
10806
  id: titleId
@@ -10849,7 +10833,6 @@ var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
10849
10833
  viewBox: "0 0 682 196",
10850
10834
  fill: "none",
10851
10835
  xmlns: "http://www.w3.org/2000/svg",
10852
- role: "img",
10853
10836
  "aria-labelledby": titleId
10854
10837
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10855
10838
  id: titleId
@@ -10888,7 +10871,6 @@ var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
10888
10871
  return /*#__PURE__*/React.createElement("svg", _extends$1w({
10889
10872
  viewBox: "0 0 84 111",
10890
10873
  xmlns: "http://www.w3.org/2000/svg",
10891
- role: "img",
10892
10874
  "aria-labelledby": titleId
10893
10875
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10894
10876
  id: titleId
@@ -10910,7 +10892,6 @@ var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
10910
10892
  viewBox: "0 0 84 111",
10911
10893
  fill: "#fff",
10912
10894
  xmlns: "http://www.w3.org/2000/svg",
10913
- role: "img",
10914
10895
  "aria-labelledby": titleId
10915
10896
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10916
10897
  id: titleId
@@ -10932,7 +10913,6 @@ var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
10932
10913
  viewBox: "0 0 324 265",
10933
10914
  fill: "none",
10934
10915
  xmlns: "http://www.w3.org/2000/svg",
10935
- role: "img",
10936
10916
  "aria-labelledby": titleId
10937
10917
  }, props), title ? /*#__PURE__*/React.createElement("title", {
10938
10918
  id: titleId
@@ -11117,7 +11097,6 @@ var SvgLogoTreasuresColorNegative = function SvgLogoTreasuresColorNegative(_ref)
11117
11097
  viewBox: "0 0 327 266",
11118
11098
  fill: "none",
11119
11099
  xmlns: "http://www.w3.org/2000/svg",
11120
- role: "img",
11121
11100
  "aria-labelledby": titleId
11122
11101
  }, props), title ? /*#__PURE__*/React.createElement("title", {
11123
11102
  id: titleId
@@ -14350,6 +14329,47 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
14350
14329
  }), finalBodyContent);
14351
14330
  }));
14352
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
+
14353
14373
  /**
14354
14374
  * Custom hook that controls the sliding function for the carousel wrapper.
14355
14375
  * This returns functions to use for the "previous" and "next" buttons as well
@@ -15096,6 +15116,96 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
15096
15116
  }), labelText)));
15097
15117
  }));
15098
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
+
15099
15209
  var _excluded$2h = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
15100
15210
  var VideoPlayer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
15101
15211
  var aspectRatio = props.aspectRatio,
@@ -15340,6 +15450,7 @@ exports.SkipNavigation = SkipNavigation$1;
15340
15450
  exports.Slider = Slider;
15341
15451
  exports.StatusBadge = StatusBadge$1;
15342
15452
  exports.StructuredContent = StructuredContent$1;
15453
+ exports.StyledList = StyledList$1;
15343
15454
  exports.Table = Table;
15344
15455
  exports.Tabs = Tabs;
15345
15456
  exports.TagSet = TagSet$1;