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