@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.
@@ -8828,27 +8828,132 @@ var DSProvider = function DSProvider(_ref) {
8828
8828
  }, children);
8829
8829
  };
8830
8830
 
8831
- var _excluded$19 = ["align", "className"];
8832
- var HorizontalRule$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
8833
- var align = props.align,
8831
+ var _excluded$19 = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
8832
+ /**
8833
+ * A component that renders list item `li` elements or description item `dt`
8834
+ * and `dd` elements based on the `type` prop. Note that the `title` prop will
8835
+ * only display for the `Description` list type.
8836
+ */
8837
+
8838
+ var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
8839
+ var children = props.children,
8834
8840
  className = props.className,
8841
+ id = props.id,
8842
+ _props$inline = props.inline,
8843
+ inline = _props$inline === void 0 ? false : _props$inline,
8844
+ listItems = props.listItems,
8845
+ _props$noStyling = props.noStyling,
8846
+ noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
8847
+ title = props.title,
8848
+ _props$type = props.type,
8849
+ type = _props$type === void 0 ? "ul" : _props$type,
8835
8850
  rest = _objectWithoutPropertiesLoose(props, _excluded$19);
8836
8851
 
8837
- var styles = react.useStyleConfig("HorizontalRule", {
8838
- align: align
8852
+ var styles = react.useStyleConfig("List", {
8853
+ inline: inline,
8854
+ noStyling: noStyling,
8855
+ variant: type
8839
8856
  });
8857
+ var listElement = null; // Either li/dt/dd children elements must be passed or the `listItems`
8858
+ // prop must be used.
8840
8859
 
8841
- var finalStyles = _extends({}, styles, {
8842
- height: "2px",
8843
- width: "100%"
8844
- });
8860
+ if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
8861
+ console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
8862
+ return null;
8863
+ }
8845
8864
 
8846
- return React__default.createElement(react.Box, Object.assign({
8847
- as: "hr",
8848
- className: className,
8849
- ref: ref,
8850
- __css: finalStyles
8851
- }, rest));
8865
+ if (!children && !listItems) {
8866
+ console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
8867
+ return null;
8868
+ }
8869
+ /**
8870
+ * This returns either the `children` elements passed to the `List` component
8871
+ * first, otherwise it will check and render the data passed into the
8872
+ * `listItems` props based on the `ListType` type. If it is of type unordered
8873
+ * or ordered, it will return `li` elements. Otherwise, it will return a
8874
+ * combination of `dt` and `dd` elements for the description type.
8875
+ */
8876
+
8877
+
8878
+ var listChildrenElms = function listChildrenElms(listType) {
8879
+ if (children) {
8880
+ return children;
8881
+ }
8882
+
8883
+ if (!listItems) {
8884
+ return null;
8885
+ }
8886
+
8887
+ if (listType === "ol" || listType === "ul") {
8888
+ return listItems.map(function (item, i) {
8889
+ return React__default.createElement("li", {
8890
+ key: i
8891
+ }, item);
8892
+ });
8893
+ } else if (listType === "dl") {
8894
+ return listItems.map(function (item, i) {
8895
+ return [React__default.createElement("dt", {
8896
+ key: i + "-term"
8897
+ }, item.term), React__default.createElement("dd", {
8898
+ key: i + "-des"
8899
+ }, item.description)];
8900
+ });
8901
+ }
8902
+
8903
+ return null;
8904
+ };
8905
+ /**
8906
+ * Checks for `li` elements and consoles a warning if the
8907
+ * children are different HTML elements.
8908
+ */
8909
+
8910
+
8911
+ var checkListChildrenError = function checkListChildrenError(listType) {
8912
+ React__default.Children.map(children, function (child) {
8913
+ var _child$props;
8914
+
8915
+ if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
8916
+ console.warn("NYPL Reservoir List: Direct children of `List` (" + listType + ") must be `<li>`s.");
8917
+ }
8918
+ });
8919
+ };
8920
+ /**
8921
+ * Checks for `dt` and `dd` elements and consoles a warning if the
8922
+ * children are different HTML elements.
8923
+ */
8924
+
8925
+
8926
+ var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
8927
+ React__default.Children.map(children, function (child) {
8928
+ 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) {
8929
+ console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
8930
+ }
8931
+ });
8932
+ };
8933
+
8934
+ if (type === "ol" || type === "ul") {
8935
+ checkListChildrenError(type);
8936
+ listElement = React__default.createElement(react.Box, Object.assign({
8937
+ as: type,
8938
+ id: id,
8939
+ className: className,
8940
+ ref: ref,
8941
+ __css: styles
8942
+ }, rest), listChildrenElms(type));
8943
+ } else if (type === "dl") {
8944
+ checkDescriptionChildrenError();
8945
+ listElement = React__default.createElement(react.Box, Object.assign({
8946
+ as: "section",
8947
+ id: id,
8948
+ className: className,
8949
+ ref: ref,
8950
+ __css: styles
8951
+ }, rest), title && React__default.createElement(Heading, {
8952
+ id: id + "-heading"
8953
+ }, title), React__default.createElement("dl", null, listChildrenElms(type)));
8954
+ }
8955
+
8956
+ return listElement;
8852
8957
  }));
