@nypl/design-system-react-components 1.1.0-rc → 1.1.0-rc2

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.
@@ -8822,27 +8822,132 @@ var DSProvider = function DSProvider(_ref) {
8822
8822
  }, children);
8823
8823
  };
8824
8824
 
8825
- var _excluded$19 = ["align", "className"];
8826
- var HorizontalRule$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
8827
- var align = props.align,
8825
+ var _excluded$19 = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
8826
+ /**
8827
+ * A component that renders list item `li` elements or description item `dt`
8828
+ * and `dd` elements based on the `type` prop. Note that the `title` prop will
8829
+ * only display for the `Description` list type.
8830
+ */
8831
+
8832
+ var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
8833
+ var children = props.children,
8828
8834
  className = props.className,
8835
+ id = props.id,
8836
+ _props$inline = props.inline,
8837
+ inline = _props$inline === void 0 ? false : _props$inline,
8838
+ listItems = props.listItems,
8839
+ _props$noStyling = props.noStyling,
8840
+ noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
8841
+ title = props.title,
8842
+ _props$type = props.type,
8843
+ type = _props$type === void 0 ? "ul" : _props$type,
8829
8844
  rest = _objectWithoutPropertiesLoose(props, _excluded$19);
8830
8845
 
8831
- var styles = useStyleConfig("HorizontalRule", {
8832
- align: align
8846
+ var styles = useStyleConfig("List", {
8847
+ inline: inline,
8848
+ noStyling: noStyling,
8849
+ variant: type
8833
8850
  });
8851
+ var listElement = null; // Either li/dt/dd children elements must be passed or the `listItems`
8852
+ // prop must be used.
8834
8853
 
8835
- var finalStyles = _extends({}, styles, {
8836
- height: "2px",
8837
- width: "100%"
8838
- });
8854
+ if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
8855
+ console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
8856
+ return null;
8857
+ }
8839
8858
 
8840
- return React__default.createElement(Box, Object.assign({
8841
- as: "hr",
8842
- className: className,
8843
- ref: ref,
8844
- __css: finalStyles
8845
- }, rest));
8859
+ if (!children && !listItems) {
8860
+ console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
8861
+ return null;
8862
+ }
8863
+ /**
8864
+ * This returns either the `children` elements passed to the `List` component
8865
+ * first, otherwise it will check and render the data passed into the
8866
+ * `listItems` props based on the `ListType` type. If it is of type unordered
8867
+ * or ordered, it will return `li` elements. Otherwise, it will return a
8868
+ * combination of `dt` and `dd` elements for the description type.
8869
+ */
8870
+
8871
+
8872
+ var listChildrenElms = function listChildrenElms(listType) {
8873
+ if (children) {
8874
+ return children;
8875
+ }
8876
+
8877
+ if (!listItems) {
8878
+ return null;
8879
+ }
8880
+
8881
+ if (listType === "ol" || listType === "ul") {
8882
+ return listItems.map(function (item, i) {
8883
+ return React__default.createElement("li", {
8884
+ key: i
8885
+ }, item);
8886
+ });
8887
+ } else if (listType === "dl") {
8888
+ return listItems.map(function (item, i) {
8889
+ return [React__default.createElement("dt", {
8890
+ key: i + "-term"
8891
+ }, item.term), React__default.createElement("dd", {
8892
+ key: i + "-des"
8893
+ }, item.description)];
8894
+ });
8895
+ }
8896
+
8897
+ return null;
8898
+ };
8899
+ /**
8900
+ * Checks for `li` elements and consoles a warning if the
8901
+ * children are different HTML elements.
8902
+ */
8903
+
8904
+
8905
+ var checkListChildrenError = function checkListChildrenError(listType) {
8906
+ React__default.Children.map(children, function (child) {
8907
+ var _child$props;
8908
+
8909
+ if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
8910
+ console.warn("NYPL Reservoir List: Direct children of `List` (" + listType + ") must be `<li>`s.");
8911
+ }
8912
+ });
8913
+ };
8914
+ /**
8915
+ * Checks for `dt` and `dd` elements and consoles a warning if the
8916
+ * children are different HTML elements.
8917
+ */
8918
+
8919
+
8920
+ var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
8921
+ React__default.Children.map(children, function (child) {
8922
+ if (child.type !== "dt" && child.type !== "dd" && child.type !== React__default.Fragment && child.props.mdxType !== "dt" && child.props.mdxType !== "dd" && child.props.mdxType !== React__default.Fragment) {
8923
+ console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
8924
+ }
8925
+ });
8926
+ };
8927
+
8928
+ if (type === "ol" || type === "ul") {
8929
+ checkListChildrenError(type);
8930
+ listElement = React__default.createElement(Box, Object.assign({
8931
+ as: type,
8932
+ id: id,
8933
+ className: className,
8934
+ ref: ref,
8935
+ __css: styles
8936
+ }, rest), listChildrenElms(type));
8937
+ } else if (type === "dl") {
8938
+ checkDescriptionChildrenError();
8939
+ listElement = React__default.createElement(Box, Object.assign({
8940
+ as: "section",
8941
+ id: id,
8942
+ className: className,
8943
+ ref: ref,
8944
+ __css: styles
8945
+ }, rest), title && React__default.createElement(Heading, {
8946
+ id: id + "-heading"
8947
+ }, title), React__default.createElement("dl", null, listChildrenElms(type)));
8948
+ }
8949
+
8950
+ return listElement;
8846
8951
  }));
