@nypl/design-system-react-components 1.3.1 → 1.4.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.
- package/dist/components/FilterBar/FilterBar.d.ts +111 -0
- package/dist/components/FilterBar/FilterBar.stories.d.ts +7 -0
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +6 -6
- package/dist/components/MultiSelect/MultiSelect.d.ts +78 -0
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +4 -0
- package/dist/components/MultiSelect/MultiSelectDialog.d.ts +8 -0
- package/dist/components/MultiSelect/MultiSelectListbox.d.ts +9 -0
- package/dist/components/MultiSelect/MultiSelectMenuButton.d.ts +27 -0
- package/dist/components/MultiSelectGroup/MultiSelectGroup.d.ts +26 -0
- package/dist/components/MultiSelectGroup/MultiSelectGroup.stories.d.ts +4 -0
- package/dist/components/Slider/Slider.d.ts +2 -0
- package/dist/design-system-react-components.cjs.development.js +1424 -306
- 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 +1421 -308
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/hooks/__tests__/useFilterBar.test.d.ts +1 -0
- package/dist/hooks/__tests__/useMultiSelect.test.d.ts +1 -0
- package/dist/hooks/useFilterBar.d.ts +21 -0
- package/dist/hooks/useMultiSelect.d.ts +15 -0
- package/dist/index.d.ts +5 -0
- package/dist/theme/components/feedbackBox.d.ts +6 -0
- package/dist/theme/components/filterBar.d.ts +30 -0
- package/dist/theme/components/link.d.ts +22 -0
- package/dist/theme/components/multiSelect.d.ts +29 -0
- package/dist/theme/components/multiSelectMenuButton.d.ts +72 -0
- package/dist/utils/utils.d.ts +4 -0
- package/package.json +1 -1
- package/CHANGELOG.md +0 -1738
|
@@ -12,6 +12,7 @@ var reactIntersectionObserver = require('react-intersection-observer');
|
|
|
12
12
|
var ReactDatePicker = _interopDefault(require('react-datepicker'));
|
|
13
13
|
var themeTools = require('@chakra-ui/theme-tools');
|
|
14
14
|
var system = require('@chakra-ui/system');
|
|
15
|
+
var downshift = require('downshift');
|
|
15
16
|
var FocusLock = _interopDefault(require('@chakra-ui/focus-lock'));
|
|
16
17
|
var Cookies = _interopDefault(require('js-cookie'));
|
|
17
18
|
var ReactGA = _interopDefault(require('react-ga'));
|
|
@@ -42,6 +43,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
42
43
|
}
|
|
43
44
|
return target;
|
|
44
45
|
}
|
|
46
|
+
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
47
|
+
if (!raw) {
|
|
48
|
+
raw = strings.slice(0);
|
|
49
|
+
}
|
|
50
|
+
strings.raw = raw;
|
|
51
|
+
return strings;
|
|
52
|
+
}
|
|
45
53
|
|
|
46
54
|
var _path, _path2, _path3;
|
|
47
55
|
var _excluded = ["title", "titleId"];
|
|
@@ -1602,16 +1610,20 @@ function getWithDirectionIcon(children, type, linkId) {
|
|
|
1602
1610
|
});
|
|
1603
1611
|
return React__default.createElement(React__default.Fragment, null, type === "backwards" && icon, children, type === "forwards" && icon);
|
|
1604
1612
|
}
|
|
1605
|
-
function
|
|
1613
|
+
function getExternalExtraElements(children, linkId, styles) {
|
|
1606
1614
|
var iconId = linkId + "-icon";
|
|
1607
|
-
var
|
|
1615
|
+
var extraElements = React__default.createElement(React__default.Fragment, null, React__default.createElement(react.Box, {
|
|
1616
|
+
as: "span",
|
|
1617
|
+
__css: styles
|
|
1618
|
+
}, "This link opens in a new window"), React__default.createElement(Icon, {
|
|
1608
1619
|
align: "right",
|
|
1609
1620
|
className: "more-link",
|
|
1610
1621
|
id: iconId,
|
|
1611
1622
|
name: "actionLaunch",
|
|
1612
|
-
size: "medium"
|
|
1613
|
-
|
|
1614
|
-
|
|
1623
|
+
size: "medium",
|
|
1624
|
+
title: "External link"
|
|
1625
|
+
}));
|
|
1626
|
+
return React__default.createElement(React__default.Fragment, null, children, extraElements);
|
|
1615
1627
|
}
|
|
1616
1628
|
/**
|
|
1617
1629
|
* A component that uses an `href` prop or a child anchor element, to create
|
|
@@ -1640,12 +1652,16 @@ var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
1640
1652
|
if (type === "action" || type === "forwards" || type === "backwards" || type === "external") {
|
|
1641
1653
|
variant = "moreLink";
|
|
1642
1654
|
} else if (type.includes("button")) {
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1655
|
+
/** This deprecation warning is temporarily being removed, but it will be
|
|
1656
|
+
* reinstated once teams are able to update their `Link`s appropriately. */
|
|
1657
|
+
// if (type === "button") {
|
|
1658
|
+
// console.warn(
|
|
1659
|
+
// `NYPL Reservoir Link: The "button" type is deprecated. Instead, use either "buttonPrimary", "buttonSecondary", "buttonPill", "buttonCallout", "buttonNoBrand", or "buttonDisabled".`
|
|
1660
|
+
// );
|
|
1661
|
+
// }
|
|
1646
1662
|
variant = type;
|
|
1647
1663
|
}
|
|
1648
|
-
var
|
|
1664
|
+
var styles = react.useMultiStyleConfig("Link", {
|
|
1649
1665
|
variant: variant
|
|
1650
1666
|
});
|
|
1651
1667
|
var rel = type === "external" ? "nofollow" : null;
|
|
@@ -1653,7 +1669,7 @@ var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
1653
1669
|
// Render with specific direction arrows if the type is
|
|
1654
1670
|
// "forwards" or "backwards". Or render with the launch icon
|
|
1655
1671
|
// if the type is "external". Otherwise, do not add an icon.
|
|
1656
|
-
var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" &&
|
|
1672
|
+
var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" && getExternalExtraElements(children, id, styles.srOnly) || children;
|
|
1657
1673
|
if (!href) {
|
|
1658
1674
|
// React Types error makes this fail:
|
|
1659
1675
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32832
|
|
@@ -1665,7 +1681,7 @@ var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
1665
1681
|
var childProps = childrenToClone.props;
|
|
1666
1682
|
return React__default.createElement(react.Box, Object.assign({
|
|
1667
1683
|
as: "span",
|
|
1668
|
-
__css:
|
|
1684
|
+
__css: styles
|
|
1669
1685
|
}, rest), React__default.cloneElement(childrenToClone, _extends({
|
|
1670
1686
|
className: className
|
|
1671
1687
|
}, linkProps, childProps, {
|
|
@@ -1682,7 +1698,7 @@ var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
1682
1698
|
onClick: onClick,
|
|
1683
1699
|
target: target
|
|
1684
1700
|
}, linkProps, {
|
|
1685
|
-
__css:
|
|
1701
|
+
__css: styles
|
|
1686
1702
|
}), newChildren);
|
|
1687
1703
|
}
|
|
1688
1704
|
}));
|
|
@@ -1781,13 +1797,12 @@ var HelperErrorText = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(f
|
|
|
1781
1797
|
text = _ref.text,
|
|
1782
1798
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
1783
1799
|
// Only announce the text in the invalid state.
|
|
1784
|
-
var announceAriaLive = isInvalid;
|
|
1785
1800
|
var styles = react.useStyleConfig("HelperErrorText", {
|
|
1786
1801
|
isInvalid: isInvalid
|
|
1787
1802
|
});
|
|
1788
1803
|
var props = _extends({
|
|
1789
1804
|
"aria-atomic": ariaAtomic,
|
|
1790
|
-
"aria-live":
|
|
1805
|
+
"aria-live": ariaLive === "off" ? undefined : ariaLive,
|
|
1791
1806
|
className: className,
|
|
1792
1807
|
"data-isinvalid": isInvalid,
|
|
1793
1808
|
id: id,
|
|
@@ -2268,19 +2283,22 @@ var ButtonGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
2268
2283
|
buttonWidth: finalButtonWidth
|
|
2269
2284
|
});
|
|
2270
2285
|
React__default.Children.map(children, function (child, key) {
|
|
2271
|
-
if ((child
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2286
|
+
if (React__default.isValidElement(child)) {
|
|
2287
|
+
if (child.type !== Button) {
|
|
2288
|
+
// Special case for Storybook MDX documentation.
|
|
2289
|
+
// @ts-ignore
|
|
2290
|
+
if (child.props.mdxType && child.props.mdxType === "Button") ; else {
|
|
2291
|
+
console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
|
|
2292
|
+
return;
|
|
2293
|
+
}
|
|
2276
2294
|
}
|
|
2295
|
+
var disabledProps = isDisabled ? {
|
|
2296
|
+
isDisabled: isDisabled
|
|
2297
|
+
} : {};
|
|
2298
|
+
newChildren.push(React__default.cloneElement(child, _extends({
|
|
2299
|
+
key: key
|
|
2300
|
+
}, disabledProps)));
|
|
2277
2301
|
}
|
|
2278
|
-
var disabledProps = isDisabled ? {
|
|
2279
|
-
isDisabled: isDisabled
|
|
2280
|
-
} : {};
|
|
2281
|
-
child && newChildren.push(React__default.cloneElement(child, _extends({
|
|
2282
|
-
key: key
|
|
2283
|
-
}, disabledProps)));
|
|
2284
2302
|
});
|
|
2285
2303
|
return React__default.createElement(react.Stack, Object.assign({
|
|
2286
2304
|
className: className,
|
|
@@ -3026,8 +3044,7 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
3026
3044
|
"data-testid": "checkbox-group",
|
|
3027
3045
|
direction: [layout],
|
|
3028
3046
|
spacing: spacingProp,
|
|
3029
|
-
ref: ref
|
|
3030
|
-
"aria-label": !showLabel ? labelText : undefined
|
|
3047
|
+
ref: ref
|
|
3031
3048
|
}, newChildren)), footnote && showHelperInvalidText && React__default.createElement(HelperErrorText, {
|
|
3032
3049
|
id: id + "-helperErrorText",
|
|
3033
3050
|
isInvalid: isInvalid,
|
|
@@ -3630,12 +3647,18 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3630
3647
|
});
|
|
3631
3648
|
var isTextArea = type === "textarea";
|
|
3632
3649
|
var isHidden = type === "hidden";
|
|
3650
|
+
var hasAutocomplete = false;
|
|
3633
3651
|
var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
|
|
3634
3652
|
var internalOnChange = function internalOnChange(e) {
|
|
3635
3653
|
setFinalValue(e.target.value);
|
|
3636
3654
|
onChange && onChange(e);
|
|
3637
3655
|
};
|
|
3638
3656
|
var footnote = isInvalid ? finalInvalidText : helperText;
|
|
3657
|
+
if (type === "tel" || type === "url" || type === "email") {
|
|
3658
|
+
hasAutocomplete = true;
|
|
3659
|
+
var example = TextInputFormats[type] || "";
|
|
3660
|
+
footnote = React__default.createElement(React__default.Fragment, null, "Ex: ", example, React__default.createElement("br", null), footnote);
|
|
3661
|
+
}
|
|
3639
3662
|
var ariaAttributes = getAriaAttrs({
|
|
3640
3663
|
footnote: footnote,
|
|
3641
3664
|
id: id,
|
|
@@ -3665,10 +3688,6 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3665
3688
|
finalIsInvalid = true;
|
|
3666
3689
|
console.warn("NYPL Reservoir TextInput: The `min` prop is greater than the `max` prop.");
|
|
3667
3690
|
}
|
|
3668
|
-
if (type === "tel" || type === "url" || type === "email") {
|
|
3669
|
-
var example = TextInputFormats[type] || "";
|
|
3670
|
-
footnote = React__default.createElement(React__default.Fragment, null, "Ex: ", example, React__default.createElement("br", null), footnote);
|
|
3671
|
-
}
|
|
3672
3691
|
// When the type is "hidden", the input element needs fewer attributes.
|
|
3673
3692
|
options = isHidden ? {
|
|
3674
3693
|
defaultValue: defaultValue,
|
|
@@ -3679,6 +3698,7 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
3679
3698
|
ref: finalRef
|
|
3680
3699
|
} : _extends({
|
|
3681
3700
|
"aria-required": isRequired,
|
|
3701
|
+
autocomplete: hasAutocomplete ? type : null,
|
|
3682
3702
|
defaultValue: defaultValue,
|
|
3683
3703
|
id: id,
|
|
3684
3704
|
isDisabled: isDisabled,
|
|
@@ -4268,9 +4288,9 @@ var breakpoints = /*#__PURE__*/themeTools.createBreakpoints({
|
|
|
4268
4288
|
var black = "#000";
|
|
4269
4289
|
var white = "#fff";
|
|
4270
4290
|
var grayDark = "#616161";
|
|
4271
|
-
var grayxxxxDark = "#
|
|
4272
|
-
var grayxxxDark = "#
|
|
4273
|
-
var grayxxDark = "#
|
|
4291
|
+
var grayxxxxDark = "#191919";
|
|
4292
|
+
var grayxxxDark = "#252525";
|
|
4293
|
+
var grayxxDark = "#2E2E2E";
|
|
4274
4294
|
var grayxDark = "#424242";
|
|
4275
4295
|
var grayMedium = "#BDBDBD";
|
|
4276
4296
|
var grayLightCool = "#E9E9E9";
|
|
@@ -4362,26 +4382,26 @@ var colors = {
|
|
|
4362
4382
|
secondary: grayxxDark
|
|
4363
4383
|
},
|
|
4364
4384
|
error: {
|
|
4365
|
-
primary: "#
|
|
4366
|
-
secondary: "#
|
|
4385
|
+
primary: "#E1767B",
|
|
4386
|
+
secondary: "#F08F93"
|
|
4367
4387
|
},
|
|
4368
|
-
focus: "#
|
|
4388
|
+
focus: "#6090E3",
|
|
4369
4389
|
link: {
|
|
4370
|
-
primary: "#
|
|
4371
|
-
secondary: "#
|
|
4390
|
+
primary: "#79B7EB",
|
|
4391
|
+
secondary: "#95CFFF"
|
|
4372
4392
|
},
|
|
4373
4393
|
status: {
|
|
4374
|
-
primary: "#
|
|
4375
|
-
secondary: "#
|
|
4394
|
+
primary: "#B69C46",
|
|
4395
|
+
secondary: "#CB8E7C"
|
|
4376
4396
|
},
|
|
4377
4397
|
success: {
|
|
4378
|
-
primary: "#
|
|
4379
|
-
secondary: "#
|
|
4398
|
+
primary: "#52AA60",
|
|
4399
|
+
secondary: "#81C88A"
|
|
4380
4400
|
},
|
|
4381
4401
|
test: "#592B22",
|
|
4382
4402
|
warning: {
|
|
4383
|
-
primary: "#
|
|
4384
|
-
secondary: "#
|
|
4403
|
+
primary: "#DC8034",
|
|
4404
|
+
secondary: "#F1A66A"
|
|
4385
4405
|
},
|
|
4386
4406
|
// Semantic colors
|
|
4387
4407
|
bg: {
|
|
@@ -4945,7 +4965,7 @@ var text = function text(_ref4) {
|
|
|
4945
4965
|
bg: "transparent"
|
|
4946
4966
|
},
|
|
4947
4967
|
_hover: {
|
|
4948
|
-
bg: "
|
|
4968
|
+
bg: "ui.link.primary-05",
|
|
4949
4969
|
color: "ui.link.secondary"
|
|
4950
4970
|
}
|
|
4951
4971
|
});
|
|
@@ -4981,9 +5001,9 @@ var iconOnly = function iconOnly(_ref6) {
|
|
|
4981
5001
|
paddingInlineStart: "inset.narrow",
|
|
4982
5002
|
paddingInlineEnd: "inset.narrow",
|
|
4983
5003
|
_hover: {
|
|
4984
|
-
bg: "ui.
|
|
4985
|
-
borderColor: "ui.link.
|
|
4986
|
-
color: "ui.link.
|
|
5004
|
+
bg: "ui.link.primary-05",
|
|
5005
|
+
borderColor: "ui.link.secondary",
|
|
5006
|
+
color: "ui.link.secondary"
|
|
4987
5007
|
}
|
|
4988
5008
|
});
|
|
4989
5009
|
};
|
|
@@ -5602,8 +5622,14 @@ var FeedbackBox = {
|
|
|
5602
5622
|
parts: ["closeButton", "drawerBody", "drawerContent", "drawerHeader", "openButton"],
|
|
5603
5623
|
baseStyle: {
|
|
5604
5624
|
closeButton: {
|
|
5625
|
+
/** This is overriding the default min-height value in order to keep the
|
|
5626
|
+
* button spacing symmetrical. */
|
|
5627
|
+
minHeight: "40px",
|
|
5628
|
+
right: "xs",
|
|
5605
5629
|
p: "0",
|
|
5606
|
-
|
|
5630
|
+
position: "absolute",
|
|
5631
|
+
span: /*#__PURE__*/screenreaderOnly(),
|
|
5632
|
+
top: "xs"
|
|
5607
5633
|
},
|
|
5608
5634
|
drawerBody: {
|
|
5609
5635
|
paddingTop: "m",
|
|
@@ -5623,8 +5649,8 @@ var FeedbackBox = {
|
|
|
5623
5649
|
display: "flex",
|
|
5624
5650
|
fontSize: "text.default",
|
|
5625
5651
|
px: "m",
|
|
5626
|
-
paddingTop: "
|
|
5627
|
-
paddingBottom: "
|
|
5652
|
+
paddingTop: "s",
|
|
5653
|
+
paddingBottom: "s",
|
|
5628
5654
|
p: {
|
|
5629
5655
|
marginBottom: "0"
|
|
5630
5656
|
}
|
|
@@ -5651,6 +5677,37 @@ var Fieldset$1 = {
|
|
|
5651
5677
|
}
|
|
5652
5678
|
};
|
|
5653
5679
|
|
|
5680
|
+
var filterBarWidth = {
|
|
5681
|
+
"default": {
|
|
5682
|
+
width: {
|
|
5683
|
+
base: "100%",
|
|
5684
|
+
md: "265px"
|
|
5685
|
+
}
|
|
5686
|
+
},
|
|
5687
|
+
full: {
|
|
5688
|
+
width: "100%"
|
|
5689
|
+
}
|
|
5690
|
+
};
|
|
5691
|
+
var FilterBar = {
|
|
5692
|
+
parts: ["modalHeader", "modalFooter", "modalCloseButton", "globalButtonGroup", "globalButtonGroupWrapper"],
|
|
5693
|
+
baseStyle: function baseStyle(_ref) {
|
|
5694
|
+
var width = _ref.width;
|
|
5695
|
+
return {
|
|
5696
|
+
width: "full",
|
|
5697
|
+
modalHeader: {
|
|
5698
|
+
bg: "ui.gray.x-light-cool"
|
|
5699
|
+
},
|
|
5700
|
+
modalFooter: {
|
|
5701
|
+
bg: "ui.gray.x-light-cool"
|
|
5702
|
+
},
|
|
5703
|
+
modalCloseButton: {
|
|
5704
|
+
mt: "8px"
|
|
5705
|
+
},
|
|
5706
|
+
globalButtonGroupWrapper: _extends({}, filterBarWidth[width])
|
|
5707
|
+
};
|
|
5708
|
+
}
|
|
5709
|
+
};
|
|
5710
|
+
|
|
5654
5711
|
var footerGray = "#54514A";
|
|
5655
5712
|
var Footer = {
|
|
5656
5713
|
baseStyle: {
|
|
@@ -6732,14 +6789,18 @@ var variants = {
|
|
|
6732
6789
|
})
|
|
6733
6790
|
};
|
|
6734
6791
|
var Link$1 = {
|
|
6792
|
+
parts: ["srOnly"],
|
|
6735
6793
|
baseStyle: /*#__PURE__*/_extends({}, baseLinkStyles, {
|
|
6736
|
-
|
|
6737
|
-
|
|
6794
|
+
/** This is needed for custom anchor elements or link components
|
|
6795
|
+
* that are passed as children to the `Link` component. */
|
|
6738
6796
|
a: {
|
|
6739
6797
|
_hover: {
|
|
6740
6798
|
color: "ui.link.secondary"
|
|
6741
6799
|
}
|
|
6742
|
-
}
|
|
6800
|
+
},
|
|
6801
|
+
/** The element will handle descriptive text added to aid
|
|
6802
|
+
* screen readers. */
|
|
6803
|
+
srOnly: /*#__PURE__*/screenreaderOnly()
|
|
6743
6804
|
}),
|
|
6744
6805
|
variants: variants
|
|
6745
6806
|
};
|
|
@@ -7375,6 +7436,202 @@ var Logo = {
|
|
|
7375
7436
|
}
|
|
7376
7437
|
};
|
|
7377
7438
|
|
|
7439
|
+
var multiSelectWidths = {
|
|
7440
|
+
"default": {
|
|
7441
|
+
width: {
|
|
7442
|
+
base: "100%",
|
|
7443
|
+
md: "250px"
|
|
7444
|
+
}
|
|
7445
|
+
},
|
|
7446
|
+
fitContent: {
|
|
7447
|
+
width: {
|
|
7448
|
+
base: "100%",
|
|
7449
|
+
md: "fit-content"
|
|
7450
|
+
},
|
|
7451
|
+
minWidth: {
|
|
7452
|
+
md: "175px"
|
|
7453
|
+
}
|
|
7454
|
+
},
|
|
7455
|
+
full: {
|
|
7456
|
+
width: "100%"
|
|
7457
|
+
}
|
|
7458
|
+
};
|
|
7459
|
+
var MultiSelect = {
|
|
7460
|
+
parts: ["actionButtons", "menu", "menuButton", "menuContainer", "menuChildren"],
|
|
7461
|
+
baseStyle: function baseStyle(_ref) {
|
|
7462
|
+
var isBlockElement = _ref.isBlockElement,
|
|
7463
|
+
isOpen = _ref.isOpen,
|
|
7464
|
+
_ref$width = _ref.width,
|
|
7465
|
+
width = _ref$width === void 0 ? "default" : _ref$width;
|
|
7466
|
+
return _extends({}, multiSelectWidths[width], {
|
|
7467
|
+
position: "relative",
|
|
7468
|
+
actionButtons: {
|
|
7469
|
+
borderTop: "1px solid",
|
|
7470
|
+
borderColor: "ui.gray.medium",
|
|
7471
|
+
gap: {
|
|
7472
|
+
base: "0",
|
|
7473
|
+
md: "s"
|
|
7474
|
+
},
|
|
7475
|
+
justifyContent: "flex-end",
|
|
7476
|
+
padding: {
|
|
7477
|
+
base: "s",
|
|
7478
|
+
md: "xs"
|
|
7479
|
+
},
|
|
7480
|
+
width: "auto"
|
|
7481
|
+
},
|
|
7482
|
+
menuContainer: _extends({
|
|
7483
|
+
backgroundColor: "white",
|
|
7484
|
+
position: {
|
|
7485
|
+
md: isBlockElement ? "relative" : "absolute"
|
|
7486
|
+
},
|
|
7487
|
+
display: isOpen ? "block" : "none",
|
|
7488
|
+
zIndex: isBlockElement ? 0 : 9999
|
|
7489
|
+
}, width === "fitContent" && {
|
|
7490
|
+
minWidth: {
|
|
7491
|
+
md: "275px"
|
|
7492
|
+
},
|
|
7493
|
+
maxWidth: {
|
|
7494
|
+
md: "375px"
|
|
7495
|
+
}
|
|
7496
|
+
}, {
|
|
7497
|
+
width: "100%",
|
|
7498
|
+
// These are for active states
|
|
7499
|
+
boxSizing: "border-box",
|
|
7500
|
+
border: "1px solid",
|
|
7501
|
+
borderBottomLeftRadius: "button.default",
|
|
7502
|
+
borderBottomRightRadius: "button.default",
|
|
7503
|
+
borderTopLeftRadius: "0",
|
|
7504
|
+
borderTopRightRadius: "0",
|
|
7505
|
+
borderColor: "ui.gray.dark",
|
|
7506
|
+
marginTop: "-1px",
|
|
7507
|
+
paddingX: 0,
|
|
7508
|
+
paddingY: 0,
|
|
7509
|
+
ul: {
|
|
7510
|
+
m: 0,
|
|
7511
|
+
px: 0,
|
|
7512
|
+
py: "xs",
|
|
7513
|
+
li: {
|
|
7514
|
+
p: 0,
|
|
7515
|
+
div: {
|
|
7516
|
+
px: "s",
|
|
7517
|
+
paddingTop: "xs",
|
|
7518
|
+
paddingBottom: "6px",
|
|
7519
|
+
_hover: {
|
|
7520
|
+
bg: "ui.gray.x-light-cool"
|
|
7521
|
+
}
|
|
7522
|
+
}
|
|
7523
|
+
},
|
|
7524
|
+
ul: {
|
|
7525
|
+
py: 0,
|
|
7526
|
+
li: {
|
|
7527
|
+
div: {
|
|
7528
|
+
paddingLeft: "46px",
|
|
7529
|
+
paddingRight: 0
|
|
7530
|
+
}
|
|
7531
|
+
}
|
|
7532
|
+
}
|
|
7533
|
+
}
|
|
7534
|
+
}),
|
|
7535
|
+
menu: {
|
|
7536
|
+
paddingX: "xs",
|
|
7537
|
+
// Controls the height of the multiselect menu, before scroll bar.
|
|
7538
|
+
maxHeight: {
|
|
7539
|
+
base: "100%",
|
|
7540
|
+
md: "285px"
|
|
7541
|
+
},
|
|
7542
|
+
overflowX: {
|
|
7543
|
+
base: "hidden"
|
|
7544
|
+
},
|
|
7545
|
+
overflowY: {
|
|
7546
|
+
base: "auto"
|
|
7547
|
+
},
|
|
7548
|
+
_focus: {
|
|
7549
|
+
outline: "0px !important"
|
|
7550
|
+
}
|
|
7551
|
+
},
|
|
7552
|
+
menuChildren: {
|
|
7553
|
+
paddingLeft: "m",
|
|
7554
|
+
marginBottom: 0
|
|
7555
|
+
}
|
|
7556
|
+
});
|
|
7557
|
+
}
|
|
7558
|
+
};
|
|
7559
|
+
|
|
7560
|
+
var MultiSelectMenuButton = {
|
|
7561
|
+
parts: ["buttonLabel", "menuButton", "selectedItemsCountButton", "toggleIcon"],
|
|
7562
|
+
baseStyle: function baseStyle(_ref) {
|
|
7563
|
+
var _ref$hasSelectedItems = _ref.hasSelectedItems,
|
|
7564
|
+
hasSelectedItems = _ref$hasSelectedItems === void 0 ? false : _ref$hasSelectedItems,
|
|
7565
|
+
_ref$isOpen = _ref.isOpen,
|
|
7566
|
+
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen;
|
|
7567
|
+
return {
|
|
7568
|
+
buttonLabel: {
|
|
7569
|
+
justifyContent: "flex-start",
|
|
7570
|
+
overflow: "hidden",
|
|
7571
|
+
marginLeft: hasSelectedItems ? "50px" : "0",
|
|
7572
|
+
marginRight: "l",
|
|
7573
|
+
textAlign: "left",
|
|
7574
|
+
textOverflow: "ellipsis",
|
|
7575
|
+
whiteSpace: "nowrap",
|
|
7576
|
+
transition: "margin 150ms ease-out"
|
|
7577
|
+
},
|
|
7578
|
+
menuButton: {
|
|
7579
|
+
alignItems: "center",
|
|
7580
|
+
backgroundColor: isOpen ? "ui.bg.active" : "ui.white",
|
|
7581
|
+
borderBottomLeftRadius: isOpen ? "0" : "button.default",
|
|
7582
|
+
borderBottomRightRadius: isOpen ? "0" : "button.default",
|
|
7583
|
+
borderColor: isOpen ? "ui.gray.dark" : "ui.gray.medium",
|
|
7584
|
+
borderRadius: "button.default",
|
|
7585
|
+
borderWidth: "1px",
|
|
7586
|
+
fontSize: "button.default",
|
|
7587
|
+
minHeight: {
|
|
7588
|
+
base: defaultElementSizes.mobileFieldHeight,
|
|
7589
|
+
md: "auto"
|
|
7590
|
+
},
|
|
7591
|
+
px: "s",
|
|
7592
|
+
py: "xs",
|
|
7593
|
+
display: "inline-flex",
|
|
7594
|
+
justifyContent: "space-between",
|
|
7595
|
+
width: "100%",
|
|
7596
|
+
_hover: {
|
|
7597
|
+
backgroundColor: isOpen ? "ui.bg.active" : "ui.white",
|
|
7598
|
+
borderColor: "ui.gray.dark"
|
|
7599
|
+
},
|
|
7600
|
+
svg: {
|
|
7601
|
+
marginTop: "0"
|
|
7602
|
+
}
|
|
7603
|
+
},
|
|
7604
|
+
selectedItemsCountButton: {
|
|
7605
|
+
alignItems: "center",
|
|
7606
|
+
backgroundColor: "ui.gray.light-cool",
|
|
7607
|
+
border: "1px",
|
|
7608
|
+
borderRadius: "20px",
|
|
7609
|
+
borderColor: isOpen ? "ui.border.hover" : "ui.border.default",
|
|
7610
|
+
display: "flex",
|
|
7611
|
+
flexShrink: 0,
|
|
7612
|
+
fontSize: "text.tag",
|
|
7613
|
+
justifyContent: "flex-end",
|
|
7614
|
+
left: "15px",
|
|
7615
|
+
marginRight: "xs",
|
|
7616
|
+
position: "absolute",
|
|
7617
|
+
top: {
|
|
7618
|
+
base: "12px",
|
|
7619
|
+
md: "10px"
|
|
7620
|
+
},
|
|
7621
|
+
width: "46px",
|
|
7622
|
+
_hover: {
|
|
7623
|
+
borderColor: isOpen ? "ui.gray.xx-dark" : "ui.border.hover"
|
|
7624
|
+
},
|
|
7625
|
+
svg: {
|
|
7626
|
+
marginLeft: "xxs",
|
|
7627
|
+
marginRight: "6px",
|
|
7628
|
+
marginTop: "0"
|
|
7629
|
+
}
|
|
7630
|
+
}
|
|
7631
|
+
};
|
|
7632
|
+
}
|
|
7633
|
+
};
|
|
7634
|
+
|
|
7378
7635
|
var Notification = {
|
|
7379
7636
|
parts: ["container", "dismissibleButton", "icon"],
|
|
7380
7637
|
baseStyle: function baseStyle(_ref) {
|
|
@@ -8953,6 +9210,7 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
|
|
|
8953
9210
|
DatePicker: DatePicker$1,
|
|
8954
9211
|
FeedbackBox: FeedbackBox,
|
|
8955
9212
|
Fieldset: Fieldset$1,
|
|
9213
|
+
FilterBar: FilterBar,
|
|
8956
9214
|
Footer: Footer,
|
|
8957
9215
|
Header: Header,
|
|
8958
9216
|
HeaderLogin: HeaderLogin,
|
|
@@ -8973,7 +9231,9 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
|
|
|
8973
9231
|
Label: Label$1,
|
|
8974
9232
|
Link: Link$1,
|
|
8975
9233
|
List: List,
|
|
8976
|
-
Logo: Logo
|
|
9234
|
+
Logo: Logo,
|
|
9235
|
+
MultiSelect: MultiSelect,
|
|
9236
|
+
MultiSelectMenuButton: MultiSelectMenuButton
|
|
8977
9237
|
}, NotificationStyles, {
|
|
8978
9238
|
Pagination: Pagination,
|
|
8979
9239
|
ProgressIndicator: ProgressIndicator,
|
|
@@ -9291,7 +9551,6 @@ var RadioGroup$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
9291
9551
|
});
|
|
9292
9552
|
// Props for the `ChakraRadioGroup` component.
|
|
9293
9553
|
var radioGroupProps = {
|
|
9294
|
-
"aria-label": !showLabel ? labelText : undefined,
|
|
9295
9554
|
name: name,
|
|
9296
9555
|
onChange: function onChange(selected) {
|
|
9297
9556
|
setValue(selected);
|
|
@@ -9474,6 +9733,9 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9474
9733
|
setComment = _useFeedbackBoxReduce.setComment,
|
|
9475
9734
|
setEmail = _useFeedbackBoxReduce.setEmail,
|
|
9476
9735
|
clearValues = _useFeedbackBoxReduce.clearValues;
|
|
9736
|
+
// Hook into NYPL breakpoint
|
|
9737
|
+
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
9738
|
+
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
9477
9739
|
// Chakra's hook to control Drawer's actions.
|
|
9478
9740
|
var disclosure = react.useDisclosure();
|
|
9479
9741
|
var finalIsOpen = isOpen ? isOpen : disclosure.isOpen;
|
|
@@ -9486,11 +9748,13 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9486
9748
|
var isErrorView = viewType === "error";
|
|
9487
9749
|
var confirmationTimeout = 3000;
|
|
9488
9750
|
var maxCommentCharacters = 500;
|
|
9489
|
-
var initMinHeight =
|
|
9751
|
+
var initMinHeight = 165;
|
|
9490
9752
|
var initTemplateRows = "auto 1fr";
|
|
9491
|
-
var minHeightWithCategory =
|
|
9492
|
-
var minHeightWithEmail =
|
|
9493
|
-
var minHeightWithCategoryAndEmail =
|
|
9753
|
+
var minHeightWithCategory = 235;
|
|
9754
|
+
var minHeightWithEmail = 275;
|
|
9755
|
+
var minHeightWithCategoryAndEmail = 345;
|
|
9756
|
+
var notificationHeightAdjustment = 37;
|
|
9757
|
+
var descriptionHeightAdjustment = 24;
|
|
9494
9758
|
var drawerMinHeight = initMinHeight;
|
|
9495
9759
|
var closeAndResetForm = function closeAndResetForm() {
|
|
9496
9760
|
finalOnClose();
|
|
@@ -9517,16 +9781,18 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9517
9781
|
"> div": {
|
|
9518
9782
|
py: "xs"
|
|
9519
9783
|
}
|
|
9520
|
-
}
|
|
9784
|
+
},
|
|
9785
|
+
width: "100%"
|
|
9521
9786
|
}) : undefined;
|
|
9522
9787
|
var descriptionElement = isFormView && descriptionText ? React__default.createElement(Text, {
|
|
9523
9788
|
fontWeight: "medium",
|
|
9524
|
-
|
|
9789
|
+
noSpace: true
|
|
9525
9790
|
}, descriptionText) : undefined;
|
|
9526
9791
|
var privacyPolicyField = React__default.createElement(FormField, null, React__default.createElement(Link, {
|
|
9527
9792
|
href: "https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy",
|
|
9528
9793
|
type: "external",
|
|
9529
|
-
fontSize: "text.tag"
|
|
9794
|
+
fontSize: "text.tag",
|
|
9795
|
+
width: "fit-content"
|
|
9530
9796
|
}, "Privacy Policy"));
|
|
9531
9797
|
// When the submit button is clicked, set a timeout before displaying
|
|
9532
9798
|
// the confirmation or error screen. This automatically goes to the
|
|
@@ -9583,6 +9849,16 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9583
9849
|
if (showCategoryField && showEmailField) {
|
|
9584
9850
|
drawerMinHeight = minHeightWithCategoryAndEmail;
|
|
9585
9851
|
}
|
|
9852
|
+
if (notificationText) {
|
|
9853
|
+
drawerMinHeight += notificationHeightAdjustment;
|
|
9854
|
+
}
|
|
9855
|
+
if (descriptionText) {
|
|
9856
|
+
drawerMinHeight += descriptionHeightAdjustment;
|
|
9857
|
+
}
|
|
9858
|
+
if (notificationText && descriptionText) {
|
|
9859
|
+
drawerMinHeight += 16;
|
|
9860
|
+
}
|
|
9861
|
+
var finalDrawerMinHeight = drawerMinHeight + "px";
|
|
9586
9862
|
return React__default.createElement(react.Box, Object.assign({
|
|
9587
9863
|
className: className,
|
|
9588
9864
|
id: id,
|
|
@@ -9599,11 +9875,7 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9599
9875
|
placement: "bottom"
|
|
9600
9876
|
}, React__default.createElement(react.DrawerOverlay, null), React__default.createElement(react.DrawerContent, {
|
|
9601
9877
|
sx: styles.drawerContent
|
|
9602
|
-
}, React__default.createElement(
|
|
9603
|
-
sx: styles.drawerHeader
|
|
9604
|
-
}, React__default.createElement(Text, {
|
|
9605
|
-
"data-testid": "title"
|
|
9606
|
-
}, title), React__default.createElement(react.Spacer, null), React__default.createElement(Button, {
|
|
9878
|
+
}, React__default.createElement(Button, {
|
|
9607
9879
|
buttonType: "text",
|
|
9608
9880
|
id: "close-btn",
|
|
9609
9881
|
onClick: finalOnClose,
|
|
@@ -9612,24 +9884,38 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9612
9884
|
color: "ui.black",
|
|
9613
9885
|
name: "minus",
|
|
9614
9886
|
size: "medium"
|
|
9615
|
-
}), React__default.createElement("span", null, "Close ", title))
|
|
9887
|
+
}), React__default.createElement("span", null, "Close ", title)), React__default.createElement(react.DrawerHeader, {
|
|
9888
|
+
sx: styles.drawerHeader
|
|
9889
|
+
}, React__default.createElement(Text, {
|
|
9890
|
+
"data-testid": "title"
|
|
9891
|
+
}, title)), React__default.createElement(react.DrawerBody, {
|
|
9616
9892
|
sx: styles.drawerBody
|
|
9617
9893
|
}, React__default.createElement(Form, {
|
|
9618
9894
|
gap: "grid.s",
|
|
9619
9895
|
id: "feedback-form",
|
|
9620
9896
|
onSubmit: internalOnSubmit,
|
|
9621
9897
|
sx: {
|
|
9622
|
-
"
|
|
9623
|
-
|
|
9898
|
+
".feedback-body": {
|
|
9899
|
+
alignItems: "flex-start",
|
|
9900
|
+
minHeight: finalDrawerMinHeight,
|
|
9624
9901
|
gridTemplateRows: initTemplateRows
|
|
9902
|
+
},
|
|
9903
|
+
".feedback-body.response": {
|
|
9904
|
+
alignItems: "center",
|
|
9905
|
+
display: "flex",
|
|
9906
|
+
flexDirection: "column",
|
|
9907
|
+
justifyContent: "center"
|
|
9625
9908
|
}
|
|
9626
9909
|
}
|
|
9627
|
-
},
|
|
9910
|
+
}, isFormView && React__default.createElement(React__default.Fragment, null, React__default.createElement(react.VStack, {
|
|
9911
|
+
className: "feedback-body",
|
|
9912
|
+
spacing: "s"
|
|
9913
|
+
}, (notificationElement || descriptionElement) && React__default.createElement(React__default.Fragment, null, notificationElement, descriptionElement), showCategoryField && React__default.createElement(FormField, null, React__default.createElement(RadioGroup$1, {
|
|
9628
9914
|
defaultValue: state.category,
|
|
9629
9915
|
id: id + "-category",
|
|
9630
9916
|
isDisabled: isSubmitted,
|
|
9631
9917
|
labelText: "What is your feedback about?",
|
|
9632
|
-
layout: "row",
|
|
9918
|
+
layout: isLargerThanMobile ? "row" : "column",
|
|
9633
9919
|
name: id + "-category",
|
|
9634
9920
|
onChange: function onChange(selected) {
|
|
9635
9921
|
return setCategory(selected);
|
|
@@ -9646,7 +9932,9 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9646
9932
|
id: "bug",
|
|
9647
9933
|
labelText: "Bug",
|
|
9648
9934
|
value: "bug"
|
|
9649
|
-
}))), React__default.createElement(FormField,
|
|
9935
|
+
}))), React__default.createElement(FormField, {
|
|
9936
|
+
width: "100%"
|
|
9937
|
+
}, React__default.createElement(TextInput, {
|
|
9650
9938
|
helperText: maxCommentCharacters - state.comment.length + " characters remaining",
|
|
9651
9939
|
id: id + "-comment",
|
|
9652
9940
|
invalidText: "Please fill out this field.",
|
|
@@ -9662,7 +9950,9 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9662
9950
|
placeholder: "Enter your question or feedback here",
|
|
9663
9951
|
type: "textarea",
|
|
9664
9952
|
defaultValue: state.comment
|
|
9665
|
-
})), showEmailField && React__default.createElement(FormField,
|
|
9953
|
+
})), showEmailField && React__default.createElement(FormField, {
|
|
9954
|
+
width: "100%"
|
|
9955
|
+
}, React__default.createElement(TextInput, {
|
|
9666
9956
|
id: id + "-email",
|
|
9667
9957
|
invalidText: "Please enter a valid email address.",
|
|
9668
9958
|
isDisabled: isSubmitted,
|
|
@@ -9675,7 +9965,7 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9675
9965
|
placeholder: "Enter your email address here",
|
|
9676
9966
|
type: "email",
|
|
9677
9967
|
value: state.email
|
|
9678
|
-
})), privacyPolicyField, React__default.createElement(FormField, null, React__default.createElement(ButtonGroup, {
|
|
9968
|
+
}))), privacyPolicyField, React__default.createElement(FormField, null, React__default.createElement(ButtonGroup, {
|
|
9679
9969
|
buttonWidth: "full",
|
|
9680
9970
|
id: "submit-cancel"
|
|
9681
9971
|
}, React__default.createElement(Button, {
|
|
@@ -9690,6 +9980,7 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9690
9980
|
key: "submit",
|
|
9691
9981
|
type: "submit"
|
|
9692
9982
|
}, "Submit")))), isConfirmationView && React__default.createElement(React__default.Fragment, null, React__default.createElement(react.Box, {
|
|
9983
|
+
className: "feedback-body response",
|
|
9693
9984
|
key: "confirmationWrapper",
|
|
9694
9985
|
margin: "auto",
|
|
9695
9986
|
tabIndex: 0,
|
|
@@ -9708,6 +9999,7 @@ var FeedbackBox$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
9708
9999
|
buttonType: "secondary",
|
|
9709
10000
|
onClick: closeAndResetForm
|
|
9710
10001
|
}, "Return to Browsing")))), isErrorView && React__default.createElement(React__default.Fragment, null, React__default.createElement(react.Box, {
|
|
10002
|
+
className: "feedback-body response",
|
|
9711
10003
|
color: "ui.error.primary",
|
|
9712
10004
|
key: "errorWrapper",
|
|
9713
10005
|
margin: "auto",
|
|
@@ -9756,105 +10048,757 @@ function useFeedbackBox() {
|
|
|
9756
10048
|
};
|
|
9757
10049
|
}
|
|
9758
10050
|
|
|
9759
|
-
var _excluded$1f = ["
|
|
10051
|
+
var _excluded$1f = ["id", "isOpen", "multiSelectId", "multiSelectLabel", "onClear", "onKeyDown", "onMenuToggle", "selectedItems"];
|
|
10052
|
+
var _templateObject;
|
|
10053
|
+
var grow = /*#__PURE__*/react.keyframes(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n from {width: 22px; opacity: 0; }\n to {width: 46px; opacity: 1;}\n"])));
|
|
9760
10054
|
/**
|
|
9761
|
-
*
|
|
9762
|
-
*
|
|
9763
|
-
*
|
|
10055
|
+
* The toggle button component used to open and close the `MultiSelect` menu.
|
|
10056
|
+
* A second button is rendered above the main button that displays the current
|
|
10057
|
+
* number of selected items. Clicking on the second button will clear all
|
|
10058
|
+
* the selected items and the main button's close event will not be fired
|
|
10059
|
+
* (as expected).
|
|
9764
10060
|
*/
|
|
9765
|
-
var
|
|
9766
|
-
var
|
|
9767
|
-
|
|
9768
|
-
|
|
9769
|
-
|
|
9770
|
-
|
|
9771
|
-
|
|
9772
|
-
|
|
9773
|
-
|
|
9774
|
-
title = props.title,
|
|
9775
|
-
_props$type = props.type,
|
|
9776
|
-
type = _props$type === void 0 ? "ul" : _props$type,
|
|
10061
|
+
var MultiSelectMenuButton$1 = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10062
|
+
var _selectedItems$multiS;
|
|
10063
|
+
var id = props.id,
|
|
10064
|
+
isOpen = props.isOpen,
|
|
10065
|
+
multiSelectId = props.multiSelectId,
|
|
10066
|
+
multiSelectLabel = props.multiSelectLabel,
|
|
10067
|
+
onClear = props.onClear,
|
|
10068
|
+
onMenuToggle = props.onMenuToggle,
|
|
10069
|
+
selectedItems = props.selectedItems,
|
|
9777
10070
|
rest = _objectWithoutPropertiesLoose(props, _excluded$1f);
|
|
9778
|
-
var
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
10071
|
+
var iconType = isOpen ? "minus" : "plus";
|
|
10072
|
+
var growAnimation = grow + " 150ms ease-out";
|
|
10073
|
+
// Sets the selected items count on the menu button.
|
|
10074
|
+
var getSelectedItemsCount;
|
|
10075
|
+
var selectedItemsAriaLabel;
|
|
10076
|
+
if (((_selectedItems$multiS = selectedItems[multiSelectId]) == null ? void 0 : _selectedItems$multiS.items.length) > 0) {
|
|
10077
|
+
getSelectedItemsCount = "" + selectedItems[multiSelectId].items.length;
|
|
10078
|
+
var itemPlural = getSelectedItemsCount === "1" ? "" : "s";
|
|
10079
|
+
selectedItemsAriaLabel = "remove " + getSelectedItemsCount + " item" + itemPlural + " selected from " + multiSelectLabel;
|
|
10080
|
+
}
|
|
10081
|
+
var styles = react.useMultiStyleConfig("MultiSelectMenuButton", {
|
|
10082
|
+
isOpen: isOpen,
|
|
10083
|
+
hasSelectedItems: getSelectedItemsCount
|
|
9782
10084
|
});
|
|
9783
|
-
|
|
9784
|
-
|
|
9785
|
-
|
|
9786
|
-
|
|
9787
|
-
|
|
9788
|
-
|
|
9789
|
-
}
|
|
9790
|
-
if (!children && !listItems) {
|
|
9791
|
-
console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
|
|
9792
|
-
return null;
|
|
9793
|
-
}
|
|
9794
|
-
/**
|
|
9795
|
-
* This returns either the `children` elements passed to the `List` component
|
|
9796
|
-
* first, otherwise it will check and render the data passed into the
|
|
9797
|
-
* `listItems` props based on the `ListType` type. If it is of type unordered
|
|
9798
|
-
* or ordered, it will return `li` elements. Otherwise, it will return a
|
|
9799
|
-
* combination of `dt` and `dd` elements for the description type.
|
|
9800
|
-
*/
|
|
9801
|
-
var listChildrenElms = function listChildrenElms(listType) {
|
|
9802
|
-
if (children) {
|
|
9803
|
-
return children;
|
|
9804
|
-
}
|
|
9805
|
-
if (!listItems) {
|
|
9806
|
-
return null;
|
|
9807
|
-
}
|
|
9808
|
-
if (listType === "ol" || listType === "ul") {
|
|
9809
|
-
return listItems.map(function (item, i) {
|
|
9810
|
-
return React__default.createElement("li", {
|
|
9811
|
-
key: i
|
|
9812
|
-
}, item);
|
|
9813
|
-
});
|
|
9814
|
-
} else if (listType === "dl") {
|
|
9815
|
-
return listItems.map(function (item, i) {
|
|
9816
|
-
return [React__default.createElement("dt", {
|
|
9817
|
-
key: i + "-term"
|
|
9818
|
-
}, item.term), React__default.createElement("dd", {
|
|
9819
|
-
key: i + "-des"
|
|
9820
|
-
}, item.description)];
|
|
9821
|
-
});
|
|
10085
|
+
// We need this for our "fake" button inside the main menu button.
|
|
10086
|
+
function onKeyPress(e) {
|
|
10087
|
+
var enterOrSpace = e.key === "Enter" || e.key === " " || e.key === "Spacebar" || e.which === 13 || e.which === 32;
|
|
10088
|
+
if (enterOrSpace) {
|
|
10089
|
+
e.preventDefault();
|
|
10090
|
+
onClear();
|
|
9822
10091
|
}
|
|
9823
|
-
return null;
|
|
9824
|
-
};
|
|
9825
|
-
/**
|
|
9826
|
-
* Checks for `dt` and `dd` elements and consoles a warning if the
|
|
9827
|
-
* children are different HTML elements.
|
|
9828
|
-
*/
|
|
9829
|
-
var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
|
|
9830
|
-
React__default.Children.map(children, function (child) {
|
|
9831
|
-
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) {
|
|
9832
|
-
console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
|
|
9833
|
-
}
|
|
9834
|
-
});
|
|
9835
|
-
};
|
|
9836
|
-
if (type === "ol" || type === "ul") {
|
|
9837
|
-
checkListChildrenError(children, type);
|
|
9838
|
-
listElement = React__default.createElement(react.Box, Object.assign({
|
|
9839
|
-
as: type,
|
|
9840
|
-
id: id,
|
|
9841
|
-
className: className,
|
|
9842
|
-
ref: ref,
|
|
9843
|
-
__css: styles
|
|
9844
|
-
}, rest), listChildrenElms(type));
|
|
9845
|
-
} else if (type === "dl") {
|
|
9846
|
-
checkDescriptionChildrenError();
|
|
9847
|
-
listElement = React__default.createElement(react.Box, Object.assign({
|
|
9848
|
-
as: "section",
|
|
9849
|
-
id: id,
|
|
9850
|
-
className: className,
|
|
9851
|
-
ref: ref,
|
|
9852
|
-
__css: styles
|
|
9853
|
-
}, rest), title && React__default.createElement(Heading, {
|
|
9854
|
-
id: id + "-heading"
|
|
9855
|
-
}, title), React__default.createElement("dl", null, listChildrenElms(type)));
|
|
9856
10092
|
}
|
|
9857
|
-
return
|
|
10093
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, Object.assign({
|
|
10094
|
+
buttonType: "secondary",
|
|
10095
|
+
id: id,
|
|
10096
|
+
onClick: onMenuToggle,
|
|
10097
|
+
ref: ref,
|
|
10098
|
+
__css: styles.menuButton
|
|
10099
|
+
}, rest), React__default.createElement(react.Box, {
|
|
10100
|
+
as: "span",
|
|
10101
|
+
title: multiSelectLabel,
|
|
10102
|
+
__css: styles.buttonLabel
|
|
10103
|
+
}, multiSelectLabel), React__default.createElement(Icon, {
|
|
10104
|
+
id: "ms-" + multiSelectId + "-icon",
|
|
10105
|
+
name: iconType,
|
|
10106
|
+
size: "small"
|
|
10107
|
+
})), getSelectedItemsCount && React__default.createElement(react.Box, {
|
|
10108
|
+
animation: growAnimation,
|
|
10109
|
+
"aria-label": selectedItemsAriaLabel,
|
|
10110
|
+
as: "span",
|
|
10111
|
+
onClick: onClear,
|
|
10112
|
+
onKeyPress: onKeyPress,
|
|
10113
|
+
role: "button",
|
|
10114
|
+
tabIndex: 0,
|
|
10115
|
+
__css: styles.selectedItemsCountButton
|
|
10116
|
+
}, React__default.createElement(react.Box, {
|
|
10117
|
+
as: "span",
|
|
10118
|
+
verticalAlign: "text-bottom"
|
|
10119
|
+
}, getSelectedItemsCount), React__default.createElement(Icon, {
|
|
10120
|
+
align: "right",
|
|
10121
|
+
id: "ms-" + multiSelectId + "-selected-items-count-icon",
|
|
10122
|
+
marginLeft: "xs",
|
|
10123
|
+
name: "close",
|
|
10124
|
+
size: "xsmall",
|
|
10125
|
+
title: "Remove selected items"
|
|
10126
|
+
})));
|
|
10127
|
+
});
|
|
10128
|
+
|
|
10129
|
+
var _excluded$1g = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onChange", "onClear", "selectedItems", "width"];
|
|
10130
|
+
/** MultiSelectListbox renders a non-hierarchical list of checkbox options for the `variant="listbox". It leverager downshift-js for accessiblity. */
|
|
10131
|
+
var MultiSelectListbox = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10132
|
+
var id = props.id,
|
|
10133
|
+
isBlockElement = props.isBlockElement,
|
|
10134
|
+
isDefaultOpen = props.isDefaultOpen,
|
|
10135
|
+
items = props.items,
|
|
10136
|
+
label = props.label,
|
|
10137
|
+
onChange = props.onChange,
|
|
10138
|
+
onClear = props.onClear,
|
|
10139
|
+
selectedItems = props.selectedItems,
|
|
10140
|
+
width = props.width,
|
|
10141
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1g);
|
|
10142
|
+
// Downshift.
|
|
10143
|
+
var _useSelect = downshift.useSelect({
|
|
10144
|
+
items: items,
|
|
10145
|
+
// Downshift's internal state for handling keyboard and mouse events.
|
|
10146
|
+
stateReducer: function stateReducer(state, actionAndChanges) {
|
|
10147
|
+
var changes = actionAndChanges.changes,
|
|
10148
|
+
type = actionAndChanges.type;
|
|
10149
|
+
switch (type) {
|
|
10150
|
+
case downshift.useSelect.stateChangeTypes.MenuKeyDownEnter:
|
|
10151
|
+
case downshift.useSelect.stateChangeTypes.MenuKeyDownSpaceButton:
|
|
10152
|
+
case downshift.useSelect.stateChangeTypes.ItemClick:
|
|
10153
|
+
return _extends({}, changes, {
|
|
10154
|
+
isOpen: true,
|
|
10155
|
+
highlightedIndex: state.highlightedIndex
|
|
10156
|
+
});
|
|
10157
|
+
default:
|
|
10158
|
+
return changes;
|
|
10159
|
+
}
|
|
10160
|
+
},
|
|
10161
|
+
//@ts-ignore
|
|
10162
|
+
selectedItem: selectedItems,
|
|
10163
|
+
onSelectedItemChange: function onSelectedItemChange(_ref) {
|
|
10164
|
+
var selectedItem = _ref.selectedItem;
|
|
10165
|
+
onChange(selectedItem, id);
|
|
10166
|
+
},
|
|
10167
|
+
initialIsOpen: isDefaultOpen
|
|
10168
|
+
}),
|
|
10169
|
+
getItemProps = _useSelect.getItemProps,
|
|
10170
|
+
getMenuProps = _useSelect.getMenuProps,
|
|
10171
|
+
getToggleButtonProps = _useSelect.getToggleButtonProps,
|
|
10172
|
+
highlightedIndex = _useSelect.highlightedIndex,
|
|
10173
|
+
isOpen = _useSelect.isOpen;
|
|
10174
|
+
var styles = react.useMultiStyleConfig("MultiSelect", {
|
|
10175
|
+
width: width,
|
|
10176
|
+
isBlockElement: isBlockElement,
|
|
10177
|
+
isOpen: isOpen
|
|
10178
|
+
});
|
|
10179
|
+
// If a item passed to the listbox variant has children,
|
|
10180
|
+
if (items.some(function (item) {
|
|
10181
|
+
return item.children;
|
|
10182
|
+
})) {
|
|
10183
|
+
console.warn("NYPL Reservoir MultiSelect: Only the variant 'dialog' can render nested select items.");
|
|
10184
|
+
}
|
|
10185
|
+
return React__default.createElement(react.Box, Object.assign({
|
|
10186
|
+
id: id,
|
|
10187
|
+
__css: styles
|
|
10188
|
+
}, rest), React__default.createElement(MultiSelectMenuButton$1, Object.assign({
|
|
10189
|
+
multiSelectId: id,
|
|
10190
|
+
multiSelectLabel: label,
|
|
10191
|
+
isOpen: isOpen,
|
|
10192
|
+
selectedItems: selectedItems,
|
|
10193
|
+
onClear: onClear,
|
|
10194
|
+
ref: ref
|
|
10195
|
+
}, getToggleButtonProps({
|
|
10196
|
+
id: "ms-" + id + "-menu-button",
|
|
10197
|
+
"aria-labelledby": "ms-" + id + "-menu ms-" + id + "-menu-button"
|
|
10198
|
+
}))), React__default.createElement(react.Box, {
|
|
10199
|
+
__css: styles.menuContainer
|
|
10200
|
+
}, React__default.createElement(react.UnorderedList, Object.assign({
|
|
10201
|
+
styleType: "none",
|
|
10202
|
+
marginInlineStart: "0"
|
|
10203
|
+
}, getMenuProps({
|
|
10204
|
+
id: "ms-" + id + "-menu",
|
|
10205
|
+
"aria-labelledby": "ms-" + id + "-menu-button"
|
|
10206
|
+
}), {
|
|
10207
|
+
// @FIX This prevents the menu from closing when checkbox or label is clicked.
|
|
10208
|
+
onClick: function onClick(e) {
|
|
10209
|
+
return e.preventDefault();
|
|
10210
|
+
},
|
|
10211
|
+
__css: styles.menu
|
|
10212
|
+
}), isOpen && items.map(function (item, index) {
|
|
10213
|
+
var _selectedItems$id;
|
|
10214
|
+
return React__default.createElement(react.ListItem, Object.assign({
|
|
10215
|
+
py: 1,
|
|
10216
|
+
// @TODO fix this, we want to pass the key prop as part of ...getItemProps but get
|
|
10217
|
+
// error Missing "key" prop for element in iterator react/jsx-key
|
|
10218
|
+
key: item.id
|
|
10219
|
+
}, getItemProps({
|
|
10220
|
+
id: "ms-" + id + "-item-" + index,
|
|
10221
|
+
key: item.id,
|
|
10222
|
+
item: item,
|
|
10223
|
+
index: index
|
|
10224
|
+
}), {
|
|
10225
|
+
sx: highlightedIndex === index ? {
|
|
10226
|
+
backgroundColor: "ui.gray.x-light-cool"
|
|
10227
|
+
} : {}
|
|
10228
|
+
}), React__default.createElement(Checkbox, {
|
|
10229
|
+
id: item.id,
|
|
10230
|
+
labelText: item.name,
|
|
10231
|
+
name: item.name,
|
|
10232
|
+
isChecked: (_selectedItems$id = selectedItems[id]) == null ? void 0 : _selectedItems$id.items.includes(item.id),
|
|
10233
|
+
onChange: function onChange() {
|
|
10234
|
+
return null;
|
|
10235
|
+
}
|
|
10236
|
+
}));
|
|
10237
|
+
}))));
|
|
10238
|
+
}),
|
|
10239
|
+
// Pass all custom props to Chakra and override, for width prop.
|
|
10240
|
+
{
|
|
10241
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
10242
|
+
return true;
|
|
10243
|
+
}
|
|
10244
|
+
});
|
|
10245
|
+
|
|
10246
|
+
var _excluded$1h = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "width"];
|
|
10247
|
+
var MultiSelectDialog = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10248
|
+
var id = props.id,
|
|
10249
|
+
isBlockElement = props.isBlockElement,
|
|
10250
|
+
isDefaultOpen = props.isDefaultOpen,
|
|
10251
|
+
items = props.items,
|
|
10252
|
+
label = props.label,
|
|
10253
|
+
onApply = props.onApply,
|
|
10254
|
+
onChange = props.onChange,
|
|
10255
|
+
onClear = props.onClear,
|
|
10256
|
+
onMixedStateChange = props.onMixedStateChange,
|
|
10257
|
+
selectedItems = props.selectedItems,
|
|
10258
|
+
width = props.width,
|
|
10259
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1h);
|
|
10260
|
+
// Use NYPL Breakpoints hook to check screen size
|
|
10261
|
+
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
10262
|
+
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
10263
|
+
// Control the open or closed state of the MultiSelect.
|
|
10264
|
+
var _useState = React.useState(isDefaultOpen),
|
|
10265
|
+
isOpen = _useState[0],
|
|
10266
|
+
setIsOpen = _useState[1];
|
|
10267
|
+
var styles = react.useMultiStyleConfig("MultiSelect", {
|
|
10268
|
+
width: width,
|
|
10269
|
+
isBlockElement: isBlockElement,
|
|
10270
|
+
isOpen: isOpen
|
|
10271
|
+
});
|
|
10272
|
+
// Create a ref that we add to the element for which we want to detect outside clicks.
|
|
10273
|
+
var internalRef = React.useRef();
|
|
10274
|
+
// Custom Hook, Closes the MultiSelect if user clicks outside.
|
|
10275
|
+
function useOnClickOutside(ref, handler) {
|
|
10276
|
+
React__default.useEffect(function () {
|
|
10277
|
+
var listener = function listener(event) {
|
|
10278
|
+
// Do nothing if clicking ref's element or descendent elements
|
|
10279
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
10280
|
+
return;
|
|
10281
|
+
}
|
|
10282
|
+
handler(event);
|
|
10283
|
+
};
|
|
10284
|
+
document.addEventListener("mousedown", listener);
|
|
10285
|
+
document.addEventListener("touchstart", listener);
|
|
10286
|
+
return function () {
|
|
10287
|
+
document.removeEventListener("mousedown", listener);
|
|
10288
|
+
document.removeEventListener("touchstart", listener);
|
|
10289
|
+
};
|
|
10290
|
+
}, [ref, handler]);
|
|
10291
|
+
}
|
|
10292
|
+
useOnClickOutside(internalRef, function () {
|
|
10293
|
+
return setIsOpen(false);
|
|
10294
|
+
});
|
|
10295
|
+
// Merge internal ref with the ref passed through the chakra function.
|
|
10296
|
+
var mergedRefs = react.useMergeRefs(internalRef, ref);
|
|
10297
|
+
var isChecked = function isChecked(multiSelectId, itemId) {
|
|
10298
|
+
if (selectedItems[multiSelectId]) {
|
|
10299
|
+
return !!selectedItems[multiSelectId].items.find(function (selectedItemId) {
|
|
10300
|
+
return selectedItemId === itemId;
|
|
10301
|
+
});
|
|
10302
|
+
}
|
|
10303
|
+
return false;
|
|
10304
|
+
};
|
|
10305
|
+
// isAllChecked defines the isChecked status of parent checkboxes. If all child items are selected, it will turn true, otherwise it returns false.
|
|
10306
|
+
// This prop is only passed to parent options.
|
|
10307
|
+
var isAllChecked = function isAllChecked(multiSelectId, item) {
|
|
10308
|
+
var childIds = item.children.map(function (childItem) {
|
|
10309
|
+
return childItem.id;
|
|
10310
|
+
});
|
|
10311
|
+
if (selectedItems[multiSelectId] !== undefined) {
|
|
10312
|
+
return childIds.every(function (childItem) {
|
|
10313
|
+
return selectedItems[multiSelectId].items.includes(childItem);
|
|
10314
|
+
});
|
|
10315
|
+
}
|
|
10316
|
+
return false;
|
|
10317
|
+
};
|
|
10318
|
+
// isInteterminate will return true if some child items of the parent item are selected. This prop is only passed to parent options.
|
|
10319
|
+
var isIndeterminate = function isIndeterminate(multiSelectId, item) {
|
|
10320
|
+
var childIds = item.children.map(function (childItem) {
|
|
10321
|
+
return childItem.id;
|
|
10322
|
+
});
|
|
10323
|
+
if (selectedItems[multiSelectId] !== undefined && childIds.some(function (childItem) {
|
|
10324
|
+
return selectedItems[multiSelectId].items.includes(childItem);
|
|
10325
|
+
})) {
|
|
10326
|
+
return !isAllChecked(multiSelectId, item);
|
|
10327
|
+
}
|
|
10328
|
+
return false;
|
|
10329
|
+
};
|
|
10330
|
+
return React__default.createElement(react.Box, Object.assign({
|
|
10331
|
+
id: id,
|
|
10332
|
+
ref: mergedRefs,
|
|
10333
|
+
__css: styles
|
|
10334
|
+
}, rest), React__default.createElement(FocusLock, {
|
|
10335
|
+
isDisabled: !isOpen
|
|
10336
|
+
}, React__default.createElement(MultiSelectMenuButton$1, {
|
|
10337
|
+
id: "ms-" + id + "-menu-button",
|
|
10338
|
+
multiSelectId: id,
|
|
10339
|
+
multiSelectLabel: label,
|
|
10340
|
+
isOpen: isOpen,
|
|
10341
|
+
selectedItems: selectedItems,
|
|
10342
|
+
onMenuToggle: function onMenuToggle() {
|
|
10343
|
+
setIsOpen(!isOpen);
|
|
10344
|
+
},
|
|
10345
|
+
onClear: onClear
|
|
10346
|
+
}), React__default.createElement(react.Box, Object.assign({
|
|
10347
|
+
role: "dialog",
|
|
10348
|
+
__css: styles.menuContainer
|
|
10349
|
+
}, isOpen && {
|
|
10350
|
+
"aria-modal": true
|
|
10351
|
+
}, {
|
|
10352
|
+
"aria-labelledby": "ms-" + id + "-menu-button"
|
|
10353
|
+
}), React__default.createElement(react.UnorderedList, {
|
|
10354
|
+
styleType: "none",
|
|
10355
|
+
marginInlineStart: "0",
|
|
10356
|
+
__css: styles.menu
|
|
10357
|
+
}, isOpen && items.map(function (item) {
|
|
10358
|
+
return React__default.createElement(react.ListItem, {
|
|
10359
|
+
key: item.id,
|
|
10360
|
+
py: "xxs"
|
|
10361
|
+
}, item.children ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Checkbox, Object.assign({
|
|
10362
|
+
id: item.id,
|
|
10363
|
+
labelText: item.name,
|
|
10364
|
+
name: item.name
|
|
10365
|
+
}, onMixedStateChange !== undefined ? {
|
|
10366
|
+
isChecked: isAllChecked(id, item),
|
|
10367
|
+
isIndeterminate: isIndeterminate(id, item),
|
|
10368
|
+
onChange: onMixedStateChange
|
|
10369
|
+
} : {
|
|
10370
|
+
isChecked: isChecked(id, item.id),
|
|
10371
|
+
onChange: onChange
|
|
10372
|
+
})), React__default.createElement(react.UnorderedList, {
|
|
10373
|
+
styleType: "none",
|
|
10374
|
+
marginInlineStart: "0",
|
|
10375
|
+
__css: styles.menuChildren
|
|
10376
|
+
}, item.children.map(function (childItem) {
|
|
10377
|
+
return React__default.createElement(react.ListItem, {
|
|
10378
|
+
key: childItem.id,
|
|
10379
|
+
py: "xxs"
|
|
10380
|
+
}, React__default.createElement(Checkbox, {
|
|
10381
|
+
id: childItem.id,
|
|
10382
|
+
labelText: childItem.name,
|
|
10383
|
+
name: childItem.name,
|
|
10384
|
+
isChecked: isChecked(id, childItem.id),
|
|
10385
|
+
onChange: onChange
|
|
10386
|
+
}));
|
|
10387
|
+
}))) : React__default.createElement(Checkbox, {
|
|
10388
|
+
id: item.id,
|
|
10389
|
+
labelText: item.name,
|
|
10390
|
+
name: item.name,
|
|
10391
|
+
isChecked: isChecked(id, item.id),
|
|
10392
|
+
onChange: onChange
|
|
10393
|
+
}));
|
|
10394
|
+
})), isOpen && isLargerThanMobile && React__default.createElement(ButtonGroup, {
|
|
10395
|
+
__css: styles.actionButtons
|
|
10396
|
+
}, React__default.createElement(Button, {
|
|
10397
|
+
id: "ms-" + id + "-clear",
|
|
10398
|
+
buttonType: "link",
|
|
10399
|
+
type: "button",
|
|
10400
|
+
onClick: onClear
|
|
10401
|
+
}, "Clear"), React__default.createElement(Button, {
|
|
10402
|
+
id: "ms-" + id + "-apply",
|
|
10403
|
+
buttonType: "primary",
|
|
10404
|
+
type: "button",
|
|
10405
|
+
onClick: function onClick() {
|
|
10406
|
+
// Close the multiselect on apply.
|
|
10407
|
+
setIsOpen(false);
|
|
10408
|
+
// Run the onApply prop function.
|
|
10409
|
+
onApply();
|
|
10410
|
+
}
|
|
10411
|
+
}, "Apply")))));
|
|
10412
|
+
}),
|
|
10413
|
+
// Pass all custom props to Chakra and override, for width prop.
|
|
10414
|
+
{
|
|
10415
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
10416
|
+
return true;
|
|
10417
|
+
}
|
|
10418
|
+
});
|
|
10419
|
+
|
|
10420
|
+
var _excluded$1i = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "variant", "width"];
|
|
10421
|
+
/**
|
|
10422
|
+
* The `MultiSelect` component is a form input element that presents a list
|
|
10423
|
+
* of `Checkbox` components from which a user can make one or multiple
|
|
10424
|
+
* selections. Two variants of the MultiSelect component are offered, each with
|
|
10425
|
+
* slightly different functionality and requirements. Because of these
|
|
10426
|
+
* differences, the two variants are broken out in separate stories below.
|
|
10427
|
+
*/
|
|
10428
|
+
var MultiSelect$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10429
|
+
var id = props.id,
|
|
10430
|
+
_props$isBlockElement = props.isBlockElement,
|
|
10431
|
+
isBlockElement = _props$isBlockElement === void 0 ? false : _props$isBlockElement,
|
|
10432
|
+
_props$isDefaultOpen = props.isDefaultOpen,
|
|
10433
|
+
isDefaultOpen = _props$isDefaultOpen === void 0 ? false : _props$isDefaultOpen,
|
|
10434
|
+
items = props.items,
|
|
10435
|
+
label = props.label,
|
|
10436
|
+
onApply = props.onApply,
|
|
10437
|
+
onChange = props.onChange,
|
|
10438
|
+
onClear = props.onClear,
|
|
10439
|
+
onMixedStateChange = props.onMixedStateChange,
|
|
10440
|
+
selectedItems = props.selectedItems,
|
|
10441
|
+
variant = props.variant,
|
|
10442
|
+
_props$width = props.width,
|
|
10443
|
+
width = _props$width === void 0 ? "default" : _props$width,
|
|
10444
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1i);
|
|
10445
|
+
var commonProps = {
|
|
10446
|
+
id: id,
|
|
10447
|
+
isBlockElement: isBlockElement,
|
|
10448
|
+
isDefaultOpen: isDefaultOpen,
|
|
10449
|
+
items: items,
|
|
10450
|
+
label: label,
|
|
10451
|
+
onClear: onClear,
|
|
10452
|
+
selectedItems: selectedItems,
|
|
10453
|
+
variant: variant,
|
|
10454
|
+
width: width
|
|
10455
|
+
};
|
|
10456
|
+
if (variant === "listbox") {
|
|
10457
|
+
var listboxOnChange = onChange;
|
|
10458
|
+
return React__default.createElement(MultiSelectListbox, Object.assign({}, commonProps, {
|
|
10459
|
+
ref: ref,
|
|
10460
|
+
onChange: listboxOnChange
|
|
10461
|
+
}, rest));
|
|
10462
|
+
}
|
|
10463
|
+
if (variant === "dialog") {
|
|
10464
|
+
var dialogOnChange = onChange;
|
|
10465
|
+
return React__default.createElement(MultiSelectDialog, Object.assign({}, commonProps, {
|
|
10466
|
+
onChange: dialogOnChange,
|
|
10467
|
+
onMixedStateChange: onMixedStateChange,
|
|
10468
|
+
onApply: onApply,
|
|
10469
|
+
ref: ref
|
|
10470
|
+
}, rest));
|
|
10471
|
+
}
|
|
10472
|
+
return null;
|
|
10473
|
+
}),
|
|
10474
|
+
// Pass all custom props to Chakra and override, for width prop.
|
|
10475
|
+
{
|
|
10476
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
10477
|
+
return true;
|
|
10478
|
+
}
|
|
10479
|
+
});
|
|
10480
|
+
|
|
10481
|
+
var _excluded$1j = ["children", "className", "id", "labelText", "layout", "multiSelectWidth", "showLabel"];
|
|
10482
|
+
/**
|
|
10483
|
+
* `MultiSelectGroup` is a wrapper component specific for `MultiSelect` components. The wrapped `MutliSelect` components can be displayed in a
|
|
10484
|
+
* column or in a row. The `MultiSelectGroup` component renders all the necessary
|
|
10485
|
+
* wrapping and associated text elements, but the child elements
|
|
10486
|
+
* _need_ to be `MultiSelect` components from the NYPL Design System.
|
|
10487
|
+
*/
|
|
10488
|
+
var MultiSelectGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10489
|
+
var children = props.children,
|
|
10490
|
+
_props$className = props.className,
|
|
10491
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
10492
|
+
id = props.id,
|
|
10493
|
+
labelText = props.labelText,
|
|
10494
|
+
_props$layout = props.layout,
|
|
10495
|
+
layout = _props$layout === void 0 ? "row" : _props$layout,
|
|
10496
|
+
_props$multiSelectWid = props.multiSelectWidth,
|
|
10497
|
+
multiSelectWidth = _props$multiSelectWid === void 0 ? "default" : _props$multiSelectWid,
|
|
10498
|
+
_props$showLabel = props.showLabel,
|
|
10499
|
+
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
10500
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1j);
|
|
10501
|
+
var newChildren = [];
|
|
10502
|
+
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
10503
|
+
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
10504
|
+
var finalLayout = isLargerThanMobile ? layout : "column";
|
|
10505
|
+
var finallWidth = isLargerThanMobile ? multiSelectWidth : "full";
|
|
10506
|
+
var isBlockElement = layout === "column" ? true : false;
|
|
10507
|
+
var styles = react.useMultiStyleConfig("MultiSelectGroup", {
|
|
10508
|
+
width: finallWidth
|
|
10509
|
+
});
|
|
10510
|
+
// Go through the MultiSelect children and update props as needed.
|
|
10511
|
+
React__default.Children.map(children, function (child) {
|
|
10512
|
+
if (React__default.isValidElement(child)) {
|
|
10513
|
+
// @TODO: DXP needs to pass custom MultiSelects that wrap DS Mutliselects - type check deos not allow DXP to use MultiSelectGroup
|
|
10514
|
+
// if (child.type !== MultiSelect) {
|
|
10515
|
+
// console.warn(
|
|
10516
|
+
// "NYPL Reservoir MultiSelectGroup: Only MultiSelect components can be children of MultiSelectGroup."
|
|
10517
|
+
// );
|
|
10518
|
+
// return;
|
|
10519
|
+
// }
|
|
10520
|
+
if (child.type === MultiSelect$1) {
|
|
10521
|
+
var _props = {
|
|
10522
|
+
isBlockElement: isBlockElement,
|
|
10523
|
+
width: multiSelectWidth
|
|
10524
|
+
};
|
|
10525
|
+
newChildren.push(React__default.cloneElement(child, _props));
|
|
10526
|
+
} else {
|
|
10527
|
+
newChildren.push(React__default.cloneElement(child));
|
|
10528
|
+
}
|
|
10529
|
+
}
|
|
10530
|
+
});
|
|
10531
|
+
return React__default.createElement(Fieldset, Object.assign({
|
|
10532
|
+
id: id + "-multiselect-group",
|
|
10533
|
+
legendText: labelText,
|
|
10534
|
+
isLegendHidden: !showLabel,
|
|
10535
|
+
__css: styles
|
|
10536
|
+
}, rest), React__default.createElement(react.Stack, {
|
|
10537
|
+
className: className,
|
|
10538
|
+
columnGap: "xs",
|
|
10539
|
+
"data-testid": "multi-select-group",
|
|
10540
|
+
direction: finalLayout,
|
|
10541
|
+
id: id,
|
|
10542
|
+
ref: ref,
|
|
10543
|
+
rowGap: finalLayout === "row" ? "xs" : "0",
|
|
10544
|
+
spacing: isLargerThanMobile ? "xs" : "0",
|
|
10545
|
+
wrap: layout === "row" ? "wrap" : null,
|
|
10546
|
+
sx: {
|
|
10547
|
+
"> div": {
|
|
10548
|
+
_notFirst: {
|
|
10549
|
+
mx: "0"
|
|
10550
|
+
}
|
|
10551
|
+
}
|
|
10552
|
+
}
|
|
10553
|
+
}, newChildren));
|
|
10554
|
+
}));
|
|
10555
|
+
|
|
10556
|
+
var _excluded$1k = ["children", "id", "isOpen", "headingText", "layout", "onClear", "onSubmit", "onToggle", "onOpen", "onClose", "selectedItems", "showClearAll", "showSubmitAll", "filterWidth"];
|
|
10557
|
+
/**
|
|
10558
|
+
* `FilterBar` is a wrapper component for filter components.
|
|
10559
|
+
* The DS considers the following components as filter components:
|
|
10560
|
+
* - `MultiSelectGroup`
|
|
10561
|
+
*
|
|
10562
|
+
* The wrapped components/ component groups can be displayed in a column or
|
|
10563
|
+
* in a row layout. `FilterBar` can render additional `Clear All` and a `Apply Filters` buttons. The two
|
|
10564
|
+
* _optional_ buttons are controlled by the `showClearAll`/ `onClear` or `showSubmitAll`/`onSubmit` props repectively.
|
|
10565
|
+
*/
|
|
10566
|
+
var FilterBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10567
|
+
var children = props.children,
|
|
10568
|
+
id = props.id,
|
|
10569
|
+
isOpen = props.isOpen,
|
|
10570
|
+
headingText = props.headingText,
|
|
10571
|
+
_props$layout = props.layout,
|
|
10572
|
+
layout = _props$layout === void 0 ? "row" : _props$layout,
|
|
10573
|
+
onClear = props.onClear,
|
|
10574
|
+
onSubmit = props.onSubmit,
|
|
10575
|
+
onToggle = props.onToggle,
|
|
10576
|
+
onOpen = props.onOpen,
|
|
10577
|
+
_onClose = props.onClose,
|
|
10578
|
+
selectedItems = props.selectedItems,
|
|
10579
|
+
_props$showClearAll = props.showClearAll,
|
|
10580
|
+
showClearAll = _props$showClearAll === void 0 ? false : _props$showClearAll,
|
|
10581
|
+
_props$showSubmitAll = props.showSubmitAll,
|
|
10582
|
+
showSubmitAll = _props$showSubmitAll === void 0 ? false : _props$showSubmitAll,
|
|
10583
|
+
filterWidth = props.filterWidth,
|
|
10584
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1k);
|
|
10585
|
+
var _useNYPLBreapoints = useNYPLBreakpoints(),
|
|
10586
|
+
isLargerThanMedium = _useNYPLBreapoints.isLargerThanMedium;
|
|
10587
|
+
var finalLayout = isLargerThanMedium ? layout : "column";
|
|
10588
|
+
var finalWidth = isLargerThanMedium ? filterWidth ? filterWidth : finalLayout === "column" ? "full" : "default" : "full";
|
|
10589
|
+
var styles = react.useMultiStyleConfig("FilterBar", {
|
|
10590
|
+
layout: finalLayout,
|
|
10591
|
+
width: finalWidth
|
|
10592
|
+
});
|
|
10593
|
+
var getSelectedItemsCount = function getSelectedItemsCount() {
|
|
10594
|
+
return Object.entries(selectedItems).length ? "(" + Object.entries(selectedItems).length + ")" : "";
|
|
10595
|
+
};
|
|
10596
|
+
// Warning when onSubmit is passed but the showSubmitAll is missing
|
|
10597
|
+
if (onSubmit && showSubmitAll === false) {
|
|
10598
|
+
console.warn("NYPL Reservoir FilterBar: The `onSubmit` handler was set, but the `Apply Filters` button is not visible.");
|
|
10599
|
+
}
|
|
10600
|
+
// Warning when showSubmitAll is passed but onSubmit is missing
|
|
10601
|
+
if (onSubmit === undefined && showSubmitAll === true) {
|
|
10602
|
+
console.warn("NYPL Reservoir FilterBar: The `Apply Filters` button is rendering but no onSubmit function was passed.");
|
|
10603
|
+
}
|
|
10604
|
+
var newChildren = [];
|
|
10605
|
+
// Go through the FilterBar children and update props as needed.
|
|
10606
|
+
React__default.Children.map(children, function (child) {
|
|
10607
|
+
if (React__default.isValidElement(child)) {
|
|
10608
|
+
if (child.type === MultiSelectGroup) {
|
|
10609
|
+
var _props = {
|
|
10610
|
+
layout: finalLayout,
|
|
10611
|
+
multiSelectWidth: finalWidth
|
|
10612
|
+
};
|
|
10613
|
+
newChildren.push(React__default.cloneElement(child, _props));
|
|
10614
|
+
} else if (child.type === MultiSelect$1) {
|
|
10615
|
+
var _props2 = {
|
|
10616
|
+
isBlockElement: finalLayout === "column",
|
|
10617
|
+
width: finalWidth
|
|
10618
|
+
};
|
|
10619
|
+
newChildren.push(React__default.cloneElement(child, _props2));
|
|
10620
|
+
} else {
|
|
10621
|
+
console.warn("NYPL Reservoir FilterBar: Invalid child component was passed", child);
|
|
10622
|
+
return;
|
|
10623
|
+
}
|
|
10624
|
+
}
|
|
10625
|
+
});
|
|
10626
|
+
return React__default.createElement(react.Box, Object.assign({
|
|
10627
|
+
id: "filter-bar-" + id,
|
|
10628
|
+
__css: styles,
|
|
10629
|
+
ref: ref
|
|
10630
|
+
}, rest), isLargerThanMedium ? React__default.createElement(React__default.Fragment, null, headingText && React__default.createElement(Heading, {
|
|
10631
|
+
text: headingText,
|
|
10632
|
+
level: "two",
|
|
10633
|
+
size: "tertiary"
|
|
10634
|
+
}), React__default.createElement(react.Stack, {
|
|
10635
|
+
alignItems: layout === "row" ? "flex-end" : null,
|
|
10636
|
+
columnGap: "l",
|
|
10637
|
+
direction: layout,
|
|
10638
|
+
rowGap: "s",
|
|
10639
|
+
spacing: "0",
|
|
10640
|
+
wrap: layout === "row" ? "wrap" : null,
|
|
10641
|
+
sx: {
|
|
10642
|
+
"> div": {
|
|
10643
|
+
_notFirst: {
|
|
10644
|
+
mx: "0"
|
|
10645
|
+
}
|
|
10646
|
+
}
|
|
10647
|
+
}
|
|
10648
|
+
}, newChildren && newChildren.map(function (newChild, i) {
|
|
10649
|
+
return React__default.createElement(react.Box, {
|
|
10650
|
+
key: "filter-bar-child-" + i
|
|
10651
|
+
}, newChild);
|
|
10652
|
+
}), (showSubmitAll || showClearAll) && React__default.createElement(ButtonGroup, {
|
|
10653
|
+
layout: finalLayout,
|
|
10654
|
+
__css: styles.globalButtonGroup,
|
|
10655
|
+
buttonWidth: layout === "column" ? "full" : "default"
|
|
10656
|
+
}, showSubmitAll && React__default.createElement(Button, {
|
|
10657
|
+
buttonType: "primary",
|
|
10658
|
+
id: id + "-submit-all-button",
|
|
10659
|
+
onClick: onSubmit
|
|
10660
|
+
}, "Apply Filters"), showClearAll && React__default.createElement(Button, {
|
|
10661
|
+
buttonType: "text",
|
|
10662
|
+
id: id + "-clear-all-button",
|
|
10663
|
+
onClick: onClear,
|
|
10664
|
+
textAlign: "center"
|
|
10665
|
+
}, "Clear Filters")))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, {
|
|
10666
|
+
id: "filter-bar-" + id + "-show-filters",
|
|
10667
|
+
buttonType: "secondary",
|
|
10668
|
+
onClick: function onClick() {
|
|
10669
|
+
onToggle === undefined ? onOpen() : onToggle();
|
|
10670
|
+
}
|
|
10671
|
+
}, "Show Filter " + getSelectedItemsCount()), React__default.createElement(react.Modal, {
|
|
10672
|
+
isOpen: isOpen,
|
|
10673
|
+
onClose: function onClose() {
|
|
10674
|
+
onToggle === undefined ? _onClose() : onToggle();
|
|
10675
|
+
},
|
|
10676
|
+
size: "full",
|
|
10677
|
+
scrollBehavior: "inside"
|
|
10678
|
+
}, React__default.createElement(react.ModalOverlay, null), React__default.createElement(react.ModalContent, null, React__default.createElement(react.ModalHeader, {
|
|
10679
|
+
sx: styles.modalHeader
|
|
10680
|
+
}, "Filter Criteria"), React__default.createElement(react.ModalCloseButton, {
|
|
10681
|
+
sx: styles.modalCloseButton
|
|
10682
|
+
}), React__default.createElement(react.ModalBody, null, newChildren), React__default.createElement(react.ModalFooter, {
|
|
10683
|
+
sx: styles.modalFooter
|
|
10684
|
+
}, React__default.createElement(ButtonGroup, {
|
|
10685
|
+
layout: "row",
|
|
10686
|
+
buttonWidth: "full"
|
|
10687
|
+
}, React__default.createElement(Button, {
|
|
10688
|
+
id: "filter-bar-" + id + "-see-results",
|
|
10689
|
+
type: "submit",
|
|
10690
|
+
onClick: function onClick() {
|
|
10691
|
+
onSubmit();
|
|
10692
|
+
onToggle === undefined ? _onClose() : onToggle();
|
|
10693
|
+
}
|
|
10694
|
+
}, "Show Results"), React__default.createElement(Button, {
|
|
10695
|
+
id: "filter-bar-" + id + "-clear",
|
|
10696
|
+
buttonType: "text",
|
|
10697
|
+
type: "reset",
|
|
10698
|
+
textAlign: "center",
|
|
10699
|
+
onClick: onClear
|
|
10700
|
+
}, "Clear Filters")))))));
|
|
10701
|
+
}));
|
|
10702
|
+
|
|
10703
|
+
var _excluded$1l = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
|
|
10704
|
+
/**
|
|
10705
|
+
* A component that renders list item `li` elements or description item `dt`
|
|
10706
|
+
* and `dd` elements based on the `type` prop. Note that the `title` prop will
|
|
10707
|
+
* only display for the `Description` list type.
|
|
10708
|
+
*/
|
|
10709
|
+
var List$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10710
|
+
var children = props.children,
|
|
10711
|
+
className = props.className,
|
|
10712
|
+
id = props.id,
|
|
10713
|
+
_props$inline = props.inline,
|
|
10714
|
+
inline = _props$inline === void 0 ? false : _props$inline,
|
|
10715
|
+
listItems = props.listItems,
|
|
10716
|
+
_props$noStyling = props.noStyling,
|
|
10717
|
+
noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
|
|
10718
|
+
title = props.title,
|
|
10719
|
+
_props$type = props.type,
|
|
10720
|
+
type = _props$type === void 0 ? "ul" : _props$type,
|
|
10721
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1l);
|
|
10722
|
+
var styles = react.useStyleConfig("List", {
|
|
10723
|
+
inline: inline,
|
|
10724
|
+
noStyling: noStyling,
|
|
10725
|
+
variant: type
|
|
10726
|
+
});
|
|
10727
|
+
var listElement = null;
|
|
10728
|
+
// Either li/dt/dd children elements must be passed or the `listItems`
|
|
10729
|
+
// prop must be used.
|
|
10730
|
+
if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
|
|
10731
|
+
console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
|
|
10732
|
+
return null;
|
|
10733
|
+
}
|
|
10734
|
+
if (!children && !listItems) {
|
|
10735
|
+
console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
|
|
10736
|
+
return null;
|
|
10737
|
+
}
|
|
10738
|
+
/**
|
|
10739
|
+
* This returns either the `children` elements passed to the `List` component
|
|
10740
|
+
* first, otherwise it will check and render the data passed into the
|
|
10741
|
+
* `listItems` props based on the `ListType` type. If it is of type unordered
|
|
10742
|
+
* or ordered, it will return `li` elements. Otherwise, it will return a
|
|
10743
|
+
* combination of `dt` and `dd` elements for the description type.
|
|
10744
|
+
*/
|
|
10745
|
+
var listChildrenElms = function listChildrenElms(listType) {
|
|
10746
|
+
if (children) {
|
|
10747
|
+
return children;
|
|
10748
|
+
}
|
|
10749
|
+
if (!listItems) {
|
|
10750
|
+
return null;
|
|
10751
|
+
}
|
|
10752
|
+
if (listType === "ol" || listType === "ul") {
|
|
10753
|
+
return listItems.map(function (item, i) {
|
|
10754
|
+
return React__default.createElement("li", {
|
|
10755
|
+
key: i
|
|
10756
|
+
}, item);
|
|
10757
|
+
});
|
|
10758
|
+
} else if (listType === "dl") {
|
|
10759
|
+
return listItems.map(function (item, i) {
|
|
10760
|
+
return [React__default.createElement("dt", {
|
|
10761
|
+
key: i + "-term"
|
|
10762
|
+
}, item.term), React__default.createElement("dd", {
|
|
10763
|
+
key: i + "-des"
|
|
10764
|
+
}, item.description)];
|
|
10765
|
+
});
|
|
10766
|
+
}
|
|
10767
|
+
return null;
|
|
10768
|
+
};
|
|
10769
|
+
/**
|
|
10770
|
+
* Checks for `dt` and `dd` elements and consoles a warning if the
|
|
10771
|
+
* children are different HTML elements.
|
|
10772
|
+
*/
|
|
10773
|
+
var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
|
|
10774
|
+
React__default.Children.map(children, function (child) {
|
|
10775
|
+
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) {
|
|
10776
|
+
console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
|
|
10777
|
+
}
|
|
10778
|
+
});
|
|
10779
|
+
};
|
|
10780
|
+
if (type === "ol" || type === "ul") {
|
|
10781
|
+
checkListChildrenError(children, type);
|
|
10782
|
+
listElement = React__default.createElement(react.Box, Object.assign({
|
|
10783
|
+
as: type,
|
|
10784
|
+
id: id,
|
|
10785
|
+
className: className,
|
|
10786
|
+
ref: ref,
|
|
10787
|
+
__css: styles
|
|
10788
|
+
}, rest), listChildrenElms(type));
|
|
10789
|
+
} else if (type === "dl") {
|
|
10790
|
+
checkDescriptionChildrenError();
|
|
10791
|
+
listElement = React__default.createElement(react.Box, Object.assign({
|
|
10792
|
+
as: "section",
|
|
10793
|
+
id: id,
|
|
10794
|
+
className: className,
|
|
10795
|
+
ref: ref,
|
|
10796
|
+
__css: styles
|
|
10797
|
+
}, rest), title && React__default.createElement(Heading, {
|
|
10798
|
+
id: id + "-heading"
|
|
10799
|
+
}, title), React__default.createElement("dl", null, listChildrenElms(type)));
|
|
10800
|
+
}
|
|
10801
|
+
return listElement;
|
|
9858
10802
|
}));
|
|
9859
10803
|
/**
|
|
9860
10804
|
* Checks for `li` elements and consoles a warning if the
|
|
@@ -9876,14 +10820,14 @@ var checkListChildrenError = function checkListChildrenError(children, listType,
|
|
|
9876
10820
|
};
|
|
9877
10821
|
|
|
9878
10822
|
var _path$L, _path2$f, _path3$7;
|
|
9879
|
-
var _excluded$
|
|
10823
|
+
var _excluded$1m = ["title", "titleId"];
|
|
9880
10824
|
function _extends$R() { _extends$R = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$R.apply(this, arguments); }
|
|
9881
10825
|
function _objectWithoutProperties$Q(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$R(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9882
10826
|
function _objectWithoutPropertiesLoose$R(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9883
10827
|
var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
|
|
9884
10828
|
var title = _ref.title,
|
|
9885
10829
|
titleId = _ref.titleId,
|
|
9886
|
-
props = _objectWithoutProperties$Q(_ref, _excluded$
|
|
10830
|
+
props = _objectWithoutProperties$Q(_ref, _excluded$1m);
|
|
9887
10831
|
return /*#__PURE__*/React.createElement("svg", _extends$R({
|
|
9888
10832
|
viewBox: "0 0 200 67",
|
|
9889
10833
|
fill: "none",
|
|
@@ -9904,14 +10848,14 @@ var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
|
|
|
9904
10848
|
};
|
|
9905
10849
|
|
|
9906
10850
|
var _path$M, _path2$g, _path3$8;
|
|
9907
|
-
var _excluded$
|
|
10851
|
+
var _excluded$1n = ["title", "titleId"];
|
|
9908
10852
|
function _extends$S() { _extends$S = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$S.apply(this, arguments); }
|
|
9909
10853
|
function _objectWithoutProperties$R(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$S(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9910
10854
|
function _objectWithoutPropertiesLoose$S(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9911
10855
|
var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
|
|
9912
10856
|
var title = _ref.title,
|
|
9913
10857
|
titleId = _ref.titleId,
|
|
9914
|
-
props = _objectWithoutProperties$R(_ref, _excluded$
|
|
10858
|
+
props = _objectWithoutProperties$R(_ref, _excluded$1n);
|
|
9915
10859
|
return /*#__PURE__*/React.createElement("svg", _extends$S({
|
|
9916
10860
|
viewBox: "0 0 200 67",
|
|
9917
10861
|
fill: "none",
|
|
@@ -9932,14 +10876,14 @@ var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
|
|
|
9932
10876
|
};
|
|
9933
10877
|
|
|
9934
10878
|
var _path$N, _path2$h, _path3$9;
|
|
9935
|
-
var _excluded$
|
|
10879
|
+
var _excluded$1o = ["title", "titleId"];
|
|
9936
10880
|
function _extends$T() { _extends$T = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$T.apply(this, arguments); }
|
|
9937
10881
|
function _objectWithoutProperties$S(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$T(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9938
10882
|
function _objectWithoutPropertiesLoose$T(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9939
10883
|
var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
|
|
9940
10884
|
var title = _ref.title,
|
|
9941
10885
|
titleId = _ref.titleId,
|
|
9942
|
-
props = _objectWithoutProperties$S(_ref, _excluded$
|
|
10886
|
+
props = _objectWithoutProperties$S(_ref, _excluded$1o);
|
|
9943
10887
|
return /*#__PURE__*/React.createElement("svg", _extends$T({
|
|
9944
10888
|
viewBox: "0 0 328 120",
|
|
9945
10889
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9956,14 +10900,14 @@ var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
|
|
|
9956
10900
|
};
|
|
9957
10901
|
|
|
9958
10902
|
var _path$O, _path2$i, _path3$a;
|
|
9959
|
-
var _excluded$
|
|
10903
|
+
var _excluded$1p = ["title", "titleId"];
|
|
9960
10904
|
function _extends$U() { _extends$U = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$U.apply(this, arguments); }
|
|
9961
10905
|
function _objectWithoutProperties$T(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$U(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9962
10906
|
function _objectWithoutPropertiesLoose$U(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9963
10907
|
var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
|
|
9964
10908
|
var title = _ref.title,
|
|
9965
10909
|
titleId = _ref.titleId,
|
|
9966
|
-
props = _objectWithoutProperties$T(_ref, _excluded$
|
|
10910
|
+
props = _objectWithoutProperties$T(_ref, _excluded$1p);
|
|
9967
10911
|
return /*#__PURE__*/React.createElement("svg", _extends$U({
|
|
9968
10912
|
viewBox: "0 0 328 120",
|
|
9969
10913
|
fill: "#fff",
|
|
@@ -9981,14 +10925,14 @@ var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
|
|
|
9981
10925
|
};
|
|
9982
10926
|
|
|
9983
10927
|
var _rect$2, _path$P;
|
|
9984
|
-
var _excluded$
|
|
10928
|
+
var _excluded$1q = ["title", "titleId"];
|
|
9985
10929
|
function _extends$V() { _extends$V = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$V.apply(this, arguments); }
|
|
9986
10930
|
function _objectWithoutProperties$U(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$V(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9987
10931
|
function _objectWithoutPropertiesLoose$V(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
9988
10932
|
var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
|
|
9989
10933
|
var title = _ref.title,
|
|
9990
10934
|
titleId = _ref.titleId,
|
|
9991
|
-
props = _objectWithoutProperties$U(_ref, _excluded$
|
|
10935
|
+
props = _objectWithoutProperties$U(_ref, _excluded$1q);
|
|
9992
10936
|
return /*#__PURE__*/React.createElement("svg", _extends$V({
|
|
9993
10937
|
viewBox: "0 0 118 119",
|
|
9994
10938
|
fill: "none",
|
|
@@ -10011,14 +10955,14 @@ var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
|
|
|
10011
10955
|
};
|
|
10012
10956
|
|
|
10013
10957
|
var _path$Q;
|
|
10014
|
-
var _excluded$
|
|
10958
|
+
var _excluded$1r = ["title", "titleId"];
|
|
10015
10959
|
function _extends$W() { _extends$W = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$W.apply(this, arguments); }
|
|
10016
10960
|
function _objectWithoutProperties$V(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$W(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10017
10961
|
function _objectWithoutPropertiesLoose$W(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10018
10962
|
var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
|
|
10019
10963
|
var title = _ref.title,
|
|
10020
10964
|
titleId = _ref.titleId,
|
|
10021
|
-
props = _objectWithoutProperties$V(_ref, _excluded$
|
|
10965
|
+
props = _objectWithoutProperties$V(_ref, _excluded$1r);
|
|
10022
10966
|
return /*#__PURE__*/React.createElement("svg", _extends$W({
|
|
10023
10967
|
viewBox: "0 0 312 88",
|
|
10024
10968
|
fill: "#436CF2",
|
|
@@ -10034,14 +10978,14 @@ var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
|
|
|
10034
10978
|
};
|
|
10035
10979
|
|
|
10036
10980
|
var _path$R;
|
|
10037
|
-
var _excluded$
|
|
10981
|
+
var _excluded$1s = ["title", "titleId"];
|
|
10038
10982
|
function _extends$X() { _extends$X = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$X.apply(this, arguments); }
|
|
10039
10983
|
function _objectWithoutProperties$W(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$X(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10040
10984
|
function _objectWithoutPropertiesLoose$X(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10041
10985
|
var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
|
|
10042
10986
|
var title = _ref.title,
|
|
10043
10987
|
titleId = _ref.titleId,
|
|
10044
|
-
props = _objectWithoutProperties$W(_ref, _excluded$
|
|
10988
|
+
props = _objectWithoutProperties$W(_ref, _excluded$1s);
|
|
10045
10989
|
return /*#__PURE__*/React.createElement("svg", _extends$X({
|
|
10046
10990
|
viewBox: "0 0 312 88",
|
|
10047
10991
|
fill: "#fff",
|
|
@@ -10057,14 +11001,14 @@ var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
|
|
|
10057
11001
|
};
|
|
10058
11002
|
|
|
10059
11003
|
var _path$S, _path2$j, _path3$b, _path4$1, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13;
|
|
10060
|
-
var _excluded$
|
|
11004
|
+
var _excluded$1t = ["title", "titleId"];
|
|
10061
11005
|
function _extends$Y() { _extends$Y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Y.apply(this, arguments); }
|
|
10062
11006
|
function _objectWithoutProperties$X(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$Y(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10063
11007
|
function _objectWithoutPropertiesLoose$Y(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10064
11008
|
var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
|
|
10065
11009
|
var title = _ref.title,
|
|
10066
11010
|
titleId = _ref.titleId,
|
|
10067
|
-
props = _objectWithoutProperties$X(_ref, _excluded$
|
|
11011
|
+
props = _objectWithoutProperties$X(_ref, _excluded$1t);
|
|
10068
11012
|
return /*#__PURE__*/React.createElement("svg", _extends$Y({
|
|
10069
11013
|
viewBox: "0 0 172 152",
|
|
10070
11014
|
fill: "none",
|
|
@@ -10115,14 +11059,14 @@ var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
|
|
|
10115
11059
|
};
|
|
10116
11060
|
|
|
10117
11061
|
var _g$3;
|
|
10118
|
-
var _excluded$
|
|
11062
|
+
var _excluded$1u = ["title", "titleId"];
|
|
10119
11063
|
function _extends$Z() { _extends$Z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$Z.apply(this, arguments); }
|
|
10120
11064
|
function _objectWithoutProperties$Y(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$Z(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10121
11065
|
function _objectWithoutPropertiesLoose$Z(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10122
11066
|
var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref) {
|
|
10123
11067
|
var title = _ref.title,
|
|
10124
11068
|
titleId = _ref.titleId,
|
|
10125
|
-
props = _objectWithoutProperties$Y(_ref, _excluded$
|
|
11069
|
+
props = _objectWithoutProperties$Y(_ref, _excluded$1u);
|
|
10126
11070
|
return /*#__PURE__*/React.createElement("svg", _extends$Z({
|
|
10127
11071
|
viewBox: "0 0 170 150",
|
|
10128
11072
|
fill: "none",
|
|
@@ -10178,14 +11122,14 @@ var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref)
|
|
|
10178
11122
|
};
|
|
10179
11123
|
|
|
10180
11124
|
var _g$4, _defs;
|
|
10181
|
-
var _excluded$
|
|
11125
|
+
var _excluded$1v = ["title", "titleId"];
|
|
10182
11126
|
function _extends$_() { _extends$_ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$_.apply(this, arguments); }
|
|
10183
11127
|
function _objectWithoutProperties$Z(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$_(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10184
11128
|
function _objectWithoutPropertiesLoose$_(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10185
11129
|
var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
|
|
10186
11130
|
var title = _ref.title,
|
|
10187
11131
|
titleId = _ref.titleId,
|
|
10188
|
-
props = _objectWithoutProperties$Z(_ref, _excluded$
|
|
11132
|
+
props = _objectWithoutProperties$Z(_ref, _excluded$1v);
|
|
10189
11133
|
return /*#__PURE__*/React.createElement("svg", _extends$_({
|
|
10190
11134
|
viewBox: "0 0 200 60",
|
|
10191
11135
|
fill: "none",
|
|
@@ -10318,14 +11262,14 @@ var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
|
|
|
10318
11262
|
};
|
|
10319
11263
|
|
|
10320
11264
|
var _path$T, _path2$k;
|
|
10321
|
-
var _excluded$
|
|
11265
|
+
var _excluded$1w = ["title", "titleId"];
|
|
10322
11266
|
function _extends$$() { _extends$$ = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$$.apply(this, arguments); }
|
|
10323
11267
|
function _objectWithoutProperties$_(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$$(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10324
11268
|
function _objectWithoutPropertiesLoose$$(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10325
11269
|
var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
|
|
10326
11270
|
var title = _ref.title,
|
|
10327
11271
|
titleId = _ref.titleId,
|
|
10328
|
-
props = _objectWithoutProperties$_(_ref, _excluded$
|
|
11272
|
+
props = _objectWithoutProperties$_(_ref, _excluded$1w);
|
|
10329
11273
|
return /*#__PURE__*/React.createElement("svg", _extends$$({
|
|
10330
11274
|
viewBox: "0 0 186 74",
|
|
10331
11275
|
fill: "none",
|
|
@@ -10343,14 +11287,14 @@ var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
|
|
|
10343
11287
|
};
|
|
10344
11288
|
|
|
10345
11289
|
var _path$U;
|
|
10346
|
-
var _excluded$
|
|
11290
|
+
var _excluded$1x = ["title", "titleId"];
|
|
10347
11291
|
function _extends$10() { _extends$10 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$10.apply(this, arguments); }
|
|
10348
11292
|
function _objectWithoutProperties$$(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$10(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10349
11293
|
function _objectWithoutPropertiesLoose$10(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10350
11294
|
var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
|
|
10351
11295
|
var title = _ref.title,
|
|
10352
11296
|
titleId = _ref.titleId,
|
|
10353
|
-
props = _objectWithoutProperties$$(_ref, _excluded$
|
|
11297
|
+
props = _objectWithoutProperties$$(_ref, _excluded$1x);
|
|
10354
11298
|
return /*#__PURE__*/React.createElement("svg", _extends$10({
|
|
10355
11299
|
viewBox: "0 0 186 74",
|
|
10356
11300
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10363,14 +11307,14 @@ var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
|
|
|
10363
11307
|
};
|
|
10364
11308
|
|
|
10365
11309
|
var _path$V;
|
|
10366
|
-
var _excluded$
|
|
11310
|
+
var _excluded$1y = ["title", "titleId"];
|
|
10367
11311
|
function _extends$11() { _extends$11 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$11.apply(this, arguments); }
|
|
10368
11312
|
function _objectWithoutProperties$10(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$11(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10369
11313
|
function _objectWithoutPropertiesLoose$11(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10370
11314
|
var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
|
|
10371
11315
|
var title = _ref.title,
|
|
10372
11316
|
titleId = _ref.titleId,
|
|
10373
|
-
props = _objectWithoutProperties$10(_ref, _excluded$
|
|
11317
|
+
props = _objectWithoutProperties$10(_ref, _excluded$1y);
|
|
10374
11318
|
return /*#__PURE__*/React.createElement("svg", _extends$11({
|
|
10375
11319
|
viewBox: "0 0 186 74",
|
|
10376
11320
|
fill: "#fff",
|
|
@@ -10384,14 +11328,14 @@ var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
|
|
|
10384
11328
|
};
|
|
10385
11329
|
|
|
10386
11330
|
var _g$5;
|
|
10387
|
-
var _excluded$
|
|
11331
|
+
var _excluded$1z = ["title", "titleId"];
|
|
10388
11332
|
function _extends$12() { _extends$12 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$12.apply(this, arguments); }
|
|
10389
11333
|
function _objectWithoutProperties$11(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$12(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10390
11334
|
function _objectWithoutPropertiesLoose$12(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10391
11335
|
var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
|
|
10392
11336
|
var title = _ref.title,
|
|
10393
11337
|
titleId = _ref.titleId,
|
|
10394
|
-
props = _objectWithoutProperties$11(_ref, _excluded$
|
|
11338
|
+
props = _objectWithoutProperties$11(_ref, _excluded$1z);
|
|
10395
11339
|
return /*#__PURE__*/React.createElement("svg", _extends$12({
|
|
10396
11340
|
viewBox: "0 0 300 71",
|
|
10397
11341
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10406,14 +11350,14 @@ var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
|
|
|
10406
11350
|
};
|
|
10407
11351
|
|
|
10408
11352
|
var _g$6;
|
|
10409
|
-
var _excluded$
|
|
11353
|
+
var _excluded$1A = ["title", "titleId"];
|
|
10410
11354
|
function _extends$13() { _extends$13 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$13.apply(this, arguments); }
|
|
10411
11355
|
function _objectWithoutProperties$12(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$13(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10412
11356
|
function _objectWithoutPropertiesLoose$13(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10413
11357
|
var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
|
|
10414
11358
|
var title = _ref.title,
|
|
10415
11359
|
titleId = _ref.titleId,
|
|
10416
|
-
props = _objectWithoutProperties$12(_ref, _excluded$
|
|
11360
|
+
props = _objectWithoutProperties$12(_ref, _excluded$1A);
|
|
10417
11361
|
return /*#__PURE__*/React.createElement("svg", _extends$13({
|
|
10418
11362
|
viewBox: "0 0 300 71",
|
|
10419
11363
|
fill: "#C60917",
|
|
@@ -10429,14 +11373,14 @@ var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
|
|
|
10429
11373
|
};
|
|
10430
11374
|
|
|
10431
11375
|
var _g$7;
|
|
10432
|
-
var _excluded$
|
|
11376
|
+
var _excluded$1B = ["title", "titleId"];
|
|
10433
11377
|
function _extends$14() { _extends$14 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$14.apply(this, arguments); }
|
|
10434
11378
|
function _objectWithoutProperties$13(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$14(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10435
11379
|
function _objectWithoutPropertiesLoose$14(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10436
11380
|
var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
|
|
10437
11381
|
var title = _ref.title,
|
|
10438
11382
|
titleId = _ref.titleId,
|
|
10439
|
-
props = _objectWithoutProperties$13(_ref, _excluded$
|
|
11383
|
+
props = _objectWithoutProperties$13(_ref, _excluded$1B);
|
|
10440
11384
|
return /*#__PURE__*/React.createElement("svg", _extends$14({
|
|
10441
11385
|
viewBox: "0 0 300 71",
|
|
10442
11386
|
fill: "#fff",
|
|
@@ -10452,14 +11396,14 @@ var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
|
|
|
10452
11396
|
};
|
|
10453
11397
|
|
|
10454
11398
|
var _g$8, _defs$1;
|
|
10455
|
-
var _excluded$
|
|
11399
|
+
var _excluded$1C = ["title", "titleId"];
|
|
10456
11400
|
function _extends$15() { _extends$15 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$15.apply(this, arguments); }
|
|
10457
11401
|
function _objectWithoutProperties$14(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$15(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10458
11402
|
function _objectWithoutPropertiesLoose$15(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10459
11403
|
var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
|
|
10460
11404
|
var title = _ref.title,
|
|
10461
11405
|
titleId = _ref.titleId,
|
|
10462
|
-
props = _objectWithoutProperties$14(_ref, _excluded$
|
|
11406
|
+
props = _objectWithoutProperties$14(_ref, _excluded$1C);
|
|
10463
11407
|
return /*#__PURE__*/React.createElement("svg", _extends$15({
|
|
10464
11408
|
viewBox: "0 0 341 61",
|
|
10465
11409
|
fill: "none",
|
|
@@ -10492,14 +11436,14 @@ var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
|
|
|
10492
11436
|
})))));
|
|
10493
11437
|
};
|
|
10494
11438
|
|
|
10495
|
-
var _excluded$
|
|
11439
|
+
var _excluded$1D = ["title", "titleId"];
|
|
10496
11440
|
function _extends$16() { _extends$16 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$16.apply(this, arguments); }
|
|
10497
11441
|
function _objectWithoutProperties$15(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$16(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10498
11442
|
function _objectWithoutPropertiesLoose$16(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10499
11443
|
var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
|
|
10500
11444
|
var title = _ref.title,
|
|
10501
11445
|
titleId = _ref.titleId,
|
|
10502
|
-
props = _objectWithoutProperties$15(_ref, _excluded$
|
|
11446
|
+
props = _objectWithoutProperties$15(_ref, _excluded$1D);
|
|
10503
11447
|
return /*#__PURE__*/React.createElement("svg", _extends$16({
|
|
10504
11448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10505
11449
|
viewBox: "0 0 966.787 543.733",
|
|
@@ -10574,14 +11518,14 @@ var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
|
|
|
10574
11518
|
};
|
|
10575
11519
|
|
|
10576
11520
|
var _g$9, _defs$2;
|
|
10577
|
-
var _excluded$
|
|
11521
|
+
var _excluded$1E = ["title", "titleId"];
|
|
10578
11522
|
function _extends$17() { _extends$17 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$17.apply(this, arguments); }
|
|
10579
11523
|
function _objectWithoutProperties$16(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$17(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10580
11524
|
function _objectWithoutPropertiesLoose$17(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10581
11525
|
var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
|
|
10582
11526
|
var title = _ref.title,
|
|
10583
11527
|
titleId = _ref.titleId,
|
|
10584
|
-
props = _objectWithoutProperties$16(_ref, _excluded$
|
|
11528
|
+
props = _objectWithoutProperties$16(_ref, _excluded$1E);
|
|
10585
11529
|
return /*#__PURE__*/React.createElement("svg", _extends$17({
|
|
10586
11530
|
viewBox: "0 0 967 568",
|
|
10587
11531
|
fill: "none",
|
|
@@ -10609,14 +11553,14 @@ var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
|
|
|
10609
11553
|
};
|
|
10610
11554
|
|
|
10611
11555
|
var _path$W, _path2$l, _path3$c;
|
|
10612
|
-
var _excluded$
|
|
11556
|
+
var _excluded$1F = ["title", "titleId"];
|
|
10613
11557
|
function _extends$18() { _extends$18 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$18.apply(this, arguments); }
|
|
10614
11558
|
function _objectWithoutProperties$17(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$18(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10615
11559
|
function _objectWithoutPropertiesLoose$18(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10616
11560
|
var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
|
|
10617
11561
|
var title = _ref.title,
|
|
10618
11562
|
titleId = _ref.titleId,
|
|
10619
|
-
props = _objectWithoutProperties$17(_ref, _excluded$
|
|
11563
|
+
props = _objectWithoutProperties$17(_ref, _excluded$1F);
|
|
10620
11564
|
return /*#__PURE__*/React.createElement("svg", _extends$18({
|
|
10621
11565
|
viewBox: "0 0 136 135",
|
|
10622
11566
|
fill: "none",
|
|
@@ -10639,14 +11583,14 @@ var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
|
|
|
10639
11583
|
};
|
|
10640
11584
|
|
|
10641
11585
|
var _path$X;
|
|
10642
|
-
var _excluded$
|
|
11586
|
+
var _excluded$1G = ["title", "titleId"];
|
|
10643
11587
|
function _extends$19() { _extends$19 = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$19.apply(this, arguments); }
|
|
10644
11588
|
function _objectWithoutProperties$18(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$19(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10645
11589
|
function _objectWithoutPropertiesLoose$19(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10646
11590
|
var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
|
|
10647
11591
|
var title = _ref.title,
|
|
10648
11592
|
titleId = _ref.titleId,
|
|
10649
|
-
props = _objectWithoutProperties$18(_ref, _excluded$
|
|
11593
|
+
props = _objectWithoutProperties$18(_ref, _excluded$1G);
|
|
10650
11594
|
return /*#__PURE__*/React.createElement("svg", _extends$19({
|
|
10651
11595
|
viewBox: "0 0 125 126",
|
|
10652
11596
|
fill: "none",
|
|
@@ -10663,14 +11607,14 @@ var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
|
|
|
10663
11607
|
};
|
|
10664
11608
|
|
|
10665
11609
|
var _path$Y, _path2$m, _path3$d, _path4$2, _path5$1, _path6$1, _path7$1, _path8$1, _path9$1, _path10$1, _path11$1, _path12$1, _path13$1, _path14, _path15;
|
|
10666
|
-
var _excluded$
|
|
11610
|
+
var _excluded$1H = ["title", "titleId"];
|
|
10667
11611
|
function _extends$1a() { _extends$1a = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1a.apply(this, arguments); }
|
|
10668
11612
|
function _objectWithoutProperties$19(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1a(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10669
11613
|
function _objectWithoutPropertiesLoose$1a(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10670
11614
|
var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
|
|
10671
11615
|
var title = _ref.title,
|
|
10672
11616
|
titleId = _ref.titleId,
|
|
10673
|
-
props = _objectWithoutProperties$19(_ref, _excluded$
|
|
11617
|
+
props = _objectWithoutProperties$19(_ref, _excluded$1H);
|
|
10674
11618
|
return /*#__PURE__*/React.createElement("svg", _extends$1a({
|
|
10675
11619
|
viewBox: "0 0 201 165",
|
|
10676
11620
|
fill: "none",
|
|
@@ -10741,14 +11685,14 @@ var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
|
|
|
10741
11685
|
};
|
|
10742
11686
|
|
|
10743
11687
|
var _path$Z, _path2$n, _path3$e, _path4$3, _path5$2, _path6$2, _path7$2, _path8$2, _path9$2, _path10$2, _path11$2, _path12$2, _path13$2, _path14$1, _path15$1;
|
|
10744
|
-
var _excluded$
|
|
11688
|
+
var _excluded$1I = ["title", "titleId"];
|
|
10745
11689
|
function _extends$1b() { _extends$1b = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1b.apply(this, arguments); }
|
|
10746
11690
|
function _objectWithoutProperties$1a(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1b(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10747
11691
|
function _objectWithoutPropertiesLoose$1b(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10748
11692
|
var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
|
|
10749
11693
|
var title = _ref.title,
|
|
10750
11694
|
titleId = _ref.titleId,
|
|
10751
|
-
props = _objectWithoutProperties$1a(_ref, _excluded$
|
|
11695
|
+
props = _objectWithoutProperties$1a(_ref, _excluded$1I);
|
|
10752
11696
|
return /*#__PURE__*/React.createElement("svg", _extends$1b({
|
|
10753
11697
|
viewBox: "0 0 201 165",
|
|
10754
11698
|
fill: "none",
|
|
@@ -10819,14 +11763,14 @@ var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
|
|
|
10819
11763
|
};
|
|
10820
11764
|
|
|
10821
11765
|
var _g$a, _defs$3;
|
|
10822
|
-
var _excluded$
|
|
11766
|
+
var _excluded$1J = ["title", "titleId"];
|
|
10823
11767
|
function _extends$1c() { _extends$1c = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1c.apply(this, arguments); }
|
|
10824
11768
|
function _objectWithoutProperties$1b(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1c(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10825
11769
|
function _objectWithoutPropertiesLoose$1c(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10826
11770
|
var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
|
|
10827
11771
|
var title = _ref.title,
|
|
10828
11772
|
titleId = _ref.titleId,
|
|
10829
|
-
props = _objectWithoutProperties$1b(_ref, _excluded$
|
|
11773
|
+
props = _objectWithoutProperties$1b(_ref, _excluded$1J);
|
|
10830
11774
|
return /*#__PURE__*/React.createElement("svg", _extends$1c({
|
|
10831
11775
|
viewBox: "0 0 152 139",
|
|
10832
11776
|
fill: "none",
|
|
@@ -10874,14 +11818,14 @@ var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
|
|
|
10874
11818
|
};
|
|
10875
11819
|
|
|
10876
11820
|
var _g$b, _defs$4;
|
|
10877
|
-
var _excluded$
|
|
11821
|
+
var _excluded$1K = ["title", "titleId"];
|
|
10878
11822
|
function _extends$1d() { _extends$1d = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1d.apply(this, arguments); }
|
|
10879
11823
|
function _objectWithoutProperties$1c(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1d(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10880
11824
|
function _objectWithoutPropertiesLoose$1d(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10881
11825
|
var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
|
|
10882
11826
|
var title = _ref.title,
|
|
10883
11827
|
titleId = _ref.titleId,
|
|
10884
|
-
props = _objectWithoutProperties$1c(_ref, _excluded$
|
|
11828
|
+
props = _objectWithoutProperties$1c(_ref, _excluded$1K);
|
|
10885
11829
|
return /*#__PURE__*/React.createElement("svg", _extends$1d({
|
|
10886
11830
|
viewBox: "0 0 155 139",
|
|
10887
11831
|
fill: "none",
|
|
@@ -10952,14 +11896,14 @@ var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
|
|
|
10952
11896
|
};
|
|
10953
11897
|
|
|
10954
11898
|
var _g$c, _defs$5;
|
|
10955
|
-
var _excluded$
|
|
11899
|
+
var _excluded$1L = ["title", "titleId"];
|
|
10956
11900
|
function _extends$1e() { _extends$1e = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1e.apply(this, arguments); }
|
|
10957
11901
|
function _objectWithoutProperties$1d(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1e(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
10958
11902
|
function _objectWithoutPropertiesLoose$1e(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10959
11903
|
var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_ref) {
|
|
10960
11904
|
var title = _ref.title,
|
|
10961
11905
|
titleId = _ref.titleId,
|
|
10962
|
-
props = _objectWithoutProperties$1d(_ref, _excluded$
|
|
11906
|
+
props = _objectWithoutProperties$1d(_ref, _excluded$1L);
|
|
10963
11907
|
return /*#__PURE__*/React.createElement("svg", _extends$1e({
|
|
10964
11908
|
viewBox: "0 0 152 139",
|
|
10965
11909
|
fill: "none",
|
|
@@ -11007,14 +11951,14 @@ var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_re
|
|
|
11007
11951
|
};
|
|
11008
11952
|
|
|
11009
11953
|
var _g$d, _defs$6;
|
|
11010
|
-
var _excluded$
|
|
11954
|
+
var _excluded$1M = ["title", "titleId"];
|
|
11011
11955
|
function _extends$1f() { _extends$1f = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1f.apply(this, arguments); }
|
|
11012
11956
|
function _objectWithoutProperties$1e(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1f(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11013
11957
|
function _objectWithoutPropertiesLoose$1f(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11014
11958
|
var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegative(_ref) {
|
|
11015
11959
|
var title = _ref.title,
|
|
11016
11960
|
titleId = _ref.titleId,
|
|
11017
|
-
props = _objectWithoutProperties$1e(_ref, _excluded$
|
|
11961
|
+
props = _objectWithoutProperties$1e(_ref, _excluded$1M);
|
|
11018
11962
|
return /*#__PURE__*/React.createElement("svg", _extends$1f({
|
|
11019
11963
|
viewBox: "0 0 155 139",
|
|
11020
11964
|
fill: "none",
|
|
@@ -11088,14 +12032,14 @@ var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegati
|
|
|
11088
12032
|
};
|
|
11089
12033
|
|
|
11090
12034
|
var _path$_;
|
|
11091
|
-
var _excluded$
|
|
12035
|
+
var _excluded$1N = ["title", "titleId"];
|
|
11092
12036
|
function _extends$1g() { _extends$1g = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1g.apply(this, arguments); }
|
|
11093
12037
|
function _objectWithoutProperties$1f(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1g(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11094
12038
|
function _objectWithoutPropertiesLoose$1g(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11095
12039
|
var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
|
|
11096
12040
|
var title = _ref.title,
|
|
11097
12041
|
titleId = _ref.titleId,
|
|
11098
|
-
props = _objectWithoutProperties$1f(_ref, _excluded$
|
|
12042
|
+
props = _objectWithoutProperties$1f(_ref, _excluded$1N);
|
|
11099
12043
|
return /*#__PURE__*/React.createElement("svg", _extends$1g({
|
|
11100
12044
|
viewBox: "0 0 250 134",
|
|
11101
12045
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11108,14 +12052,14 @@ var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
|
|
|
11108
12052
|
};
|
|
11109
12053
|
|
|
11110
12054
|
var _path$$;
|
|
11111
|
-
var _excluded$
|
|
12055
|
+
var _excluded$1O = ["title", "titleId"];
|
|
11112
12056
|
function _extends$1h() { _extends$1h = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1h.apply(this, arguments); }
|
|
11113
12057
|
function _objectWithoutProperties$1g(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1h(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11114
12058
|
function _objectWithoutPropertiesLoose$1h(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11115
12059
|
var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
|
|
11116
12060
|
var title = _ref.title,
|
|
11117
12061
|
titleId = _ref.titleId,
|
|
11118
|
-
props = _objectWithoutProperties$1g(_ref, _excluded$
|
|
12062
|
+
props = _objectWithoutProperties$1g(_ref, _excluded$1O);
|
|
11119
12063
|
return /*#__PURE__*/React.createElement("svg", _extends$1h({
|
|
11120
12064
|
viewBox: "0 0 250 134",
|
|
11121
12065
|
fill: "#fff",
|
|
@@ -11129,14 +12073,14 @@ var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
|
|
|
11129
12073
|
};
|
|
11130
12074
|
|
|
11131
12075
|
var _path$10, _path2$o, _path3$f, _path4$4, _path5$3;
|
|
11132
|
-
var _excluded$
|
|
12076
|
+
var _excluded$1P = ["title", "titleId"];
|
|
11133
12077
|
function _extends$1i() { _extends$1i = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1i.apply(this, arguments); }
|
|
11134
12078
|
function _objectWithoutProperties$1h(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1i(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11135
12079
|
function _objectWithoutPropertiesLoose$1i(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11136
12080
|
var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
|
|
11137
12081
|
var title = _ref.title,
|
|
11138
12082
|
titleId = _ref.titleId,
|
|
11139
|
-
props = _objectWithoutProperties$1h(_ref, _excluded$
|
|
12083
|
+
props = _objectWithoutProperties$1h(_ref, _excluded$1P);
|
|
11140
12084
|
return /*#__PURE__*/React.createElement("svg", _extends$1i({
|
|
11141
12085
|
viewBox: "0 0 320 43",
|
|
11142
12086
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11165,14 +12109,14 @@ var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
|
|
|
11165
12109
|
};
|
|
11166
12110
|
|
|
11167
12111
|
var _g$e, _defs$7;
|
|
11168
|
-
var _excluded$
|
|
12112
|
+
var _excluded$1Q = ["title", "titleId"];
|
|
11169
12113
|
function _extends$1j() { _extends$1j = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1j.apply(this, arguments); }
|
|
11170
12114
|
function _objectWithoutProperties$1i(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1j(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11171
12115
|
function _objectWithoutPropertiesLoose$1j(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11172
12116
|
var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
|
|
11173
12117
|
var title = _ref.title,
|
|
11174
12118
|
titleId = _ref.titleId,
|
|
11175
|
-
props = _objectWithoutProperties$1i(_ref, _excluded$
|
|
12119
|
+
props = _objectWithoutProperties$1i(_ref, _excluded$1Q);
|
|
11176
12120
|
return /*#__PURE__*/React.createElement("svg", _extends$1j({
|
|
11177
12121
|
viewBox: "0 0 355 48",
|
|
11178
12122
|
fill: "none",
|
|
@@ -11220,14 +12164,14 @@ var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
|
|
|
11220
12164
|
};
|
|
11221
12165
|
|
|
11222
12166
|
var _path$11, _path2$p, _path3$g, _path4$5, _path5$4;
|
|
11223
|
-
var _excluded$
|
|
12167
|
+
var _excluded$1R = ["title", "titleId"];
|
|
11224
12168
|
function _extends$1k() { _extends$1k = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1k.apply(this, arguments); }
|
|
11225
12169
|
function _objectWithoutProperties$1j(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1k(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11226
12170
|
function _objectWithoutPropertiesLoose$1k(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11227
12171
|
var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
|
|
11228
12172
|
var title = _ref.title,
|
|
11229
12173
|
titleId = _ref.titleId,
|
|
11230
|
-
props = _objectWithoutProperties$1j(_ref, _excluded$
|
|
12174
|
+
props = _objectWithoutProperties$1j(_ref, _excluded$1R);
|
|
11231
12175
|
return /*#__PURE__*/React.createElement("svg", _extends$1k({
|
|
11232
12176
|
viewBox: "0 0 320 43",
|
|
11233
12177
|
fill: "#fff",
|
|
@@ -11257,14 +12201,14 @@ var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
|
|
|
11257
12201
|
};
|
|
11258
12202
|
|
|
11259
12203
|
var _path$12, _path2$q, _path3$h, _path4$6, _path5$5;
|
|
11260
|
-
var _excluded$
|
|
12204
|
+
var _excluded$1S = ["title", "titleId"];
|
|
11261
12205
|
function _extends$1l() { _extends$1l = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1l.apply(this, arguments); }
|
|
11262
12206
|
function _objectWithoutProperties$1k(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1l(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11263
12207
|
function _objectWithoutPropertiesLoose$1l(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11264
12208
|
var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
|
|
11265
12209
|
var title = _ref.title,
|
|
11266
12210
|
titleId = _ref.titleId,
|
|
11267
|
-
props = _objectWithoutProperties$1k(_ref, _excluded$
|
|
12211
|
+
props = _objectWithoutProperties$1k(_ref, _excluded$1S);
|
|
11268
12212
|
return /*#__PURE__*/React.createElement("svg", _extends$1l({
|
|
11269
12213
|
viewBox: "0 0 105 129",
|
|
11270
12214
|
fill: "none",
|
|
@@ -11291,14 +12235,14 @@ var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
|
|
|
11291
12235
|
};
|
|
11292
12236
|
|
|
11293
12237
|
var _g$f;
|
|
11294
|
-
var _excluded$
|
|
12238
|
+
var _excluded$1T = ["title", "titleId"];
|
|
11295
12239
|
function _extends$1m() { _extends$1m = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1m.apply(this, arguments); }
|
|
11296
12240
|
function _objectWithoutProperties$1l(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1m(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11297
12241
|
function _objectWithoutPropertiesLoose$1m(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11298
12242
|
var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref) {
|
|
11299
12243
|
var title = _ref.title,
|
|
11300
12244
|
titleId = _ref.titleId,
|
|
11301
|
-
props = _objectWithoutProperties$1l(_ref, _excluded$
|
|
12245
|
+
props = _objectWithoutProperties$1l(_ref, _excluded$1T);
|
|
11302
12246
|
return /*#__PURE__*/React.createElement("svg", _extends$1m({
|
|
11303
12247
|
viewBox: "0 0 234 261",
|
|
11304
12248
|
fill: "none",
|
|
@@ -11324,14 +12268,14 @@ var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref)
|
|
|
11324
12268
|
};
|
|
11325
12269
|
|
|
11326
12270
|
var _path$13, _path2$r, _path3$i, _path4$7, _path5$6;
|
|
11327
|
-
var _excluded$
|
|
12271
|
+
var _excluded$1U = ["title", "titleId"];
|
|
11328
12272
|
function _extends$1n() { _extends$1n = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1n.apply(this, arguments); }
|
|
11329
12273
|
function _objectWithoutProperties$1m(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1n(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11330
12274
|
function _objectWithoutPropertiesLoose$1n(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11331
12275
|
var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
|
|
11332
12276
|
var title = _ref.title,
|
|
11333
12277
|
titleId = _ref.titleId,
|
|
11334
|
-
props = _objectWithoutProperties$1m(_ref, _excluded$
|
|
12278
|
+
props = _objectWithoutProperties$1m(_ref, _excluded$1U);
|
|
11335
12279
|
return /*#__PURE__*/React.createElement("svg", _extends$1n({
|
|
11336
12280
|
viewBox: "0 0 185 79",
|
|
11337
12281
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11352,14 +12296,14 @@ var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
|
|
|
11352
12296
|
};
|
|
11353
12297
|
|
|
11354
12298
|
var _path$14, _path2$s, _path3$j, _path4$8, _path5$7;
|
|
11355
|
-
var _excluded$
|
|
12299
|
+
var _excluded$1V = ["title", "titleId"];
|
|
11356
12300
|
function _extends$1o() { _extends$1o = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1o.apply(this, arguments); }
|
|
11357
12301
|
function _objectWithoutProperties$1n(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1o(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11358
12302
|
function _objectWithoutPropertiesLoose$1o(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11359
12303
|
var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
|
|
11360
12304
|
var title = _ref.title,
|
|
11361
12305
|
titleId = _ref.titleId,
|
|
11362
|
-
props = _objectWithoutProperties$1n(_ref, _excluded$
|
|
12306
|
+
props = _objectWithoutProperties$1n(_ref, _excluded$1V);
|
|
11363
12307
|
return /*#__PURE__*/React.createElement("svg", _extends$1o({
|
|
11364
12308
|
viewBox: "0 0 67 67",
|
|
11365
12309
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11380,14 +12324,14 @@ var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
|
|
|
11380
12324
|
};
|
|
11381
12325
|
|
|
11382
12326
|
var _path$15, _path2$t, _path3$k, _path4$9, _path5$8;
|
|
11383
|
-
var _excluded$
|
|
12327
|
+
var _excluded$1W = ["title", "titleId"];
|
|
11384
12328
|
function _extends$1p() { _extends$1p = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1p.apply(this, arguments); }
|
|
11385
12329
|
function _objectWithoutProperties$1o(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1p(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11386
12330
|
function _objectWithoutPropertiesLoose$1p(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11387
12331
|
var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
|
|
11388
12332
|
var title = _ref.title,
|
|
11389
12333
|
titleId = _ref.titleId,
|
|
11390
|
-
props = _objectWithoutProperties$1o(_ref, _excluded$
|
|
12334
|
+
props = _objectWithoutProperties$1o(_ref, _excluded$1W);
|
|
11391
12335
|
return /*#__PURE__*/React.createElement("svg", _extends$1p({
|
|
11392
12336
|
viewBox: "0 0 67 67",
|
|
11393
12337
|
fill: "none",
|
|
@@ -11414,14 +12358,14 @@ var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
|
|
|
11414
12358
|
};
|
|
11415
12359
|
|
|
11416
12360
|
var _path$16, _path2$u, _path3$l, _path4$a, _path5$9;
|
|
11417
|
-
var _excluded$
|
|
12361
|
+
var _excluded$1X = ["title", "titleId"];
|
|
11418
12362
|
function _extends$1q() { _extends$1q = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1q.apply(this, arguments); }
|
|
11419
12363
|
function _objectWithoutProperties$1p(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1q(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11420
12364
|
function _objectWithoutPropertiesLoose$1q(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11421
12365
|
var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
|
|
11422
12366
|
var title = _ref.title,
|
|
11423
12367
|
titleId = _ref.titleId,
|
|
11424
|
-
props = _objectWithoutProperties$1p(_ref, _excluded$
|
|
12368
|
+
props = _objectWithoutProperties$1p(_ref, _excluded$1X);
|
|
11425
12369
|
return /*#__PURE__*/React.createElement("svg", _extends$1q({
|
|
11426
12370
|
viewBox: "0 0 67 67",
|
|
11427
12371
|
fill: "#fff",
|
|
@@ -11443,14 +12387,14 @@ var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
|
|
|
11443
12387
|
};
|
|
11444
12388
|
|
|
11445
12389
|
var _path$17, _path2$v, _path3$m, _path4$b, _path5$a, _path6$3, _path7$3;
|
|
11446
|
-
var _excluded$
|
|
12390
|
+
var _excluded$1Y = ["title", "titleId"];
|
|
11447
12391
|
function _extends$1r() { _extends$1r = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1r.apply(this, arguments); }
|
|
11448
12392
|
function _objectWithoutProperties$1q(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1r(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11449
12393
|
function _objectWithoutPropertiesLoose$1r(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11450
12394
|
var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
|
|
11451
12395
|
var title = _ref.title,
|
|
11452
12396
|
titleId = _ref.titleId,
|
|
11453
|
-
props = _objectWithoutProperties$1q(_ref, _excluded$
|
|
12397
|
+
props = _objectWithoutProperties$1q(_ref, _excluded$1Y);
|
|
11454
12398
|
return /*#__PURE__*/React.createElement("svg", _extends$1r({
|
|
11455
12399
|
viewBox: "0 0 185 79",
|
|
11456
12400
|
fill: "none",
|
|
@@ -11483,14 +12427,14 @@ var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
|
|
|
11483
12427
|
};
|
|
11484
12428
|
|
|
11485
12429
|
var _path$18, _path2$w, _path3$n, _path4$c, _path5$b;
|
|
11486
|
-
var _excluded$
|
|
12430
|
+
var _excluded$1Z = ["title", "titleId"];
|
|
11487
12431
|
function _extends$1s() { _extends$1s = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1s.apply(this, arguments); }
|
|
11488
12432
|
function _objectWithoutProperties$1r(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1s(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11489
12433
|
function _objectWithoutPropertiesLoose$1s(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11490
12434
|
var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
|
|
11491
12435
|
var title = _ref.title,
|
|
11492
12436
|
titleId = _ref.titleId,
|
|
11493
|
-
props = _objectWithoutProperties$1r(_ref, _excluded$
|
|
12437
|
+
props = _objectWithoutProperties$1r(_ref, _excluded$1Z);
|
|
11494
12438
|
return /*#__PURE__*/React.createElement("svg", _extends$1s({
|
|
11495
12439
|
viewBox: "0 0 185 79",
|
|
11496
12440
|
fill: "#fff",
|
|
@@ -11512,14 +12456,14 @@ var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
|
|
|
11512
12456
|
};
|
|
11513
12457
|
|
|
11514
12458
|
var _g$g, _defs$8;
|
|
11515
|
-
var _excluded$
|
|
12459
|
+
var _excluded$1_ = ["title", "titleId"];
|
|
11516
12460
|
function _extends$1t() { _extends$1t = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1t.apply(this, arguments); }
|
|
11517
12461
|
function _objectWithoutProperties$1s(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1t(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11518
12462
|
function _objectWithoutPropertiesLoose$1t(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11519
12463
|
var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
|
|
11520
12464
|
var title = _ref.title,
|
|
11521
12465
|
titleId = _ref.titleId,
|
|
11522
|
-
props = _objectWithoutProperties$1s(_ref, _excluded$
|
|
12466
|
+
props = _objectWithoutProperties$1s(_ref, _excluded$1_);
|
|
11523
12467
|
return /*#__PURE__*/React.createElement("svg", _extends$1t({
|
|
11524
12468
|
viewBox: "0 0 512 148",
|
|
11525
12469
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11544,14 +12488,14 @@ var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
|
|
|
11544
12488
|
};
|
|
11545
12489
|
|
|
11546
12490
|
var _g$h, _defs$9;
|
|
11547
|
-
var _excluded$
|
|
12491
|
+
var _excluded$1$ = ["title", "titleId"];
|
|
11548
12492
|
function _extends$1u() { _extends$1u = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1u.apply(this, arguments); }
|
|
11549
12493
|
function _objectWithoutProperties$1t(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1u(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11550
12494
|
function _objectWithoutPropertiesLoose$1u(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11551
12495
|
var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
|
|
11552
12496
|
var title = _ref.title,
|
|
11553
12497
|
titleId = _ref.titleId,
|
|
11554
|
-
props = _objectWithoutProperties$1t(_ref, _excluded$
|
|
12498
|
+
props = _objectWithoutProperties$1t(_ref, _excluded$1$);
|
|
11555
12499
|
return /*#__PURE__*/React.createElement("svg", _extends$1u({
|
|
11556
12500
|
viewBox: "0 0 512 148",
|
|
11557
12501
|
fill: "#fff",
|
|
@@ -11576,14 +12520,14 @@ var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
|
|
|
11576
12520
|
};
|
|
11577
12521
|
|
|
11578
12522
|
var _g$i, _defs$a;
|
|
11579
|
-
var _excluded$
|
|
12523
|
+
var _excluded$20 = ["title", "titleId"];
|
|
11580
12524
|
function _extends$1v() { _extends$1v = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1v.apply(this, arguments); }
|
|
11581
12525
|
function _objectWithoutProperties$1u(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1v(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11582
12526
|
function _objectWithoutPropertiesLoose$1v(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11583
12527
|
var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
|
|
11584
12528
|
var title = _ref.title,
|
|
11585
12529
|
titleId = _ref.titleId,
|
|
11586
|
-
props = _objectWithoutProperties$1u(_ref, _excluded$
|
|
12530
|
+
props = _objectWithoutProperties$1u(_ref, _excluded$20);
|
|
11587
12531
|
return /*#__PURE__*/React.createElement("svg", _extends$1v({
|
|
11588
12532
|
viewBox: "0 0 682 196",
|
|
11589
12533
|
fill: "none",
|
|
@@ -11615,14 +12559,14 @@ var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
|
|
|
11615
12559
|
};
|
|
11616
12560
|
|
|
11617
12561
|
var _path$19;
|
|
11618
|
-
var _excluded$
|
|
12562
|
+
var _excluded$21 = ["title", "titleId"];
|
|
11619
12563
|
function _extends$1w() { _extends$1w = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1w.apply(this, arguments); }
|
|
11620
12564
|
function _objectWithoutProperties$1v(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1w(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11621
12565
|
function _objectWithoutPropertiesLoose$1w(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11622
12566
|
var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
|
|
11623
12567
|
var title = _ref.title,
|
|
11624
12568
|
titleId = _ref.titleId,
|
|
11625
|
-
props = _objectWithoutProperties$1v(_ref, _excluded$
|
|
12569
|
+
props = _objectWithoutProperties$1v(_ref, _excluded$21);
|
|
11626
12570
|
return /*#__PURE__*/React.createElement("svg", _extends$1w({
|
|
11627
12571
|
viewBox: "0 0 84 111",
|
|
11628
12572
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11635,14 +12579,14 @@ var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
|
|
|
11635
12579
|
};
|
|
11636
12580
|
|
|
11637
12581
|
var _path$1a;
|
|
11638
|
-
var _excluded$
|
|
12582
|
+
var _excluded$22 = ["title", "titleId"];
|
|
11639
12583
|
function _extends$1x() { _extends$1x = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1x.apply(this, arguments); }
|
|
11640
12584
|
function _objectWithoutProperties$1w(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1x(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11641
12585
|
function _objectWithoutPropertiesLoose$1x(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11642
12586
|
var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
|
|
11643
12587
|
var title = _ref.title,
|
|
11644
12588
|
titleId = _ref.titleId,
|
|
11645
|
-
props = _objectWithoutProperties$1w(_ref, _excluded$
|
|
12589
|
+
props = _objectWithoutProperties$1w(_ref, _excluded$22);
|
|
11646
12590
|
return /*#__PURE__*/React.createElement("svg", _extends$1x({
|
|
11647
12591
|
viewBox: "0 0 84 111",
|
|
11648
12592
|
fill: "#fff",
|
|
@@ -11656,14 +12600,14 @@ var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
|
|
|
11656
12600
|
};
|
|
11657
12601
|
|
|
11658
12602
|
var _path$1b, _path2$x, _path3$o, _path4$d, _path5$c, _path6$4, _path7$4, _path8$3, _path9$3, _path10$3, _path11$3, _path12$3, _path13$3, _path14$2, _path15$2, _path16, _path17, _path18, _path19, _path20, _path21, _path22, _path23, _path24, _path25, _path26, _path27, _path28, _path29, _path30, _path31, _path32, _path33, _path34, _path35, _path36, _path37, _path38, _path39, _path40, _path41, _path42, _path43, _path44, _path45, _path46, _path47, _path48, _path49, _path50, _path51, _path52, _path53, _path54, _path55;
|
|
11659
|
-
var _excluded$
|
|
12603
|
+
var _excluded$23 = ["title", "titleId"];
|
|
11660
12604
|
function _extends$1y() { _extends$1y = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1y.apply(this, arguments); }
|
|
11661
12605
|
function _objectWithoutProperties$1x(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1y(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11662
12606
|
function _objectWithoutPropertiesLoose$1y(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11663
12607
|
var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
|
|
11664
12608
|
var title = _ref.title,
|
|
11665
12609
|
titleId = _ref.titleId,
|
|
11666
|
-
props = _objectWithoutProperties$1x(_ref, _excluded$
|
|
12610
|
+
props = _objectWithoutProperties$1x(_ref, _excluded$23);
|
|
11667
12611
|
return /*#__PURE__*/React.createElement("svg", _extends$1y({
|
|
11668
12612
|
viewBox: "0 0 324 265",
|
|
11669
12613
|
fill: "none",
|
|
@@ -11840,14 +12784,14 @@ var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
|
|
|
11840
12784
|
};
|
|
11841
12785
|
|
|
11842
12786
|
var _path$1c, _path2$y, _path3$p, _path4$e, _path5$d, _path6$5, _path7$5, _path8$4, _path9$4, _path10$4, _path11$4, _path12$4, _path13$4, _path14$3, _path15$3, _path16$1, _path17$1, _path18$1, _path19$1, _path20$1, _path21$1, _path22$1, _path23$1, _path24$1, _path25$1, _path26$1, _path27$1, _path28$1, _path29$1, _path30$1, _path31$1, _path32$1, _path33$1, _path34$1, _path35$1, _path36$1, _path37$1, _path38$1, _path39$1, _path40$1, _path41$1, _path42$1, _path43$1, _path44$1, _path45$1, _path46$1, _path47$1, _path48$1, _path49$1, _path50$1, _path51$1, _path52$1, _path53$1, _path54$1, _path55$1;
|
|
11843
|
-
var _excluded$
|
|
12787
|
+
var _excluded$24 = ["title", "titleId"];
|
|
11844
12788
|
function _extends$1z() { _extends$1z = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends$1z.apply(this, arguments); }
|
|
11845
12789
|
function _objectWithoutProperties$1y(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose$1z(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
11846
12790
|
function _objectWithoutPropertiesLoose$1z(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
11847
12791
|
var SvgLogoTreasuresColorNegative = function SvgLogoTreasuresColorNegative(_ref) {
|
|
11848
12792
|
var title = _ref.title,
|
|
11849
12793
|
titleId = _ref.titleId,
|
|
11850
|
-
props = _objectWithoutProperties$1y(_ref, _excluded$
|
|
12794
|
+
props = _objectWithoutProperties$1y(_ref, _excluded$24);
|
|
11851
12795
|
return /*#__PURE__*/React.createElement("svg", _extends$1z({
|
|
11852
12796
|
viewBox: "0 0 327 266",
|
|
11853
12797
|
fill: "none",
|
|
@@ -12074,7 +13018,7 @@ var logoSvgs = {
|
|
|
12074
13018
|
treasuresColorNegative: SvgLogoTreasuresColorNegative
|
|
12075
13019
|
};
|
|
12076
13020
|
|
|
12077
|
-
var _excluded$
|
|
13021
|
+
var _excluded$25 = ["children", "className", "decorative", "id", "name", "size", "title"];
|
|
12078
13022
|
/**
|
|
12079
13023
|
* The `Logo` component renders SVG-based logos and color variants that are
|
|
12080
13024
|
* commonly used by the New York Public Library.
|
|
@@ -12091,7 +13035,7 @@ var Logo$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
12091
13035
|
size = _props$size === void 0 ? "medium" : _props$size,
|
|
12092
13036
|
_props$title = props.title,
|
|
12093
13037
|
title = _props$title === void 0 ? name + " logo" : _props$title,
|
|
12094
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13038
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$25);
|
|
12095
13039
|
var styles = react.useStyleConfig("Logo", {
|
|
12096
13040
|
size: size
|
|
12097
13041
|
});
|
|
@@ -12192,7 +13136,7 @@ var link$1 = {
|
|
|
12192
13136
|
}]
|
|
12193
13137
|
};
|
|
12194
13138
|
|
|
12195
|
-
var _excluded$
|
|
13139
|
+
var _excluded$26 = ["className", "id"];
|
|
12196
13140
|
/**
|
|
12197
13141
|
* This `Footer` component renders the NYPL-branded footer elements such
|
|
12198
13142
|
* as navigational NYPL.org links, social media links, copyright, and
|
|
@@ -12202,7 +13146,7 @@ var Footer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
12202
13146
|
var className = _ref.className,
|
|
12203
13147
|
_ref$id = _ref.id,
|
|
12204
13148
|
id = _ref$id === void 0 ? "footer" : _ref$id,
|
|
12205
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13149
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$26);
|
|
12206
13150
|
var styles = react.useMultiStyleConfig("Footer", {});
|
|
12207
13151
|
var nyplLinks = link$1.nyplLinks.map(function (links, index) {
|
|
12208
13152
|
return React__default.createElement(List$1, {
|
|
@@ -12271,11 +13215,11 @@ var Footer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
12271
13215
|
})));
|
|
12272
13216
|
}));
|
|
12273
13217
|
|
|
12274
|
-
var _excluded$
|
|
13218
|
+
var _excluded$27 = ["align", "className"];
|
|
12275
13219
|
var HorizontalRule$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
12276
13220
|
var align = props.align,
|
|
12277
13221
|
className = props.className,
|
|
12278
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13222
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$27);
|
|
12279
13223
|
var styles = react.useStyleConfig("HorizontalRule", {
|
|
12280
13224
|
align: align
|
|
12281
13225
|
});
|
|
@@ -12291,7 +13235,7 @@ var HorizontalRule$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
12291
13235
|
}, rest));
|
|
12292
13236
|
}));
|
|
12293
13237
|
|
|
12294
|
-
var _excluded$
|
|
13238
|
+
var _excluded$28 = ["className", "id", "target"];
|
|
12295
13239
|
/**
|
|
12296
13240
|
* SkipNavigation is a component that is used to provide a navigational list of
|
|
12297
13241
|
* links. The first link is used to skip to the main content of the page using
|
|
@@ -12303,7 +13247,7 @@ var SkipNavigation$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
12303
13247
|
id = props.id,
|
|
12304
13248
|
_props$target = props.target,
|
|
12305
13249
|
target = _props$target === void 0 ? "#mainContent" : _props$target,
|
|
12306
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13250
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$28);
|
|
12307
13251
|
var styles = react.useStyleConfig("SkipNavigation");
|
|
12308
13252
|
return React__default.createElement(react.Box, Object.assign({
|
|
12309
13253
|
as: "nav",
|
|
@@ -13610,7 +14554,7 @@ var Header$1 = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
13610
14554
|
}))));
|
|
13611
14555
|
});
|
|
13612
14556
|
|
|
13613
|
-
var _excluded$
|
|
14557
|
+
var _excluded$29 = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
|
|
13614
14558
|
// Only used for internal purposes.
|
|
13615
14559
|
var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
|
|
13616
14560
|
var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
@@ -13626,7 +14570,7 @@ var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
13626
14570
|
} : _props$imageProps,
|
|
13627
14571
|
locationDetails = props.locationDetails,
|
|
13628
14572
|
subHeaderText = props.subHeaderText,
|
|
13629
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14573
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$29);
|
|
13630
14574
|
var styles = react.useMultiStyleConfig("Hero", {
|
|
13631
14575
|
variant: heroType
|
|
13632
14576
|
});
|
|
@@ -13715,7 +14659,7 @@ var Hero$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
13715
14659
|
}
|
|
13716
14660
|
});
|
|
13717
14661
|
|
|
13718
|
-
var _excluded$
|
|
14662
|
+
var _excluded$2a = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
|
|
13719
14663
|
_excluded2$6 = ["buttonText", "id", "modalProps"],
|
|
13720
14664
|
_excluded3$4 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
|
|
13721
14665
|
var BaseModal = /*#__PURE__*/react.chakra(function (_ref) {
|
|
@@ -13726,7 +14670,7 @@ var BaseModal = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
13726
14670
|
id = _ref.id,
|
|
13727
14671
|
isOpen = _ref.isOpen,
|
|
13728
14672
|
onClose = _ref.onClose,
|
|
13729
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14673
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2a);
|
|
13730
14674
|
var xlarge = "xl";
|
|
13731
14675
|
var fullSize = "full";
|
|
13732
14676
|
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
@@ -13807,7 +14751,7 @@ function useModal() {
|
|
|
13807
14751
|
};
|
|
13808
14752
|
}
|
|
13809
14753
|
|
|
13810
|
-
var _excluded$
|
|
14754
|
+
var _excluded$2b = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
|
|
13811
14755
|
/**
|
|
13812
14756
|
* A component that provides a navigational list of page items.
|
|
13813
14757
|
*/
|
|
@@ -13820,7 +14764,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
13820
14764
|
initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
|
|
13821
14765
|
onPageChange = props.onPageChange,
|
|
13822
14766
|
pageCount = props.pageCount,
|
|
13823
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14767
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
|
|
13824
14768
|
var refCurrentPage = React.useRef(currentPage);
|
|
13825
14769
|
var _useState = React.useState(initialPage),
|
|
13826
14770
|
selectedPage = _useState[0],
|
|
@@ -14010,7 +14954,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
14010
14954
|
}, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
|
|
14011
14955
|
}));
|
|
14012
14956
|
|
|
14013
|
-
var _excluded$
|
|
14957
|
+
var _excluded$2c = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
|
|
14014
14958
|
/**
|
|
14015
14959
|
* A component that displays a progress status for any task that takes a long
|
|
14016
14960
|
* time to complete or consists of multiple steps. Examples include downloading,
|
|
@@ -14031,7 +14975,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
|
|
|
14031
14975
|
size = _props$size === void 0 ? "default" : _props$size,
|
|
14032
14976
|
_props$value = props.value,
|
|
14033
14977
|
value = _props$value === void 0 ? 0 : _props$value,
|
|
14034
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14978
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
|
|
14035
14979
|
var styles = react.useMultiStyleConfig("ProgressIndicator", {
|
|
14036
14980
|
darkMode: darkMode,
|
|
14037
14981
|
size: size
|
|
@@ -14090,7 +15034,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
|
|
|
14090
15034
|
}, rest), progressComponent(indicatorType));
|
|
14091
15035
|
}));
|
|
14092
15036
|
|
|
14093
|
-
var _excluded$
|
|
15037
|
+
var _excluded$2d = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
14094
15038
|
/**
|
|
14095
15039
|
* Component that renders Chakra's `Select` component along with an accessible
|
|
14096
15040
|
* `Label` and optional `HelperErrorText` component.
|
|
@@ -14123,7 +15067,7 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
14123
15067
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
14124
15068
|
_props$value = props.value,
|
|
14125
15069
|
value = _props$value === void 0 ? "" : _props$value,
|
|
14126
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15070
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
14127
15071
|
var _useState = React.useState(0),
|
|
14128
15072
|
labelWidth = _useState[0],
|
|
14129
15073
|
setLabelWidth = _useState[1];
|
|
@@ -14205,7 +15149,7 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
14205
15149
|
}), children)));
|
|
14206
15150
|
}));
|
|
14207
15151
|
|
|
14208
|
-
var _excluded$
|
|
15152
|
+
var _excluded$2e = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
|
|
14209
15153
|
/**
|
|
14210
15154
|
* Renders a wrapper `form` element to be used with `Select` (optional),
|
|
14211
15155
|
* `Input`, and `Button` components together.
|
|
@@ -14233,7 +15177,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
14233
15177
|
selectProps = props.selectProps,
|
|
14234
15178
|
textInputElement = props.textInputElement,
|
|
14235
15179
|
textInputProps = props.textInputProps,
|
|
14236
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15180
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2e);
|
|
14237
15181
|
var styles = react.useMultiStyleConfig("SearchBar", {});
|
|
14238
15182
|
var stateProps = {
|
|
14239
15183
|
helperText: "",
|
|
@@ -14325,7 +15269,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(funct
|
|
|
14325
15269
|
}, selectElem, textInputElem, buttonElem));
|
|
14326
15270
|
}));
|
|
14327
15271
|
|
|
14328
|
-
var _excluded$
|
|
15272
|
+
var _excluded$2f = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
|
|
14329
15273
|
/**
|
|
14330
15274
|
* The `SkeletonLoader` component renders a placeholder to be used while
|
|
14331
15275
|
* dynamic content is loading.
|
|
@@ -14351,7 +15295,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
14351
15295
|
_props$showImage = props.showImage,
|
|
14352
15296
|
showImage = _props$showImage === void 0 ? true : _props$showImage,
|
|
14353
15297
|
width = props.width,
|
|
14354
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15298
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2f);
|
|
14355
15299
|
var styles = react.useMultiStyleConfig("SkeletonLoader", {
|
|
14356
15300
|
isBordered: isBordered,
|
|
14357
15301
|
imageAspectRatio: imageAspectRatio,
|
|
@@ -14409,7 +15353,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(
|
|
|
14409
15353
|
})))));
|
|
14410
15354
|
}));
|
|
14411
15355
|
|
|
14412
|
-
var _excluded$
|
|
15356
|
+
var _excluded$2g = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "onChangeEnd", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step", "value"];
|
|
14413
15357
|
/**
|
|
14414
15358
|
* The `Slider` component renders a singular value slider or a range slider
|
|
14415
15359
|
* with a min and max value. The value(s) can be updated through the slider
|
|
@@ -14437,6 +15381,7 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14437
15381
|
min = _props$min === void 0 ? 0 : _props$min,
|
|
14438
15382
|
name = props.name,
|
|
14439
15383
|
_onChange = props.onChange,
|
|
15384
|
+
_onChangeEnd = props.onChangeEnd,
|
|
14440
15385
|
_props$showBoxes = props.showBoxes,
|
|
14441
15386
|
showBoxes = _props$showBoxes === void 0 ? true : _props$showBoxes,
|
|
14442
15387
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
@@ -14450,10 +15395,13 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14450
15395
|
_props$step = props.step,
|
|
14451
15396
|
step = _props$step === void 0 ? 1 : _props$step,
|
|
14452
15397
|
value = props.value,
|
|
14453
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15398
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2g);
|
|
14454
15399
|
if (!id) {
|
|
14455
15400
|
console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
|
|
14456
15401
|
}
|
|
15402
|
+
if (_onChange && _onChangeEnd) {
|
|
15403
|
+
console.warn("NYPL Reservoir Slider: Both `onChange` and `onChangeEnd` props were passed.");
|
|
15404
|
+
}
|
|
14457
15405
|
// For the RangeSlider, if the defaultValue is not an array, then we set
|
|
14458
15406
|
// the defaultValue to an array with the min and max values.
|
|
14459
15407
|
var rangeSliderDefault = typeof defaultValue === "number" ? [min, max] : defaultValue;
|
|
@@ -14504,6 +15452,10 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14504
15452
|
setCurrentValue(val);
|
|
14505
15453
|
_onChange && _onChange(val);
|
|
14506
15454
|
},
|
|
15455
|
+
onChangeEnd: function onChangeEnd(val) {
|
|
15456
|
+
setCurrentValue(val);
|
|
15457
|
+
_onChangeEnd && _onChangeEnd(val);
|
|
15458
|
+
},
|
|
14507
15459
|
step: step,
|
|
14508
15460
|
// Additional margins so slider thumbs don't overflow past the
|
|
14509
15461
|
// edge when the value boxes or min/max values are hidden.
|
|
@@ -14540,7 +15492,12 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14540
15492
|
setCurrentValue(newValue);
|
|
14541
15493
|
// If the text input was updated directly,
|
|
14542
15494
|
// send the data back to the user.
|
|
14543
|
-
|
|
15495
|
+
if (_onChange) {
|
|
15496
|
+
_onChange && _onChange(newValue);
|
|
15497
|
+
}
|
|
15498
|
+
if (_onChangeEnd) {
|
|
15499
|
+
_onChangeEnd && _onChangeEnd(newValue);
|
|
15500
|
+
}
|
|
14544
15501
|
}
|
|
14545
15502
|
}, textInputSharedProps),
|
|
14546
15503
|
end: _extends({
|
|
@@ -14562,7 +15519,12 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14562
15519
|
setCurrentValue(newValue);
|
|
14563
15520
|
// If the text input was updated directly,
|
|
14564
15521
|
// send the data back to the user.
|
|
14565
|
-
|
|
15522
|
+
if (_onChange) {
|
|
15523
|
+
_onChange && _onChange(newValue);
|
|
15524
|
+
}
|
|
15525
|
+
if (_onChangeEnd) {
|
|
15526
|
+
_onChangeEnd && _onChangeEnd(newValue);
|
|
15527
|
+
}
|
|
14566
15528
|
}
|
|
14567
15529
|
}, textInputSharedProps)
|
|
14568
15530
|
};
|
|
@@ -14641,7 +15603,7 @@ var Slider = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (
|
|
|
14641
15603
|
}, max), showBoxes && getTextInput("end")));
|
|
14642
15604
|
}));
|
|
14643
15605
|
|
|
14644
|
-
var _excluded$
|
|
15606
|
+
var _excluded$2h = ["children", "className", "id", "level"];
|
|
14645
15607
|
/**
|
|
14646
15608
|
* The `StatusBadge` component is used to display a visual badge for three
|
|
14647
15609
|
* different status levels.
|
|
@@ -14652,7 +15614,7 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
14652
15614
|
id = props.id,
|
|
14653
15615
|
_props$level = props.level,
|
|
14654
15616
|
level = _props$level === void 0 ? "low" : _props$level,
|
|
14655
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15617
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2h);
|
|
14656
15618
|
var styles = react.useStyleConfig("StatusBadge", {
|
|
14657
15619
|
variant: level
|
|
14658
15620
|
});
|
|
@@ -14667,7 +15629,7 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
14667
15629
|
}, rest), children);
|
|
14668
15630
|
}));
|
|
14669
15631
|
|
|
14670
|
-
var _excluded$
|
|
15632
|
+
var _excluded$2i = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
|
|
14671
15633
|
/**
|
|
14672
15634
|
* Internal component used in the `StructuredContent` component
|
|
14673
15635
|
* that renders the DS `Image` component.
|
|
@@ -14717,7 +15679,7 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardR
|
|
|
14717
15679
|
src: ""
|
|
14718
15680
|
} : _props$imageProps,
|
|
14719
15681
|
bodyContent = props.bodyContent,
|
|
14720
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15682
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2i);
|
|
14721
15683
|
var hasImage = imageProps.src || imageProps.component;
|
|
14722
15684
|
var hasFigureImage = imageProps.caption || imageProps.credit;
|
|
14723
15685
|
var styles = react.useMultiStyleConfig("StructuredContent", {
|
|
@@ -14850,7 +15812,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
|
|
|
14850
15812
|
};
|
|
14851
15813
|
};
|
|
14852
15814
|
|
|
14853
|
-
var _excluded$
|
|
15815
|
+
var _excluded$2j = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
|
|
14854
15816
|
/**
|
|
14855
15817
|
* An internal function used to update the hash in the URL.
|
|
14856
15818
|
* This function is only used when `useHash` is `true`.
|
|
@@ -14952,7 +15914,7 @@ var Tabs = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
14952
15914
|
tabsData = props.tabsData,
|
|
14953
15915
|
_props$useHash = props.useHash,
|
|
14954
15916
|
useHash = _props$useHash === void 0 ? false : _props$useHash,
|
|
14955
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15917
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2j);
|
|
14956
15918
|
var styles = react.useMultiStyleConfig("Tabs", {});
|
|
14957
15919
|
// Just an estimate of the tab width for the mobile carousel.
|
|
14958
15920
|
var initTabWidth = 65;
|
|
@@ -15032,13 +15994,13 @@ var Tabs = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
15032
15994
|
}, React__default.createElement(react.Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
|
|
15033
15995
|
}));
|
|
15034
15996
|
|
|
15035
|
-
var _excluded$
|
|
15997
|
+
var _excluded$2k = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
|
|
15036
15998
|
var Tooltip$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
15037
15999
|
var children = props.children,
|
|
15038
16000
|
content = props.content,
|
|
15039
16001
|
isDisabled = props.isDisabled,
|
|
15040
16002
|
shouldWrapChildren = props.shouldWrapChildren,
|
|
15041
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16003
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2k);
|
|
15042
16004
|
if (typeof content !== "string" && typeof content !== "number") {
|
|
15043
16005
|
React__default.Children.map(content, function (contentChild) {
|
|
15044
16006
|
if (contentChild.type !== Icon || contentChild.type !== Image) {
|
|
@@ -15163,7 +16125,7 @@ var TagSetFilter$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
15163
16125
|
}, "Clear Filters") : null);
|
|
15164
16126
|
});
|
|
15165
16127
|
|
|
15166
|
-
var _excluded$
|
|
16128
|
+
var _excluded$2l = ["className", "id", "isDismissible", "onClick", "tagSetData", "type"];
|
|
15167
16129
|
// Type guard so we can make sure we have a "filter" `TagSet` variant.
|
|
15168
16130
|
function isFilterType(type) {
|
|
15169
16131
|
return type === "filter";
|
|
@@ -15207,7 +16169,7 @@ var TagSet$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
15207
16169
|
tagSetData = _props$tagSetData === void 0 ? [] : _props$tagSetData,
|
|
15208
16170
|
_props$type = props.type,
|
|
15209
16171
|
type = _props$type === void 0 ? "filter" : _props$type,
|
|
15210
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16172
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2l);
|
|
15211
16173
|
var styles = react.useStyleConfig("TagSet", {});
|
|
15212
16174
|
if (!isFilterType(type)) {
|
|
15213
16175
|
if (isDismissible) {
|
|
@@ -15235,7 +16197,7 @@ var TagSet$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
15235
16197
|
}));
|
|
15236
16198
|
}));
|
|
15237
16199
|
|
|
15238
|
-
var _excluded$
|
|
16200
|
+
var _excluded$2m = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
|
|
15239
16201
|
/**
|
|
15240
16202
|
* The main top-level parent component that wraps all template-related
|
|
15241
16203
|
* components.
|
|
@@ -15458,7 +16420,7 @@ var TemplateAppContainer = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forward
|
|
|
15458
16420
|
renderHeaderElement = _props$renderHeaderEl === void 0 ? true : _props$renderHeaderEl,
|
|
15459
16421
|
_props$renderSkipNavi = props.renderSkipNavigation,
|
|
15460
16422
|
renderSkipNavigation = _props$renderSkipNavi === void 0 ? false : _props$renderSkipNavi,
|
|
15461
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16423
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2m);
|
|
15462
16424
|
var aboveHeaderElem = aboveHeader && React__default.createElement(TemplateAboveHeader, null, aboveHeader);
|
|
15463
16425
|
var contentTopElem = contentTop && React__default.createElement(TemplateContentTop, null, contentTop);
|
|
15464
16426
|
var contentPrimaryElem = contentPrimary && React__default.createElement(TemplateContentPrimary$1, null, contentPrimary);
|
|
@@ -15476,7 +16438,7 @@ var TemplateAppContainer = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forward
|
|
|
15476
16438
|
}, footer)));
|
|
15477
16439
|
}));
|
|
15478
16440
|
|
|
15479
|
-
var _excluded$
|
|
16441
|
+
var _excluded$2n = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
|
|
15480
16442
|
var onChangeDefault = function onChangeDefault() {
|
|
15481
16443
|
return;
|
|
15482
16444
|
};
|
|
@@ -15502,7 +16464,7 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
15502
16464
|
onChange = _props$onChange === void 0 ? onChangeDefault : _props$onChange,
|
|
15503
16465
|
_props$size = props.size,
|
|
15504
16466
|
size = _props$size === void 0 ? "default" : _props$size,
|
|
15505
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16467
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2n);
|
|
15506
16468
|
var styles = react.useMultiStyleConfig("Toggle", {
|
|
15507
16469
|
isDisabled: isDisabled,
|
|
15508
16470
|
size: size
|
|
@@ -15548,6 +16510,157 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
15548
16510
|
}), labelText)));
|
|
15549
16511
|
}));
|
|
15550
16512
|
|
|
16513
|
+
/**
|
|
16514
|
+
* The useMultiSelect hook returns an object containing all the functions and state needed to handle the selectedItems of a `MultiSelect` component.
|
|
16515
|
+
* It can be used in conjunction with one single `MultiSelect` component as well as a group of `MultiSelect`s in the `MultiSelectGroup` component.
|
|
16516
|
+
* The returned object includes the functions onChange, onClear, onMixedStateChange for handling any changes to the selection of items
|
|
16517
|
+
* and the current state of the selection: selectedItems.
|
|
16518
|
+
*/
|
|
16519
|
+
function useMultiSelect(initialState) {
|
|
16520
|
+
var _useState = React.useState(initialState !== undefined ? initialState : {}),
|
|
16521
|
+
selectedItems = _useState[0],
|
|
16522
|
+
_setSelectedItems = _useState[1];
|
|
16523
|
+
/**
|
|
16524
|
+
* handleChange is used for both MultiSelect variants. It handles the state for checkbox options that either have no child options or are child options themselves.
|
|
16525
|
+
* It accepts two arguments - the id of the checkbox option and the id of the MultiSelect component.
|
|
16526
|
+
*/
|
|
16527
|
+
var handleChange = function handleChange(itemId, multiSelectId) {
|
|
16528
|
+
var _extends2;
|
|
16529
|
+
var itemIds;
|
|
16530
|
+
// Check if the multiSelect already exists in the state.
|
|
16531
|
+
if (selectedItems.hasOwnProperty(multiSelectId)) {
|
|
16532
|
+
// Make a copy of the existing selected items.
|
|
16533
|
+
itemIds = selectedItems[multiSelectId].items.slice();
|
|
16534
|
+
// If itemId is in the selectedItems, remove it from the array.
|
|
16535
|
+
if (selectedItems[multiSelectId].items.indexOf(itemId) > -1) {
|
|
16536
|
+
itemIds = itemIds.filter(function (id) {
|
|
16537
|
+
return id !== itemId;
|
|
16538
|
+
});
|
|
16539
|
+
} else {
|
|
16540
|
+
// Add it to the array, but modify the copy, not the original.
|
|
16541
|
+
itemIds.push(itemId);
|
|
16542
|
+
}
|
|
16543
|
+
// If there were no items from the multiSelect in the selectedItems before
|
|
16544
|
+
} else {
|
|
16545
|
+
// Add the itemId to the itemsIds
|
|
16546
|
+
itemIds = [];
|
|
16547
|
+
itemIds.push(itemId);
|
|
16548
|
+
}
|
|
16549
|
+
// Update selectedItems on state to reflect the new selection
|
|
16550
|
+
_setSelectedItems(_extends({}, selectedItems, (_extends2 = {}, _extends2[multiSelectId] = {
|
|
16551
|
+
items: itemIds
|
|
16552
|
+
}, _extends2)));
|
|
16553
|
+
};
|
|
16554
|
+
/**
|
|
16555
|
+
* handleMixedStateChange is used only for the "dialog" variant. It handles the state for checkbox options with child options.
|
|
16556
|
+
* It accepts three arguments - the id of the checkbox option (parentId), the id of the MultiSelect component and the items array of the MultiSelect.
|
|
16557
|
+
*/
|
|
16558
|
+
var handleMixedStateChange = function handleMixedStateChange(parentId, multiSelectId, items) {
|
|
16559
|
+
var _extends3;
|
|
16560
|
+
// Build an array of child items.
|
|
16561
|
+
var childItems = items.filter(function (item) {
|
|
16562
|
+
return item.id === parentId;
|
|
16563
|
+
})[0].children.map(function (child) {
|
|
16564
|
+
return child.id;
|
|
16565
|
+
});
|
|
16566
|
+
var newItems;
|
|
16567
|
+
// If some items of the multiSelect are already selected
|
|
16568
|
+
if (selectedItems[multiSelectId] !== undefined) {
|
|
16569
|
+
// If all children of the parent are already selected
|
|
16570
|
+
if (childItems.every(function (childItem) {
|
|
16571
|
+
return selectedItems[multiSelectId].items.includes(childItem);
|
|
16572
|
+
})) {
|
|
16573
|
+
// Remove all children from the selectedItems array (unselect all child checkbox options)
|
|
16574
|
+
newItems = selectedItems[multiSelectId].items.filter(function (stateItem) {
|
|
16575
|
+
return !childItems.includes(stateItem);
|
|
16576
|
+
});
|
|
16577
|
+
} else {
|
|
16578
|
+
// Else add missing childItems.
|
|
16579
|
+
newItems = [].concat(childItems.filter(function (childItem) {
|
|
16580
|
+
return !selectedItems[multiSelectId].items.includes(childItem);
|
|
16581
|
+
}), selectedItems[multiSelectId].items);
|
|
16582
|
+
}
|
|
16583
|
+
// If no items of this multiSelect were selected before
|
|
16584
|
+
} else {
|
|
16585
|
+
newItems = childItems;
|
|
16586
|
+
}
|
|
16587
|
+
// Update selectedItems on state to reflect the new selection
|
|
16588
|
+
_setSelectedItems(_extends({}, selectedItems, (_extends3 = {}, _extends3[multiSelectId] = {
|
|
16589
|
+
items: newItems
|
|
16590
|
+
}, _extends3)));
|
|
16591
|
+
};
|
|
16592
|
+
/**
|
|
16593
|
+
* handleClear is used for both MultiSelect variants. It will remove all selected items of specific MultiSelect component from the selectedItems array.
|
|
16594
|
+
* It accepts one argument - the id of the MultiSelect component.
|
|
16595
|
+
*/
|
|
16596
|
+
var handleClear = function handleClear(multiSelectId) {
|
|
16597
|
+
var newSelectedItems = {};
|
|
16598
|
+
for (var _i = 0, _Object$keys = Object.keys(selectedItems); _i < _Object$keys.length; _i++) {
|
|
16599
|
+
var key = _Object$keys[_i];
|
|
16600
|
+
if (key !== multiSelectId) {
|
|
16601
|
+
newSelectedItems[key] = selectedItems[key];
|
|
16602
|
+
}
|
|
16603
|
+
}
|
|
16604
|
+
_setSelectedItems(newSelectedItems);
|
|
16605
|
+
};
|
|
16606
|
+
/**
|
|
16607
|
+
* handleClearAll is used to clear all MultiSelects of a group. It will remove all selected items.
|
|
16608
|
+
*/
|
|
16609
|
+
var handleClearAll = function handleClearAll() {
|
|
16610
|
+
return _setSelectedItems({});
|
|
16611
|
+
};
|
|
16612
|
+
return {
|
|
16613
|
+
selectedItems: selectedItems,
|
|
16614
|
+
setSelectedItems: function setSelectedItems(newState) {
|
|
16615
|
+
return _setSelectedItems(newState);
|
|
16616
|
+
},
|
|
16617
|
+
onChange: handleChange,
|
|
16618
|
+
onMixedStateChange: handleMixedStateChange,
|
|
16619
|
+
onClear: handleClear,
|
|
16620
|
+
onClearAll: handleClearAll
|
|
16621
|
+
};
|
|
16622
|
+
}
|
|
16623
|
+
|
|
16624
|
+
/**
|
|
16625
|
+
* The `useFilterBar` hook returns an object containing all the functions and state needed to control a FilterBar component and its child components.
|
|
16626
|
+
* The returned object includes the functions `onChange`, `onMixedStateChange`, `onClear` and `onClearAll` for handling any changes to the selectedItems object,
|
|
16627
|
+
* a `setSelectedItems` function that allows to set an initial selectedItems state
|
|
16628
|
+
* and the current state of the selection: `selectedItems`.
|
|
16629
|
+
* In addition it returns all props to handle a filter module overlay for the mobile view: a boolean value representing the current module state: `isModalOpen`,
|
|
16630
|
+
* an `onToggle` function to change the module state or alternatively `onOpen` and `onClose` functions.
|
|
16631
|
+
*/
|
|
16632
|
+
function useFilterBar(initialState) {
|
|
16633
|
+
var _useState = React.useState(false),
|
|
16634
|
+
isModalOpen = _useState[0],
|
|
16635
|
+
setIsModalOpen = _useState[1];
|
|
16636
|
+
var _useMultiSelect = useMultiSelect(initialState),
|
|
16637
|
+
selectedItems = _useMultiSelect.selectedItems,
|
|
16638
|
+
setSelectedItems = _useMultiSelect.setSelectedItems,
|
|
16639
|
+
onChange = _useMultiSelect.onChange,
|
|
16640
|
+
onMixedStateChange = _useMultiSelect.onMixedStateChange,
|
|
16641
|
+
onClear = _useMultiSelect.onClear,
|
|
16642
|
+
onClearAll = _useMultiSelect.onClearAll;
|
|
16643
|
+
var handleToggle = function handleToggle() {
|
|
16644
|
+
return setIsModalOpen(!isModalOpen);
|
|
16645
|
+
};
|
|
16646
|
+
return {
|
|
16647
|
+
selectedItems: selectedItems,
|
|
16648
|
+
setSelectedItems: setSelectedItems,
|
|
16649
|
+
isModalOpen: isModalOpen,
|
|
16650
|
+
onOpen: function onOpen() {
|
|
16651
|
+
return setIsModalOpen(true);
|
|
16652
|
+
},
|
|
16653
|
+
onClose: function onClose() {
|
|
16654
|
+
return setIsModalOpen(false);
|
|
16655
|
+
},
|
|
16656
|
+
onToggle: handleToggle,
|
|
16657
|
+
onChange: onChange,
|
|
16658
|
+
onMixedStateChange: onMixedStateChange,
|
|
16659
|
+
onClear: onClear,
|
|
16660
|
+
onClearAll: onClearAll
|
|
16661
|
+
};
|
|
16662
|
+
}
|
|
16663
|
+
|
|
15551
16664
|
/**
|
|
15552
16665
|
* A custom hook that returns the Chakra-based NYPL theme object. This must be
|
|
15553
16666
|
* used inside a component that is wrapped in the `DSProvider` component, so
|
|
@@ -15638,7 +16751,7 @@ function useNYPLTheme() {
|
|
|
15638
16751
|
};
|
|
15639
16752
|
}
|
|
15640
16753
|
|
|
15641
|
-
var _excluded$
|
|
16754
|
+
var _excluded$2o = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
|
|
15642
16755
|
var VideoPlayer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
15643
16756
|
var aspectRatio = props.aspectRatio,
|
|
15644
16757
|
className = props.className,
|
|
@@ -15652,7 +16765,7 @@ var VideoPlayer$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
15652
16765
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
15653
16766
|
videoId = props.videoId,
|
|
15654
16767
|
videoType = props.videoType,
|
|
15655
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16768
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2o);
|
|
15656
16769
|
var iframeTitleFinal = videoType === "vimeo" ? iframeTitle || "Vimeo video player" : iframeTitle || "YouTube video player";
|
|
15657
16770
|
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";
|
|
15658
16771
|
var iFrameTitleEmbedCode = iframeTitle ? "" + iframeTitle : "Video player";
|
|
@@ -15854,6 +16967,7 @@ exports.DSProvider = DSProvider;
|
|
|
15854
16967
|
exports.DatePicker = DatePicker;
|
|
15855
16968
|
exports.FeedbackBox = FeedbackBox$1;
|
|
15856
16969
|
exports.Fieldset = Fieldset;
|
|
16970
|
+
exports.FilterBar = FilterBar$1;
|
|
15857
16971
|
exports.Footer = Footer$1;
|
|
15858
16972
|
exports.Form = Form;
|
|
15859
16973
|
exports.FormField = FormField;
|
|
@@ -15870,6 +16984,8 @@ exports.Link = Link;
|
|
|
15870
16984
|
exports.List = List$1;
|
|
15871
16985
|
exports.Logo = Logo$1;
|
|
15872
16986
|
exports.ModalTrigger = ModalTrigger;
|
|
16987
|
+
exports.MultiSelect = MultiSelect$1;
|
|
16988
|
+
exports.MultiSelectGroup = MultiSelectGroup;
|
|
15873
16989
|
exports.Notification = Notification$1;
|
|
15874
16990
|
exports.Pagination = Pagination$1;
|
|
15875
16991
|
exports.ProgressIndicator = ProgressIndicator$1;
|
|
@@ -15904,7 +17020,9 @@ exports.Tooltip = Tooltip$1;
|
|
|
15904
17020
|
exports.VideoPlayer = VideoPlayer$1;
|
|
15905
17021
|
exports.useCarouselStyles = useCarouselStyles;
|
|
15906
17022
|
exports.useFeedbackBox = useFeedbackBox;
|
|
17023
|
+
exports.useFilterBar = useFilterBar;
|
|
15907
17024
|
exports.useModal = useModal;
|
|
17025
|
+
exports.useMultiSelect = useMultiSelect;
|
|
15908
17026
|
exports.useNYPLBreakpoints = useNYPLBreakpoints;
|
|
15909
17027
|
exports.useNYPLTheme = useNYPLTheme;
|
|
15910
17028
|
exports.useWindowSize = useWindowSize;
|