8853
8958
 
8854
8959
  var _path$L, _path2$f, _path3$7;
@@ -11355,135 +11460,162 @@ var Logo$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
11355
11460
  }, childSVG);
11356
11461
  }));
11357
11462
 
11358
- var _excluded$1V = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
11463
+ var link$1 = {
11464
+ nyplLinks: [[{
11465
+ text: "Accessibility",
11466
+ href: "http://www.nypl.org/accessibility"
11467
+ }, {
11468
+ text: "Press",
11469
+ href: "http://www.nypl.org/help/about-nypl/media-center"
11470
+ }, {
11471
+ text: "Careers",
11472
+ href: "http://www.nypl.org/careers"
11473
+ }, {
11474
+ text: "Space Rental",
11475
+ href: "http://www.nypl.org/spacerental"
11476
+ }], [{
11477
+ text: "Privacy Policy",
11478
+ href: "http://www.nypl.org/help/about-nypl/legal-notices/privacy-policy"
11479
+ }, {
11480
+ text: "Other Policies",
11481
+ href: "http://www.nypl.org/policies"
11482
+ }, {
11483
+ text: "Terms & Conditions",
11484
+ href: "http://www.nypl.org/terms-conditions"
11485
+ }, {
11486
+ text: "Governance",
11487
+ href: "http://www.nypl.org/help/about-nypl/leadership/board-trustees"
11488
+ }], [{
11489
+ text: "Rules & Regulations",
11490
+ href: "http://www.nypl.org/help/about-nypl/legal-notices/rules-and-regulations"
11491
+ }, {
11492
+ text: "About NYPL",
11493
+ href: "http://www.nypl.org/help/about-nypl"
11494
+ }, {
11495
+ text: "Language",
11496
+ href: "http://www.nypl.org/language"
11497
+ }]],
11498
+ socialMedia: [{
11499
+ href: "https://www.facebook.com/nypl",
11500
+ iconName: "legacySocialFacebook",
11501
+ title: "NYPL on Facebook"
11502
+ }, {
11503
+ href: "https://twitter.com/nypl",
11504
+ iconName: "legacySocialTwitter",
11505
+ title: "NYPL on Twitter"
11506
+ }, {
11507
+ href: "https://instagram.com/nypl",
11508
+ iconName: "legacySocialInstagram",
11509
+ title: "NYPL on Instagram"
11510
+ }, {
11511
+ href: "https://www.youtube.com/user/NewYorkPublicLibrary",
11512
+ iconName: "legacySocialYoutube",
11513
+ title: "NYPL on Youtube"
11514
+ }]
11515
+ };
11516
+
11517
+ var _excluded$1V = ["className", "id"];
11359
11518
  /**
11360
- * A component that renders list item `li` elements or description item `dt`
11361
- * and `dd` elements based on the `type` prop. Note that the `title` prop will
11362
- * only display for the `Description` list type.
11519
+ * This `Footer` component renders the NYPL-branded footer elements such
11520
+ * as navigational NYPL.org links, social media links, copyright, and
11521
+ * NYPL building facade image.
11363
11522
  */
11364
11523
 