8847
8952
 
8848
8953
  var _path$L, _path2$f, _path3$7;
@@ -11349,135 +11454,162 @@ var Logo$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
11349
11454
  }, childSVG);
11350
11455
  }));
11351
11456
 
11352
- var _excluded$1V = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
11457
+ var link$1 = {
11458
+ nyplLinks: [[{
11459
+ text: "Accessibility",
11460
+ href: "http://www.nypl.org/accessibility"
11461
+ }, {
11462
+ text: "Press",
11463
+ href: "http://www.nypl.org/help/about-nypl/media-center"
11464
+ }, {
11465
+ text: "Careers",
11466
+ href: "http://www.nypl.org/careers"
11467
+ }, {
11468
+ text: "Space Rental",
11469
+ href: "http://www.nypl.org/spacerental"
11470
+ }], [{
11471
+ text: "Privacy Policy",
11472
+ href: "http://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
11473
+ }, {
11474
+ text: "Other Policies",
11475
+ href: "http://www.nypl.org/policies"
11476
+ }, {
11477
+ text: "Terms & Conditions",
11478
+ href: "http://www.nypl.org/terms-conditions"
11479
+ }, {
11480
+ text: "Governance",
11481
+ href: "http://www.nypl.org/help/about-nypl/leadership/board-trustees"
11482
+ }], [{
11483
+ text: "Rules & Regulations",
11484
+ href: "http://www.nypl.org/help/about-nypl/legal-notices/rules-and-regulations"
11485
+ }, {
11486
+ text: "About NYPL",
11487
+ href: "http://www.nypl.org/help/about-nypl"
11488
+ }, {
11489
+ text: "Language",
11490
+ href: "http://www.nypl.org/language"
11491
+ }]],
11492
+ socialMedia: [{
11493
+ href: "https://www.facebook.com/nypl",
11494
+ iconName: "legacySocialFacebook",
11495
+ title: "NYPL on Facebook"
11496
+ }, {
11497
+ href: "https://twitter.com/nypl",
11498
+ iconName: "legacySocialTwitter",
11499
+ title: "NYPL on Twitter"
11500
+ }, {
11501
+ href: "https://instagram.com/nypl",
11502
+ iconName: "legacySocialInstagram",
11503
+ title: "NYPL on Instagram"
11504
+ }, {
11505
+ href: "https://www.youtube.com/user/NewYorkPublicLibrary",
11506
+ iconName: "legacySocialYoutube",
11507
+ title: "NYPL on Youtube"
11508
+ }]
11509
+ };
11510
+
11511
+ var _excluded$1V = ["className", "id"];
11353
11512
  /**
11354
- * A component that renders list item `li` elements or description item `dt`
11355
- * and `dd` elements based on the `type` prop. Note that the `title` prop will
11356
- * only display for the `Description` list type.
11513
+ * This `Footer` component renders the NYPL-branded footer elements such
11514
+ * as navigational NYPL.org links, social media links, copyright, and
11515
+ * NYPL building facade image.
11357
11516
  */
