@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.
@@ -1,4 +1,4 @@
1
- import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Button as Button$2, Heading as Heading$2, Text as Text$2, useMultiStyleConfig, Flex, Breadcrumb as Breadcrumb$1, BreadcrumbItem, BreadcrumbLink, useMediaQuery, Stack, useMergeRefs, LinkBox, LinkOverlay, Checkbox as Checkbox$2, CheckboxGroup as CheckboxGroup$2, SimpleGrid as SimpleGrid$1, TableCaption, Thead, Tr, Th, Table as Table$1, Tbody, Td, useTheme, Input, Textarea, extendTheme, ChakraProvider, Radio as Radio$2, RadioGroup as RadioGroup$2, HStack, useOutsideClick, VStack, Spacer, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, CircularProgress, CircularProgressLabel, Progress, Select as Select$2, Skeleton as Skeleton$1, RangeSlider, RangeSliderTrack, RangeSliderFilledTrack, RangeSliderThumb, Slider as Slider$1, SliderTrack, SliderFilledTrack, SliderThumb, Tabs as Tabs$1, Tab, TabPanel, TabList, TabPanels, Tooltip as Tooltip$2, Switch as Switch$1 } from '@chakra-ui/react';
1
+ import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Button as Button$2, Heading as Heading$2, Text as Text$2, useMultiStyleConfig, Flex, Breadcrumb as Breadcrumb$1, BreadcrumbItem, BreadcrumbLink, useMediaQuery, Stack, useMergeRefs, LinkBox, LinkOverlay, Checkbox as Checkbox$2, CheckboxGroup as CheckboxGroup$2, TableCaption, Thead, Tr, Th, Table as Table$1, Tbody, Td, HStack, SimpleGrid as SimpleGrid$1, Input, Textarea, extendTheme, ChakraProvider, Radio as Radio$2, RadioGroup as RadioGroup$2, useOutsideClick, VStack, Spacer, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, CircularProgress, CircularProgressLabel, Progress, Select as Select$2, Skeleton as Skeleton$1, RangeSlider, RangeSliderTrack, RangeSliderFilledTrack, RangeSliderThumb, Slider as Slider$1, SliderTrack, SliderFilledTrack, SliderThumb, Tabs as Tabs$1, Tab, TabPanel, TabList, TabPanels, Tooltip as Tooltip$2, Switch as Switch$1, useTheme } from '@chakra-ui/react';
2
2
  export { Box, Center, Circle, ColorModeScript, Flex, Grid, GridItem, HStack, Spacer, Square, Stack, Tab, TabList, TabPanel, TabPanels, VStack, cookieStorageManager, localStorageManager, useColorMode, useColorModeValue } from '@chakra-ui/react';
3
3
  import React__default, { createElement, forwardRef, useRef, useState, useEffect, Fragment, useContext } from 'react';
4
4
  import useNativeLazyLoading from '@charlietango/use-native-lazy-loading';