11365
- var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
11366
- var children = props.children,
11367
- className = props.className,
11368
- id = props.id,
11369
- _props$inline = props.inline,
11370
- inline = _props$inline === void 0 ? false : _props$inline,
11371
- listItems = props.listItems,
11372
- _props$noStyling = props.noStyling,
11373
- noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
11374
- title = props.title,
11375
- _props$type = props.type,
11376
- type = _props$type === void 0 ? "ul" : _props$type,
11377
- rest = _objectWithoutPropertiesLoose(props, _excluded$1V);
11378
-
11379
- var styles = react.useStyleConfig("List", {
11380
- inline: inline,
11381
- noStyling: noStyling,
11382
- variant: type
11383
- });
11384
- var listElement = null; // Either li/dt/dd children elements must be passed or the `listItems`
11385
- // prop must be used.
11386
-
11387
- if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
11388
- console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
11389
- return null;
11390
- }
11391
-
11392
- if (!children && !listItems) {
11393
- console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
11394
- return null;
11395
- }
11396
- /**
11397
- * This returns either the `children` elements passed to the `List` component
11398
- * first, otherwise it will check and render the data passed into the
11399
- * `listItems` props based on the `ListType` type. If it is of type unordered
11400
- * or ordered, it will return `li` elements. Otherwise, it will return a
11401
- * combination of `dt` and `dd` elements for the description type.
11402
- */
11403
-
11404
-
11405
- var listChildrenElms = function listChildrenElms(listType) {
11406
- if (children) {
11407
- return children;
11408
- }
11409
-
11410
- if (!listItems) {
11411
- return null;
11412
- }
11413
-
11414
- if (listType === "ol" || listType === "ul") {
11415
- return listItems.map(function (item, i) {
11416
- return React__default.createElement("li", {
11417
- key: i
11418
- }, item);
11419
- });
11420
- } else if (listType === "dl") {
11421
- return listItems.map(function (item, i) {
11422
- return [React__default.createElement("dt", {
11423
- key: i + "-term"
11424
- }, item.term), React__default.createElement("dd", {
11425
- key: i + "-des"
11426
- }, item.description)];
11427
- });
11428
- }
11429
-
11430
- return null;
11431
- };
11432
- /**
11433
- * Checks for `li` elements and consoles a warning if the
11434
- * children are different HTML elements.
11435
- */
11436
-
11437
-
11438
- var checkListChildrenError = function checkListChildrenError(listType) {
11439
- React__default.Children.map(children, function (child) {
11440
- var _child$props;
11524
+ var Footer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (_ref, ref) {
11525
+ var className = _ref.className,
11526
+ _ref$id = _ref.id,
11527
+ id = _ref$id === void 0 ? "footer" : _ref$id,
11528
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$1V);
11441
11529
 
11442
- if (child && (child == null ? void 0 : child.type) !== "li" && (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) !== "li") {
11443
- console.warn("NYPL Reservoir List: Direct children of `List` (" + listType + ") must be `<li>`s.");
11444
- }
11530
+ var styles = react.useMultiStyleConfig("Footer", {});
11531
+ var nyplLinks = link$1.nyplLinks.map(function (links, index) {
11532
+ return React__default.createElement(List$1, {
11533
+ key: index,
11534
+ listItems: links.map(function (link) {
11535
+ return React__default.createElement(Link, {
11536
+ href: link.href,
11537
+ key: link.text
11538
+ }, link.text);
11539
+ }),
11540
+ noStyling: true,
11541
+ type: "ul",
11542
+ __css: styles.footerLinksInner
11445
11543
  });
11446
- };
11447
- /**
11448
- * Checks for `dt` and `dd` elements and consoles a warning if the
11449
- * children are different HTML elements.
11450
- */
11544
+ });
11545
+ var socialLinks = link$1.socialMedia.map(function (link, index) {
11546
+ return React__default.createElement(Link, {
11547
+ href: link.href,
11548
+ key: index
11549
+ }, React__default.createElement(Icon, {
11550
+ decorative: false,
11551
+ name: link.iconName,
11552
+ size: "small",
11553
+ title: link.title
11554
+ }));
11555
+ });
11556
+ return React__default.createElement(react.Box, Object.assign({
11557
+ as: "footer",
11558
+ className: className,
11559
+ id: id,
11560
+ ref: ref,
11561
+ role: "contentinfo"
11562
+ }, rest, {
11563
+ __css: styles
11564
+ }), React__default.createElement(react.Box, {
11565
+ __css: styles.listsContainer
11566
+ }, React__default.createElement(List$1, {
11567
+ "data-testid": "text-links",
11568
+ listItems: nyplLinks,
11569
+ noStyling: true,
11570
+ type: "ul",
11571
+ __css: styles.footerLinksList
11572
+ }), React__default.createElement(List$1, {
11573
+ "data-testid": "social-media-links",
11574
+ listItems: socialLinks,
11575
+ noStyling: true,
11576
+ type: "ul",
11577
+ __css: styles.socialMediaList
11578
+ })), React__default.createElement(react.Box, {
11579
+ __css: styles.nyplInfoContainer
11580
+ }, React__default.createElement(react.Box, null, React__default.createElement(Image, {
11581
+ alt: "NYPL Main Building Facade",
11582
+ src: "https://cdn-d8.nypl.org/s3fs-public/2020-05/NYPL_MainFacadeRev2Cam2.png"
11583
+ })), React__default.createElement(react.Box, {
11584
+ __css: styles.copyright
11585
+ }, 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(react.Box, {
11586
+ __css: styles.logoContainer
11587
+ }, React__default.createElement(Logo$1, {
11588
+ decorative: false,
11589
+ name: "nyplTextWhite",
11590
+ size: "small",
11591
+ title: "The New York Public Library"
11592
+ })));
11593
+ }));
11451
11594
 
11595
+ var _excluded$1W = ["align", "className"];
11596
+ var HorizontalRule$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
11597
+ var align = props.align,
11598
+ className = props.className,
11599
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1W);
11452
11600
 
