@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Button as Button$2, Heading as Heading$2, Text as Text$2,
|
|
1
|
+
import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Button as Button$2, useMultiStyleConfig, Heading as Heading$2, Text as Text$2, Flex, Breadcrumb as Breadcrumb$1, BreadcrumbItem, BreadcrumbLink, useMediaQuery, Stack, useMergeRefs, LinkBox, LinkOverlay, Checkbox as Checkbox$2, CheckboxGroup as CheckboxGroup$2, TableCaption, Thead, Tr, Th, Table as Table$1, Tbody, Td, HStack, SimpleGrid as SimpleGrid$1, Input, Textarea, extendTheme, ChakraProvider, Radio as Radio$2, RadioGroup as RadioGroup$2, useDisclosure, Drawer, DrawerOverlay, DrawerContent, DrawerHeader, DrawerBody, VStack, keyframes as keyframes$1, UnorderedList, ListItem, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, useOutsideClick, Spacer, CircularProgress, CircularProgressLabel, Progress, Select as Select$2, Skeleton as Skeleton$1, RangeSlider, RangeSliderTrack, RangeSliderFilledTrack, RangeSliderThumb, Slider as Slider$1, SliderTrack, SliderFilledTrack, SliderThumb, Tabs as Tabs$1, Tab, TabPanel, TabList, TabPanels, Tooltip as Tooltip$2, Switch as Switch$1, useTheme } from '@chakra-ui/react';
|
|
2
2
|
export { Box, Center, Circle, ColorModeScript, Flex, Grid, GridItem, HStack, Spacer, Square, Stack, Tab, TabList, TabPanel, TabPanels, VStack, cookieStorageManager, localStorageManager, useColorMode, useColorModeValue } from '@chakra-ui/react';
|
|
3
3
|
import React__default, { createElement, forwardRef, useRef, useState, useEffect, Fragment, useReducer, useContext } from 'react';
|
|
4
4
|
import useNativeLazyLoading from '@charlietango/use-native-lazy-loading';
|
|
@@ -6,6 +6,7 @@ import { useInView } from 'react-intersection-observer';
|
|
|
6
6
|
import ReactDatePicker from 'react-datepicker';
|
|
7
7
|
import { createBreakpoints, cssVar } from '@chakra-ui/theme-tools';
|
|
8
8
|
import { keyframes } from '@chakra-ui/system';
|
|
9
|
+
import { useSelect } from 'downshift';
|
|
9
10
|
import FocusLock from '@chakra-ui/focus-lock';
|
|
10
11
|
import Cookies from 'js-cookie';
|
|
11
12
|
import ReactGA from 'react-ga';
|
|
@@ -36,6 +37,13 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
36
37
|
}
|
|
37
38
|
return target;
|
|
38
39
|
}
|
|
40
|
+
function _taggedTemplateLiteralLoose(strings, raw) {
|
|
41
|
+
if (!raw) {
|
|
42
|
+
raw = strings.slice(0);
|
|
43
|
+
}
|
|
44
|
+
strings.raw = raw;
|
|
45
|
+
return strings;
|
|
46
|
+
}
|
|
39
47
|
|
|
40
48
|
var _path, _path2, _path3;
|
|
41
49
|
var _excluded = ["title", "titleId"];
|
|
@@ -1596,16 +1604,20 @@ function getWithDirectionIcon(children, type, linkId) {
|
|
|
1596
1604
|
});
|
|
1597
1605
|
return React__default.createElement(React__default.Fragment, null, type === "backwards" && icon, children, type === "forwards" && icon);
|
|
1598
1606
|
}
|
|
1599
|
-
function
|
|
1607
|
+
function getExternalExtraElements(children, linkId, styles) {
|
|
1600
1608
|
var iconId = linkId + "-icon";
|
|
1601
|
-
var
|
|
1609
|
+
var extraElements = React__default.createElement(React__default.Fragment, null, React__default.createElement(Box, {
|
|
1610
|
+
as: "span",
|
|
1611
|
+
__css: styles
|
|
1612
|
+
}, "This link opens in a new window"), React__default.createElement(Icon, {
|
|
1602
1613
|
align: "right",
|
|
1603
1614
|
className: "more-link",
|
|
1604
1615
|
id: iconId,
|
|
1605
1616
|
name: "actionLaunch",
|
|
1606
|
-
size: "medium"
|
|
1607
|
-
|
|
1608
|
-
|
|
1617
|
+
size: "medium",
|
|
1618
|
+
title: "External link"
|
|
1619
|
+
}));
|
|
1620
|
+
return React__default.createElement(React__default.Fragment, null, children, extraElements);
|
|
1609
1621
|
}
|
|
1610
1622
|
/**
|
|
1611
1623
|
* A component that uses an `href` prop or a child anchor element, to create
|
|
@@ -1634,12 +1646,16 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1634
1646
|
if (type === "action" || type === "forwards" || type === "backwards" || type === "external") {
|
|
1635
1647
|
variant = "moreLink";
|
|
1636
1648
|
} else if (type.includes("button")) {
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1649
|
+
/** This deprecation warning is temporarily being removed, but it will be
|
|
1650
|
+
* reinstated once teams are able to update their `Link`s appropriately. */
|
|
1651
|
+
// if (type === "button") {
|
|
1652
|
+
// console.warn(
|
|
1653
|
+
// `NYPL Reservoir Link: The "button" type is deprecated. Instead, use either "buttonPrimary", "buttonSecondary", "buttonPill", "buttonCallout", "buttonNoBrand", or "buttonDisabled".`
|
|
1654
|
+
// );
|
|
1655
|
+
// }
|
|
1640
1656
|
variant = type;
|
|
1641
1657
|
}
|
|
1642
|
-
var
|
|
1658
|
+
var styles = useMultiStyleConfig("Link", {
|
|
1643
1659
|
variant: variant
|
|
1644
1660
|
});
|
|
1645
1661
|
var rel = type === "external" ? "nofollow" : null;
|
|
@@ -1647,7 +1663,7 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1647
1663
|
// Render with specific direction arrows if the type is
|
|
1648
1664
|
// "forwards" or "backwards". Or render with the launch icon
|
|
1649
1665
|
// if the type is "external". Otherwise, do not add an icon.
|
|
1650
|
-
var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" &&
|
|
1666
|
+
var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" && getExternalExtraElements(children, id, styles.srOnly) || children;
|
|
1651
1667
|
if (!href) {
|
|
1652
1668
|
// React Types error makes this fail:
|
|
1653
1669
|
// https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32832
|
|
@@ -1659,7 +1675,7 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1659
1675
|
var childProps = childrenToClone.props;
|
|
1660
1676
|
return React__default.createElement(Box, Object.assign({
|
|
1661
1677
|
as: "span",
|
|
1662
|
-
__css:
|
|
1678
|
+
__css: styles
|
|
1663
1679
|
}, rest), React__default.cloneElement(childrenToClone, _extends({
|
|
1664
1680
|
className: className
|
|
1665
1681
|
}, linkProps, childProps, {
|
|
@@ -1676,7 +1692,7 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1676
1692
|
onClick: onClick,
|
|
1677
1693
|
target: target
|
|
1678
1694
|
}, linkProps, {
|
|
1679
|
-
__css:
|
|
1695
|
+
__css: styles
|
|
1680
1696
|
}), newChildren);
|
|
1681
1697
|
}
|
|
1682
1698
|
}));
|
|
@@ -1775,13 +1791,12 @@ var HelperErrorText = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_re
|
|
|
1775
1791
|
text = _ref.text,
|
|
1776
1792
|
rest = _objectWithoutPropertiesLoose(_ref, _excluded$V);
|
|
1777
1793
|
// Only announce the text in the invalid state.
|
|
1778
|
-
var announceAriaLive = isInvalid;
|
|
1779
1794
|
var styles = useStyleConfig("HelperErrorText", {
|
|
1780
1795
|
isInvalid: isInvalid
|
|
1781
1796
|
});
|
|
1782
1797
|
var props = _extends({
|
|
1783
1798
|
"aria-atomic": ariaAtomic,
|
|
1784
|
-
"aria-live":
|
|
1799
|
+
"aria-live": ariaLive === "off" ? undefined : ariaLive,
|
|
1785
1800
|
className: className,
|
|
1786
1801
|
"data-isinvalid": isInvalid,
|
|
1787
1802
|
id: id,
|
|
@@ -2262,19 +2277,22 @@ var ButtonGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
2262
2277
|
buttonWidth: finalButtonWidth
|
|
2263
2278
|
});
|
|
2264
2279
|
React__default.Children.map(children, function (child, key) {
|
|
2265
|
-
if ((child
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2280
|
+
if (React__default.isValidElement(child)) {
|
|
2281
|
+
if (child.type !== Button) {
|
|
2282
|
+
// Special case for Storybook MDX documentation.
|
|
2283
|
+
// @ts-ignore
|
|
2284
|
+
if (child.props.mdxType && child.props.mdxType === "Button") ; else {
|
|
2285
|
+
console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
|
|
2286
|
+
return;
|
|
2287
|
+
}
|
|
2270
2288
|
}
|
|
2289
|
+
var disabledProps = isDisabled ? {
|
|
2290
|
+
isDisabled: isDisabled
|
|
2291
|
+
} : {};
|
|
2292
|
+
newChildren.push(React__default.cloneElement(child, _extends({
|
|
2293
|
+
key: key
|
|
2294
|
+
}, disabledProps)));
|
|
2271
2295
|
}
|
|
2272
|
-
var disabledProps = isDisabled ? {
|
|
2273
|
-
isDisabled: isDisabled
|
|
2274
|
-
} : {};
|
|
2275
|
-
child && newChildren.push(React__default.cloneElement(child, _extends({
|
|
2276
|
-
key: key
|
|
2277
|
-
}, disabledProps)));
|
|
2278
2296
|
});
|
|
2279
2297
|
return React__default.createElement(Stack, Object.assign({
|
|
2280
2298
|
className: className,
|
|
@@ -3624,12 +3642,18 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
3624
3642
|
});
|
|
3625
3643
|
var isTextArea = type === "textarea";
|
|
3626
3644
|
var isHidden = type === "hidden";
|
|
3645
|
+
var hasAutocomplete = false;
|
|
3627
3646
|
var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
|
|
3628
3647
|
var internalOnChange = function internalOnChange(e) {
|
|
3629
3648
|
setFinalValue(e.target.value);
|
|
3630
3649
|
onChange && onChange(e);
|
|
3631
3650
|
};
|
|
3632
3651
|
var footnote = isInvalid ? finalInvalidText : helperText;
|
|
3652
|
+
if (type === "tel" || type === "url" || type === "email") {
|
|
3653
|
+
hasAutocomplete = true;
|
|
3654
|
+
var example = TextInputFormats[type] || "";
|
|
3655
|
+
footnote = React__default.createElement(React__default.Fragment, null, "Ex: ", example, React__default.createElement("br", null), footnote);
|
|
3656
|
+
}
|
|
3633
3657
|
var ariaAttributes = getAriaAttrs({
|
|
3634
3658
|
footnote: footnote,
|
|
3635
3659
|
id: id,
|
|
@@ -3659,10 +3683,6 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
3659
3683
|
finalIsInvalid = true;
|
|
3660
3684
|
console.warn("NYPL Reservoir TextInput: The `min` prop is greater than the `max` prop.");
|
|
3661
3685
|
}
|
|
3662
|
-
if (type === "tel" || type === "url" || type === "email") {
|
|
3663
|
-
var example = TextInputFormats[type] || "";
|
|
3664
|
-
footnote = React__default.createElement(React__default.Fragment, null, "Ex: ", example, React__default.createElement("br", null), footnote);
|
|
3665
|
-
}
|
|
3666
3686
|
// When the type is "hidden", the input element needs fewer attributes.
|
|
3667
3687
|
options = isHidden ? {
|
|
3668
3688
|
defaultValue: defaultValue,
|
|
@@ -3673,6 +3693,7 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
3673
3693
|
ref: finalRef
|
|
3674
3694
|
} : _extends({
|
|
3675
3695
|
"aria-required": isRequired,
|
|
3696
|
+
autocomplete: hasAutocomplete ? type : null,
|
|
3676
3697
|
defaultValue: defaultValue,
|
|
3677
3698
|
id: id,
|
|
3678
3699
|
isDisabled: isDisabled,
|
|
@@ -4262,9 +4283,9 @@ var breakpoints = /*#__PURE__*/createBreakpoints({
|
|
|
4262
4283
|
var black = "#000";
|
|
4263
4284
|
var white = "#fff";
|
|
4264
4285
|
var grayDark = "#616161";
|
|
4265
|
-
var grayxxxxDark = "#
|
|
4266
|
-
var grayxxxDark = "#
|
|
4267
|
-
var grayxxDark = "#
|
|
4286
|
+
var grayxxxxDark = "#191919";
|
|
4287
|
+
var grayxxxDark = "#252525";
|
|
4288
|
+
var grayxxDark = "#2E2E2E";
|
|
4268
4289
|
var grayxDark = "#424242";
|
|
4269
4290
|
var grayMedium = "#BDBDBD";
|
|
4270
4291
|
var grayLightCool = "#E9E9E9";
|
|
@@ -4356,26 +4377,26 @@ var colors = {
|
|
|
4356
4377
|
secondary: grayxxDark
|
|
4357
4378
|
},
|
|
4358
4379
|
error: {
|
|
4359
|
-
primary: "#
|
|
4360
|
-
secondary: "#
|
|
4380
|
+
primary: "#E1767B",
|
|
4381
|
+
secondary: "#F08F93"
|
|
4361
4382
|
},
|
|
4362
|
-
focus: "#
|
|
4383
|
+
focus: "#6090E3",
|
|
4363
4384
|
link: {
|
|
4364
|
-
primary: "#
|
|
4365
|
-
secondary: "#
|
|
4385
|
+
primary: "#79B7EB",
|
|
4386
|
+
secondary: "#95CFFF"
|
|
4366
4387
|
},
|
|
4367
4388
|
status: {
|
|
4368
|
-
primary: "#
|
|
4369
|
-
secondary: "#
|
|
4389
|
+
primary: "#B69C46",
|
|
4390
|
+
secondary: "#CB8E7C"
|
|
4370
4391
|
},
|
|
4371
4392
|
success: {
|
|
4372
|
-
primary: "#
|
|
4373
|
-
secondary: "#
|
|
4393
|
+
primary: "#52AA60",
|
|
4394
|
+
secondary: "#81C88A"
|
|
4374
4395
|
},
|
|
4375
4396
|
test: "#592B22",
|
|
4376
4397
|
warning: {
|
|
4377
|
-
primary: "#
|
|
4378
|
-
secondary: "#
|
|
4398
|
+
primary: "#DC8034",
|
|
4399
|
+
secondary: "#F1A66A"
|
|
4379
4400
|
},
|
|
4380
4401
|
// Semantic colors
|
|
4381
4402
|
bg: {
|
|
@@ -4939,7 +4960,7 @@ var text = function text(_ref4) {
|
|
|
4939
4960
|
bg: "transparent"
|
|
4940
4961
|
},
|
|
4941
4962
|
_hover: {
|
|
4942
|
-
bg: "
|
|
4963
|
+
bg: "ui.link.primary-05",
|
|
4943
4964
|
color: "ui.link.secondary"
|
|
4944
4965
|
}
|
|
4945
4966
|
});
|
|
@@ -4975,9 +4996,9 @@ var iconOnly = function iconOnly(_ref6) {
|
|
|
4975
4996
|
paddingInlineStart: "inset.narrow",
|
|
4976
4997
|
paddingInlineEnd: "inset.narrow",
|
|
4977
4998
|
_hover: {
|
|
4978
|
-
bg: "ui.
|
|
4979
|
-
borderColor: "ui.link.
|
|
4980
|
-
color: "ui.link.
|
|
4999
|
+
bg: "ui.link.primary-05",
|
|
5000
|
+
borderColor: "ui.link.secondary",
|
|
5001
|
+
color: "ui.link.secondary"
|
|
4981
5002
|
}
|
|
4982
5003
|
});
|
|
4983
5004
|
};
|
|
@@ -5596,8 +5617,14 @@ var FeedbackBox = {
|
|
|
5596
5617
|
parts: ["closeButton", "drawerBody", "drawerContent", "drawerHeader", "openButton"],
|
|
5597
5618
|
baseStyle: {
|
|
5598
5619
|
closeButton: {
|
|
5620
|
+
/** This is overriding the default min-height value in order to keep the
|
|
5621
|
+
* button spacing symmetrical. */
|
|
5622
|
+
minHeight: "40px",
|
|
5623
|
+
right: "xs",
|
|
5599
5624
|
p: "0",
|
|
5600
|
-
|
|
5625
|
+
position: "absolute",
|
|
5626
|
+
span: /*#__PURE__*/screenreaderOnly(),
|
|
5627
|
+
top: "xs"
|
|
5601
5628
|
},
|
|
5602
5629
|
drawerBody: {
|
|
5603
5630
|
paddingTop: "m",
|
|
@@ -5617,8 +5644,8 @@ var FeedbackBox = {
|
|
|
5617
5644
|
display: "flex",
|
|
5618
5645
|
fontSize: "text.default",
|
|
5619
5646
|
px: "m",
|
|
5620
|
-
paddingTop: "
|
|
5621
|
-
paddingBottom: "
|
|
5647
|
+
paddingTop: "s",
|
|
5648
|
+
paddingBottom: "s",
|
|
5622
5649
|
p: {
|
|
5623
5650
|
marginBottom: "0"
|
|
5624
5651
|
}
|
|
@@ -5645,6 +5672,37 @@ var Fieldset$1 = {
|
|
|
5645
5672
|
}
|
|
5646
5673
|
};
|
|
5647
5674
|
|
|
5675
|
+
var filterBarWidth = {
|
|
5676
|
+
"default": {
|
|
5677
|
+
width: {
|
|
5678
|
+
base: "100%",
|
|
5679
|
+
md: "265px"
|
|
5680
|
+
}
|
|
5681
|
+
},
|
|
5682
|
+
full: {
|
|
5683
|
+
width: "100%"
|
|
5684
|
+
}
|
|
5685
|
+
};
|
|
5686
|
+
var FilterBar = {
|
|
5687
|
+
parts: ["modalHeader", "modalFooter", "modalCloseButton", "globalButtonGroup", "globalButtonGroupWrapper"],
|
|
5688
|
+
baseStyle: function baseStyle(_ref) {
|
|
5689
|
+
var width = _ref.width;
|
|
5690
|
+
return {
|
|
5691
|
+
width: "full",
|
|
5692
|
+
modalHeader: {
|
|
5693
|
+
bg: "ui.gray.x-light-cool"
|
|
5694
|
+
},
|
|
5695
|
+
modalFooter: {
|
|
5696
|
+
bg: "ui.gray.x-light-cool"
|
|
5697
|
+
},
|
|
5698
|
+
modalCloseButton: {
|
|
5699
|
+
mt: "8px"
|
|
5700
|
+
},
|
|
5701
|
+
globalButtonGroupWrapper: _extends({}, filterBarWidth[width])
|
|
5702
|
+
};
|
|
5703
|
+
}
|
|
5704
|
+
};
|
|
5705
|
+
|
|
5648
5706
|
var footerGray = "#54514A";
|
|
5649
5707
|
var Footer = {
|
|
5650
5708
|
baseStyle: {
|
|
@@ -6726,14 +6784,18 @@ var variants = {
|
|
|
6726
6784
|
})
|
|
6727
6785
|
};
|
|
6728
6786
|
var Link$1 = {
|
|
6787
|
+
parts: ["srOnly"],
|
|
6729
6788
|
baseStyle: /*#__PURE__*/_extends({}, baseLinkStyles, {
|
|
6730
|
-
|
|
6731
|
-
|
|
6789
|
+
/** This is needed for custom anchor elements or link components
|
|
6790
|
+
* that are passed as children to the `Link` component. */
|
|
6732
6791
|
a: {
|
|
6733
6792
|
_hover: {
|
|
6734
6793
|
color: "ui.link.secondary"
|
|
6735
6794
|
}
|
|
6736
|
-
}
|
|
6795
|
+
},
|
|
6796
|
+
/** The element will handle descriptive text added to aid
|
|
6797
|
+
* screen readers. */
|
|
6798
|
+
srOnly: /*#__PURE__*/screenreaderOnly()
|
|
6737
6799
|
}),
|
|
6738
6800
|
variants: variants
|
|
6739
6801
|
};
|
|
@@ -7369,6 +7431,202 @@ var Logo = {
|
|
|
7369
7431
|
}
|
|
7370
7432
|
};
|
|
7371
7433
|
|
|
7434
|
+
var multiSelectWidths = {
|
|
7435
|
+
"default": {
|
|
7436
|
+
width: {
|
|
7437
|
+
base: "100%",
|
|
7438
|
+
md: "250px"
|
|
7439
|
+
}
|
|
7440
|
+
},
|
|
7441
|
+
fitContent: {
|
|
7442
|
+
width: {
|
|
7443
|
+
base: "100%",
|
|
7444
|
+
md: "fit-content"
|
|
7445
|
+
},
|
|
7446
|
+
minWidth: {
|
|
7447
|
+
md: "175px"
|
|
7448
|
+
}
|
|
7449
|
+
},
|
|
7450
|
+
full: {
|
|
7451
|
+
width: "100%"
|
|
7452
|
+
}
|
|
7453
|
+
};
|
|
7454
|
+
var MultiSelect = {
|
|
7455
|
+
parts: ["actionButtons", "menu", "menuButton", "menuContainer", "menuChildren"],
|
|
7456
|
+
baseStyle: function baseStyle(_ref) {
|
|
7457
|
+
var isBlockElement = _ref.isBlockElement,
|
|
7458
|
+
isOpen = _ref.isOpen,
|
|
7459
|
+
_ref$width = _ref.width,
|
|
7460
|
+
width = _ref$width === void 0 ? "default" : _ref$width;
|
|
7461
|
+
return _extends({}, multiSelectWidths[width], {
|
|
7462
|
+
position: "relative",
|
|
7463
|
+
actionButtons: {
|
|
7464
|
+
borderTop: "1px solid",
|
|
7465
|
+
borderColor: "ui.gray.medium",
|
|
7466
|
+
gap: {
|
|
7467
|
+
base: "0",
|
|
7468
|
+
md: "s"
|
|
7469
|
+
},
|
|
7470
|
+
justifyContent: "flex-end",
|
|
7471
|
+
padding: {
|
|
7472
|
+
base: "s",
|
|
7473
|
+
md: "xs"
|
|
7474
|
+
},
|
|
7475
|
+
width: "auto"
|
|
7476
|
+
},
|
|
7477
|
+
menuContainer: _extends({
|
|
7478
|
+
backgroundColor: "white",
|
|
7479
|
+
position: {
|
|
7480
|
+
md: isBlockElement ? "relative" : "absolute"
|
|
7481
|
+
},
|
|
7482
|
+
display: isOpen ? "block" : "none",
|
|
7483
|
+
zIndex: isBlockElement ? 0 : 9999
|
|
7484
|
+
}, width === "fitContent" && {
|
|
7485
|
+
minWidth: {
|
|
7486
|
+
md: "275px"
|
|
7487
|
+
},
|
|
7488
|
+
maxWidth: {
|
|
7489
|
+
md: "375px"
|
|
7490
|
+
}
|
|
7491
|
+
}, {
|
|
7492
|
+
width: "100%",
|
|
7493
|
+
// These are for active states
|
|
7494
|
+
boxSizing: "border-box",
|
|
7495
|
+
border: "1px solid",
|
|
7496
|
+
borderBottomLeftRadius: "button.default",
|
|
7497
|
+
borderBottomRightRadius: "button.default",
|
|
7498
|
+
borderTopLeftRadius: "0",
|
|
7499
|
+
borderTopRightRadius: "0",
|
|
7500
|
+
borderColor: "ui.gray.dark",
|
|
7501
|
+
marginTop: "-1px",
|
|
7502
|
+
paddingX: 0,
|
|
7503
|
+
paddingY: 0,
|
|
7504
|
+
ul: {
|
|
7505
|
+
m: 0,
|
|
7506
|
+
px: 0,
|
|
7507
|
+
py: "xs",
|
|
7508
|
+
li: {
|
|
7509
|
+
p: 0,
|
|
7510
|
+
div: {
|
|
7511
|
+
px: "s",
|
|
7512
|
+
paddingTop: "xs",
|
|
7513
|
+
paddingBottom: "6px",
|
|
7514
|
+
_hover: {
|
|
7515
|
+
bg: "ui.gray.x-light-cool"
|
|
7516
|
+
}
|
|
7517
|
+
}
|
|
7518
|
+
},
|
|
7519
|
+
ul: {
|
|
7520
|
+
py: 0,
|
|
7521
|
+
li: {
|
|
7522
|
+
div: {
|
|
7523
|
+
paddingLeft: "46px",
|
|
7524
|
+
paddingRight: 0
|
|
7525
|
+
}
|
|
7526
|
+
}
|
|
7527
|
+
}
|
|
7528
|
+
}
|
|
7529
|
+
}),
|
|
7530
|
+
menu: {
|
|
7531
|
+
paddingX: "xs",
|
|
7532
|
+
// Controls the height of the multiselect menu, before scroll bar.
|
|
7533
|
+
maxHeight: {
|
|
7534
|
+
base: "100%",
|
|
7535
|
+
md: "285px"
|
|
7536
|
+
},
|
|
7537
|
+
overflowX: {
|
|
7538
|
+
base: "hidden"
|
|
7539
|
+
},
|
|
7540
|
+
overflowY: {
|
|
7541
|
+
base: "auto"
|
|
7542
|
+
},
|
|
7543
|
+
_focus: {
|
|
7544
|
+
outline: "0px !important"
|
|
7545
|
+
}
|
|
7546
|
+
},
|
|
7547
|
+
menuChildren: {
|
|
7548
|
+
paddingLeft: "m",
|
|
7549
|
+
marginBottom: 0
|
|
7550
|
+
}
|
|
7551
|
+
});
|
|
7552
|
+
}
|
|
7553
|
+
};
|
|
7554
|
+
|
|
7555
|
+
var MultiSelectMenuButton = {
|
|
7556
|
+
parts: ["buttonLabel", "menuButton", "selectedItemsCountButton", "toggleIcon"],
|
|
7557
|
+
baseStyle: function baseStyle(_ref) {
|
|
7558
|
+
var _ref$hasSelectedItems = _ref.hasSelectedItems,
|
|
7559
|
+
hasSelectedItems = _ref$hasSelectedItems === void 0 ? false : _ref$hasSelectedItems,
|
|
7560
|
+
_ref$isOpen = _ref.isOpen,
|
|
7561
|
+
isOpen = _ref$isOpen === void 0 ? false : _ref$isOpen;
|
|
7562
|
+
return {
|
|
7563
|
+
buttonLabel: {
|
|
7564
|
+
justifyContent: "flex-start",
|
|
7565
|
+
overflow: "hidden",
|
|
7566
|
+
marginLeft: hasSelectedItems ? "50px" : "0",
|
|
7567
|
+
marginRight: "l",
|
|
7568
|
+
textAlign: "left",
|
|
7569
|
+
textOverflow: "ellipsis",
|
|
7570
|
+
whiteSpace: "nowrap",
|
|
7571
|
+
transition: "margin 150ms ease-out"
|
|
7572
|
+
},
|
|
7573
|
+
menuButton: {
|
|
7574
|
+
alignItems: "center",
|
|
7575
|
+
backgroundColor: isOpen ? "ui.bg.active" : "ui.white",
|
|
7576
|
+
borderBottomLeftRadius: isOpen ? "0" : "button.default",
|
|
7577
|
+
borderBottomRightRadius: isOpen ? "0" : "button.default",
|
|
7578
|
+
borderColor: isOpen ? "ui.gray.dark" : "ui.gray.medium",
|
|
7579
|
+
borderRadius: "button.default",
|
|
7580
|
+
borderWidth: "1px",
|
|
7581
|
+
fontSize: "button.default",
|
|
7582
|
+
minHeight: {
|
|
7583
|
+
base: defaultElementSizes.mobileFieldHeight,
|
|
7584
|
+
md: "auto"
|
|
7585
|
+
},
|
|
7586
|
+
px: "s",
|
|
7587
|
+
py: "xs",
|
|
7588
|
+
display: "inline-flex",
|
|
7589
|
+
justifyContent: "space-between",
|
|
7590
|
+
width: "100%",
|
|
7591
|
+
_hover: {
|
|
7592
|
+
backgroundColor: isOpen ? "ui.bg.active" : "ui.white",
|
|
7593
|
+
borderColor: "ui.gray.dark"
|
|
7594
|
+
},
|
|
7595
|
+
svg: {
|
|
7596
|
+
marginTop: "0"
|
|
7597
|
+
}
|
|
7598
|
+
},
|
|
7599
|
+
selectedItemsCountButton: {
|
|
7600
|
+
alignItems: "center",
|
|
7601
|
+
backgroundColor: "ui.gray.light-cool",
|
|
7602
|
+
border: "1px",
|
|
7603
|
+
borderRadius: "20px",
|
|
7604
|
+
borderColor: isOpen ? "ui.border.hover" : "ui.border.default",
|
|
7605
|
+
display: "flex",
|
|
7606
|
+
flexShrink: 0,
|
|
7607
|
+
fontSize: "text.tag",
|
|
7608
|
+
justifyContent: "flex-end",
|
|
7609
|
+
left: "15px",
|
|
7610
|
+
marginRight: "xs",
|
|
7611
|
+
position: "absolute",
|
|
7612
|
+
top: {
|
|
7613
|
+
base: "12px",
|
|
7614
|
+
md: "10px"
|
|
7615
|
+
},
|
|
7616
|
+
width: "46px",
|
|
7617
|
+
_hover: {
|
|
7618
|
+
borderColor: isOpen ? "ui.gray.xx-dark" : "ui.border.hover"
|
|
7619
|
+
},
|
|
7620
|
+
svg: {
|
|
7621
|
+
marginLeft: "xxs",
|
|
7622
|
+
marginRight: "6px",
|
|
7623
|
+
marginTop: "0"
|
|
7624
|
+
}
|
|
7625
|
+
}
|
|
7626
|
+
};
|
|
7627
|
+
}
|
|
7628
|
+
};
|
|
7629
|
+
|
|
7372
7630
|
var Notification = {
|
|
7373
7631
|
parts: ["container", "dismissibleButton", "icon"],
|
|
7374
7632
|
baseStyle: function baseStyle(_ref) {
|
|
@@ -8947,6 +9205,7 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
|
|
|
8947
9205
|
DatePicker: DatePicker$1,
|
|
8948
9206
|
FeedbackBox: FeedbackBox,
|
|
8949
9207
|
Fieldset: Fieldset$1,
|
|
9208
|
+
FilterBar: FilterBar,
|
|
8950
9209
|
Footer: Footer,
|
|
8951
9210
|
Header: Header,
|
|
8952
9211
|
HeaderLogin: HeaderLogin,
|
|
@@ -8967,7 +9226,9 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
|
|
|
8967
9226
|
Label: Label$1,
|
|
8968
9227
|
Link: Link$1,
|
|
8969
9228
|
List: List,
|
|
8970
|
-
Logo: Logo
|
|
9229
|
+
Logo: Logo,
|
|
9230
|
+
MultiSelect: MultiSelect,
|
|
9231
|
+
MultiSelectMenuButton: MultiSelectMenuButton
|
|
8971
9232
|
}, NotificationStyles, {
|
|
8972
9233
|
Pagination: Pagination,
|
|
8973
9234
|
ProgressIndicator: ProgressIndicator,
|
|
@@ -9468,6 +9729,9 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9468
9729
|
setComment = _useFeedbackBoxReduce.setComment,
|
|
9469
9730
|
setEmail = _useFeedbackBoxReduce.setEmail,
|
|
9470
9731
|
clearValues = _useFeedbackBoxReduce.clearValues;
|
|
9732
|
+
// Hook into NYPL breakpoint
|
|
9733
|
+
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
9734
|
+
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
9471
9735
|
// Chakra's hook to control Drawer's actions.
|
|
9472
9736
|
var disclosure = useDisclosure();
|
|
9473
9737
|
var finalIsOpen = isOpen ? isOpen : disclosure.isOpen;
|
|
@@ -9480,11 +9744,13 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9480
9744
|
var isErrorView = viewType === "error";
|
|
9481
9745
|
var confirmationTimeout = 3000;
|
|
9482
9746
|
var maxCommentCharacters = 500;
|
|
9483
|
-
var initMinHeight =
|
|
9747
|
+
var initMinHeight = 165;
|
|
9484
9748
|
var initTemplateRows = "auto 1fr";
|
|
9485
|
-
var minHeightWithCategory =
|
|
9486
|
-
var minHeightWithEmail =
|
|
9487
|
-
var minHeightWithCategoryAndEmail =
|
|
9749
|
+
var minHeightWithCategory = 235;
|
|
9750
|
+
var minHeightWithEmail = 275;
|
|
9751
|
+
var minHeightWithCategoryAndEmail = 345;
|
|
9752
|
+
var notificationHeightAdjustment = 37;
|
|
9753
|
+
var descriptionHeightAdjustment = 24;
|
|
9488
9754
|
var drawerMinHeight = initMinHeight;
|
|
9489
9755
|
var closeAndResetForm = function closeAndResetForm() {
|
|
9490
9756
|
finalOnClose();
|
|
@@ -9511,16 +9777,18 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9511
9777
|
"> div": {
|
|
9512
9778
|
py: "xs"
|
|
9513
9779
|
}
|
|
9514
|
-
}
|
|
9780
|
+
},
|
|
9781
|
+
width: "100%"
|
|
9515
9782
|
}) : undefined;
|
|
9516
9783
|
var descriptionElement = isFormView && descriptionText ? React__default.createElement(Text, {
|
|
9517
9784
|
fontWeight: "medium",
|
|
9518
|
-
|
|
9785
|
+
noSpace: true
|
|
9519
9786
|
}, descriptionText) : undefined;
|
|
9520
9787
|
var privacyPolicyField = React__default.createElement(FormField, null, React__default.createElement(Link, {
|
|
9521
9788
|
href: "https://www.nypl.org/help/about-nypl/legal-notices/privacy-policy",
|
|
9522
9789
|
type: "external",
|
|
9523
|
-
fontSize: "text.tag"
|
|
9790
|
+
fontSize: "text.tag",
|
|
9791
|
+
width: "fit-content"
|
|
9524
9792
|
}, "Privacy Policy"));
|
|
9525
9793
|
// When the submit button is clicked, set a timeout before displaying
|
|
9526
9794
|
// the confirmation or error screen. This automatically goes to the
|
|
@@ -9577,6 +9845,16 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9577
9845
|
if (showCategoryField && showEmailField) {
|
|
9578
9846
|
drawerMinHeight = minHeightWithCategoryAndEmail;
|
|
9579
9847
|
}
|
|
9848
|
+
if (notificationText) {
|
|
9849
|
+
drawerMinHeight += notificationHeightAdjustment;
|
|
9850
|
+
}
|
|
9851
|
+
if (descriptionText) {
|
|
9852
|
+
drawerMinHeight += descriptionHeightAdjustment;
|
|
9853
|
+
}
|
|
9854
|
+
if (notificationText && descriptionText) {
|
|
9855
|
+
drawerMinHeight += 16;
|
|
9856
|
+
}
|
|
9857
|
+
var finalDrawerMinHeight = drawerMinHeight + "px";
|
|
9580
9858
|
return React__default.createElement(Box, Object.assign({
|
|
9581
9859
|
className: className,
|
|
9582
9860
|
id: id,
|
|
@@ -9593,11 +9871,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9593
9871
|
placement: "bottom"
|
|
9594
9872
|
}, React__default.createElement(DrawerOverlay, null), React__default.createElement(DrawerContent, {
|
|
9595
9873
|
sx: styles.drawerContent
|
|
9596
|
-
}, React__default.createElement(
|
|
9597
|
-
sx: styles.drawerHeader
|
|
9598
|
-
}, React__default.createElement(Text, {
|
|
9599
|
-
"data-testid": "title"
|
|
9600
|
-
}, title), React__default.createElement(Spacer, null), React__default.createElement(Button, {
|
|
9874
|
+
}, React__default.createElement(Button, {
|
|
9601
9875
|
buttonType: "text",
|
|
9602
9876
|
id: "close-btn",
|
|
9603
9877
|
onClick: finalOnClose,
|
|
@@ -9606,24 +9880,38 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9606
9880
|
color: "ui.black",
|
|
9607
9881
|
name: "minus",
|
|
9608
9882
|
size: "medium"
|
|
9609
|
-
}), React__default.createElement("span", null, "Close ", title))
|
|
9883
|
+
}), React__default.createElement("span", null, "Close ", title)), React__default.createElement(DrawerHeader, {
|
|
9884
|
+
sx: styles.drawerHeader
|
|
9885
|
+
}, React__default.createElement(Text, {
|
|
9886
|
+
"data-testid": "title"
|
|
9887
|
+
}, title)), React__default.createElement(DrawerBody, {
|
|
9610
9888
|
sx: styles.drawerBody
|
|
9611
9889
|
}, React__default.createElement(Form, {
|
|
9612
9890
|
gap: "grid.s",
|
|
9613
9891
|
id: "feedback-form",
|
|
9614
9892
|
onSubmit: internalOnSubmit,
|
|
9615
9893
|
sx: {
|
|
9616
|
-
"
|
|
9617
|
-
|
|
9894
|
+
".feedback-body": {
|
|
9895
|
+
alignItems: "flex-start",
|
|
9896
|
+
minHeight: finalDrawerMinHeight,
|
|
9618
9897
|
gridTemplateRows: initTemplateRows
|
|
9898
|
+
},
|
|
9899
|
+
".feedback-body.response": {
|
|
9900
|
+
alignItems: "center",
|
|
9901
|
+
display: "flex",
|
|
9902
|
+
flexDirection: "column",
|
|
9903
|
+
justifyContent: "center"
|
|
9619
9904
|
}
|
|
9620
9905
|
}
|
|
9621
|
-
},
|
|
9906
|
+
}, isFormView && React__default.createElement(React__default.Fragment, null, React__default.createElement(VStack, {
|
|
9907
|
+
className: "feedback-body",
|
|
9908
|
+
spacing: "s"
|
|
9909
|
+
}, (notificationElement || descriptionElement) && React__default.createElement(React__default.Fragment, null, notificationElement, descriptionElement), showCategoryField && React__default.createElement(FormField, null, React__default.createElement(RadioGroup$1, {
|
|
9622
9910
|
defaultValue: state.category,
|
|
9623
9911
|
id: id + "-category",
|
|
9624
9912
|
isDisabled: isSubmitted,
|
|
9625
9913
|
labelText: "What is your feedback about?",
|
|
9626
|
-
layout: "row",
|
|
9914
|
+
layout: isLargerThanMobile ? "row" : "column",
|
|
9627
9915
|
name: id + "-category",
|
|
9628
9916
|
onChange: function onChange(selected) {
|
|
9629
9917
|
return setCategory(selected);
|
|
@@ -9640,7 +9928,9 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9640
9928
|
id: "bug",
|
|
9641
9929
|
labelText: "Bug",
|
|
9642
9930
|
value: "bug"
|
|
9643
|
-
}))), React__default.createElement(FormField,
|
|
9931
|
+
}))), React__default.createElement(FormField, {
|
|
9932
|
+
width: "100%"
|
|
9933
|
+
}, React__default.createElement(TextInput, {
|
|
9644
9934
|
helperText: maxCommentCharacters - state.comment.length + " characters remaining",
|
|
9645
9935
|
id: id + "-comment",
|
|
9646
9936
|
invalidText: "Please fill out this field.",
|
|
@@ -9656,7 +9946,9 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9656
9946
|
placeholder: "Enter your question or feedback here",
|
|
9657
9947
|
type: "textarea",
|
|
9658
9948
|
defaultValue: state.comment
|
|
9659
|
-
})), showEmailField && React__default.createElement(FormField,
|
|
9949
|
+
})), showEmailField && React__default.createElement(FormField, {
|
|
9950
|
+
width: "100%"
|
|
9951
|
+
}, React__default.createElement(TextInput, {
|
|
9660
9952
|
id: id + "-email",
|
|
9661
9953
|
invalidText: "Please enter a valid email address.",
|
|
9662
9954
|
isDisabled: isSubmitted,
|
|
@@ -9669,7 +9961,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9669
9961
|
placeholder: "Enter your email address here",
|
|
9670
9962
|
type: "email",
|
|
9671
9963
|
value: state.email
|
|
9672
|
-
})), privacyPolicyField, React__default.createElement(FormField, null, React__default.createElement(ButtonGroup, {
|
|
9964
|
+
}))), privacyPolicyField, React__default.createElement(FormField, null, React__default.createElement(ButtonGroup, {
|
|
9673
9965
|
buttonWidth: "full",
|
|
9674
9966
|
id: "submit-cancel"
|
|
9675
9967
|
}, React__default.createElement(Button, {
|
|
@@ -9684,6 +9976,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9684
9976
|
key: "submit",
|
|
9685
9977
|
type: "submit"
|
|
9686
9978
|
}, "Submit")))), isConfirmationView && React__default.createElement(React__default.Fragment, null, React__default.createElement(Box, {
|
|
9979
|
+
className: "feedback-body response",
|
|
9687
9980
|
key: "confirmationWrapper",
|
|
9688
9981
|
margin: "auto",
|
|
9689
9982
|
tabIndex: 0,
|
|
@@ -9702,6 +9995,7 @@ var FeedbackBox$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref,
|
|
|
9702
9995
|
buttonType: "secondary",
|
|
9703
9996
|
onClick: closeAndResetForm
|
|
9704
9997
|
}, "Return to Browsing")))), isErrorView && React__default.createElement(React__default.Fragment, null, React__default.createElement(Box, {
|
|
9998
|
+
className: "feedback-body response",
|
|
9705
9999
|
color: "ui.error.primary",
|
|
9706
10000
|
key: "errorWrapper",
|
|
9707
10001
|
margin: "auto",
|
|
@@ -9750,107 +10044,759 @@ function useFeedbackBox() {
|
|
|
9750
10044
|
};
|
|
9751
10045
|
}
|
|
9752
10046
|
|
|
9753
|
-
var _excluded$1f = ["
|
|
10047
|
+
var _excluded$1f = ["id", "isOpen", "multiSelectId", "multiSelectLabel", "onClear", "onKeyDown", "onMenuToggle", "selectedItems"];
|
|
10048
|
+
var _templateObject;
|
|
10049
|
+
var grow = /*#__PURE__*/keyframes$1(_templateObject || (_templateObject = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n from {width: 22px; opacity: 0; }\n to {width: 46px; opacity: 1;}\n"])));
|
|
9754
10050
|
/**
|
|
9755
|
-
*
|
|
9756
|
-
*
|
|
9757
|
-
*
|
|
10051
|
+
* The toggle button component used to open and close the `MultiSelect` menu.
|
|
10052
|
+
* A second button is rendered above the main button that displays the current
|
|
10053
|
+
* number of selected items. Clicking on the second button will clear all
|
|
10054
|
+
* the selected items and the main button's close event will not be fired
|
|
10055
|
+
* (as expected).
|
|
9758
10056
|
*/
|
|
9759
|
-
var
|
|
9760
|
-
var
|
|
9761
|
-
|
|
9762
|
-
|
|
9763
|
-
|
|
9764
|
-
|
|
9765
|
-
|
|
9766
|
-
|
|
9767
|
-
|
|
9768
|
-
title = props.title,
|
|
9769
|
-
_props$type = props.type,
|
|
9770
|
-
type = _props$type === void 0 ? "ul" : _props$type,
|
|
10057
|
+
var MultiSelectMenuButton$1 = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10058
|
+
var _selectedItems$multiS;
|
|
10059
|
+
var id = props.id,
|
|
10060
|
+
isOpen = props.isOpen,
|
|
10061
|
+
multiSelectId = props.multiSelectId,
|
|
10062
|
+
multiSelectLabel = props.multiSelectLabel,
|
|
10063
|
+
onClear = props.onClear,
|
|
10064
|
+
onMenuToggle = props.onMenuToggle,
|
|
10065
|
+
selectedItems = props.selectedItems,
|
|
9771
10066
|
rest = _objectWithoutPropertiesLoose(props, _excluded$1f);
|
|
9772
|
-
var
|
|
9773
|
-
|
|
9774
|
-
|
|
9775
|
-
|
|
10067
|
+
var iconType = isOpen ? "minus" : "plus";
|
|
10068
|
+
var growAnimation = grow + " 150ms ease-out";
|
|
10069
|
+
// Sets the selected items count on the menu button.
|
|
10070
|
+
var getSelectedItemsCount;
|
|
10071
|
+
var selectedItemsAriaLabel;
|
|
10072
|
+
if (((_selectedItems$multiS = selectedItems[multiSelectId]) == null ? void 0 : _selectedItems$multiS.items.length) > 0) {
|
|
10073
|
+
getSelectedItemsCount = "" + selectedItems[multiSelectId].items.length;
|
|
10074
|
+
var itemPlural = getSelectedItemsCount === "1" ? "" : "s";
|
|
10075
|
+
selectedItemsAriaLabel = getSelectedItemsCount + " item" + itemPlural + " selected";
|
|
10076
|
+
}
|
|
10077
|
+
var styles = useMultiStyleConfig("MultiSelectMenuButton", {
|
|
10078
|
+
isOpen: isOpen,
|
|
10079
|
+
hasSelectedItems: getSelectedItemsCount
|
|
9776
10080
|
});
|
|
9777
|
-
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
|
|
9783
|
-
}
|
|
9784
|
-
if (!children && !listItems) {
|
|
9785
|
-
console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
|
|
9786
|
-
return null;
|
|
9787
|
-
}
|
|
9788
|
-
/**
|
|
9789
|
-
* This returns either the `children` elements passed to the `List` component
|
|
9790
|
-
* first, otherwise it will check and render the data passed into the
|
|
9791
|
-
* `listItems` props based on the `ListType` type. If it is of type unordered
|
|
9792
|
-
* or ordered, it will return `li` elements. Otherwise, it will return a
|
|
9793
|
-
* combination of `dt` and `dd` elements for the description type.
|
|
9794
|
-
*/
|
|
9795
|
-
var listChildrenElms = function listChildrenElms(listType) {
|
|
9796
|
-
if (children) {
|
|
9797
|
-
return children;
|
|
9798
|
-
}
|
|
9799
|
-
if (!listItems) {
|
|
9800
|
-
return null;
|
|
9801
|
-
}
|
|
9802
|
-
if (listType === "ol" || listType === "ul") {
|
|
9803
|
-
return listItems.map(function (item, i) {
|
|
9804
|
-
return React__default.createElement("li", {
|
|
9805
|
-
key: i
|
|
9806
|
-
}, item);
|
|
9807
|
-
});
|
|
9808
|
-
} else if (listType === "dl") {
|
|
9809
|
-
return listItems.map(function (item, i) {
|
|
9810
|
-
return [React__default.createElement("dt", {
|
|
9811
|
-
key: i + "-term"
|
|
9812
|
-
}, item.term), React__default.createElement("dd", {
|
|
9813
|
-
key: i + "-des"
|
|
9814
|
-
}, item.description)];
|
|
9815
|
-
});
|
|
10081
|
+
// We need this for our "fake" button inside the main menu button.
|
|
10082
|
+
function onKeyPress(e) {
|
|
10083
|
+
var enterOrSpace = e.key === "Enter" || e.key === " " || e.key === "Spacebar" || e.which === 13 || e.which === 32;
|
|
10084
|
+
if (enterOrSpace) {
|
|
10085
|
+
e.preventDefault();
|
|
10086
|
+
onClear();
|
|
9816
10087
|
}
|
|
9817
|
-
return null;
|
|
9818
|
-
};
|
|
9819
|
-
/**
|
|
9820
|
-
* Checks for `dt` and `dd` elements and consoles a warning if the
|
|
9821
|
-
* children are different HTML elements.
|
|
9822
|
-
*/
|
|
9823
|
-
var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
|
|
9824
|
-
React__default.Children.map(children, function (child) {
|
|
9825
|
-
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) {
|
|
9826
|
-
console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
|
|
9827
|
-
}
|
|
9828
|
-
});
|
|
9829
|
-
};
|
|
9830
|
-
if (type === "ol" || type === "ul") {
|
|
9831
|
-
checkListChildrenError(children, type);
|
|
9832
|
-
listElement = React__default.createElement(Box, Object.assign({
|
|
9833
|
-
as: type,
|
|
9834
|
-
id: id,
|
|
9835
|
-
className: className,
|
|
9836
|
-
ref: ref,
|
|
9837
|
-
__css: styles
|
|
9838
|
-
}, rest), listChildrenElms(type));
|
|
9839
|
-
} else if (type === "dl") {
|
|
9840
|
-
checkDescriptionChildrenError();
|
|
9841
|
-
listElement = React__default.createElement(Box, Object.assign({
|
|
9842
|
-
as: "section",
|
|
9843
|
-
id: id,
|
|
9844
|
-
className: className,
|
|
9845
|
-
ref: ref,
|
|
9846
|
-
__css: styles
|
|
9847
|
-
}, rest), title && React__default.createElement(Heading, {
|
|
9848
|
-
id: id + "-heading"
|
|
9849
|
-
}, title), React__default.createElement("dl", null, listChildrenElms(type)));
|
|
9850
10088
|
}
|
|
9851
|
-
return
|
|
9852
|
-
|
|
9853
|
-
|
|
10089
|
+
return React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, Object.assign({
|
|
10090
|
+
buttonType: "secondary",
|
|
10091
|
+
id: id,
|
|
10092
|
+
onClick: onMenuToggle,
|
|
10093
|
+
ref: ref,
|
|
10094
|
+
__css: styles.menuButton
|
|
10095
|
+
}, rest), React__default.createElement(Box, {
|
|
10096
|
+
as: "span",
|
|
10097
|
+
title: multiSelectLabel,
|
|
10098
|
+
__css: styles.buttonLabel
|
|
10099
|
+
}, multiSelectLabel), React__default.createElement(Icon, {
|
|
10100
|
+
id: "ms-" + multiSelectId + "-icon",
|
|
10101
|
+
name: iconType,
|
|
10102
|
+
size: "small"
|
|
10103
|
+
})), getSelectedItemsCount && React__default.createElement(Box, {
|
|
10104
|
+
animation: growAnimation,
|
|
10105
|
+
"aria-label": selectedItemsAriaLabel,
|
|
10106
|
+
as: "span",
|
|
10107
|
+
onClick: onClear,
|
|
10108
|
+
onKeyPress: onKeyPress,
|
|
10109
|
+
role: "button",
|
|
10110
|
+
tabIndex: 0,
|
|
10111
|
+
__css: styles.selectedItemsCountButton
|
|
10112
|
+
}, React__default.createElement(Box, {
|
|
10113
|
+
as: "span",
|
|
10114
|
+
verticalAlign: "text-bottom"
|
|
10115
|
+
}, getSelectedItemsCount), React__default.createElement(Icon, {
|
|
10116
|
+
align: "right",
|
|
10117
|
+
id: "ms-" + multiSelectId + "-selected-items-count-icon",
|
|
10118
|
+
marginLeft: "xs",
|
|
10119
|
+
name: "close",
|
|
10120
|
+
size: "xsmall"
|
|
10121
|
+
})));
|
|
10122
|
+
});
|
|
10123
|
+
|
|
10124
|
+
var _excluded$1g = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onChange", "onClear", "selectedItems", "width"];
|
|
10125
|
+
/** MultiSelectListbox renders a non-hierarchical list of checkbox options for the `variant="listbox". It leverager downshift-js for accessiblity. */
|
|
10126
|
+
var MultiSelectListbox = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10127
|
+
var id = props.id,
|
|
10128
|
+
isBlockElement = props.isBlockElement,
|
|
10129
|
+
isDefaultOpen = props.isDefaultOpen,
|
|
10130
|
+
items = props.items,
|
|
10131
|
+
label = props.label,
|
|
10132
|
+
onChange = props.onChange,
|
|
10133
|
+
onClear = props.onClear,
|
|
10134
|
+
selectedItems = props.selectedItems,
|
|
10135
|
+
width = props.width,
|
|
10136
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1g);
|
|
10137
|
+
// Downshift.
|
|
10138
|
+
var _useSelect = useSelect({
|
|
10139
|
+
items: items,
|
|
10140
|
+
// Downshift's internal state for handling keyboard and mouse events.
|
|
10141
|
+
stateReducer: function stateReducer(state, actionAndChanges) {
|
|
10142
|
+
var changes = actionAndChanges.changes,
|
|
10143
|
+
type = actionAndChanges.type;
|
|
10144
|
+
switch (type) {
|
|
10145
|
+
case useSelect.stateChangeTypes.MenuKeyDownEnter:
|
|
10146
|
+
case useSelect.stateChangeTypes.MenuKeyDownSpaceButton:
|
|
10147
|
+
case useSelect.stateChangeTypes.ItemClick:
|
|
10148
|
+
return _extends({}, changes, {
|
|
10149
|
+
isOpen: true,
|
|
10150
|
+
highlightedIndex: state.highlightedIndex
|
|
10151
|
+
});
|
|
10152
|
+
default:
|
|
10153
|
+
return changes;
|
|
10154
|
+
}
|
|
10155
|
+
},
|
|
10156
|
+
//@ts-ignore
|
|
10157
|
+
selectedItem: selectedItems,
|
|
10158
|
+
onSelectedItemChange: function onSelectedItemChange(_ref) {
|
|
10159
|
+
var selectedItem = _ref.selectedItem;
|
|
10160
|
+
onChange(selectedItem, id);
|
|
10161
|
+
},
|
|
10162
|
+
initialIsOpen: isDefaultOpen
|
|
10163
|
+
}),
|
|
10164
|
+
getItemProps = _useSelect.getItemProps,
|
|
10165
|
+
getMenuProps = _useSelect.getMenuProps,
|
|
10166
|
+
getToggleButtonProps = _useSelect.getToggleButtonProps,
|
|
10167
|
+
highlightedIndex = _useSelect.highlightedIndex,
|
|
10168
|
+
isOpen = _useSelect.isOpen;
|
|
10169
|
+
var styles = useMultiStyleConfig("MultiSelect", {
|
|
10170
|
+
width: width,
|
|
10171
|
+
isBlockElement: isBlockElement,
|
|
10172
|
+
isOpen: isOpen
|
|
10173
|
+
});
|
|
10174
|
+
// If a item passed to the listbox variant has children,
|
|
10175
|
+
if (items.some(function (item) {
|
|
10176
|
+
return item.children;
|
|
10177
|
+
})) {
|
|
10178
|
+
console.warn("NYPL Reservoir MultiSelect: Only the variant 'dialog' can render nested select items.");
|
|
10179
|
+
}
|
|
10180
|
+
return React__default.createElement(Box, Object.assign({
|
|
10181
|
+
id: id,
|
|
10182
|
+
__css: styles
|
|
10183
|
+
}, rest), React__default.createElement(MultiSelectMenuButton$1, Object.assign({
|
|
10184
|
+
multiSelectId: id,
|
|
10185
|
+
multiSelectLabel: label,
|
|
10186
|
+
isOpen: isOpen,
|
|
10187
|
+
selectedItems: selectedItems,
|
|
10188
|
+
onClear: onClear,
|
|
10189
|
+
ref: ref
|
|
10190
|
+
}, getToggleButtonProps({
|
|
10191
|
+
id: "ms-" + id + "-menu-button",
|
|
10192
|
+
"aria-labelledby": "ms-" + id + "-menu ms-" + id + "-menu-button"
|
|
10193
|
+
}))), React__default.createElement(Box, {
|
|
10194
|
+
__css: styles.menuContainer
|
|
10195
|
+
}, React__default.createElement(UnorderedList, Object.assign({
|
|
10196
|
+
styleType: "none",
|
|
10197
|
+
marginInlineStart: "0"
|
|
10198
|
+
}, getMenuProps({
|
|
10199
|
+
id: "ms-" + id + "-menu",
|
|
10200
|
+
"aria-labelledby": "ms-" + id + "-menu-button"
|
|
10201
|
+
}), {
|
|
10202
|
+
// @FIX This prevents the menu from closing when checkbox or label is clicked.
|
|
10203
|
+
onClick: function onClick(e) {
|
|
10204
|
+
return e.preventDefault();
|
|
10205
|
+
},
|
|
10206
|
+
__css: styles.menu
|
|
10207
|
+
}), isOpen && items.map(function (item, index) {
|
|
10208
|
+
var _selectedItems$id;
|
|
10209
|
+
return React__default.createElement(ListItem, Object.assign({
|
|
10210
|
+
py: 1,
|
|
10211
|
+
// @TODO fix this, we want to pass the key prop as part of ...getItemProps but get
|
|
10212
|
+
// error Missing "key" prop for element in iterator react/jsx-key
|
|
10213
|
+
key: item.id
|
|
10214
|
+
}, getItemProps({
|
|
10215
|
+
id: "ms-" + id + "-item-" + index,
|
|
10216
|
+
key: item.id,
|
|
10217
|
+
item: item,
|
|
10218
|
+
index: index
|
|
10219
|
+
}), {
|
|
10220
|
+
sx: highlightedIndex === index ? {
|
|
10221
|
+
backgroundColor: "ui.gray.x-light-cool"
|
|
10222
|
+
} : {}
|
|
10223
|
+
}), React__default.createElement(Checkbox, {
|
|
10224
|
+
id: item.id,
|
|
10225
|
+
labelText: item.name,
|
|
10226
|
+
name: item.name,
|
|
10227
|
+
isChecked: (_selectedItems$id = selectedItems[id]) == null ? void 0 : _selectedItems$id.items.includes(item.id),
|
|
10228
|
+
onChange: function onChange() {
|
|
10229
|
+
return null;
|
|
10230
|
+
}
|
|
10231
|
+
}));
|
|
10232
|
+
}))));
|
|
10233
|
+
}),
|
|
10234
|
+
// Pass all custom props to Chakra and override, for width prop.
|
|
10235
|
+
{
|
|
10236
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
10237
|
+
return true;
|
|
10238
|
+
}
|
|
10239
|
+
});
|
|
10240
|
+
|
|
10241
|
+
var _excluded$1h = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "width"];
|
|
10242
|
+
var MultiSelectDialog = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10243
|
+
var id = props.id,
|
|
10244
|
+
isBlockElement = props.isBlockElement,
|
|
10245
|
+
isDefaultOpen = props.isDefaultOpen,
|
|
10246
|
+
items = props.items,
|
|
10247
|
+
label = props.label,
|
|
10248
|
+
onApply = props.onApply,
|
|
10249
|
+
onChange = props.onChange,
|
|
10250
|
+
onClear = props.onClear,
|
|
10251
|
+
onMixedStateChange = props.onMixedStateChange,
|
|
10252
|
+
selectedItems = props.selectedItems,
|
|
10253
|
+
width = props.width,
|
|
10254
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1h);
|
|
10255
|
+
// Use NYPL Breakpoints hook to check screen size
|
|
10256
|
+
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
10257
|
+
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
10258
|
+
// Control the open or closed state of the MultiSelect.
|
|
10259
|
+
var _useState = useState(isDefaultOpen),
|
|
10260
|
+
isOpen = _useState[0],
|
|
10261
|
+
setIsOpen = _useState[1];
|
|
10262
|
+
var styles = useMultiStyleConfig("MultiSelect", {
|
|
10263
|
+
width: width,
|
|
10264
|
+
isBlockElement: isBlockElement,
|
|
10265
|
+
isOpen: isOpen
|
|
10266
|
+
});
|
|
10267
|
+
// Create a ref that we add to the element for which we want to detect outside clicks.
|
|
10268
|
+
var internalRef = useRef();
|
|
10269
|
+
// Custom Hook, Closes the MultiSelect if user clicks outside.
|
|
10270
|
+
function useOnClickOutside(ref, handler) {
|
|
10271
|
+
React__default.useEffect(function () {
|
|
10272
|
+
var listener = function listener(event) {
|
|
10273
|
+
// Do nothing if clicking ref's element or descendent elements
|
|
10274
|
+
if (!ref.current || ref.current.contains(event.target)) {
|
|
10275
|
+
return;
|
|
10276
|
+
}
|
|
10277
|
+
handler(event);
|
|
10278
|
+
};
|
|
10279
|
+
document.addEventListener("mousedown", listener);
|
|
10280
|
+
document.addEventListener("touchstart", listener);
|
|
10281
|
+
return function () {
|
|
10282
|
+
document.removeEventListener("mousedown", listener);
|
|
10283
|
+
document.removeEventListener("touchstart", listener);
|
|
10284
|
+
};
|
|
10285
|
+
}, [ref, handler]);
|
|
10286
|
+
}
|
|
10287
|
+
useOnClickOutside(internalRef, function () {
|
|
10288
|
+
return setIsOpen(false);
|
|
10289
|
+
});
|
|
10290
|
+
// Merge internal ref with the ref passed through the chakra function.
|
|
10291
|
+
var mergedRefs = useMergeRefs(internalRef, ref);
|
|
10292
|
+
var isChecked = function isChecked(multiSelectId, itemId) {
|
|
10293
|
+
if (selectedItems[multiSelectId]) {
|
|
10294
|
+
return !!selectedItems[multiSelectId].items.find(function (selectedItemId) {
|
|
10295
|
+
return selectedItemId === itemId;
|
|
10296
|
+
});
|
|
10297
|
+
}
|
|
10298
|
+
return false;
|
|
10299
|
+
};
|
|
10300
|
+
// isAllChecked defines the isChecked status of parent checkboxes. If all child items are selected, it will turn true, otherwise it returns false.
|
|
10301
|
+
// This prop is only passed to parent options.
|
|
10302
|
+
var isAllChecked = function isAllChecked(multiSelectId, item) {
|
|
10303
|
+
var childIds = item.children.map(function (childItem) {
|
|
10304
|
+
return childItem.id;
|
|
10305
|
+
});
|
|
10306
|
+
if (selectedItems[multiSelectId] !== undefined) {
|
|
10307
|
+
return childIds.every(function (childItem) {
|
|
10308
|
+
return selectedItems[multiSelectId].items.includes(childItem);
|
|
10309
|
+
});
|
|
10310
|
+
}
|
|
10311
|
+
return false;
|
|
10312
|
+
};
|
|
10313
|
+
// isInteterminate will return true if some child items of the parent item are selected. This prop is only passed to parent options.
|
|
10314
|
+
var isIndeterminate = function isIndeterminate(multiSelectId, item) {
|
|
10315
|
+
var childIds = item.children.map(function (childItem) {
|
|
10316
|
+
return childItem.id;
|
|
10317
|
+
});
|
|
10318
|
+
if (selectedItems[multiSelectId] !== undefined && childIds.some(function (childItem) {
|
|
10319
|
+
return selectedItems[multiSelectId].items.includes(childItem);
|
|
10320
|
+
})) {
|
|
10321
|
+
return !isAllChecked(multiSelectId, item);
|
|
10322
|
+
}
|
|
10323
|
+
return false;
|
|
10324
|
+
};
|
|
10325
|
+
return React__default.createElement(Box, Object.assign({
|
|
10326
|
+
id: id,
|
|
10327
|
+
ref: mergedRefs,
|
|
10328
|
+
__css: styles
|
|
10329
|
+
}, rest), React__default.createElement(FocusLock, {
|
|
10330
|
+
isDisabled: !isOpen
|
|
10331
|
+
}, React__default.createElement(MultiSelectMenuButton$1, {
|
|
10332
|
+
id: "ms-" + id + "-menu-button",
|
|
10333
|
+
multiSelectId: id,
|
|
10334
|
+
multiSelectLabel: label,
|
|
10335
|
+
isOpen: isOpen,
|
|
10336
|
+
selectedItems: selectedItems,
|
|
10337
|
+
onMenuToggle: function onMenuToggle() {
|
|
10338
|
+
setIsOpen(!isOpen);
|
|
10339
|
+
},
|
|
10340
|
+
onClear: onClear
|
|
10341
|
+
}), React__default.createElement(Box, Object.assign({
|
|
10342
|
+
role: "dialog",
|
|
10343
|
+
__css: styles.menuContainer
|
|
10344
|
+
}, isOpen && {
|
|
10345
|
+
"aria-modal": true
|
|
10346
|
+
}, {
|
|
10347
|
+
"aria-labelledby": "ms-" + id + "-menu-button"
|
|
10348
|
+
}), React__default.createElement(UnorderedList, {
|
|
10349
|
+
styleType: "none",
|
|
10350
|
+
marginInlineStart: "0",
|
|
10351
|
+
__css: styles.menu
|
|
10352
|
+
}, isOpen && items.map(function (item) {
|
|
10353
|
+
return React__default.createElement(ListItem, {
|
|
10354
|
+
key: item.id,
|
|
10355
|
+
py: "xxs"
|
|
10356
|
+
}, item.children ? React__default.createElement(React__default.Fragment, null, React__default.createElement(Checkbox, Object.assign({
|
|
10357
|
+
id: item.id,
|
|
10358
|
+
labelText: item.name,
|
|
10359
|
+
name: item.name
|
|
10360
|
+
}, onMixedStateChange !== undefined ? {
|
|
10361
|
+
isChecked: isAllChecked(id, item),
|
|
10362
|
+
isIndeterminate: isIndeterminate(id, item),
|
|
10363
|
+
onChange: onMixedStateChange
|
|
10364
|
+
} : {
|
|
10365
|
+
isChecked: isChecked(id, item.id),
|
|
10366
|
+
onChange: onChange
|
|
10367
|
+
})), React__default.createElement(UnorderedList, {
|
|
10368
|
+
styleType: "none",
|
|
10369
|
+
marginInlineStart: "0",
|
|
10370
|
+
__css: styles.menuChildren
|
|
10371
|
+
}, item.children.map(function (childItem) {
|
|
10372
|
+
return React__default.createElement(ListItem, {
|
|
10373
|
+
key: childItem.id,
|
|
10374
|
+
py: "xxs"
|
|
10375
|
+
}, React__default.createElement(Checkbox, {
|
|
10376
|
+
id: childItem.id,
|
|
10377
|
+
labelText: childItem.name,
|
|
10378
|
+
name: childItem.name,
|
|
10379
|
+
isChecked: isChecked(id, childItem.id),
|
|
10380
|
+
onChange: onChange
|
|
10381
|
+
}));
|
|
10382
|
+
}))) : React__default.createElement(Checkbox, {
|
|
10383
|
+
id: item.id,
|
|
10384
|
+
labelText: item.name,
|
|
10385
|
+
name: item.name,
|
|
10386
|
+
isChecked: isChecked(id, item.id),
|
|
10387
|
+
onChange: onChange
|
|
10388
|
+
}));
|
|
10389
|
+
})), isOpen && isLargerThanMobile && React__default.createElement(ButtonGroup, {
|
|
10390
|
+
__css: styles.actionButtons
|
|
10391
|
+
}, React__default.createElement(Button, {
|
|
10392
|
+
id: "ms-" + id + "-clear",
|
|
10393
|
+
buttonType: "link",
|
|
10394
|
+
type: "button",
|
|
10395
|
+
onClick: onClear
|
|
10396
|
+
}, "Clear"), React__default.createElement(Button, {
|
|
10397
|
+
id: "ms-" + id + "-apply",
|
|
10398
|
+
buttonType: "primary",
|
|
10399
|
+
type: "button",
|
|
10400
|
+
onClick: function onClick() {
|
|
10401
|
+
// Close the multiselect on apply.
|
|
10402
|
+
setIsOpen(false);
|
|
10403
|
+
// Run the onApply prop function.
|
|
10404
|
+
onApply();
|
|
10405
|
+
}
|
|
10406
|
+
}, "Apply")))));
|
|
10407
|
+
}),
|
|
10408
|
+
// Pass all custom props to Chakra and override, for width prop.
|
|
10409
|
+
{
|
|
10410
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
10411
|
+
return true;
|
|
10412
|
+
}
|
|
10413
|
+
});
|
|
10414
|
+
|
|
10415
|
+
var _excluded$1i = ["id", "isBlockElement", "isDefaultOpen", "items", "label", "onApply", "onChange", "onClear", "onMixedStateChange", "selectedItems", "variant", "width"];
|
|
10416
|
+
/**
|
|
10417
|
+
* The `MultiSelect` component is a form input element that presents a list
|
|
10418
|
+
* of `Checkbox` components from which a user can make one or multiple
|
|
10419
|
+
* selections. Two variants of the MultiSelect component are offered, each with
|
|
10420
|
+
* slightly different functionality and requirements. Because of these
|
|
10421
|
+
* differences, the two variants are broken out in separate stories below.
|
|
10422
|
+
*/
|
|
10423
|
+
var MultiSelect$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10424
|
+
var id = props.id,
|
|
10425
|
+
_props$isBlockElement = props.isBlockElement,
|
|
10426
|
+
isBlockElement = _props$isBlockElement === void 0 ? false : _props$isBlockElement,
|
|
10427
|
+
_props$isDefaultOpen = props.isDefaultOpen,
|
|
10428
|
+
isDefaultOpen = _props$isDefaultOpen === void 0 ? false : _props$isDefaultOpen,
|
|
10429
|
+
items = props.items,
|
|
10430
|
+
label = props.label,
|
|
10431
|
+
onApply = props.onApply,
|
|
10432
|
+
onChange = props.onChange,
|
|
10433
|
+
onClear = props.onClear,
|
|
10434
|
+
onMixedStateChange = props.onMixedStateChange,
|
|
10435
|
+
selectedItems = props.selectedItems,
|
|
10436
|
+
variant = props.variant,
|
|
10437
|
+
_props$width = props.width,
|
|
10438
|
+
width = _props$width === void 0 ? "default" : _props$width,
|
|
10439
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1i);
|
|
10440
|
+
var commonProps = {
|
|
10441
|
+
id: id,
|
|
10442
|
+
isBlockElement: isBlockElement,
|
|
10443
|
+
isDefaultOpen: isDefaultOpen,
|
|
10444
|
+
items: items,
|
|
10445
|
+
label: label,
|
|
10446
|
+
onClear: onClear,
|
|
10447
|
+
selectedItems: selectedItems,
|
|
10448
|
+
variant: variant,
|
|
10449
|
+
width: width
|
|
10450
|
+
};
|
|
10451
|
+
if (variant === "listbox") {
|
|
10452
|
+
var listboxOnChange = onChange;
|
|
10453
|
+
return React__default.createElement(MultiSelectListbox, Object.assign({}, commonProps, {
|
|
10454
|
+
ref: ref,
|
|
10455
|
+
onChange: listboxOnChange
|
|
10456
|
+
}, rest));
|
|
10457
|
+
}
|
|
10458
|
+
if (variant === "dialog") {
|
|
10459
|
+
var dialogOnChange = onChange;
|
|
10460
|
+
return React__default.createElement(MultiSelectDialog, Object.assign({}, commonProps, {
|
|
10461
|
+
onChange: dialogOnChange,
|
|
10462
|
+
onMixedStateChange: onMixedStateChange,
|
|
10463
|
+
onApply: onApply,
|
|
10464
|
+
ref: ref
|
|
10465
|
+
}, rest));
|
|
10466
|
+
}
|
|
10467
|
+
return null;
|
|
10468
|
+
}),
|
|
10469
|
+
// Pass all custom props to Chakra and override, for width prop.
|
|
10470
|
+
{
|
|
10471
|
+
shouldForwardProp: function shouldForwardProp() {
|
|
10472
|
+
return true;
|
|
10473
|
+
}
|
|
10474
|
+
});
|
|
10475
|
+
|
|
10476
|
+
var _excluded$1j = ["children", "className", "id", "labelText", "layout", "multiSelectWidth", "showLabel"];
|
|
10477
|
+
/**
|
|
10478
|
+
* `MultiSelectGroup` is a wrapper component specific for `MultiSelect` components. The wrapped `MutliSelect` components can be displayed in a
|
|
10479
|
+
* column or in a row. The `MultiSelectGroup` component renders all the necessary
|
|
10480
|
+
* wrapping and associated text elements, but the child elements
|
|
10481
|
+
* _need_ to be `MultiSelect` components from the NYPL Design System.
|
|
10482
|
+
*/
|
|
10483
|
+
var MultiSelectGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10484
|
+
var children = props.children,
|
|
10485
|
+
_props$className = props.className,
|
|
10486
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
10487
|
+
id = props.id,
|
|
10488
|
+
labelText = props.labelText,
|
|
10489
|
+
_props$layout = props.layout,
|
|
10490
|
+
layout = _props$layout === void 0 ? "row" : _props$layout,
|
|
10491
|
+
_props$multiSelectWid = props.multiSelectWidth,
|
|
10492
|
+
multiSelectWidth = _props$multiSelectWid === void 0 ? "default" : _props$multiSelectWid,
|
|
10493
|
+
_props$showLabel = props.showLabel,
|
|
10494
|
+
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
10495
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1j);
|
|
10496
|
+
var newChildren = [];
|
|
10497
|
+
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
10498
|
+
isLargerThanMobile = _useNYPLBreakpoints.isLargerThanMobile;
|
|
10499
|
+
var finalLayout = isLargerThanMobile ? layout : "column";
|
|
10500
|
+
var finallWidth = isLargerThanMobile ? multiSelectWidth : "full";
|
|
10501
|
+
var isBlockElement = layout === "column" ? true : false;
|
|
10502
|
+
var styles = useMultiStyleConfig("MultiSelectGroup", {
|
|
10503
|
+
width: finallWidth
|
|
10504
|
+
});
|
|
10505
|
+
// Go through the MultiSelect children and update props as needed.
|
|
10506
|
+
React__default.Children.map(children, function (child) {
|
|
10507
|
+
if (React__default.isValidElement(child)) {
|
|
10508
|
+
// @TODO: DXP needs to pass custom MultiSelects that wrap DS Mutliselects - type check deos not allow DXP to use MultiSelectGroup
|
|
10509
|
+
// if (child.type !== MultiSelect) {
|
|
10510
|
+
// console.warn(
|
|
10511
|
+
// "NYPL Reservoir MultiSelectGroup: Only MultiSelect components can be children of MultiSelectGroup."
|
|
10512
|
+
// );
|
|
10513
|
+
// return;
|
|
10514
|
+
// }
|
|
10515
|
+
if (child.type === MultiSelect$1) {
|
|
10516
|
+
var _props = {
|
|
10517
|
+
isBlockElement: isBlockElement,
|
|
10518
|
+
width: multiSelectWidth
|
|
10519
|
+
};
|
|
10520
|
+
newChildren.push(React__default.cloneElement(child, _props));
|
|
10521
|
+
} else {
|
|
10522
|
+
newChildren.push(React__default.cloneElement(child));
|
|
10523
|
+
}
|
|
10524
|
+
}
|
|
10525
|
+
});
|
|
10526
|
+
return React__default.createElement(Fieldset, Object.assign({
|
|
10527
|
+
id: id + "-multiselect-group",
|
|
10528
|
+
legendText: labelText,
|
|
10529
|
+
isLegendHidden: !showLabel,
|
|
10530
|
+
__css: styles
|
|
10531
|
+
}, rest), React__default.createElement(Stack, {
|
|
10532
|
+
"aria-label": !showLabel ? labelText : undefined,
|
|
10533
|
+
className: className,
|
|
10534
|
+
columnGap: "xs",
|
|
10535
|
+
"data-testid": "multi-select-group",
|
|
10536
|
+
direction: finalLayout,
|
|
10537
|
+
id: id,
|
|
10538
|
+
ref: ref,
|
|
10539
|
+
rowGap: finalLayout === "row" ? "xs" : "0",
|
|
10540
|
+
spacing: isLargerThanMobile ? "xs" : "0",
|
|
10541
|
+
wrap: layout === "row" ? "wrap" : null,
|
|
10542
|
+
sx: {
|
|
10543
|
+
"> div": {
|
|
10544
|
+
_notFirst: {
|
|
10545
|
+
mx: "0"
|
|
10546
|
+
}
|
|
10547
|
+
}
|
|
10548
|
+
}
|
|
10549
|
+
}, newChildren));
|
|
10550
|
+
}));
|
|
10551
|
+
|
|
10552
|
+
var _excluded$1k = ["children", "id", "isOpen", "headingText", "layout", "onClear", "onSubmit", "onToggle", "onOpen", "onClose", "selectedItems", "showClearAll", "showSubmitAll", "filterWidth"];
|
|
10553
|
+
/**
|
|
10554
|
+
* `FilterBar` is a wrapper component for filter components.
|
|
10555
|
+
* The DS considers the following components as filter components:
|
|
10556
|
+
* - `MultiSelectGroup`
|
|
10557
|
+
*
|
|
10558
|
+
* The wrapped components/ component groups can be displayed in a column or
|
|
10559
|
+
* in a row layout. `FilterBar` can render additional `Clear All` and a `Apply Filters` buttons. The two
|
|
10560
|
+
* _optional_ buttons are controlled by the `showClearAll`/ `onClear` or `showSubmitAll`/`onSubmit` props repectively.
|
|
10561
|
+
*/
|
|
10562
|
+
var FilterBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10563
|
+
var children = props.children,
|
|
10564
|
+
id = props.id,
|
|
10565
|
+
isOpen = props.isOpen,
|
|
10566
|
+
headingText = props.headingText,
|
|
10567
|
+
_props$layout = props.layout,
|
|
10568
|
+
layout = _props$layout === void 0 ? "row" : _props$layout,
|
|
10569
|
+
onClear = props.onClear,
|
|
10570
|
+
onSubmit = props.onSubmit,
|
|
10571
|
+
onToggle = props.onToggle,
|
|
10572
|
+
onOpen = props.onOpen,
|
|
10573
|
+
_onClose = props.onClose,
|
|
10574
|
+
selectedItems = props.selectedItems,
|
|
10575
|
+
_props$showClearAll = props.showClearAll,
|
|
10576
|
+
showClearAll = _props$showClearAll === void 0 ? false : _props$showClearAll,
|
|
10577
|
+
_props$showSubmitAll = props.showSubmitAll,
|
|
10578
|
+
showSubmitAll = _props$showSubmitAll === void 0 ? false : _props$showSubmitAll,
|
|
10579
|
+
filterWidth = props.filterWidth,
|
|
10580
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1k);
|
|
10581
|
+
var _useNYPLBreapoints = useNYPLBreakpoints(),
|
|
10582
|
+
isLargerThanMedium = _useNYPLBreapoints.isLargerThanMedium;
|
|
10583
|
+
var finalLayout = isLargerThanMedium ? layout : "column";
|
|
10584
|
+
var finalWidth = isLargerThanMedium ? filterWidth ? filterWidth : finalLayout === "column" ? "full" : "default" : "full";
|
|
10585
|
+
var styles = useMultiStyleConfig("FilterBar", {
|
|
10586
|
+
layout: finalLayout,
|
|
10587
|
+
width: finalWidth
|
|
10588
|
+
});
|
|
10589
|
+
var getSelectedItemsCount = function getSelectedItemsCount() {
|
|
10590
|
+
return Object.entries(selectedItems).length ? "(" + Object.entries(selectedItems).length + ")" : "";
|
|
10591
|
+
};
|
|
10592
|
+
// Warning when onSubmit is passed but the showSubmitAll is missing
|
|
10593
|
+
if (onSubmit && showSubmitAll === false) {
|
|
10594
|
+
console.warn("NYPL Reservoir FilterBar: The `onSubmit` handler was set, but the `Apply Filters` button is not visible.");
|
|
10595
|
+
}
|
|
10596
|
+
// Warning when showSubmitAll is passed but onSubmit is missing
|
|
10597
|
+
if (onSubmit === undefined && showSubmitAll === true) {
|
|
10598
|
+
console.warn("NYPL Reservoir FilterBar: The `Apply Filters` button is rendering but no onSubmit function was passed.");
|
|
10599
|
+
}
|
|
10600
|
+
var newChildren = [];
|
|
10601
|
+
// Go through the FilterBar children and update props as needed.
|
|
10602
|
+
React__default.Children.map(children, function (child) {
|
|
10603
|
+
if (React__default.isValidElement(child)) {
|
|
10604
|
+
if (child.type === MultiSelectGroup) {
|
|
10605
|
+
var _props = {
|
|
10606
|
+
layout: finalLayout,
|
|
10607
|
+
multiSelectWidth: finalWidth
|
|
10608
|
+
};
|
|
10609
|
+
newChildren.push(React__default.cloneElement(child, _props));
|
|
10610
|
+
} else if (child.type === MultiSelect$1) {
|
|
10611
|
+
var _props2 = {
|
|
10612
|
+
isBlockElement: finalLayout === "column",
|
|
10613
|
+
width: finalWidth
|
|
10614
|
+
};
|
|
10615
|
+
newChildren.push(React__default.cloneElement(child, _props2));
|
|
10616
|
+
} else {
|
|
10617
|
+
console.warn("NYPL Reservoir FilterBar: Invalid child component was passed", child);
|
|
10618
|
+
return;
|
|
10619
|
+
}
|
|
10620
|
+
}
|
|
10621
|
+
});
|
|
10622
|
+
return React__default.createElement(Box, Object.assign({
|
|
10623
|
+
id: "filter-bar-" + id,
|
|
10624
|
+
__css: styles,
|
|
10625
|
+
ref: ref
|
|
10626
|
+
}, rest), isLargerThanMedium ? React__default.createElement(React__default.Fragment, null, headingText && React__default.createElement(Heading, {
|
|
10627
|
+
text: headingText,
|
|
10628
|
+
level: "two",
|
|
10629
|
+
size: "tertiary"
|
|
10630
|
+
}), React__default.createElement(Stack, {
|
|
10631
|
+
alignItems: layout === "row" ? "flex-end" : null,
|
|
10632
|
+
columnGap: "l",
|
|
10633
|
+
direction: layout,
|
|
10634
|
+
rowGap: "s",
|
|
10635
|
+
spacing: "0",
|
|
10636
|
+
wrap: layout === "row" ? "wrap" : null,
|
|
10637
|
+
sx: {
|
|
10638
|
+
"> div": {
|
|
10639
|
+
_notFirst: {
|
|
10640
|
+
mx: "0"
|
|
10641
|
+
}
|
|
10642
|
+
}
|
|
10643
|
+
}
|
|
10644
|
+
}, newChildren && newChildren.map(function (newChild, i) {
|
|
10645
|
+
return React__default.createElement(Box, {
|
|
10646
|
+
key: "filter-bar-child-" + i
|
|
10647
|
+
}, newChild);
|
|
10648
|
+
}), (showSubmitAll || showClearAll) && React__default.createElement(ButtonGroup, {
|
|
10649
|
+
layout: finalLayout,
|
|
10650
|
+
__css: styles.globalButtonGroup,
|
|
10651
|
+
buttonWidth: layout === "column" ? "full" : "default"
|
|
10652
|
+
}, showSubmitAll && React__default.createElement(Button, {
|
|
10653
|
+
buttonType: "primary",
|
|
10654
|
+
id: id + "-submit-all-button",
|
|
10655
|
+
onClick: onSubmit
|
|
10656
|
+
}, "Apply Filters"), showClearAll && React__default.createElement(Button, {
|
|
10657
|
+
buttonType: "text",
|
|
10658
|
+
id: id + "-clear-all-button",
|
|
10659
|
+
onClick: onClear,
|
|
10660
|
+
textAlign: "center"
|
|
10661
|
+
}, "Clear Filters")))) : React__default.createElement(React__default.Fragment, null, React__default.createElement(Button, {
|
|
10662
|
+
id: "filter-bar-" + id + "-show-filters",
|
|
10663
|
+
buttonType: "secondary",
|
|
10664
|
+
onClick: function onClick() {
|
|
10665
|
+
onToggle === undefined ? onOpen() : onToggle();
|
|
10666
|
+
}
|
|
10667
|
+
}, "Show Filter " + getSelectedItemsCount()), React__default.createElement(Modal, {
|
|
10668
|
+
isOpen: isOpen,
|
|
10669
|
+
onClose: function onClose() {
|
|
10670
|
+
onToggle === undefined ? _onClose() : onToggle();
|
|
10671
|
+
},
|
|
10672
|
+
size: "full",
|
|
10673
|
+
scrollBehavior: "inside"
|
|
10674
|
+
}, React__default.createElement(ModalOverlay, null), React__default.createElement(ModalContent, null, React__default.createElement(ModalHeader, {
|
|
10675
|
+
sx: styles.modalHeader
|
|
10676
|
+
}, "Filter Criteria"), React__default.createElement(ModalCloseButton, {
|
|
10677
|
+
sx: styles.modalCloseButton
|
|
10678
|
+
}), React__default.createElement(ModalBody, null, newChildren), React__default.createElement(ModalFooter, {
|
|
10679
|
+
sx: styles.modalFooter
|
|
10680
|
+
}, React__default.createElement(ButtonGroup, {
|
|
10681
|
+
layout: "row",
|
|
10682
|
+
buttonWidth: "full"
|
|
10683
|
+
}, React__default.createElement(Button, {
|
|
10684
|
+
id: "filter-bar-" + id + "-see-results",
|
|
10685
|
+
type: "submit",
|
|
10686
|
+
onClick: function onClick() {
|
|
10687
|
+
onSubmit();
|
|
10688
|
+
onToggle === undefined ? _onClose() : onToggle();
|
|
10689
|
+
}
|
|
10690
|
+
}, "Show Results"), React__default.createElement(Button, {
|
|
10691
|
+
id: "filter-bar-" + id + "-clear",
|
|
10692
|
+
buttonType: "text",
|
|
10693
|
+
type: "reset",
|
|
10694
|
+
textAlign: "center",
|
|
10695
|
+
onClick: onClear
|
|
10696
|
+
}, "Clear Filters")))))));
|
|
10697
|
+
}));
|
|
10698
|
+
|
|
10699
|
+
var _excluded$1l = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
|
|
10700
|
+
/**
|
|
10701
|
+
* A component that renders list item `li` elements or description item `dt`
|
|
10702
|
+
* and `dd` elements based on the `type` prop. Note that the `title` prop will
|
|
10703
|
+
* only display for the `Description` list type.
|
|
10704
|
+
*/
|
|
10705
|
+
var List$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10706
|
+
var children = props.children,
|
|
10707
|
+
className = props.className,
|
|
10708
|
+
id = props.id,
|
|
10709
|
+
_props$inline = props.inline,
|
|
10710
|
+
inline = _props$inline === void 0 ? false : _props$inline,
|
|
10711
|
+
listItems = props.listItems,
|
|
10712
|
+
_props$noStyling = props.noStyling,
|
|
10713
|
+
noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
|
|
10714
|
+
title = props.title,
|
|
10715
|
+
_props$type = props.type,
|
|
10716
|
+
type = _props$type === void 0 ? "ul" : _props$type,
|
|
10717
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1l);
|
|
10718
|
+
var styles = useStyleConfig("List", {
|
|
10719
|
+
inline: inline,
|
|
10720
|
+
noStyling: noStyling,
|
|
10721
|
+
variant: type
|
|
10722
|
+
});
|
|
10723
|
+
var listElement = null;
|
|
10724
|
+
// Either li/dt/dd children elements must be passed or the `listItems`
|
|
10725
|
+
// prop must be used.
|
|
10726
|
+
if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
|
|
10727
|
+
console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
|
|
10728
|
+
return null;
|
|
10729
|
+
}
|
|
10730
|
+
if (!children && !listItems) {
|
|
10731
|
+
console.warn("NYPL Reservoir List: Pass in either `<li>` children or pass data in " + "the `listItems` prop, not both.");
|
|
10732
|
+
return null;
|
|
10733
|
+
}
|
|
10734
|
+
/**
|
|
10735
|
+
* This returns either the `children` elements passed to the `List` component
|
|
10736
|
+
* first, otherwise it will check and render the data passed into the
|
|
10737
|
+
* `listItems` props based on the `ListType` type. If it is of type unordered
|
|
10738
|
+
* or ordered, it will return `li` elements. Otherwise, it will return a
|
|
10739
|
+
* combination of `dt` and `dd` elements for the description type.
|
|
10740
|
+
*/
|
|
10741
|
+
var listChildrenElms = function listChildrenElms(listType) {
|
|
10742
|
+
if (children) {
|
|
10743
|
+
return children;
|
|
10744
|
+
}
|
|
10745
|
+
if (!listItems) {
|
|
10746
|
+
return null;
|
|
10747
|
+
}
|
|
10748
|
+
if (listType === "ol" || listType === "ul") {
|
|
10749
|
+
return listItems.map(function (item, i) {
|
|
10750
|
+
return React__default.createElement("li", {
|
|
10751
|
+
key: i
|
|
10752
|
+
}, item);
|
|
10753
|
+
});
|
|
10754
|
+
} else if (listType === "dl") {
|
|
10755
|
+
return listItems.map(function (item, i) {
|
|
10756
|
+
return [React__default.createElement("dt", {
|
|
10757
|
+
key: i + "-term"
|
|
10758
|
+
}, item.term), React__default.createElement("dd", {
|
|
10759
|
+
key: i + "-des"
|
|
10760
|
+
}, item.description)];
|
|
10761
|
+
});
|
|
10762
|
+
}
|
|
10763
|
+
return null;
|
|
10764
|
+
};
|
|
10765
|
+
/**
|
|
10766
|
+
* Checks for `dt` and `dd` elements and consoles a warning if the
|
|
10767
|
+
* children are different HTML elements.
|
|
10768
|
+
*/
|
|
10769
|
+
var checkDescriptionChildrenError = function checkDescriptionChildrenError() {
|
|
10770
|
+
React__default.Children.map(children, function (child) {
|
|
10771
|
+
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) {
|
|
10772
|
+
console.warn("NYPL Reservoir List: Direct children of `List` (description) must " + "be `<dt>`s and `<dd>`s.");
|
|
10773
|
+
}
|
|
10774
|
+
});
|
|
10775
|
+
};
|
|
10776
|
+
if (type === "ol" || type === "ul") {
|
|
10777
|
+
checkListChildrenError(children, type);
|
|
10778
|
+
listElement = React__default.createElement(Box, Object.assign({
|
|
10779
|
+
as: type,
|
|
10780
|
+
id: id,
|
|
10781
|
+
className: className,
|
|
10782
|
+
ref: ref,
|
|
10783
|
+
__css: styles
|
|
10784
|
+
}, rest), listChildrenElms(type));
|
|
10785
|
+
} else if (type === "dl") {
|
|
10786
|
+
checkDescriptionChildrenError();
|
|
10787
|
+
listElement = React__default.createElement(Box, Object.assign({
|
|
10788
|
+
as: "section",
|
|
10789
|
+
id: id,
|
|
10790
|
+
className: className,
|
|
10791
|
+
ref: ref,
|
|
10792
|
+
__css: styles
|
|
10793
|
+
}, rest), title && React__default.createElement(Heading, {
|
|
10794
|
+
id: id + "-heading"
|
|
10795
|
+
}, title), React__default.createElement("dl", null, listChildrenElms(type)));
|
|
10796
|
+
}
|
|
10797
|
+
return listElement;
|
|
10798
|
+
}));
|
|
10799
|
+
/**
|
|
9854
10800
|
* Checks for `li` elements and consoles a warning if the
|
|
9855
10801
|
* children are different HTML elements.
|
|
9856
10802
|
*/
|
|
@@ -9870,14 +10816,14 @@ var checkListChildrenError = function checkListChildrenError(children, listType,
|
|
|
9870
10816
|
};
|
|
9871
10817
|
|
|
9872
10818
|
var _path$L, _path2$f, _path3$7;
|
|
9873
|
-
var _excluded$
|
|
10819
|
+
var _excluded$1m = ["title", "titleId"];
|
|
9874
10820
|
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); }
|
|
9875
10821
|
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; }
|
|
9876
10822
|
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; }
|
|
9877
10823
|
var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
|
|
9878
10824
|
var title = _ref.title,
|
|
9879
10825
|
titleId = _ref.titleId,
|
|
9880
|
-
props = _objectWithoutProperties$Q(_ref, _excluded$
|
|
10826
|
+
props = _objectWithoutProperties$Q(_ref, _excluded$1m);
|
|
9881
10827
|
return /*#__PURE__*/createElement("svg", _extends$R({
|
|
9882
10828
|
viewBox: "0 0 200 67",
|
|
9883
10829
|
fill: "none",
|
|
@@ -9898,14 +10844,14 @@ var SvgLogoAppleAppStoreBlack = function SvgLogoAppleAppStoreBlack(_ref) {
|
|
|
9898
10844
|
};
|
|
9899
10845
|
|
|
9900
10846
|
var _path$M, _path2$g, _path3$8;
|
|
9901
|
-
var _excluded$
|
|
10847
|
+
var _excluded$1n = ["title", "titleId"];
|
|
9902
10848
|
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); }
|
|
9903
10849
|
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; }
|
|
9904
10850
|
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; }
|
|
9905
10851
|
var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
|
|
9906
10852
|
var title = _ref.title,
|
|
9907
10853
|
titleId = _ref.titleId,
|
|
9908
|
-
props = _objectWithoutProperties$R(_ref, _excluded$
|
|
10854
|
+
props = _objectWithoutProperties$R(_ref, _excluded$1n);
|
|
9909
10855
|
return /*#__PURE__*/createElement("svg", _extends$S({
|
|
9910
10856
|
viewBox: "0 0 200 67",
|
|
9911
10857
|
fill: "none",
|
|
@@ -9926,14 +10872,14 @@ var SvgLogoAppleAppStoreWhite = function SvgLogoAppleAppStoreWhite(_ref) {
|
|
|
9926
10872
|
};
|
|
9927
10873
|
|
|
9928
10874
|
var _path$N, _path2$h, _path3$9;
|
|
9929
|
-
var _excluded$
|
|
10875
|
+
var _excluded$1o = ["title", "titleId"];
|
|
9930
10876
|
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); }
|
|
9931
10877
|
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; }
|
|
9932
10878
|
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; }
|
|
9933
10879
|
var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
|
|
9934
10880
|
var title = _ref.title,
|
|
9935
10881
|
titleId = _ref.titleId,
|
|
9936
|
-
props = _objectWithoutProperties$S(_ref, _excluded$
|
|
10882
|
+
props = _objectWithoutProperties$S(_ref, _excluded$1o);
|
|
9937
10883
|
return /*#__PURE__*/createElement("svg", _extends$T({
|
|
9938
10884
|
viewBox: "0 0 328 120",
|
|
9939
10885
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -9950,14 +10896,14 @@ var SvgLogoBplBlack = function SvgLogoBplBlack(_ref) {
|
|
|
9950
10896
|
};
|
|
9951
10897
|
|
|
9952
10898
|
var _path$O, _path2$i, _path3$a;
|
|
9953
|
-
var _excluded$
|
|
10899
|
+
var _excluded$1p = ["title", "titleId"];
|
|
9954
10900
|
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); }
|
|
9955
10901
|
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; }
|
|
9956
10902
|
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; }
|
|
9957
10903
|
var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
|
|
9958
10904
|
var title = _ref.title,
|
|
9959
10905
|
titleId = _ref.titleId,
|
|
9960
|
-
props = _objectWithoutProperties$T(_ref, _excluded$
|
|
10906
|
+
props = _objectWithoutProperties$T(_ref, _excluded$1p);
|
|
9961
10907
|
return /*#__PURE__*/createElement("svg", _extends$U({
|
|
9962
10908
|
viewBox: "0 0 328 120",
|
|
9963
10909
|
fill: "#fff",
|
|
@@ -9975,14 +10921,14 @@ var SvgLogoBplWhite = function SvgLogoBplWhite(_ref) {
|
|
|
9975
10921
|
};
|
|
9976
10922
|
|
|
9977
10923
|
var _rect$2, _path$P;
|
|
9978
|
-
var _excluded$
|
|
10924
|
+
var _excluded$1q = ["title", "titleId"];
|
|
9979
10925
|
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); }
|
|
9980
10926
|
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; }
|
|
9981
10927
|
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; }
|
|
9982
10928
|
var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
|
|
9983
10929
|
var title = _ref.title,
|
|
9984
10930
|
titleId = _ref.titleId,
|
|
9985
|
-
props = _objectWithoutProperties$U(_ref, _excluded$
|
|
10931
|
+
props = _objectWithoutProperties$U(_ref, _excluded$1q);
|
|
9986
10932
|
return /*#__PURE__*/createElement("svg", _extends$V({
|
|
9987
10933
|
viewBox: "0 0 118 119",
|
|
9988
10934
|
fill: "none",
|
|
@@ -10005,14 +10951,14 @@ var SvgLogoCleverBadgeColor = function SvgLogoCleverBadgeColor(_ref) {
|
|
|
10005
10951
|
};
|
|
10006
10952
|
|
|
10007
10953
|
var _path$Q;
|
|
10008
|
-
var _excluded$
|
|
10954
|
+
var _excluded$1r = ["title", "titleId"];
|
|
10009
10955
|
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); }
|
|
10010
10956
|
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; }
|
|
10011
10957
|
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; }
|
|
10012
10958
|
var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
|
|
10013
10959
|
var title = _ref.title,
|
|
10014
10960
|
titleId = _ref.titleId,
|
|
10015
|
-
props = _objectWithoutProperties$V(_ref, _excluded$
|
|
10961
|
+
props = _objectWithoutProperties$V(_ref, _excluded$1r);
|
|
10016
10962
|
return /*#__PURE__*/createElement("svg", _extends$W({
|
|
10017
10963
|
viewBox: "0 0 312 88",
|
|
10018
10964
|
fill: "#436CF2",
|
|
@@ -10028,14 +10974,14 @@ var SvgLogoCleverColor = function SvgLogoCleverColor(_ref) {
|
|
|
10028
10974
|
};
|
|
10029
10975
|
|
|
10030
10976
|
var _path$R;
|
|
10031
|
-
var _excluded$
|
|
10977
|
+
var _excluded$1s = ["title", "titleId"];
|
|
10032
10978
|
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); }
|
|
10033
10979
|
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; }
|
|
10034
10980
|
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; }
|
|
10035
10981
|
var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
|
|
10036
10982
|
var title = _ref.title,
|
|
10037
10983
|
titleId = _ref.titleId,
|
|
10038
|
-
props = _objectWithoutProperties$W(_ref, _excluded$
|
|
10984
|
+
props = _objectWithoutProperties$W(_ref, _excluded$1s);
|
|
10039
10985
|
return /*#__PURE__*/createElement("svg", _extends$X({
|
|
10040
10986
|
viewBox: "0 0 312 88",
|
|
10041
10987
|
fill: "#fff",
|
|
@@ -10051,14 +10997,14 @@ var SvgLogoCleverWhite = function SvgLogoCleverWhite(_ref) {
|
|
|
10051
10997
|
};
|
|
10052
10998
|
|
|
10053
10999
|
var _path$S, _path2$j, _path3$b, _path4$1, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13;
|
|
10054
|
-
var _excluded$
|
|
11000
|
+
var _excluded$1t = ["title", "titleId"];
|
|
10055
11001
|
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); }
|
|
10056
11002
|
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; }
|
|
10057
11003
|
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; }
|
|
10058
11004
|
var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
|
|
10059
11005
|
var title = _ref.title,
|
|
10060
11006
|
titleId = _ref.titleId,
|
|
10061
|
-
props = _objectWithoutProperties$X(_ref, _excluded$
|
|
11007
|
+
props = _objectWithoutProperties$X(_ref, _excluded$1t);
|
|
10062
11008
|
return /*#__PURE__*/createElement("svg", _extends$Y({
|
|
10063
11009
|
viewBox: "0 0 172 152",
|
|
10064
11010
|
fill: "none",
|
|
@@ -10109,14 +11055,14 @@ var SvgLogoFirstbookColor = function SvgLogoFirstbookColor(_ref) {
|
|
|
10109
11055
|
};
|
|
10110
11056
|
|
|
10111
11057
|
var _g$3;
|
|
10112
|
-
var _excluded$
|
|
11058
|
+
var _excluded$1u = ["title", "titleId"];
|
|
10113
11059
|
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); }
|
|
10114
11060
|
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; }
|
|
10115
11061
|
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; }
|
|
10116
11062
|
var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref) {
|
|
10117
11063
|
var title = _ref.title,
|
|
10118
11064
|
titleId = _ref.titleId,
|
|
10119
|
-
props = _objectWithoutProperties$Y(_ref, _excluded$
|
|
11065
|
+
props = _objectWithoutProperties$Y(_ref, _excluded$1u);
|
|
10120
11066
|
return /*#__PURE__*/createElement("svg", _extends$Z({
|
|
10121
11067
|
viewBox: "0 0 170 150",
|
|
10122
11068
|
fill: "none",
|
|
@@ -10172,14 +11118,14 @@ var SvgLogoFirstbookColorNegative = function SvgLogoFirstbookColorNegative(_ref)
|
|
|
10172
11118
|
};
|
|
10173
11119
|
|
|
10174
11120
|
var _g$4, _defs;
|
|
10175
|
-
var _excluded$
|
|
11121
|
+
var _excluded$1v = ["title", "titleId"];
|
|
10176
11122
|
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); }
|
|
10177
11123
|
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; }
|
|
10178
11124
|
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; }
|
|
10179
11125
|
var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
|
|
10180
11126
|
var title = _ref.title,
|
|
10181
11127
|
titleId = _ref.titleId,
|
|
10182
|
-
props = _objectWithoutProperties$Z(_ref, _excluded$
|
|
11128
|
+
props = _objectWithoutProperties$Z(_ref, _excluded$1v);
|
|
10183
11129
|
return /*#__PURE__*/createElement("svg", _extends$_({
|
|
10184
11130
|
viewBox: "0 0 200 60",
|
|
10185
11131
|
fill: "none",
|
|
@@ -10312,14 +11258,14 @@ var SvgLogoGooglePlayBlack = function SvgLogoGooglePlayBlack(_ref) {
|
|
|
10312
11258
|
};
|
|
10313
11259
|
|
|
10314
11260
|
var _path$T, _path2$k;
|
|
10315
|
-
var _excluded$
|
|
11261
|
+
var _excluded$1w = ["title", "titleId"];
|
|
10316
11262
|
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); }
|
|
10317
11263
|
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; }
|
|
10318
11264
|
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; }
|
|
10319
11265
|
var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
|
|
10320
11266
|
var title = _ref.title,
|
|
10321
11267
|
titleId = _ref.titleId,
|
|
10322
|
-
props = _objectWithoutProperties$_(_ref, _excluded$
|
|
11268
|
+
props = _objectWithoutProperties$_(_ref, _excluded$1w);
|
|
10323
11269
|
return /*#__PURE__*/createElement("svg", _extends$$({
|
|
10324
11270
|
viewBox: "0 0 186 74",
|
|
10325
11271
|
fill: "none",
|
|
@@ -10337,14 +11283,14 @@ var SvgLogoLpaColor = function SvgLogoLpaColor(_ref) {
|
|
|
10337
11283
|
};
|
|
10338
11284
|
|
|
10339
11285
|
var _path$U;
|
|
10340
|
-
var _excluded$
|
|
11286
|
+
var _excluded$1x = ["title", "titleId"];
|
|
10341
11287
|
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); }
|
|
10342
11288
|
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; }
|
|
10343
11289
|
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; }
|
|
10344
11290
|
var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
|
|
10345
11291
|
var title = _ref.title,
|
|
10346
11292
|
titleId = _ref.titleId,
|
|
10347
|
-
props = _objectWithoutProperties$$(_ref, _excluded$
|
|
11293
|
+
props = _objectWithoutProperties$$(_ref, _excluded$1x);
|
|
10348
11294
|
return /*#__PURE__*/createElement("svg", _extends$10({
|
|
10349
11295
|
viewBox: "0 0 186 74",
|
|
10350
11296
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10357,14 +11303,14 @@ var SvgLogoLpaBlack = function SvgLogoLpaBlack(_ref) {
|
|
|
10357
11303
|
};
|
|
10358
11304
|
|
|
10359
11305
|
var _path$V;
|
|
10360
|
-
var _excluded$
|
|
11306
|
+
var _excluded$1y = ["title", "titleId"];
|
|
10361
11307
|
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); }
|
|
10362
11308
|
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; }
|
|
10363
11309
|
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; }
|
|
10364
11310
|
var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
|
|
10365
11311
|
var title = _ref.title,
|
|
10366
11312
|
titleId = _ref.titleId,
|
|
10367
|
-
props = _objectWithoutProperties$10(_ref, _excluded$
|
|
11313
|
+
props = _objectWithoutProperties$10(_ref, _excluded$1y);
|
|
10368
11314
|
return /*#__PURE__*/createElement("svg", _extends$11({
|
|
10369
11315
|
viewBox: "0 0 186 74",
|
|
10370
11316
|
fill: "#fff",
|
|
@@ -10378,14 +11324,14 @@ var SvgLogoLpaWhite = function SvgLogoLpaWhite(_ref) {
|
|
|
10378
11324
|
};
|
|
10379
11325
|
|
|
10380
11326
|
var _g$5;
|
|
10381
|
-
var _excluded$
|
|
11327
|
+
var _excluded$1z = ["title", "titleId"];
|
|
10382
11328
|
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); }
|
|
10383
11329
|
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; }
|
|
10384
11330
|
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; }
|
|
10385
11331
|
var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
|
|
10386
11332
|
var title = _ref.title,
|
|
10387
11333
|
titleId = _ref.titleId,
|
|
10388
|
-
props = _objectWithoutProperties$11(_ref, _excluded$
|
|
11334
|
+
props = _objectWithoutProperties$11(_ref, _excluded$1z);
|
|
10389
11335
|
return /*#__PURE__*/createElement("svg", _extends$12({
|
|
10390
11336
|
viewBox: "0 0 300 71",
|
|
10391
11337
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -10400,14 +11346,14 @@ var SvgLogoMlnBlack = function SvgLogoMlnBlack(_ref) {
|
|
|
10400
11346
|
};
|
|
10401
11347
|
|
|
10402
11348
|
var _g$6;
|
|
10403
|
-
var _excluded$
|
|
11349
|
+
var _excluded$1A = ["title", "titleId"];
|
|
10404
11350
|
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); }
|
|
10405
11351
|
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; }
|
|
10406
11352
|
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; }
|
|
10407
11353
|
var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
|
|
10408
11354
|
var title = _ref.title,
|
|
10409
11355
|
titleId = _ref.titleId,
|
|
10410
|
-
props = _objectWithoutProperties$12(_ref, _excluded$
|
|
11356
|
+
props = _objectWithoutProperties$12(_ref, _excluded$1A);
|
|
10411
11357
|
return /*#__PURE__*/createElement("svg", _extends$13({
|
|
10412
11358
|
viewBox: "0 0 300 71",
|
|
10413
11359
|
fill: "#C60917",
|
|
@@ -10423,14 +11369,14 @@ var SvgLogoMlnColor = function SvgLogoMlnColor(_ref) {
|
|
|
10423
11369
|
};
|
|
10424
11370
|
|
|
10425
11371
|
var _g$7;
|
|
10426
|
-
var _excluded$
|
|
11372
|
+
var _excluded$1B = ["title", "titleId"];
|
|
10427
11373
|
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); }
|
|
10428
11374
|
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; }
|
|
10429
11375
|
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; }
|
|
10430
11376
|
var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
|
|
10431
11377
|
var title = _ref.title,
|
|
10432
11378
|
titleId = _ref.titleId,
|
|
10433
|
-
props = _objectWithoutProperties$13(_ref, _excluded$
|
|
11379
|
+
props = _objectWithoutProperties$13(_ref, _excluded$1B);
|
|
10434
11380
|
return /*#__PURE__*/createElement("svg", _extends$14({
|
|
10435
11381
|
viewBox: "0 0 300 71",
|
|
10436
11382
|
fill: "#fff",
|
|
@@ -10446,14 +11392,14 @@ var SvgLogoMlnWhite = function SvgLogoMlnWhite(_ref) {
|
|
|
10446
11392
|
};
|
|
10447
11393
|
|
|
10448
11394
|
var _g$8, _defs$1;
|
|
10449
|
-
var _excluded$
|
|
11395
|
+
var _excluded$1C = ["title", "titleId"];
|
|
10450
11396
|
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); }
|
|
10451
11397
|
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; }
|
|
10452
11398
|
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; }
|
|
10453
11399
|
var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
|
|
10454
11400
|
var title = _ref.title,
|
|
10455
11401
|
titleId = _ref.titleId,
|
|
10456
|
-
props = _objectWithoutProperties$14(_ref, _excluded$
|
|
11402
|
+
props = _objectWithoutProperties$14(_ref, _excluded$1C);
|
|
10457
11403
|
return /*#__PURE__*/createElement("svg", _extends$15({
|
|
10458
11404
|
viewBox: "0 0 341 61",
|
|
10459
11405
|
fill: "none",
|
|
@@ -10486,14 +11432,14 @@ var SvgLogoNycdoeColor = function SvgLogoNycdoeColor(_ref) {
|
|
|
10486
11432
|
})))));
|
|
10487
11433
|
};
|
|
10488
11434
|
|
|
10489
|
-
var _excluded$
|
|
11435
|
+
var _excluded$1D = ["title", "titleId"];
|
|
10490
11436
|
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); }
|
|
10491
11437
|
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; }
|
|
10492
11438
|
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; }
|
|
10493
11439
|
var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
|
|
10494
11440
|
var title = _ref.title,
|
|
10495
11441
|
titleId = _ref.titleId,
|
|
10496
|
-
props = _objectWithoutProperties$15(_ref, _excluded$
|
|
11442
|
+
props = _objectWithoutProperties$15(_ref, _excluded$1D);
|
|
10497
11443
|
return /*#__PURE__*/createElement("svg", _extends$16({
|
|
10498
11444
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10499
11445
|
viewBox: "0 0 966.787 543.733",
|
|
@@ -10568,14 +11514,14 @@ var SvgLogoNyplFullBlack = function SvgLogoNyplFullBlack(_ref) {
|
|
|
10568
11514
|
};
|
|
10569
11515
|
|
|
10570
11516
|
var _g$9, _defs$2;
|
|
10571
|
-
var _excluded$
|
|
11517
|
+
var _excluded$1E = ["title", "titleId"];
|
|
10572
11518
|
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); }
|
|
10573
11519
|
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; }
|
|
10574
11520
|
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; }
|
|
10575
11521
|
var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
|
|
10576
11522
|
var title = _ref.title,
|
|
10577
11523
|
titleId = _ref.titleId,
|
|
10578
|
-
props = _objectWithoutProperties$16(_ref, _excluded$
|
|
11524
|
+
props = _objectWithoutProperties$16(_ref, _excluded$1E);
|
|
10579
11525
|
return /*#__PURE__*/createElement("svg", _extends$17({
|
|
10580
11526
|
viewBox: "0 0 967 568",
|
|
10581
11527
|
fill: "none",
|
|
@@ -10603,14 +11549,14 @@ var SvgLogoNyplFullWhite = function SvgLogoNyplFullWhite(_ref) {
|
|
|
10603
11549
|
};
|
|
10604
11550
|
|
|
10605
11551
|
var _path$W, _path2$l, _path3$c;
|
|
10606
|
-
var _excluded$
|
|
11552
|
+
var _excluded$1F = ["title", "titleId"];
|
|
10607
11553
|
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); }
|
|
10608
11554
|
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; }
|
|
10609
11555
|
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; }
|
|
10610
11556
|
var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
|
|
10611
11557
|
var title = _ref.title,
|
|
10612
11558
|
titleId = _ref.titleId,
|
|
10613
|
-
props = _objectWithoutProperties$17(_ref, _excluded$
|
|
11559
|
+
props = _objectWithoutProperties$17(_ref, _excluded$1F);
|
|
10614
11560
|
return /*#__PURE__*/createElement("svg", _extends$18({
|
|
10615
11561
|
viewBox: "0 0 136 135",
|
|
10616
11562
|
fill: "none",
|
|
@@ -10633,14 +11579,14 @@ var SvgLogoNyplLionBlack = function SvgLogoNyplLionBlack(_ref) {
|
|
|
10633
11579
|
};
|
|
10634
11580
|
|
|
10635
11581
|
var _path$X;
|
|
10636
|
-
var _excluded$
|
|
11582
|
+
var _excluded$1G = ["title", "titleId"];
|
|
10637
11583
|
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); }
|
|
10638
11584
|
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; }
|
|
10639
11585
|
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; }
|
|
10640
11586
|
var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
|
|
10641
11587
|
var title = _ref.title,
|
|
10642
11588
|
titleId = _ref.titleId,
|
|
10643
|
-
props = _objectWithoutProperties$18(_ref, _excluded$
|
|
11589
|
+
props = _objectWithoutProperties$18(_ref, _excluded$1G);
|
|
10644
11590
|
return /*#__PURE__*/createElement("svg", _extends$19({
|
|
10645
11591
|
viewBox: "0 0 125 126",
|
|
10646
11592
|
fill: "none",
|
|
@@ -10657,14 +11603,14 @@ var SvgLogoNyplLionWhite = function SvgLogoNyplLionWhite(_ref) {
|
|
|
10657
11603
|
};
|
|
10658
11604
|
|
|
10659
11605
|
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;
|
|
10660
|
-
var _excluded$
|
|
11606
|
+
var _excluded$1H = ["title", "titleId"];
|
|
10661
11607
|
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); }
|
|
10662
11608
|
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; }
|
|
10663
11609
|
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; }
|
|
10664
11610
|
var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
|
|
10665
11611
|
var title = _ref.title,
|
|
10666
11612
|
titleId = _ref.titleId,
|
|
10667
|
-
props = _objectWithoutProperties$19(_ref, _excluded$
|
|
11613
|
+
props = _objectWithoutProperties$19(_ref, _excluded$1H);
|
|
10668
11614
|
return /*#__PURE__*/createElement("svg", _extends$1a({
|
|
10669
11615
|
viewBox: "0 0 201 165",
|
|
10670
11616
|
fill: "none",
|
|
@@ -10735,14 +11681,14 @@ var SvgLogoNyplTextBlack = function SvgLogoNyplTextBlack(_ref) {
|
|
|
10735
11681
|
};
|
|
10736
11682
|
|
|
10737
11683
|
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;
|
|
10738
|
-
var _excluded$
|
|
11684
|
+
var _excluded$1I = ["title", "titleId"];
|
|
10739
11685
|
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); }
|
|
10740
11686
|
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; }
|
|
10741
11687
|
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; }
|
|
10742
11688
|
var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
|
|
10743
11689
|
var title = _ref.title,
|
|
10744
11690
|
titleId = _ref.titleId,
|
|
10745
|
-
props = _objectWithoutProperties$1a(_ref, _excluded$
|
|
11691
|
+
props = _objectWithoutProperties$1a(_ref, _excluded$1I);
|
|
10746
11692
|
return /*#__PURE__*/createElement("svg", _extends$1b({
|
|
10747
11693
|
viewBox: "0 0 201 165",
|
|
10748
11694
|
fill: "none",
|
|
@@ -10813,14 +11759,14 @@ var SvgLogoNyplTextWhite = function SvgLogoNyplTextWhite(_ref) {
|
|
|
10813
11759
|
};
|
|
10814
11760
|
|
|
10815
11761
|
var _g$a, _defs$3;
|
|
10816
|
-
var _excluded$
|
|
11762
|
+
var _excluded$1J = ["title", "titleId"];
|
|
10817
11763
|
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); }
|
|
10818
11764
|
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; }
|
|
10819
11765
|
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; }
|
|
10820
11766
|
var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
|
|
10821
11767
|
var title = _ref.title,
|
|
10822
11768
|
titleId = _ref.titleId,
|
|
10823
|
-
props = _objectWithoutProperties$1b(_ref, _excluded$
|
|
11769
|
+
props = _objectWithoutProperties$1b(_ref, _excluded$1J);
|
|
10824
11770
|
return /*#__PURE__*/createElement("svg", _extends$1c({
|
|
10825
11771
|
viewBox: "0 0 152 139",
|
|
10826
11772
|
fill: "none",
|
|
@@ -10868,14 +11814,14 @@ var SvgLogoOpenebooksColor = function SvgLogoOpenebooksColor(_ref) {
|
|
|
10868
11814
|
};
|
|
10869
11815
|
|
|
10870
11816
|
var _g$b, _defs$4;
|
|
10871
|
-
var _excluded$
|
|
11817
|
+
var _excluded$1K = ["title", "titleId"];
|
|
10872
11818
|
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); }
|
|
10873
11819
|
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; }
|
|
10874
11820
|
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; }
|
|
10875
11821
|
var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
|
|
10876
11822
|
var title = _ref.title,
|
|
10877
11823
|
titleId = _ref.titleId,
|
|
10878
|
-
props = _objectWithoutProperties$1c(_ref, _excluded$
|
|
11824
|
+
props = _objectWithoutProperties$1c(_ref, _excluded$1K);
|
|
10879
11825
|
return /*#__PURE__*/createElement("svg", _extends$1d({
|
|
10880
11826
|
viewBox: "0 0 155 139",
|
|
10881
11827
|
fill: "none",
|
|
@@ -10946,14 +11892,14 @@ var SvgLogoOpenebooksNegative = function SvgLogoOpenebooksNegative(_ref) {
|
|
|
10946
11892
|
};
|
|
10947
11893
|
|
|
10948
11894
|
var _g$c, _defs$5;
|
|
10949
|
-
var _excluded$
|
|
11895
|
+
var _excluded$1L = ["title", "titleId"];
|
|
10950
11896
|
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); }
|
|
10951
11897
|
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; }
|
|
10952
11898
|
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; }
|
|
10953
11899
|
var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_ref) {
|
|
10954
11900
|
var title = _ref.title,
|
|
10955
11901
|
titleId = _ref.titleId,
|
|
10956
|
-
props = _objectWithoutProperties$1d(_ref, _excluded$
|
|
11902
|
+
props = _objectWithoutProperties$1d(_ref, _excluded$1L);
|
|
10957
11903
|
return /*#__PURE__*/createElement("svg", _extends$1e({
|
|
10958
11904
|
viewBox: "0 0 152 139",
|
|
10959
11905
|
fill: "none",
|
|
@@ -11001,14 +11947,14 @@ var SvgLogoOpenebooksWithTextColor = function SvgLogoOpenebooksWithTextColor(_re
|
|
|
11001
11947
|
};
|
|
11002
11948
|
|
|
11003
11949
|
var _g$d, _defs$6;
|
|
11004
|
-
var _excluded$
|
|
11950
|
+
var _excluded$1M = ["title", "titleId"];
|
|
11005
11951
|
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); }
|
|
11006
11952
|
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; }
|
|
11007
11953
|
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; }
|
|
11008
11954
|
var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegative(_ref) {
|
|
11009
11955
|
var title = _ref.title,
|
|
11010
11956
|
titleId = _ref.titleId,
|
|
11011
|
-
props = _objectWithoutProperties$1e(_ref, _excluded$
|
|
11957
|
+
props = _objectWithoutProperties$1e(_ref, _excluded$1M);
|
|
11012
11958
|
return /*#__PURE__*/createElement("svg", _extends$1f({
|
|
11013
11959
|
viewBox: "0 0 155 139",
|
|
11014
11960
|
fill: "none",
|
|
@@ -11082,14 +12028,14 @@ var SvgLogoOpenebooksWithTextNegative = function SvgLogoOpenebooksWithTextNegati
|
|
|
11082
12028
|
};
|
|
11083
12029
|
|
|
11084
12030
|
var _path$_;
|
|
11085
|
-
var _excluded$
|
|
12031
|
+
var _excluded$1N = ["title", "titleId"];
|
|
11086
12032
|
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); }
|
|
11087
12033
|
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; }
|
|
11088
12034
|
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; }
|
|
11089
12035
|
var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
|
|
11090
12036
|
var title = _ref.title,
|
|
11091
12037
|
titleId = _ref.titleId,
|
|
11092
|
-
props = _objectWithoutProperties$1f(_ref, _excluded$
|
|
12038
|
+
props = _objectWithoutProperties$1f(_ref, _excluded$1N);
|
|
11093
12039
|
return /*#__PURE__*/createElement("svg", _extends$1g({
|
|
11094
12040
|
viewBox: "0 0 250 134",
|
|
11095
12041
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11102,14 +12048,14 @@ var SvgLogoQplAltBlack = function SvgLogoQplAltBlack(_ref) {
|
|
|
11102
12048
|
};
|
|
11103
12049
|
|
|
11104
12050
|
var _path$$;
|
|
11105
|
-
var _excluded$
|
|
12051
|
+
var _excluded$1O = ["title", "titleId"];
|
|
11106
12052
|
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); }
|
|
11107
12053
|
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; }
|
|
11108
12054
|
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; }
|
|
11109
12055
|
var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
|
|
11110
12056
|
var title = _ref.title,
|
|
11111
12057
|
titleId = _ref.titleId,
|
|
11112
|
-
props = _objectWithoutProperties$1g(_ref, _excluded$
|
|
12058
|
+
props = _objectWithoutProperties$1g(_ref, _excluded$1O);
|
|
11113
12059
|
return /*#__PURE__*/createElement("svg", _extends$1h({
|
|
11114
12060
|
viewBox: "0 0 250 134",
|
|
11115
12061
|
fill: "#fff",
|
|
@@ -11123,14 +12069,14 @@ var SvgLogoQplAltWhite = function SvgLogoQplAltWhite(_ref) {
|
|
|
11123
12069
|
};
|
|
11124
12070
|
|
|
11125
12071
|
var _path$10, _path2$o, _path3$f, _path4$4, _path5$3;
|
|
11126
|
-
var _excluded$
|
|
12072
|
+
var _excluded$1P = ["title", "titleId"];
|
|
11127
12073
|
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); }
|
|
11128
12074
|
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; }
|
|
11129
12075
|
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; }
|
|
11130
12076
|
var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
|
|
11131
12077
|
var title = _ref.title,
|
|
11132
12078
|
titleId = _ref.titleId,
|
|
11133
|
-
props = _objectWithoutProperties$1h(_ref, _excluded$
|
|
12079
|
+
props = _objectWithoutProperties$1h(_ref, _excluded$1P);
|
|
11134
12080
|
return /*#__PURE__*/createElement("svg", _extends$1i({
|
|
11135
12081
|
viewBox: "0 0 320 43",
|
|
11136
12082
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11159,14 +12105,14 @@ var SvgLogoQplBlack = function SvgLogoQplBlack(_ref) {
|
|
|
11159
12105
|
};
|
|
11160
12106
|
|
|
11161
12107
|
var _g$e, _defs$7;
|
|
11162
|
-
var _excluded$
|
|
12108
|
+
var _excluded$1Q = ["title", "titleId"];
|
|
11163
12109
|
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); }
|
|
11164
12110
|
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; }
|
|
11165
12111
|
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; }
|
|
11166
12112
|
var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
|
|
11167
12113
|
var title = _ref.title,
|
|
11168
12114
|
titleId = _ref.titleId,
|
|
11169
|
-
props = _objectWithoutProperties$1i(_ref, _excluded$
|
|
12115
|
+
props = _objectWithoutProperties$1i(_ref, _excluded$1Q);
|
|
11170
12116
|
return /*#__PURE__*/createElement("svg", _extends$1j({
|
|
11171
12117
|
viewBox: "0 0 355 48",
|
|
11172
12118
|
fill: "none",
|
|
@@ -11214,14 +12160,14 @@ var SvgLogoQplColor = function SvgLogoQplColor(_ref) {
|
|
|
11214
12160
|
};
|
|
11215
12161
|
|
|
11216
12162
|
var _path$11, _path2$p, _path3$g, _path4$5, _path5$4;
|
|
11217
|
-
var _excluded$
|
|
12163
|
+
var _excluded$1R = ["title", "titleId"];
|
|
11218
12164
|
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); }
|
|
11219
12165
|
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; }
|
|
11220
12166
|
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; }
|
|
11221
12167
|
var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
|
|
11222
12168
|
var title = _ref.title,
|
|
11223
12169
|
titleId = _ref.titleId,
|
|
11224
|
-
props = _objectWithoutProperties$1j(_ref, _excluded$
|
|
12170
|
+
props = _objectWithoutProperties$1j(_ref, _excluded$1R);
|
|
11225
12171
|
return /*#__PURE__*/createElement("svg", _extends$1k({
|
|
11226
12172
|
viewBox: "0 0 320 43",
|
|
11227
12173
|
fill: "#fff",
|
|
@@ -11251,14 +12197,14 @@ var SvgLogoQplWhite = function SvgLogoQplWhite(_ref) {
|
|
|
11251
12197
|
};
|
|
11252
12198
|
|
|
11253
12199
|
var _path$12, _path2$q, _path3$h, _path4$6, _path5$5;
|
|
11254
|
-
var _excluded$
|
|
12200
|
+
var _excluded$1S = ["title", "titleId"];
|
|
11255
12201
|
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); }
|
|
11256
12202
|
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; }
|
|
11257
12203
|
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; }
|
|
11258
12204
|
var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
|
|
11259
12205
|
var title = _ref.title,
|
|
11260
12206
|
titleId = _ref.titleId,
|
|
11261
|
-
props = _objectWithoutProperties$1k(_ref, _excluded$
|
|
12207
|
+
props = _objectWithoutProperties$1k(_ref, _excluded$1S);
|
|
11262
12208
|
return /*#__PURE__*/createElement("svg", _extends$1l({
|
|
11263
12209
|
viewBox: "0 0 105 129",
|
|
11264
12210
|
fill: "none",
|
|
@@ -11285,14 +12231,14 @@ var SvgLogoReservoirIconColor = function SvgLogoReservoirIconColor(_ref) {
|
|
|
11285
12231
|
};
|
|
11286
12232
|
|
|
11287
12233
|
var _g$f;
|
|
11288
|
-
var _excluded$
|
|
12234
|
+
var _excluded$1T = ["title", "titleId"];
|
|
11289
12235
|
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); }
|
|
11290
12236
|
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; }
|
|
11291
12237
|
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; }
|
|
11292
12238
|
var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref) {
|
|
11293
12239
|
var title = _ref.title,
|
|
11294
12240
|
titleId = _ref.titleId,
|
|
11295
|
-
props = _objectWithoutProperties$1l(_ref, _excluded$
|
|
12241
|
+
props = _objectWithoutProperties$1l(_ref, _excluded$1T);
|
|
11296
12242
|
return /*#__PURE__*/createElement("svg", _extends$1m({
|
|
11297
12243
|
viewBox: "0 0 234 261",
|
|
11298
12244
|
fill: "none",
|
|
@@ -11318,14 +12264,14 @@ var SvgLogoReservoirVerticalColor = function SvgLogoReservoirVerticalColor(_ref)
|
|
|
11318
12264
|
};
|
|
11319
12265
|
|
|
11320
12266
|
var _path$13, _path2$r, _path3$i, _path4$7, _path5$6;
|
|
11321
|
-
var _excluded$
|
|
12267
|
+
var _excluded$1U = ["title", "titleId"];
|
|
11322
12268
|
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); }
|
|
11323
12269
|
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; }
|
|
11324
12270
|
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; }
|
|
11325
12271
|
var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
|
|
11326
12272
|
var title = _ref.title,
|
|
11327
12273
|
titleId = _ref.titleId,
|
|
11328
|
-
props = _objectWithoutProperties$1m(_ref, _excluded$
|
|
12274
|
+
props = _objectWithoutProperties$1m(_ref, _excluded$1U);
|
|
11329
12275
|
return /*#__PURE__*/createElement("svg", _extends$1n({
|
|
11330
12276
|
viewBox: "0 0 185 79",
|
|
11331
12277
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11346,14 +12292,14 @@ var SvgLogoSchomburgBlack = function SvgLogoSchomburgBlack(_ref) {
|
|
|
11346
12292
|
};
|
|
11347
12293
|
|
|
11348
12294
|
var _path$14, _path2$s, _path3$j, _path4$8, _path5$7;
|
|
11349
|
-
var _excluded$
|
|
12295
|
+
var _excluded$1V = ["title", "titleId"];
|
|
11350
12296
|
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); }
|
|
11351
12297
|
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; }
|
|
11352
12298
|
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; }
|
|
11353
12299
|
var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
|
|
11354
12300
|
var title = _ref.title,
|
|
11355
12301
|
titleId = _ref.titleId,
|
|
11356
|
-
props = _objectWithoutProperties$1n(_ref, _excluded$
|
|
12302
|
+
props = _objectWithoutProperties$1n(_ref, _excluded$1V);
|
|
11357
12303
|
return /*#__PURE__*/createElement("svg", _extends$1o({
|
|
11358
12304
|
viewBox: "0 0 67 67",
|
|
11359
12305
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11374,14 +12320,14 @@ var SvgLogoSchomburgCircleBlack = function SvgLogoSchomburgCircleBlack(_ref) {
|
|
|
11374
12320
|
};
|
|
11375
12321
|
|
|
11376
12322
|
var _path$15, _path2$t, _path3$k, _path4$9, _path5$8;
|
|
11377
|
-
var _excluded$
|
|
12323
|
+
var _excluded$1W = ["title", "titleId"];
|
|
11378
12324
|
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); }
|
|
11379
12325
|
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; }
|
|
11380
12326
|
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; }
|
|
11381
12327
|
var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
|
|
11382
12328
|
var title = _ref.title,
|
|
11383
12329
|
titleId = _ref.titleId,
|
|
11384
|
-
props = _objectWithoutProperties$1o(_ref, _excluded$
|
|
12330
|
+
props = _objectWithoutProperties$1o(_ref, _excluded$1W);
|
|
11385
12331
|
return /*#__PURE__*/createElement("svg", _extends$1p({
|
|
11386
12332
|
viewBox: "0 0 67 67",
|
|
11387
12333
|
fill: "none",
|
|
@@ -11408,14 +12354,14 @@ var SvgLogoSchomburgCircleColor = function SvgLogoSchomburgCircleColor(_ref) {
|
|
|
11408
12354
|
};
|
|
11409
12355
|
|
|
11410
12356
|
var _path$16, _path2$u, _path3$l, _path4$a, _path5$9;
|
|
11411
|
-
var _excluded$
|
|
12357
|
+
var _excluded$1X = ["title", "titleId"];
|
|
11412
12358
|
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); }
|
|
11413
12359
|
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; }
|
|
11414
12360
|
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; }
|
|
11415
12361
|
var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
|
|
11416
12362
|
var title = _ref.title,
|
|
11417
12363
|
titleId = _ref.titleId,
|
|
11418
|
-
props = _objectWithoutProperties$1p(_ref, _excluded$
|
|
12364
|
+
props = _objectWithoutProperties$1p(_ref, _excluded$1X);
|
|
11419
12365
|
return /*#__PURE__*/createElement("svg", _extends$1q({
|
|
11420
12366
|
viewBox: "0 0 67 67",
|
|
11421
12367
|
fill: "#fff",
|
|
@@ -11437,14 +12383,14 @@ var SvgLogoSchomburgCircleWhite = function SvgLogoSchomburgCircleWhite(_ref) {
|
|
|
11437
12383
|
};
|
|
11438
12384
|
|
|
11439
12385
|
var _path$17, _path2$v, _path3$m, _path4$b, _path5$a, _path6$3, _path7$3;
|
|
11440
|
-
var _excluded$
|
|
12386
|
+
var _excluded$1Y = ["title", "titleId"];
|
|
11441
12387
|
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); }
|
|
11442
12388
|
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; }
|
|
11443
12389
|
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; }
|
|
11444
12390
|
var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
|
|
11445
12391
|
var title = _ref.title,
|
|
11446
12392
|
titleId = _ref.titleId,
|
|
11447
|
-
props = _objectWithoutProperties$1q(_ref, _excluded$
|
|
12393
|
+
props = _objectWithoutProperties$1q(_ref, _excluded$1Y);
|
|
11448
12394
|
return /*#__PURE__*/createElement("svg", _extends$1r({
|
|
11449
12395
|
viewBox: "0 0 185 79",
|
|
11450
12396
|
fill: "none",
|
|
@@ -11477,14 +12423,14 @@ var SvgLogoSchomburgColor = function SvgLogoSchomburgColor(_ref) {
|
|
|
11477
12423
|
};
|
|
11478
12424
|
|
|
11479
12425
|
var _path$18, _path2$w, _path3$n, _path4$c, _path5$b;
|
|
11480
|
-
var _excluded$
|
|
12426
|
+
var _excluded$1Z = ["title", "titleId"];
|
|
11481
12427
|
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); }
|
|
11482
12428
|
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; }
|
|
11483
12429
|
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; }
|
|
11484
12430
|
var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
|
|
11485
12431
|
var title = _ref.title,
|
|
11486
12432
|
titleId = _ref.titleId,
|
|
11487
|
-
props = _objectWithoutProperties$1r(_ref, _excluded$
|
|
12433
|
+
props = _objectWithoutProperties$1r(_ref, _excluded$1Z);
|
|
11488
12434
|
return /*#__PURE__*/createElement("svg", _extends$1s({
|
|
11489
12435
|
viewBox: "0 0 185 79",
|
|
11490
12436
|
fill: "#fff",
|
|
@@ -11506,14 +12452,14 @@ var SvgLogoSchomburgWhite = function SvgLogoSchomburgWhite(_ref) {
|
|
|
11506
12452
|
};
|
|
11507
12453
|
|
|
11508
12454
|
var _g$g, _defs$8;
|
|
11509
|
-
var _excluded$
|
|
12455
|
+
var _excluded$1_ = ["title", "titleId"];
|
|
11510
12456
|
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); }
|
|
11511
12457
|
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; }
|
|
11512
12458
|
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; }
|
|
11513
12459
|
var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
|
|
11514
12460
|
var title = _ref.title,
|
|
11515
12461
|
titleId = _ref.titleId,
|
|
11516
|
-
props = _objectWithoutProperties$1s(_ref, _excluded$
|
|
12462
|
+
props = _objectWithoutProperties$1s(_ref, _excluded$1_);
|
|
11517
12463
|
return /*#__PURE__*/createElement("svg", _extends$1t({
|
|
11518
12464
|
viewBox: "0 0 512 148",
|
|
11519
12465
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11538,14 +12484,14 @@ var SvgLogoSimplyeBlack = function SvgLogoSimplyeBlack(_ref) {
|
|
|
11538
12484
|
};
|
|
11539
12485
|
|
|
11540
12486
|
var _g$h, _defs$9;
|
|
11541
|
-
var _excluded$
|
|
12487
|
+
var _excluded$1$ = ["title", "titleId"];
|
|
11542
12488
|
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); }
|
|
11543
12489
|
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; }
|
|
11544
12490
|
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; }
|
|
11545
12491
|
var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
|
|
11546
12492
|
var title = _ref.title,
|
|
11547
12493
|
titleId = _ref.titleId,
|
|
11548
|
-
props = _objectWithoutProperties$1t(_ref, _excluded$
|
|
12494
|
+
props = _objectWithoutProperties$1t(_ref, _excluded$1$);
|
|
11549
12495
|
return /*#__PURE__*/createElement("svg", _extends$1u({
|
|
11550
12496
|
viewBox: "0 0 512 148",
|
|
11551
12497
|
fill: "#fff",
|
|
@@ -11570,14 +12516,14 @@ var SvgLogoSimplyeWhite = function SvgLogoSimplyeWhite(_ref) {
|
|
|
11570
12516
|
};
|
|
11571
12517
|
|
|
11572
12518
|
var _g$i, _defs$a;
|
|
11573
|
-
var _excluded$
|
|
12519
|
+
var _excluded$20 = ["title", "titleId"];
|
|
11574
12520
|
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); }
|
|
11575
12521
|
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; }
|
|
11576
12522
|
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; }
|
|
11577
12523
|
var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
|
|
11578
12524
|
var title = _ref.title,
|
|
11579
12525
|
titleId = _ref.titleId,
|
|
11580
|
-
props = _objectWithoutProperties$1u(_ref, _excluded$
|
|
12526
|
+
props = _objectWithoutProperties$1u(_ref, _excluded$20);
|
|
11581
12527
|
return /*#__PURE__*/createElement("svg", _extends$1v({
|
|
11582
12528
|
viewBox: "0 0 682 196",
|
|
11583
12529
|
fill: "none",
|
|
@@ -11609,14 +12555,14 @@ var SvgLogoSimplyeColor = function SvgLogoSimplyeColor(_ref) {
|
|
|
11609
12555
|
};
|
|
11610
12556
|
|
|
11611
12557
|
var _path$19;
|
|
11612
|
-
var _excluded$
|
|
12558
|
+
var _excluded$21 = ["title", "titleId"];
|
|
11613
12559
|
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); }
|
|
11614
12560
|
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; }
|
|
11615
12561
|
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; }
|
|
11616
12562
|
var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
|
|
11617
12563
|
var title = _ref.title,
|
|
11618
12564
|
titleId = _ref.titleId,
|
|
11619
|
-
props = _objectWithoutProperties$1v(_ref, _excluded$
|
|
12565
|
+
props = _objectWithoutProperties$1v(_ref, _excluded$21);
|
|
11620
12566
|
return /*#__PURE__*/createElement("svg", _extends$1w({
|
|
11621
12567
|
viewBox: "0 0 84 111",
|
|
11622
12568
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -11629,14 +12575,14 @@ var SvgLogoSnflBlack = function SvgLogoSnflBlack(_ref) {
|
|
|
11629
12575
|
};
|
|
11630
12576
|
|
|
11631
12577
|
var _path$1a;
|
|
11632
|
-
var _excluded$
|
|
12578
|
+
var _excluded$22 = ["title", "titleId"];
|
|
11633
12579
|
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); }
|
|
11634
12580
|
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; }
|
|
11635
12581
|
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; }
|
|
11636
12582
|
var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
|
|
11637
12583
|
var title = _ref.title,
|
|
11638
12584
|
titleId = _ref.titleId,
|
|
11639
|
-
props = _objectWithoutProperties$1w(_ref, _excluded$
|
|
12585
|
+
props = _objectWithoutProperties$1w(_ref, _excluded$22);
|
|
11640
12586
|
return /*#__PURE__*/createElement("svg", _extends$1x({
|
|
11641
12587
|
viewBox: "0 0 84 111",
|
|
11642
12588
|
fill: "#fff",
|
|
@@ -11650,14 +12596,14 @@ var SvgLogoSnflWhite = function SvgLogoSnflWhite(_ref) {
|
|
|
11650
12596
|
};
|
|
11651
12597
|
|
|
11652
12598
|
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;
|
|
11653
|
-
var _excluded$
|
|
12599
|
+
var _excluded$23 = ["title", "titleId"];
|
|
11654
12600
|
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); }
|
|
11655
12601
|
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; }
|
|
11656
12602
|
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; }
|
|
11657
12603
|
var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
|
|
11658
12604
|
var title = _ref.title,
|
|
11659
12605
|
titleId = _ref.titleId,
|
|
11660
|
-
props = _objectWithoutProperties$1x(_ref, _excluded$
|
|
12606
|
+
props = _objectWithoutProperties$1x(_ref, _excluded$23);
|
|
11661
12607
|
return /*#__PURE__*/createElement("svg", _extends$1y({
|
|
11662
12608
|
viewBox: "0 0 324 265",
|
|
11663
12609
|
fill: "none",
|
|
@@ -11834,14 +12780,14 @@ var SvgLogoTreasuresColor = function SvgLogoTreasuresColor(_ref) {
|
|
|
11834
12780
|
};
|
|
11835
12781
|
|
|
11836
12782
|
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;
|
|
11837
|
-
var _excluded$
|
|
12783
|
+
var _excluded$24 = ["title", "titleId"];
|
|
11838
12784
|
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); }
|
|
11839
12785
|
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; }
|
|
11840
12786
|
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; }
|
|
11841
12787
|
var SvgLogoTreasuresColorNegative = function SvgLogoTreasuresColorNegative(_ref) {
|
|
11842
12788
|
var title = _ref.title,
|
|
11843
12789
|
titleId = _ref.titleId,
|
|
11844
|
-
props = _objectWithoutProperties$1y(_ref, _excluded$
|
|
12790
|
+
props = _objectWithoutProperties$1y(_ref, _excluded$24);
|
|
11845
12791
|
return /*#__PURE__*/createElement("svg", _extends$1z({
|
|
11846
12792
|
viewBox: "0 0 327 266",
|
|
11847
12793
|
fill: "none",
|
|
@@ -12068,7 +13014,7 @@ var logoSvgs = {
|
|
|
12068
13014
|
treasuresColorNegative: SvgLogoTreasuresColorNegative
|
|
12069
13015
|
};
|
|
12070
13016
|
|
|
12071
|
-
var _excluded$
|
|
13017
|
+
var _excluded$25 = ["children", "className", "decorative", "id", "name", "size", "title"];
|
|
12072
13018
|
/**
|
|
12073
13019
|
* The `Logo` component renders SVG-based logos and color variants that are
|
|
12074
13020
|
* commonly used by the New York Public Library.
|
|
@@ -12085,7 +13031,7 @@ var Logo$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
12085
13031
|
size = _props$size === void 0 ? "medium" : _props$size,
|
|
12086
13032
|
_props$title = props.title,
|
|
12087
13033
|
title = _props$title === void 0 ? name + " logo" : _props$title,
|
|
12088
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13034
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$25);
|
|
12089
13035
|
var styles = useStyleConfig("Logo", {
|
|
12090
13036
|
size: size
|
|
12091
13037
|
});
|
|
@@ -12186,7 +13132,7 @@ var link$1 = {
|
|
|
12186
13132
|
}]
|
|
12187
13133
|
};
|
|
12188
13134
|
|
|
12189
|
-
var _excluded$
|
|
13135
|
+
var _excluded$26 = ["className", "id"];
|
|
12190
13136
|
/**
|
|
12191
13137
|
* This `Footer` component renders the NYPL-branded footer elements such
|
|
12192
13138
|
* as navigational NYPL.org links, social media links, copyright, and
|
|
@@ -12196,7 +13142,7 @@ var Footer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
12196
13142
|
var className = _ref.className,
|
|
12197
13143
|
_ref$id = _ref.id,
|
|
12198
13144
|
id = _ref$id === void 0 ? "footer" : _ref$id,
|
|
12199
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
13145
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$26);
|
|
12200
13146
|
var styles = useMultiStyleConfig("Footer", {});
|
|
12201
13147
|
var nyplLinks = link$1.nyplLinks.map(function (links, index) {
|
|
12202
13148
|
return React__default.createElement(List$1, {
|
|
@@ -12265,11 +13211,11 @@ var Footer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (_ref, ref)
|
|
|
12265
13211
|
})));
|
|
12266
13212
|
}));
|
|
12267
13213
|
|
|
12268
|
-
var _excluded$
|
|
13214
|
+
var _excluded$27 = ["align", "className"];
|
|
12269
13215
|
var HorizontalRule$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
12270
13216
|
var align = props.align,
|
|
12271
13217
|
className = props.className,
|
|
12272
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13218
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$27);
|
|
12273
13219
|
var styles = useStyleConfig("HorizontalRule", {
|
|
12274
13220
|
align: align
|
|
12275
13221
|
});
|
|
@@ -12285,7 +13231,7 @@ var HorizontalRule$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
|
|
|
12285
13231
|
}, rest));
|
|
12286
13232
|
}));
|
|
12287
13233
|
|
|
12288
|
-
var _excluded$
|
|
13234
|
+
var _excluded$28 = ["className", "id", "target"];
|
|
12289
13235
|
/**
|
|
12290
13236
|
* SkipNavigation is a component that is used to provide a navigational list of
|
|
12291
13237
|
* links. The first link is used to skip to the main content of the page using
|
|
@@ -12297,7 +13243,7 @@ var SkipNavigation$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
|
|
|
12297
13243
|
id = props.id,
|
|
12298
13244
|
_props$target = props.target,
|
|
12299
13245
|
target = _props$target === void 0 ? "#mainContent" : _props$target,
|
|
12300
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
13246
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$28);
|
|
12301
13247
|
var styles = useStyleConfig("SkipNavigation");
|
|
12302
13248
|
return React__default.createElement(Box, Object.assign({
|
|
12303
13249
|
as: "nav",
|
|
@@ -13604,7 +14550,7 @@ var Header$1 = /*#__PURE__*/chakra(function (_ref) {
|
|
|
13604
14550
|
}))));
|
|
13605
14551
|
});
|
|
13606
14552
|
|
|
13607
|
-
var _excluded$
|
|
14553
|
+
var _excluded$29 = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
|
|
13608
14554
|
// Only used for internal purposes.
|
|
13609
14555
|
var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
|
|
13610
14556
|
var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
@@ -13620,7 +14566,7 @@ var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
13620
14566
|
} : _props$imageProps,
|
|
13621
14567
|
locationDetails = props.locationDetails,
|
|
13622
14568
|
subHeaderText = props.subHeaderText,
|
|
13623
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14569
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$29);
|
|
13624
14570
|
var styles = useMultiStyleConfig("Hero", {
|
|
13625
14571
|
variant: heroType
|
|
13626
14572
|
});
|
|
@@ -13709,7 +14655,7 @@ var Hero$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
13709
14655
|
}
|
|
13710
14656
|
});
|
|
13711
14657
|
|
|
13712
|
-
var _excluded$
|
|
14658
|
+
var _excluded$2a = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
|
|
13713
14659
|
_excluded2$6 = ["buttonText", "id", "modalProps"],
|
|
13714
14660
|
_excluded3$4 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
|
|
13715
14661
|
var BaseModal = /*#__PURE__*/chakra(function (_ref) {
|
|
@@ -13720,7 +14666,7 @@ var BaseModal = /*#__PURE__*/chakra(function (_ref) {
|
|
|
13720
14666
|
id = _ref.id,
|
|
13721
14667
|
isOpen = _ref.isOpen,
|
|
13722
14668
|
onClose = _ref.onClose,
|
|
13723
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
14669
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$2a);
|
|
13724
14670
|
var xlarge = "xl";
|
|
13725
14671
|
var fullSize = "full";
|
|
13726
14672
|
var _useNYPLBreakpoints = useNYPLBreakpoints(),
|
|
@@ -13801,7 +14747,7 @@ function useModal() {
|
|
|
13801
14747
|
};
|
|
13802
14748
|
}
|
|
13803
14749
|
|
|
13804
|
-
var _excluded$
|
|
14750
|
+
var _excluded$2b = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
|
|
13805
14751
|
/**
|
|
13806
14752
|
* A component that provides a navigational list of page items.
|
|
13807
14753
|
*/
|
|
@@ -13814,7 +14760,7 @@ var Pagination$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
13814
14760
|
initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
|
|
13815
14761
|
onPageChange = props.onPageChange,
|
|
13816
14762
|
pageCount = props.pageCount,
|
|
13817
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14763
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2b);
|
|
13818
14764
|
var refCurrentPage = useRef(currentPage);
|
|
13819
14765
|
var _useState = useState(initialPage),
|
|
13820
14766
|
selectedPage = _useState[0],
|
|
@@ -14004,7 +14950,7 @@ var Pagination$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
14004
14950
|
}, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
|
|
14005
14951
|
}));
|
|
14006
14952
|
|
|
14007
|
-
var _excluded$
|
|
14953
|
+
var _excluded$2c = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
|
|
14008
14954
|
/**
|
|
14009
14955
|
* A component that displays a progress status for any task that takes a long
|
|
14010
14956
|
* time to complete or consists of multiple steps. Examples include downloading,
|
|
@@ -14025,7 +14971,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
|
|
|
14025
14971
|
size = _props$size === void 0 ? "default" : _props$size,
|
|
14026
14972
|
_props$value = props.value,
|
|
14027
14973
|
value = _props$value === void 0 ? 0 : _props$value,
|
|
14028
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
14974
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2c);
|
|
14029
14975
|
var styles = useMultiStyleConfig("ProgressIndicator", {
|
|
14030
14976
|
darkMode: darkMode,
|
|
14031
14977
|
size: size
|
|
@@ -14084,7 +15030,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
|
|
|
14084
15030
|
}, rest), progressComponent(indicatorType));
|
|
14085
15031
|
}));
|
|
14086
15032
|
|
|
14087
|
-
var _excluded$
|
|
15033
|
+
var _excluded$2d = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
14088
15034
|
/**
|
|
14089
15035
|
* Component that renders Chakra's `Select` component along with an accessible
|
|
14090
15036
|
* `Label` and optional `HelperErrorText` component.
|
|
@@ -14117,7 +15063,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
14117
15063
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
14118
15064
|
_props$value = props.value,
|
|
14119
15065
|
value = _props$value === void 0 ? "" : _props$value,
|
|
14120
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15066
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2d);
|
|
14121
15067
|
var _useState = useState(0),
|
|
14122
15068
|
labelWidth = _useState[0],
|
|
14123
15069
|
setLabelWidth = _useState[1];
|
|
@@ -14199,7 +15145,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
14199
15145
|
}), children)));
|
|
14200
15146
|
}));
|
|
14201
15147
|
|
|
14202
|
-
var _excluded$
|
|
15148
|
+
var _excluded$2e = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
|
|
14203
15149
|
/**
|
|
14204
15150
|
* Renders a wrapper `form` element to be used with `Select` (optional),
|
|
14205
15151
|
* `Input`, and `Button` components together.
|
|
@@ -14227,7 +15173,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
14227
15173
|
selectProps = props.selectProps,
|
|
14228
15174
|
textInputElement = props.textInputElement,
|
|
14229
15175
|
textInputProps = props.textInputProps,
|
|
14230
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15176
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2e);
|
|
14231
15177
|
var styles = useMultiStyleConfig("SearchBar", {});
|
|
14232
15178
|
var stateProps = {
|
|
14233
15179
|
helperText: "",
|
|
@@ -14319,7 +15265,7 @@ var SearchBar$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
14319
15265
|
}, selectElem, textInputElem, buttonElem));
|
|
14320
15266
|
}));
|
|
14321
15267
|
|
|
14322
|
-
var _excluded$
|
|
15268
|
+
var _excluded$2f = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
|
|
14323
15269
|
/**
|
|
14324
15270
|
* The `SkeletonLoader` component renders a placeholder to be used while
|
|
14325
15271
|
* dynamic content is loading.
|
|
@@ -14345,7 +15291,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
|
|
|
14345
15291
|
_props$showImage = props.showImage,
|
|
14346
15292
|
showImage = _props$showImage === void 0 ? true : _props$showImage,
|
|
14347
15293
|
width = props.width,
|
|
14348
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15294
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2f);
|
|
14349
15295
|
var styles = useMultiStyleConfig("SkeletonLoader", {
|
|
14350
15296
|
isBordered: isBordered,
|
|
14351
15297
|
imageAspectRatio: imageAspectRatio,
|
|
@@ -14403,7 +15349,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (pr
|
|
|
14403
15349
|
})))));
|
|
14404
15350
|
}));
|
|
14405
15351
|
|
|
14406
|
-
var _excluded$
|
|
15352
|
+
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"];
|
|
14407
15353
|
/**
|
|
14408
15354
|
* The `Slider` component renders a singular value slider or a range slider
|
|
14409
15355
|
* with a min and max value. The value(s) can be updated through the slider
|
|
@@ -14431,6 +15377,7 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
14431
15377
|
min = _props$min === void 0 ? 0 : _props$min,
|
|
14432
15378
|
name = props.name,
|
|
14433
15379
|
_onChange = props.onChange,
|
|
15380
|
+
_onChangeEnd = props.onChangeEnd,
|
|
14434
15381
|
_props$showBoxes = props.showBoxes,
|
|
14435
15382
|
showBoxes = _props$showBoxes === void 0 ? true : _props$showBoxes,
|
|
14436
15383
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
@@ -14444,10 +15391,13 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
14444
15391
|
_props$step = props.step,
|
|
14445
15392
|
step = _props$step === void 0 ? 1 : _props$step,
|
|
14446
15393
|
value = props.value,
|
|
14447
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15394
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2g);
|
|
14448
15395
|
if (!id) {
|
|
14449
15396
|
console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
|
|
14450
15397
|
}
|
|
15398
|
+
if (_onChange && _onChangeEnd) {
|
|
15399
|
+
console.warn("NYPL Reservoir Slider: Both `onChange` and `onChangeEnd` props were passed.");
|
|
15400
|
+
}
|
|
14451
15401
|
// For the RangeSlider, if the defaultValue is not an array, then we set
|
|
14452
15402
|
// the defaultValue to an array with the min and max values.
|
|
14453
15403
|
var rangeSliderDefault = typeof defaultValue === "number" ? [min, max] : defaultValue;
|
|
@@ -14498,6 +15448,10 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
14498
15448
|
setCurrentValue(val);
|
|
14499
15449
|
_onChange && _onChange(val);
|
|
14500
15450
|
},
|
|
15451
|
+
onChangeEnd: function onChangeEnd(val) {
|
|
15452
|
+
setCurrentValue(val);
|
|
15453
|
+
_onChangeEnd && _onChangeEnd(val);
|
|
15454
|
+
},
|
|
14501
15455
|
step: step,
|
|
14502
15456
|
// Additional margins so slider thumbs don't overflow past the
|
|
14503
15457
|
// edge when the value boxes or min/max values are hidden.
|
|
@@ -14534,7 +15488,12 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
14534
15488
|
setCurrentValue(newValue);
|
|
14535
15489
|
// If the text input was updated directly,
|
|
14536
15490
|
// send the data back to the user.
|
|
14537
|
-
|
|
15491
|
+
if (_onChange) {
|
|
15492
|
+
_onChange && _onChange(newValue);
|
|
15493
|
+
}
|
|
15494
|
+
if (_onChangeEnd) {
|
|
15495
|
+
_onChangeEnd && _onChangeEnd(newValue);
|
|
15496
|
+
}
|
|
14538
15497
|
}
|
|
14539
15498
|
}, textInputSharedProps),
|
|
14540
15499
|
end: _extends({
|
|
@@ -14556,7 +15515,12 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
14556
15515
|
setCurrentValue(newValue);
|
|
14557
15516
|
// If the text input was updated directly,
|
|
14558
15517
|
// send the data back to the user.
|
|
14559
|
-
|
|
15518
|
+
if (_onChange) {
|
|
15519
|
+
_onChange && _onChange(newValue);
|
|
15520
|
+
}
|
|
15521
|
+
if (_onChangeEnd) {
|
|
15522
|
+
_onChangeEnd && _onChangeEnd(newValue);
|
|
15523
|
+
}
|
|
14560
15524
|
}
|
|
14561
15525
|
}, textInputSharedProps)
|
|
14562
15526
|
};
|
|
@@ -14635,7 +15599,7 @@ var Slider = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
14635
15599
|
}, max), showBoxes && getTextInput("end")));
|
|
14636
15600
|
}));
|
|
14637
15601
|
|
|
14638
|
-
var _excluded$
|
|
15602
|
+
var _excluded$2h = ["children", "className", "id", "level"];
|
|
14639
15603
|
/**
|
|
14640
15604
|
* The `StatusBadge` component is used to display a visual badge for three
|
|
14641
15605
|
* different status levels.
|
|
@@ -14646,7 +15610,7 @@ var StatusBadge$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
|
|
|
14646
15610
|
id = props.id,
|
|
14647
15611
|
_props$level = props.level,
|
|
14648
15612
|
level = _props$level === void 0 ? "low" : _props$level,
|
|
14649
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15613
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2h);
|
|
14650
15614
|
var styles = useStyleConfig("StatusBadge", {
|
|
14651
15615
|
variant: level
|
|
14652
15616
|
});
|
|
@@ -14661,7 +15625,7 @@ var StatusBadge$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
|
|
|
14661
15625
|
}, rest), children);
|
|
14662
15626
|
}));
|
|
14663
15627
|
|
|
14664
|
-
var _excluded$
|
|
15628
|
+
var _excluded$2i = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
|
|
14665
15629
|
/**
|
|
14666
15630
|
* Internal component used in the `StructuredContent` component
|
|
14667
15631
|
* that renders the DS `Image` component.
|
|
@@ -14711,7 +15675,7 @@ var StructuredContent$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
|
|
|
14711
15675
|
src: ""
|
|
14712
15676
|
} : _props$imageProps,
|
|
14713
15677
|
bodyContent = props.bodyContent,
|
|
14714
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15678
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2i);
|
|
14715
15679
|
var hasImage = imageProps.src || imageProps.component;
|
|
14716
15680
|
var hasFigureImage = imageProps.caption || imageProps.credit;
|
|
14717
15681
|
var styles = useMultiStyleConfig("StructuredContent", {
|
|
@@ -14844,7 +15808,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
|
|
|
14844
15808
|
};
|
|
14845
15809
|
};
|
|
14846
15810
|
|
|
14847
|
-
var _excluded$
|
|
15811
|
+
var _excluded$2j = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
|
|
14848
15812
|
/**
|
|
14849
15813
|
* An internal function used to update the hash in the URL.
|
|
14850
15814
|
* This function is only used when `useHash` is `true`.
|
|
@@ -14946,7 +15910,7 @@ var Tabs = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
14946
15910
|
tabsData = props.tabsData,
|
|
14947
15911
|
_props$useHash = props.useHash,
|
|
14948
15912
|
useHash = _props$useHash === void 0 ? false : _props$useHash,
|
|
14949
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15913
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2j);
|
|
14950
15914
|
var styles = useMultiStyleConfig("Tabs", {});
|
|
14951
15915
|
// Just an estimate of the tab width for the mobile carousel.
|
|
14952
15916
|
var initTabWidth = 65;
|
|
@@ -15026,13 +15990,13 @@ var Tabs = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
15026
15990
|
}, React__default.createElement(Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
|
|
15027
15991
|
}));
|
|
15028
15992
|
|
|
15029
|
-
var _excluded$
|
|
15993
|
+
var _excluded$2k = ["children", "className", "content", "id", "isDisabled", "shouldWrapChildren"];
|
|
15030
15994
|
var Tooltip$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
15031
15995
|
var children = props.children,
|
|
15032
15996
|
content = props.content,
|
|
15033
15997
|
isDisabled = props.isDisabled,
|
|
15034
15998
|
shouldWrapChildren = props.shouldWrapChildren,
|
|
15035
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
15999
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2k);
|
|
15036
16000
|
if (typeof content !== "string" && typeof content !== "number") {
|
|
15037
16001
|
React__default.Children.map(content, function (contentChild) {
|
|
15038
16002
|
if (contentChild.type !== Icon || contentChild.type !== Image) {
|
|
@@ -15157,7 +16121,7 @@ var TagSetFilter$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
15157
16121
|
}, "Clear Filters") : null);
|
|
15158
16122
|
});
|
|
15159
16123
|
|
|
15160
|
-
var _excluded$
|
|
16124
|
+
var _excluded$2l = ["className", "id", "isDismissible", "onClick", "tagSetData", "type"];
|
|
15161
16125
|
// Type guard so we can make sure we have a "filter" `TagSet` variant.
|
|
15162
16126
|
function isFilterType(type) {
|
|
15163
16127
|
return type === "filter";
|
|
@@ -15201,7 +16165,7 @@ var TagSet$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
15201
16165
|
tagSetData = _props$tagSetData === void 0 ? [] : _props$tagSetData,
|
|
15202
16166
|
_props$type = props.type,
|
|
15203
16167
|
type = _props$type === void 0 ? "filter" : _props$type,
|
|
15204
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16168
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2l);
|
|
15205
16169
|
var styles = useStyleConfig("TagSet", {});
|
|
15206
16170
|
if (!isFilterType(type)) {
|
|
15207
16171
|
if (isDismissible) {
|
|
@@ -15229,7 +16193,7 @@ var TagSet$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
15229
16193
|
}));
|
|
15230
16194
|
}));
|
|
15231
16195
|
|
|
15232
|
-
var _excluded$
|
|
16196
|
+
var _excluded$2m = ["aboveHeader", "breakout", "contentId", "contentBottom", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
|
|
15233
16197
|
/**
|
|
15234
16198
|
* The main top-level parent component that wraps all template-related
|
|
15235
16199
|
* components.
|
|
@@ -15452,7 +16416,7 @@ var TemplateAppContainer = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
|
|
|
15452
16416
|
renderHeaderElement = _props$renderHeaderEl === void 0 ? true : _props$renderHeaderEl,
|
|
15453
16417
|
_props$renderSkipNavi = props.renderSkipNavigation,
|
|
15454
16418
|
renderSkipNavigation = _props$renderSkipNavi === void 0 ? false : _props$renderSkipNavi,
|
|
15455
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16419
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2m);
|
|
15456
16420
|
var aboveHeaderElem = aboveHeader && React__default.createElement(TemplateAboveHeader, null, aboveHeader);
|
|
15457
16421
|
var contentTopElem = contentTop && React__default.createElement(TemplateContentTop, null, contentTop);
|
|
15458
16422
|
var contentPrimaryElem = contentPrimary && React__default.createElement(TemplateContentPrimary$1, null, contentPrimary);
|
|
@@ -15470,7 +16434,7 @@ var TemplateAppContainer = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function
|
|
|
15470
16434
|
}, footer)));
|
|
15471
16435
|
}));
|
|
15472
16436
|
|
|
15473
|
-
var _excluded$
|
|
16437
|
+
var _excluded$2n = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
|
|
15474
16438
|
var onChangeDefault = function onChangeDefault() {
|
|
15475
16439
|
return;
|
|
15476
16440
|
};
|
|
@@ -15496,7 +16460,7 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
15496
16460
|
onChange = _props$onChange === void 0 ? onChangeDefault : _props$onChange,
|
|
15497
16461
|
_props$size = props.size,
|
|
15498
16462
|
size = _props$size === void 0 ? "default" : _props$size,
|
|
15499
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16463
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2n);
|
|
15500
16464
|
var styles = useMultiStyleConfig("Toggle", {
|
|
15501
16465
|
isDisabled: isDisabled,
|
|
15502
16466
|
size: size
|
|
@@ -15542,6 +16506,157 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
15542
16506
|
}), labelText)));
|
|
15543
16507
|
}));
|
|
15544
16508
|
|
|
16509
|
+
/**
|
|
16510
|
+
* The useMultiSelect hook returns an object containing all the functions and state needed to handle the selectedItems of a `MultiSelect` component.
|
|
16511
|
+
* It can be used in conjunction with one single `MultiSelect` component as well as a group of `MultiSelect`s in the `MultiSelectGroup` component.
|
|
16512
|
+
* The returned object includes the functions onChange, onClear, onMixedStateChange for handling any changes to the selection of items
|
|
16513
|
+
* and the current state of the selection: selectedItems.
|
|
16514
|
+
*/
|
|
16515
|
+
function useMultiSelect(initialState) {
|
|
16516
|
+
var _useState = useState(initialState !== undefined ? initialState : {}),
|
|
16517
|
+
selectedItems = _useState[0],
|
|
16518
|
+
_setSelectedItems = _useState[1];
|
|
16519
|
+
/**
|
|
16520
|
+
* 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.
|
|
16521
|
+
* It accepts two arguments - the id of the checkbox option and the id of the MultiSelect component.
|
|
16522
|
+
*/
|
|
16523
|
+
var handleChange = function handleChange(itemId, multiSelectId) {
|
|
16524
|
+
var _extends2;
|
|
16525
|
+
var itemIds;
|
|
16526
|
+
// Check if the multiSelect already exists in the state.
|
|
16527
|
+
if (selectedItems.hasOwnProperty(multiSelectId)) {
|
|
16528
|
+
// Make a copy of the existing selected items.
|
|
16529
|
+
itemIds = selectedItems[multiSelectId].items.slice();
|
|
16530
|
+
// If itemId is in the selectedItems, remove it from the array.
|
|
16531
|
+
if (selectedItems[multiSelectId].items.indexOf(itemId) > -1) {
|
|
16532
|
+
itemIds = itemIds.filter(function (id) {
|
|
16533
|
+
return id !== itemId;
|
|
16534
|
+
});
|
|
16535
|
+
} else {
|
|
16536
|
+
// Add it to the array, but modify the copy, not the original.
|
|
16537
|
+
itemIds.push(itemId);
|
|
16538
|
+
}
|
|
16539
|
+
// If there were no items from the multiSelect in the selectedItems before
|
|
16540
|
+
} else {
|
|
16541
|
+
// Add the itemId to the itemsIds
|
|
16542
|
+
itemIds = [];
|
|
16543
|
+
itemIds.push(itemId);
|
|
16544
|
+
}
|
|
16545
|
+
// Update selectedItems on state to reflect the new selection
|
|
16546
|
+
_setSelectedItems(_extends({}, selectedItems, (_extends2 = {}, _extends2[multiSelectId] = {
|
|
16547
|
+
items: itemIds
|
|
16548
|
+
}, _extends2)));
|
|
16549
|
+
};
|
|
16550
|
+
/**
|
|
16551
|
+
* handleMixedStateChange is used only for the "dialog" variant. It handles the state for checkbox options with child options.
|
|
16552
|
+
* It accepts three arguments - the id of the checkbox option (parentId), the id of the MultiSelect component and the items array of the MultiSelect.
|
|
16553
|
+
*/
|
|
16554
|
+
var handleMixedStateChange = function handleMixedStateChange(parentId, multiSelectId, items) {
|
|
16555
|
+
var _extends3;
|
|
16556
|
+
// Build an array of child items.
|
|
16557
|
+
var childItems = items.filter(function (item) {
|
|
16558
|
+
return item.id === parentId;
|
|
16559
|
+
})[0].children.map(function (child) {
|
|
16560
|
+
return child.id;
|
|
16561
|
+
});
|
|
16562
|
+
var newItems;
|
|
16563
|
+
// If some items of the multiSelect are already selected
|
|
16564
|
+
if (selectedItems[multiSelectId] !== undefined) {
|
|
16565
|
+
// If all children of the parent are already selected
|
|
16566
|
+
if (childItems.every(function (childItem) {
|
|
16567
|
+
return selectedItems[multiSelectId].items.includes(childItem);
|
|
16568
|
+
})) {
|
|
16569
|
+
// Remove all children from the selectedItems array (unselect all child checkbox options)
|
|
16570
|
+
newItems = selectedItems[multiSelectId].items.filter(function (stateItem) {
|
|
16571
|
+
return !childItems.includes(stateItem);
|
|
16572
|
+
});
|
|
16573
|
+
} else {
|
|
16574
|
+
// Else add missing childItems.
|
|
16575
|
+
newItems = [].concat(childItems.filter(function (childItem) {
|
|
16576
|
+
return !selectedItems[multiSelectId].items.includes(childItem);
|
|
16577
|
+
}), selectedItems[multiSelectId].items);
|
|
16578
|
+
}
|
|
16579
|
+
// If no items of this multiSelect were selected before
|
|
16580
|
+
} else {
|
|
16581
|
+
newItems = childItems;
|
|
16582
|
+
}
|
|
16583
|
+
// Update selectedItems on state to reflect the new selection
|
|
16584
|
+
_setSelectedItems(_extends({}, selectedItems, (_extends3 = {}, _extends3[multiSelectId] = {
|
|
16585
|
+
items: newItems
|
|
16586
|
+
}, _extends3)));
|
|
16587
|
+
};
|
|
16588
|
+
/**
|
|
16589
|
+
* handleClear is used for both MultiSelect variants. It will remove all selected items of specific MultiSelect component from the selectedItems array.
|
|
16590
|
+
* It accepts one argument - the id of the MultiSelect component.
|
|
16591
|
+
*/
|
|
16592
|
+
var handleClear = function handleClear(multiSelectId) {
|
|
16593
|
+
var newSelectedItems = {};
|
|
16594
|
+
for (var _i = 0, _Object$keys = Object.keys(selectedItems); _i < _Object$keys.length; _i++) {
|
|
16595
|
+
var key = _Object$keys[_i];
|
|
16596
|
+
if (key !== multiSelectId) {
|
|
16597
|
+
newSelectedItems[key] = selectedItems[key];
|
|
16598
|
+
}
|
|
16599
|
+
}
|
|
16600
|
+
_setSelectedItems(newSelectedItems);
|
|
16601
|
+
};
|
|
16602
|
+
/**
|
|
16603
|
+
* handleClearAll is used to clear all MultiSelects of a group. It will remove all selected items.
|
|
16604
|
+
*/
|
|
16605
|
+
var handleClearAll = function handleClearAll() {
|
|
16606
|
+
return _setSelectedItems({});
|
|
16607
|
+
};
|
|
16608
|
+
return {
|
|
16609
|
+
selectedItems: selectedItems,
|
|
16610
|
+
setSelectedItems: function setSelectedItems(newState) {
|
|
16611
|
+
return _setSelectedItems(newState);
|
|
16612
|
+
},
|
|
16613
|
+
onChange: handleChange,
|
|
16614
|
+
onMixedStateChange: handleMixedStateChange,
|
|
16615
|
+
onClear: handleClear,
|
|
16616
|
+
onClearAll: handleClearAll
|
|
16617
|
+
};
|
|
16618
|
+
}
|
|
16619
|
+
|
|
16620
|
+
/**
|
|
16621
|
+
* The `useFilterBar` hook returns an object containing all the functions and state needed to control a FilterBar component and its child components.
|
|
16622
|
+
* The returned object includes the functions `onChange`, `onMixedStateChange`, `onClear` and `onClearAll` for handling any changes to the selectedItems object,
|
|
16623
|
+
* a `setSelectedItems` function that allows to set an initial selectedItems state
|
|
16624
|
+
* and the current state of the selection: `selectedItems`.
|
|
16625
|
+
* 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`,
|
|
16626
|
+
* an `onToggle` function to change the module state or alternatively `onOpen` and `onClose` functions.
|
|
16627
|
+
*/
|
|
16628
|
+
function useFilterBar(initialState) {
|
|
16629
|
+
var _useState = useState(false),
|
|
16630
|
+
isModalOpen = _useState[0],
|
|
16631
|
+
setIsModalOpen = _useState[1];
|
|
16632
|
+
var _useMultiSelect = useMultiSelect(initialState),
|
|
16633
|
+
selectedItems = _useMultiSelect.selectedItems,
|
|
16634
|
+
setSelectedItems = _useMultiSelect.setSelectedItems,
|
|
16635
|
+
onChange = _useMultiSelect.onChange,
|
|
16636
|
+
onMixedStateChange = _useMultiSelect.onMixedStateChange,
|
|
16637
|
+
onClear = _useMultiSelect.onClear,
|
|
16638
|
+
onClearAll = _useMultiSelect.onClearAll;
|
|
16639
|
+
var handleToggle = function handleToggle() {
|
|
16640
|
+
return setIsModalOpen(!isModalOpen);
|
|
16641
|
+
};
|
|
16642
|
+
return {
|
|
16643
|
+
selectedItems: selectedItems,
|
|
16644
|
+
setSelectedItems: setSelectedItems,
|
|
16645
|
+
isModalOpen: isModalOpen,
|
|
16646
|
+
onOpen: function onOpen() {
|
|
16647
|
+
return setIsModalOpen(true);
|
|
16648
|
+
},
|
|
16649
|
+
onClose: function onClose() {
|
|
16650
|
+
return setIsModalOpen(false);
|
|
16651
|
+
},
|
|
16652
|
+
onToggle: handleToggle,
|
|
16653
|
+
onChange: onChange,
|
|
16654
|
+
onMixedStateChange: onMixedStateChange,
|
|
16655
|
+
onClear: onClear,
|
|
16656
|
+
onClearAll: onClearAll
|
|
16657
|
+
};
|
|
16658
|
+
}
|
|
16659
|
+
|
|
15545
16660
|
/**
|
|
15546
16661
|
* A custom hook that returns the Chakra-based NYPL theme object. This must be
|
|
15547
16662
|
* used inside a component that is wrapped in the `DSProvider` component, so
|
|
@@ -15632,7 +16747,7 @@ function useNYPLTheme() {
|
|
|
15632
16747
|
};
|
|
15633
16748
|
}
|
|
15634
16749
|
|
|
15635
|
-
var _excluded$
|
|
16750
|
+
var _excluded$2o = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
|
|
15636
16751
|
var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
15637
16752
|
var aspectRatio = props.aspectRatio,
|
|
15638
16753
|
className = props.className,
|
|
@@ -15646,7 +16761,7 @@ var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
|
|
|
15646
16761
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
15647
16762
|
videoId = props.videoId,
|
|
15648
16763
|
videoType = props.videoType,
|
|
15649
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
16764
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$2o);
|
|
15650
16765
|
var iframeTitleFinal = videoType === "vimeo" ? iframeTitle || "Vimeo video player" : iframeTitle || "YouTube video player";
|
|
15651
16766
|
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";
|
|
15652
16767
|
var iFrameTitleEmbedCode = iframeTitle ? "" + iframeTitle : "Video player";
|
|
@@ -15711,5 +16826,5 @@ var VideoPlayer$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
|
|
|
15711
16826
|
}, embedElement)));
|
|
15712
16827
|
}));
|
|
15713
16828
|
|
|
15714
|
-
export { Accordion, AlphabetFilter, AudioPlayer, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, ColorCard, DSProvider, DatePicker, FeedbackBox$1 as FeedbackBox, Fieldset, Footer$1 as Footer, Form, FormField, FormRow, Header$1 as Header, Heading, HelperErrorText, Hero$1 as Hero, HorizontalRule$1 as HorizontalRule, Icon, Image, Label, Link, List$1 as List, Logo$1 as Logo, ModalTrigger, Notification$1 as Notification, Pagination$1 as Pagination, ProgressIndicator$1 as ProgressIndicator, Radio$1 as Radio, RadioGroup$1 as RadioGroup, SearchBar$1 as SearchBar, Select$1 as Select, SimpleGrid, SkeletonLoader$1 as SkeletonLoader, SkipNavigation$1 as SkipNavigation, Slider, StatusBadge$1 as StatusBadge, StructuredContent$1 as StructuredContent, StyledList$1 as StyledList, Table, Tabs, TagSet$1 as TagSet, Template$1 as Template, TemplateAboveHeader, TemplateAppContainer, TemplateBreakout$1 as TemplateBreakout, TemplateContent$1 as TemplateContent, TemplateContentPrimary$1 as TemplateContentPrimary, TemplateContentSidebar$1 as TemplateContentSidebar, TemplateContentTop, TemplateFooter, TemplateHeader, Text, TextInput, Toggle$2 as Toggle, Tooltip$1 as Tooltip, VideoPlayer$1 as VideoPlayer, useCarouselStyles, useFeedbackBox, useModal, useNYPLBreakpoints, useNYPLTheme, useWindowSize };
|
|
16829
|
+
export { Accordion, AlphabetFilter, AudioPlayer, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, ColorCard, DSProvider, DatePicker, FeedbackBox$1 as FeedbackBox, Fieldset, FilterBar$1 as FilterBar, Footer$1 as Footer, Form, FormField, FormRow, Header$1 as Header, Heading, HelperErrorText, Hero$1 as Hero, HorizontalRule$1 as HorizontalRule, Icon, Image, Label, Link, List$1 as List, Logo$1 as Logo, ModalTrigger, MultiSelect$1 as MultiSelect, MultiSelectGroup, Notification$1 as Notification, Pagination$1 as Pagination, ProgressIndicator$1 as ProgressIndicator, Radio$1 as Radio, RadioGroup$1 as RadioGroup, SearchBar$1 as SearchBar, Select$1 as Select, SimpleGrid, SkeletonLoader$1 as SkeletonLoader, SkipNavigation$1 as SkipNavigation, Slider, StatusBadge$1 as StatusBadge, StructuredContent$1 as StructuredContent, StyledList$1 as StyledList, Table, Tabs, TagSet$1 as TagSet, Template$1 as Template, TemplateAboveHeader, TemplateAppContainer, TemplateBreakout$1 as TemplateBreakout, TemplateContent$1 as TemplateContent, TemplateContentPrimary$1 as TemplateContentPrimary, TemplateContentSidebar$1 as TemplateContentSidebar, TemplateContentTop, TemplateFooter, TemplateHeader, Text, TextInput, Toggle$2 as Toggle, Tooltip$1 as Tooltip, VideoPlayer$1 as VideoPlayer, useCarouselStyles, useFeedbackBox, useFilterBar, useModal, useMultiSelect, useNYPLBreakpoints, useNYPLTheme, useWindowSize };
|
|
15715
16830
|
//# sourceMappingURL=design-system-react-components.esm.js.map
|