@@ -50,7 +50,6 @@ var SvgAccessibilityFull = function SvgAccessibilityFull(_ref) {
50
50
  viewBox: "0 0 18 18",
51
51
  fill: "none",
52
52
  xmlns: "http://www.w3.org/2000/svg",
53
- role: "img",
54
53
  "aria-labelledby": titleId
55
54
  }, props), title ? /*#__PURE__*/createElement("title", {
56
55
  id: titleId
@@ -85,7 +84,6 @@ var SvgAccessibilityPartial = function SvgAccessibilityPartial(_ref) {
85
84
  viewBox: "0 0 18 18",
86
85
  fill: "none",
87
86
  xmlns: "http://www.w3.org/2000/svg",
88
- role: "img",
89
87
  "aria-labelledby": titleId
90
88
  }, props), title ? /*#__PURE__*/createElement("title", {
91
89
  id: titleId
@@ -119,7 +117,6 @@ var SvgActionCheckCircle = function SvgActionCheckCircle(_ref) {
119
117
  return /*#__PURE__*/createElement("svg", _extends$3({
120
118
  viewBox: "0 0 24 24",
121
119
  xmlns: "http://www.w3.org/2000/svg",
122
- role: "img",
123
120
  "aria-labelledby": titleId
124
121
  }, props), title ? /*#__PURE__*/createElement("title", {
125
122
  id: titleId
@@ -142,7 +139,6 @@ var SvgActionCheckCircleFilled = function SvgActionCheckCircleFilled(_ref) {
142
139
  return /*#__PURE__*/createElement("svg", _extends$4({
143
140
  viewBox: "0 0 24 24",
144
141
  xmlns: "http://www.w3.org/2000/svg",
145
- role: "img",
146
142
  "aria-labelledby": titleId
147
143
  }, props), title ? /*#__PURE__*/createElement("title", {
148
144
  id: titleId
@@ -163,7 +159,6 @@ var SvgActionExit = function SvgActionExit(_ref) {
163
159
  return /*#__PURE__*/createElement("svg", _extends$5({
164
160
  viewBox: "0 0 24 24",
165
161
  xmlns: "http://www.w3.org/2000/svg",
166
- role: "img",
167
162
  "aria-labelledby": titleId
168
163
  }, props), title ? /*#__PURE__*/createElement("title", {
169
164
  id: titleId
@@ -186,7 +181,6 @@ var SvgActionHelpDefault = function SvgActionHelpDefault(_ref) {
186
181
  return /*#__PURE__*/createElement("svg", _extends$6({
187
182
  viewBox: "0 0 24 24",
188
183
  xmlns: "http://www.w3.org/2000/svg",
189
- role: "img",
190
184
  "aria-labelledby": titleId
191
185
  }, props), title ? /*#__PURE__*/createElement("title", {
192
186
  id: titleId
@@ -209,7 +203,6 @@ var SvgActionHelpOutline = function SvgActionHelpOutline(_ref) {
209
203
  return /*#__PURE__*/createElement("svg", _extends$7({
210
204
  viewBox: "0 0 24 24",
211
205
  xmlns: "http://www.w3.org/2000/svg",
212
- role: "img",
213
206
  "aria-labelledby": titleId
214
207
  }, props), title ? /*#__PURE__*/createElement("title", {
215
208
  id: titleId
@@ -232,7 +225,6 @@ var SvgActionLaunch = function SvgActionLaunch(_ref) {
232
225
  return /*#__PURE__*/createElement("svg", _extends$8({
233
226
  viewBox: "0 0 24 24",
234
227
  xmlns: "http://www.w3.org/2000/svg",
235
- role: "img",
236
228
  "aria-labelledby": titleId
237
229
  }, props), title ? /*#__PURE__*/createElement("title", {
238
230
  id: titleId
@@ -255,7 +247,6 @@ var SvgActionPower = function SvgActionPower(_ref) {
255
247
  return /*#__PURE__*/createElement("svg", _extends$9({
256
248
  viewBox: "0 0 24 24",
257
249
  xmlns: "http://www.w3.org/2000/svg",
258
- role: "img",
259
250
  "aria-labelledby": titleId
260
251
  }, props), title ? /*#__PURE__*/createElement("title", {
261
252
  id: titleId
@@ -278,7 +269,6 @@ var SvgActionRegistration = function SvgActionRegistration(_ref) {
278
269
  return /*#__PURE__*/createElement("svg", _extends$a({
279
270
  viewBox: "0 0 24 24",
280
271
  xmlns: "http://www.w3.org/2000/svg",
281
- role: "img",
282
272
  "aria-labelledby": titleId
283
273
  }, props), title ? /*#__PURE__*/createElement("title", {
284
274
  id: titleId
@@ -299,7 +289,6 @@ var SvgActionSettings = function SvgActionSettings(_ref) {
299
289
  return /*#__PURE__*/createElement("svg", _extends$b({
300
290
  viewBox: "0 0 24 24",
301
291
  xmlns: "http://www.w3.org/2000/svg",
302
- role: "img",
303
292
  "aria-labelledby": titleId
304
293
  }, props), title ? /*#__PURE__*/createElement("title", {
305
294
  id: titleId
@@ -322,7 +311,6 @@ var SvgAlertNotificationImportant = function SvgAlertNotificationImportant(_ref)
322
311
  return /*#__PURE__*/createElement("svg", _extends$c({
323
312
  viewBox: "0 0 24 24",
324
313
  xmlns: "http://www.w3.org/2000/svg",
325
- role: "img",
326
314
  "aria-labelledby": titleId
327
315
  }, props), title ? /*#__PURE__*/createElement("title", {
328
316
  id: titleId
@@ -345,7 +333,6 @@ var SvgAlertWarningFilled = function SvgAlertWarningFilled(_ref) {
345
333
  return /*#__PURE__*/createElement("svg", _extends$d({
346
334
  viewBox: "0 0 24 24",
347
335
  xmlns: "http://www.w3.org/2000/svg",
348
- role: "img",
349
336
  "aria-labelledby": titleId
350
337
  }, props), title ? /*#__PURE__*/createElement("title", {
351
338
  id: titleId
@@ -368,7 +355,6 @@ var SvgAlertWarningOutline = function SvgAlertWarningOutline(_ref) {
368
355
  return /*#__PURE__*/createElement("svg", _extends$e({
369
356
  viewBox: "0 0 24 24",
370
357
  xmlns: "http://www.w3.org/2000/svg",
371
- role: "img",
372
358
  "aria-labelledby": titleId
373
359
  }, props), title ? /*#__PURE__*/createElement("title", {
374
360
  id: titleId
@@ -391,7 +377,6 @@ var SvgArrow = function SvgArrow(_ref) {
391
377
  return /*#__PURE__*/createElement("svg", _extends$f({
392
378
  viewBox: "0 0 24 14",
393
379
  xmlns: "http://www.w3.org/2000/svg",
394
- role: "img",
395
380
  "aria-labelledby": titleId
396
381
  }, props), title ? /*#__PURE__*/createElement("title", {
397
382
  id: titleId
@@ -414,7 +399,6 @@ var SvgBuilding = function SvgBuilding(_ref) {
414
399
  return /*#__PURE__*/createElement("svg", _extends$g({
415
400
  viewBox: "0 0 26 26",
416
401
  xmlns: "http://www.w3.org/2000/svg",
417
- role: "img",
418
402
  "aria-labelledby": titleId
419
403
  }, props), title ? /*#__PURE__*/createElement("title", {
420
404
  id: titleId
@@ -437,7 +421,6 @@ var SvgCheck = function SvgCheck(_ref) {
437
421
  return /*#__PURE__*/createElement("svg", _extends$h({
438
422
  viewBox: "0 0 24 24",
439
423
  xmlns: "http://www.w3.org/2000/svg",
440
- role: "img",
441
424
  "aria-labelledby": titleId
442
425
  }, props), title ? /*#__PURE__*/createElement("title", {
443
426
  id: titleId
@@ -458,7 +441,6 @@ var SvgClock = function SvgClock(_ref) {
458
441
  return /*#__PURE__*/createElement("svg", _extends$i({
459
442
  viewBox: "0 0 24 24",
460
443
  xmlns: "http://www.w3.org/2000/svg",
461
- role: "img",
462
444
  "aria-labelledby": titleId
463
445
  }, props), title ? /*#__PURE__*/createElement("title", {
464
446
  id: titleId
@@ -481,7 +463,6 @@ var SvgClose = function SvgClose(_ref) {
481
463
  return /*#__PURE__*/createElement("svg", _extends$j({
482
464
  viewBox: "0 0 24 24",
483
465
  xmlns: "http://www.w3.org/2000/svg",
484
- role: "img",
485
466
  "aria-labelledby": titleId
486
467
  }, props), title ? /*#__PURE__*/createElement("title", {
487
468
  id: titleId
@@ -502,7 +483,6 @@ var SvgDecorativeEnvelope = function SvgDecorativeEnvelope(_ref) {
502
483
  return /*#__PURE__*/createElement("svg", _extends$k({
503
484
  viewBox: "0 0 68 68",
504
485
  xmlns: "http://www.w3.org/2000/svg",
505
- role: "img",
506
486
  "aria-labelledby": titleId
507
487
  }, props), title ? /*#__PURE__*/createElement("title", {
508
488
  id: titleId
@@ -525,7 +505,6 @@ var SvgDecorativeLibraryCard = function SvgDecorativeLibraryCard(_ref) {
525
505
  return /*#__PURE__*/createElement("svg", _extends$l({
526
506
  viewBox: "0 0 68 68",
527
507
  xmlns: "http://www.w3.org/2000/svg",
528
- role: "img",
529
508
  "aria-labelledby": titleId
530
509
  }, props), title ? /*#__PURE__*/createElement("title", {
531
510
  id: titleId
@@ -548,7 +527,6 @@ var SvgDecorativeShoppingBag = function SvgDecorativeShoppingBag(_ref) {
548
527
  return /*#__PURE__*/createElement("svg", _extends$m({
549
528
  viewBox: "0 0 68 68",
550
529
  xmlns: "http://www.w3.org/2000/svg",
551
- role: "img",
552
530
  "aria-labelledby": titleId
553
531
  }, props), title ? /*#__PURE__*/createElement("title", {
554
532
  id: titleId
@@ -569,7 +547,6 @@ var SvgDownload = function SvgDownload(_ref) {
569
547
  return /*#__PURE__*/createElement("svg", _extends$n({
570
548
  viewBox: "0 0 14 18",
571
549
  xmlns: "http://www.w3.org/2000/svg",
572
- role: "img",
573
550
  "aria-labelledby": titleId
574
551
  }, props), title ? /*#__PURE__*/createElement("title", {
575
552
  id: titleId
@@ -592,14 +569,13 @@ var SvgErrorFilled = function SvgErrorFilled(_ref) {
592
569
  return /*#__PURE__*/createElement("svg", _extends$o({
593
570
  viewBox: "0 0 24 24",
594
571
  xmlns: "http://www.w3.org/2000/svg",
595
- role: "img",
596
572
  "aria-labelledby": titleId
597
573
  }, props), title ? /*#__PURE__*/createElement("title", {
598
574
  id: titleId
599
575
  }, title) : null, _path$n || (_path$n = /*#__PURE__*/createElement("path", {
600
576
  fillRule: "evenodd",
601
577
  clipRule: "evenodd",
602
- d: "M12 0C5.376 0 0 5.376 0 12s5.376 12 12 12 12-5.376 12-12S18.624 0 12 0Zm1.2 13.2h-2.4V6h2.4v7.2ZM10.8 18h2.4v-2.4h-2.4V18Z"
578
+ 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"
603
579
  })));
604
580
  };
605
581
 
@@ -613,16 +589,15 @@ var SvgErrorOutline = function SvgErrorOutline(_ref) {
613
589
  titleId = _ref.titleId,
614
590
  props = _objectWithoutProperties$o(_ref, _excluded$o);
615
591
  return /*#__PURE__*/createElement("svg", _extends$p({
616
- viewBox: "0 0 24 25",
592
+ viewBox: "0 0 24 24",
617
593
  xmlns: "http://www.w3.org/2000/svg",
618
- role: "img",
619
594
  "aria-labelledby": titleId
620
595
  }, props), title ? /*#__PURE__*/createElement("title", {
621
596
  id: titleId
622
597
  }, title) : null, _path$o || (_path$o = /*#__PURE__*/createElement("path", {
623
598
  fillRule: "evenodd",
624
599
  clipRule: "evenodd",
625
- d: "M11.988.912C5.364.912 0 6.288 0 12.912s5.364 12 11.988 12c6.636 0 12.012-5.376 12.012-12s-5.376-12-12.012-12Zm1.212 13.2v-7.2h-2.4v7.2h2.4Zm0 4.8v-2.4h-2.4v2.4h2.4Zm-10.8-6c0 5.304 4.296 9.6 9.6 9.6 5.304 0 9.6-4.296 9.6-9.6 0-5.304-4.296-9.6-9.6-9.6a9.597 9.597 0 0 0-9.6 9.6Z"
600
+ 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"
626
601
  })));
627
602
  };
628
603
 
@@ -638,7 +613,6 @@ var SvgFileTypeAudio = function SvgFileTypeAudio(_ref) {
638
613
  return /*#__PURE__*/createElement("svg", _extends$q({
639
614
  viewBox: "0 0 24 24",
640
615
  xmlns: "http://www.w3.org/2000/svg",
641
- role: "img",
642
616
  "aria-labelledby": titleId
643
617
  }, props), title ? /*#__PURE__*/createElement("title", {
644
618
  id: titleId
@@ -667,7 +641,6 @@ var SvgFileTypeDoc = function SvgFileTypeDoc(_ref) {
667
641
  return /*#__PURE__*/createElement("svg", _extends$r({
668
642
  viewBox: "0 0 24 24",
669
643
  xmlns: "http://www.w3.org/2000/svg",
670
- role: "img",
671
644
  "aria-labelledby": titleId
672
645
  }, props), title ? /*#__PURE__*/createElement("title", {
673
646
  id: titleId
@@ -696,7 +669,6 @@ var SvgFileTypeGenericDoc = function SvgFileTypeGenericDoc(_ref) {
696
669
  return /*#__PURE__*/createElement("svg", _extends$s({
697
670
  viewBox: "0 0 24 24",
698
671
  xmlns: "http://www.w3.org/2000/svg",
699
- role: "img",
700
672
  "aria-labelledby": titleId
701
673
  }, props), title ? /*#__PURE__*/createElement("title", {
702
674
  id: titleId
@@ -723,7 +695,6 @@ var SvgFileTypeImage = function SvgFileTypeImage(_ref) {
723
695
  return /*#__PURE__*/createElement("svg", _extends$t({
724
696
  viewBox: "0 0 24 24",
725
697
  xmlns: "http://www.w3.org/2000/svg",
726
- role: "img",
727
698
  "aria-labelledby": titleId
728
699
  }, props), title ? /*#__PURE__*/createElement("title", {
729
700
  id: titleId
@@ -760,7 +731,6 @@ var SvgFileTypePdf = function SvgFileTypePdf(_ref) {
760
731
  return /*#__PURE__*/createElement("svg", _extends$u({
761
732
  viewBox: "0 0 24 24",
762
733
  xmlns: "http://www.w3.org/2000/svg",
763
- role: "img",
764
734
  "aria-labelledby": titleId
765
735
  }, props), title ? /*#__PURE__*/createElement("title", {
766
736
  id: titleId
@@ -789,7 +759,6 @@ var SvgFileTypeSpreadsheet = function SvgFileTypeSpreadsheet(_ref) {
789
759
  return /*#__PURE__*/createElement("svg", _extends$v({
790
760
  viewBox: "0 0 24 24",
791
761
  xmlns: "http://www.w3.org/2000/svg",
792
- role: "img",
793
762
  "aria-labelledby": titleId
794
763
  }, props), title ? /*#__PURE__*/createElement("title", {
795
764
  id: titleId
@@ -818,7 +787,6 @@ var SvgFileTypeVideo = function SvgFileTypeVideo(_ref) {
818
787
  return /*#__PURE__*/createElement("svg", _extends$w({
819
788
  viewBox: "0 0 24 24",
820
789
  xmlns: "http://www.w3.org/2000/svg",
821
- role: "img",
822
790
  "aria-labelledby": titleId
823
791
  }, props), title ? /*#__PURE__*/createElement("title", {
824
792
  id: titleId
@@ -845,7 +813,6 @@ var SvgHeadset = function SvgHeadset(_ref) {
845
813
  return /*#__PURE__*/createElement("svg", _extends$x({
846
814
  viewBox: "0 0 18 19",
847
815
  xmlns: "http://www.w3.org/2000/svg",
848
- role: "img",
849
816
  "aria-labelledby": titleId
850
817
  }, props), title ? /*#__PURE__*/createElement("title", {
851
818
  id: titleId
@@ -866,7 +833,6 @@ var SvgLegacyAccountFilled = function SvgLegacyAccountFilled(_ref) {
866
833
  return /*#__PURE__*/createElement("svg", _extends$y({
867
834
  viewBox: "0 0 32 33",
868
835
  xmlns: "http://www.w3.org/2000/svg",
869
- role: "img",
870
836
  "aria-labelledby": titleId
871
837
  }, props), title ? /*#__PURE__*/createElement("title", {
872
838
  id: titleId
@@ -887,7 +853,6 @@ var SvgLegacyAccountUnfilled = function SvgLegacyAccountUnfilled(_ref) {
887
853
  return /*#__PURE__*/createElement("svg", _extends$z({
888
854
  viewBox: "0 0 33 33",
889
855
  xmlns: "http://www.w3.org/2000/svg",
890
- role: "img",
891
856
  "aria-labelledby": titleId
892
857
  }, props), title ? /*#__PURE__*/createElement("title", {
893
858
  id: titleId
@@ -908,7 +873,6 @@ var SvgLegacySocialFacebook = function SvgLegacySocialFacebook(_ref) {
908
873
  return /*#__PURE__*/createElement("svg", _extends$A({
909
874
  viewBox: "0 0 32 32",
910
875
  xmlns: "http://www.w3.org/2000/svg",
911
- role: "img",
912
876
  "aria-labelledby": titleId
913
877
  }, props), title ? /*#__PURE__*/createElement("title", {
914
878
  id: titleId
@@ -929,7 +893,6 @@ var SvgLegacySocialInstagram = function SvgLegacySocialInstagram(_ref) {
929
893
  return /*#__PURE__*/createElement("svg", _extends$B({
930
894
  viewBox: "0 0 32 32",
931
895
  xmlns: "http://www.w3.org/2000/svg",
932
- role: "img",
933
896
  "aria-labelledby": titleId
934
897
  }, props), title ? /*#__PURE__*/createElement("title", {
935
898
  id: titleId
@@ -950,7 +913,6 @@ var SvgLegacySocialTwitter = function SvgLegacySocialTwitter(_ref) {
950
913
  return /*#__PURE__*/createElement("svg", _extends$C({
951
914
  viewBox: "0 0 32 32",
952
915
  xmlns: "http://www.w3.org/2000/svg",
953
- role: "img",
954
916
  "aria-labelledby": titleId
955
917
  }, props), title ? /*#__PURE__*/createElement("title", {
956
918
  id: titleId
@@ -971,7 +933,6 @@ var SvgLegacySocialYoutube = function SvgLegacySocialYoutube(_ref) {
971
933
  return /*#__PURE__*/createElement("svg", _extends$D({
972
934
  viewBox: "0 0 32 32",
973
935
  xmlns: "http://www.w3.org/2000/svg",
974
- role: "img",
975
936
  "aria-labelledby": titleId
976
937
  }, props), title ? /*#__PURE__*/createElement("title", {
977
938
  id: titleId
@@ -992,7 +953,6 @@ var SvgLocator = function SvgLocator(_ref) {
992
953
  return /*#__PURE__*/createElement("svg", _extends$E({
993
954
  viewBox: "0 0 32 32",
994
955
  xmlns: "http://www.w3.org/2000/svg",
995
- role: "img",
996
956
  "aria-labelledby": titleId
997
957
  }, props), title ? /*#__PURE__*/createElement("title", {
998
958
  id: titleId
@@ -1017,7 +977,6 @@ var SvgMinus = function SvgMinus(_ref) {
1017
977
  width: 24,
1018
978
  height: 2,
1019
979
  xmlns: "http://www.w3.org/2000/svg",
1020
- role: "img",
1021
980
  "aria-labelledby": titleId
1022
981
  }, props), title ? /*#__PURE__*/createElement("title", {
1023
982
  id: titleId
@@ -1040,7 +999,6 @@ var SvgPlus = function SvgPlus(_ref) {
1040
999
  return /*#__PURE__*/createElement("svg", _extends$G({
1041
1000
  viewBox: "0 0 23 23",
1042
1001
  xmlns: "http://www.w3.org/2000/svg",
1043
- role: "img",
1044
1002
  "aria-labelledby": titleId
1045
1003
  }, props), title ? /*#__PURE__*/createElement("title", {
1046
1004
  id: titleId
@@ -1071,7 +1029,6 @@ var SvgSearch = function SvgSearch(_ref) {
1071
1029
  return /*#__PURE__*/createElement("svg", _extends$H({
1072
1030
  viewBox: "0 0 24 24",
1073
1031
  xmlns: "http://www.w3.org/2000/svg",
1074
- role: "img",
1075
1032
  "aria-labelledby": titleId
1076
1033
  }, props), title ? /*#__PURE__*/createElement("title", {
1077
1034
  id: titleId
@@ -1094,7 +1051,6 @@ var SvgSocialFacebook = function SvgSocialFacebook(_ref) {
1094
1051
  return /*#__PURE__*/createElement("svg", _extends$I({
1095
1052
  viewBox: "0 0 36 36",
1096
1053
  xmlns: "http://www.w3.org/2000/svg",
1097
- role: "img",
1098
1054
  "aria-labelledby": titleId
1099
1055
  }, props), title ? /*#__PURE__*/createElement("title", {
1100
1056
  id: titleId
@@ -1117,7 +1073,6 @@ var SvgSocialInstagram = function SvgSocialInstagram(_ref) {
1117
1073
  return /*#__PURE__*/createElement("svg", _extends$J({
1118
1074
  viewBox: "0 0 37 37",
1119
1075
  xmlns: "http://www.w3.org/2000/svg",
1120
- role: "img",
1121
1076
  "aria-labelledby": titleId
1122
1077
  }, props), title ? /*#__PURE__*/createElement("title", {
1123
1078
  id: titleId
@@ -1144,7 +1099,6 @@ var SvgSocialTumblr = function SvgSocialTumblr(_ref) {
1144
1099
  return /*#__PURE__*/createElement("svg", _extends$K({
1145
1100
  viewBox: "0 0 36 36",
1146
1101
  xmlns: "http://www.w3.org/2000/svg",
1147
- role: "img",
1148
1102
  "aria-labelledby": titleId
1149
1103
  }, props), title ? /*#__PURE__*/createElement("title", {
1150
1104
  id: titleId
@@ -1169,7 +1123,6 @@ var SvgSocialTwitter = function SvgSocialTwitter(_ref) {
1169
1123
  return /*#__PURE__*/createElement("svg", _extends$L({
1170
1124
  viewBox: "0 0 36 36",
1171
1125
  xmlns: "http://www.w3.org/2000/svg",
1172
- role: "img",
1173
1126
  "aria-labelledby": titleId
1174
1127
  }, props), title ? /*#__PURE__*/createElement("title", {
1175
1128
  id: titleId
@@ -1192,7 +1145,6 @@ var SvgSocialYoutube = function SvgSocialYoutube(_ref) {
1192
1145
  return /*#__PURE__*/createElement("svg", _extends$M({
1193
1146
  viewBox: "0 0 36 36",
1194
1147
  xmlns: "http://www.w3.org/2000/svg",
1195
- role: "img",
1196
1148
  "aria-labelledby": titleId
1197
1149
  }, props), title ? /*#__PURE__*/createElement("title", {
1198
1150
  id: titleId
@@ -1217,7 +1169,6 @@ var SvgSpeakerNotes = function SvgSpeakerNotes(_ref) {
1217
1169
  return /*#__PURE__*/createElement("svg", _extends$N({
1218
1170
  viewBox: "0 0 24 24",
1219
1171
  xmlns: "http://www.w3.org/2000/svg",
1220
- role: "img",
1221
1172
  "aria-labelledby": titleId
1222
1173
  }, props), title ? /*#__PURE__*/createElement("title", {
1223
1174
  id: titleId
@@ -1241,7 +1192,6 @@ var SvgUtilityAccountFilled = function SvgUtilityAccountFilled(_ref) {
1241
1192
  viewBox: "0 0 24 24",
1242
1193
  fill: "none",
1243
1194
  xmlns: "http://www.w3.org/2000/svg",
1244
- role: "img",
1245
1195
  "aria-labelledby": titleId
1246
1196
  }, props), title ? /*#__PURE__*/createElement("title", {
1247
1197
  id: titleId
@@ -1267,7 +1217,6 @@ var SvgUtilityAccountUnfilled = function SvgUtilityAccountUnfilled(_ref) {
1267
1217
  viewBox: "0 0 24 24",
1268
1218
  fill: "none",
1269
1219
  xmlns: "http://www.w3.org/2000/svg",
1270
- role: "img",
1271
1220
  "aria-labelledby": titleId
1272
1221
  }, props), title ? /*#__PURE__*/createElement("title", {
1273
1222
  id: titleId
@@ -1298,7 +1247,6 @@ var SvgUtilityHamburger = function SvgUtilityHamburger(_ref) {
1298
1247
  return /*#__PURE__*/createElement("svg", _extends$Q({
1299
1248
  viewBox: "0 0 24 24",
1300
1249
  xmlns: "http://www.w3.org/2000/svg",
1301
- role: "img",
1302
1250
  "aria-labelledby": titleId
1303
1251
  }, props), title ? /*#__PURE__*/createElement("title", {
1304
1252
  id: titleId
@@ -1585,9 +1533,6 @@ var Button = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
1585
1533
  if (!id) {
1586
1534
  console.warn("NYPL Reservoir Button: This component's required `id` prop was not passed.");
1587
1535
  }
1588
- if (buttonType === "link") {
1589
- console.warn("NYPL Reservoir Button: The 'link' value for the 'buttonType' prop has been deprecated.");
1590
- }
1591
1536
  React__default.Children.map(children, function (child) {
1592
1537
  childCount++;
1593
1538
  if (child !== undefined && child !== null) {
@@ -2317,9 +2262,9 @@ var ButtonGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
2317
2262
  buttonWidth: finalButtonWidth
2318
2263
  });
2319
2264
  React__default.Children.map(children, function (child, key) {
2320
- if (child.type !== Button) {
2265
+ if ((child == null ? void 0 : child.type) !== Button) {
2321
2266
  // Special case for Storybook MDX documentation.
2322
- if (child.props.mdxType && child.props.mdxType === "Button") ; else {
2267
+ if (child != null && child.props.mdxType && (child == null ? void 0 : child.props.mdxType) === "Button") ; else {
2323
2268
  console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
2324
2269
  return;
2325
2270
  }
@@ -2327,7 +2272,7 @@ var ButtonGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
2327
2272
  var disabledProps = isDisabled ? {
2328
2273
  isDisabled: isDisabled
2329
2274
  } : {};
2330
- newChildren.push(React__default.cloneElement(child, _extends({
2275
+ child && newChildren.push(React__default.cloneElement(child, _extends({
2331
2276
  key: key
2332
2277
  }, disabledProps)));
2333
2278
  });
@@ -2444,8 +2389,7 @@ var Image = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
2444
2389
  size: size
2445
2390
  }, caption || credit ? {} : rest), imageComponent) : imageComponent;
2446
2391
  return React__default.createElement(Box, {
2447
- ref: finalRefs,
2448
- "data-testid": "test"
2392
+ ref: finalRefs
2449
2393
  }, caption || credit ? React__default.createElement(Box, {
2450
2394
  as: "figure",
2451
2395
  __css: _extends({}, styles.figure, additionalFigureStyles)
@@ -3074,36 +3018,6 @@ var CheckboxGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
3074
3018
  }));
3075
3019
  }));
3076
3020
 
3077
- var _excluded$15 = ["children", "columns", "className", "gap", "id"];
3078
- var SimpleGrid = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
3079
- var children = props.children,
3080
- columns = props.columns,
3081
- className = props.className,
3082
- _props$gap = props.gap,
3083
- gap = _props$gap === void 0 ? "grid.l" : _props$gap,
3084
- id = props.id,
3085
- rest = _objectWithoutPropertiesLoose(props, _excluded$15);
3086
- var responsiveCols = columns ? {
3087
- base: 1,
3088
- md: columns
3089
- } : {
3090
- base: 1,
3091
- md: 2,
3092
- lg: 3
3093
- };
3094
- return React__default.createElement(SimpleGrid$1, Object.assign({
3095
- className: className,
3096
- columns: responsiveCols,
3097
- gap: gap,
3098
- id: id,
3099
- ref: ref
3100
- }, rest), children);
3101
- }), {
3102
- shouldForwardProp: function shouldForwardProp() {
3103
- return true;
3104
- }
3105
- });
3106
-
3107
3021
  /**
3108
3022
  * React hook used to get the window size on device resizing.
3109
3023
  * Based on https://usehooks-typescript.com/react-hook/use-window-size
@@ -3133,7 +3047,7 @@ function useWindowSize() {
3133
3047
  return windowSize;
3134
3048
  }
3135
3049
 
3136
- var _excluded$16 = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
3050
+ var _excluded$15 = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
3137
3051
  /**
3138
3052
  * Basic `Table` component used to organize and display tabular data in
3139
3053
  * rows and columns.
@@ -3151,7 +3065,7 @@ var Table = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
3151
3065
  titleText = props.titleText,
3152
3066
  _props$useRowHeaders = props.useRowHeaders,
3153
3067
  useRowHeaders = _props$useRowHeaders === void 0 ? false : _props$useRowHeaders,
3154
- rest = _objectWithoutPropertiesLoose(props, _excluded$16);
3068
+ rest = _objectWithoutPropertiesLoose(props, _excluded$15);
3155
3069
  var customColors = {};
3156
3070
  columnHeadersBackgroundColor && (customColors["backgroundColor"] = columnHeadersBackgroundColor);
3157
3071
  columnHeadersTextColor && (customColors["color"] = columnHeadersTextColor);
@@ -3218,113 +3132,37 @@ var Table = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
3218
3132
  }, rest), tableCaption, columnHeadersElems, tableBodyElems());
3219
3133
  }));
3220
3134
 
3221
- /**
3222
- * A custom hook that returns the Chakra-based NYPL theme object. This must be
3223
- * used inside a component that is wrapped in the `DSProvider` component, so
3224
- * that the theme object can be available to use.
3225
- */
3226
- function useNYPLTheme() {
3227
- var theme = useTheme();
3228
- if (!theme || Object.keys(theme).length === 0) {
3229
- console.warn("NYPL Reservoir useNYPLTheme: hook must be used inside of `<DSProvider />`.");
3230
- return {};
3231
- }
3232
- // Chakra provides a lot of their own styles but
3233
- // only NYPL styles should be exported.
3234
- return {
3235
- // base, sm, md, lg, xl, 2xl
3236
- breakpoints: theme.breakpoints,
3237
- colors: {
3238
- // primary, secondary
3239
- brand: theme.colors.brand,
3240
- // dark mode colors:
3241
- // ui.disabled, ui.error, ui.focus, ui.link,
3242
- // ui.status, ui.success, ui.test, ui.warning,
3243
- // ui.bg, ui.border, ui.typography
3244
- dark: theme.colors.dark,
3245
- // blogs, books-and-more, education, locations,
3246
- // research, research-library, whats-on
3247
- section: theme.colors.section,
3248
- transparent: theme.colors.transparent,
3249
- // black, white, gray, disabled, error, focus, link,
3250
- // status, success, test, warning, bg, border, typography
3251
- ui: theme.colors.ui
3252
- },
3253
- fontSizes: {
3254
- "-3": theme.fontSizes["-3"],
3255
- "-2": theme.fontSizes["-2"],
3256
- "-1": theme.fontSizes["-1"],
3257
- "0": theme.fontSizes["0"],
3258
- "1": theme.fontSizes["1"],
3259
- "2": theme.fontSizes["2"],
3260
- "3": theme.fontSizes["3"],
3261
- "4": theme.fontSizes["4"],
3262
- // default
3263
- breadcrumbs: theme.fontSizes.breadcrumbs,
3264
- // default
3265
- button: theme.fontSizes.button,
3266
- // primary, secondary, tertiary, callout
3267
- heading: theme.fontSizes.heading,
3268
- // default
3269
- helper: theme.fontSizes.helper,
3270
- // default, secondary
3271
- label: theme.fontSizes.label,
3272
- // default, caption, tag, mini
3273
- text: theme.fontSizes.text
3274
- },
3275
- fontWeights: {
3276
- light: theme.fontWeights.light,
3277
- regular: theme.fontWeights.regular,
3278
- medium: theme.fontWeights.medium,
3279
- bold: theme.fontWeights.bold,
3280
- // default, lastChild
3281
- breadcrumbs: theme.fontWeights.breadcrumbs,
3282
- // default
3283
- button: theme.fontWeights.button,
3284
- // primary, secondary, tertiary, callout
3285
- heading: theme.fontWeights.heading,
3286
- // default
3287
- helper: theme.fontWeights.helper,
3288
- // default
3289
- label: theme.fontWeights.label,
3290
- // default, caption, tag, mini
3291
- text: theme.fontWeights.text
3292
- },
3293
- fonts: {
3294
- body: theme.fonts.body,
3295
- heading: theme.fonts.heading
3296
- },
3297
- radii: theme.radii,
3298
- space: {
3299
- xxs: theme.space.xxs,
3300
- xs: theme.space.xs,
3301
- s: theme.space.s,
3302
- m: theme.space.m,
3303
- l: theme.space.l,
3304
- xl: theme.space.xl,
3305
- xxl: theme.space.xxl,
3306
- xxxl: theme.space.xxxl
3135
+ var SmallColorSwatch = function SmallColorSwatch(props) {
3136
+ var backgroundColor = props.backgroundColor,
3137
+ border = props.border,
3138
+ darkBorder = props.darkBorder;
3139
+ return createElement("span", {
3140
+ style: {
3141
+ backgroundColor: backgroundColor,
3142
+ border: !border && !darkBorder ? null : darkBorder ? "1px solid #191919" : "1px solid #E9E9E9",
3143
+ display: "inline-block",
3144
+ height: "1rem",
3145
+ marginRight: ".5rem",
3146
+ verticalAlign: "middle",
3147
+ width: "1rem"
3307
3148
  }
3308
- };
3309
- }
3310
-
3149
+ });
3150
+ };
3311
3151
  var DataTable = function DataTable(props) {
3312
3152
  var dataBgPageColor = props.dataBgPageColor,
3313
3153
  dataBgDefaultColor = props.dataBgDefaultColor,
3154
+ dataDarkBgPageColor = props.dataDarkBgPageColor,
3155
+ dataDarkBgDefaultColor = props.dataDarkBgDefaultColor,
3314
3156
  _props$dataBlackColor = props.dataBlackColor,
3315
3157
  dataBlackColor = _props$dataBlackColor === void 0 ? ["--", "--", "--"] : _props$dataBlackColor,
3316
- dataHeadingColor = props.dataHeadingColor,
3317
- dataBodyColor = props.dataBodyColor,
3158
+ dataDarkHeadingColor = props.dataDarkHeadingColor,
3159
+ dataDarkBodyColor = props.dataDarkBodyColor,
3318
3160
  _props$dataWhiteColor = props.dataWhiteColor,
3319
3161
  dataWhiteColor = _props$dataWhiteColor === void 0 ? ["--", "--", "--"] : _props$dataWhiteColor,
3162
+ dataBrandPrimaryColor = props.dataBrandPrimaryColor,
3163
+ dataBrandSecondaryColor = props.dataBrandSecondaryColor,
3320
3164
  _props$textColor = props.textColor,
3321
3165
  textColor = _props$textColor === void 0 ? "ui.white" : _props$textColor;
3322
- var _useNYPLTheme = useNYPLTheme(),
3323
- ui = _useNYPLTheme.colors.ui;
3324
- var grayxxxxDark = ui.gray["xxxx-dark"];
3325
- var grayxxxDark = ui.gray["xxx-dark"];
3326
- var grayLightCool = ui.gray["light-cool"];
3327
- var grayMedium = ui.gray.medium;
3328
3166
  var SuccessIcon = function SuccessIcon() {
3329
3167
  return createElement(Icon, {
3330
3168
  color: textColor,
@@ -3349,29 +3187,41 @@ var DataTable = function DataTable(props) {
3349
3187
  var whiteLargeTextSuccess = successfulContrast(dataWhiteColor, "large");
3350
3188
  var blackSmallTextSuccess = successfulContrast(dataBlackColor);
3351
3189
  var blackLargeTextSuccess = successfulContrast(dataBlackColor, "large");
3190
+ var brandPrimarySmallTextSuccess = dataBrandPrimaryColor && successfulContrast(dataBrandPrimaryColor);
3191
+ var brandPrimaryLargeTextSuccess = dataBrandPrimaryColor && successfulContrast(dataBrandPrimaryColor, "large");
3192
+ var brandSecondarySmallTextSuccess = dataBrandSecondaryColor && successfulContrast(dataBrandSecondaryColor);
3193
+ var brandSecondaryLargeTextSuccess = dataBrandSecondaryColor && successfulContrast(dataBrandSecondaryColor, "large");
3352
3194
  // The dark theme colors might have the following color contrast information.
3353
3195
  var bgPageSmallTextSuccess = dataBgPageColor && successfulContrast(dataBgPageColor);
3354
3196
  var bgPageLargeTextSuccess = dataBgPageColor && successfulContrast(dataBgPageColor, "large");
3355
3197
  var bgDefaultSmallTextSuccess = dataBgDefaultColor && successfulContrast(dataBgDefaultColor);
3356
3198
  var bgDefaultLargeTextSuccess = dataBgDefaultColor && successfulContrast(dataBgDefaultColor, "large");
3357
- var headingSmallTextSuccess = dataHeadingColor && successfulContrast(dataHeadingColor);
3358
- var headingLargeTextSuccess = dataHeadingColor && successfulContrast(dataHeadingColor, "large");
3359
- var textSmallTextSuccess = dataBodyColor && successfulContrast(dataBodyColor);
3360
- var textLargeTextSuccess = dataBodyColor && successfulContrast(dataBodyColor, "large");
3199
+ var darkBgPageSmallTextSuccess = dataDarkBgPageColor && successfulContrast(dataDarkBgPageColor);
3200
+ var darkBgPageLargeTextSuccess = dataDarkBgPageColor && successfulContrast(dataDarkBgPageColor, "large");
3201
+ var darkBgDefaultSmallTextSuccess = dataDarkBgDefaultColor && successfulContrast(dataDarkBgDefaultColor);
3202
+ var darkBgDefaultLargeTextSuccess = dataDarkBgDefaultColor && successfulContrast(dataDarkBgDefaultColor, "large");
3203
+ var darkHeadingSmallTextSuccess = dataDarkHeadingColor && successfulContrast(dataDarkHeadingColor);
3204
+ var darkHeadingLargeTextSuccess = dataDarkHeadingColor && successfulContrast(dataDarkHeadingColor, "large");
3205
+ var textSmallTextSuccess = dataDarkBodyColor && successfulContrast(dataDarkBodyColor);
3206
+ var textLargeTextSuccess = dataDarkBodyColor && successfulContrast(dataDarkBodyColor, "large");
3361
3207
  // All ColorCards have these two rows.
3362
3208
  var tableData = [[createElement("span", {
3363
3209
  key: "colorUiWhite",
3364
3210
  style: {
3365
- color: "white",
3366
3211
  padding: 0
3367
3212
  }
3368
- }, "ui.white"), dataWhiteColor[0] + ":1", createElement(Fragment, null, dataWhiteColor[1], whiteSmallTextSuccess), createElement(Fragment, null, dataWhiteColor[2], whiteLargeTextSuccess)], [createElement("span", {
3213
+ }, createElement(SmallColorSwatch, {
3214
+ backgroundColor: "white",
3215
+ border: true
3216
+ }), "ui.white"), dataWhiteColor[0] + ":1", createElement(Fragment, null, dataWhiteColor[1], whiteSmallTextSuccess), createElement(Fragment, null, dataWhiteColor[2], whiteLargeTextSuccess)], [createElement("span", {
3369
3217
  key: "colorUiBlack",
3370
3218
  style: {
3371
- color: "black",
3372
3219
  padding: 0
3373
3220
  }
3374
- }, "ui.black"), dataBlackColor[0] + ":1", createElement(Fragment, null, dataBlackColor[1], blackSmallTextSuccess), createElement(Fragment, null, dataBlackColor[2], blackLargeTextSuccess)]];
3221
+ }, createElement(SmallColorSwatch, {
3222
+ backgroundColor: "black",
3223
+ darkBorder: true
3224
+ }), "ui.black"), dataBlackColor[0] + ":1", createElement(Fragment, null, dataBlackColor[1], blackSmallTextSuccess), createElement(Fragment, null, dataBlackColor[2], blackLargeTextSuccess)]];
3375
3225
  var cellStyles = {
3376
3226
  borderColor: textColor === "ui.white" ? "white !important" : "black !important",
3377
3227
  fontWeight: "medium",
@@ -3380,56 +3230,109 @@ var DataTable = function DataTable(props) {
3380
3230
  var tableStyles = {
3381
3231
  tbody: {
3382
3232
  td: _extends({
3383
- fontSize: "text.caption"
3233
+ fontSize: "text.tag"
3384
3234
  }, cellStyles),
3385
3235
  th: _extends({
3386
- fontSize: "text.caption",
3236
+ fontSize: "text.tag",
3387
3237
  textTransform: "none"
3388
- }, cellStyles)
3238
+ }, cellStyles, {
3239
+ _first: {
3240
+ span: {
3241
+ color: textColor
3242
+ }
3243
+ }
3244
+ })
3389
3245
  },
3390
3246
  thead: {
3391
3247
  th: _extends({
3392
3248
  color: textColor,
3393
- fontSize: "text.tag"
3249
+ fontSize: "text.tag",
3250
+ textTransform: "uppercase"
3394
3251
  }, cellStyles)
3395
3252
  }
3396
3253
  };
3397
- // For dark mode `ColorCard`s, there are four extra rows.
3254
+ // The Brand colors are needed for some `ColorCard`s.
3255
+ if (dataBrandPrimaryColor && dataBrandPrimaryColor.length > 0) {
3256
+ tableData.push([createElement("span", {
3257
+ key: "colorBrandPrimaryPage",
3258
+ style: {
3259
+ padding: 0
3260
+ }
3261
+ }, createElement(SmallColorSwatch, {
3262
+ backgroundColor: "var(--nypl-colors-brand-primary)"
3263
+ }), "brand.primary"), dataBrandPrimaryColor[0] + ":1", createElement(Fragment, null, dataBrandPrimaryColor[1], brandPrimarySmallTextSuccess), createElement(Fragment, null, dataBrandPrimaryColor[2], brandPrimaryLargeTextSuccess)]);
3264
+ }
3265
+ if (dataBrandSecondaryColor && dataBrandSecondaryColor.length > 0) {
3266
+ tableData.push([createElement("span", {
3267
+ key: "colorBrandSecondaryPage",
3268
+ style: {
3269
+ padding: 0
3270
+ }
3271
+ }, createElement(SmallColorSwatch, {
3272
+ backgroundColor: "var(--nypl-colors-brand-secondary)"
3273
+ }), "brand.secondary"), dataBrandSecondaryColor[0] + ":1", createElement(Fragment, null, dataBrandSecondaryColor[1], brandSecondarySmallTextSuccess), createElement(Fragment, null, dataBrandSecondaryColor[2], brandSecondaryLargeTextSuccess)]);
3274
+ }
3398
3275
  if (dataBgPageColor && dataBgPageColor.length > 0) {
3399
3276
  tableData.push([createElement("span", {
3400
3277
  key: "colorBgPage",
3401
3278
  style: {
3402
- color: grayxxxxDark,
3403
3279
  padding: 0
3404
3280
  }
3405
- }, "bg page"), dataBgPageColor[0] + ":1", createElement(Fragment, null, dataBgPageColor[1], bgPageSmallTextSuccess), createElement(Fragment, null, dataBgPageColor[2], bgPageLargeTextSuccess)]);
3281
+ }, createElement(SmallColorSwatch, {
3282
+ backgroundColor: "var(--nypl-colors-ui-bg-page)",
3283
+ border: true
3284
+ }), "ui.bg.page"), dataBgPageColor[0] + ":1", createElement(Fragment, null, dataBgPageColor[1], bgPageSmallTextSuccess), createElement(Fragment, null, dataBgPageColor[2], bgPageLargeTextSuccess)]);
3406
3285
  }
3407
3286
  if (dataBgDefaultColor && dataBgDefaultColor.length > 0) {
3408
3287
  tableData.push([createElement("span", {
3409
3288
  key: "colorBgDefault",
3410
3289
  style: {
3411
- color: grayxxxDark,
3412
3290
  padding: 0
3413
3291
  }
3414
- }, "bg default"), dataBgDefaultColor[0] + ":1", createElement(Fragment, null, dataBgDefaultColor[1], bgDefaultSmallTextSuccess), createElement(Fragment, null, dataBgDefaultColor[2], bgDefaultLargeTextSuccess)]);
3292
+ }, createElement(SmallColorSwatch, {
3293
+ backgroundColor: "var(--nypl-colors-ui-bg-default)"
3294
+ }), "ui.bg.default"), dataBgDefaultColor[0] + ":1", createElement(Fragment, null, dataBgDefaultColor[1], bgDefaultSmallTextSuccess), createElement(Fragment, null, dataBgDefaultColor[2], bgDefaultLargeTextSuccess)]);
3415
3295
  }
3416
- if (dataHeadingColor && dataHeadingColor.length > 0) {
3296
+ // For dark mode `ColorCard`s, there are four extra rows.
3297
+ if (dataDarkBgPageColor && dataDarkBgPageColor.length > 0) {
3417
3298
  tableData.push([createElement("span", {
3418
- key: "colorHeading",
3299
+ key: "colorDarkBgPage",
3419
3300
  style: {
3420
- color: grayLightCool,
3421
3301
  padding: 0
3422
3302
  }
3423
- }, "heading"), dataHeadingColor[0] + ":1", createElement(Fragment, null, dataHeadingColor[1], headingSmallTextSuccess), createElement(Fragment, null, dataHeadingColor[2], headingLargeTextSuccess)]);
3303
+ }, createElement(SmallColorSwatch, {
3304
+ backgroundColor: "var(--nypl-colors-dark-ui-bg-page)"
3305
+ }), "dark.ui.bg.page"), dataDarkBgPageColor[0] + ":1", createElement(Fragment, null, dataDarkBgPageColor[1], darkBgPageSmallTextSuccess), createElement(Fragment, null, dataDarkBgPageColor[2], darkBgPageLargeTextSuccess)]);
3424
3306
  }
3425
- if (dataBodyColor && dataBodyColor.length > 0) {
3307
+ if (dataDarkBgDefaultColor && dataDarkBgDefaultColor.length > 0) {
3426
3308
  tableData.push([createElement("span", {
3427
- key: "colorText",
3309
+ key: "colorDarkBgDefault",
3428
3310
  style: {
3429
- color: grayMedium,
3430
3311
  padding: 0
3431
3312
  }
3432
- }, "body"), dataBodyColor[0] + ":1", createElement(Fragment, null, dataBodyColor[1], textSmallTextSuccess), createElement(Fragment, null, dataBodyColor[2], textLargeTextSuccess)]);
3313
+ }, createElement(SmallColorSwatch, {
3314
+ backgroundColor: "var(--nypl-colors-dark-ui-bg-default)"
3315
+ }), "dark.ui.bg.default"), dataDarkBgDefaultColor[0] + ":1", createElement(Fragment, null, dataDarkBgDefaultColor[1], darkBgDefaultSmallTextSuccess), createElement(Fragment, null, dataDarkBgDefaultColor[2], darkBgDefaultLargeTextSuccess)]);
3316
+ }
3317
+ if (dataDarkHeadingColor && dataDarkHeadingColor.length > 0) {
3318
+ tableData.push([createElement("span", {
3319
+ key: "colorDarkHeading",
3320
+ style: {
3321
+ padding: 0
3322
+ }
3323
+ }, createElement(SmallColorSwatch, {
3324
+ backgroundColor: "var(--nypl-colors-ui-typography-heading)"
3325
+ }), "ui.typography.heading"), dataDarkHeadingColor[0] + ":1", createElement(Fragment, null, dataDarkHeadingColor[1], darkHeadingSmallTextSuccess), createElement(Fragment, null, dataDarkHeadingColor[2], darkHeadingLargeTextSuccess)]);
3326
+ }
3327
+ if (dataDarkBodyColor && dataDarkBodyColor.length > 0) {
3328
+ tableData.push([createElement("span", {
3329
+ key: "colorDarkText",
3330
+ style: {
3331
+ padding: 0
3332
+ }
3333
+ }, createElement(SmallColorSwatch, {
3334
+ backgroundColor: "var(--nypl-colors-ui-typography-body)"
3335
+ }), "ui.typography.body"), dataDarkBodyColor[0] + ":1", createElement(Fragment, null, dataDarkBodyColor[1], textSmallTextSuccess), createElement(Fragment, null, dataDarkBodyColor[2], textLargeTextSuccess)]);
3433
3336
  }
3434
3337
  return createElement(Table, {
3435
3338
  columnHeaders: columnHeaders,
@@ -3443,19 +3346,23 @@ var ColorCard = function ColorCard(props) {
3443
3346
  var backgroundColor = props.backgroundColor,
3444
3347
  dataBgPageColor = props.dataBgPageColor,
3445
3348
  dataBgDefaultColor = props.dataBgDefaultColor,
3349
+ dataDarkBgPageColor = props.dataDarkBgPageColor,
3350
+ dataDarkBgDefaultColor = props.dataDarkBgDefaultColor,
3446
3351
  _props$colorName = props.colorName,
3447
3352
  colorName = _props$colorName === void 0 ? "" : _props$colorName,
3448
3353
  colorSource = props.colorSource,
3449
3354
  _props$dataBlackColor2 = props.dataBlackColor,
3450
3355
  dataBlackColor = _props$dataBlackColor2 === void 0 ? ["--", "--", "--"] : _props$dataBlackColor2,
3451
- dataHeadingColor = props.dataHeadingColor,
3452
- dataBodyColor = props.dataBodyColor,
3356
+ dataDarkHeadingColor = props.dataDarkHeadingColor,
3357
+ dataDarkBodyColor = props.dataDarkBodyColor,
3453
3358
  _props$dataWhiteColor2 = props.dataWhiteColor,
3454
3359
  dataWhiteColor = _props$dataWhiteColor2 === void 0 ? ["--", "--", "--"] : _props$dataWhiteColor2,
3360
+ dataBrandPrimaryColor = props.dataBrandPrimaryColor,
3361
+ dataBrandSecondaryColor = props.dataBrandSecondaryColor,
3455
3362
  _props$textColor2 = props.textColor,
3456
3363
  textColor = _props$textColor2 === void 0 ? "ui.white" : _props$textColor2;
3457
3364
  var cssVarName = "--nypl-colors-" + colorName.replace(/\./g, "-");
3458
- var border = backgroundColor === "ui.white" ? "1px solid var(--nypl-colors-ui-gray-light-cool)" : undefined;
3365
+ 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;
3459
3366
  return createElement(Box, {
3460
3367
  bg: backgroundColor,
3461
3368
  color: textColor,
@@ -3463,9 +3370,11 @@ var ColorCard = function ColorCard(props) {
3463
3370
  paddingBottom: "m",
3464
3371
  paddingTop: "s",
3465
3372
  border: border
3466
- }, createElement(SimpleGrid, {
3467
- columns: 2
3468
- }, createElement(Box, null, createElement(Heading, {
3373
+ }, createElement(HStack, {
3374
+ alignItems: "top"
3375
+ }, createElement(Box, {
3376
+ width: "80%"
3377
+ }, createElement(Heading, {
3469
3378
  noSpace: true,
3470
3379
  size: "tertiary"
3471
3380
  }, backgroundColor), createElement(Text, {
@@ -3479,14 +3388,48 @@ var ColorCard = function ColorCard(props) {
3479
3388
  }, "Source: ", colorSource)), createElement(DataTable, {
3480
3389
  dataBgPageColor: dataBgPageColor,
3481
3390
  dataBgDefaultColor: dataBgDefaultColor,
3391
+ dataDarkBgPageColor: dataDarkBgPageColor,
3392
+ dataDarkBgDefaultColor: dataDarkBgDefaultColor,
3482
3393
  dataBlackColor: dataBlackColor,
3483
- dataHeadingColor: dataHeadingColor,
3484
- dataBodyColor: dataBodyColor,
3394
+ dataDarkHeadingColor: dataDarkHeadingColor,
3395
+ dataDarkBodyColor: dataDarkBodyColor,
3485
3396
  dataWhiteColor: dataWhiteColor,
3397
+ dataBrandPrimaryColor: dataBrandPrimaryColor,
3398
+ dataBrandSecondaryColor: dataBrandSecondaryColor,
3486
3399
  textColor: textColor
3487
3400
  })));
3488
3401
  };
3489
3402
 
3403
+ var _excluded$16 = ["children", "columns", "className", "gap", "id"];
3404
+ var SimpleGrid = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
3405
+ var children = props.children,
3406
+ columns = props.columns,
3407
+ className = props.className,
3408
+ _props$gap = props.gap,
3409
+ gap = _props$gap === void 0 ? "grid.l" : _props$gap,
3410
+ id = props.id,
3411
+ rest = _objectWithoutPropertiesLoose(props, _excluded$16);
3412
+ var responsiveCols = columns ? {
3413
+ base: 1,
3414
+ md: columns
3415
+ } : {
3416
+ base: 1,
3417
+ md: 2,
3418
+ lg: 3
3419
+ };
3420
+ return React__default.createElement(SimpleGrid$1, Object.assign({
3421
+ className: className,
3422
+ columns: responsiveCols,
3423
+ gap: gap,
3424
+ id: id,
3425
+ ref: ref
3426
+ }, rest), children);
3427
+ }), {
3428
+ shouldForwardProp: function shouldForwardProp() {
3429
+ return true;
3430
+ }
3431
+ });
3432
+
3490
3433
  var _excluded$17 = ["children", "className", "gap", "id"],
3491
3434
  _excluded2$3 = ["children", "className", "gap", "id"],
3492
3435
  _excluded3$1 = ["action", "children", "className", "gap", "id", "method", "onSubmit"];
@@ -3547,7 +3490,7 @@ var Form = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
3547
3490
  action && (attributes["action"] = action);
3548
3491
  method && (method === "get" || method === "post") && (attributes["method"] = method);
3549
3492
  var alteredChildren = React__default.Children.map(children, function (child, i) {
3550
- return React__default.cloneElement(child, {
3493
+ return child && React__default.cloneElement(child, {
3551
3494
  gap: gap,
3552
3495
  id: id + "-child" + i
3553
3496
  });
@@ -3601,7 +3544,7 @@ var Label = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
3601
3544
  }, rest), children, isRequired && React__default.createElement("span", null, requiredLabelText ? " (" + requiredLabelText + ")" : " (Required)"));
3602
3545
  }));
3603
3546
 
3604
- 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"];
3547
+ 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"];
3605
3548
  // Only used internally.
3606
3549
  var TextInputFormats = {
3607
3550
  email: "jdoe@domain.com",
@@ -3623,6 +3566,8 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3623
3566
  helperText = props.helperText,
3624
3567
  id = props.id,
3625
3568
  invalidText = props.invalidText,
3569
+ _props$isClearable = props.isClearable,
3570
+ isClearable = _props$isClearable === void 0 ? false : _props$isClearable,
3626
3571
  _props$isDisabled = props.isDisabled,
3627
3572
  isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
3628
3573
  _props$isInvalid = props.isInvalid,
@@ -3653,12 +3598,24 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3653
3598
  type = _props$type === void 0 ? "text" : _props$type,
3654
3599
  value = props.value,
3655
3600
  rest = _objectWithoutPropertiesLoose(props, _excluded$19);
3601
+ var _useState = useState(value || ""),
3602
+ finalValue = _useState[0],
3603
+ setFinalValue = _useState[1];
3604
+ var closedRef = useRef();
3605
+ var mergedRefs = useMergeRefs(closedRef, ref);
3606
+ // If a ref is not passed, then merging refs won't work.
3607
+ var finalRef = ref ? mergedRefs : closedRef;
3656
3608
  var styles = useMultiStyleConfig("TextInput", {
3609
+ showLabel: showLabel,
3657
3610
  variant: textInputType
3658
3611
  });
3659
3612
  var isTextArea = type === "textarea";
3660
3613
  var isHidden = type === "hidden";
3661
3614
  var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
3615
+ var internalOnChange = function internalOnChange(e) {
3616
+ setFinalValue(e.target.value);
3617
+ onChange && onChange(e);
3618
+ };
3662
3619
  var footnote = isInvalid ? finalInvalidText : helperText;
3663
3620
  var ariaAttributes = getAriaAttrs({
3664
3621
  footnote: footnote,
@@ -3667,9 +3624,20 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3667
3624
  name: "TextInput",
3668
3625
  showLabel: showLabel
3669
3626
  });
3627
+ var onClearClick = function onClearClick() {
3628
+ setFinalValue("");
3629
+ // Set focus back to the input element.
3630
+ finalRef.current.focus();
3631
+ };
3670
3632
  var finalIsInvalid = isInvalid;
3671
3633
  var fieldOutput;
3634
+ var clearButtonOutput;
3672
3635
  var options;
3636
+ useEffect(function () {
3637
+ if (value && value !== finalValue) {
3638
+ setFinalValue(value);
3639
+ }
3640
+ }, [finalValue, value]);
3673
3641
  if (!id) {
3674
3642
  console.warn("NYPL Reservoir TextInput: This component's required `id` prop was not passed.");
3675
3643
  }
@@ -3687,8 +3655,8 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3687
3655
  id: id,
3688
3656
  "aria-hidden": isHidden,
3689
3657
  name: name,
3690
- onChange: onChange,
3691
- ref: ref
3658
+ onChange: internalOnChange,
3659
+ ref: finalRef
3692
3660
  } : _extends({
3693
3661
  "aria-required": isRequired,
3694
3662
  defaultValue: defaultValue,
@@ -3700,11 +3668,11 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3700
3668
  maxLength: maxLength,
3701
3669
  min: min,
3702
3670
  name: name,
3703
- onChange: onChange,
3671
+ onChange: internalOnChange,
3704
3672
  onClick: onClick,
3705
3673
  onFocus: onFocus,
3706
3674
  placeholder: placeholder,
3707
- ref: ref,
3675
+ ref: finalRef,
3708
3676
  // The `step` attribute is useful for the number type.
3709
3677
  step: type === "number" ? step : null
3710
3678
  }, ariaAttributes, rest);
@@ -3713,12 +3681,27 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3713
3681
  if (!isTextArea) {
3714
3682
  options = _extends({
3715
3683
  type: type,
3716
- value: value
3684
+ value: finalValue
3717
3685
  }, options);
3718
3686
  fieldOutput = React__default.createElement(Input, Object.assign({}, options, {
3719
3687
  __css: styles.input
3720
3688
  }));
3689
+ if (isClearable && !isHidden) {
3690
+ clearButtonOutput = React__default.createElement(Button, {
3691
+ buttonType: "text",
3692
+ id: id + "-clear-btn",
3693
+ onClick: onClearClick,
3694
+ sx: styles.clearButton
3695
+ }, React__default.createElement(Icon, {
3696
+ color: "ui.black",
3697
+ name: "close",
3698
+ size: "medium"
3699
+ }), React__default.createElement("span", null, "Clear ", labelText));
3700
+ }
3721
3701
  } else {
3702
+ if (isClearable) {
3703
+ console.warn("NYPL Reservoir TextInput: The `isClearable` prop cannot be used with the `textarea` type.");
3704
+ }
3722
3705
  fieldOutput = React__default.createElement(Textarea, Object.assign({}, options, {
3723
3706
  __css: styles.textarea
3724
3707
  }), value);
@@ -3736,7 +3719,7 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
3736
3719
  id: id + "-label",
3737
3720
  isRequired: showRequiredLabel && isRequired,
3738
3721
  requiredLabelText: requiredLabelText
3739
- }, labelText), fieldOutput);
3722
+ }, labelText), fieldOutput, !isHidden && finalValue.length > 0 && clearButtonOutput);
3740
3723
  }));
3741
3724
 
3742
3725
  var _excluded$1a = ["dsRef", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "onClick", "showLabel", "showHelperInvalidText", "showRequiredLabel", "value"],
@@ -4227,7 +4210,7 @@ var global = {
4227
4210
  * Chakra Value | DS Variable | EM/PX value
4228
4211
  * ------------------------------------------------------
4229
4212
  * sm | --nypl-breakpoint-small | 20em/320px
4230
- * md | --nypl-breakpoint-medium | 38em/600px
4213
+ * md | --nypl-breakpoint-medium | 37.5em/600px
4231
4214
  * lg | --nypl-breakpoint-large | 60em/960px
4232
4215
  * xl | --nypl-breakpoint-xl | 80em/1280px
4233
4216
  * 2xl | N/A | 96em/1536px
@@ -4237,7 +4220,7 @@ var global = {
4237
4220
  */
4238
4221
  var breakpoints = /*#__PURE__*/createBreakpoints({
4239
4222
  sm: "20em",
4240
- md: "38em",
4223
+ md: "37.5em",
4241
4224
  lg: "60em",
4242
4225
  xl: "80em",
4243
4226
  "2xl": "96em"
@@ -4314,6 +4297,7 @@ var colors = {
4314
4297
  },
4315
4298
  // Semantic colors
4316
4299
  bg: {
4300
+ page: white,
4317
4301
  "default": grayxLightCool,
4318
4302
  hover: grayLightCool,
4319
4303
  active: grayMedium
@@ -4324,7 +4308,11 @@ var colors = {
4324
4308
  },
4325
4309
  typography: {
4326
4310
  heading: black,
4327
- body: black
4311
+ body: black,
4312
+ inverse: {
4313
+ heading: white,
4314
+ body: white
4315
+ }
4328
4316
  },
4329
4317
  // Grayscale
4330
4318
  gray: {
@@ -4385,7 +4373,11 @@ var colors = {
4385
4373
  },
4386
4374
  typography: {
4387
4375
  heading: grayLightCool,
4388
- body: grayMedium
4376
+ body: grayMedium,
4377
+ inverse: {
4378
+ heading: grayxxDark,
4379
+ body: grayxxDark
4380
+ }
4389
4381
  }
4390
4382
  }
4391
4383
  },
@@ -4685,6 +4677,15 @@ var AlphabetFilter$1 = {
4685
4677
  }
4686
4678
  };
4687
4679
 
4680
+ var AudioPlayer$1 = {
4681
+ baseStyle: {
4682
+ invalid: {
4683
+ backgroundColor: "ui.bg.default",
4684
+ padding: "s"
4685
+ }
4686
+ }
4687
+ };
4688
+
4688
4689
  // Variant styling
4689
4690
  var blogs = {
4690
4691
  bg: "section.blogs.secondary",
@@ -5573,6 +5574,47 @@ var DatePicker$1 = {
5573
5574
  }
5574
5575
  };
5575
5576
 
5577
+ var FeedbackBox = {
5578
+ parts: ["closeButton", "drawerBody", "drawerContent", "drawerHeader", "openButton"],
5579
+ baseStyle: {
5580
+ closeButton: {
5581
+ p: "0",
5582
+ span: /*#__PURE__*/screenreaderOnly()
5583
+ },
5584
+ drawerBody: {
5585
+ paddingTop: "m",
5586
+ paddingBottom: "m"
5587
+ },
5588
+ drawerContent: {
5589
+ marginStart: "auto",
5590
+ width: {
5591
+ base: "100%",
5592
+ md: "375px"
5593
+ }
5594
+ },
5595
+ drawerHeader: {
5596
+ alignItems: "baseline",
5597
+ background: "ui.gray.light-cool",
5598
+ borderBottomWidth: "1px",
5599
+ display: "flex",
5600
+ fontSize: "text.default",
5601
+ px: "m",
5602
+ paddingTop: "xs",
5603
+ paddingBottom: "xs",
5604
+ p: {
5605
+ marginBottom: "0"
5606
+ }
5607
+ },
5608
+ openButton: {
5609
+ position: "fixed",
5610
+ borderRadius: "0",
5611
+ bottom: "0",
5612
+ right: "0",
5613
+ zIndex: "5"
5614
+ }
5615
+ }
5616
+ };
5617
+
5576
5618
  var Fieldset$1 = {
5577
5619
  baseStyle: function baseStyle(_ref) {
5578
5620
  var isLegendHidden = _ref.isLegendHidden;
@@ -6904,10 +6946,17 @@ var tertiary = {
6904
6946
  color: "ui.white",
6905
6947
  display: "flex",
6906
6948
  flexFlow: "column nowrap",
6907
- padding: "inset.default",
6949
+ px: "inset.default",
6950
+ py: {
6951
+ base: "inset.default",
6952
+ xl: "inset.wide"
6953
+ },
6908
6954
  p: {
6909
6955
  marginBottom: "0",
6910
- marginTop: "s"
6956
+ marginTop: {
6957
+ base: "xxs",
6958
+ xl: "xs"
6959
+ }
6911
6960
  }
6912
6961
  }),
6913
6962
  heading: {
@@ -8182,6 +8231,30 @@ var StructuredContent = {
8182
8231
  }
8183
8232
  };
8184
8233
 
8234
+ var StyledList = {
8235
+ baseStyle: function baseStyle(_ref) {
8236
+ var _ref$textSize = _ref.textSize,
8237
+ textSize = _ref$textSize === void 0 ? "default" : _ref$textSize;
8238
+ return _extends({
8239
+ fontSize: "text." + textSize
8240
+ }, baseListStyles(false, true), baseUnorderedStyles(true));
8241
+ },
8242
+ variants: {
8243
+ capped: {
8244
+ li: {
8245
+ borderStart: "1px solid",
8246
+ borderEnd: {
8247
+ base: "1px solid",
8248
+ md: "none"
8249
+ },
8250
+ borderColor: "ui.border.default",
8251
+ my: "xs",
8252
+ px: "xs"
8253
+ }
8254
+ }
8255
+ }
8256
+ };
8257
+
8185
8258
  var tablist = {
8186
8259
  borderColor: "ui.black"
8187
8260
  };
@@ -8613,12 +8686,28 @@ var input = {
8613
8686
  };
8614
8687
  var TextInput$1 = {
8615
8688
  parts: ["input", "textarea"],
8616
- baseStyle: {
8617
- input: input,
8618
- textarea: /*#__PURE__*/_extends({}, input, {
8619
- lineheight: "1.5",
8620
- minHeight: "xxl"
8621
- })
8689
+ baseStyle: function baseStyle(_ref) {
8690
+ var showLabel = _ref.showLabel;
8691
+ return {
8692
+ position: "relative",
8693
+ input: input,
8694
+ textarea: _extends({}, input, {
8695
+ lineheight: "1.5",
8696
+ minHeight: "xxl"
8697
+ }),
8698
+ clearButton: {
8699
+ position: "absolute",
8700
+ // When `showLabel` is false, the input field is at the top
8701
+ // which means the clear button should float higher.
8702
+ top: showLabel ? "32px" : "0",
8703
+ px: "xs",
8704
+ right: "0",
8705
+ // Don't visually show the text. This also helps
8706
+ // use the "text" `Button` type.
8707
+ span: screenreaderOnly(),
8708
+ zIndex: "9999"
8709
+ }
8710
+ };
8622
8711
  },
8623
8712
  variants: {
8624
8713
  searchBar: {
@@ -8791,15 +8880,6 @@ var VideoPlayer = {
8791
8880
  }
8792
8881
  };
8793
8882
 
8794
- var AudioPlayer$1 = {
8795
- baseStyle: {
8796
- invalid: {
8797
- backgroundColor: "ui.bg.default",
8798
- padding: "s"
8799
- }
8800
- }
8801
- };
8802
-
8803
8883
  /**
8804
8884
  * See Chakra default theme for shape of theme object:
8805
8885
  * https://github.com/chakra-ui/chakra-ui/tree/main/packages/theme
@@ -8847,6 +8927,7 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
8847
8927
  CustomImageWrapper: CustomImageWrapper,
8848
8928
  CustomSelect: Select,
8849
8929
  DatePicker: DatePicker$1,
8930
+ FeedbackBox: FeedbackBox,
8850
8931
  Fieldset: Fieldset$1,
8851
8932
  Footer: Footer,
8852
8933
  Header: Header,
@@ -8882,6 +8963,7 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
8882
8963
  CustomSlider: CustomSlider,
8883
8964
  StatusBadge: StatusBadge,
8884
8965
  StructuredContent: StructuredContent,
8966
+ StyledList: StyledList,
8885
8967
  Tabs: CustomTabs,
8886
8968
  CustomTable: CustomTable
8887
8969
  }, TagSetStyles, TemplateStyles, {
@@ -8979,18 +9061,6 @@ var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
8979
9061
  }
8980
9062
  return null;
8981
9063
  };
8982
- /**
8983
- * Checks for `li` elements and consoles a warning if the
8984
- * children are different HTML elements.
8985
- */
8986
- var checkListChildrenError = function checkListChildrenError(listType) {
8987
- React__default.Children.map(children, function (child) {
8988
- var _child$props;
8989
- if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
8990
- console.warn("NYPL Reservoir List: Direct children of `List` (" + listType + ") must be `<li>`s.");
8991
- }
8992
- });
8993
- };
8994
9064
  /**
8995
9065
  * Checks for `dt` and `dd` elements and consoles a warning if the
8996
9066
  * children are different HTML elements.
@@ -9003,7 +9073,7 @@ var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
9003
9073
  });
9004
9074
  };
9005
9075
  if (type === "ol" || type === "ul") {
9006
- checkListChildrenError(type);
9076
+ checkListChildrenError(children, type);
9007
9077
  listElement = React__default.createElement(Box, Object.assign({
9008
9078
  as: type,
9009
9079
  id: id,
@@ -9025,6 +9095,24 @@ var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
9025
9095
  }
9026
9096
  return listElement;
9027
9097
  }));
9098
+ /**
9099
+ * Checks for `li` elements and consoles a warning if the
9100
+ * children are different HTML elements.
9101
+ */
9102
+ var checkListChildrenError = function checkListChildrenError(children, listType, componentName) {
9103
+ if (listType === void 0) {
9104
+ listType = "ul";
9105
+ }
9106
+ if (componentName === void 0) {
9107
+ componentName = "List";
9108
+ }
9109
+ React__default.Children.map(children, function (child) {
9110
+ var _child$props;
9111
+ if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
9112
+ console.warn("NYPL Reservoir " + componentName + ": Direct children of `" + componentName + "` (" + listType + ") must be `<li>`s.");
9113
+ }
9114
+ });
9115
+ };
9028
9116
 
9029
9117
  var _path$L, _path2$f, _path3$7;
9030
9118
  var _excluded$1c = ["title", "titleId"];
@@ -9039,7 +9127,6 @@ var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
9039
9127
  viewBox: "0 0 200 67",
9040
9128
  fill: "none",
9041
9129
  xmlns: "http://www.w3.org/2000/svg",
9042
- role: "img",
9043
9130
  "aria-labelledby": titleId
9044
9131
  }, props), title ? /*#__PURE__*/createElement("title", {
9045
9132
  id: titleId
@@ -9068,7 +9155,6 @@ var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
9068
9155
  viewBox: "0 0 200 67",
9069
9156
  fill: "none",
9070
9157
  xmlns: "http://www.w3.org/2000/svg",
9071
- role: "img",
9072
9158
  "aria-labelledby": titleId
9073
9159
  }, props), title ? /*#__PURE__*/createElement("title", {
9074
9160
  id: titleId
@@ -9096,7 +9182,6 @@ var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
9096
9182
  return /*#__PURE__*/createElement("svg", _extends$T({
9097
9183
  viewBox: "0 0 328 120",
9098
9184
  xmlns: "http://www.w3.org/2000/svg",
9099
- role: "img",
9100
9185
  "aria-labelledby": titleId
9101
9186
  }, props), title ? /*#__PURE__*/createElement("title", {
9102
9187
  id: titleId
@@ -9122,7 +9207,6 @@ var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
9122
9207
  viewBox: "0 0 328 120",
9123
9208
  fill: "#fff",
9124
9209
  xmlns: "http://www.w3.org/2000/svg",
9125
- role: "img",
9126
9210
  "aria-labelledby": titleId
9127
9211
  }, props), title ? /*#__PURE__*/createElement("title", {
9128
9212
  id: titleId
@@ -9148,7 +9232,6 @@ var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
9148
9232
  viewBox: "0 0 118 119",
9149
9233
  fill: "none",
9150
9234
  xmlns: "http://www.w3.org/2000/svg",
9151
- role: "img",
9152
9235
  "aria-labelledby": titleId
9153
9236
  }, props), title ? /*#__PURE__*/createElement("title", {
9154
9237
  id: titleId
@@ -9179,7 +9262,6 @@ var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
9179
9262
  viewBox: "0 0 312 88",
9180
9263
  fill: "#436CF2",
9181
9264
  xmlns: "http://www.w3.org/2000/svg",
9182
- role: "img",
9183
9265
  "aria-labelledby": titleId
9184
9266
  }, props), title ? /*#__PURE__*/createElement("title", {
9185
9267
  id: titleId
@@ -9203,7 +9285,6 @@ var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
9203
9285
  viewBox: "0 0 312 88",
9204
9286
  fill: "#fff",
9205
9287
  xmlns: "http://www.w3.org/2000/svg",
9206
- role: "img",
9207
9288
  "aria-labelledby": titleId
9208
9289
  }, props), title ? /*#__PURE__*/createElement("title", {
9209
9290
  id: titleId
@@ -9227,7 +9308,6 @@ var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
9227
9308
  viewBox: "0 0 172 152",
9228
9309
  fill: "none",
9229
9310
  xmlns: "http://www.w3.org/2000/svg",
9230
- role: "img",
9231
9311
  "aria-labelledby": titleId
9232
9312
  }, props), title ? /*#__PURE__*/createElement("title", {
9233
9313
  id: titleId
@@ -9286,7 +9366,6 @@ var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref)
9286
9366
  viewBox: "0 0 170 150",
9287
9367
  fill: "none",
9288
9368
  xmlns: "http://www.w3.org/2000/svg",
9289
- role: "img",
9290
9369
  "aria-labelledby": titleId
9291
9370
  }, props), title ? /*#__PURE__*/createElement("title", {
9292
9371
  id: titleId
@@ -9350,7 +9429,6 @@ var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
9350
9429
  viewBox: "0 0 200 60",
9351
9430
  fill: "none",
9352
9431
  xmlns: "http://www.w3.org/2000/svg",
9353
- role: "img",
9354
9432
  "aria-labelledby": titleId
9355
9433
  }, props), title ? /*#__PURE__*/createElement("title", {
9356
9434
  id: titleId
@@ -9491,7 +9569,6 @@ var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
9491
9569
  viewBox: "0 0 186 74",
9492
9570
  fill: "none",
9493
9571
  xmlns: "http://www.w3.org/2000/svg",
9494
- role: "img",
9495
9572
  "aria-labelledby": titleId
9496
9573
  }, props), title ? /*#__PURE__*/createElement("title", {
9497
9574
  id: titleId
@@ -9516,7 +9593,6 @@ var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
9516
9593
  return /*#__PURE__*/createElement("svg", _extends$10({
9517
9594
  viewBox: "0 0 186 74",
9518
9595
  xmlns: "http://www.w3.org/2000/svg",
9519
- role: "img",
9520
9596
  "aria-labelledby": titleId
9521
9597
  }, props), title ? /*#__PURE__*/createElement("title", {
9522
9598
  id: titleId
@@ -9538,7 +9614,6 @@ var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
9538
9614
  viewBox: "0 0 186 74",
9539
9615
  fill: "#fff",
9540
9616
  xmlns: "http://www.w3.org/2000/svg",
9541
- role: "img",
9542
9617
  "aria-labelledby": titleId
9543
9618
  }, props), title ? /*#__PURE__*/createElement("title", {
9544
9619
  id: titleId
@@ -9559,7 +9634,6 @@ var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
9559
9634
  return /*#__PURE__*/createElement("svg", _extends$12({
9560
9635
  viewBox: "0 0 300 71",
9561
9636
  xmlns: "http://www.w3.org/2000/svg",
9562
- role: "img",
9563
9637
  "aria-labelledby": titleId
9564
9638
  }, props), title ? /*#__PURE__*/createElement("title", {
9565
9639
  id: titleId
@@ -9583,7 +9657,6 @@ var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
9583
9657
  viewBox: "0 0 300 71",
9584
9658
  fill: "#C60917",
9585
9659
  xmlns: "http://www.w3.org/2000/svg",
9586
- role: "img",
9587
9660
  "aria-labelledby": titleId
9588
9661
  }, props), title ? /*#__PURE__*/createElement("title", {
9589
9662
  id: titleId
@@ -9607,7 +9680,6 @@ var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
9607
9680
  viewBox: "0 0 300 71",
9608
9681
  fill: "#fff",
9609
9682
  xmlns: "http://www.w3.org/2000/svg",
9610
- role: "img",
9611
9683
  "aria-labelledby": titleId
9612
9684
  }, props), title ? /*#__PURE__*/createElement("title", {
9613
9685
  id: titleId
@@ -9631,7 +9703,6 @@ var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
9631
9703
  viewBox: "0 0 341 61",
9632
9704
  fill: "none",
9633
9705
  xmlns: "http://www.w3.org/2000/svg",
9634
- role: "img",
9635
9706
  "aria-labelledby": titleId
9636
9707
  }, props), title ? /*#__PURE__*/createElement("title", {
9637
9708
  id: titleId
@@ -9672,7 +9743,6 @@ var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
9672
9743
  xmlns: "http://www.w3.org/2000/svg",
9673
9744
  viewBox: "0 0 966.787 543.733",
9674
9745
  xmlSpace: "preserve",
9675
- role: "img",
9676
9746
  "aria-labelledby": titleId
9677
9747
  }, props), title ? /*#__PURE__*/createElement("title", {
9678
9748
  id: titleId
@@ -9755,7 +9825,6 @@ var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
9755
9825
  viewBox: "0 0 967 568",
9756
9826
  fill: "none",
9757
9827
  xmlns: "http://www.w3.org/2000/svg",
9758
- role: "img",
9759
9828
  "aria-labelledby": titleId
9760
9829
  }, props), title ? /*#__PURE__*/createElement("title", {
9761
9830
  id: titleId
@@ -9791,7 +9860,6 @@ var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
9791
9860
  viewBox: "0 0 136 135",
9792
9861
  fill: "none",
9793
9862
  xmlns: "http://www.w3.org/2000/svg",
9794
- role: "img",
9795
9863
  "aria-labelledby": titleId
9796
9864
  }, props), title ? /*#__PURE__*/createElement("title", {
9797
9865
  id: titleId
@@ -9822,7 +9890,6 @@ var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
9822
9890
  viewBox: "0 0 125 126",
9823
9891
  fill: "none",
9824
9892
  xmlns: "http://www.w3.org/2000/svg",
9825
- role: "img",
9826
9893
  "aria-labelledby": titleId
9827
9894
  }, props), title ? /*#__PURE__*/createElement("title", {
9828
9895
  id: titleId
@@ -9847,7 +9914,6 @@ var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
9847
9914
  viewBox: "0 0 201 165",
9848
9915
  fill: "none",
9849
9916
  xmlns: "http://www.w3.org/2000/svg",
9850
- role: "img",
9851
9917
  "aria-labelledby": titleId
9852
9918
  }, props), title ? /*#__PURE__*/createElement("title", {
9853
9919
  id: titleId
@@ -9926,7 +9992,6 @@ var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
9926
9992
  viewBox: "0 0 201 165",
9927
9993
  fill: "none",
9928
9994
  xmlns: "http://www.w3.org/2000/svg",
9929
- role: "img",
9930
9995
  "aria-labelledby": titleId
9931
9996
  }, props), title ? /*#__PURE__*/createElement("title", {
9932
9997
  id: titleId
@@ -10005,7 +10070,6 @@ var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
10005
10070
  viewBox: "0 0 152 139",
10006
10071
  fill: "none",
10007
10072
  xmlns: "http://www.w3.org/2000/svg",
10008
- role: "img",
10009
10073
  "aria-labelledby": titleId
10010
10074
  }, props), title ? /*#__PURE__*/createElement("title", {
10011
10075
  id: titleId
@@ -10061,7 +10125,6 @@ var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
10061
10125
  viewBox: "0 0 155 139",
10062
10126
  fill: "none",
10063
10127
  xmlns: "http://www.w3.org/2000/svg",
10064
- role: "img",
10065
10128
  "aria-labelledby": titleId
10066
10129
  }, props), title ? /*#__PURE__*/createElement("title", {
10067
10130
  id: titleId
@@ -10140,7 +10203,6 @@ var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_re
10140
10203
  viewBox: "0 0 152 139",
10141
10204
  fill: "none",
10142
10205
  xmlns: "http://www.w3.org/2000/svg",
10143
- role: "img",
10144
10206
  "aria-labelledby": titleId
10145
10207
  }, props), title ? /*#__PURE__*/createElement("title", {
10146
10208
  id: titleId
@@ -10196,7 +10258,6 @@ var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegati
10196
10258
  viewBox: "0 0 155 139",
10197
10259
  fill: "none",
10198
10260
  xmlns: "http://www.w3.org/2000/svg",
10199
- role: "img",
10200
10261
  "aria-labelledby": titleId
10201
10262
  }, props), title ? /*#__PURE__*/createElement("title", {
10202
10263
  id: titleId
@@ -10277,7 +10338,6 @@ var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
10277
10338
  return /*#__PURE__*/createElement("svg", _extends$1g({
10278
10339
  viewBox: "0 0 250 134",
10279
10340
  xmlns: "http://www.w3.org/2000/svg",
10280
- role: "img",
10281
10341
  "aria-labelledby": titleId
10282
10342
  }, props), title ? /*#__PURE__*/createElement("title", {
10283
10343
  id: titleId
@@ -10299,7 +10359,6 @@ var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
10299
10359
  viewBox: "0 0 250 134",
10300
10360
  fill: "#fff",
10301
10361
  xmlns: "http://www.w3.org/2000/svg",
10302
- role: "img",
10303
10362
  "aria-labelledby": titleId
10304
10363
  }, props), title ? /*#__PURE__*/createElement("title", {
10305
10364
  id: titleId
@@ -10320,7 +10379,6 @@ var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
10320
10379
  return /*#__PURE__*/createElement("svg", _extends$1i({
10321
10380
  viewBox: "0 0 320 43",
10322
10381
  xmlns: "http://www.w3.org/2000/svg",
10323
- role: "img",
10324
10382
  "aria-labelledby": titleId
10325
10383
  }, props), title ? /*#__PURE__*/createElement("title", {
10326
10384
  id: titleId
@@ -10358,7 +10416,6 @@ var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
10358
10416
  viewBox: "0 0 355 48",
10359
10417
  fill: "none",
10360
10418
  xmlns: "http://www.w3.org/2000/svg",
10361
- role: "img",
10362
10419
  "aria-labelledby": titleId
10363
10420
  }, props), title ? /*#__PURE__*/createElement("title", {
10364
10421
  id: titleId
@@ -10414,7 +10471,6 @@ var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
10414
10471
  viewBox: "0 0 320 43",
10415
10472
  fill: "#fff",
10416
10473
  xmlns: "http://www.w3.org/2000/svg",
10417
- role: "img",
10418
10474
  "aria-labelledby": titleId
10419
10475
  }, props), title ? /*#__PURE__*/createElement("title", {
10420
10476
  id: titleId
@@ -10452,7 +10508,6 @@ var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
10452
10508
  viewBox: "0 0 105 129",
10453
10509
  fill: "none",
10454
10510
  xmlns: "http://www.w3.org/2000/svg",
10455
- role: "img",
10456
10511
  "aria-labelledby": titleId
10457
10512
  }, props), title ? /*#__PURE__*/createElement("title", {
10458
10513
  id: titleId
@@ -10487,7 +10542,6 @@ var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref)
10487
10542
  viewBox: "0 0 234 261",
10488
10543
  fill: "none",
10489
10544
  xmlns: "http://www.w3.org/2000/svg",
10490
- role: "img",
10491
10545
  "aria-labelledby": titleId
10492
10546
  }, props), title ? /*#__PURE__*/createElement("title", {
10493
10547
  id: titleId
@@ -10520,7 +10574,6 @@ var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
10520
10574
  return /*#__PURE__*/createElement("svg", _extends$1n({
10521
10575
  viewBox: "0 0 185 79",
10522
10576
  xmlns: "http://www.w3.org/2000/svg",
10523
- role: "img",
10524
10577
  "aria-labelledby": titleId
10525
10578
  }, props), title ? /*#__PURE__*/createElement("title", {
10526
10579
  id: titleId
@@ -10549,7 +10602,6 @@ var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
10549
10602
  return /*#__PURE__*/createElement("svg", _extends$1o({
10550
10603
  viewBox: "0 0 67 67",
10551
10604
  xmlns: "http://www.w3.org/2000/svg",
10552
- role: "img",
10553
10605
  "aria-labelledby": titleId
10554
10606
  }, props), title ? /*#__PURE__*/createElement("title", {
10555
10607
  id: titleId
@@ -10579,7 +10631,6 @@ var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
10579
10631
  viewBox: "0 0 67 67",
10580
10632
  fill: "none",
10581
10633
  xmlns: "http://www.w3.org/2000/svg",
10582
- role: "img",
10583
10634
  "aria-labelledby": titleId
10584
10635
  }, props), title ? /*#__PURE__*/createElement("title", {
10585
10636
  id: titleId
@@ -10614,7 +10665,6 @@ var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
10614
10665
  viewBox: "0 0 67 67",
10615
10666
  fill: "#fff",
10616
10667
  xmlns: "http://www.w3.org/2000/svg",
10617
- role: "img",
10618
10668
  "aria-labelledby": titleId
10619
10669
  }, props), title ? /*#__PURE__*/createElement("title", {
10620
10670
  id: titleId
@@ -10644,7 +10694,6 @@ var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
10644
10694
  viewBox: "0 0 185 79",
10645
10695
  fill: "none",
10646
10696
  xmlns: "http://www.w3.org/2000/svg",
10647
- role: "img",
10648
10697
  "aria-labelledby": titleId
10649
10698
  }, props), title ? /*#__PURE__*/createElement("title", {
10650
10699
  id: titleId
@@ -10685,7 +10734,6 @@ var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
10685
10734
  viewBox: "0 0 185 79",
10686
10735
  fill: "#fff",
10687
10736
  xmlns: "http://www.w3.org/2000/svg",
10688
- role: "img",
10689
10737
  "aria-labelledby": titleId
10690
10738
  }, props), title ? /*#__PURE__*/createElement("title", {
10691
10739
  id: titleId
@@ -10714,7 +10762,6 @@ var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
10714
10762
  return /*#__PURE__*/createElement("svg", _extends$1t({
10715
10763
  viewBox: "0 0 512 148",
10716
10764
  xmlns: "http://www.w3.org/2000/svg",
10717
- role: "img",
10718
10765
  "aria-labelledby": titleId
10719
10766
  }, props), title ? /*#__PURE__*/createElement("title", {
10720
10767
  id: titleId
@@ -10748,7 +10795,6 @@ var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
10748
10795
  viewBox: "0 0 512 148",
10749
10796
  fill: "#fff",
10750
10797
  xmlns: "http://www.w3.org/2000/svg",
10751
- role: "img",
10752
10798
  "aria-labelledby": titleId
10753
10799
  }, props), title ? /*#__PURE__*/createElement("title", {
10754
10800
  id: titleId
@@ -10781,7 +10827,6 @@ var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
10781
10827
  viewBox: "0 0 682 196",
10782
10828
  fill: "none",
10783
10829
  xmlns: "http://www.w3.org/2000/svg",
10784
- role: "img",
10785
10830
  "aria-labelledby": titleId
10786
10831
  }, props), title ? /*#__PURE__*/createElement("title", {
10787
10832
  id: titleId
@@ -10820,7 +10865,6 @@ var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
10820
10865
  return /*#__PURE__*/createElement("svg", _extends$1w({
10821
10866
  viewBox: "0 0 84 111",
10822
10867
  xmlns: "http://www.w3.org/2000/svg",
10823
- role: "img",
10824
10868
  "aria-labelledby": titleId
10825
10869
  }, props), title ? /*#__PURE__*/createElement("title", {
10826
10870
  id: titleId
@@ -10842,7 +10886,6 @@ var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
10842
10886
  viewBox: "0 0 84 111",
10843
10887
  fill: "#fff",
10844
10888
  xmlns: "http://www.w3.org/2000/svg",
10845
- role: "img",
10846
10889
  "aria-labelledby": titleId
10847
10890
  }, props), title ? /*#__PURE__*/createElement("title", {
10848
10891
  id: titleId
@@ -10864,7 +10907,6 @@ var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
10864
10907
  viewBox: "0 0 324 265",
10865
10908
  fill: "none",
10866
10909
  xmlns: "http://www.w3.org/2000/svg",
10867
- role: "img",
10868
10910
  "aria-labelledby": titleId
10869
10911
  }, props), title ? /*#__PURE__*/createElement("title", {
10870
10912
  id: titleId
@@ -11049,7 +11091,6 @@ var SvgLogoTreasuresColorNegative = function SvgLogoTreasuresColorNegative(_ref)
11049
11091
  viewBox: "0 0 327 266",
11050
11092
  fill: "none",
11051
11093
  xmlns: "http://www.w3.org/2000/svg",
11052
- role: "img",
11053
11094
  "aria-labelledby": titleId
11054
11095
  }, props), title ? /*#__PURE__*/createElement("title", {
11055
11096
  id: titleId
@@ -13799,6 +13840,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
13799
13840
  // Render the `TextInput` component.
13800
13841
  var textInputNative = textInputProps && React__default.createElement(TextInput, Object.assign({
13801
13842
  id: (textInputProps == null ? void 0 : textInputProps.id) || "searchbar-textinput-" + id,
13843
+ isClearable: textInputProps == null ? void 0 : textInputProps.isClearable,
13802
13844
  labelText: textInputProps == null ? void 0 : textInputProps.labelText,
13803
13845
  name: textInputProps == null ? void 0 : textInputProps.name,
13804
13846
  onChange: textInputProps == null ? void 0 : textInputProps.onChange,
@@ -14281,6 +14323,47 @@ var StructuredContent$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
14281
14323
  }), finalBodyContent);
14282
14324
  }));
14283
14325
 
14326
+ /**
14327
+ * The `StyledList` component renders an HTML list with styles that do not
14328
+ * adhere to traditional numbered and bulleted list styles. Unlike
14329
+ * the `List` component, `StyledList` only renders an unordered list.
14330
+ */
14331
+ var StyledList$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
14332
+ var children = props.children,
14333
+ className = props.className,
14334
+ id = props.id,
14335
+ _props$listItems = props.listItems,
14336
+ listItems = _props$listItems === void 0 ? [] : _props$listItems,
14337
+ _props$style = props.style,
14338
+ style = _props$style === void 0 ? "capped" : _props$style,
14339
+ _props$textSize = props.textSize,
14340
+ textSize = _props$textSize === void 0 ? "default" : _props$textSize;
14341
+ var styles = useMultiStyleConfig("StyledList", {
14342
+ textSize: textSize,
14343
+ variant: style
14344
+ });
14345
+ var finalChildren;
14346
+ if (children && listItems.length > 0) {
14347
+ console.warn("NYPL Reservoir StyledList: Pass in either `<li>` children or use the " + "`listItems` data prop. Do not use both.");
14348
+ return null;
14349
+ }
14350
+ // Makes sure that the passed children elements are `li` elements but
14351
+ // it is not enforced. Only a warning is logged to the console.
14352
+ checkListChildrenError(children, "ul", "StyledList");
14353
+ finalChildren = children || listItems.map(function (item, i) {
14354
+ return React__default.createElement("li", {
14355
+ key: i
14356
+ }, item);
14357
+ });
14358
+ return React__default.createElement(Box, {
14359
+ as: "ul",
14360
+ className: className,
14361
+ id: id,
14362
+ ref: ref,
14363
+ __css: styles
14364
+ }, finalChildren);
14365
+ }));
14366
+
14284
14367
  /**
14285
14368
  * Custom hook that controls the sliding function for the carousel wrapper.
14286
14369
  * This returns functions to use for the "previous" and "next" buttons as well
@@ -14530,12 +14613,16 @@ var Tooltip$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
14530
14613
  }, children) : children;
14531
14614
  var styles = useMultiStyleConfig("Tooltip", {});
14532
14615
  return React__default.createElement(Tooltip$2, Object.assign({
14533
- hasArrow: true,
14534
14616
  "aria-label": typeof content !== "string" ? "Tooltip" : undefined,
14535
- label: content,
14617
+ closeDelay: 750,
14618
+ closeOnClick: true,
14619
+ closeOnEsc: true,
14620
+ closeOnMouseDown: true,
14621
+ hasArrow: true,
14536
14622
  isDisabled: isDisabled,
14537
- placement: "top",
14623
+ label: content,
14538
14624
  openDelay: 500,
14625
+ placement: "top",
14539
14626
  ref: ref,
14540
14627
  __css: styles
14541
14628
  }, rest), newChildren);
@@ -15023,6 +15110,96 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
15023
15110
  }), labelText)));
15024
15111
  }));
15025
15112
 
15113
+ /**
15114
+ * A custom hook that returns the Chakra-based NYPL theme object. This must be
15115
+ * used inside a component that is wrapped in the `DSProvider` component, so
15116
+ * that the theme object can be available to use.
15117
+ */
15118
+ function useNYPLTheme() {
15119
+ var theme = useTheme();
15120
+ if (!theme || Object.keys(theme).length === 0) {
15121
+ console.warn("NYPL Reservoir useNYPLTheme: hook must be used inside of `<DSProvider />`.");
15122
+ return {};
15123
+ }
15124
+ // Chakra provides a lot of their own styles but
15125
+ // only NYPL styles should be exported.
15126
+ return {
15127
+ // base, sm, md, lg, xl, 2xl
15128
+ breakpoints: theme.breakpoints,
15129
+ colors: {
15130
+ // primary, secondary
15131
+ brand: theme.colors.brand,
15132
+ // dark mode colors:
15133
+ // ui.disabled, ui.error, ui.focus, ui.link,
15134
+ // ui.status, ui.success, ui.test, ui.warning,
15135
+ // ui.bg, ui.border, ui.typography
15136
+ dark: theme.colors.dark,
15137
+ // blogs, books-and-more, education, locations,
15138
+ // research, research-library, whats-on
15139
+ section: theme.colors.section,
15140
+ transparent: theme.colors.transparent,
15141
+ // black, white, gray, disabled, error, focus, link,
15142
+ // status, success, test, warning, bg, border, typography
15143
+ ui: theme.colors.ui
15144
+ },
15145
+ fontSizes: {
15146
+ "-3": theme.fontSizes["-3"],
15147
+ "-2": theme.fontSizes["-2"],
15148
+ "-1": theme.fontSizes["-1"],
15149
+ "0": theme.fontSizes["0"],
15150
+ "1": theme.fontSizes["1"],
15151
+ "2": theme.fontSizes["2"],
15152
+ "3": theme.fontSizes["3"],
15153
+ "4": theme.fontSizes["4"],
15154
+ // default
15155
+ breadcrumbs: theme.fontSizes.breadcrumbs,
15156
+ // default
15157
+ button: theme.fontSizes.button,
15158
+ // primary, secondary, tertiary, callout
15159
+ heading: theme.fontSizes.heading,
15160
+ // default
15161
+ helper: theme.fontSizes.helper,
15162
+ // default, secondary
15163
+ label: theme.fontSizes.label,
15164
+ // default, caption, tag, mini
15165
+ text: theme.fontSizes.text
15166
+ },
15167
+ fontWeights: {
15168
+ light: theme.fontWeights.light,
15169
+ regular: theme.fontWeights.regular,
15170
+ medium: theme.fontWeights.medium,
15171
+ bold: theme.fontWeights.bold,
15172
+ // default, lastChild
15173
+ breadcrumbs: theme.fontWeights.breadcrumbs,
15174
+ // default
15175
+ button: theme.fontWeights.button,
15176
+ // primary, secondary, tertiary, callout
15177
+ heading: theme.fontWeights.heading,
15178
+ // default
15179
+ helper: theme.fontWeights.helper,
15180
+ // default
15181
+ label: theme.fontWeights.label,
15182
+ // default, caption, tag, mini
15183
+ text: theme.fontWeights.text
15184
+ },
15185
+ fonts: {
15186
+ body: theme.fonts.body,
15187
+ heading: theme.fonts.heading
15188
+ },
15189
+ radii: theme.radii,
15190
+ space: {
15191
+ xxs: theme.space.xxs,
15192
+ xs: theme.space.xs,
15193
+ s: theme.space.s,
15194
+ m: theme.space.m,
15195
+ l: theme.space.l,
15196
+ xl: theme.space.xl,
15197
+ xxl: theme.space.xxl,
15198
+ xxxl: theme.space.xxxl
15199
+ }
15200
+ };
15201
+ }
15202
+
15026
15203
  var _excluded$2h = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
15027
15204
  var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
15028
15205
  var aspectRatio = props.aspectRatio,
@@ -15102,5 +15279,5 @@ var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
15102
15279
  }, embedElement)));
15103
15280
  }));
15104
15281
 
15105
- export { Accordion, AlphabetFilter, AudioPlayer, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, ColorCard, DSProvider, DatePicker, Fieldset, Footer$1 as Footer, Form, FormField, FormRow, Header$1 as Header, Heading, HelperErrorText, Hero$1 as Hero, HorizontalRule$1 as HorizontalRule, Icon, Image, Label, Link, List$1 as List, Logo$1 as Logo, ModalTrigger, Notification$1 as Notification, Pagination$1 as Pagination, ProgressIndicator$1 as ProgressIndicator, Radio$1 as Radio, RadioGroup$1 as RadioGroup, SearchBar$1 as SearchBar, Select$1 as Select, SimpleGrid, SkeletonLoader$1 as SkeletonLoader, SkipNavigation$1 as SkipNavigation, Slider, StatusBadge$1 as StatusBadge, StructuredContent$1 as StructuredContent, Table, Tabs, TagSet$1 as TagSet, Template$1 as Template, TemplateAboveHeader, TemplateAppContainer, TemplateBreakout$1 as TemplateBreakout, TemplateContent$1 as TemplateContent, TemplateContentPrimary$1 as TemplateContentPrimary, TemplateContentSidebar$1 as TemplateContentSidebar, TemplateContentTop, TemplateFooter, TemplateHeader, Text, TextInput, Toggle$2 as Toggle, Tooltip$1 as Tooltip, VideoPlayer$1 as VideoPlayer, useCarouselStyles, useModal, useNYPLBreakpoints, useNYPLTheme, useWindowSize };
15282
+ export { Accordion, AlphabetFilter, AudioPlayer, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, ColorCard, DSProvider, DatePicker, Fieldset, Footer$1 as Footer, Form, FormField, FormRow, Header$1 as Header, Heading, HelperErrorText, Hero$1 as Hero, HorizontalRule$1 as HorizontalRule, Icon, Image, Label, Link, List$1 as List, Logo$1 as Logo, ModalTrigger, Notification$1 as Notification, Pagination$1 as Pagination, ProgressIndicator$1 as ProgressIndicator, Radio$1 as Radio, RadioGroup$1 as RadioGroup, SearchBar$1 as SearchBar, Select$1 as Select, SimpleGrid, SkeletonLoader$1 as SkeletonLoader, SkipNavigation$1 as SkipNavigation, Slider, StatusBadge$1 as StatusBadge, StructuredContent$1 as StructuredContent, StyledList$1 as StyledList, Table, Tabs, TagSet$1 as TagSet, Template$1 as Template, TemplateAboveHeader, TemplateAppContainer, TemplateBreakout$1 as TemplateBreakout, TemplateContent$1 as TemplateContent, TemplateContentPrimary$1 as TemplateContentPrimary, TemplateContentSidebar$1 as TemplateContentSidebar, TemplateContentTop, TemplateFooter, TemplateHeader, Text, TextInput, Toggle$2 as Toggle, Tooltip$1 as Tooltip, VideoPlayer$1 as VideoPlayer, useCarouselStyles, useModal, useNYPLBreakpoints, useNYPLTheme, useWindowSize };
15106
15283
  //# sourceMappingURL=design-system-react-components.esm.js.map