11453
- var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
11454
- React__default.Children.map(children, function (child) {
11455
- 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) {
11456
- console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
11457
- }
11458
- });
11459
- };
11601
+ var styles = react.useStyleConfig("HorizontalRule", {
11602
+ align: align
11603
+ });
11460
11604
 
11461
- if (type === "ol" || type === "ul") {
11462
- checkListChildrenError(type);
11463
- listElement = React__default.createElement(react.Box, Object.assign({
11464
- as: type,
11465
- id: id,
11466
- className: className,
11467
- ref: ref,
11468
- __css: styles
11469
- }, rest), listChildrenElms(type));
11470
- } else if (type === "dl") {
11471
- checkDescriptionChildrenError();
11472
- listElement = React__default.createElement(react.Box, Object.assign({
11473
- as: "section",
11474
- id: id,
11475
- className: className,
11476
- ref: ref,
11477
- __css: styles
11478
- }, rest), title && React__default.createElement(Heading, {
11479
- id: id + "-heading"
11480
- }, title), React__default.createElement("dl", null, listChildrenElms(type)));
11481
- }
11605
+ var finalStyles = _extends({}, styles, {
11606
+ height: "2px",
11607
+ width: "100%"
11608
+ });
11482
11609
 
11483
- return listElement;
11610
+ return React__default.createElement(react.Box, Object.assign({
11611
+ as: "hr",
11612
+ className: className,
11613
+ ref: ref,
11614
+ __css: finalStyles
11615
+ }, rest));
11484
11616
  }));
11485
11617
 