11358
11517
 
11359
- var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
11360
- var children = props.children,
11361
- className = props.className,
11362
- id = props.id,
11363
- _props$inline = props.inline,
11364
- inline = _props$inline === void 0 ? false : _props$inline,
11365
- listItems = props.listItems,
11366
- _props$noStyling = props.noStyling,
11367
- noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
11368
- title = props.title,
11369
- _props$type = props.type,
11370
- type = _props$type === void 0 ? "ul" : _props$type,
11371
- rest = _objectWithoutPropertiesLoose(props, _excluded$1V);
11372
-
11373
- var styles = useStyleConfig("List", {
11374
- inline: inline,
11375
- noStyling: noStyling,
11376
- variant: type
11377
- });
11378
- var listElement = null; // Either li/dt/dd children elements must be passed or the `listItems`
11379
- // prop must be used.
11380
-
11381
- if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
11382
- console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
11383
- return null;
11384
- }
11385
-
11386
- if (!children && !listItems) {
11387
- console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
11388
- return null;
11389
- }
11390
- /**
11391
- * This returns either the `children` elements passed to the `List` component
11392
- * first, otherwise it will check and render the data passed into the
11393
- * `listItems` props based on the `ListType` type. If it is of type unordered
11394
- * or ordered, it will return `li` elements. Otherwise, it will return a
11395
- * combination of `dt` and `dd` elements for the description type.
11396
- */
11397
-
11398
-
11399
- var listChildrenElms = function listChildrenElms(listType) {
11400
- if (children) {
11401
- return children;
11402
- }
11403
-
11404
- if (!listItems) {
11405
- return null;
11406
- }
11407
-
11408
- if (listType === "ol" || listType === "ul") {
11409
- return listItems.map(function (item, i) {
11410
- return React__default.createElement("li", {
11411
- key: i
11412
- }, item);
11413
- });
11414
- } else if (listType === "dl") {
11415
- return listItems.map(function (item, i) {
11416
- return [React__default.createElement("dt", {
11417
- key: i + "-term"
11418
- }, item.term), React__default.createElement("dd", {
11419
- key: i + "-des"
11420
- }, item.description)];
11421
- });
11422
- }
11423
-
11424
- return null;
11425
- };
11426
- /**
11427
- * Checks for `li` elements and consoles a warning if the
11428
- * children are different HTML elements.
11429
- */
11430
-
11431
-
11432
- var checkListChildrenError = function checkListChildrenError(listType) {
11433
- React__default.Children.map(children, function (child) {
11434
- var _child$props;
11518
+ var Footer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref, ref) {
11519
+ var className = _ref.className,
11520
+ _ref$id = _ref.id,
11521
+ id = _ref$id === void 0 ? "footer" : _ref$id,
11522
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1V);
11435
11523
 
11436
- if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
11437
- console.warn("NYPL Reservoir List: Direct children of `List` (" + listType + ") must be `<li>`s.");
11438
- }
11524
+ var styles = useMultiStyleConfig("Footer", {});
11525
+ var nyplLinks = link$1.nyplLinks.map(function (links, index) {
11526
+ return React__default.createElement(List$1, {
11527
+ key: index,
11528
+ listItems: links.map(function (link) {
11529
+ return React__default.createElement(Link, {
11530
+ href: link.href,
11531
+ key: link.text
11532
+ }, link.text);
11533
+ }),
11534
+ noStyling: true,
11535
+ type: "ul",
11536
+ __css: styles.footerLinksInner
11439
11537
  });
11440
- };
11441
- /**
11442
- * Checks for `dt` and `dd` elements and consoles a warning if the
11443
- * children are different HTML elements.
11444
- */
11538
+ });
11539
+ var socialLinks = link$1.socialMedia.map(function (link, index) {
11540
+ return React__default.createElement(Link, {
11541
+ href: link.href,
11542
+ key: index
11543
+ }, React__default.createElement(Icon, {
11544
+ decorative: false,
11545
+ name: link.iconName,
11546
+ size: "small",
11547
+ title: link.title
11548
+ }));
11549
+ });
11550
+ return React__default.createElement(Box, Object.assign({
11551
+ as: "footer",
11552
+ className: className,
11553
+ id: id,
11554
+ ref: ref,
11555
+ role: "contentinfo"
11556
+ }, rest, {
11557
+ __css: styles
11558
+ }), React__default.createElement(Box, {
11559
+ __css: styles.listsContainer
11560
+ }, React__default.createElement(List$1, {
11561
+ "data-testid": "text-links",
11562
+ listItems: nyplLinks,
11563
+ noStyling: true,
11564
+ type: "ul",
11565
+ __css: styles.footerLinksList
11566
+ }), React__default.createElement(List$1, {
11567
+ "data-testid": "social-media-links",
11568
+ listItems: socialLinks,
11569
+ noStyling: true,
11570
+ type: "ul",
11571
+ __css: styles.socialMediaList
11572
+ })), React__default.createElement(Box, {
11573
+ __css: styles.nyplInfoContainer
11574
+ }, React__default.createElement(Box, null, React__default.createElement(Image, {
11575
+ alt: "NYPL Main Building Facade",
11576
+ src: "https://cdn-d8.nypl.org/s3fs-public/2020-05/NYPL_MainFacadeRev2Cam2.png"
11577
+ })), React__default.createElement(Box, {
11578
+ __css: styles.copyright
11579
+ }, React__default.createElement("p", null, "\xA9 The New York Public Library, ", new Date().getFullYear()), React__default.createElement("p", null, "The New York Public Library is a 501(c)(3) | EIN 13-1887440"))), React__default.createElement(Box, {
11580
+ __css: styles.logoContainer
11581
+ }, React__default.createElement(Logo$1, {
11582
+ decorative: false,
11583
+ name: "nyplTextWhite",
11584
+ size: "small",
11585
+ title: "The New York Public Library"
11586
+ })));
11587
+ }));
11445
11588
 
