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