11486
- var _excluded$1W = ["className", "id", "target"];
11618
+ var _excluded$1X = ["className", "id", "target"];
11487
11619
  /**
11488
11620
  * SkipNavigation is a component that is used to provide a navigational list of
11489
11621
  * links. The first link is used to skip to the main content of the page using
@@ -11496,7 +11628,7 @@ var SkipNavigation$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
11496
11628
  id = props.id,
11497
11629
  _props$target = props.target,
11498
11630
  target = _props$target === void 0 ? "#mainContent" : _props$target,
11499
- rest = _objectWithoutPropertiesLoose(props, _excluded$1W);
11631
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1X);
11500
11632
 
11501
11633
  var styles = react.useStyleConfig("SkipNavigation");
11502
11634
  return React__default.createElement(react.Box, Object.assign({
@@ -11517,7 +11649,7 @@ var SkipNavigation$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
11517
11649
  }, "Click to learn about accessibility at the Library"))));
11518
11650
  }));
11519
11651
 
11520
- var _excluded$1X = ["className", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
11652
+ var _excluded$1Y = ["className", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
11521
11653
  var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
11522
11654
  var className = props.className,
11523
11655
  helperText = props.helperText,
@@ -11538,7 +11670,7 @@ var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
11538
11670
  _props$showLabel = props.showLabel,
11539
11671
  showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
11540
11672
  value = props.value,
11541
- rest = _objectWithoutPropertiesLoose(props, _excluded$1X);
11673
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1Y);
11542
11674
 
11543
11675
  var styles = react.useMultiStyleConfig("Radio", {
11544
11676
  showLabel: showLabel
@@ -11585,7 +11717,7 @@ var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
11585
11717
  }, labelText)));
11586
11718
  }));
11587
11719
 
11588
- var _excluded$1Y = ["children", "className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
11720
+ var _excluded$1Z = ["children", "className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
11589
11721
  /**
11590
11722
  * RadioGroup is a wrapper for DS `Radio` components that renders as a fieldset
11591
11723
  * HTML element along with optional helper text. The `name` prop is essential
@@ -11621,7 +11753,7 @@ var RadioGroup$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
11621
11753
  showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
11622
11754
  _props$showRequiredLa = props.showRequiredLabel,
11623
11755
  showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
11624
- rest = _objectWithoutPropertiesLoose(props, _excluded$1Y);
11756
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1Z);
11625
11757
 
11626
11758
  var _React$useState = React__default.useState(defaultValue),
11627
11759
  value = _React$useState[0],
@@ -12726,7 +12858,7 @@ var HeaderMobileIconNav$1 = /*#__PURE__*/react.chakra(function () {
12726
12858
  }), React__default.createElement(HeaderMobileNavButton$1, null));
12727
12859
  });
12728
12860
 
12729
- var _excluded$1Z = ["children", "icon", "id", "isCentered", "notificationType"],
12861
+ var _excluded$1_ = ["children", "icon", "id", "isCentered", "notificationType"],
12730
12862
  _excluded2$5 = ["alignText", "children", "icon", "notificationType"],
12731
12863
  _excluded3$3 = ["ariaLabel", "className", "dismissible", "icon", "id", "isCentered", "noMargin", "notificationContent", "notificationHeading", "notificationType", "showIcon"];
12732
12864
  /**
@@ -12739,7 +12871,7 @@ var NotificationHeading$1 = /*#__PURE__*/react.chakra(function (props) {
12739
12871
  id = props.id,
12740
12872
  isCentered = props.isCentered,
12741
12873
  notificationType = props.notificationType,
12742
- rest = _objectWithoutPropertiesLoose(props, _excluded$1Z);
12874
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1_);
12743
12875
 
12744
12876
  var styles = react.useMultiStyleConfig("NotificationHeading", {
12745
12877
  icon: icon,
@@ -13245,7 +13377,7 @@ var Header$1 = /*#__PURE__*/react.chakra(function (_ref) {
13245
13377
  }))));
13246
13378
  });
13247
13379
 
13248
- var _excluded$1_ = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
13380
+ var _excluded$1$ = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
13249
13381
 
13250
13382
  var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
13251
13383
  var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
@@ -13261,7 +13393,7 @@ var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
13261
13393
  } : _props$imageProps,
13262
13394
  locationDetails = props.locationDetails,
13263
13395
  subHeaderText = props.subHeaderText,
13264
- rest = _objectWithoutPropertiesLoose(props, _excluded$1_);
13396
+ rest = _objectWithoutPropertiesLoose(props, _excluded$1$);
13265
13397
 
13266
13398
  var styles = react.useMultiStyleConfig("Hero", {
13267
13399
  variant: heroType
@@ -13361,7 +13493,7 @@ var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
13361
13493
  }
13362
13494
  });
13363
13495
 
13364
- var _excluded$1$ = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
13496
+ var _excluded$20 = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
13365
13497
  _excluded2$6 = ["buttonText", "id", "modalProps"],
13366
13498
  _excluded3$4 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