11589
+ var _excluded$1W = ["align", "className"];
11590
+ var HorizontalRule$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
11591
+ var align = props.align,
11592
+ className = props.className,
11593
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1W);
11446
11594
 
11447
- var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
11448
- React__default.Children.map(children, function (child) {
11449
- if (child.type !== "dt" && child.type !== "dd" && child.type !== React__default.Fragment && child.props.mdxType !== "dt" && child.props.mdxType !== "dd" && child.props.mdxType !== React__default.Fragment) {
11450
- console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
11451
- }
11452
- });
11453
- };
11595
+ var styles = useStyleConfig("HorizontalRule", {
11596
+ align: align
11597
+ });
11454
11598
 
11455
- if (type === "ol" || type === "ul") {
11456
- checkListChildrenError(type);
11457
- listElement = React__default.createElement(Box, Object.assign({
11458
- as: type,
11459
- id: id,
11460
- className: className,
11461
- ref: ref,
11462
- __css: styles
11463
- }, rest), listChildrenElms(type));
11464
- } else if (type === "dl") {
11465
- checkDescriptionChildrenError();
11466
- listElement = React__default.createElement(Box, Object.assign({
11467
- as: "section",
11468
- id: id,
11469
- className: className,
11470
- ref: ref,
11471
- __css: styles
11472
- }, rest), title && React__default.createElement(Heading, {
11473
- id: id + "-heading"
11474
- }, title), React__default.createElement("dl", null, listChildrenElms(type)));
11475
- }
11599
+ var finalStyles = _extends({}, styles, {
11600
+ height: "2px",
11601
+ width: "100%"
11602
+ });
11476
11603
 
11477
- return listElement;
11604
+ return React__default.createElement(Box, Object.assign({
11605
+ as: "hr",
11606
+ className: className,
11607
+ ref: ref,
11608
+ __css: finalStyles
11609
+ }, rest));
11478
11610
  }));
11479
11611
 
11480
- var _excluded$1W = ["className", "id", "target"];
11612
+ var _excluded$1X = ["className", "id", "target"];
11481
11613
  /**
11482
11614
  * SkipNavigation is a component that is used to provide a navigational list of
11483
11615
  * links. The first link is used to skip to the main content of the page using
@@ -11490,7 +11622,7 @@ var SkipNavigation$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
11490
11622
  id = props.id,
11491
11623
  _props$target = props.target,
11492
11624
  target = _props$target === void 0 ? "#mainContent" : _props$target,
11493
- rest = _objectWithoutPropertiesLoose(props, _excluded$1W);
11625
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1X);
11494
11626
 
11495
11627
  var styles = useStyleConfig("SkipNavigation");
11496
11628
  return React__default.createElement(Box, Object.assign({
@@ -11511,7 +11643,7 @@ var SkipNavigation$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
11511
11643
  }, "Click to learn about accessibility at the Library"))));
11512
11644
  }));
11513
11645
 
11514
- var _excluded$1X = ["className", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
11646
+ var _excluded$1Y = ["className", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
11515
11647
  var Radio$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
11516
11648
  var className = props.className,
11517
11649
  helperText = props.helperText,
@@ -11532,7 +11664,7 @@ var Radio$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
11532
11664
  _props$showLabel = props.showLabel,
11533
11665
  showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
11534
11666
  value = props.value,
11535
- rest = _objectWithoutPropertiesLoose(props, _excluded$1X);
11667
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1Y);
11536
11668
 
11537
11669
  var styles = useMultiStyleConfig("Radio", {
11538
11670
  showLabel: showLabel
@@ -11579,7 +11711,7 @@ var Radio$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
11579
11711
  }, labelText)));
11580
11712
  }));
11581
11713
 
11582
- var _excluded$1Y = ["children", "className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
11714
+ var _excluded$1Z = ["children", "className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
11583
11715
  /**
11584
11716
  * RadioGroup is a wrapper for DS `Radio` components that renders as a fieldset
11585
11717
  * HTML element along with optional helper text. The `name` prop is essential
@@ -11615,7 +11747,7 @@ var RadioGroup$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
11615
11747
  showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
11616
11748
  _props$showRequiredLa = props.showRequiredLabel,
11617
11749
  showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
11618
- rest = _objectWithoutPropertiesLoose(props, _excluded$1Y);
11750
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1Z);
11619
11751
 
11620
11752
  var _React$useState = React__default.useState(defaultValue),
11621
11753
  value = _React$useState[0],
@@ -12720,7 +12852,7 @@ var HeaderMobileIconNav$1 = /*#__PURE__*/chakra(function () {
12720
12852
  }), React__default.createElement(HeaderMobileNavButton$1, null));
12721
12853
  });
12722
12854
 
12723
- var _excluded$1Z = ["children", "icon", "id", "isCentered", "notificationType"],
12855
+ var _excluded$1_ = ["children", "icon", "id", "isCentered", "notificationType"],
12724
12856
  _excluded2$5 = ["alignText", "children", "icon", "notificationType"],
12725
12857
  _excluded3$3 = ["ariaLabel", "className", "dismissible", "icon", "id", "isCentered", "noMargin", "notificationContent", "notificationHeading", "notificationType", "showIcon"];
12726
12858
  /**
@@ -12733,7 +12865,7 @@ var NotificationHeading$1 = /*#__PURE__*/chakra(function (props) {
12733
12865
  id = props.id,
12734
12866
  isCentered = props.isCentered,
12735
12867
  notificationType = props.notificationType,
12736
- rest = _objectWithoutPropertiesLoose(props, _excluded$1Z);
12868
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1_);
12737
12869
 
12738
12870
  var styles = useMultiStyleConfig("NotificationHeading", {
12739
12871
  icon: icon,
@@ -13239,7 +13371,7 @@ var Header$1 = /*#__PURE__*/chakra(function (_ref) {
13239
13371
  }))));
13240
13372
  });
13241
13373
 
13242
- var _excluded$1_ = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
13374
+ var _excluded$1$ = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
13243
13375
 
13244
13376
  var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
13245
13377
  var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
@@ -13255,7 +13387,7 @@ var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
13255
13387
  } : _props$imageProps,
13256
13388
  locationDetails = props.locationDetails,
13257
13389
  subHeaderText = props.subHeaderText,
13258
- rest = _objectWithoutPropertiesLoose(props, _excluded$1_);
13390
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1$);
13259
13391
 
13260
13392
  var styles = useMultiStyleConfig("Hero", {
13261
13393
  variant: heroType
@@ -13355,7 +13487,7 @@ var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
13355
13487
  }
13356
13488
  });
13357
13489
 