13367
13499
  var BaseModal = /*#__PURE__*/react.chakra(function (_ref) {
@@ -13372,7 +13504,7 @@ var BaseModal = /*#__PURE__*/react.chakra(function (_ref) {
13372
13504
  id = _ref.id,
13373
13505
  isOpen = _ref.isOpen,
13374
13506
  onClose = _ref.onClose,
13375
- rest = _objectWithoutPropertiesLoose(_ref, _excluded$1$);
13507
+ rest = _objectWithoutPropertiesLoose(_ref, _excluded$20);
13376
13508
 
13377
13509
  var xlarge = "xl";
13378
13510
  var fullSize = "full";
@@ -13463,7 +13595,7 @@ function useModal() {
13463
13595
  };
13464
13596
  }
13465
13597
 
13466
- var _excluded$20 = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
13598
+ var _excluded$21 = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
13467
13599
  /**
13468
13600
  * A component that provides a navigational list of page items.
13469
13601
  */
@@ -13477,7 +13609,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
13477
13609
  initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
13478
13610
  onPageChange = props.onPageChange,
13479
13611
  pageCount = props.pageCount,
13480
- rest = _objectWithoutPropertiesLoose(props, _excluded$20);
13612
+ rest = _objectWithoutPropertiesLoose(props, _excluded$21);
13481
13613
 
13482
13614
  var refCurrentPage = React.useRef(currentPage);
13483
13615
 
@@ -13670,7 +13802,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
13670
13802
  }, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
13671
13803
  }));
13672
13804
 