13358
- var _excluded$1$ = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
13490
+ var _excluded$20 = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
13359
13491
  _excluded2$6 = ["buttonText", "id", "modalProps"],
13360
13492
  _excluded3$4 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
13361
13493
  var BaseModal = /*#__PURE__*/chakra(function (_ref) {
@@ -13366,7 +13498,7 @@ var BaseModal = /*#__PURE__*/chakra(function (_ref) {
13366
13498
  id = _ref.id,
13367
13499
  isOpen = _ref.isOpen,
13368
13500
  onClose = _ref.onClose,
13369
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$1$);
13501
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$20);
13370
13502
 
13371
13503
  var xlarge = "xl";
13372
13504
  var fullSize = "full";
@@ -13457,7 +13589,7 @@ function useModal() {
13457
13589
  };
13458
13590
  }
13459
13591
 
13460
- var _excluded$20 = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
13592
+ var _excluded$21 = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
13461
13593
  /**
13462
13594
  * A component that provides a navigational list of page items.
13463
13595
  */
@@ -13471,7 +13603,7 @@ var Pagination$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
13471
13603
  initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
13472
13604
  onPageChange = props.onPageChange,
13473
13605
  pageCount = props.pageCount,
13474
- rest = _objectWithoutPropertiesLoose(props, _excluded$20);
13606
+ rest = _objectWithoutPropertiesLoose(props, _excluded$21);
13475
13607
 
13476
13608
  var refCurrentPage = useRef(currentPage);
13477
13609
 
@@ -13664,7 +13796,7 @@ var Pagination$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
13664
13796
  }, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
13665
13797
  }));
13666
13798
 
13667
- var _excluded$21 = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
13799
+ var _excluded$22 = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
13668
13800
  /**
13669
13801
  * A component that displays a progress status for any task that takes a long
13670
13802
  * time to complete or consists of multiple steps. Examples include downloading,
@@ -13686,7 +13818,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
13686
13818
  size = _props$size === void 0 ? "default" : _props$size,
13687
13819
  _props$value = props.value,
13688
13820
  value = _props$value === void 0 ? 0 : _props$value,
13689
- rest = _objectWithoutPropertiesLoose(props, _excluded$21);
13821
+ rest = _objectWithoutPropertiesLoose(props, _excluded$22);
13690
13822
 
13691
13823
  var styles = useMultiStyleConfig("ProgressIndicator", {
13692
13824
  darkMode: darkMode,
@@ -13753,7 +13885,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
13753
13885
  }, rest), progressComponent(indicatorType));
13754
13886
  }));
13755
13887
 
13756
- var _excluded$22 = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
13888
+ var _excluded$23 = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
13757
13889
  /**
13758
13890
  * Component that renders Chakra's `Select` component along with an accessible
13759
13891
  * `Label` and optional `HelperErrorText` component.
@@ -13787,7 +13919,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
13787
13919
  showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
13788
13920
  _props$value = props.value,
13789
13921
  value = _props$value === void 0 ? "" : _props$value,
13790
- rest = _objectWithoutPropertiesLoose(props, _excluded$22);
13922
+ rest = _objectWithoutPropertiesLoose(props, _excluded$23);
13791
13923
 
13792
13924
  var _useState = useState(0),
13793
13925
  labelWidth = _useState[0],
@@ -13873,7 +14005,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
13873
14005
  }), children)));
13874
14006
  }));
13875
14007
 
13876
- var _excluded$23 = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
14008
+ var _excluded$24 = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
13877
14009
  /**
13878
14010
  * Renders a wrapper `form` element to be used with `Select` (optional),
13879
14011
  * `Input`, and `Button` components together.
@@ -13902,7 +14034,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
13902
14034
  selectProps = props.selectProps,
13903
14035
  textInputElement = props.textInputElement,
13904
14036
  textInputProps = props.textInputProps,
13905
- rest = _objectWithoutPropertiesLoose(props, _excluded$23);
14037
+ rest = _objectWithoutPropertiesLoose(props, _excluded$24);
13906
14038
 
13907
14039
  var styles = useMultiStyleConfig("SearchBar", {});
13908
14040
  var stateProps = {
@@ -13996,7 +14128,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
13996
14128
  }, selectElem, textInputElem, buttonElem));
13997
14129
  }));
13998
14130
 
13999
- var _excluded$24 = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
14131
+ var _excluded$25 = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
14000
14132
  /**
14001
14133
  * The `SkeletonLoader` component renders a placeholder to be used while
14002
14134
  * dynamic content is loading.
@@ -14023,7 +14155,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
14023
14155
  _props$showImage = props.showImage,
14024
14156
  showImage = _props$showImage === void 0 ? true : _props$showImage,
14025
14157
  width = props.width,
14026
- rest = _objectWithoutPropertiesLoose(props, _excluded$24);
14158
+ rest = _objectWithoutPropertiesLoose(props, _excluded$25);
14027
14159
 
14028
14160
  var styles = useMultiStyleConfig("SkeletonLoader", {
14029
14161
  isBordered: isBordered,
@@ -14086,7 +14218,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
14086
14218
  })))));
14087
14219
  }));
14088
14220
 
14089
- var _excluded$25 = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step"];
14221
+ var _excluded$26 = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step"];
14090
14222
  /**
14091
14223
  * The `Slider` component renders a singular value slider or a range slider
14092
14224
  * with a min and max value. The value(s) can be updated through the slider
@@ -14127,7 +14259,7 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14127
14259
  showValues = _props$showValues === void 0 ? true : _props$showValues,
14128
14260
  _props$step = props.step,
14129
14261
  step = _props$step === void 0 ? 1 : _props$step,
14130
- rest = _objectWithoutPropertiesLoose(props, _excluded$25);
14262
+ rest = _objectWithoutPropertiesLoose(props, _excluded$26);
14131
14263
 
14132
14264
  if (!id) {
14133
14265
  console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
@@ -14317,7 +14449,7 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
14317
14449
  }, max), showBoxes && getTextInput("end")));
14318
14450
  }));
14319
14451
 
14320
- var _excluded$26 = ["children", "className", "id", "level"];
14452
+ var _excluded$27 = ["children", "className", "id", "level"];
14321
14453
  /**
14322
14454
  * The `StatusBadge` component is used to display a visual badge for three
14323
14455
  * different status levels.
@@ -14329,7 +14461,7 @@ var StatusBadge$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
14329
14461
  id = props.id,
14330
14462
  _props$level = props.level,
14331
14463
  level = _props$level === void 0 ? "low" : _props$level,
14332
- rest = _objectWithoutPropertiesLoose(props, _excluded$26);
14464
+ rest = _objectWithoutPropertiesLoose(props, _excluded$27);
14333
14465
 
14334
14466
  var styles = useStyleConfig("StatusBadge", {
14335
14467
  variant: level
@@ -14347,7 +14479,7 @@ var StatusBadge$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
14347
14479
  }, rest), children);
14348
14480
  }));
14349
14481
 
14350
- var _excluded$27 = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
14482
+ var _excluded$28 = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
14351
14483
  /**
14352
14484
  * Internal component used in the `StructuredContent` component
14353
14485
  * that renders the DS `Image` component.
@@ -14399,7 +14531,7 @@ var StructuredContent$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
14399
14531
  src: ""
14400
14532
  } : _props$imageProps,
14401
14533
  bodyContent = props.bodyContent,
14402
- rest = _objectWithoutPropertiesLoose(props, _excluded$27);
14534
+ rest = _objectWithoutPropertiesLoose(props, _excluded$28);
14403
14535
 
14404
14536
  var hasImage = imageProps.src || imageProps.component;
14405
14537
  var hasFigureImage = imageProps.caption || imageProps.credit;
@@ -14501,7 +14633,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
14501
14633
  };
14502
14634
  };
14503
14635
 
14504
- var _excluded$28 = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
14636
+ var _excluded$29 = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
14505
14637
  /**
14506
14638
  * An internal function used to update the hash in the URL.
14507
14639
  * This function is only used when `useHash` is `true`.
@@ -14620,7 +14752,7 @@ var Tabs = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
14620
14752
  tabsData = props.tabsData,
14621
14753
  _props$useHash = props.useHash,
14622
14754
  useHash = _props$useHash === void 0 ? false : _props$useHash,
14623
- rest = _objectWithoutPropertiesLoose(props, _excluded$28);
14755
+ rest = _objectWithoutPropertiesLoose(props, _excluded$29);
14624
14756
 
14625
14757
  var styles = useMultiStyleConfig("Tabs", {}); // Just an estimate of the tab width for the mobile carousel.
14626
14758
 
@@ -14710,7 +14842,7 @@ var Tabs = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
14710
14842
  }, React__default.createElement(Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
14711
14843
  })); // Tabs is also exported above so the props can display in Storybook.
14712
14844
 
14713
- var _excluded$29 = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
14845
+ var _excluded$2a = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
14714
14846
  /**
14715
14847
  * The main top-level parent component that wraps all template-related
14716
14848
  * components.
@@ -14958,7 +15090,7 @@ var TemplateAppContainer = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
14958
15090
  renderHeaderElement = _props$renderHeaderEl === void 0 ? true : _props$renderHeaderEl,
14959
15091
  _props$renderSkipNavi = props.renderSkipNavigation,
14960
15092
  renderSkipNavigation = _props$renderSkipNavi === void 0 ? false : _props$renderSkipNavi,
14961
- rest = _objectWithoutPropertiesLoose(props, _excluded$29);
15093
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2a);
14962
15094
 
14963
15095
  var aboveHeaderElem = aboveHeader && React__default.createElement(TemplateAboveHeader, null, aboveHeader);
14964
15096
  var contentTopElem = contentTop && React__default.createElement(TemplateContentTop, null, contentTop);
@@ -14977,7 +15109,7 @@ var TemplateAppContainer = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
14977
15109
  }, footer)));
14978
15110
  }));
14979
15111
 
14980
- var _excluded$2a = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
15112
+ var _excluded$2b = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
14981
15113
  var onChangeDefault = function onChangeDefault() {
14982
15114
  return;
14983
15115
  };
@@ -15004,7 +15136,7 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
15004
15136
  onChange = _props$onChange === void 0 ? onChangeDefault : _props$onChange,
15005
15137
  _props$size = props.size,
15006
15138
  size = _props$size === void 0 ? "default" : _props$size,
15007
- rest = _objectWithoutPropertiesLoose(props, _excluded$2a);
15139
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
15008
15140
 
15009
15141
  var styles = useMultiStyleConfig("Toggle", {
15010
15142
  isDisabled: isDisabled,
@@ -15053,7 +15185,7 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
15053
15185
  }), labelText)));
15054
15186
  }));
15055
15187
 
15056
- var _excluded$2b = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
15188
+ var _excluded$2c = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
15057
15189
  var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
15058
15190
  var aspectRatio = props.aspectRatio,
15059
15191
  className = props.className,
@@ -15067,7 +15199,7 @@ var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
15067
15199
  showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
15068
15200
  videoId = props.videoId,
15069
15201
  videoType = props.videoType,
15070
- rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
15202
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
15071
15203
 
15072
15204
  var iframeTitleFinal = videoType === "vimeo" ? iframeTitle || "Vimeo video player" : iframeTitle || "YouTube video player";
15073
15205
  var videoSrc = videoType === "vimeo" ? "https://player.vimeo.com/video/" + videoId + "?autoplay=0&loop=0" : "https://www.youtube.com/embed/" + videoId + "?disablekb=1&autoplay=0&fs=1&modestbranding=0";
@@ -15137,13 +15269,13 @@ var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
15137
15269
  }, embedElement)));
15138
15270
  }));
15139
15271
 
15140
- var _excluded$2c = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
15272
+ var _excluded$2d = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
15141
15273
  var Tooltip$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
15142
15274
  var children = props.children,
15143
15275
  content = props.content,
15144
15276
  isDisabled = props.isDisabled,
15145
15277
  shouldWrapChildren = props.shouldWrapChildren,
15146
- rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
15278
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2d);
15147
15279
 
15148
15280
  if (typeof content !== "string") {
15149
15281
  React__default.Children.map(content, function (contentChild) {
@@ -15169,5 +15301,5 @@ var Tooltip$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
15169
15301
  }, rest), newChildren);
15170
15302
  }));
15171
15303
 
15172
- export { Accordion, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, ColorCard, DSProvider, DatePicker, Fieldset, 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, 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 };
15304
+ export { Accordion, 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, 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 };
15173
15305
  //# sourceMappingURL=design-system-react-components.esm.js.map