13673
- var _excluded$21 = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
13805
+ var _excluded$22 = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
13674
13806
  /**
13675
13807
  * A component that displays a progress status for any task that takes a long
13676
13808
  * time to complete or consists of multiple steps. Examples include downloading,
@@ -13692,7 +13824,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
13692
13824
  size = _props$size === void 0 ? "default" : _props$size,
13693
13825
  _props$value = props.value,
13694
13826
  value = _props$value === void 0 ? 0 : _props$value,
13695
- rest = _objectWithoutPropertiesLoose(props, _excluded$21);
13827
+ rest = _objectWithoutPropertiesLoose(props, _excluded$22);
13696
13828
 
13697
13829
  var styles = react.useMultiStyleConfig("ProgressIndicator", {
13698
13830
  darkMode: darkMode,
@@ -13759,7 +13891,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
13759
13891
  }, rest), progressComponent(indicatorType));
13760
13892
  }));
13761
13893
 
13762
- var _excluded$22 = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
13894
+ var _excluded$23 = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
13763
13895
  /**
13764
13896
  * Component that renders Chakra's `Select` component along with an accessible
13765
13897
  * `Label` and optional `HelperErrorText` component.
@@ -13793,7 +13925,7 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
13793
13925
  showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
13794
13926
  _props$value = props.value,
13795
13927
  value = _props$value === void 0 ? "" : _props$value,
13796
- rest = _objectWithoutPropertiesLoose(props, _excluded$22);
13928
+ rest = _objectWithoutPropertiesLoose(props, _excluded$23);
13797
13929
 
13798
13930
  var _useState = React.useState(0),
13799
13931
  labelWidth = _useState[0],
@@ -13879,7 +14011,7 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
13879
14011
  }), children)));
13880
14012
  }));
13881
14013
 
13882
- var _excluded$23 = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
14014
+ var _excluded$24 = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
13883
14015
  /**
13884
14016
  * Renders a wrapper `form` element to be used with `Select` (optional),
13885
14017
  * `Input`, and `Button` components together.
@@ -13908,7 +14040,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
13908
14040
  selectProps = props.selectProps,
13909
14041
  textInputElement = props.textInputElement,
13910
14042
  textInputProps = props.textInputProps,
13911
- rest = _objectWithoutPropertiesLoose(props, _excluded$23);
14043
+ rest = _objectWithoutPropertiesLoose(props, _excluded$24);
13912
14044
 
13913
14045
  var styles = react.useMultiStyleConfig("SearchBar", {});
13914
14046
  var stateProps = {
@@ -14002,7 +14134,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
14002
14134
  }, selectElem, textInputElem, buttonElem));
14003
14135
  }));
14004
14136
 
14005
- var _excluded$24 = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
14137
+ var _excluded$25 = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
14006
14138
  /**
14007
14139
  * The `SkeletonLoader` component renders a placeholder to be used while
14008
14140
  * dynamic content is loading.
@@ -14029,7 +14161,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
14029
14161
  _props$showImage = props.showImage,
14030
14162
  showImage = _props$showImage === void 0 ? true : _props$showImage,
14031
14163
  width = props.width,
14032
- rest = _objectWithoutPropertiesLoose(props, _excluded$24);
14164
+ rest = _objectWithoutPropertiesLoose(props, _excluded$25);
14033
14165
 
14034
14166
  var styles = react.useMultiStyleConfig("SkeletonLoader", {
14035
14167
  isBordered: isBordered,
@@ -14092,7 +14224,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
14092
14224
  })))));
14093
14225
  }));
14094
14226
 
14095
- var _excluded$25 = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step"];
14227
+ var _excluded$26 = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step"];
14096
14228
  /**
14097
14229
  * The `Slider` component renders a singular value slider or a range slider
14098
14230
  * with a min and max value. The value(s) can be updated through the slider
@@ -14133,7 +14265,7 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
14133
14265
  showValues = _props$showValues === void 0 ? true : _props$showValues,
14134
14266
  _props$step = props.step,
14135
14267
  step = _props$step === void 0 ? 1 : _props$step,
14136
- rest = _objectWithoutPropertiesLoose(props, _excluded$25);
14268
+ rest = _objectWithoutPropertiesLoose(props, _excluded$26);
14137
14269
 
14138
14270
  if (!id) {
14139
14271
  console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
@@ -14323,7 +14455,7 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
14323
14455
  }, max), showBoxes && getTextInput("end")));
14324
14456
  }));
14325
14457
 
14326
- var _excluded$26 = ["children", "className", "id", "level"];
14458
+ var _excluded$27 = ["children", "className", "id", "level"];
14327
14459
  /**
14328
14460
  * The `StatusBadge` component is used to display a visual badge for three
14329
14461
  * different status levels.
@@ -14335,7 +14467,7 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
14335
14467
  id = props.id,
14336
14468
  _props$level = props.level,
14337
14469
  level = _props$level === void 0 ? "low" : _props$level,
14338
- rest = _objectWithoutPropertiesLoose(props, _excluded$26);
14470
+ rest = _objectWithoutPropertiesLoose(props, _excluded$27);
14339
14471
 
14340
14472
  var styles = react.useStyleConfig("StatusBadge", {
14341
14473
  variant: level
@@ -14353,7 +14485,7 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
14353
14485
  }, rest), children);
14354
14486
  }));
14355
14487
 
14356
- var _excluded$27 = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
14488
+ var _excluded$28 = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
14357
14489
  /**
14358
14490
  * Internal component used in the `StructuredContent` component
14359
14491
  * that renders the DS `Image` component.
@@ -14405,7 +14537,7 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
14405
14537
  src: ""
14406
14538
  } : _props$imageProps,
14407
14539
  bodyContent = props.bodyContent,
14408
- rest = _objectWithoutPropertiesLoose(props, _excluded$27);
14540
+ rest = _objectWithoutPropertiesLoose(props, _excluded$28);
14409
14541
 
14410
14542
  var hasImage = imageProps.src || imageProps.component;
14411
14543
  var hasFigureImage = imageProps.caption || imageProps.credit;
@@ -14507,7 +14639,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
14507
14639
  };
14508
14640
  };
14509
14641
 
14510
- var _excluded$28 = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
14642
+ var _excluded$29 = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
14511
14643
  /**
14512
14644
  * An internal function used to update the hash in the URL.
14513
14645
  * This function is only used when `useHash` is `true`.
@@ -14626,7 +14758,7 @@ var Tabs = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
14626
14758
  tabsData = props.tabsData,
14627
14759
  _props$useHash = props.useHash,
14628
14760
  useHash = _props$useHash === void 0 ? false : _props$useHash,
14629
- rest = _objectWithoutPropertiesLoose(props, _excluded$28);
14761
+ rest = _objectWithoutPropertiesLoose(props, _excluded$29);
14630
14762
 
14631
14763
  var styles = react.useMultiStyleConfig("Tabs", {}); // Just an estimate of the tab width for the mobile carousel.
14632
14764
 
@@ -14716,7 +14848,7 @@ var Tabs = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
14716
14848
  }, React__default.createElement(react.Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
14717
14849
  })); // Tabs is also exported above so the props can display in Storybook.
14718
14850
 
14719
- var _excluded$29 = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
14851
+ var _excluded$2a = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
14720
14852
  /**
14721
14853
  * The main top-level parent component that wraps all template-related
14722
14854
  * components.
@@ -14964,7 +15096,7 @@ var TemplateAppContainer = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forward
14964
15096
  renderHeaderElement = _props$renderHeaderEl === void 0 ? true : _props$renderHeaderEl,
14965
15097
  _props$renderSkipNavi = props.renderSkipNavigation,
14966
15098
  renderSkipNavigation = _props$renderSkipNavi === void 0 ? false : _props$renderSkipNavi,
14967
- rest = _objectWithoutPropertiesLoose(props, _excluded$29);
15099
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2a);
14968
15100
 
14969
15101
  var aboveHeaderElem = aboveHeader && React__default.createElement(TemplateAboveHeader, null, aboveHeader);
14970
15102
  var contentTopElem = contentTop && React__default.createElement(TemplateContentTop, null, contentTop);
@@ -14983,7 +15115,7 @@ var TemplateAppContainer = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forward
14983
15115
  }, footer)));
14984
15116
  }));
14985
15117
 
14986
- var _excluded$2a = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
15118
+ var _excluded$2b = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
14987
15119
  var onChangeDefault = function onChangeDefault() {
14988
15120
  return;
14989
15121
  };
@@ -15010,7 +15142,7 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
15010
15142
  onChange = _props$onChange === void 0 ? onChangeDefault : _props$onChange,
15011
15143
  _props$size = props.size,
15012
15144
  size = _props$size === void 0 ? "default" : _props$size,
15013
- rest = _objectWithoutPropertiesLoose(props, _excluded$2a);
15145
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
15014
15146
 
15015
15147
  var styles = react.useMultiStyleConfig("Toggle", {
15016
15148
  isDisabled: isDisabled,
@@ -15059,7 +15191,7 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
15059
15191
  }), labelText)));
15060
15192
  }));
15061
15193
 
15062
- var _excluded$2b = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
15194
+ var _excluded$2c = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
15063
15195
  var VideoPlayer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
15064
15196
  var aspectRatio = props.aspectRatio,
15065
15197
  className = props.className,
@@ -15073,7 +15205,7 @@ var VideoPlayer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
15073
15205
  showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
15074
15206
  videoId = props.videoId,
15075
15207
  videoType = props.videoType,
15076
- rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
15208
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
15077
15209
 
15078
15210
  var iframeTitleFinal = videoType === "vimeo" ? iframeTitle || "Vimeo video player" : iframeTitle || "YouTube video player";
15079
15211
  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";
@@ -15143,13 +15275,13 @@ var VideoPlayer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
15143
15275
  }, embedElement)));
15144
15276
  }));
15145
15277
 
15146
- var _excluded$2c = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
15278
+ var _excluded$2d = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
15147
15279
  var Tooltip$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
15148
15280
  var children = props.children,
15149
15281
  content = props.content,
15150
15282
  isDisabled = props.isDisabled,
15151
15283
  shouldWrapChildren = props.shouldWrapChildren,
15152
- rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
15284
+ rest = _objectWithoutPropertiesLoose(props, _excluded$2d);
15153
15285
 
15154
15286
  if (typeof content !== "string") {
15155
15287
  React__default.Children.map(content, function (contentChild) {
@@ -15309,6 +15441,7 @@ exports.ColorCard = ColorCard;
15309
15441
  exports.DSProvider = DSProvider;
15310
15442
  exports.DatePicker = DatePicker;
15311
15443
  exports.Fieldset = Fieldset;
15444
+ exports.Footer = Footer$1;
15312
15445
  exports.Form = Form;
15313
15446
  exports.FormField = FormField;
15314
15447
  exports.FormRow = FormRow;