@nypl/design-system-react-components 0.27.0 → 0.28.0
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/CHANGELOG.md +29 -0
- package/dist/components/Accordion/Accordion.d.ts +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +1 -5
- package/dist/components/Button/Button.d.ts +2 -10
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +22 -0
- package/dist/components/Card/Card.d.ts +2 -2
- package/dist/components/Checkbox/Checkbox.d.ts +10 -8
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/dist/components/DatePicker/DatePicker.d.ts +1 -1
- package/dist/components/Form/Form.d.ts +2 -2
- package/dist/components/Grid/SimpleGrid.d.ts +6 -3
- package/dist/components/Heading/Heading.d.ts +2 -5
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +1 -5
- package/dist/components/Hero/Hero.d.ts +13 -9
- package/dist/components/Icons/Icon.d.ts +6 -5
- package/dist/components/Icons/IconSvgs.d.ts +21 -21
- package/dist/components/Image/Image.d.ts +8 -5
- package/dist/components/Link/Link.d.ts +1 -9
- package/dist/components/List/List.d.ts +7 -11
- package/dist/components/Logo/Logo.d.ts +2 -5
- package/dist/components/Logo/LogoSvgs.d.ts +39 -39
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +2 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +1 -1
- package/dist/components/SearchBar/SearchBar.d.ts +3 -2
- package/dist/components/Select/Select.d.ts +2 -5
- package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -4
- package/dist/components/SkipNavigation/SkipNavigation.d.ts +17 -0
- package/dist/components/StatusBadge/StatusBadge.d.ts +2 -3
- package/dist/components/StructuredContent/StructuredContent.d.ts +2 -2
- package/dist/components/Table/Table.d.ts +1 -1
- package/dist/components/Template/Template.d.ts +2 -0
- package/dist/components/Text/Text.d.ts +1 -1
- package/dist/components/TextInput/TextInput.d.ts +21 -9
- package/dist/components/Toggle/Toggle.d.ts +1 -5
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +2 -1
- package/dist/design-system-react-components.cjs.development.js +856 -1155
- 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 +858 -1220
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/helpers/types.d.ts +1 -0
- package/dist/index.d.ts +26 -47
- package/dist/theme/components/buttonGroup.d.ts +11 -0
- package/dist/theme/components/card.d.ts +104 -8
- package/dist/theme/components/componentWrapper.d.ts +4 -3
- package/dist/theme/components/customTable.d.ts +11 -14
- package/dist/theme/components/fieldset.d.ts +4 -3
- package/dist/theme/components/helperErrorText.d.ts +4 -3
- package/dist/theme/components/hero.d.ts +1 -1
- package/dist/theme/components/horizontalRule.d.ts +4 -3
- package/dist/theme/components/icon.d.ts +47743 -1
- package/dist/theme/components/image.d.ts +563 -10
- package/dist/theme/components/label.d.ts +4 -3
- package/dist/theme/components/list.d.ts +6 -7
- package/dist/theme/components/logo.d.ts +474 -1
- package/dist/theme/components/notification.d.ts +20 -16
- package/dist/theme/components/progressIndicator.d.ts +6 -4
- package/dist/theme/components/select.d.ts +4 -4
- package/dist/theme/components/skeletonLoader.d.ts +14 -10
- package/dist/theme/components/skipNavigation.d.ts +22 -0
- package/dist/theme/components/slider.d.ts +7 -6
- package/dist/theme/components/structuredContent.d.ts +10 -9
- package/dist/theme/components/text.d.ts +7 -1
- package/dist/theme/components/toggle.d.ts +6 -4
- package/dist/theme/provider.d.ts +2 -4
- package/dist/utils/componentCategories.d.ts +1 -1
- package/dist/utils/interfaces.d.ts +5 -0
- package/dist/utils/utils.d.ts +2 -18
- package/package.json +2 -2
- package/src/__tests__/setup.ts +3 -3
- package/src/__tests__/utils/utils.test.ts +1 -23
- package/src/components/AccessibilityGuide/SkipNavigation.stories.mdx +22 -14
- package/src/components/Accordion/Accordion.stories.mdx +43 -44
- package/src/components/Accordion/Accordion.test.tsx +5 -13
- package/src/components/Accordion/Accordion.tsx +14 -18
- package/src/components/Accordion/__snapshots__/Accordion.test.tsx.snap +6 -6
- package/src/components/Autosuggest/Autosuggest.stories.mdx +1 -1
- package/src/components/Autosuggest/Autosuggest.stories.tsx +23 -25
- package/src/components/Breadcrumbs/Breadcrumbs.stories.mdx +21 -37
- package/src/components/Breadcrumbs/Breadcrumbs.test.tsx +4 -17
- package/src/components/Breadcrumbs/Breadcrumbs.tsx +18 -21
- package/src/components/Breadcrumbs/__snapshots__/Breadcrumbs.test.tsx.snap +1 -100
- package/src/components/Button/Button.stories.mdx +89 -126
- package/src/components/Button/Button.test.tsx +16 -30
- package/src/components/Button/Button.tsx +14 -20
- package/src/components/ButtonGroup/ButtonGroup.stories.mdx +147 -0
- package/src/components/ButtonGroup/ButtonGroup.test.tsx +141 -0
- package/src/components/ButtonGroup/ButtonGroup.tsx +99 -0
- package/src/components/ButtonGroup/__snapshots__/ButtonGroup.test.tsx.snap +117 -0
- package/src/components/Card/Card.stories.mdx +143 -177
- package/src/components/Card/Card.test.tsx +36 -97
- package/src/components/Card/Card.tsx +78 -74
- package/src/components/Chakra/Box.stories.mdx +2 -6
- package/src/components/Chakra/Center.stories.mdx +5 -23
- package/src/components/Chakra/Flex.stories.mdx +4 -6
- package/src/components/Chakra/Stack.stories.mdx +9 -10
- package/src/components/Checkbox/Checkbox.stories.mdx +1 -1
- package/src/components/Checkbox/Checkbox.test.tsx +2 -2
- package/src/components/Checkbox/Checkbox.tsx +20 -13
- package/src/components/CheckboxGroup/CheckboxGroup.stories.mdx +6 -17
- package/src/components/CheckboxGroup/CheckboxGroup.test.tsx +1 -7
- package/src/components/CheckboxGroup/CheckboxGroup.tsx +33 -29
- package/src/components/CheckboxGroup/__snapshots__/CheckboxGroup.test.tsx.snap +0 -11
- package/src/components/ComponentWrapper/ComponentWrapper.tsx +3 -10
- package/src/components/DatePicker/DatePicker.stories.mdx +23 -37
- package/src/components/DatePicker/DatePicker.test.tsx +21 -19
- package/src/components/DatePicker/DatePicker.tsx +57 -49
- package/src/components/Form/Form.stories.mdx +46 -31
- package/src/components/Form/Form.test.tsx +1 -18
- package/src/components/Form/Form.tsx +7 -7
- package/src/components/Grid/SimpleGrid.stories.mdx +73 -49
- package/src/components/Grid/SimpleGrid.test.tsx +7 -9
- package/src/components/Grid/SimpleGrid.tsx +14 -11
- package/src/components/Heading/Heading.stories.mdx +27 -72
- package/src/components/Heading/Heading.test.tsx +18 -44
- package/src/components/Heading/Heading.tsx +7 -10
- package/src/components/HelperErrorText/HelperErrorText.stories.mdx +1 -3
- package/src/components/HelperErrorText/HelperErrorText.tsx +1 -5
- package/src/components/Hero/Hero.stories.mdx +219 -216
- package/src/components/Hero/Hero.test.tsx +107 -223
- package/src/components/Hero/Hero.tsx +63 -61
- package/src/components/Icons/Icon.stories.mdx +172 -118
- package/src/components/Icons/Icon.test.tsx +8 -16
- package/src/components/Icons/Icon.tsx +75 -29
- package/src/components/Icons/IconSvgs.tsx +42 -42
- package/src/components/Image/Image.stories.mdx +45 -132
- package/src/components/Image/Image.test.tsx +16 -31
- package/src/components/Image/Image.tsx +28 -12
- package/src/components/Link/Link.stories.mdx +30 -80
- package/src/components/Link/Link.test.tsx +25 -53
- package/src/components/Link/Link.tsx +43 -56
- package/src/components/Link/__snapshots__/Link.test.tsx.snap +1 -2
- package/src/components/List/List.stories.mdx +20 -31
- package/src/components/List/List.test.tsx +24 -43
- package/src/components/List/List.tsx +25 -36
- package/src/components/Logo/Logo.stories.mdx +94 -50
- package/src/components/Logo/Logo.test.tsx +10 -19
- package/src/components/Logo/Logo.tsx +50 -17
- package/src/components/Logo/LogoSvgs.tsx +78 -78
- package/src/components/Logo/__snapshots__/Logo.test.tsx.snap +4 -4
- package/src/components/Modal/Modal.stories.mdx +8 -9
- package/src/components/Modal/Modal.test.tsx +5 -10
- package/src/components/Modal/Modal.tsx +1 -1
- package/src/components/Notification/Notification.stories.mdx +10 -28
- package/src/components/Notification/Notification.test.tsx +9 -12
- package/src/components/Notification/Notification.tsx +34 -37
- package/src/components/Pagination/Pagination.stories.mdx +2 -2
- package/src/components/Pagination/Pagination.tsx +15 -10
- package/src/components/ProgressIndicator/ProgressIndicator.stories.mdx +27 -53
- package/src/components/ProgressIndicator/ProgressIndicator.test.tsx +9 -10
- package/src/components/ProgressIndicator/ProgressIndicator.tsx +17 -21
- package/src/components/ProgressIndicator/__snapshots__/ProgressIndicator.test.tsx.snap +0 -10
- package/src/components/Radio/Radio.stories.mdx +1 -1
- package/src/components/Radio/Radio.tsx +9 -6
- package/src/components/RadioGroup/RadioGroup.stories.mdx +15 -16
- package/src/components/RadioGroup/RadioGroup.test.tsx +2 -8
- package/src/components/RadioGroup/RadioGroup.tsx +28 -24
- package/src/components/SearchBar/SearchBar.stories.mdx +1 -1
- package/src/components/SearchBar/SearchBar.test.tsx +1 -1
- package/src/components/SearchBar/SearchBar.tsx +14 -22
- package/src/components/SearchBar/__snapshots__/SearchBar.test.tsx.snap +0 -12
- package/src/components/Select/Select.stories.mdx +8 -23
- package/src/components/Select/Select.test.tsx +6 -7
- package/src/components/Select/Select.tsx +13 -26
- package/src/components/SkeletonLoader/SkeletonLoader.stories.mdx +17 -56
- package/src/components/SkeletonLoader/SkeletonLoader.test.tsx +7 -21
- package/src/components/SkeletonLoader/SkeletonLoader.tsx +9 -8
- package/src/components/SkeletonLoader/__snapshots__/SkeletonLoader.test.tsx.snap +33 -33
- package/src/components/SkipNavigation/SkipNavigation.stories.mdx +90 -0
- package/src/components/SkipNavigation/SkipNavigation.test.tsx +63 -0
- package/src/components/SkipNavigation/SkipNavigation.tsx +51 -0
- package/src/components/SkipNavigation/__snapshots__/SkipNavigation.test.tsx.snap +130 -0
- package/src/components/Slider/Slider.stories.mdx +19 -53
- package/src/components/Slider/Slider.test.tsx +2 -2
- package/src/components/Slider/Slider.tsx +10 -12
- package/src/components/Slider/__snapshots__/Slider.test.tsx.snap +2 -9
- package/src/components/StatusBadge/StatusBadge.stories.mdx +6 -21
- package/src/components/StatusBadge/StatusBadge.test.tsx +2 -3
- package/src/components/StatusBadge/StatusBadge.tsx +3 -10
- package/src/components/StructuredContent/StructuredContent.stories.mdx +30 -58
- package/src/components/StructuredContent/StructuredContent.test.tsx +42 -44
- package/src/components/StructuredContent/StructuredContent.tsx +9 -18
- package/src/components/StyleGuide/Bidirectionality.stories.mdx +9 -23
- package/src/components/StyleGuide/Buttons.stories.mdx +62 -62
- package/src/components/StyleGuide/ColorCard.tsx +2 -4
- package/src/components/StyleGuide/Colors.stories.mdx +7 -8
- package/src/components/StyleGuide/DesignTokens.stories.mdx +5 -7
- package/src/components/StyleGuide/Forms.stories.mdx +0 -1
- package/src/components/StyleGuide/Iconography.stories.mdx +59 -77
- package/src/components/StyleGuide/Spacing.stories.mdx +0 -1
- package/src/components/StyleGuide/Typography.stories.mdx +15 -18
- package/src/components/Table/Table.stories.mdx +85 -1
- package/src/components/Table/Table.test.tsx +57 -1
- package/src/components/Table/Table.tsx +7 -4
- package/src/components/Table/__snapshots__/Table.test.tsx.snap +121 -0
- package/src/components/Tabs/Tabs.stories.mdx +1 -1
- package/src/components/Tabs/Tabs.test.tsx +2 -2
- package/src/components/Tabs/Tabs.tsx +26 -27
- package/src/components/Template/Template.stories.mdx +49 -54
- package/src/components/Template/Template.tsx +9 -3
- package/src/components/Text/Text.stories.mdx +5 -11
- package/src/components/Text/Text.test.tsx +3 -6
- package/src/components/Text/Text.tsx +3 -5
- package/src/components/TextInput/TextInput.stories.mdx +10 -22
- package/src/components/TextInput/TextInput.test.tsx +32 -62
- package/src/components/TextInput/TextInput.tsx +61 -30
- package/src/components/TextInput/__snapshots__/TextInput.test.tsx.snap +1 -0
- package/src/components/Toggle/Toggle.stories.mdx +5 -16
- package/src/components/Toggle/Toggle.test.tsx +2 -3
- package/src/components/Toggle/Toggle.tsx +9 -10
- package/src/components/VideoPlayer/VideoPlayer.stories.mdx +13 -29
- package/src/components/VideoPlayer/VideoPlayer.test.tsx +18 -23
- package/src/components/VideoPlayer/VideoPlayer.tsx +13 -10
- package/src/docs/Chakra.stories.mdx +14 -11
- package/src/docs/Welcome.stories.mdx +23 -43
- package/src/helpers/types.ts +1 -0
- package/src/hooks/tests/useNYPLTheme.test.tsx +1 -1
- package/src/hooks/useNYPLTheme.stories.mdx +3 -6
- package/src/index.ts +51 -45
- package/src/theme/components/buttonGroup.ts +10 -0
- package/src/theme/components/card.ts +50 -15
- package/src/theme/components/componentWrapper.ts +5 -1
- package/src/theme/components/customTable.ts +8 -2
- package/src/theme/components/fieldset.ts +5 -1
- package/src/theme/components/helperErrorText.ts +5 -1
- package/src/theme/components/hero.ts +2 -2
- package/src/theme/components/horizontalRule.ts +5 -1
- package/src/theme/components/icon.ts +7 -1
- package/src/theme/components/image.ts +14 -3
- package/src/theme/components/label.ts +5 -1
- package/src/theme/components/list.ts +8 -2
- package/src/theme/components/logo.ts +5 -1
- package/src/theme/components/notification.ts +38 -14
- package/src/theme/components/progressIndicator.ts +10 -5
- package/src/theme/components/select.ts +5 -2
- package/src/theme/components/skeletonLoader.ts +8 -2
- package/src/theme/components/skipNavigation.ts +26 -0
- package/src/theme/components/slider.ts +13 -1
- package/src/theme/components/structuredContent.ts +11 -1
- package/src/theme/components/text.ts +12 -5
- package/src/theme/components/toggle.ts +9 -3
- package/src/theme/index.ts +4 -0
- package/src/theme/provider.tsx +1 -1
- package/src/utils/componentCategories.ts +13 -5
- package/src/utils/interfaces.ts +5 -0
- package/src/utils/utils.ts +2 -32
- package/dist/components/Accordion/AccordionTypes.d.ts +0 -5
- package/dist/components/Breadcrumbs/BreadcrumbsTypes.d.ts +0 -8
- package/dist/components/Button/ButtonTypes.d.ts +0 -8
- package/dist/components/DatePicker/DatePickerTypes.d.ts +0 -5
- package/dist/components/Form/FormTypes.d.ts +0 -2
- package/dist/components/Grid/GridTypes.d.ts +0 -9
- package/dist/components/Heading/HeadingTypes.d.ts +0 -14
- package/dist/components/Hero/HeroTypes.d.ts +0 -12
- package/dist/components/Icons/IconTypes.d.ts +0 -77
- package/dist/components/Image/ImageTypes.d.ts +0 -22
- package/dist/components/Link/LinkTypes.d.ts +0 -8
- package/dist/components/List/ListTypes.d.ts +0 -5
- package/dist/components/Logo/LogoTypes.d.ts +0 -54
- package/dist/components/Notification/NotificationTypes.d.ts +0 -5
- package/dist/components/ProgressIndicator/ProgressIndicatorTypes.d.ts +0 -8
- package/dist/components/Select/SelectTypes.d.ts +0 -8
- package/dist/components/SkeletonLoader/SkeletonLoaderTypes.d.ts +0 -5
- package/dist/components/StatusBadge/StatusBadgeTypes.d.ts +0 -5
- package/dist/components/StructuredContent/StructuredContentTypes.d.ts +0 -5
- package/dist/components/Text/TextTypes.d.ts +0 -6
- package/dist/components/TextInput/TextInputTypes.d.ts +0 -25
- package/dist/components/Toggle/ToggleTypes.d.ts +0 -4
- package/dist/components/VideoPlayer/VideoPlayerTypes.d.ts +0 -9
- package/dist/helpers/enums.d.ts +0 -4
- package/dist/utils/siteSections.d.ts +0 -2
- package/src/components/Accordion/AccordionTypes.tsx +0 -5
- package/src/components/Breadcrumbs/BreadcrumbsTypes.tsx +0 -8
- package/src/components/Button/ButtonTypes.tsx +0 -8
- package/src/components/DatePicker/DatePickerTypes.tsx +0 -5
- package/src/components/Form/FormTypes.tsx +0 -3
- package/src/components/Grid/GridTypes.tsx +0 -9
- package/src/components/Heading/HeadingTypes.tsx +0 -15
- package/src/components/Hero/HeroTypes.tsx +0 -20
- package/src/components/Icons/IconTypes.tsx +0 -83
- package/src/components/Image/ImageTypes.ts +0 -24
- package/src/components/Link/LinkTypes.tsx +0 -8
- package/src/components/List/ListTypes.tsx +0 -5
- package/src/components/Logo/LogoTypes.tsx +0 -56
- package/src/components/Notification/NotificationTypes.tsx +0 -5
- package/src/components/ProgressIndicator/ProgressIndicatorTypes.ts +0 -8
- package/src/components/Select/SelectTypes.tsx +0 -10
- package/src/components/SkeletonLoader/SkeletonLoaderTypes.tsx +0 -5
- package/src/components/StatusBadge/StatusBadgeTypes.tsx +0 -5
- package/src/components/StructuredContent/StructuredContentTypes.tsx +0 -5
- package/src/components/Text/TextTypes.tsx +0 -6
- package/src/components/TextInput/TextInputTypes.tsx +0 -48
- package/src/components/Toggle/ToggleTypes.tsx +0 -4
- package/src/components/VideoPlayer/VideoPlayerTypes.tsx +0 -10
- package/src/helpers/enums.ts +0 -4
- package/src/utils/siteSections.ts +0 -10
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Breadcrumb as Breadcrumb$1, BreadcrumbItem, BreadcrumbLink, Button as Button$2, Heading as Heading$2, useMultiStyleConfig, LinkBox, LinkOverlay, Checkbox as Checkbox$2, CheckboxGroup as CheckboxGroup$2,
|
|
2
|
-
export { Box,
|
|
3
|
-
import React__default, { createElement, cloneElement, Fragment, Children,
|
|
1
|
+
import { chakra, useStyleConfig, Icon as Icon$2, Box, Accordion as Accordion$2, AccordionPanel, AccordionItem, AccordionButton, Breadcrumb as Breadcrumb$1, BreadcrumbItem, BreadcrumbLink, Button as Button$2, Stack, Heading as Heading$2, useMultiStyleConfig, LinkBox, LinkOverlay, Checkbox as Checkbox$2, CheckboxGroup as CheckboxGroup$2, SimpleGrid as SimpleGrid$1, Input, Textarea, extendTheme, ChakraProvider, useDisclosure, Modal, ModalOverlay, ModalContent, ModalHeader, ModalCloseButton, ModalBody, ModalFooter, CircularProgress, CircularProgressLabel, Progress, Radio as Radio$2, RadioGroup as RadioGroup$2, Text as Text$2, 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, Switch as Switch$1, useTheme, TableCaption, Thead, Tr, Th, Table as Table$1, Tbody, Td } from '@chakra-ui/react';
|
|
2
|
+
export { Box, Center, Circle, Flex, Grid, GridItem, HStack, Spacer, Square, Stack, Tab, TabList, TabPanel, TabPanels, VStack } from '@chakra-ui/react';
|
|
3
|
+
import React__default, { createElement, cloneElement, Fragment, Children, useState, useEffect, forwardRef, useRef } from 'react';
|
|
4
4
|
import ReactDatePicker from 'react-datepicker';
|
|
5
5
|
import { createBreakpoints, cssVar } from '@chakra-ui/theme-tools';
|
|
6
6
|
import { keyframes } from '@chakra-ui/system';
|
|
@@ -38,110 +38,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
38
38
|
return target;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
var AccordionTypes;
|
|
42
|
-
|
|
43
|
-
(function (AccordionTypes) {
|
|
44
|
-
AccordionTypes["Default"] = "default";
|
|
45
|
-
AccordionTypes["Warning"] = "warning";
|
|
46
|
-
AccordionTypes["Error"] = "error";
|
|
47
|
-
})(AccordionTypes || (AccordionTypes = {}));
|
|
48
|
-
|
|
49
|
-
/* eslint-disable camelcase */
|
|
50
|
-
var IconAlign;
|
|
51
|
-
|
|
52
|
-
(function (IconAlign) {
|
|
53
|
-
IconAlign["Left"] = "left";
|
|
54
|
-
IconAlign["Right"] = "right";
|
|
55
|
-
IconAlign["None"] = "none";
|
|
56
|
-
})(IconAlign || (IconAlign = {}));
|
|
57
|
-
|
|
58
|
-
var IconTypes;
|
|
59
|
-
|
|
60
|
-
(function (IconTypes) {
|
|
61
|
-
IconTypes["Default"] = "default";
|
|
62
|
-
IconTypes["Breadcrumbs"] = "breadcrumbs";
|
|
63
|
-
})(IconTypes || (IconTypes = {}));
|
|
64
|
-
|
|
65
|
-
var IconRotationTypes;
|
|
66
|
-
|
|
67
|
-
(function (IconRotationTypes) {
|
|
68
|
-
IconRotationTypes["Rotate0"] = "rotate0";
|
|
69
|
-
IconRotationTypes["Rotate90"] = "rotate90";
|
|
70
|
-
IconRotationTypes["Rotate180"] = "rotate180";
|
|
71
|
-
IconRotationTypes["Rotate270"] = "rotate270";
|
|
72
|
-
})(IconRotationTypes || (IconRotationTypes = {}));
|
|
73
|
-
|
|
74
|
-
var IconColors;
|
|
75
|
-
|
|
76
|
-
(function (IconColors) {
|
|
77
|
-
IconColors["UiBlack"] = "ui.black";
|
|
78
|
-
IconColors["UiWhite"] = "ui.white";
|
|
79
|
-
IconColors["BrandPrimary"] = "brand.primary";
|
|
80
|
-
IconColors["BrandSecondary"] = "brand.secondary";
|
|
81
|
-
IconColors["SectionBlogsPrimary"] = "section.blogs.primary";
|
|
82
|
-
IconColors["SectionBlogsSecondary"] = "section.blogs.secondary";
|
|
83
|
-
IconColors["SectionBooksAndMorePrimary"] = "section.books-and-more.primary";
|
|
84
|
-
IconColors["SectionBooksAndMoreSecondary"] = "section.books-and-more.secondary";
|
|
85
|
-
IconColors["SectionEducationPrimary"] = "section.education.primary";
|
|
86
|
-
IconColors["SectionEducationSecondary"] = "section.education.secondary";
|
|
87
|
-
IconColors["SectionLocationsPrimary"] = "section.locations.primary";
|
|
88
|
-
IconColors["SectionLocationsSecondary"] = "section.locations.secondary";
|
|
89
|
-
IconColors["SectionResearchPrimary"] = "section.research.primary";
|
|
90
|
-
IconColors["SectionResearchSecondary"] = "section.research.secondary";
|
|
91
|
-
IconColors["SectionResearchLibraryLpa"] = "section.research-library.lpa";
|
|
92
|
-
IconColors["SectionResearchLibrarySchomburg"] = "section.research-library.schomburg";
|
|
93
|
-
IconColors["SectionResearchLibrarySchwartzman"] = "section.research-library.schwartzman";
|
|
94
|
-
IconColors["SectionWhatsOnPrimary"] = "section.whats-on.primary";
|
|
95
|
-
IconColors["SectionWhatsOnSecondary"] = "section.whats-on.secondary";
|
|
96
|
-
})(IconColors || (IconColors = {}));
|
|
97
|
-
|
|
98
|
-
var IconSizes;
|
|
99
|
-
|
|
100
|
-
(function (IconSizes) {
|
|
101
|
-
IconSizes["Default"] = "default";
|
|
102
|
-
IconSizes["Small"] = "small";
|
|
103
|
-
IconSizes["Medium"] = "medium";
|
|
104
|
-
IconSizes["Large"] = "large";
|
|
105
|
-
IconSizes["ExtraLarge"] = "xlarge";
|
|
106
|
-
IconSizes["ExtraExtraLarge"] = "xxlarge";
|
|
107
|
-
IconSizes["ExtraExtraExtraLarge"] = "xxxlarge";
|
|
108
|
-
})(IconSizes || (IconSizes = {}));
|
|
109
|
-
|
|
110
|
-
var IconNames;
|
|
111
|
-
|
|
112
|
-
(function (IconNames) {
|
|
113
|
-
IconNames["AccessibilityFull"] = "accessibility_full";
|
|
114
|
-
IconNames["AccessibilityPartial"] = "accessibility_partial";
|
|
115
|
-
IconNames["ActionCheckCircle"] = "action_check_circle";
|
|
116
|
-
IconNames["ActionHelpDefault"] = "action_help_default";
|
|
117
|
-
IconNames["ActionHelpOutline"] = "action_help_outline";
|
|
118
|
-
IconNames["AlertNotificationImportant"] = "alert_notification_important";
|
|
119
|
-
IconNames["ActionLaunch"] = "action_launch";
|
|
120
|
-
IconNames["Arrow"] = "arrow";
|
|
121
|
-
IconNames["Check"] = "check";
|
|
122
|
-
IconNames["Clock"] = "clock";
|
|
123
|
-
IconNames["Close"] = "close";
|
|
124
|
-
IconNames["Download"] = "download";
|
|
125
|
-
IconNames["ErrorFilled"] = "error_filled";
|
|
126
|
-
IconNames["ErrorOutline"] = "error_outline";
|
|
127
|
-
IconNames["FileTypeAudio"] = "file_type_audio";
|
|
128
|
-
IconNames["FileTypeDoc"] = "file_type_doc";
|
|
129
|
-
IconNames["FileTypeGenericDoc"] = "file_type_generic_doc";
|
|
130
|
-
IconNames["FileTypeImage"] = "file_type_image";
|
|
131
|
-
IconNames["FileTypePdf"] = "file_type_pdf";
|
|
132
|
-
IconNames["FileTypeSpreadsheet"] = "file_type_spreadsheet";
|
|
133
|
-
IconNames["FileTypeVideo"] = "file_type_video";
|
|
134
|
-
IconNames["Headset"] = "headset";
|
|
135
|
-
IconNames["Minus"] = "minus";
|
|
136
|
-
IconNames["Plus"] = "plus";
|
|
137
|
-
IconNames["Search"] = "search";
|
|
138
|
-
IconNames["SpeakerNotes"] = "speaker_notes";
|
|
139
|
-
IconNames["UtilityAccountFilled"] = "utility_account_filled";
|
|
140
|
-
IconNames["UtilityAccountUnfilled"] = "utility_account_unfilled";
|
|
141
|
-
IconNames["UtilityHamburger"] = "utility_hamburger";
|
|
142
|
-
IconNames["UtilitySearch"] = "utility_search";
|
|
143
|
-
})(IconNames || (IconNames = {}));
|
|
144
|
-
|
|
145
41
|
var _path, _path2, _path3;
|
|
146
42
|
|
|
147
43
|
var _excluded = ["title", "titleId"];
|
|
@@ -1045,39 +941,39 @@ function SvgUtilityHamburger(_ref) {
|
|
|
1045
941
|
|
|
1046
942
|
/* eslint-disable camelcase */
|
|
1047
943
|
var iconSvgs = {
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
944
|
+
accessibilityFull: SvgAccessibilityFull,
|
|
945
|
+
accessibilityPartial: SvgAccessibilityPartial,
|
|
946
|
+
actionCheckCircle: SvgActionCheckCircle,
|
|
947
|
+
actionHelpDefault: SvgActionHelpDefault,
|
|
948
|
+
actionHelpOutline: SvgActionHelpOutline,
|
|
949
|
+
actionLaunch: SvgActionLaunch,
|
|
950
|
+
alertNotificationImportant: SvgAlertNotificationImportant,
|
|
1055
951
|
arrow: SvgArrow,
|
|
1056
952
|
check: SvgCheck,
|
|
1057
953
|
clock: SvgClock,
|
|
1058
954
|
close: SvgClose,
|
|
1059
955
|
download: SvgDownload,
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
956
|
+
errorFilled: SvgErrorFilled,
|
|
957
|
+
errorOutline: SvgErrorOutline,
|
|
958
|
+
fileTypeAudio: SvgFileTypeAudio,
|
|
959
|
+
fileTypeDoc: SvgFileTypeDoc,
|
|
960
|
+
fileTypeGenericDoc: SvgFileTypeGenericDoc,
|
|
961
|
+
fileTypeImage: SvgFileTypeImage,
|
|
962
|
+
fileTypePdf: SvgFileTypePdf,
|
|
963
|
+
fileTypeSpreadsheet: SvgFileTypeSpreadsheet,
|
|
964
|
+
fileTypeVideo: SvgFileTypeVideo,
|
|
1069
965
|
headset: SvgHeadset,
|
|
1070
966
|
minus: SvgMinus,
|
|
1071
967
|
plus: SvgPlus,
|
|
1072
968
|
search: SvgSearch,
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
969
|
+
speakerNotes: SvgSpeakerNotes,
|
|
970
|
+
utilityAccountFilled: SvgUtilityAccountFilled,
|
|
971
|
+
utilityAccountUnfilled: SvgUtilityAccountUnfilled,
|
|
972
|
+
utilityHamburger: SvgUtilityHamburger,
|
|
973
|
+
utilitySearch: SvgSearch
|
|
1078
974
|
};
|
|
1079
975
|
|
|
1080
|
-
var _excluded$t = ["
|
|
976
|
+
var _excluded$t = ["align", "children", "className", "color", "decorative", "iconRotation", "id", "name", "size", "title", "type"];
|
|
1081
977
|
/**
|
|
1082
978
|
* Renders SVG-based icons.
|
|
1083
979
|
*/
|
|
@@ -1085,26 +981,24 @@ var _excluded$t = ["additionalStyles", "align", "children", "className", "color"
|
|
|
1085
981
|
var Icon = /*#__PURE__*/chakra(function (props) {
|
|
1086
982
|
var _children$props, _children$props2;
|
|
1087
983
|
|
|
1088
|
-
var _props$
|
|
1089
|
-
|
|
1090
|
-
_props$align = props.align,
|
|
1091
|
-
align = _props$align === void 0 ? IconAlign.None : _props$align,
|
|
984
|
+
var _props$align = props.align,
|
|
985
|
+
align = _props$align === void 0 ? "none" : _props$align,
|
|
1092
986
|
children = props.children,
|
|
1093
987
|
className = props.className,
|
|
1094
988
|
_props$color = props.color,
|
|
1095
|
-
color = _props$color === void 0 ?
|
|
989
|
+
color = _props$color === void 0 ? "ui.black" : _props$color,
|
|
1096
990
|
_props$decorative = props.decorative,
|
|
1097
991
|
decorative = _props$decorative === void 0 ? true : _props$decorative,
|
|
1098
992
|
_props$iconRotation = props.iconRotation,
|
|
1099
|
-
iconRotation = _props$iconRotation === void 0 ?
|
|
993
|
+
iconRotation = _props$iconRotation === void 0 ? "rotate0" : _props$iconRotation,
|
|
1100
994
|
id = props.id,
|
|
1101
995
|
name = props.name,
|
|
1102
996
|
_props$size = props.size,
|
|
1103
|
-
size = _props$size === void 0 ?
|
|
997
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
1104
998
|
_props$title = props.title,
|
|
1105
999
|
title = _props$title === void 0 ? name + " icon" : _props$title,
|
|
1106
1000
|
_props$type = props.type,
|
|
1107
|
-
type = _props$type === void 0 ?
|
|
1001
|
+
type = _props$type === void 0 ? "default" : _props$type,
|
|
1108
1002
|
rest = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
1109
1003
|
|
|
1110
1004
|
var styles = useStyleConfig("Icon", {
|
|
@@ -1141,7 +1035,7 @@ var Icon = /*#__PURE__*/chakra(function (props) {
|
|
|
1141
1035
|
return createElement(Icon$2, Object.assign({
|
|
1142
1036
|
as: SvgComponent
|
|
1143
1037
|
}, iconProps, {
|
|
1144
|
-
__css:
|
|
1038
|
+
__css: styles
|
|
1145
1039
|
}));
|
|
1146
1040
|
} // If no `name` prop was passed, we expect a child SVG element to be passed.
|
|
1147
1041
|
// Apply icon props to the SVG child.
|
|
@@ -1153,11 +1047,11 @@ var Icon = /*#__PURE__*/chakra(function (props) {
|
|
|
1153
1047
|
console.warn("NYPL Reservoir Icon: An `svg` element must be passed to the `Icon` " + "component as its child.");
|
|
1154
1048
|
}
|
|
1155
1049
|
|
|
1156
|
-
return createElement(Box,
|
|
1050
|
+
return createElement(Box, {
|
|
1157
1051
|
__css: styles
|
|
1158
|
-
},
|
|
1052
|
+
}, childSVG);
|
|
1159
1053
|
}, // Pass all custom props to Chakra and override, e.g. we want the
|
|
1160
|
-
// DS color
|
|
1054
|
+
// DS color value set and not color strings.
|
|
1161
1055
|
{
|
|
1162
1056
|
shouldForwardProp: function shouldForwardProp() {
|
|
1163
1057
|
return true;
|
|
@@ -1175,11 +1069,11 @@ var getIcon = function getIcon(isExpanded, index, id) {
|
|
|
1175
1069
|
isExpanded = false;
|
|
1176
1070
|
}
|
|
1177
1071
|
|
|
1178
|
-
var iconName = isExpanded ?
|
|
1072
|
+
var iconName = isExpanded ? "minus" : "plus";
|
|
1179
1073
|
return createElement(Icon, {
|
|
1180
1074
|
id: "accordion-" + id + "-icon-" + index,
|
|
1181
1075
|
name: iconName,
|
|
1182
|
-
size:
|
|
1076
|
+
size: "small"
|
|
1183
1077
|
});
|
|
1184
1078
|
};
|
|
1185
1079
|
/**
|
|
@@ -1190,16 +1084,20 @@ var getIcon = function getIcon(isExpanded, index, id) {
|
|
|
1190
1084
|
|
|
1191
1085
|
|
|
1192
1086
|
var getElementsFromData = function getElementsFromData(data, id) {
|
|
1193
|
-
var
|
|
1087
|
+
var _data;
|
|
1194
1088
|
|
|
1195
1089
|
if (data === void 0) {
|
|
1196
1090
|
data = [];
|
|
1197
1091
|
}
|
|
1198
1092
|
|
|
1199
|
-
var colorMap =
|
|
1093
|
+
var colorMap = {
|
|
1094
|
+
"default": "ui.white",
|
|
1095
|
+
warning: "ui.status.primary",
|
|
1096
|
+
error: "ui.status.secondary"
|
|
1097
|
+
}; // For FAQ-style multiple accordions, the button should be bigger.
|
|
1200
1098
|
// Otherwise, use the default.
|
|
1201
1099
|
|
|
1202
|
-
var multiplePadding = ((_data = data) == null ? void 0 : _data.length) > 1 ? 4 :
|
|
1100
|
+
var multiplePadding = ((_data = data) == null ? void 0 : _data.length) > 1 ? "4" : "initial";
|
|
1203
1101
|
return data.map(function (content, index) {
|
|
1204
1102
|
// This is done to support both string and DOM element input.
|
|
1205
1103
|
var panel = typeof content.panel === "string" ? createElement(AccordionPanel, {
|
|
@@ -1250,66 +1148,15 @@ var Accordion = /*#__PURE__*/chakra(function (props) {
|
|
|
1250
1148
|
rest = _objectWithoutPropertiesLoose(props, _excluded$u); // Pass `0` to open the first accordion in the 0-index based array.
|
|
1251
1149
|
|
|
1252
1150
|
|
|
1253
|
-
var openFirstAccordion = isDefaultOpen ? 0 : undefined;
|
|
1151
|
+
var openFirstAccordion = isDefaultOpen ? [0] : undefined;
|
|
1254
1152
|
return createElement(Accordion$2, Object.assign({
|
|
1255
1153
|
id: id,
|
|
1256
|
-
defaultIndex:
|
|
1154
|
+
defaultIndex: openFirstAccordion,
|
|
1257
1155
|
allowMultiple: true
|
|
1258
1156
|
}, rest), getElementsFromData(accordionData, id));
|
|
1259
1157
|
});
|
|
1260
1158
|
|
|
1261
|
-
var
|
|
1262
|
-
|
|
1263
|
-
(function (BreadcrumbsTypes) {
|
|
1264
|
-
BreadcrumbsTypes["Blogs"] = "blogs";
|
|
1265
|
-
BreadcrumbsTypes["BooksAndMore"] = "booksAndMore";
|
|
1266
|
-
BreadcrumbsTypes["Education"] = "education";
|
|
1267
|
-
BreadcrumbsTypes["Locations"] = "locations";
|
|
1268
|
-
BreadcrumbsTypes["Research"] = "research";
|
|
1269
|
-
BreadcrumbsTypes["WhatsOn"] = "whatsOn";
|
|
1270
|
-
})(BreadcrumbsTypes || (BreadcrumbsTypes = {}));
|
|
1271
|
-
|
|
1272
|
-
// Utility functions to use throughout the codebase
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* range
|
|
1276
|
-
* Get an array of values from `start` to `stop` - 1 with an optional
|
|
1277
|
-
* `step` between values.
|
|
1278
|
-
*/
|
|
1279
|
-
var range = function range(start, stop, step) {
|
|
1280
|
-
if (step === void 0) {
|
|
1281
|
-
step = 1;
|
|
1282
|
-
}
|
|
1283
|
-
|
|
1284
|
-
if (!start) {
|
|
1285
|
-
return [];
|
|
1286
|
-
}
|
|
1287
|
-
|
|
1288
|
-
return Array(Math.ceil((stop - start) / step)).fill(start).map(function (x, y) {
|
|
1289
|
-
return x + y * step;
|
|
1290
|
-
});
|
|
1291
|
-
};
|
|
1292
|
-
/**
|
|
1293
|
-
* Map an enum value to a component's Chakra theme variant object. If a wrong
|
|
1294
|
-
* value is passed (typically in non-Typescript scenarios), then the "fallback"
|
|
1295
|
-
* value, if provided, will be used.
|
|
1296
|
-
*/
|
|
1297
|
-
|
|
1298
|
-
var getVariant = function getVariant(variant, collection, fallback) {
|
|
1299
|
-
if (fallback === void 0) {
|
|
1300
|
-
fallback = null;
|
|
1301
|
-
}
|
|
1302
|
-
|
|
1303
|
-
var variantMap = {};
|
|
1304
|
-
|
|
1305
|
-
for (var type in collection) {
|
|
1306
|
-
variantMap[collection[type]] = collection[type];
|
|
1307
|
-
}
|
|
1308
|
-
|
|
1309
|
-
return variantMap[variant] || fallback;
|
|
1310
|
-
};
|
|
1311
|
-
|
|
1312
|
-
var _excluded$v = ["additionalStyles", "breadcrumbsData", "breadcrumbsType", "className", "id"];
|
|
1159
|
+
var _excluded$v = ["breadcrumbsData", "breadcrumbsType", "className", "id"];
|
|
1313
1160
|
|
|
1314
1161
|
var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
1315
1162
|
if (!(data != null && data.length)) {
|
|
@@ -1323,12 +1170,12 @@ var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
|
1323
1170
|
}, createElement(BreadcrumbLink, {
|
|
1324
1171
|
href: breadcrumbData.url
|
|
1325
1172
|
}, index === data.length - 2 && createElement(Icon, {
|
|
1326
|
-
name:
|
|
1327
|
-
size:
|
|
1328
|
-
iconRotation:
|
|
1173
|
+
name: "arrow",
|
|
1174
|
+
size: "small",
|
|
1175
|
+
iconRotation: "rotate90",
|
|
1329
1176
|
id: breadcrumbsID + "__backarrow",
|
|
1330
1177
|
className: "breadcrumbs-icon",
|
|
1331
|
-
type:
|
|
1178
|
+
type: "breadcrumbs"
|
|
1332
1179
|
}), createElement("span", {
|
|
1333
1180
|
className: "breadcrumb-label"
|
|
1334
1181
|
}, breadcrumbData.text)));
|
|
@@ -1337,56 +1184,37 @@ var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
|
1337
1184
|
};
|
|
1338
1185
|
|
|
1339
1186
|
var Breadcrumbs = /*#__PURE__*/chakra(function (props) {
|
|
1340
|
-
var
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
breadcrumbsType = props.breadcrumbsType,
|
|
1187
|
+
var breadcrumbsData = props.breadcrumbsData,
|
|
1188
|
+
_props$breadcrumbsTyp = props.breadcrumbsType,
|
|
1189
|
+
breadcrumbsType = _props$breadcrumbsTyp === void 0 ? "whatsOn" : _props$breadcrumbsTyp,
|
|
1344
1190
|
className = props.className,
|
|
1345
1191
|
id = props.id,
|
|
1346
1192
|
rest = _objectWithoutPropertiesLoose(props, _excluded$v);
|
|
1347
1193
|
|
|
1348
|
-
var variant = getVariant(breadcrumbsType, BreadcrumbsTypes);
|
|
1349
|
-
|
|
1350
1194
|
if (!breadcrumbsData || breadcrumbsData.length === 0) {
|
|
1351
1195
|
throw new Error("NYPL Reservoir Breadcrumbs: No data was passed to the `breadcrumbsData` prop.");
|
|
1352
1196
|
}
|
|
1353
1197
|
|
|
1354
1198
|
var styles = useStyleConfig("Breadcrumb", {
|
|
1355
|
-
variant:
|
|
1199
|
+
variant: breadcrumbsType
|
|
1356
1200
|
});
|
|
1357
|
-
|
|
1358
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
1359
|
-
|
|
1360
1201
|
var breadcrumbItems = getElementsFromData$1(breadcrumbsData, id);
|
|
1361
1202
|
return createElement(Breadcrumb$1, Object.assign({
|
|
1362
1203
|
"aria-label": "Breadcrumb",
|
|
1363
1204
|
className: className,
|
|
1364
1205
|
id: id,
|
|
1365
|
-
__css:
|
|
1206
|
+
__css: styles
|
|
1366
1207
|
}, rest), breadcrumbItems);
|
|
1367
1208
|
});
|
|
1368
1209
|
|
|
1369
|
-
var
|
|
1370
|
-
|
|
1371
|
-
(function (ButtonTypes) {
|
|
1372
|
-
ButtonTypes["Primary"] = "primary";
|
|
1373
|
-
ButtonTypes["Secondary"] = "secondary";
|
|
1374
|
-
ButtonTypes["Callout"] = "callout";
|
|
1375
|
-
ButtonTypes["Pill"] = "pill";
|
|
1376
|
-
ButtonTypes["Link"] = "link";
|
|
1377
|
-
ButtonTypes["NoBrand"] = "noBrand";
|
|
1378
|
-
})(ButtonTypes || (ButtonTypes = {}));
|
|
1379
|
-
|
|
1380
|
-
var _excluded$w = ["additionalStyles", "attributes", "buttonType", "children", "className", "id", "isDisabled", "mouseDown", "onClick", "type"];
|
|
1210
|
+
var _excluded$w = ["buttonType", "children", "className", "id", "isDisabled", "mouseDown", "onClick", "type"];
|
|
1381
1211
|
/**
|
|
1382
1212
|
* Renders a simple `button` element with custom variant styles.
|
|
1383
1213
|
*/
|
|
1384
1214
|
|
|
1385
1215
|
var Button = /*#__PURE__*/chakra(function (props) {
|
|
1386
|
-
var _props$
|
|
1387
|
-
|
|
1388
|
-
attributes = props.attributes,
|
|
1389
|
-
buttonType = props.buttonType,
|
|
1216
|
+
var _props$buttonType = props.buttonType,
|
|
1217
|
+
buttonType = _props$buttonType === void 0 ? "primary" : _props$buttonType,
|
|
1390
1218
|
children = props.children,
|
|
1391
1219
|
_props$className = props.className,
|
|
1392
1220
|
className = _props$className === void 0 ? "" : _props$className,
|
|
@@ -1407,7 +1235,7 @@ var Button = /*#__PURE__*/chakra(function (props) {
|
|
|
1407
1235
|
};
|
|
1408
1236
|
var childCount = 0;
|
|
1409
1237
|
var hasIcon = false;
|
|
1410
|
-
var variant;
|
|
1238
|
+
var variant = buttonType;
|
|
1411
1239
|
var styles = {};
|
|
1412
1240
|
|
|
1413
1241
|
if (!id) {
|
|
@@ -1418,7 +1246,9 @@ var Button = /*#__PURE__*/chakra(function (props) {
|
|
|
1418
1246
|
childCount++;
|
|
1419
1247
|
|
|
1420
1248
|
if (child !== undefined && child !== null) {
|
|
1421
|
-
|
|
1249
|
+
var _child$props;
|
|
1250
|
+
|
|
1251
|
+
if (child.type === Icon || (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) === "Icon") {
|
|
1422
1252
|
hasIcon = true;
|
|
1423
1253
|
}
|
|
1424
1254
|
}
|
|
@@ -1426,8 +1256,6 @@ var Button = /*#__PURE__*/chakra(function (props) {
|
|
|
1426
1256
|
|
|
1427
1257
|
if (childCount === 1 && hasIcon) {
|
|
1428
1258
|
variant = "iconOnly";
|
|
1429
|
-
} else {
|
|
1430
|
-
variant = getVariant(buttonType, ButtonTypes, ButtonTypes.Primary);
|
|
1431
1259
|
}
|
|
1432
1260
|
|
|
1433
1261
|
styles = useStyleConfig("Button", {
|
|
@@ -1439,53 +1267,121 @@ var Button = /*#__PURE__*/chakra(function (props) {
|
|
|
1439
1267
|
className: className,
|
|
1440
1268
|
type: type,
|
|
1441
1269
|
isDisabled: isDisabled
|
|
1442
|
-
},
|
|
1443
|
-
__css:
|
|
1270
|
+
}, btnCallback, {
|
|
1271
|
+
__css: styles
|
|
1444
1272
|
}, rest), children);
|
|
1445
1273
|
});
|
|
1446
1274
|
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1275
|
+
/**
|
|
1276
|
+
* React hook used to get the window size on device resizing.
|
|
1277
|
+
* Based on https://usehooks-typescript.com/react-hook/use-window-size
|
|
1278
|
+
*/
|
|
1279
|
+
|
|
1280
|
+
function useWindowSize() {
|
|
1281
|
+
var _React$useState = React__default.useState({
|
|
1282
|
+
width: 0,
|
|
1283
|
+
height: 0
|
|
1284
|
+
}),
|
|
1285
|
+
windowSize = _React$useState[0],
|
|
1286
|
+
setWindowSize = _React$useState[1];
|
|
1287
|
+
|
|
1288
|
+
React__default.useEffect(function () {
|
|
1289
|
+
var handler = function handler() {
|
|
1290
|
+
setWindowSize({
|
|
1291
|
+
width: window.innerWidth,
|
|
1292
|
+
height: window.innerHeight
|
|
1293
|
+
});
|
|
1294
|
+
}; // Set size at the first client-side load
|
|
1295
|
+
|
|
1296
|
+
|
|
1297
|
+
handler();
|
|
1298
|
+
window.addEventListener("resize", handler); // Remove event listener on cleanup
|
|
1299
|
+
|
|
1300
|
+
return function () {
|
|
1301
|
+
window.removeEventListener("resize", handler);
|
|
1302
|
+
};
|
|
1303
|
+
}, []);
|
|
1304
|
+
return windowSize;
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
var _excluded$x = ["buttonWidth", "children", "className", "id", "isDisabled", "layout"];
|
|
1308
|
+
/**
|
|
1309
|
+
* A simple wrapper to group `Button` components together. The layout can be set
|
|
1310
|
+
* to row or column and the width of internal `Button` components can be set to
|
|
1311
|
+
* the parent's full width or the `Button`'s content width
|
|
1312
|
+
*/
|
|
1313
|
+
|
|
1314
|
+
|
|
1315
|
+
var ButtonGroup = /*#__PURE__*/chakra(function (props) {
|
|
1316
|
+
var _props$buttonWidth = props.buttonWidth,
|
|
1317
|
+
buttonWidth = _props$buttonWidth === void 0 ? "default" : _props$buttonWidth,
|
|
1318
|
+
children = props.children,
|
|
1319
|
+
_props$className = props.className,
|
|
1320
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
1321
|
+
id = props.id,
|
|
1322
|
+
_props$isDisabled = props.isDisabled,
|
|
1323
|
+
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
1324
|
+
_props$layout = props.layout,
|
|
1325
|
+
layout = _props$layout === void 0 ? "row" : _props$layout,
|
|
1326
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$x);
|
|
1327
|
+
|
|
1328
|
+
var newChildren = []; // Based on --nypl-breakpoint-medium
|
|
1329
|
+
|
|
1330
|
+
var breakpointMedium = 600;
|
|
1331
|
+
|
|
1332
|
+
var _React$useState = useState(layout),
|
|
1333
|
+
finalLayout = _React$useState[0],
|
|
1334
|
+
setFinalLayout = _React$useState[1];
|
|
1335
|
+
|
|
1336
|
+
var _React$useState2 = useState(buttonWidth),
|
|
1337
|
+
finalButtonWidth = _React$useState2[0],
|
|
1338
|
+
setFinalButtonWidth = _React$useState2[1];
|
|
1339
|
+
|
|
1340
|
+
var windowDimensions = useWindowSize();
|
|
1341
|
+
useEffect(function () {
|
|
1342
|
+
// When on a mobile device or narrow window, always set the layout to
|
|
1343
|
+
// column and the button width to "full".
|
|
1344
|
+
if (windowDimensions.width <= breakpointMedium) {
|
|
1345
|
+
setFinalButtonWidth("full");
|
|
1346
|
+
setFinalLayout("column");
|
|
1347
|
+
} else {
|
|
1348
|
+
// Otherwise, set the layout and button width to the values
|
|
1349
|
+
// passed in via the `buttonWidth` and `layout` props.
|
|
1350
|
+
setFinalButtonWidth(buttonWidth);
|
|
1351
|
+
setFinalLayout(layout);
|
|
1352
|
+
}
|
|
1353
|
+
}, [buttonWidth, layout, windowDimensions.width]);
|
|
1354
|
+
var styles = useStyleConfig("ButtonGroup", {
|
|
1355
|
+
buttonWidth: finalButtonWidth
|
|
1356
|
+
});
|
|
1357
|
+
Children.map(children, function (child, key) {
|
|
1358
|
+
if (child.type !== Button) {
|
|
1359
|
+
// Special case for Storybook MDX documentation.
|
|
1360
|
+
if (child.props.mdxType && child.props.mdxType === "Button") ; else {
|
|
1361
|
+
console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
|
|
1362
|
+
return;
|
|
1363
|
+
}
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
newChildren.push(cloneElement(child, {
|
|
1367
|
+
key: key,
|
|
1368
|
+
isDisabled: isDisabled
|
|
1369
|
+
}));
|
|
1370
|
+
});
|
|
1371
|
+
return createElement(Stack, Object.assign({
|
|
1372
|
+
id: id,
|
|
1373
|
+
className: className,
|
|
1374
|
+
direction: finalLayout,
|
|
1375
|
+
// Always set the spacing to "8px".
|
|
1376
|
+
spacing: "xs",
|
|
1377
|
+
sx: styles
|
|
1378
|
+
}, rest), newChildren);
|
|
1379
|
+
});
|
|
1380
|
+
|
|
1381
|
+
var _excluded$y = ["children", "className", "href", "id", "type"];
|
|
1486
1382
|
/**
|
|
1487
1383
|
* Renders the `Link` children components with a direction arrow icon based
|
|
1488
|
-
* on the `
|
|
1384
|
+
* on the `"backwards"` or `"forwards"` `linkType` value.
|
|
1489
1385
|
*/
|
|
1490
1386
|
|
|
1491
1387
|
function getWithDirectionIcon(children, type, linkId) {
|
|
@@ -1494,12 +1390,12 @@ function getWithDirectionIcon(children, type, linkId) {
|
|
|
1494
1390
|
var icon = null; // An icon needs a position in order for it to be created and
|
|
1495
1391
|
// rendered in the link.
|
|
1496
1392
|
|
|
1497
|
-
if (type ===
|
|
1498
|
-
iconRotation =
|
|
1499
|
-
iconAlign =
|
|
1500
|
-
} else if (type ===
|
|
1501
|
-
iconRotation =
|
|
1502
|
-
iconAlign =
|
|
1393
|
+
if (type === "backwards") {
|
|
1394
|
+
iconRotation = "rotate90";
|
|
1395
|
+
iconAlign = "left";
|
|
1396
|
+
} else if (type === "forwards") {
|
|
1397
|
+
iconRotation = "rotate270";
|
|
1398
|
+
iconAlign = "right";
|
|
1503
1399
|
}
|
|
1504
1400
|
|
|
1505
1401
|
var iconId = linkId + "-icon";
|
|
@@ -1508,20 +1404,20 @@ function getWithDirectionIcon(children, type, linkId) {
|
|
|
1508
1404
|
className: "more-link",
|
|
1509
1405
|
iconRotation: iconRotation,
|
|
1510
1406
|
id: iconId,
|
|
1511
|
-
name:
|
|
1512
|
-
size:
|
|
1407
|
+
name: "arrow",
|
|
1408
|
+
size: "medium"
|
|
1513
1409
|
});
|
|
1514
|
-
return createElement(Fragment, null, type ===
|
|
1410
|
+
return createElement(Fragment, null, type === "backwards" && icon, children, type === "forwards" && icon);
|
|
1515
1411
|
}
|
|
1516
1412
|
|
|
1517
1413
|
function getExternalIcon(children, linkId) {
|
|
1518
1414
|
var iconId = linkId + "-icon";
|
|
1519
1415
|
var icon = createElement(Icon, {
|
|
1520
|
-
align:
|
|
1416
|
+
align: "right",
|
|
1521
1417
|
className: "more-link",
|
|
1522
1418
|
id: iconId,
|
|
1523
|
-
name:
|
|
1524
|
-
size:
|
|
1419
|
+
name: "actionLaunch",
|
|
1420
|
+
size: "medium"
|
|
1525
1421
|
});
|
|
1526
1422
|
return createElement(Fragment, null, children, icon);
|
|
1527
1423
|
}
|
|
@@ -1532,23 +1428,20 @@ function getExternalIcon(children, linkId) {
|
|
|
1532
1428
|
|
|
1533
1429
|
|
|
1534
1430
|
var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
1535
|
-
var
|
|
1536
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
1537
|
-
attributes = props.attributes,
|
|
1538
|
-
children = props.children,
|
|
1431
|
+
var children = props.children,
|
|
1539
1432
|
className = props.className,
|
|
1540
1433
|
href = props.href,
|
|
1541
1434
|
id = props.id,
|
|
1542
1435
|
_props$type = props.type,
|
|
1543
|
-
type = _props$type === void 0 ?
|
|
1544
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1436
|
+
type = _props$type === void 0 ? "default" : _props$type,
|
|
1437
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$y); // Merge the necessary props alongside any extra props for the
|
|
1545
1438
|
// anchor element.
|
|
1546
1439
|
|
|
1547
1440
|
|
|
1548
1441
|
var linkProps = _extends({
|
|
1549
1442
|
id: id,
|
|
1550
1443
|
href: href
|
|
1551
|
-
},
|
|
1444
|
+
}, rest); // The "default" type.
|
|
1552
1445
|
|
|
1553
1446
|
|
|
1554
1447
|
var variant = "link";
|
|
@@ -1557,21 +1450,21 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1557
1450
|
throw new Error("`Link` needs the `href` prop.");
|
|
1558
1451
|
}
|
|
1559
1452
|
|
|
1560
|
-
if (type ===
|
|
1453
|
+
if (type === "action" || type === "forwards" || type === "backwards" || type === "external") {
|
|
1561
1454
|
variant = "moreLink";
|
|
1562
|
-
} else if (type ===
|
|
1455
|
+
} else if (type === "button") {
|
|
1563
1456
|
variant = "button";
|
|
1564
1457
|
}
|
|
1565
1458
|
|
|
1566
1459
|
var style = useStyleConfig("Link", {
|
|
1567
1460
|
variant: variant
|
|
1568
|
-
});
|
|
1461
|
+
});
|
|
1462
|
+
var rel = type === "external" ? "nofollow" : null;
|
|
1463
|
+
var target = type === "external" ? "_blank" : null; // Render with specific direction arrows if the type is
|
|
1569
1464
|
// Forwards or Backwards. Or render with the launch icon
|
|
1570
1465
|
// if the type is External. Otherwise, do not add an icon.
|
|
1571
1466
|
|
|
1572
|
-
var newChildren = (type ===
|
|
1573
|
-
var rel = type === LinkTypes.External ? "nofollow" : null;
|
|
1574
|
-
var target = type === LinkTypes.External ? "_blank" : null;
|
|
1467
|
+
var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" && getExternalIcon(children, id) || children;
|
|
1575
1468
|
|
|
1576
1469
|
if (!href) {
|
|
1577
1470
|
// React Types error makes this fail:
|
|
@@ -1583,18 +1476,15 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1583
1476
|
|
|
1584
1477
|
var childrenToClone = children[0] ? children[0] : children;
|
|
1585
1478
|
var childProps = childrenToClone.props;
|
|
1586
|
-
return createElement(Box,
|
|
1479
|
+
return createElement(Box, {
|
|
1587
1480
|
as: "span",
|
|
1588
1481
|
__css: style
|
|
1589
|
-
},
|
|
1482
|
+
}, cloneElement(childrenToClone, _extends({
|
|
1590
1483
|
className: className
|
|
1591
1484
|
}, linkProps, childProps, {
|
|
1592
1485
|
ref: ref,
|
|
1593
1486
|
rel: rel,
|
|
1594
|
-
target: target
|
|
1595
|
-
// Useful if more styles are needed for the custom
|
|
1596
|
-
// anchor element or link component.
|
|
1597
|
-
style: additionalStyles
|
|
1487
|
+
target: target
|
|
1598
1488
|
}), [childrenToClone.props.children]));
|
|
1599
1489
|
} else {
|
|
1600
1490
|
return createElement(Box, Object.assign({
|
|
@@ -1604,17 +1494,17 @@ var Link = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
1604
1494
|
rel: rel,
|
|
1605
1495
|
target: target
|
|
1606
1496
|
}, linkProps, {
|
|
1607
|
-
__css:
|
|
1608
|
-
}
|
|
1497
|
+
__css: style
|
|
1498
|
+
}), newChildren);
|
|
1609
1499
|
}
|
|
1610
1500
|
}));
|
|
1611
1501
|
|
|
1612
|
-
var _excluded$
|
|
1502
|
+
var _excluded$z = ["className", "id", "level", "size", "text", "url", "urlClass"];
|
|
1613
1503
|
/** Map the word heading level to the number heading level. The default is 2. */
|
|
1614
1504
|
|
|
1615
1505
|
var getMappedLevel = function getMappedLevel(level) {
|
|
1616
1506
|
if (level === void 0) {
|
|
1617
|
-
level =
|
|
1507
|
+
level = "two";
|
|
1618
1508
|
}
|
|
1619
1509
|
|
|
1620
1510
|
var levelMap = {
|
|
@@ -1629,27 +1519,23 @@ var getMappedLevel = function getMappedLevel(level) {
|
|
|
1629
1519
|
};
|
|
1630
1520
|
|
|
1631
1521
|
var Heading = /*#__PURE__*/chakra(function (props) {
|
|
1632
|
-
var
|
|
1633
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
1634
|
-
className = props.className,
|
|
1522
|
+
var className = props.className,
|
|
1635
1523
|
id = props.id,
|
|
1636
1524
|
_props$level = props.level,
|
|
1637
|
-
level = _props$level === void 0 ?
|
|
1525
|
+
level = _props$level === void 0 ? "two" : _props$level,
|
|
1638
1526
|
size = props.size,
|
|
1639
1527
|
text = props.text,
|
|
1640
1528
|
url = props.url,
|
|
1641
1529
|
urlClass = props.urlClass,
|
|
1642
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1530
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$z);
|
|
1643
1531
|
|
|
1644
1532
|
var finalLevel = getMappedLevel(level);
|
|
1645
|
-
var variant = size ?
|
|
1533
|
+
var variant = size ? size : "h" + finalLevel;
|
|
1646
1534
|
var styles = useStyleConfig("Heading", {
|
|
1647
1535
|
variant: variant
|
|
1648
1536
|
}); // Combine native base styles with any additional styles.
|
|
1649
1537
|
// This is used in the `Hero` and `Notification` components.
|
|
1650
1538
|
|
|
1651
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
1652
|
-
|
|
1653
1539
|
var asHeading = "h" + finalLevel;
|
|
1654
1540
|
|
|
1655
1541
|
if (!props.children && !text) {
|
|
@@ -1671,42 +1557,11 @@ var Heading = /*#__PURE__*/chakra(function (props) {
|
|
|
1671
1557
|
as: asHeading,
|
|
1672
1558
|
className: className,
|
|
1673
1559
|
id: id,
|
|
1674
|
-
sx:
|
|
1560
|
+
sx: styles
|
|
1675
1561
|
}, rest), content);
|
|
1676
1562
|
});
|
|
1677
1563
|
|
|
1678
|
-
var
|
|
1679
|
-
|
|
1680
|
-
(function (ImageRatios) {
|
|
1681
|
-
ImageRatios["FourByThree"] = "fourByThree";
|
|
1682
|
-
ImageRatios["OneByTwo"] = "oneByTwo";
|
|
1683
|
-
ImageRatios["Original"] = "original";
|
|
1684
|
-
ImageRatios["SixteenByNine"] = "sixteenByNine";
|
|
1685
|
-
ImageRatios["Square"] = "square";
|
|
1686
|
-
ImageRatios["ThreeByFour"] = "threeByFour";
|
|
1687
|
-
ImageRatios["ThreeByTwo"] = "threeByTwo";
|
|
1688
|
-
ImageRatios["TwoByOne"] = "twoByOne";
|
|
1689
|
-
})(ImageRatios || (ImageRatios = {}));
|
|
1690
|
-
|
|
1691
|
-
var ImageSizes;
|
|
1692
|
-
|
|
1693
|
-
(function (ImageSizes) {
|
|
1694
|
-
ImageSizes["Default"] = "default";
|
|
1695
|
-
ImageSizes["ExtraExtraSmall"] = "xxsmall";
|
|
1696
|
-
ImageSizes["ExtraSmall"] = "xsmall";
|
|
1697
|
-
ImageSizes["Small"] = "small";
|
|
1698
|
-
ImageSizes["Medium"] = "medium";
|
|
1699
|
-
ImageSizes["Large"] = "large";
|
|
1700
|
-
})(ImageSizes || (ImageSizes = {}));
|
|
1701
|
-
|
|
1702
|
-
var ImageTypes;
|
|
1703
|
-
|
|
1704
|
-
(function (ImageTypes) {
|
|
1705
|
-
ImageTypes["Default"] = "default";
|
|
1706
|
-
ImageTypes["Circle"] = "circle";
|
|
1707
|
-
})(ImageTypes || (ImageTypes = {}));
|
|
1708
|
-
|
|
1709
|
-
var _excluded$z = ["additionalWrapperStyles", "className", "children", "aspectRatio", "size"],
|
|
1564
|
+
var _excluded$A = ["additionalWrapperStyles", "className", "children", "aspectRatio", "size"],
|
|
1710
1565
|
_excluded2 = ["additionalFigureStyles", "additionalImageStyles", "additionalWrapperStyles", "alt", "aspectRatio", "caption", "className", "component", "credit", "imageType", "size", "src"];
|
|
1711
1566
|
var ImageWrapper = /*#__PURE__*/chakra(function (props) {
|
|
1712
1567
|
var _props$additionalWrap = props.additionalWrapperStyles,
|
|
@@ -1715,10 +1570,10 @@ var ImageWrapper = /*#__PURE__*/chakra(function (props) {
|
|
|
1715
1570
|
className = _props$className === void 0 ? "" : _props$className,
|
|
1716
1571
|
children = props.children,
|
|
1717
1572
|
_props$aspectRatio = props.aspectRatio,
|
|
1718
|
-
aspectRatio = _props$aspectRatio === void 0 ?
|
|
1573
|
+
aspectRatio = _props$aspectRatio === void 0 ? "original" : _props$aspectRatio,
|
|
1719
1574
|
_props$size = props.size,
|
|
1720
|
-
size = _props$size === void 0 ?
|
|
1721
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1575
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
1576
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$A);
|
|
1722
1577
|
|
|
1723
1578
|
var styles = useMultiStyleConfig("CustomImageWrapper", {
|
|
1724
1579
|
ratio: aspectRatio,
|
|
@@ -1741,20 +1596,20 @@ var Image = /*#__PURE__*/chakra(function (props) {
|
|
|
1741
1596
|
additionalWrapperStyles = _props$additionalWrap2 === void 0 ? {} : _props$additionalWrap2,
|
|
1742
1597
|
alt = props.alt,
|
|
1743
1598
|
_props$aspectRatio2 = props.aspectRatio,
|
|
1744
|
-
aspectRatio = _props$aspectRatio2 === void 0 ?
|
|
1599
|
+
aspectRatio = _props$aspectRatio2 === void 0 ? "original" : _props$aspectRatio2,
|
|
1745
1600
|
caption = props.caption,
|
|
1746
1601
|
_props$className2 = props.className,
|
|
1747
1602
|
className = _props$className2 === void 0 ? "" : _props$className2,
|
|
1748
1603
|
component = props.component,
|
|
1749
1604
|
credit = props.credit,
|
|
1750
1605
|
_props$imageType = props.imageType,
|
|
1751
|
-
imageType = _props$imageType === void 0 ?
|
|
1606
|
+
imageType = _props$imageType === void 0 ? "default" : _props$imageType,
|
|
1752
1607
|
_props$size2 = props.size,
|
|
1753
|
-
size = _props$size2 === void 0 ?
|
|
1608
|
+
size = _props$size2 === void 0 ? "default" : _props$size2,
|
|
1754
1609
|
src = props.src,
|
|
1755
1610
|
rest = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
1756
1611
|
|
|
1757
|
-
var useImageWrapper = aspectRatio !==
|
|
1612
|
+
var useImageWrapper = aspectRatio !== "original";
|
|
1758
1613
|
var styles = useMultiStyleConfig("CustomImage", {
|
|
1759
1614
|
variant: imageType,
|
|
1760
1615
|
size: size
|
|
@@ -1789,39 +1644,7 @@ var Image = /*#__PURE__*/chakra(function (props) {
|
|
|
1789
1644
|
}, credit))) : finalImage;
|
|
1790
1645
|
});
|
|
1791
1646
|
|
|
1792
|
-
|
|
1793
|
-
* React hook used to get the window size on device resizing.
|
|
1794
|
-
* Based on https://usehooks-typescript.com/react-hook/use-window-size
|
|
1795
|
-
*/
|
|
1796
|
-
|
|
1797
|
-
function useWindowSize() {
|
|
1798
|
-
var _React$useState = React__default.useState({
|
|
1799
|
-
width: 0,
|
|
1800
|
-
height: 0
|
|
1801
|
-
}),
|
|
1802
|
-
windowSize = _React$useState[0],
|
|
1803
|
-
setWindowSize = _React$useState[1];
|
|
1804
|
-
|
|
1805
|
-
React__default.useEffect(function () {
|
|
1806
|
-
var handler = function handler() {
|
|
1807
|
-
setWindowSize({
|
|
1808
|
-
width: window.innerWidth,
|
|
1809
|
-
height: window.innerHeight
|
|
1810
|
-
});
|
|
1811
|
-
}; // Set size at the first client-side load
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
handler();
|
|
1815
|
-
window.addEventListener("resize", handler); // Remove event listener on cleanup
|
|
1816
|
-
|
|
1817
|
-
return function () {
|
|
1818
|
-
window.removeEventListener("resize", handler);
|
|
1819
|
-
};
|
|
1820
|
-
}, []);
|
|
1821
|
-
return windowSize;
|
|
1822
|
-
}
|
|
1823
|
-
|
|
1824
|
-
var _excluded$A = ["children"],
|
|
1647
|
+
var _excluded$B = ["children"],
|
|
1825
1648
|
_excluded2$1 = ["bottomBorder", "children", "isCentered", "layout", "topBorder"],
|
|
1826
1649
|
_excluded3 = ["backgroundColor", "children", "className", "foregroundColor", "id", "imageProps", "isAlignedRightActions", "isBordered", "isCentered", "layout", "mainActionLink"];
|
|
1827
1650
|
/**
|
|
@@ -1866,12 +1689,12 @@ var CardHeading = /*#__PURE__*/chakra(Heading); // CardContent child-component
|
|
|
1866
1689
|
|
|
1867
1690
|
var CardContent = /*#__PURE__*/chakra(function (props) {
|
|
1868
1691
|
var children = props.children,
|
|
1869
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1692
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$B);
|
|
1870
1693
|
|
|
1871
1694
|
var styles = useStyleConfig("CardContent");
|
|
1872
|
-
return children
|
|
1695
|
+
return children ? createElement(Box, Object.assign({
|
|
1873
1696
|
__css: styles
|
|
1874
|
-
}, rest), children);
|
|
1697
|
+
}, rest), children) : null;
|
|
1875
1698
|
}); // CardActions child-component
|
|
1876
1699
|
|
|
1877
1700
|
var CardActions = /*#__PURE__*/chakra(function (props) {
|
|
@@ -1888,9 +1711,9 @@ var CardActions = /*#__PURE__*/chakra(function (props) {
|
|
|
1888
1711
|
layout: layout,
|
|
1889
1712
|
topBorder: topBorder
|
|
1890
1713
|
});
|
|
1891
|
-
return children
|
|
1714
|
+
return children ? createElement(Box, Object.assign({
|
|
1892
1715
|
__css: styles
|
|
1893
|
-
}, rest), children);
|
|
1716
|
+
}, rest), children) : null;
|
|
1894
1717
|
});
|
|
1895
1718
|
/**
|
|
1896
1719
|
* If `mainActionLink` is passed, then this adds Chakra's `LinkBox` wrapper
|
|
@@ -1929,12 +1752,12 @@ var Card = /*#__PURE__*/chakra(function (props) {
|
|
|
1929
1752
|
_props$imageProps = props.imageProps,
|
|
1930
1753
|
imageProps = _props$imageProps === void 0 ? {
|
|
1931
1754
|
alt: "",
|
|
1932
|
-
aspectRatio:
|
|
1755
|
+
aspectRatio: "square",
|
|
1933
1756
|
caption: undefined,
|
|
1934
1757
|
component: undefined,
|
|
1935
1758
|
credit: undefined,
|
|
1936
1759
|
isAtEnd: false,
|
|
1937
|
-
size:
|
|
1760
|
+
size: "default",
|
|
1938
1761
|
src: ""
|
|
1939
1762
|
} : _props$imageProps,
|
|
1940
1763
|
_props$isAlignedRight = props.isAlignedRightActions,
|
|
@@ -1943,34 +1766,34 @@ var Card = /*#__PURE__*/chakra(function (props) {
|
|
|
1943
1766
|
_props$isCentered = props.isCentered,
|
|
1944
1767
|
isCentered = _props$isCentered === void 0 ? false : _props$isCentered,
|
|
1945
1768
|
_props$layout = props.layout,
|
|
1946
|
-
layout = _props$layout === void 0 ?
|
|
1769
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
1947
1770
|
mainActionLink = props.mainActionLink,
|
|
1948
1771
|
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
1949
1772
|
|
|
1950
1773
|
var hasImage = imageProps.src || imageProps.component;
|
|
1951
1774
|
|
|
1952
|
-
var _React$useState = useState(imageProps.size),
|
|
1775
|
+
var _React$useState = useState(imageProps.size || "default"),
|
|
1953
1776
|
finalImageSize = _React$useState[0],
|
|
1954
1777
|
setFinalImageSize = _React$useState[1];
|
|
1955
1778
|
|
|
1956
|
-
var finalImageAspectRatio = imageProps.component ?
|
|
1779
|
+
var finalImageAspectRatio = imageProps.component ? "original" : imageProps.aspectRatio;
|
|
1957
1780
|
var customColors = {};
|
|
1958
1781
|
var cardContents = [];
|
|
1959
1782
|
var cardRightContents = [];
|
|
1960
1783
|
var windowDimensions = useWindowSize();
|
|
1961
1784
|
var cardHeadingCount = 0;
|
|
1962
1785
|
|
|
1963
|
-
if (imageProps.component && imageProps.aspectRatio !==
|
|
1786
|
+
if (imageProps.component && imageProps.aspectRatio !== "square") {
|
|
1964
1787
|
console.warn("NYPL Reservoir Card: Both the `imageProps.component` and `imageProps.aspectRatio` " + "props were set but `imageProps.aspectRatio` will be ignored in favor " + "of the aspect ratio on `imageProps.component` prop.");
|
|
1965
1788
|
} // The `Card`'s image should always display as 100% width on mobile. To
|
|
1966
|
-
// achieve this, we set the size to `
|
|
1789
|
+
// achieve this, we set the size to `"default"` only when the
|
|
1967
1790
|
// viewport is less than "600px". Otherwise, we set the size to
|
|
1968
1791
|
// the value passed in via `imageSize`.
|
|
1969
1792
|
|
|
1970
1793
|
|
|
1971
1794
|
useEffect(function () {
|
|
1972
1795
|
if (windowDimensions.width < 600) {
|
|
1973
|
-
setFinalImageSize(
|
|
1796
|
+
setFinalImageSize("default");
|
|
1974
1797
|
} else {
|
|
1975
1798
|
setFinalImageSize(imageProps.size);
|
|
1976
1799
|
}
|
|
@@ -1998,11 +1821,11 @@ var Card = /*#__PURE__*/chakra(function (props) {
|
|
|
1998
1821
|
mainActionLink: mainActionLink
|
|
1999
1822
|
}, child.props.children) : child.props.children;
|
|
2000
1823
|
var elem = cloneElement(child, {
|
|
2001
|
-
additionalStyles: _extends({}, styles.heading, child.props.additionalStyles),
|
|
2002
1824
|
key: key,
|
|
2003
1825
|
// Override the child text with the potential `CardLinkOverlay`.
|
|
2004
1826
|
children: newChildren,
|
|
2005
|
-
layout: layout
|
|
1827
|
+
layout: layout,
|
|
1828
|
+
__css: styles.heading
|
|
2006
1829
|
});
|
|
2007
1830
|
cardContents.push(elem);
|
|
2008
1831
|
cardHeadingCount++;
|
|
@@ -2021,7 +1844,7 @@ var Card = /*#__PURE__*/chakra(function (props) {
|
|
|
2021
1844
|
// `CardContent` component when in the row layout.
|
|
2022
1845
|
|
|
2023
1846
|
|
|
2024
|
-
if (isAlignedRightActions && layout ===
|
|
1847
|
+
if (isAlignedRightActions && layout === "row") {
|
|
2025
1848
|
cardRightContents.push(_elem2);
|
|
2026
1849
|
} else {
|
|
2027
1850
|
cardContents.push(_elem2);
|
|
@@ -2053,15 +1876,13 @@ var Card = /*#__PURE__*/chakra(function (props) {
|
|
|
2053
1876
|
}, cardRightContents) : null));
|
|
2054
1877
|
});
|
|
2055
1878
|
|
|
2056
|
-
var _excluded$
|
|
1879
|
+
var _excluded$C = ["ariaAtomic", "ariaLive", "className", "id", "isInvalid", "text"];
|
|
2057
1880
|
/**
|
|
2058
1881
|
* Helper or error text for forms components.
|
|
2059
1882
|
*/
|
|
2060
1883
|
|
|
2061
1884
|
var HelperErrorText = /*#__PURE__*/chakra(function (_ref) {
|
|
2062
|
-
var _ref$
|
|
2063
|
-
additionalStyles = _ref$additionalStyles === void 0 ? {} : _ref$additionalStyles,
|
|
2064
|
-
_ref$ariaAtomic = _ref.ariaAtomic,
|
|
1885
|
+
var _ref$ariaAtomic = _ref.ariaAtomic,
|
|
2065
1886
|
ariaAtomic = _ref$ariaAtomic === void 0 ? true : _ref$ariaAtomic,
|
|
2066
1887
|
_ref$ariaLive = _ref.ariaLive,
|
|
2067
1888
|
ariaLive = _ref$ariaLive === void 0 ? "polite" : _ref$ariaLive,
|
|
@@ -2071,7 +1892,7 @@ var HelperErrorText = /*#__PURE__*/chakra(function (_ref) {
|
|
|
2071
1892
|
_ref$isInvalid = _ref.isInvalid,
|
|
2072
1893
|
isInvalid = _ref$isInvalid === void 0 ? false : _ref$isInvalid,
|
|
2073
1894
|
text = _ref.text,
|
|
2074
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1895
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
2075
1896
|
|
|
2076
1897
|
// Only announce the text in the invalid state.
|
|
2077
1898
|
var announceAriaLive = isInvalid;
|
|
@@ -2079,15 +1900,13 @@ var HelperErrorText = /*#__PURE__*/chakra(function (_ref) {
|
|
|
2079
1900
|
isInvalid: isInvalid
|
|
2080
1901
|
});
|
|
2081
1902
|
|
|
2082
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
2083
|
-
|
|
2084
1903
|
var props = _extends({
|
|
2085
1904
|
"aria-atomic": ariaAtomic,
|
|
2086
1905
|
"aria-live": announceAriaLive ? ariaLive : "off",
|
|
2087
1906
|
className: className,
|
|
2088
1907
|
"data-isinvalid": isInvalid,
|
|
2089
1908
|
id: id,
|
|
2090
|
-
__css:
|
|
1909
|
+
__css: styles
|
|
2091
1910
|
}, rest);
|
|
2092
1911
|
|
|
2093
1912
|
return typeof text === "string" ? createElement(Box, Object.assign({}, props, {
|
|
@@ -2097,7 +1916,7 @@ var HelperErrorText = /*#__PURE__*/chakra(function (_ref) {
|
|
|
2097
1916
|
})) : createElement(Box, Object.assign({}, props), text);
|
|
2098
1917
|
});
|
|
2099
1918
|
|
|
2100
|
-
var _excluded$
|
|
1919
|
+
var _excluded$D = ["isIndeterminate", "isChecked"],
|
|
2101
1920
|
_excluded2$2 = ["className", "invalidText", "helperText", "id", "isChecked", "isDisabled", "isIndeterminate", "isInvalid", "isRequired", "labelText", "name", "showHelperInvalidText", "showLabel", "value"];
|
|
2102
1921
|
var onChangeDefault = function onChangeDefault() {
|
|
2103
1922
|
return;
|
|
@@ -2107,7 +1926,7 @@ function CheckboxIcon(props) {
|
|
|
2107
1926
|
// We don't need the `isIndeterminate` or `isChecked` props but it
|
|
2108
1927
|
// causes rendering issues on the SVG element, so we remove them
|
|
2109
1928
|
// before passing all the props to the `Icon` component.
|
|
2110
|
-
var rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1929
|
+
var rest = _objectWithoutPropertiesLoose(props, _excluded$D);
|
|
2111
1930
|
|
|
2112
1931
|
return createElement(Icon$2, Object.assign({
|
|
2113
1932
|
viewBox: "0 0 24 24"
|
|
@@ -2181,14 +2000,14 @@ var Checkbox = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
2181
2000
|
alignItems: "flex-start",
|
|
2182
2001
|
__css: styles
|
|
2183
2002
|
}, ariaAttributes, rest), showLabel && labelText), footnote && showHelperInvalidText && createElement(HelperErrorText, {
|
|
2184
|
-
additionalStyles: styles.helperErrorText,
|
|
2185
2003
|
id: id + "-helperText",
|
|
2186
2004
|
isInvalid: isInvalid,
|
|
2187
|
-
text: footnote
|
|
2005
|
+
text: footnote,
|
|
2006
|
+
__css: styles.helperErrorText
|
|
2188
2007
|
}));
|
|
2189
2008
|
}));
|
|
2190
2009
|
|
|
2191
|
-
var _excluded$
|
|
2010
|
+
var _excluded$E = ["children", "className", "id", "isLegendHidden", "isRequired", "legendText", "showRequiredLabel"];
|
|
2192
2011
|
/**
|
|
2193
2012
|
* A wrapper component that renders a `fieldset` element along with a `legend`
|
|
2194
2013
|
* element as its first child. Commonly used to wrap form components.
|
|
@@ -2205,7 +2024,7 @@ var Fieldset = /*#__PURE__*/chakra(function (_ref) {
|
|
|
2205
2024
|
legendText = _ref.legendText,
|
|
2206
2025
|
_ref$showRequiredLabe = _ref.showRequiredLabel,
|
|
2207
2026
|
showRequiredLabel = _ref$showRequiredLabe === void 0 ? true : _ref$showRequiredLabe,
|
|
2208
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2027
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
2209
2028
|
|
|
2210
2029
|
var styles = useMultiStyleConfig("Fieldset", {
|
|
2211
2030
|
isLegendHidden: isLegendHidden
|
|
@@ -2357,7 +2176,7 @@ var reservoirSpacingTokens = {
|
|
|
2357
2176
|
};
|
|
2358
2177
|
var spacing = /*#__PURE__*/_extends({}, chakraSpacingTokens, reservoirSpacingTokens);
|
|
2359
2178
|
|
|
2360
|
-
var _excluded$
|
|
2179
|
+
var _excluded$F = ["children", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
|
|
2361
2180
|
/**
|
|
2362
2181
|
* Wrapper component to wrap `Checkbox` components. Can be displayed in a
|
|
2363
2182
|
* column or in a row. The `CheckboxGroup` component renders all the necessary
|
|
@@ -2383,7 +2202,7 @@ var CheckboxGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
|
|
|
2383
2202
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
2384
2203
|
labelText = props.labelText,
|
|
2385
2204
|
_props$layout = props.layout,
|
|
2386
|
-
layout = _props$layout === void 0 ?
|
|
2205
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
2387
2206
|
name = props.name,
|
|
2388
2207
|
onChange = props.onChange,
|
|
2389
2208
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
@@ -2392,11 +2211,11 @@ var CheckboxGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
|
|
|
2392
2211
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
2393
2212
|
_props$showRequiredLa = props.showRequiredLabel,
|
|
2394
2213
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
2395
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2214
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$F);
|
|
2396
2215
|
|
|
2397
2216
|
var footnote = isInvalid ? invalidText : helperText;
|
|
2398
|
-
var spacingProp = layout === LayoutTypes.Column ? spacing.input.group["default"].vstack : spacing.input.group["default"].hstack;
|
|
2399
2217
|
var newChildren = [];
|
|
2218
|
+
var spacingProp = layout === "column" ? spacing.input.group["default"].vstack : spacing.input.group["default"].hstack;
|
|
2400
2219
|
var checkboxProps = defaultValue && onChange ? {
|
|
2401
2220
|
defaultValue: defaultValue,
|
|
2402
2221
|
onChange: onChange
|
|
@@ -2443,45 +2262,25 @@ var CheckboxGroup = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props
|
|
|
2443
2262
|
direction: [layout],
|
|
2444
2263
|
spacing: spacingProp,
|
|
2445
2264
|
ref: ref,
|
|
2446
|
-
"aria-label": !showLabel ? labelText :
|
|
2265
|
+
"aria-label": !showLabel ? labelText : undefined,
|
|
2447
2266
|
sx: styles.stack
|
|
2448
2267
|
}, newChildren)), footnote && showHelperInvalidText && createElement(HelperErrorText, {
|
|
2449
|
-
additionalStyles: styles.helperErrorText,
|
|
2450
2268
|
id: id + "-helperErrorText",
|
|
2451
2269
|
isInvalid: isInvalid,
|
|
2452
|
-
text: footnote
|
|
2270
|
+
text: footnote,
|
|
2271
|
+
__css: styles.helperErrorText
|
|
2453
2272
|
}));
|
|
2454
2273
|
}));
|
|
2455
2274
|
|
|
2456
|
-
var
|
|
2457
|
-
|
|
2458
|
-
(function (DatePickerTypes) {
|
|
2459
|
-
DatePickerTypes["Full"] = "full";
|
|
2460
|
-
DatePickerTypes["Month"] = "month";
|
|
2461
|
-
DatePickerTypes["Year"] = "year";
|
|
2462
|
-
})(DatePickerTypes || (DatePickerTypes = {}));
|
|
2463
|
-
|
|
2464
|
-
var GridGaps;
|
|
2465
|
-
|
|
2466
|
-
(function (GridGaps) {
|
|
2467
|
-
GridGaps["ExtraExtraSmall"] = "grid.xxs";
|
|
2468
|
-
GridGaps["ExtraSmall"] = "grid.xs";
|
|
2469
|
-
GridGaps["Small"] = "grid.s";
|
|
2470
|
-
GridGaps["Medium"] = "grid.m";
|
|
2471
|
-
GridGaps["Large"] = "grid.l";
|
|
2472
|
-
GridGaps["ExtraLarge"] = "grid.xl";
|
|
2473
|
-
GridGaps["ExtraExtraLarge"] = "grid.xxl";
|
|
2474
|
-
})(GridGaps || (GridGaps = {}));
|
|
2475
|
-
|
|
2476
|
-
var _excluded$F = ["children", "columns", "className", "gap", "id"];
|
|
2275
|
+
var _excluded$G = ["children", "columns", "className", "gap", "id"];
|
|
2477
2276
|
var SimpleGrid = /*#__PURE__*/chakra(function (props) {
|
|
2478
2277
|
var children = props.children,
|
|
2479
2278
|
columns = props.columns,
|
|
2480
2279
|
className = props.className,
|
|
2481
2280
|
_props$gap = props.gap,
|
|
2482
|
-
gap = _props$gap === void 0 ?
|
|
2281
|
+
gap = _props$gap === void 0 ? "grid.l" : _props$gap,
|
|
2483
2282
|
id = props.id,
|
|
2484
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2283
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$G);
|
|
2485
2284
|
|
|
2486
2285
|
var responsiveCols = columns ? {
|
|
2487
2286
|
base: 1,
|
|
@@ -2503,7 +2302,7 @@ var SimpleGrid = /*#__PURE__*/chakra(function (props) {
|
|
|
2503
2302
|
}
|
|
2504
2303
|
});
|
|
2505
2304
|
|
|
2506
|
-
var _excluded$
|
|
2305
|
+
var _excluded$H = ["children", "className", "gap", "id"],
|
|
2507
2306
|
_excluded2$3 = ["children", "className", "gap", "id"],
|
|
2508
2307
|
_excluded3$1 = ["action", "children", "className", "gap", "id", "method", "onSubmit"];
|
|
2509
2308
|
/** FormRow child-component */
|
|
@@ -2513,7 +2312,7 @@ var FormRow = /*#__PURE__*/chakra(function (props) {
|
|
|
2513
2312
|
className = props.className,
|
|
2514
2313
|
gap = props.gap,
|
|
2515
2314
|
id = props.id,
|
|
2516
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2315
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$H);
|
|
2517
2316
|
|
|
2518
2317
|
var count = Children.count(children);
|
|
2519
2318
|
var alteredChildren = Children.map(children, function (child, i) {
|
|
@@ -2558,7 +2357,7 @@ var Form = /*#__PURE__*/chakra(function (props) {
|
|
|
2558
2357
|
children = props.children,
|
|
2559
2358
|
className = props.className,
|
|
2560
2359
|
_props$gap = props.gap,
|
|
2561
|
-
gap = _props$gap === void 0 ?
|
|
2360
|
+
gap = _props$gap === void 0 ? "grid.l" : _props$gap,
|
|
2562
2361
|
id = props.id,
|
|
2563
2362
|
method = props.method,
|
|
2564
2363
|
onSubmit = props.onSubmit,
|
|
@@ -2593,61 +2392,7 @@ var Form = /*#__PURE__*/chakra(function (props) {
|
|
|
2593
2392
|
}
|
|
2594
2393
|
});
|
|
2595
2394
|
|
|
2596
|
-
|
|
2597
|
-
var TextInputTypes;
|
|
2598
|
-
|
|
2599
|
-
(function (TextInputTypes) {
|
|
2600
|
-
TextInputTypes["email"] = "email";
|
|
2601
|
-
TextInputTypes["hidden"] = "hidden"; // eslint-disable-next-line id-blacklist
|
|
2602
|
-
|
|
2603
|
-
TextInputTypes["number"] = "number";
|
|
2604
|
-
TextInputTypes["password"] = "password";
|
|
2605
|
-
TextInputTypes["text"] = "text";
|
|
2606
|
-
TextInputTypes["textarea"] = "textarea";
|
|
2607
|
-
TextInputTypes["tel"] = "tel";
|
|
2608
|
-
TextInputTypes["url"] = "url";
|
|
2609
|
-
})(TextInputTypes || (TextInputTypes = {})); // Only used internally in `TextInput`.
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
var TextInputFormats;
|
|
2613
|
-
|
|
2614
|
-
(function (TextInputFormats) {
|
|
2615
|
-
TextInputFormats["email"] = "jdoe@domain.com";
|
|
2616
|
-
TextInputFormats["hidden"] = ""; // eslint-disable-next-line id-blacklist
|
|
2617
|
-
|
|
2618
|
-
TextInputFormats["number"] = "";
|
|
2619
|
-
TextInputFormats["password"] = "";
|
|
2620
|
-
TextInputFormats["text"] = "";
|
|
2621
|
-
TextInputFormats["tel"] = "(123) 123-1234";
|
|
2622
|
-
TextInputFormats["textarea"] = "";
|
|
2623
|
-
TextInputFormats["url"] = "https://domain.com";
|
|
2624
|
-
})(TextInputFormats || (TextInputFormats = {})); // Only used internally in `TextInput` and `SearchBar`.
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
var TextInputVariants;
|
|
2628
|
-
|
|
2629
|
-
(function (TextInputVariants) {
|
|
2630
|
-
TextInputVariants["Default"] = "default";
|
|
2631
|
-
TextInputVariants["SearchBar"] = "searchBar";
|
|
2632
|
-
TextInputVariants["SearchBarSelect"] = "searchBarSelect";
|
|
2633
|
-
})(TextInputVariants || (TextInputVariants = {}));
|
|
2634
|
-
/*
|
|
2635
|
-
export enum TextInputPatterns {
|
|
2636
|
-
// eslint-disable-next-line prettier/prettier
|
|
2637
|
-
email = "[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}$",
|
|
2638
|
-
hidden = "",
|
|
2639
|
-
// eslint-disable-next-line id-blacklist
|
|
2640
|
-
number = "",
|
|
2641
|
-
password = "",
|
|
2642
|
-
text = "",
|
|
2643
|
-
// eslint-disable-next-line prettier/prettier
|
|
2644
|
-
tel = "([0-9]{3}) [0-9]{3}-[0-9]{4}",
|
|
2645
|
-
textarea = "textarea",
|
|
2646
|
-
url = "https?://.+",
|
|
2647
|
-
}
|
|
2648
|
-
*/
|
|
2649
|
-
|
|
2650
|
-
var _excluded$H = ["children", "className", "htmlFor", "id", "isInlined", "isRequired"];
|
|
2395
|
+
var _excluded$I = ["children", "className", "htmlFor", "id", "isInlined", "isRequired"];
|
|
2651
2396
|
/**
|
|
2652
2397
|
* A label for form inputs. It should never be used alone.
|
|
2653
2398
|
*/
|
|
@@ -2661,7 +2406,7 @@ var Label = /*#__PURE__*/chakra(function (props) {
|
|
|
2661
2406
|
isInlined = _props$isInlined === void 0 ? false : _props$isInlined,
|
|
2662
2407
|
_props$isRequired = props.isRequired,
|
|
2663
2408
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
2664
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2409
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$I);
|
|
2665
2410
|
|
|
2666
2411
|
var styles = useStyleConfig("Label", {
|
|
2667
2412
|
isInlined: isInlined
|
|
@@ -2680,7 +2425,17 @@ var Label = /*#__PURE__*/chakra(function (props) {
|
|
|
2680
2425
|
}, rest), children, isRequired && createElement("span", null, " (Required)"));
|
|
2681
2426
|
});
|
|
2682
2427
|
|
|
2683
|
-
var _excluded$
|
|
2428
|
+
var _excluded$J = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "max", "maxLength", "min", "name", "onChange", "onClick", "onFocus", "placeholder", "showHelperInvalidText", "showLabel", "showRequiredLabel", "step", "textInputType", "type", "value"];
|
|
2429
|
+
|
|
2430
|
+
var TextInputFormats = {
|
|
2431
|
+
email: "jdoe@domain.com",
|
|
2432
|
+
hidden: "",
|
|
2433
|
+
password: "",
|
|
2434
|
+
text: "",
|
|
2435
|
+
tel: "(123) 123-1234",
|
|
2436
|
+
textarea: "",
|
|
2437
|
+
url: "https://domain.com"
|
|
2438
|
+
};
|
|
2684
2439
|
/**
|
|
2685
2440
|
* Renders either an `input` element with a specified type or a `textarea`
|
|
2686
2441
|
* element. All types will render an accessible `Label` component and an
|
|
@@ -2688,11 +2443,7 @@ var _excluded$I = ["additionalStyles", "attributes", "className", "defaultValue"
|
|
|
2688
2443
|
*/
|
|
2689
2444
|
|
|
2690
2445
|
var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
2691
|
-
var
|
|
2692
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
2693
|
-
_props$attributes = props.attributes,
|
|
2694
|
-
attributes = _props$attributes === void 0 ? {} : _props$attributes,
|
|
2695
|
-
className = props.className,
|
|
2446
|
+
var className = props.className,
|
|
2696
2447
|
defaultValue = props.defaultValue,
|
|
2697
2448
|
helperText = props.helperText,
|
|
2698
2449
|
id = props.id,
|
|
@@ -2704,8 +2455,13 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
2704
2455
|
_props$isRequired = props.isRequired,
|
|
2705
2456
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
2706
2457
|
labelText = props.labelText,
|
|
2458
|
+
max = props.max,
|
|
2459
|
+
maxLength = props.maxLength,
|
|
2460
|
+
min = props.min,
|
|
2707
2461
|
name = props.name,
|
|
2708
2462
|
onChange = props.onChange,
|
|
2463
|
+
onClick = props.onClick,
|
|
2464
|
+
onFocus = props.onFocus,
|
|
2709
2465
|
placeholder = props.placeholder,
|
|
2710
2466
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
2711
2467
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
@@ -2716,22 +2472,20 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
2716
2472
|
_props$step = props.step,
|
|
2717
2473
|
step = _props$step === void 0 ? 1 : _props$step,
|
|
2718
2474
|
_props$textInputType = props.textInputType,
|
|
2719
|
-
textInputType = _props$textInputType === void 0 ?
|
|
2475
|
+
textInputType = _props$textInputType === void 0 ? "default" : _props$textInputType,
|
|
2720
2476
|
_props$type = props.type,
|
|
2721
|
-
type = _props$type === void 0 ?
|
|
2477
|
+
type = _props$type === void 0 ? "text" : _props$type,
|
|
2722
2478
|
value = props.value,
|
|
2723
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2479
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$J);
|
|
2724
2480
|
|
|
2725
2481
|
var styles = useMultiStyleConfig("TextInput", {
|
|
2726
2482
|
variant: textInputType
|
|
2727
2483
|
});
|
|
2728
|
-
|
|
2729
|
-
var
|
|
2730
|
-
|
|
2731
|
-
var isTextArea = type === TextInputTypes.textarea;
|
|
2732
|
-
var isHidden = type === TextInputTypes.hidden;
|
|
2484
|
+
var isTextArea = type === "textarea";
|
|
2485
|
+
var isHidden = type === "hidden";
|
|
2733
2486
|
var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
|
|
2734
2487
|
var footnote = isInvalid ? finalInvalidText : helperText;
|
|
2488
|
+
var ariaAttributes = {};
|
|
2735
2489
|
var fieldOutput;
|
|
2736
2490
|
var options;
|
|
2737
2491
|
|
|
@@ -2740,13 +2494,13 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
2740
2494
|
}
|
|
2741
2495
|
|
|
2742
2496
|
if (!showLabel) {
|
|
2743
|
-
|
|
2497
|
+
ariaAttributes["aria-label"] = labelText && footnote ? labelText + " - " + footnote : labelText;
|
|
2744
2498
|
} else if (helperText) {
|
|
2745
|
-
|
|
2499
|
+
ariaAttributes["aria-describedby"] = id + "-helperText";
|
|
2746
2500
|
}
|
|
2747
2501
|
|
|
2748
|
-
if (type ===
|
|
2749
|
-
var example = TextInputFormats[type];
|
|
2502
|
+
if (type === "tel" || type === "url" || type === "email") {
|
|
2503
|
+
var example = TextInputFormats[type] || "";
|
|
2750
2504
|
footnote = createElement(Fragment, null, "Ex: ", example, createElement("br", null), footnote);
|
|
2751
2505
|
} // When the type is "hidden", the input element needs fewer attributes.
|
|
2752
2506
|
|
|
@@ -2764,13 +2518,18 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
2764
2518
|
isDisabled: isDisabled,
|
|
2765
2519
|
isRequired: isRequired,
|
|
2766
2520
|
isInvalid: isInvalid,
|
|
2767
|
-
|
|
2521
|
+
max: max,
|
|
2522
|
+
maxLength: maxLength,
|
|
2523
|
+
min: min,
|
|
2768
2524
|
name: name,
|
|
2769
2525
|
onChange: onChange,
|
|
2526
|
+
onClick: onClick,
|
|
2527
|
+
onFocus: onFocus,
|
|
2528
|
+
placeholder: placeholder,
|
|
2770
2529
|
ref: ref,
|
|
2771
2530
|
// The `step` attribute is useful for the number type.
|
|
2772
|
-
step: type ===
|
|
2773
|
-
},
|
|
2531
|
+
step: type === "number" ? step : null
|
|
2532
|
+
}, ariaAttributes, rest); // For `input` and `textarea`, all attributes are the same but `input`
|
|
2774
2533
|
// also needs `type` and `value` to render correctly.
|
|
2775
2534
|
|
|
2776
2535
|
if (!isTextArea) {
|
|
@@ -2779,16 +2538,16 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
2779
2538
|
value: value
|
|
2780
2539
|
}, options);
|
|
2781
2540
|
fieldOutput = createElement(Input, Object.assign({}, options, {
|
|
2782
|
-
__css:
|
|
2541
|
+
__css: styles.input
|
|
2783
2542
|
}));
|
|
2784
2543
|
} else {
|
|
2785
2544
|
fieldOutput = createElement(Textarea, Object.assign({}, options, {
|
|
2786
|
-
__css:
|
|
2545
|
+
__css: styles.textarea
|
|
2787
2546
|
}), value);
|
|
2788
2547
|
}
|
|
2789
2548
|
|
|
2790
2549
|
return createElement(Box, Object.assign({
|
|
2791
|
-
__css:
|
|
2550
|
+
__css: styles,
|
|
2792
2551
|
className: className
|
|
2793
2552
|
}, rest), labelText && showLabel && !isHidden && createElement(Label, {
|
|
2794
2553
|
htmlFor: id,
|
|
@@ -2801,7 +2560,7 @@ var TextInput = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, re
|
|
|
2801
2560
|
}));
|
|
2802
2561
|
}));
|
|
2803
2562
|
|
|
2804
|
-
var _excluded$
|
|
2563
|
+
var _excluded$K = ["children", "className", "id", "isDateRange", "isRequired", "labelText", "showLabel", "showRequiredLabel"],
|
|
2805
2564
|
_excluded2$4 = ["className", "dateFormat", "dateType", "helperText", "helperTextFrom", "helperTextTo", "id", "initialDate", "initialDateTo", "invalidText", "isDateRange", "isDisabled", "isInvalid", "isRequired", "labelText", "maxDate", "minDate", "nameFrom", "nameTo", "onChange", "refTo", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
|
|
2806
2565
|
/**
|
|
2807
2566
|
* A Design System `TextInput` component that is used as the custom input
|
|
@@ -2813,17 +2572,15 @@ var _excluded$J = ["children", "className", "id", "isDateRange", "isRequired", "
|
|
|
2813
2572
|
*/
|
|
2814
2573
|
|
|
2815
2574
|
var CustomTextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
2816
|
-
var
|
|
2817
|
-
additionalStyles = _ref$additionalStyles === void 0 ? {} : _ref$additionalStyles,
|
|
2818
|
-
attributes = _ref.attributes,
|
|
2819
|
-
dsId = _ref.dsId,
|
|
2820
|
-
dsRef = _ref.dsRef,
|
|
2575
|
+
var dsRef = _ref.dsRef,
|
|
2821
2576
|
helperText = _ref.helperText,
|
|
2577
|
+
id = _ref.id,
|
|
2822
2578
|
invalidText = _ref.invalidText,
|
|
2823
2579
|
isDisabled = _ref.isDisabled,
|
|
2824
2580
|
isInvalid = _ref.isInvalid,
|
|
2825
2581
|
isRequired = _ref.isRequired,
|
|
2826
2582
|
labelText = _ref.labelText,
|
|
2583
|
+
name = _ref.name,
|
|
2827
2584
|
onChange = _ref.onChange,
|
|
2828
2585
|
onClick = _ref.onClick,
|
|
2829
2586
|
showLabel = _ref.showLabel,
|
|
@@ -2831,26 +2588,24 @@ var CustomTextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
2831
2588
|
showRequiredLabel = _ref.showRequiredLabel,
|
|
2832
2589
|
value = _ref.value;
|
|
2833
2590
|
return React__default.createElement(TextInput, {
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
value: value,
|
|
2838
|
-
labelText: labelText,
|
|
2591
|
+
helperText: helperText,
|
|
2592
|
+
id: id,
|
|
2593
|
+
invalidText: invalidText,
|
|
2839
2594
|
isDisabled: isDisabled,
|
|
2595
|
+
isInvalid: isInvalid,
|
|
2840
2596
|
isRequired: isRequired,
|
|
2597
|
+
labelText: labelText,
|
|
2598
|
+
name: name,
|
|
2599
|
+
onChange: onChange,
|
|
2600
|
+
onClick: onClick,
|
|
2841
2601
|
showHelperInvalidText: showHelperInvalidText,
|
|
2602
|
+
showLabel: showLabel,
|
|
2842
2603
|
showRequiredLabel: showRequiredLabel,
|
|
2843
|
-
|
|
2844
|
-
helperText: helperText,
|
|
2845
|
-
invalidText: invalidText,
|
|
2604
|
+
value: value,
|
|
2846
2605
|
// Use either the specific prop-based or the `forwardRef` value.
|
|
2847
2606
|
// `react-datepicker` manipulates the `ref` value so when we
|
|
2848
2607
|
// want a specific ref, use the `dsRef` prop.
|
|
2849
|
-
ref: dsRef || ref
|
|
2850
|
-
attributes: _extends({}, attributes, {
|
|
2851
|
-
onClick: onClick
|
|
2852
|
-
}),
|
|
2853
|
-
additionalStyles: additionalStyles
|
|
2608
|
+
ref: dsRef || ref
|
|
2854
2609
|
});
|
|
2855
2610
|
});
|
|
2856
2611
|
/**
|
|
@@ -2869,7 +2624,7 @@ var DatePickerWrapper = /*#__PURE__*/chakra(function (_ref2) {
|
|
|
2869
2624
|
labelText = _ref2.labelText,
|
|
2870
2625
|
showLabel = _ref2.showLabel,
|
|
2871
2626
|
showRequiredLabel = _ref2.showRequiredLabel,
|
|
2872
|
-
rest = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
2627
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
|
|
2873
2628
|
|
|
2874
2629
|
return React__default.createElement(FormField, Object.assign({
|
|
2875
2630
|
id: id + "-form-field"
|
|
@@ -2899,7 +2654,7 @@ var DateRangeRow = function DateRangeRow(_ref3) {
|
|
|
2899
2654
|
children = _ref3.children;
|
|
2900
2655
|
return isDateRange ? React__default.createElement(FormRow, {
|
|
2901
2656
|
id: id + "-form-row",
|
|
2902
|
-
gap:
|
|
2657
|
+
gap: "grid.xs"
|
|
2903
2658
|
}, children) : React__default.createElement(React__default.Fragment, null, children);
|
|
2904
2659
|
};
|
|
2905
2660
|
/**
|
|
@@ -2912,7 +2667,7 @@ var DatePicker = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(fun
|
|
|
2912
2667
|
_props$dateFormat = props.dateFormat,
|
|
2913
2668
|
dateFormat = _props$dateFormat === void 0 ? "yyyy-MM-dd" : _props$dateFormat,
|
|
2914
2669
|
_props$dateType = props.dateType,
|
|
2915
|
-
dateType = _props$dateType === void 0 ?
|
|
2670
|
+
dateType = _props$dateType === void 0 ? "full" : _props$dateType,
|
|
2916
2671
|
helperText = props.helperText,
|
|
2917
2672
|
helperTextFrom = props.helperTextFrom,
|
|
2918
2673
|
helperTextTo = props.helperTextTo,
|
|
@@ -2967,7 +2722,7 @@ var DatePicker = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(fun
|
|
|
2967
2722
|
|
|
2968
2723
|
setFullDate(_extends({}, fullDate, (_extends2 = {}, _extends2[value] = date, _extends2)));
|
|
2969
2724
|
onChange && onChange(_extends({}, fullDate, (_extends3 = {}, _extends3[value] = date, _extends3)));
|
|
2970
|
-
}; // How many years to display in the
|
|
2725
|
+
}; // How many years to display in the "year" option.
|
|
2971
2726
|
|
|
2972
2727
|
|
|
2973
2728
|
var yearsToDisplay = 12; // Both `ReactDatePicker` components share some props.
|
|
@@ -2987,7 +2742,6 @@ var DatePicker = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(fun
|
|
|
2987
2742
|
}; // Both custom `TextInput` components share some props.
|
|
2988
2743
|
|
|
2989
2744
|
var baseCustomTextInputAttrs = {
|
|
2990
|
-
dsId: id + "-start",
|
|
2991
2745
|
isRequired: isRequired,
|
|
2992
2746
|
// In the date range type, don't display the "(Required)" text in
|
|
2993
2747
|
// individual input labels. It'll display in the legend element.
|
|
@@ -3000,7 +2754,7 @@ var DatePicker = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(fun
|
|
|
3000
2754
|
helperText: isDateRange ? helperTextFrom : helperText,
|
|
3001
2755
|
showHelperInvalidText: showHelperInvalidText,
|
|
3002
2756
|
invalidText: invalidText,
|
|
3003
|
-
|
|
2757
|
+
__css: finalStyles.subLabels
|
|
3004
2758
|
}; // These are attribute objects for the `react-datepicker` package component.
|
|
3005
2759
|
|
|
3006
2760
|
var startDatePickerAttrs = {};
|
|
@@ -3010,10 +2764,10 @@ var DatePicker = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(fun
|
|
|
3010
2764
|
|
|
3011
2765
|
var startLabelText = labelText; // Update the appropriate props for the selected date type to render.
|
|
3012
2766
|
|
|
3013
|
-
if (dateType ===
|
|
2767
|
+
if (dateType === "month") {
|
|
3014
2768
|
baseDatePickerAttrs["showMonthYearPicker"] = true;
|
|
3015
2769
|
baseDatePickerAttrs.dateFormat = "MM-yyyy";
|
|
3016
|
-
} else if (dateType ===
|
|
2770
|
+
} else if (dateType === "year") {
|
|
3017
2771
|
baseDatePickerAttrs["showYearPicker"] = true;
|
|
3018
2772
|
baseDatePickerAttrs["yearItemNumber"] = yearsToDisplay;
|
|
3019
2773
|
baseDatePickerAttrs.dateFormat = "yyyy";
|
|
@@ -3038,7 +2792,6 @@ var DatePicker = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(fun
|
|
|
3038
2792
|
|
|
3039
2793
|
if (isDateRange) {
|
|
3040
2794
|
var endCustomTextInputAttrs = _extends({}, baseCustomTextInputAttrs, {
|
|
3041
|
-
dsId: id + "-end",
|
|
3042
2795
|
helperText: helperTextTo
|
|
3043
2796
|
}); // These props are used to follow the pattern recommended by
|
|
3044
2797
|
// the react-datepicker plugin.
|
|
@@ -3057,32 +2810,30 @@ var DatePicker = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(fun
|
|
|
3057
2810
|
});
|
|
3058
2811
|
startLabelText = "From";
|
|
3059
2812
|
endDatePickerElement = React__default.createElement(ReactDatePicker, Object.assign({
|
|
3060
|
-
|
|
2813
|
+
customInput: React__default.createElement(CustomTextInput, Object.assign({
|
|
2814
|
+
dsRef: refTo,
|
|
2815
|
+
labelText: "To"
|
|
2816
|
+
}, endCustomTextInputAttrs)),
|
|
2817
|
+
id: id + "-end",
|
|
2818
|
+
name: nameTo,
|
|
3061
2819
|
onChange: function onChange(date) {
|
|
3062
2820
|
return onChangeDefault(date, "endDate");
|
|
3063
2821
|
},
|
|
3064
|
-
|
|
3065
|
-
labelText: "To",
|
|
3066
|
-
dsRef: refTo,
|
|
3067
|
-
attributes: {
|
|
3068
|
-
name: nameTo
|
|
3069
|
-
}
|
|
3070
|
-
}, endCustomTextInputAttrs))
|
|
2822
|
+
selected: fullDate.endDate
|
|
3071
2823
|
}, endDatePickerAttrs));
|
|
3072
2824
|
}
|
|
3073
2825
|
|
|
3074
2826
|
var startDatePickerElement = React__default.createElement(ReactDatePicker, Object.assign({
|
|
3075
|
-
|
|
2827
|
+
customInput: React__default.createElement(CustomTextInput, Object.assign({
|
|
2828
|
+
dsRef: ref,
|
|
2829
|
+
labelText: startLabelText
|
|
2830
|
+
}, baseCustomTextInputAttrs)),
|
|
2831
|
+
id: id + "-start",
|
|
2832
|
+
name: nameFrom,
|
|
3076
2833
|
onChange: function onChange(date) {
|
|
3077
2834
|
return onChangeDefault(date, "startDate");
|
|
3078
2835
|
},
|
|
3079
|
-
|
|
3080
|
-
labelText: startLabelText,
|
|
3081
|
-
dsRef: ref,
|
|
3082
|
-
attributes: {
|
|
3083
|
-
name: nameFrom
|
|
3084
|
-
}
|
|
3085
|
-
}, baseCustomTextInputAttrs))
|
|
2836
|
+
selected: fullDate.startDate
|
|
3086
2837
|
}, startDatePickerAttrs));
|
|
3087
2838
|
return React__default.createElement(DatePickerWrapper, Object.assign({
|
|
3088
2839
|
id: id,
|
|
@@ -3876,6 +3627,18 @@ var Button$1 = {
|
|
|
3876
3627
|
}
|
|
3877
3628
|
};
|
|
3878
3629
|
|
|
3630
|
+
var ButtonGroup$1 = {
|
|
3631
|
+
baseStyle: function baseStyle(_ref) {
|
|
3632
|
+
var buttonWidth = _ref.buttonWidth;
|
|
3633
|
+
return {
|
|
3634
|
+
width: buttonWidth === "default" ? "fit-content" : "100%",
|
|
3635
|
+
button: {
|
|
3636
|
+
flexGrow: buttonWidth === "default" ? undefined : "1"
|
|
3637
|
+
}
|
|
3638
|
+
};
|
|
3639
|
+
}
|
|
3640
|
+
};
|
|
3641
|
+
|
|
3879
3642
|
var imageSizes = {
|
|
3880
3643
|
xxsmall: {
|
|
3881
3644
|
flex: {
|
|
@@ -3908,8 +3671,8 @@ var imageSizes = {
|
|
|
3908
3671
|
|
|
3909
3672
|
var getBodyPaddingStyles = function getBodyPaddingStyles(_ref) {
|
|
3910
3673
|
var hasImage = _ref.hasImage,
|
|
3911
|
-
isBordered = _ref.isBordered,
|
|
3912
3674
|
imageIsAtEnd = _ref.imageIsAtEnd,
|
|
3675
|
+
isBordered = _ref.isBordered,
|
|
3913
3676
|
isRow = _ref.isRow;
|
|
3914
3677
|
var bodyPadding = null;
|
|
3915
3678
|
|
|
@@ -3944,13 +3707,13 @@ var getBodyPaddingStyles = function getBodyPaddingStyles(_ref) {
|
|
|
3944
3707
|
|
|
3945
3708
|
var Card$1 = {
|
|
3946
3709
|
parts: ["actions", "body", "heading"],
|
|
3947
|
-
baseStyle: function baseStyle(
|
|
3948
|
-
var hasImage =
|
|
3949
|
-
imageIsAtEnd =
|
|
3950
|
-
isBordered =
|
|
3951
|
-
isCentered =
|
|
3952
|
-
layout =
|
|
3953
|
-
mainActionLink =
|
|
3710
|
+
baseStyle: function baseStyle(_ref2) {
|
|
3711
|
+
var hasImage = _ref2.hasImage,
|
|
3712
|
+
imageIsAtEnd = _ref2.imageIsAtEnd,
|
|
3713
|
+
isBordered = _ref2.isBordered,
|
|
3714
|
+
isCentered = _ref2.isCentered,
|
|
3715
|
+
layout = _ref2.layout,
|
|
3716
|
+
mainActionLink = _ref2.mainActionLink;
|
|
3954
3717
|
var isRow = layout === "row";
|
|
3955
3718
|
var layoutStyles = isRow ? {
|
|
3956
3719
|
display: "flex",
|
|
@@ -4012,11 +3775,11 @@ var Card$1 = {
|
|
|
4012
3775
|
}
|
|
4013
3776
|
};
|
|
4014
3777
|
var CardActions$1 = {
|
|
4015
|
-
baseStyle: function baseStyle(
|
|
4016
|
-
var bottomBorder =
|
|
4017
|
-
isCentered =
|
|
4018
|
-
layout =
|
|
4019
|
-
topBorder =
|
|
3778
|
+
baseStyle: function baseStyle(_ref3) {
|
|
3779
|
+
var bottomBorder = _ref3.bottomBorder,
|
|
3780
|
+
isCentered = _ref3.isCentered,
|
|
3781
|
+
layout = _ref3.layout,
|
|
3782
|
+
topBorder = _ref3.topBorder;
|
|
4020
3783
|
var justifyContent = null; // Only center in the column layout.
|
|
4021
3784
|
|
|
4022
3785
|
if (layout === "row") {
|
|
@@ -4055,13 +3818,13 @@ var CardContent$1 = {
|
|
|
4055
3818
|
}
|
|
4056
3819
|
};
|
|
4057
3820
|
var CardImage$1 = {
|
|
4058
|
-
baseStyle: function baseStyle(
|
|
4059
|
-
var imageIsAtEnd =
|
|
4060
|
-
isCentered =
|
|
4061
|
-
layout =
|
|
4062
|
-
size =
|
|
3821
|
+
baseStyle: function baseStyle(_ref4) {
|
|
3822
|
+
var imageIsAtEnd = _ref4.imageIsAtEnd,
|
|
3823
|
+
isCentered = _ref4.isCentered,
|
|
3824
|
+
layout = _ref4.layout,
|
|
3825
|
+
size = _ref4.size;
|
|
4063
3826
|
// These sizes are only for the "row" layout.
|
|
4064
|
-
var imageSize = imageSizes[size]
|
|
3827
|
+
var imageSize = size ? imageSizes[size] : {};
|
|
4065
3828
|
var layoutStyles = layout === "row" ? _extends({
|
|
4066
3829
|
flex: {
|
|
4067
3830
|
md: "0 0 225px"
|
|
@@ -4293,7 +4056,7 @@ var CustomImage = {
|
|
|
4293
4056
|
width: "100%"
|
|
4294
4057
|
}, imageSizes$1[size]),
|
|
4295
4058
|
captionWrappers: {
|
|
4296
|
-
|
|
4059
|
+
marginTop: "xxs"
|
|
4297
4060
|
}
|
|
4298
4061
|
};
|
|
4299
4062
|
}
|
|
@@ -4349,7 +4112,6 @@ var Select = {
|
|
|
4349
4112
|
baseStyle: function baseStyle(_ref) {
|
|
4350
4113
|
var labelPosition = _ref.labelPosition;
|
|
4351
4114
|
return {
|
|
4352
|
-
marginBottom: "xs",
|
|
4353
4115
|
// The backgroundColor set to "ui.white" hides the arrow SVG icon when
|
|
4354
4116
|
// the component is focused. The background is added for dark mode and
|
|
4355
4117
|
// so we need to add specific selector.
|
|
@@ -4773,7 +4535,7 @@ var campaign = {
|
|
|
4773
4535
|
}
|
|
4774
4536
|
}
|
|
4775
4537
|
};
|
|
4776
|
-
var
|
|
4538
|
+
var fiftyFifty = {
|
|
4777
4539
|
content: /*#__PURE__*/_extends({}, wrapperStyles, {
|
|
4778
4540
|
alignItems: "center",
|
|
4779
4541
|
display: "flex",
|
|
@@ -4816,7 +4578,7 @@ var Hero = {
|
|
|
4816
4578
|
secondaryWhatsOn: secondaryWhatsOn,
|
|
4817
4579
|
tertiary: tertiary,
|
|
4818
4580
|
campaign: campaign,
|
|
4819
|
-
|
|
4581
|
+
fiftyFifty: fiftyFifty
|
|
4820
4582
|
}
|
|
4821
4583
|
};
|
|
4822
4584
|
|
|
@@ -5088,14 +4850,6 @@ var Logo = {
|
|
|
5088
4850
|
}
|
|
5089
4851
|
};
|
|
5090
4852
|
|
|
5091
|
-
var NotificationTypes;
|
|
5092
|
-
|
|
5093
|
-
(function (NotificationTypes) {
|
|
5094
|
-
NotificationTypes["Standard"] = "standard";
|
|
5095
|
-
NotificationTypes["Announcement"] = "announcement";
|
|
5096
|
-
NotificationTypes["Warning"] = "warning";
|
|
5097
|
-
})(NotificationTypes || (NotificationTypes = {}));
|
|
5098
|
-
|
|
5099
4853
|
var Notification = {
|
|
5100
4854
|
parts: ["container", "dismissibleButton", "icon"],
|
|
5101
4855
|
baseStyle: function baseStyle(_ref) {
|
|
@@ -5105,7 +4859,7 @@ var Notification = {
|
|
|
5105
4859
|
notificationType = _ref.notificationType;
|
|
5106
4860
|
var bg = "ui.status.primary";
|
|
5107
4861
|
|
|
5108
|
-
if (notificationType ===
|
|
4862
|
+
if (notificationType === "announcement" || notificationType === "warning") {
|
|
5109
4863
|
bg = "ui.gray.x-light-cool";
|
|
5110
4864
|
}
|
|
5111
4865
|
|
|
@@ -5161,7 +4915,7 @@ var NotificationContent = {
|
|
|
5161
4915
|
display: "flex",
|
|
5162
4916
|
justifyContent: "center",
|
|
5163
4917
|
content: {
|
|
5164
|
-
color: notificationType ===
|
|
4918
|
+
color: notificationType === "warning" ? "brand.primary" : "currentColor",
|
|
5165
4919
|
marginTop: icon ? "xxxs" : "0",
|
|
5166
4920
|
paddingLeft: alignText ? "calc(var(--nypl-space-m) + var(--nypl-space-s))" : null,
|
|
5167
4921
|
width: "100%",
|
|
@@ -5184,9 +4938,9 @@ var NotificationHeading = {
|
|
|
5184
4938
|
notificationType = _ref3.notificationType;
|
|
5185
4939
|
var color = "ui.black";
|
|
5186
4940
|
|
|
5187
|
-
if (notificationType ===
|
|
4941
|
+
if (notificationType === "announcement") {
|
|
5188
4942
|
color = "section.research.secondary";
|
|
5189
|
-
} else if (notificationType ===
|
|
4943
|
+
} else if (notificationType === "warning") {
|
|
5190
4944
|
color = "brand.primary";
|
|
5191
4945
|
}
|
|
5192
4946
|
|
|
@@ -5222,21 +4976,7 @@ var Pagination = {
|
|
|
5222
4976
|
marginBottom: "0"
|
|
5223
4977
|
}
|
|
5224
4978
|
}
|
|
5225
|
-
};
|
|
5226
|
-
|
|
5227
|
-
var ProgressIndicatorSizes;
|
|
5228
|
-
|
|
5229
|
-
(function (ProgressIndicatorSizes) {
|
|
5230
|
-
ProgressIndicatorSizes["Default"] = "default";
|
|
5231
|
-
ProgressIndicatorSizes["Small"] = "small";
|
|
5232
|
-
})(ProgressIndicatorSizes || (ProgressIndicatorSizes = {}));
|
|
5233
|
-
|
|
5234
|
-
var ProgressIndicatorTypes;
|
|
5235
|
-
|
|
5236
|
-
(function (ProgressIndicatorTypes) {
|
|
5237
|
-
ProgressIndicatorTypes["Circular"] = "circular";
|
|
5238
|
-
ProgressIndicatorTypes["Linear"] = "linear";
|
|
5239
|
-
})(ProgressIndicatorTypes || (ProgressIndicatorTypes = {}));
|
|
4979
|
+
};
|
|
5240
4980
|
|
|
5241
4981
|
var ProgressIndicator = {
|
|
5242
4982
|
parts: ["circular", "circularLabel", "linear", "linearContainer", "linearPercentage"],
|
|
@@ -5249,8 +4989,8 @@ var ProgressIndicator = {
|
|
|
5249
4989
|
// Note: we have to target the SVG HTMl elements in order
|
|
5250
4990
|
// to override the default styles.
|
|
5251
4991
|
svg: {
|
|
5252
|
-
height: size ===
|
|
5253
|
-
width: size ===
|
|
4992
|
+
height: size === "default" ? "48px" : "24px",
|
|
4993
|
+
width: size === "default" ? "48px" : "24px",
|
|
5254
4994
|
display: "block",
|
|
5255
4995
|
circle: {
|
|
5256
4996
|
_first: {
|
|
@@ -5278,7 +5018,7 @@ var ProgressIndicator = {
|
|
|
5278
5018
|
bg: darkMode ? "ui.gray.dark" : "ui.gray.light-cool",
|
|
5279
5019
|
height: {
|
|
5280
5020
|
base: "4px",
|
|
5281
|
-
md: size ===
|
|
5021
|
+
md: size === "default" ? "8px" : "4px"
|
|
5282
5022
|
}
|
|
5283
5023
|
},
|
|
5284
5024
|
linearContainer: {
|
|
@@ -5534,6 +5274,30 @@ var Skeleton = {
|
|
|
5534
5274
|
}
|
|
5535
5275
|
};
|
|
5536
5276
|
|
|
5277
|
+
var SkipNavigation = {
|
|
5278
|
+
baseStyle: {
|
|
5279
|
+
// Don't display links by default...
|
|
5280
|
+
a: {
|
|
5281
|
+
backgroundColor: "ui.white",
|
|
5282
|
+
height: "1px",
|
|
5283
|
+
left: "-10000px",
|
|
5284
|
+
overflow: "hidden",
|
|
5285
|
+
position: "absolute",
|
|
5286
|
+
top: "auto",
|
|
5287
|
+
width: "1px",
|
|
5288
|
+
// Only display when the user focuses on the links.
|
|
5289
|
+
_focus: {
|
|
5290
|
+
border: "1px solid var(—nypl-colors-ui-gray-dark)",
|
|
5291
|
+
height: "auto",
|
|
5292
|
+
left: "2rem",
|
|
5293
|
+
padding: "var(--nypl-space-inset-extranarrow) var(--nypl-space-inset-narrow)",
|
|
5294
|
+
top: "3rem",
|
|
5295
|
+
width: "auto"
|
|
5296
|
+
}
|
|
5297
|
+
}
|
|
5298
|
+
}
|
|
5299
|
+
};
|
|
5300
|
+
|
|
5537
5301
|
// Margins around the static display values.
|
|
5538
5302
|
var staticValues = {
|
|
5539
5303
|
marginTop: "xs",
|
|
@@ -5644,7 +5408,7 @@ var baseTHStyles = function baseTHStyles(showRowDividers, columnHeadersTextColor
|
|
|
5644
5408
|
}
|
|
5645
5409
|
|
|
5646
5410
|
if (columnHeadersTextColor === void 0) {
|
|
5647
|
-
columnHeadersTextColor =
|
|
5411
|
+
columnHeadersTextColor = "";
|
|
5648
5412
|
}
|
|
5649
5413
|
|
|
5650
5414
|
return {
|
|
@@ -6092,13 +5856,17 @@ var variants$2 = {
|
|
|
6092
5856
|
}
|
|
6093
5857
|
};
|
|
6094
5858
|
var Text = {
|
|
6095
|
-
baseStyle: function baseStyle(
|
|
6096
|
-
var
|
|
6097
|
-
|
|
5859
|
+
baseStyle: function baseStyle(_ref) {
|
|
5860
|
+
var isBold = _ref.isBold,
|
|
5861
|
+
isItalic = _ref.isItalic,
|
|
5862
|
+
noSpace = _ref.noSpace,
|
|
5863
|
+
variant = _ref.variant;
|
|
5864
|
+
var fontWeight = isBold ? variant === "tag" || variant === "mini" ? "medium" : "bold" : null;
|
|
5865
|
+
var fontStyle = isItalic ? "italic" : null;
|
|
6098
5866
|
return {
|
|
6099
5867
|
fontStyle: fontStyle,
|
|
6100
5868
|
fontWeight: fontWeight,
|
|
6101
|
-
marginBottom:
|
|
5869
|
+
marginBottom: noSpace ? "0 !important" : null
|
|
6102
5870
|
};
|
|
6103
5871
|
},
|
|
6104
5872
|
variants: variants$2
|
|
@@ -6166,13 +5934,6 @@ var TextInput$1 = {
|
|
|
6166
5934
|
}
|
|
6167
5935
|
};
|
|
6168
5936
|
|
|
6169
|
-
var ToggleSizes;
|
|
6170
|
-
|
|
6171
|
-
(function (ToggleSizes) {
|
|
6172
|
-
ToggleSizes["Default"] = "default";
|
|
6173
|
-
ToggleSizes["Small"] = "small";
|
|
6174
|
-
})(ToggleSizes || (ToggleSizes = {}));
|
|
6175
|
-
|
|
6176
5937
|
var _container, _container2;
|
|
6177
5938
|
|
|
6178
5939
|
var toggleBaseStyle = function toggleBaseStyle(_ref) {
|
|
@@ -6184,7 +5945,7 @@ var toggleBaseStyle = function toggleBaseStyle(_ref) {
|
|
|
6184
5945
|
width: "fit-content"
|
|
6185
5946
|
};
|
|
6186
5947
|
var helperErrorText = {
|
|
6187
|
-
marginLeft: size ===
|
|
5948
|
+
marginLeft: size === "default" ? "xxl" : "xl",
|
|
6188
5949
|
fontStyle: isDisabled ? "italic" : null
|
|
6189
5950
|
};
|
|
6190
5951
|
return {
|
|
@@ -6351,7 +6112,8 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
|
|
|
6351
6112
|
components: /*#__PURE__*/_extends({
|
|
6352
6113
|
Accordion: Accordion$1,
|
|
6353
6114
|
Breadcrumb: Breadcrumb,
|
|
6354
|
-
Button: Button$1
|
|
6115
|
+
Button: Button$1,
|
|
6116
|
+
ButtonGroup: ButtonGroup$1
|
|
6355
6117
|
}, Card$2, {
|
|
6356
6118
|
Checkbox: Checkbox$1,
|
|
6357
6119
|
CheckboxGroup: CheckboxGroup$1,
|
|
@@ -6378,6 +6140,7 @@ var theme = /*#__PURE__*/extendTheme( /*#__PURE__*/_extends({
|
|
|
6378
6140
|
SearchBar: SearchBar,
|
|
6379
6141
|
Skeleton: Skeleton,
|
|
6380
6142
|
SkeletonLoader: SkeletonLoader,
|
|
6143
|
+
SkipNavigation: SkipNavigation,
|
|
6381
6144
|
CustomSlider: CustomSlider,
|
|
6382
6145
|
StatusBadge: StatusBadge,
|
|
6383
6146
|
StructuredContent: StructuredContent,
|
|
@@ -6403,131 +6166,101 @@ var DSProvider = function DSProvider(_ref) {
|
|
|
6403
6166
|
}, children);
|
|
6404
6167
|
};
|
|
6405
6168
|
|
|
6406
|
-
var
|
|
6407
|
-
|
|
6408
|
-
(function (HeroTypes) {
|
|
6409
|
-
HeroTypes["Primary"] = "primary";
|
|
6410
|
-
HeroTypes["Secondary"] = "secondary";
|
|
6411
|
-
HeroTypes["SecondaryBooksAndMore"] = "secondaryBooksAndMore";
|
|
6412
|
-
HeroTypes["SecondaryLocations"] = "secondaryLocations";
|
|
6413
|
-
HeroTypes["SecondaryResearch"] = "secondaryResearch";
|
|
6414
|
-
HeroTypes["SecondaryWhatsOn"] = "secondaryWhatsOn";
|
|
6415
|
-
HeroTypes["Tertiary"] = "tertiary";
|
|
6416
|
-
HeroTypes["Campaign"] = "campaign";
|
|
6417
|
-
HeroTypes["FiftyFifty"] = "fiftyfifty";
|
|
6418
|
-
})(HeroTypes || (HeroTypes = {})); // Only used for internal purposes.
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
var HeroSecondaryTypes = [HeroTypes.Secondary, HeroTypes.SecondaryBooksAndMore, HeroTypes.SecondaryLocations, HeroTypes.SecondaryResearch, HeroTypes.SecondaryWhatsOn];
|
|
6422
|
-
|
|
6423
|
-
var _excluded$K = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageAlt", "imageSrc", "locationDetails", "subHeaderText"];
|
|
6424
|
-
|
|
6425
|
-
var variantMap = {};
|
|
6426
|
-
|
|
6427
|
-
for (var type in HeroTypes) {
|
|
6428
|
-
variantMap[HeroTypes[type]] = HeroTypes[type];
|
|
6429
|
-
}
|
|
6430
|
-
/**
|
|
6431
|
-
* Map the HeroTypes to the Hero Chakra theme variant object. If a wrong
|
|
6432
|
-
* value is passed (typically in non-Typescript scenarios), then the default
|
|
6433
|
-
* is the "primary" variant.
|
|
6434
|
-
*/
|
|
6435
|
-
|
|
6436
|
-
|
|
6437
|
-
var getVariant$1 = function getVariant(type) {
|
|
6438
|
-
return variantMap[type] || HeroTypes.Primary;
|
|
6439
|
-
};
|
|
6169
|
+
var _excluded$L = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
|
|
6440
6170
|
|
|
6171
|
+
var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
|
|
6441
6172
|
var Hero$1 = /*#__PURE__*/chakra(function (props) {
|
|
6442
6173
|
var backgroundColor = props.backgroundColor,
|
|
6443
6174
|
backgroundImageSrc = props.backgroundImageSrc,
|
|
6444
6175
|
foregroundColor = props.foregroundColor,
|
|
6445
6176
|
heading = props.heading,
|
|
6446
6177
|
heroType = props.heroType,
|
|
6447
|
-
|
|
6448
|
-
|
|
6178
|
+
_props$imageProps = props.imageProps,
|
|
6179
|
+
imageProps = _props$imageProps === void 0 ? {
|
|
6180
|
+
alt: "",
|
|
6181
|
+
src: ""
|
|
6182
|
+
} : _props$imageProps,
|
|
6449
6183
|
locationDetails = props.locationDetails,
|
|
6450
6184
|
subHeaderText = props.subHeaderText,
|
|
6451
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6185
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$L);
|
|
6452
6186
|
|
|
6453
|
-
var variant = getVariant$1(heroType);
|
|
6454
6187
|
var styles = useMultiStyleConfig("Hero", {
|
|
6455
|
-
variant:
|
|
6188
|
+
variant: heroType
|
|
6456
6189
|
});
|
|
6457
6190
|
var headingStyles = styles.heading; // We want to add `Hero`-specific styling to the `Heading` component.
|
|
6458
6191
|
|
|
6459
6192
|
var finalHeading = heading && cloneElement(heading, {
|
|
6460
|
-
|
|
6193
|
+
__css: headingStyles
|
|
6461
6194
|
});
|
|
6462
6195
|
var backgroundImageStyle = {};
|
|
6463
6196
|
var contentBoxStyling = {};
|
|
6464
6197
|
|
|
6465
|
-
if (
|
|
6466
|
-
console.warn("NYPL Reservoir: The \"
|
|
6198
|
+
if (imageProps.src && !imageProps.alt) {
|
|
6199
|
+
console.warn("NYPL Reservoir Hero: The \"imageProps.src\" prop was passed but the \"imageProps.alt\" props was not. This will make the rendered image inaccessible.");
|
|
6467
6200
|
}
|
|
6468
6201
|
|
|
6469
|
-
if (heroType ===
|
|
6202
|
+
if (heroType === "primary") {
|
|
6470
6203
|
if (!backgroundImageSrc) {
|
|
6471
|
-
console.warn("NYPL Reservoir Hero: It is recommended to use the `backgroundImageSrc` " + "prop for the `
|
|
6204
|
+
console.warn("NYPL Reservoir Hero: It is recommended to use the `backgroundImageSrc` " + "prop for the `'primary'` `heroType` variant.");
|
|
6472
6205
|
}
|
|
6473
6206
|
|
|
6474
|
-
if (
|
|
6475
|
-
console.warn("NYPL Reservoir Hero: The `
|
|
6207
|
+
if (imageProps.alt && imageProps.src) {
|
|
6208
|
+
console.warn("NYPL Reservoir Hero: The `imageProps.src` and `imageProps.alt` props have been " + "passed, but the `'primary'` `heroType` variant will not use it.");
|
|
6476
6209
|
}
|
|
6477
6210
|
} else if (locationDetails) {
|
|
6478
|
-
console.warn("NYPL Reservoir Hero: The `locationDetails` prop should only be used " + "with the `
|
|
6211
|
+
console.warn("NYPL Reservoir Hero: The `locationDetails` prop should only be used " + "with the `'primary'` `heroType` variant.");
|
|
6479
6212
|
}
|
|
6480
6213
|
|
|
6481
|
-
if (
|
|
6482
|
-
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `
|
|
6214
|
+
if (heroSecondaryTypes.includes(heroType) && backgroundImageSrc) {
|
|
6215
|
+
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `'secondary'` `heroType` variant will not use it.");
|
|
6483
6216
|
}
|
|
6484
6217
|
|
|
6485
|
-
if (heroType ===
|
|
6486
|
-
console.warn("NYPL Reservoir Hero: The `
|
|
6218
|
+
if (heroType === "tertiary" && (backgroundImageSrc || imageProps.src)) {
|
|
6219
|
+
console.warn("NYPL Reservoir Hero: The `'tertiary'` `heroType` variant hero " + "will not use any of the image props.");
|
|
6487
6220
|
}
|
|
6488
6221
|
|
|
6489
|
-
if (heroType ===
|
|
6490
|
-
console.warn("NYPL Reservoir Hero: It is recommended to use both the " + "`backgroundImageSrc` and `
|
|
6222
|
+
if (heroType === "campaign" && (!backgroundImageSrc || !imageProps.src)) {
|
|
6223
|
+
console.warn("NYPL Reservoir Hero: It is recommended to use both the " + "`backgroundImageSrc` and `imageProps.src` props for the " + "`'campaign'` `heroType` variant.");
|
|
6491
6224
|
}
|
|
6492
6225
|
|
|
6493
|
-
if (heroType ===
|
|
6494
|
-
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `
|
|
6226
|
+
if (heroType === "fiftyFifty" && backgroundImageSrc) {
|
|
6227
|
+
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `'fiftyFifty'` `heroType` variant hero will not use it.");
|
|
6495
6228
|
}
|
|
6496
6229
|
|
|
6497
|
-
if (heroType ===
|
|
6230
|
+
if (heroType === "primary") {
|
|
6498
6231
|
backgroundImageStyle = backgroundImageSrc ? {
|
|
6499
6232
|
backgroundImage: "url(" + backgroundImageSrc + ")"
|
|
6500
6233
|
} : {};
|
|
6501
|
-
} else if (heroType ===
|
|
6234
|
+
} else if (heroType === "campaign") {
|
|
6502
6235
|
backgroundImageStyle = backgroundImageSrc ? {
|
|
6503
6236
|
backgroundImage: "url(" + backgroundImageSrc + ")"
|
|
6504
6237
|
} : {
|
|
6505
6238
|
backgroundColor: backgroundColor
|
|
6506
6239
|
};
|
|
6507
|
-
} else if (heroType ===
|
|
6240
|
+
} else if (heroType === "tertiary" || heroType === "fiftyFifty") {
|
|
6508
6241
|
backgroundImageStyle = {
|
|
6509
6242
|
backgroundColor: backgroundColor
|
|
6510
6243
|
};
|
|
6511
6244
|
}
|
|
6512
6245
|
|
|
6513
|
-
if (!
|
|
6246
|
+
if (!heroSecondaryTypes.includes(heroType)) {
|
|
6514
6247
|
contentBoxStyling = {
|
|
6515
6248
|
color: foregroundColor,
|
|
6516
6249
|
backgroundColor: backgroundColor
|
|
6517
6250
|
};
|
|
6518
6251
|
} else if (foregroundColor || backgroundColor) {
|
|
6519
|
-
console.warn("NYPL Reservoir Hero: The `foregroundColor` and/or `backgroundColor` " + "props have been passed, but the `
|
|
6252
|
+
console.warn("NYPL Reservoir Hero: The `foregroundColor` and/or `backgroundColor` " + "props have been passed, but the `'secondary'` `heroType` " + "variant will not use them.");
|
|
6520
6253
|
}
|
|
6521
6254
|
|
|
6522
|
-
var childrenToRender = heroType ===
|
|
6523
|
-
alt:
|
|
6524
|
-
src:
|
|
6255
|
+
var childrenToRender = heroType === "campaign" ? createElement(Fragment, null, createElement(Image, {
|
|
6256
|
+
alt: imageProps.alt,
|
|
6257
|
+
src: imageProps.src
|
|
6525
6258
|
}), createElement(Box, {
|
|
6526
6259
|
__css: styles.interior
|
|
6527
|
-
}, finalHeading, subHeaderText)) : createElement(Fragment, null, heroType !==
|
|
6528
|
-
alt:
|
|
6529
|
-
src:
|
|
6530
|
-
}), finalHeading, heroType ===
|
|
6260
|
+
}, finalHeading, subHeaderText)) : createElement(Fragment, null, heroType !== "primary" && heroType !== "tertiary" && createElement(Image, {
|
|
6261
|
+
alt: imageProps.alt,
|
|
6262
|
+
src: imageProps.src
|
|
6263
|
+
}), finalHeading, heroType === "tertiary" && subHeaderText ? createElement("p", null, subHeaderText) : createElement(Box, {
|
|
6531
6264
|
__css: styles.bodyText
|
|
6532
6265
|
}, subHeaderText));
|
|
6533
6266
|
return createElement(Box, Object.assign({
|
|
@@ -6539,18 +6272,18 @@ var Hero$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
6539
6272
|
"data-testid": "hero-content",
|
|
6540
6273
|
style: contentBoxStyling,
|
|
6541
6274
|
__css: styles.content
|
|
6542
|
-
}, childrenToRender)
|
|
6275
|
+
}, childrenToRender));
|
|
6543
6276
|
}, {
|
|
6544
6277
|
shouldForwardProp: function shouldForwardProp() {
|
|
6545
6278
|
return true;
|
|
6546
6279
|
}
|
|
6547
6280
|
});
|
|
6548
6281
|
|
|
6549
|
-
var _excluded$
|
|
6282
|
+
var _excluded$M = ["align", "className"];
|
|
6550
6283
|
var HorizontalRule$1 = /*#__PURE__*/chakra(function (props) {
|
|
6551
6284
|
var align = props.align,
|
|
6552
6285
|
className = props.className,
|
|
6553
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6286
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$M);
|
|
6554
6287
|
|
|
6555
6288
|
var styles = useStyleConfig("HorizontalRule", {
|
|
6556
6289
|
align: align
|
|
@@ -6568,15 +6301,7 @@ var HorizontalRule$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
6568
6301
|
}, rest));
|
|
6569
6302
|
});
|
|
6570
6303
|
|
|
6571
|
-
var
|
|
6572
|
-
|
|
6573
|
-
(function (ListTypes) {
|
|
6574
|
-
ListTypes["Ordered"] = "ol";
|
|
6575
|
-
ListTypes["Unordered"] = "ul";
|
|
6576
|
-
ListTypes["Description"] = "dl";
|
|
6577
|
-
})(ListTypes || (ListTypes = {}));
|
|
6578
|
-
|
|
6579
|
-
var _excluded$M = ["additionalStyles", "children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
|
|
6304
|
+
var _excluded$N = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
|
|
6580
6305
|
/**
|
|
6581
6306
|
* A component that renders list item `li` elements or description item `dt`
|
|
6582
6307
|
* and `dd` elements based on the `type` prop. Note that the `title` prop will
|
|
@@ -6584,9 +6309,7 @@ var _excluded$M = ["additionalStyles", "children", "className", "id", "inline",
|
|
|
6584
6309
|
*/
|
|
6585
6310
|
|
|
6586
6311
|
var List$1 = /*#__PURE__*/chakra(function (props) {
|
|
6587
|
-
var
|
|
6588
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
6589
|
-
children = props.children,
|
|
6312
|
+
var children = props.children,
|
|
6590
6313
|
className = props.className,
|
|
6591
6314
|
id = props.id,
|
|
6592
6315
|
_props$inline = props.inline,
|
|
@@ -6596,21 +6319,18 @@ var List$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
6596
6319
|
noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
|
|
6597
6320
|
title = props.title,
|
|
6598
6321
|
_props$type = props.type,
|
|
6599
|
-
type = _props$type === void 0 ?
|
|
6600
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6322
|
+
type = _props$type === void 0 ? "ul" : _props$type,
|
|
6323
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$N);
|
|
6601
6324
|
|
|
6602
6325
|
var styles = useStyleConfig("List", {
|
|
6603
6326
|
inline: inline,
|
|
6604
6327
|
noStyling: noStyling,
|
|
6605
6328
|
variant: type
|
|
6606
6329
|
});
|
|
6607
|
-
|
|
6608
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
6609
|
-
|
|
6610
6330
|
var listElement = null; // Either li/dt/dd children elements must be passed or the `listItems`
|
|
6611
6331
|
// prop must be used.
|
|
6612
6332
|
|
|
6613
|
-
if (children &&
|
|
6333
|
+
if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
|
|
6614
6334
|
console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
|
|
6615
6335
|
return null;
|
|
6616
6336
|
}
|
|
@@ -6622,9 +6342,9 @@ var List$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
6622
6342
|
/**
|
|
6623
6343
|
* This returns either the `children` elements passed to the `List` component
|
|
6624
6344
|
* first, otherwise it will check and render the data passed into the
|
|
6625
|
-
* `listItems` props based on the `ListType` type. If it is of type
|
|
6626
|
-
* or
|
|
6627
|
-
* combination of `dt` and `dd` elements for the
|
|
6345
|
+
* `listItems` props based on the `ListType` type. If it is of type unordered
|
|
6346
|
+
* or ordered, it will return `li` elements. Otherwise, it will return a
|
|
6347
|
+
* combination of `dt` and `dd` elements for the description type.
|
|
6628
6348
|
*/
|
|
6629
6349
|
|
|
6630
6350
|
|
|
@@ -6633,13 +6353,17 @@ var List$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
6633
6353
|
return children;
|
|
6634
6354
|
}
|
|
6635
6355
|
|
|
6636
|
-
if (
|
|
6356
|
+
if (!listItems) {
|
|
6357
|
+
return null;
|
|
6358
|
+
}
|
|
6359
|
+
|
|
6360
|
+
if (listType === "ol" || listType === "ul") {
|
|
6637
6361
|
return listItems.map(function (item, i) {
|
|
6638
6362
|
return createElement("li", {
|
|
6639
6363
|
key: i
|
|
6640
6364
|
}, item);
|
|
6641
6365
|
});
|
|
6642
|
-
} else if (listType ===
|
|
6366
|
+
} else if (listType === "dl") {
|
|
6643
6367
|
return listItems.map(function (item, i) {
|
|
6644
6368
|
return [createElement("dt", {
|
|
6645
6369
|
key: i + "-term"
|
|
@@ -6680,96 +6404,32 @@ var List$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
6680
6404
|
});
|
|
6681
6405
|
};
|
|
6682
6406
|
|
|
6683
|
-
if (type ===
|
|
6407
|
+
if (type === "ol" || type === "ul") {
|
|
6684
6408
|
checkListChildrenError(type);
|
|
6685
6409
|
listElement = createElement(Box, Object.assign({
|
|
6686
6410
|
as: type,
|
|
6687
6411
|
id: id,
|
|
6688
6412
|
className: className,
|
|
6689
|
-
__css:
|
|
6413
|
+
__css: styles
|
|
6690
6414
|
}, rest), listChildrenElms(type));
|
|
6691
|
-
} else if (type ===
|
|
6415
|
+
} else if (type === "dl") {
|
|
6692
6416
|
checkDescriptionChildrenError();
|
|
6693
6417
|
listElement = createElement(Box, Object.assign({
|
|
6694
6418
|
as: "section",
|
|
6695
6419
|
id: id,
|
|
6696
6420
|
className: className,
|
|
6697
|
-
__css:
|
|
6421
|
+
__css: styles
|
|
6698
6422
|
}, rest), title && createElement(Heading, {
|
|
6699
|
-
id: id + "-heading"
|
|
6700
|
-
level: HeadingLevels.Two
|
|
6423
|
+
id: id + "-heading"
|
|
6701
6424
|
}, title), createElement("dl", null, listChildrenElms(type)));
|
|
6702
6425
|
}
|
|
6703
6426
|
|
|
6704
6427
|
return listElement;
|
|
6705
6428
|
});
|
|
6706
6429
|
|
|
6707
|
-
var LogoColors;
|
|
6708
|
-
|
|
6709
|
-
(function (LogoColors) {
|
|
6710
|
-
LogoColors["Default"] = "";
|
|
6711
|
-
LogoColors["UiBlack"] = "ui.black";
|
|
6712
|
-
LogoColors["UiWhite"] = "ui.white";
|
|
6713
|
-
})(LogoColors || (LogoColors = {}));
|
|
6714
|
-
|
|
6715
|
-
var LogoSizes;
|
|
6716
|
-
|
|
6717
|
-
(function (LogoSizes) {
|
|
6718
|
-
LogoSizes["Default"] = "default";
|
|
6719
|
-
LogoSizes["ExtraExtraSmall"] = "xxsmall";
|
|
6720
|
-
LogoSizes["ExtraSmall"] = "xsmall";
|
|
6721
|
-
LogoSizes["Small"] = "small";
|
|
6722
|
-
LogoSizes["Medium"] = "medium";
|
|
6723
|
-
LogoSizes["Large"] = "large";
|
|
6724
|
-
})(LogoSizes || (LogoSizes = {}));
|
|
6725
|
-
|
|
6726
|
-
var LogoNames;
|
|
6727
|
-
|
|
6728
|
-
(function (LogoNames) {
|
|
6729
|
-
LogoNames["BrooklynPublicLibraryBlack"] = "logo_bpl_black";
|
|
6730
|
-
LogoNames["BrooklynPublicLibraryWhite"] = "logo_bpl_white";
|
|
6731
|
-
LogoNames["CleverColor"] = "logo_clever_color";
|
|
6732
|
-
LogoNames["CleverWhite"] = "logo_clever_white";
|
|
6733
|
-
LogoNames["FirstBookColor"] = "logo_firstbook_color";
|
|
6734
|
-
LogoNames["FirstBookColorNegative"] = "logo_firstbook_color_negative";
|
|
6735
|
-
LogoNames["LPAColor"] = "logo_lpa_color";
|
|
6736
|
-
LogoNames["LPABlack"] = "logo_lpa_black";
|
|
6737
|
-
LogoNames["LPAWhite"] = "logo_lpa_white";
|
|
6738
|
-
LogoNames["MyLibraryNYCBlack"] = "logo_mln_black";
|
|
6739
|
-
LogoNames["MyLibraryNYCWhite"] = "logo_mln_white";
|
|
6740
|
-
LogoNames["NYPLBlack"] = "logo_nypl_full_black";
|
|
6741
|
-
LogoNames["NYPLWhite"] = "logo_nypl_full_white";
|
|
6742
|
-
LogoNames["NYPLLionBlack"] = "logo_nypl_lion_black";
|
|
6743
|
-
LogoNames["NYPLLionWhite"] = "logo_nypl_lion_white";
|
|
6744
|
-
LogoNames["OpenEBooksColor"] = "logo_openebooks_color";
|
|
6745
|
-
LogoNames["OpenEBooksNegative"] = "logo_openebooks_negative";
|
|
6746
|
-
LogoNames["OpenEBooksWithTextColor"] = "logo_openebooks_wtext_color";
|
|
6747
|
-
LogoNames["OpenEBooksWithTextNegative"] = "logo_openebooks_wtext_negative";
|
|
6748
|
-
LogoNames["QueensPublicLibraryColor"] = "logo_qpl_color";
|
|
6749
|
-
LogoNames["QueensPublicLibraryBlack"] = "logo_qpl_black";
|
|
6750
|
-
LogoNames["QueensPublicLibraryWhite"] = "logo_qpl_white";
|
|
6751
|
-
LogoNames["QueensPublicLibraryAltBlack"] = "logo_qpl_alt_black";
|
|
6752
|
-
LogoNames["QueensPublicLibraryAltWhite"] = "logo_qpl_alt_white";
|
|
6753
|
-
LogoNames["ReservoirIconColor"] = "logo_reservoir_icon_color";
|
|
6754
|
-
LogoNames["ReservoirVerticalColor"] = "logo_reservoir_vertical_color";
|
|
6755
|
-
LogoNames["SchomburgColor"] = "logo_schomburg_color";
|
|
6756
|
-
LogoNames["SchomburgBlack"] = "logo_schomburg_black";
|
|
6757
|
-
LogoNames["SchomburgWhite"] = "logo_schomburg_white";
|
|
6758
|
-
LogoNames["SchomburgCircleColor"] = "logo_schomburg_circle_color";
|
|
6759
|
-
LogoNames["SchomburgCircleBlack"] = "logo_schomburg_circle_black";
|
|
6760
|
-
LogoNames["SchomburgCircleWhite"] = "logo_schomburg_circle_white";
|
|
6761
|
-
LogoNames["SimplyEColor"] = "logo_simplye_color";
|
|
6762
|
-
LogoNames["SimplyEBlack"] = "logo_simplye_black";
|
|
6763
|
-
LogoNames["SimplyEWhite"] = "logo_simplye_white";
|
|
6764
|
-
LogoNames["SNFLBlack"] = "logo_snfl_black";
|
|
6765
|
-
LogoNames["SNFLWhite"] = "logo_snfl_white";
|
|
6766
|
-
LogoNames["TreasuresColor"] = "logo_treasures_color";
|
|
6767
|
-
LogoNames["TreasuresColorNegative"] = "logo_treasures_color_negative";
|
|
6768
|
-
})(LogoNames || (LogoNames = {}));
|
|
6769
|
-
|
|
6770
6430
|
var _path$r, _path2$b, _path3$7;
|
|
6771
6431
|
|
|
6772
|
-
var _excluded$
|
|
6432
|
+
var _excluded$O = ["title", "titleId"];
|
|
6773
6433
|
|
|
6774
6434
|
function _extends$u() { _extends$u = Object.assign || 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); }
|
|
6775
6435
|
|
|
@@ -6780,7 +6440,7 @@ function _objectWithoutPropertiesLoose$u(source, excluded) { if (source == null)
|
|
|
6780
6440
|
function SvgLogoBplBlack(_ref) {
|
|
6781
6441
|
var title = _ref.title,
|
|
6782
6442
|
titleId = _ref.titleId,
|
|
6783
|
-
props = _objectWithoutProperties$t(_ref, _excluded$
|
|
6443
|
+
props = _objectWithoutProperties$t(_ref, _excluded$O);
|
|
6784
6444
|
|
|
6785
6445
|
return /*#__PURE__*/createElement("svg", _extends$u({
|
|
6786
6446
|
viewBox: "0 0 328 120",
|
|
@@ -6799,7 +6459,7 @@ function SvgLogoBplBlack(_ref) {
|
|
|
6799
6459
|
|
|
6800
6460
|
var _path$s, _path2$c, _path3$8;
|
|
6801
6461
|
|
|
6802
|
-
var _excluded$
|
|
6462
|
+
var _excluded$P = ["title", "titleId"];
|
|
6803
6463
|
|
|
6804
6464
|
function _extends$v() { _extends$v = Object.assign || 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); }
|
|
6805
6465
|
|
|
@@ -6810,7 +6470,7 @@ function _objectWithoutPropertiesLoose$v(source, excluded) { if (source == null)
|
|
|
6810
6470
|
function SvgLogoBplWhite(_ref) {
|
|
6811
6471
|
var title = _ref.title,
|
|
6812
6472
|
titleId = _ref.titleId,
|
|
6813
|
-
props = _objectWithoutProperties$u(_ref, _excluded$
|
|
6473
|
+
props = _objectWithoutProperties$u(_ref, _excluded$P);
|
|
6814
6474
|
|
|
6815
6475
|
return /*#__PURE__*/createElement("svg", _extends$v({
|
|
6816
6476
|
viewBox: "0 0 328 120",
|
|
@@ -6830,7 +6490,7 @@ function SvgLogoBplWhite(_ref) {
|
|
|
6830
6490
|
|
|
6831
6491
|
var _path$t;
|
|
6832
6492
|
|
|
6833
|
-
var _excluded$
|
|
6493
|
+
var _excluded$Q = ["title", "titleId"];
|
|
6834
6494
|
|
|
6835
6495
|
function _extends$w() { _extends$w = Object.assign || 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); }
|
|
6836
6496
|
|
|
@@ -6841,7 +6501,7 @@ function _objectWithoutPropertiesLoose$w(source, excluded) { if (source == null)
|
|
|
6841
6501
|
function SvgLogoCleverColor(_ref) {
|
|
6842
6502
|
var title = _ref.title,
|
|
6843
6503
|
titleId = _ref.titleId,
|
|
6844
|
-
props = _objectWithoutProperties$v(_ref, _excluded$
|
|
6504
|
+
props = _objectWithoutProperties$v(_ref, _excluded$Q);
|
|
6845
6505
|
|
|
6846
6506
|
return /*#__PURE__*/createElement("svg", _extends$w({
|
|
6847
6507
|
viewBox: "0 0 312 88",
|
|
@@ -6859,7 +6519,7 @@ function SvgLogoCleverColor(_ref) {
|
|
|
6859
6519
|
|
|
6860
6520
|
var _path$u;
|
|
6861
6521
|
|
|
6862
|
-
var _excluded$
|
|
6522
|
+
var _excluded$R = ["title", "titleId"];
|
|
6863
6523
|
|
|
6864
6524
|
function _extends$x() { _extends$x = Object.assign || 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); }
|
|
6865
6525
|
|
|
@@ -6870,7 +6530,7 @@ function _objectWithoutPropertiesLoose$x(source, excluded) { if (source == null)
|
|
|
6870
6530
|
function SvgLogoCleverWhite(_ref) {
|
|
6871
6531
|
var title = _ref.title,
|
|
6872
6532
|
titleId = _ref.titleId,
|
|
6873
|
-
props = _objectWithoutProperties$w(_ref, _excluded$
|
|
6533
|
+
props = _objectWithoutProperties$w(_ref, _excluded$R);
|
|
6874
6534
|
|
|
6875
6535
|
return /*#__PURE__*/createElement("svg", _extends$x({
|
|
6876
6536
|
viewBox: "0 0 312 88",
|
|
@@ -6888,7 +6548,7 @@ function SvgLogoCleverWhite(_ref) {
|
|
|
6888
6548
|
|
|
6889
6549
|
var _path$v, _path2$d, _path3$9, _path4$1, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13;
|
|
6890
6550
|
|
|
6891
|
-
var _excluded$
|
|
6551
|
+
var _excluded$S = ["title", "titleId"];
|
|
6892
6552
|
|
|
6893
6553
|
function _extends$y() { _extends$y = Object.assign || 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); }
|
|
6894
6554
|
|
|
@@ -6899,7 +6559,7 @@ function _objectWithoutPropertiesLoose$y(source, excluded) { if (source == null)
|
|
|
6899
6559
|
function SvgLogoFirstbookColor(_ref) {
|
|
6900
6560
|
var title = _ref.title,
|
|
6901
6561
|
titleId = _ref.titleId,
|
|
6902
|
-
props = _objectWithoutProperties$x(_ref, _excluded$
|
|
6562
|
+
props = _objectWithoutProperties$x(_ref, _excluded$S);
|
|
6903
6563
|
|
|
6904
6564
|
return /*#__PURE__*/createElement("svg", _extends$y({
|
|
6905
6565
|
viewBox: "0 0 172 152",
|
|
@@ -6952,7 +6612,7 @@ function SvgLogoFirstbookColor(_ref) {
|
|
|
6952
6612
|
|
|
6953
6613
|
var _g;
|
|
6954
6614
|
|
|
6955
|
-
var _excluded$
|
|
6615
|
+
var _excluded$T = ["title", "titleId"];
|
|
6956
6616
|
|
|
6957
6617
|
function _extends$z() { _extends$z = Object.assign || 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); }
|
|
6958
6618
|
|
|
@@ -6963,7 +6623,7 @@ function _objectWithoutPropertiesLoose$z(source, excluded) { if (source == null)
|
|
|
6963
6623
|
function SvgLogoFirstbookColorNegative(_ref) {
|
|
6964
6624
|
var title = _ref.title,
|
|
6965
6625
|
titleId = _ref.titleId,
|
|
6966
|
-
props = _objectWithoutProperties$y(_ref, _excluded$
|
|
6626
|
+
props = _objectWithoutProperties$y(_ref, _excluded$T);
|
|
6967
6627
|
|
|
6968
6628
|
return /*#__PURE__*/createElement("svg", _extends$z({
|
|
6969
6629
|
viewBox: "0 0 170 150",
|
|
@@ -6973,7 +6633,7 @@ function SvgLogoFirstbookColorNegative(_ref) {
|
|
|
6973
6633
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
6974
6634
|
id: titleId
|
|
6975
6635
|
}, title) : null, _g || (_g = /*#__PURE__*/createElement("g", {
|
|
6976
|
-
clipPath: "url(#
|
|
6636
|
+
clipPath: "url(#logo-firstbook-color-negative_svg__clip0_50221_35656)"
|
|
6977
6637
|
}, /*#__PURE__*/createElement("path", {
|
|
6978
6638
|
d: "M78.283 0h-.425C74.686.183.018 4.8.018 44.05v92.317c0 1.966-.328 3.633 1.634 3.916l74.49 9.384h.931l77.432-8.834c1.961-.233 1.634-1.916 1.634-6.25V46.367C156.074 4.8 81.454.183 78.283 0z",
|
|
6979
6639
|
fill: "#fff"
|
|
@@ -7021,7 +6681,7 @@ function SvgLogoFirstbookColorNegative(_ref) {
|
|
|
7021
6681
|
|
|
7022
6682
|
var _path$w, _path2$e;
|
|
7023
6683
|
|
|
7024
|
-
var _excluded$
|
|
6684
|
+
var _excluded$U = ["title", "titleId"];
|
|
7025
6685
|
|
|
7026
6686
|
function _extends$A() { _extends$A = Object.assign || 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$A.apply(this, arguments); }
|
|
7027
6687
|
|
|
@@ -7032,7 +6692,7 @@ function _objectWithoutPropertiesLoose$A(source, excluded) { if (source == null)
|
|
|
7032
6692
|
function SvgLogoLpaColor(_ref) {
|
|
7033
6693
|
var title = _ref.title,
|
|
7034
6694
|
titleId = _ref.titleId,
|
|
7035
|
-
props = _objectWithoutProperties$z(_ref, _excluded$
|
|
6695
|
+
props = _objectWithoutProperties$z(_ref, _excluded$U);
|
|
7036
6696
|
|
|
7037
6697
|
return /*#__PURE__*/createElement("svg", _extends$A({
|
|
7038
6698
|
viewBox: "0 0 186 74",
|
|
@@ -7052,7 +6712,7 @@ function SvgLogoLpaColor(_ref) {
|
|
|
7052
6712
|
|
|
7053
6713
|
var _path$x;
|
|
7054
6714
|
|
|
7055
|
-
var _excluded$
|
|
6715
|
+
var _excluded$V = ["title", "titleId"];
|
|
7056
6716
|
|
|
7057
6717
|
function _extends$B() { _extends$B = Object.assign || 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$B.apply(this, arguments); }
|
|
7058
6718
|
|
|
@@ -7063,7 +6723,7 @@ function _objectWithoutPropertiesLoose$B(source, excluded) { if (source == null)
|
|
|
7063
6723
|
function SvgLogoLpaBlack(_ref) {
|
|
7064
6724
|
var title = _ref.title,
|
|
7065
6725
|
titleId = _ref.titleId,
|
|
7066
|
-
props = _objectWithoutProperties$A(_ref, _excluded$
|
|
6726
|
+
props = _objectWithoutProperties$A(_ref, _excluded$V);
|
|
7067
6727
|
|
|
7068
6728
|
return /*#__PURE__*/createElement("svg", _extends$B({
|
|
7069
6729
|
viewBox: "0 0 186 74",
|
|
@@ -7078,7 +6738,7 @@ function SvgLogoLpaBlack(_ref) {
|
|
|
7078
6738
|
|
|
7079
6739
|
var _path$y;
|
|
7080
6740
|
|
|
7081
|
-
var _excluded$
|
|
6741
|
+
var _excluded$W = ["title", "titleId"];
|
|
7082
6742
|
|
|
7083
6743
|
function _extends$C() { _extends$C = Object.assign || 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$C.apply(this, arguments); }
|
|
7084
6744
|
|
|
@@ -7089,7 +6749,7 @@ function _objectWithoutPropertiesLoose$C(source, excluded) { if (source == null)
|
|
|
7089
6749
|
function SvgLogoLpaWhite(_ref) {
|
|
7090
6750
|
var title = _ref.title,
|
|
7091
6751
|
titleId = _ref.titleId,
|
|
7092
|
-
props = _objectWithoutProperties$B(_ref, _excluded$
|
|
6752
|
+
props = _objectWithoutProperties$B(_ref, _excluded$W);
|
|
7093
6753
|
|
|
7094
6754
|
return /*#__PURE__*/createElement("svg", _extends$C({
|
|
7095
6755
|
viewBox: "0 0 186 74",
|
|
@@ -7105,7 +6765,7 @@ function SvgLogoLpaWhite(_ref) {
|
|
|
7105
6765
|
|
|
7106
6766
|
var _g$1;
|
|
7107
6767
|
|
|
7108
|
-
var _excluded$
|
|
6768
|
+
var _excluded$X = ["title", "titleId"];
|
|
7109
6769
|
|
|
7110
6770
|
function _extends$D() { _extends$D = Object.assign || 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$D.apply(this, arguments); }
|
|
7111
6771
|
|
|
@@ -7116,7 +6776,7 @@ function _objectWithoutPropertiesLoose$D(source, excluded) { if (source == null)
|
|
|
7116
6776
|
function SvgLogoMlnBlack(_ref) {
|
|
7117
6777
|
var title = _ref.title,
|
|
7118
6778
|
titleId = _ref.titleId,
|
|
7119
|
-
props = _objectWithoutProperties$C(_ref, _excluded$
|
|
6779
|
+
props = _objectWithoutProperties$C(_ref, _excluded$X);
|
|
7120
6780
|
|
|
7121
6781
|
return /*#__PURE__*/createElement("svg", _extends$D({
|
|
7122
6782
|
viewBox: "0 0 300 71",
|
|
@@ -7125,7 +6785,7 @@ function SvgLogoMlnBlack(_ref) {
|
|
|
7125
6785
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7126
6786
|
id: titleId
|
|
7127
6787
|
}, title) : null, _g$1 || (_g$1 = /*#__PURE__*/createElement("g", {
|
|
7128
|
-
clipPath: "url(#
|
|
6788
|
+
clipPath: "url(#logo-mln-black_svg__clip0_51609_40290)"
|
|
7129
6789
|
}, /*#__PURE__*/createElement("path", {
|
|
7130
6790
|
d: "M0 66.115c3.741-4.266 7.607-8.432 11.173-12.871.254-.504.922-1.196 1.053-1.301.44-.354.774-.943 1.274-1.443.5 0 1.346.528 1.904.626 1.391.63.725.269 1.555.63a52.471 52.471 0 0030.7 3.422c15.464-2.48 30.702-6.175 46.065-9.3 9.726-1.983 19.477-3.819 29.528-2.802a32.053 32.053 0 0114.739 4.628 31.83 31.83 0 0110.824 10.97c.25.398.549.794.923 1.365.349-.37.667-.768.948-1.19 6.759-11.21 17.133-15.946 29.928-16.145 12.245-.198 23.992 2.877 35.813 5.431 11.323 2.48 22.67 4.96 34.118 6.795a57.052 57.052 0 0035.439-4.588l14.091 16.839c-5.163 1.091-9.702 2.48-14.291 2.976-17.906 2.48-35.215-.843-52.373-5.53-12.719-3.447-25.389-7.118-38.258-9.92-10.3-2.306-20.725-2.48-30.526 2.678a37.93 37.93 0 00-12.869 11.185l-1.646 2.182c-3.167-3.273-5.96-6.745-9.302-9.572-7.781-6.547-17.109-8.358-27.085-7.688-13.592.917-26.411 5.233-39.355 8.952a201.691 201.691 0 01-38.058 8.184A89.37 89.37 0 012.62 67.9c-.823-.248-1.721-.347-2.494-.52L-1 67l1-.885zM15.57 30h4.991V11.78h.372L27.798 30h3.507l6.865-18.22h.371V30h4.991V3.226h-6.42l-7.385 19.593h-.333L21.99 3.226h-6.42V30zm36.367 7.2c5.047 0 7.738-1.82 9.556-7.219l6.958-20.41h-5.715L58.45 25.046h-.37L53.792 9.57h-5.956L55.017 30l-.185.78c-.39 1.595-1.503 2.337-3.433 2.337-.5 0-1.039-.018-1.41-.055v4.082c.631.037 1.318.055 1.949.055zM72.757 30h17.516v-4.62H78.359V3.226h-5.603V30zM97.582 6.436c1.67 0 3.043-1.336 3.043-3.006A3.029 3.029 0 0097.582.405c-1.67 0-3.061 1.336-3.061 3.025 0 1.67 1.391 3.006 3.061 3.006zM94.855 30h5.417V9.571h-5.418V30zm22.933.315c5.103 0 8.294-3.989 8.294-10.52v-.037c0-6.568-3.117-10.52-8.294-10.52-2.802 0-5.084 1.372-6.123 3.599h-.334V1.76h-5.418V30h5.418v-3.173h.334c1.058 2.208 3.229 3.488 6.123 3.488zm-1.855-4.49c-2.858 0-4.658-2.264-4.658-6.011v-.038c0-3.748 1.819-6.049 4.658-6.049 2.857 0 4.638 2.301 4.638 6.03v.038c0 3.766-1.762 6.03-4.638 6.03zM130.479 30h5.418V18.57c0-2.894 1.949-4.657 5.029-4.657.835 0 1.67.13 2.486.316V9.497a8.113 8.113 0 00-2.022-.26c-2.654 0-4.509 1.3-5.159 3.507h-.334V9.571h-5.418V30zm21.747.315c2.671 0 4.824-1.131 5.863-3.024h.334V30h5.344V16.047c0-4.36-3.062-6.921-8.48-6.921-5.14 0-8.516 2.375-8.943 5.956l-.019.167h5.01l.037-.074c.427-1.206 1.67-1.893 3.618-1.893 2.227 0 3.433 1.002 3.433 2.765v1.688l-4.936.297c-5.084.297-7.923 2.45-7.923 6.123v.037c0 3.711 2.765 6.123 6.662 6.123zm-1.373-6.457v-.037c0-1.484 1.131-2.356 3.451-2.505l4.119-.26v1.504c0 2.152-1.874 3.803-4.379 3.803-1.874 0-3.191-.946-3.191-2.505zM169.073 30h5.418V18.57c0-2.894 1.948-4.657 5.029-4.657.834 0 1.669.13 2.486.316V9.497a8.115 8.115 0 00-2.023-.26c-2.653 0-4.508 1.3-5.158 3.507h-.334V9.571h-5.418V30zm19.353 7.2c5.047 0 7.737-1.82 9.555-7.219l6.958-20.41h-5.714l-4.287 15.475h-.371L190.281 9.57h-5.956L191.506 30l-.186.78c-.389 1.595-1.503 2.337-3.432 2.337-.501 0-1.039-.018-1.41-.055v4.082c.63.037 1.317.055 1.948.055zm20.818-7.2h5.362V12.874h.297L227.298 30h4.639V3.226h-5.363v17.051h-.297L213.92 3.226h-4.676V30zm36.609 0h5.603V19.999l9.333-16.773h-6.067l-5.882 11.262h-.334l-5.901-11.262h-6.067l9.315 16.773V30zm29.279.686c6.457 0 11.04-3.822 11.615-9.425l.019-.204h-5.455l-.038.148c-.593 2.858-2.913 4.732-6.123 4.732-4.23 0-6.846-3.563-6.846-9.315v-.037c0-5.752 2.616-9.296 6.828-9.296 3.191 0 5.585 2.041 6.16 5.047v.13h5.455v-.223c-.519-5.659-5.269-9.704-11.615-9.704-7.775 0-12.562 5.362-12.562 14.046v.037c0 8.684 4.806 14.064 12.562 14.064z"
|
|
7131
6791
|
}))));
|
|
@@ -7133,7 +6793,7 @@ function SvgLogoMlnBlack(_ref) {
|
|
|
7133
6793
|
|
|
7134
6794
|
var _g$2;
|
|
7135
6795
|
|
|
7136
|
-
var _excluded$
|
|
6796
|
+
var _excluded$Y = ["title", "titleId"];
|
|
7137
6797
|
|
|
7138
6798
|
function _extends$E() { _extends$E = Object.assign || 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$E.apply(this, arguments); }
|
|
7139
6799
|
|
|
@@ -7144,7 +6804,7 @@ function _objectWithoutPropertiesLoose$E(source, excluded) { if (source == null)
|
|
|
7144
6804
|
function SvgLogoMlnWhite(_ref) {
|
|
7145
6805
|
var title = _ref.title,
|
|
7146
6806
|
titleId = _ref.titleId,
|
|
7147
|
-
props = _objectWithoutProperties$D(_ref, _excluded$
|
|
6807
|
+
props = _objectWithoutProperties$D(_ref, _excluded$Y);
|
|
7148
6808
|
|
|
7149
6809
|
return /*#__PURE__*/createElement("svg", _extends$E({
|
|
7150
6810
|
viewBox: "0 0 300 71",
|
|
@@ -7154,7 +6814,7 @@ function SvgLogoMlnWhite(_ref) {
|
|
|
7154
6814
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7155
6815
|
id: titleId
|
|
7156
6816
|
}, title) : null, _g$2 || (_g$2 = /*#__PURE__*/createElement("g", {
|
|
7157
|
-
clipPath: "url(#
|
|
6817
|
+
clipPath: "url(#logo-mln-white_svg__clip0_51609_40290)"
|
|
7158
6818
|
}, /*#__PURE__*/createElement("path", {
|
|
7159
6819
|
d: "M0 66.115c3.741-4.266 7.607-8.432 11.173-12.871.254-.504.922-1.196 1.053-1.301.44-.354.774-.943 1.274-1.443.5 0 1.346.528 1.904.626 1.391.63.725.269 1.555.63a52.471 52.471 0 0030.7 3.422c15.464-2.48 30.702-6.175 46.065-9.3 9.726-1.983 19.477-3.819 29.528-2.802a32.053 32.053 0 0114.739 4.628 31.83 31.83 0 0110.824 10.97c.25.398.549.794.923 1.365.349-.37.667-.768.948-1.19 6.759-11.21 17.133-15.946 29.928-16.145 12.245-.198 23.992 2.877 35.813 5.431 11.323 2.48 22.67 4.96 34.118 6.795a57.052 57.052 0 0035.439-4.588l14.091 16.839c-5.163 1.091-9.702 2.48-14.291 2.976-17.906 2.48-35.215-.843-52.373-5.53-12.719-3.447-25.389-7.118-38.258-9.92-10.3-2.306-20.725-2.48-30.526 2.678a37.93 37.93 0 00-12.869 11.185l-1.646 2.182c-3.167-3.273-5.96-6.745-9.302-9.572-7.781-6.547-17.109-8.358-27.085-7.688-13.592.917-26.411 5.233-39.355 8.952a201.691 201.691 0 01-38.058 8.184A89.37 89.37 0 012.62 67.9c-.823-.248-1.721-.347-2.494-.52L-1 67l1-.885zM15.57 30h4.991V11.78h.372L27.798 30h3.507l6.865-18.22h.371V30h4.991V3.226h-6.42l-7.385 19.593h-.333L21.99 3.226h-6.42V30zm36.367 7.2c5.047 0 7.738-1.82 9.556-7.219l6.958-20.41h-5.715L58.45 25.046h-.37L53.792 9.57h-5.956L55.017 30l-.185.78c-.39 1.595-1.503 2.337-3.433 2.337-.5 0-1.039-.018-1.41-.055v4.082c.631.037 1.318.055 1.949.055zM72.757 30h17.516v-4.62H78.359V3.226h-5.603V30zM97.582 6.436c1.67 0 3.043-1.336 3.043-3.006A3.029 3.029 0 0097.582.405c-1.67 0-3.061 1.336-3.061 3.025 0 1.67 1.391 3.006 3.061 3.006zM94.855 30h5.417V9.571h-5.418V30zm22.933.315c5.103 0 8.294-3.989 8.294-10.52v-.037c0-6.568-3.117-10.52-8.294-10.52-2.802 0-5.084 1.372-6.123 3.599h-.334V1.76h-5.418V30h5.418v-3.173h.334c1.058 2.208 3.229 3.488 6.123 3.488zm-1.855-4.49c-2.858 0-4.658-2.264-4.658-6.011v-.038c0-3.748 1.819-6.049 4.658-6.049 2.857 0 4.638 2.301 4.638 6.03v.038c0 3.766-1.762 6.03-4.638 6.03zM130.479 30h5.418V18.57c0-2.894 1.949-4.657 5.029-4.657.835 0 1.67.13 2.486.316V9.497a8.113 8.113 0 00-2.022-.26c-2.654 0-4.509 1.3-5.159 3.507h-.334V9.571h-5.418V30zm21.747.315c2.671 0 4.824-1.131 5.863-3.024h.334V30h5.344V16.047c0-4.36-3.062-6.921-8.48-6.921-5.14 0-8.516 2.375-8.943 5.956l-.019.167h5.01l.037-.074c.427-1.206 1.67-1.893 3.618-1.893 2.227 0 3.433 1.002 3.433 2.765v1.688l-4.936.297c-5.084.297-7.923 2.45-7.923 6.123v.037c0 3.711 2.765 6.123 6.662 6.123zm-1.373-6.457v-.037c0-1.484 1.131-2.356 3.451-2.505l4.119-.26v1.504c0 2.152-1.874 3.803-4.379 3.803-1.874 0-3.191-.946-3.191-2.505zM169.073 30h5.418V18.57c0-2.894 1.948-4.657 5.029-4.657.834 0 1.669.13 2.486.316V9.497a8.115 8.115 0 00-2.023-.26c-2.653 0-4.508 1.3-5.158 3.507h-.334V9.571h-5.418V30zm19.353 7.2c5.047 0 7.737-1.82 9.555-7.219l6.958-20.41h-5.714l-4.287 15.475h-.371L190.281 9.57h-5.956L191.506 30l-.186.78c-.389 1.595-1.503 2.337-3.432 2.337-.501 0-1.039-.018-1.41-.055v4.082c.63.037 1.317.055 1.948.055zm20.818-7.2h5.362V12.874h.297L227.298 30h4.639V3.226h-5.363v17.051h-.297L213.92 3.226h-4.676V30zm36.609 0h5.603V19.999l9.333-16.773h-6.067l-5.882 11.262h-.334l-5.901-11.262h-6.067l9.315 16.773V30zm29.279.686c6.457 0 11.04-3.822 11.615-9.425l.019-.204h-5.455l-.038.148c-.593 2.858-2.913 4.732-6.123 4.732-4.23 0-6.846-3.563-6.846-9.315v-.037c0-5.752 2.616-9.296 6.828-9.296 3.191 0 5.585 2.041 6.16 5.047v.13h5.455v-.223c-.519-5.659-5.269-9.704-11.615-9.704-7.775 0-12.562 5.362-12.562 14.046v.037c0 8.684 4.806 14.064 12.562 14.064z"
|
|
7160
6820
|
}))));
|
|
@@ -7162,7 +6822,7 @@ function SvgLogoMlnWhite(_ref) {
|
|
|
7162
6822
|
|
|
7163
6823
|
var _path$z, _path2$f, _path3$a, _path4$2, _path5$1, _path6$1, _path7$1;
|
|
7164
6824
|
|
|
7165
|
-
var _excluded$
|
|
6825
|
+
var _excluded$Z = ["title", "titleId"];
|
|
7166
6826
|
|
|
7167
6827
|
function _extends$F() { _extends$F = Object.assign || 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$F.apply(this, arguments); }
|
|
7168
6828
|
|
|
@@ -7173,7 +6833,7 @@ function _objectWithoutPropertiesLoose$F(source, excluded) { if (source == null)
|
|
|
7173
6833
|
function SvgLogoNyplFullBlack(_ref) {
|
|
7174
6834
|
var title = _ref.title,
|
|
7175
6835
|
titleId = _ref.titleId,
|
|
7176
|
-
props = _objectWithoutProperties$E(_ref, _excluded$
|
|
6836
|
+
props = _objectWithoutProperties$E(_ref, _excluded$Z);
|
|
7177
6837
|
|
|
7178
6838
|
return /*#__PURE__*/createElement("svg", _extends$F({
|
|
7179
6839
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7204,7 +6864,7 @@ function SvgLogoNyplFullBlack(_ref) {
|
|
|
7204
6864
|
|
|
7205
6865
|
var _g$3, _defs;
|
|
7206
6866
|
|
|
7207
|
-
var _excluded$
|
|
6867
|
+
var _excluded$_ = ["title", "titleId"];
|
|
7208
6868
|
|
|
7209
6869
|
function _extends$G() { _extends$G = Object.assign || 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$G.apply(this, arguments); }
|
|
7210
6870
|
|
|
@@ -7215,7 +6875,7 @@ function _objectWithoutPropertiesLoose$G(source, excluded) { if (source == null)
|
|
|
7215
6875
|
function SvgLogoNyplFullWhite(_ref) {
|
|
7216
6876
|
var title = _ref.title,
|
|
7217
6877
|
titleId = _ref.titleId,
|
|
7218
|
-
props = _objectWithoutProperties$F(_ref, _excluded$
|
|
6878
|
+
props = _objectWithoutProperties$F(_ref, _excluded$_);
|
|
7219
6879
|
|
|
7220
6880
|
return /*#__PURE__*/createElement("svg", _extends$G({
|
|
7221
6881
|
viewBox: "0 0 967 568",
|
|
@@ -7225,7 +6885,7 @@ function SvgLogoNyplFullWhite(_ref) {
|
|
|
7225
6885
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7226
6886
|
id: titleId
|
|
7227
6887
|
}, title) : null, _g$3 || (_g$3 = /*#__PURE__*/createElement("g", {
|
|
7228
|
-
clipPath: "url(#
|
|
6888
|
+
clipPath: "url(#logo-nypl-full-white_svg__clip0_1147_1139)",
|
|
7229
6889
|
fill: "#fff"
|
|
7230
6890
|
}, /*#__PURE__*/createElement("path", {
|
|
7231
6891
|
d: "M251.237 291.137c-.698 3.641-2.919 10.677-6.472 11.135-3.576.456-6.155-3.379-8.719-4.818-4.33-2.413-10.451-3.994-16.107-5.865-4.88-1.616-11.571-3.62-13.531-8.276-2.942-6.93 3.928-10.211 8.872-11.733 4.659-1.433 8.068-1.97 14.142-2.254 8.934-.428 17.465.85 20.464 6.466 1.809 3.382 2.361 10.093 1.351 15.345zm82.012 4.469c-15.561-7.617-35.77-11.433-50.479-19.599-11.641-6.455-20.566-17.12-33.097-22.866-12.781-6.259-32.021-12.549-39.377-14.361-25.998-6.396-47.833 1.932-55.409 7.925-14.14 11.176-25.19 29.342-20.878 55.473 1.826 11.048 5.228 20.341 10.629 27.985 21.93 30.97 62.972 41.034 95.488 60.572 1.145.778 2.341.572 3.072-.423 5.461-8.034 9.901-14.498 19.1-18.322 9.339-3.899 24.035-2.576 36.705-1.957 13.093.629 27.224-.598 31.968-7.366 5.675-8.079 5.343-24.358-3.314-29.331-4.645-2.676-11.573-2.798-16.625-5.128-3.687-1.705-6.531-4.893-8.563-9.326-1.704-3.709-3.29-9.799-1.08-13.77 2.034-3.663 7.165-2.627 11.283-1.668 8.168 1.873 21.813 3.862 29.669.414 2.315-1.182-5.961-6.724-9.092-8.252zM4.386 317.474c.47-2.649.674-3.389 2.272-5.473 2.529-3.783 33.22-38.222 80.791-46.567 6.26-.899 10.772-.464 11.798 2.045 1.797 4.399-1.846 6.935-6.229 9.472C16.722 322.55 22.13 390.336 21.4 418.066c.23 11.341-7.962 13.409-10.007 8.064-8.954-24.425-16.482-62.708-7.007-108.656zm51.625-99.862c1.564-1.658 2.582-2.421 4.902-3.074 29.301-7.279 58.696-2.644 79.862 6.796 4.755 2.102 6.895 5.085 3.775 7.086-3.969 2.305-15.996 10.127-22.643 16.321-1.933 1.667-5.379 1.753-7.412 1.484-24.813-3.272-37.703-5.203-75.006 8.937-5.723 2.407-10.87-.868-8.237-5.366 4.967-8.898 16.516-23.78 24.76-32.184zm48.216-29.276c-6.415-.731-6.506-5.423-3.794-7.251 6.971-4.885 18.282-10.781 29.656-15.291 3.411-1.35 5.168-1.702 8.289-1.388 8.384.838 22.266 6.484 38.198 17.85 19.106 13.632 36.1 39.528 24.734 37.434-7.189-1.246-4.059-.904-12.485-1.828-8.611-.764-14.261.12-18.229-.284-1.729-.142-3.091-1.295-4.309-2.29-16.124-14.458-34.751-23.635-62.06-26.952z"
|
|
@@ -7236,7 +6896,7 @@ function SvgLogoNyplFullWhite(_ref) {
|
|
|
7236
6896
|
}), /*#__PURE__*/createElement("path", {
|
|
7237
6897
|
d: "M100.548 370.783c-13.42-32.694-4.658-62.132 1.272-73.299 2.988-5.635 5.91-9.316 9.724-8.256 4.151 1.157 5.11 5.406 5.683 13.281 4.222 65.353 43.753 87.356 93.401 110.43 39.174 20.024 83.741 42.918 121.092 98.373 5.653 8.007 6.469 12.864.088 17.45-22.776 15.546-43.404 26.383-73.589 33.422-4.541 1.063-9.229.265-13.253-10.116C203.035 444.031 132.634 448.9 100.548 370.783zM360.26 503.607c-6.382 6.383-10.006 1.382-12.089-2.719-8.941-19.01-17.674-34.919-31.756-50.332-2.437-2.471-.558-5.944 3.028-5.589 4.582.366 7.586.114 12.627-2.051 4.268-1.832 9.154-7.814 11.591-16.405 1.776-6.268 1.86-8.112 5.7-8.501.954-.089 2.702.149 3.761.453 4.674 1.332 9.693 5.152 13.36 7.964 9.406 7.185 23.439 23.046 25.895 28.177 1.56 3.267.068 5.482-.812 7.349-4.923 10.062-20.445 30.918-31.305 41.654zM476.671 7.388h7.369l54.269 78.566V7.388h7.088v90.997h-6.976l-54.777-79.13v79.13h-6.973V7.388zM605.125 57.78c-.159-9.84-5.183-19.917-17.64-19.917-11.322 0-17.904 8.725-19.814 19.917h37.454zm-45.387 7.396c0-18.458 10.686-33.49 28.009-33.49 16.703 0 25.843 13.385 24.463 32h-44.935v1.49c.114 14.876 6.412 28.542 21.992 28.542 8.322 0 15.295-3.397 18.839-6.13l3.037 5.607c-4.106 2.997-11.642 6.705-22.16 6.705-19.953 0-29.245-16.025-29.245-34.724zm60.783-31.973h7.649l15.861 54.242 17.063-54.242h7.008l17.041 54.384 16.026-54.384h7.088l-19.688 65.183h-6.519l-17.609-54.947-17.662 54.947h-6.572l-19.686-65.183zm151.272 30.876l-30.492-56.69h8.503l25.815 49.163h.223l25.823-49.163h7.664l-30.163 56.69v34.307h-7.373V64.077zm83.09 1.8c0-14.623-7.789-28.016-22.693-28.016-14.734 0-21.426 13.112-21.426 27.735 0 14.735 7.189 28.12 21.989 28.12 14.9 0 22.13-13.104 22.13-27.84zm-51.712 0c0-16.423 8.773-34.193 29.246-34.193 20.551 0 29.976 17.658 29.976 33.912 0 16.365-9.336 34.302-29.81 34.302-20.47 0-29.412-17.655-29.412-34.022zm72.807-32.676h7.14v11.36c2.433-4.785 8.329-12.877 17.496-12.877 3.038 0 5.173.675 6.298 1.124l-1.752 6.692c-1.117-.448-2.636-.956-5.333-.956-9.043 0-14.906 10.63-16.709 14.454v45.386h-7.14V33.202zm51.796 28.572L956.4 33.202h8.828l-28.847 28.572 30.366 36.61h-8.88l-30.093-36.61zM920.048.008h7.106v98.377h-7.106V.008zM495.649 190.396c17.321 0 24.463-7.929 24.463-19.964 0-11.361-6.861-19.566-24.183-19.566h-11.64v39.53h11.36zm-18.881-45.946h19.837c19.122 0 31.158 9.448 31.158 25.701 0 16.418-11.361 26.658-32.002 26.658h-11.472v38.692h-7.521V144.45zm62.463 71.929v-46.096h7.087v44.577c0 9.563 3.428 15.691 13.384 15.691 9.731 0 17.77-9.165 19.965-12.991v-47.277h7.085v52.623c0 5.171.563 10.121 1.237 12.595h-7.243c-.403-2.249-.956-7.122-.956-10.686-3.126 4.949-10.528 12.188-21.567 12.188-13.663 0-18.992-8.926-18.992-20.624zM648.8 202.942c0-14.222-5.473-27.73-21.332-27.73-5.566 0-12.146 3.263-15.826 7.369v45.667c3.004 1.516 7.503 2.531 12.705 2.531 16.524 0 24.453-14.343 24.453-27.837zm-44.276 29.127v-94.987h7.118v39.199c3.961-4.499 10.372-7.479 17.065-7.479 18.613 0 27.613 14.895 27.613 33.853 0 18.337-12.316 34.348-32.228 34.348-7.814 0-15.07-1.916-19.568-4.934zm67.747-94.987h7.143v98.419h-7.143v-98.419zm28.278 33.201h7.207v65.218h-7.207v-65.218zm-1.79-19.253c0-3.149 2.474-5.456 5.345-5.456 3.033 0 5.508 2.307 5.508 5.456 0 3.148-2.475 5.585-5.508 5.585-2.871 0-5.345-2.437-5.345-5.585zm22.718 51.796c0-20.641 11.866-34.024 28.683-34.024 9.73 0 15.858 3.654 19.39 6.803l-3.7 5.218c-3.654-3.136-8.605-5.892-15.858-5.892-14.472 0-21.037 12.595-21.037 27.612 0 14.456 6.471 28.236 20.941 28.236 7.52 0 13.817-3.264 16.688-5.796l3.091 5.312c-3.491 3.126-10.347 6.708-20.244 6.708-18.701 0-27.954-16.741-27.954-34.177zM476.671 372.798v-90.997h19.402v75.392h33.907v15.605h-53.309zm67.687 0v-66.535h18.319v66.535h-18.319zm9.154-75.134c-6.415 0-11.07-5.117-11.07-10.916 0-5.745 4.655-10.685 11.07-10.685 6.411 0 11.201 4.94 11.201 10.685 0 5.799-4.79 10.916-11.201 10.916zm43.305 61.017c1.232.429 4.1 1.521 9.163 1.521 10.122 0 16.139-7.48 16.139-21.203 0-12.429-4.222-20.077-14.059-20.077-5.736 0-10.123 3.765-11.243 5.117v34.642zm0-84.303v37.064c3.032-3.041 8.881-6.864 16.289-6.864 16.664 0 28.27 11.472 28.27 34.421 0 22.719-15.318 35.444-35.396 35.444-15.019 0-24.184-3.833-27.333-5.301v-94.764h18.17zm95.708 47.836c-1.122-.65-3.202-1.44-7.029-1.44-8.041 0-12.821 7.09-14.506 10.064v41.96h-18.138v-66.535h18.138v9.003c2.866-4.951 8.377-10.688 16.814-10.688 4.948 0 7.589.958 9.035 1.824l-4.314 15.812zm46.01 21.082h-2.368c-10.578 0-17.996 3.126-17.996 10.942 0 4.872 3.996 6.917 8.043 6.917 6.572 0 10.405-3.825 12.321-5.878v-11.981zm2.02 29.502c-.563-1.688-.955-5.064-1.061-7.087-2.987 3.487-9.288 8.732-18.697 8.732-11.399 0-20.124-6.818-20.124-18.691 0-17.375 17.892-23.673 35.494-23.673h2.368v-3.824c0-5.737-2.368-9.333-10.803-9.333-8.605 0-14.51 4.553-16.983 6.298l-7.875-11.081c3.992-3.486 12.661-9.561 26.938-9.561 18.167 0 26.77 7.032 26.77 24.634v23.9c0 8.999.956 15.465 1.912 19.686h-17.939zm70.962-50.584c-1.123-.65-3.205-1.44-7.029-1.44-8.041 0-12.824 7.09-14.496 10.064v41.96h-18.181v-66.535h18.181v9.003c2.878-4.951 8.365-10.688 16.801-10.688 4.948 0 7.593.958 9.083 1.824l-4.359 15.812zm10.604-15.951h19.349l14.799 43.814h.667l13.554-43.814h18.726l-27.499 73.619c-5.89 15.693-12.825 24.858-30.988 24.858-5.576 0-8.941-.786-10.292-1.182l2.642-14.338c.954.224 2.475.616 6.363.616 9.328 0 12.59-4.441 15.233-11.56l2.474-6.829-25.028-65.184z"
|
|
7238
6898
|
}))), _defs || (_defs = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
7239
|
-
id: "
|
|
6899
|
+
id: "logo-nypl-full-white_svg__clip0_1147_1139"
|
|
7240
6900
|
}, /*#__PURE__*/createElement("path", {
|
|
7241
6901
|
fill: "#fff",
|
|
7242
6902
|
d: "M0 0h966.773v567.413H0z"
|
|
@@ -7245,7 +6905,7 @@ function SvgLogoNyplFullWhite(_ref) {
|
|
|
7245
6905
|
|
|
7246
6906
|
var _path$A, _path2$g, _path3$b;
|
|
7247
6907
|
|
|
7248
|
-
var _excluded
|
|
6908
|
+
var _excluded$$ = ["title", "titleId"];
|
|
7249
6909
|
|
|
7250
6910
|
function _extends$H() { _extends$H = Object.assign || 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$H.apply(this, arguments); }
|
|
7251
6911
|
|
|
@@ -7256,7 +6916,7 @@ function _objectWithoutPropertiesLoose$H(source, excluded) { if (source == null)
|
|
|
7256
6916
|
function SvgLogoNyplLionBlack(_ref) {
|
|
7257
6917
|
var title = _ref.title,
|
|
7258
6918
|
titleId = _ref.titleId,
|
|
7259
|
-
props = _objectWithoutProperties$G(_ref, _excluded
|
|
6919
|
+
props = _objectWithoutProperties$G(_ref, _excluded$$);
|
|
7260
6920
|
|
|
7261
6921
|
return /*#__PURE__*/createElement("svg", _extends$H({
|
|
7262
6922
|
viewBox: "0 0 136 135",
|
|
@@ -7281,7 +6941,7 @@ function SvgLogoNyplLionBlack(_ref) {
|
|
|
7281
6941
|
|
|
7282
6942
|
var _path$B, _mask, _g$4;
|
|
7283
6943
|
|
|
7284
|
-
var _excluded
|
|
6944
|
+
var _excluded$10 = ["title", "titleId"];
|
|
7285
6945
|
|
|
7286
6946
|
function _extends$I() { _extends$I = Object.assign || 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$I.apply(this, arguments); }
|
|
7287
6947
|
|
|
@@ -7292,7 +6952,7 @@ function _objectWithoutPropertiesLoose$I(source, excluded) { if (source == null)
|
|
|
7292
6952
|
function SvgLogoNyplLionWhite(_ref) {
|
|
7293
6953
|
var title = _ref.title,
|
|
7294
6954
|
titleId = _ref.titleId,
|
|
7295
|
-
props = _objectWithoutProperties$H(_ref, _excluded
|
|
6955
|
+
props = _objectWithoutProperties$H(_ref, _excluded$10);
|
|
7296
6956
|
|
|
7297
6957
|
return /*#__PURE__*/createElement("svg", _extends$I({
|
|
7298
6958
|
viewBox: "0 0 125 126",
|
|
@@ -7306,7 +6966,7 @@ function SvgLogoNyplLionWhite(_ref) {
|
|
|
7306
6966
|
clipRule: "evenodd",
|
|
7307
6967
|
d: "M122.666 79.082l-.006.019c-.499 1.582-1.133 3.595-2.402 2.672a59.23 59.23 0 00-12.99-7.207c-.275-.07-.24-.448-.14-.653.359-.81.591-1.67.69-2.551a6.232 6.232 0 011.239-2.243 22.616 22.616 0 002.338-8.203 20.544 20.544 0 00-.38-6.514 13.52 13.52 0 01-.789-2.86c0-.498.128-.995.262-1.518.118-.457.241-.934.287-1.448a8.87 8.87 0 00-5.85-6.758 275.96 275.96 0 00-4.997-2.249c-3.374-1.492-6.85-3.03-10.356-4.888a60.679 60.679 0 01-7.779-6.892 55.953 55.953 0 00-13.284-5.756 1.272 1.272 0 01-1.069-1.067 31.14 31.14 0 00-11.616-18.07c-2.168-1.69.295-2.657 3.293-2.791 20.115-1.132 39.54 7.499 52.152 23.172a62.1 62.1 0 0111.397 55.805zM29.501 8.846c-.797.53-.797 1.898 1.145 2.096 6.959.573 13.531 3.298 18.72 7.762.339.353.792.587 1.287.665.489.04 1.05.022 1.713 0 .993-.031 2.218-.071 3.782.067 1.262.103 2.516.281 3.754.535 3.41.603-1.7-6.866-7.438-10.798A27.838 27.838 0 0040.96 4.042a4.562 4.562 0 00-2.523.4 47.777 47.777 0 00-8.936 4.404zm-13 11.099c.373-.435.87-.75 1.428-.905a37.673 37.673 0 0123.522 1.974c1.393.604 2.04 1.45 1.121 2.04a51.105 51.105 0 00-6.67 4.717 3.228 3.228 0 01-2.178.435A36.309 36.309 0 0011.63 30.77c-1.7.701-3.201-.266-2.416-1.538a54.633 54.633 0 017.287-9.287zm81.78 23.683c-2.133-1.048-4.559-1.853-6.98-2.656-2.815-.934-5.624-1.866-7.958-3.175-1.581-.874-2.984-2.005-4.39-3.14-1.684-1.356-3.373-2.718-5.383-3.653a71.807 71.807 0 00-11.654-4.254 20.684 20.684 0 00-16.407 2.365 16.644 16.644 0 00-6.186 16.461 19.583 19.583 0 003.14 8.31c4.474 6.333 11.625 9.72 18.782 13.109 3.231 1.53 6.464 3.061 9.452 4.864a.625.625 0 00.88-.076l.003-.003.06-.045a12.757 12.757 0 015.64-5.454 28.588 28.588 0 0110.87-.585c3.325.64 6.765-.158 9.466-2.196a6.74 6.74 0 00-.992-8.712c-.748-.43-1.699-.636-2.653-.842-.792-.172-1.586-.344-2.268-.645a5.202 5.202 0 01-2.53-2.777 5.015 5.015 0 01-.308-4.08 2.84 2.84 0 013.349-.496c2.865.816 5.896.864 8.786.139a4.326 4.326 0 00-2.719-2.46zm-24.235-1.34a4.164 4.164 0 01-1.915 3.293 4.495 4.495 0 01-2.565-1.443 28.23 28.23 0 00-4.753-1.75 6.177 6.177 0 01-3.998-2.48c-.854-2.057 1.16-3.019 2.63-3.5a16.046 16.046 0 014.176-.669 6.278 6.278 0 016.048 1.919c.52 1.486.65 3.08.377 4.63zm-72.01 5.853a2.742 2.742 0 00-.696 1.619 59.402 59.402 0 002.083 32.42c.63 1.574 3.097.966 3.027-2.411.018-.624.026-1.314.034-2.064.102-9.222.302-27.42 21.493-40.004 1.322-.757 2.431-1.514 1.877-2.824a3.366 3.366 0 00-3.531-.623c-9.438 1.824-17.987 6.712-24.287 13.887zm100.09 8.538c0 .177.114 1.012.152 1.254a13.47 13.47 0 01-.277 4.979.713.713 0 00.223.558 8.308 8.308 0 012.91 3.413c.092.242.39.101.542-.211a16.316 16.316 0 00.184-12.429l-.008-.015c-.044-.084-.155-.296-.328-.196-.695.379-1.357.81-1.978 1.288-.6.322-1.091.793-1.42 1.36zM81.61 73.897c.239-.94.817-1.75 1.615-2.265a15.306 15.306 0 016.623-1.219 19.97 19.97 0 006.69-1.148 3.977 3.977 0 013.665-1.183c.7.351 1.215 1 1.411 1.777.306.858.433 1.772.371 2.684a82.29 82.29 0 01-3.094 7.487c.01.481-.119.955-.371 1.36a11.028 11.028 0 01-8.809 1.183 9.228 9.228 0 01-3.162-.56 6.333 6.333 0 01-1.581-1.323c-.776-.748-1.31-1.366-1.973-2.133-.23-.266-.475-.55-.75-.863A5.407 5.407 0 0181 76.056c.145-.736.35-1.458.61-2.16zm-61.686 33.61a9.874 9.874 0 002.494 3.102 61.69 61.69 0 0034.798 14.369c2.475.204 2.749-.689 2.784-2.105a43.057 43.057 0 00-9.589-18.179c-1.23-1.608-3.467-4.047-6.147-6.967-6.468-7.048-15.508-16.9-19.152-24.634a24.816 24.816 0 01-2.714-17.954c.823-3.003-1.686-4.798-4.056-.898-7.458 11.142-4.225 43.984 1.582 53.266zM30.107 65.19a26.819 26.819 0 01.378-21.694c.89-1.676 1.745-2.77 2.88-2.428 1.233.341 1.492 1.608 1.68 3.957 1.269 19.363 12.987 25.862 27.689 32.708a84.543 84.543 0 0135.91 29.117c1.68 2.359 1.919 3.798.034 5.163a60.152 60.152 0 01-21.829 9.892c-1.338.307-2.74.07-3.94-3.012-6.754-17.427-16.015-24.947-24.59-31.91-7.177-5.827-13.872-11.264-18.212-21.793zm72.632 39.117c.611 1.218 1.71 2.67 3.594.812a60.34 60.34 0 009.249-12.215 2.214 2.214 0 00.239-2.167 37.68 37.68 0 00-7.669-8.257 14.577 14.577 0 00-3.976-2.334 3.434 3.434 0 00-1.129-.137c-1.043.126-1.168.593-1.57 2.095-.034.129-.07.265-.11.41a7.431 7.431 0 01-3.424 4.803 6.76 6.76 0 01-3.733.612.97.97 0 00-1.094.467.938.938 0 00.204 1.157 55.145 55.145 0 019.419 14.754z"
|
|
7308
6968
|
})), _mask || (_mask = /*#__PURE__*/createElement("mask", {
|
|
7309
|
-
id: "
|
|
6969
|
+
id: "logo-nypl-lion-white_svg__a",
|
|
7310
6970
|
maskUnits: "userSpaceOnUse",
|
|
7311
6971
|
x: 0,
|
|
7312
6972
|
y: 0,
|
|
@@ -7317,7 +6977,7 @@ function SvgLogoNyplLionWhite(_ref) {
|
|
|
7317
6977
|
clipRule: "evenodd",
|
|
7318
6978
|
d: "M122.666 79.082l-.006.019c-.499 1.582-1.133 3.595-2.402 2.672a59.23 59.23 0 00-12.99-7.207c-.275-.07-.24-.448-.14-.653.359-.81.591-1.67.69-2.551a6.232 6.232 0 011.239-2.243 22.616 22.616 0 002.338-8.203 20.544 20.544 0 00-.38-6.514 13.52 13.52 0 01-.789-2.86c0-.498.128-.995.262-1.518.118-.457.241-.934.287-1.448a8.87 8.87 0 00-5.85-6.758 275.96 275.96 0 00-4.997-2.249c-3.374-1.492-6.85-3.03-10.356-4.888a60.679 60.679 0 01-7.779-6.892 55.953 55.953 0 00-13.284-5.756 1.272 1.272 0 01-1.069-1.067 31.14 31.14 0 00-11.616-18.07c-2.168-1.69.295-2.657 3.293-2.791 20.115-1.132 39.54 7.499 52.152 23.172a62.1 62.1 0 0111.397 55.805zM29.501 8.846c-.797.53-.797 1.898 1.145 2.096 6.959.573 13.531 3.298 18.72 7.762.339.353.792.587 1.287.665.489.04 1.05.022 1.713 0 .993-.031 2.218-.071 3.782.067 1.262.103 2.516.281 3.754.535 3.41.603-1.7-6.866-7.438-10.798A27.838 27.838 0 0040.96 4.042a4.562 4.562 0 00-2.523.4 47.777 47.777 0 00-8.936 4.404zm-13 11.099c.373-.435.87-.75 1.428-.905a37.673 37.673 0 0123.522 1.974c1.393.604 2.04 1.45 1.121 2.04a51.105 51.105 0 00-6.67 4.717 3.228 3.228 0 01-2.178.435A36.309 36.309 0 0011.63 30.77c-1.7.701-3.201-.266-2.416-1.538a54.633 54.633 0 017.287-9.287zm81.78 23.683c-2.133-1.048-4.559-1.853-6.98-2.656-2.815-.934-5.624-1.866-7.958-3.175-1.581-.874-2.984-2.005-4.39-3.14-1.684-1.356-3.373-2.718-5.383-3.653a71.807 71.807 0 00-11.654-4.254 20.684 20.684 0 00-16.407 2.365 16.644 16.644 0 00-6.186 16.461 19.583 19.583 0 003.14 8.31c4.474 6.333 11.625 9.72 18.782 13.109 3.231 1.53 6.464 3.061 9.452 4.864a.625.625 0 00.88-.076l.003-.003.06-.045a12.757 12.757 0 015.64-5.454 28.588 28.588 0 0110.87-.585c3.325.64 6.765-.158 9.466-2.196a6.74 6.74 0 00-.992-8.712c-.748-.43-1.699-.636-2.653-.842-.792-.172-1.586-.344-2.268-.645a5.202 5.202 0 01-2.53-2.777 5.015 5.015 0 01-.308-4.08 2.84 2.84 0 013.349-.496c2.865.816 5.896.864 8.786.139a4.326 4.326 0 00-2.719-2.46zm-24.235-1.34a4.164 4.164 0 01-1.915 3.293 4.495 4.495 0 01-2.565-1.443 28.23 28.23 0 00-4.753-1.75 6.177 6.177 0 01-3.998-2.48c-.854-2.057 1.16-3.019 2.63-3.5a16.046 16.046 0 014.176-.669 6.278 6.278 0 016.048 1.919c.52 1.486.65 3.08.377 4.63zm-72.01 5.853a2.742 2.742 0 00-.696 1.619 59.402 59.402 0 002.083 32.42c.63 1.574 3.097.966 3.027-2.411.018-.624.026-1.314.034-2.064.102-9.222.302-27.42 21.493-40.004 1.322-.757 2.431-1.514 1.877-2.824a3.366 3.366 0 00-3.531-.623c-9.438 1.824-17.987 6.712-24.287 13.887zm100.09 8.538c0 .177.114 1.012.152 1.254a13.47 13.47 0 01-.277 4.979.713.713 0 00.223.558 8.308 8.308 0 012.91 3.413c.092.242.39.101.542-.211a16.316 16.316 0 00.184-12.429l-.008-.015c-.044-.084-.155-.296-.328-.196-.695.379-1.357.81-1.978 1.288-.6.322-1.091.793-1.42 1.36zM81.61 73.897c.239-.94.817-1.75 1.615-2.265a15.306 15.306 0 016.623-1.219 19.97 19.97 0 006.69-1.148 3.977 3.977 0 013.665-1.183c.7.351 1.215 1 1.411 1.777.306.858.433 1.772.371 2.684a82.29 82.29 0 01-3.094 7.487c.01.481-.119.955-.371 1.36a11.028 11.028 0 01-8.809 1.183 9.228 9.228 0 01-3.162-.56 6.333 6.333 0 01-1.581-1.323c-.776-.748-1.31-1.366-1.973-2.133-.23-.266-.475-.55-.75-.863A5.407 5.407 0 0181 76.056c.145-.736.35-1.458.61-2.16zm-61.686 33.61a9.874 9.874 0 002.494 3.102 61.69 61.69 0 0034.798 14.369c2.475.204 2.749-.689 2.784-2.105a43.057 43.057 0 00-9.589-18.179c-1.23-1.608-3.467-4.047-6.147-6.967-6.468-7.048-15.508-16.9-19.152-24.634a24.816 24.816 0 01-2.714-17.954c.823-3.003-1.686-4.798-4.056-.898-7.458 11.142-4.225 43.984 1.582 53.266zM30.107 65.19a26.819 26.819 0 01.378-21.694c.89-1.676 1.745-2.77 2.88-2.428 1.233.341 1.492 1.608 1.68 3.957 1.269 19.363 12.987 25.862 27.689 32.708a84.543 84.543 0 0135.91 29.117c1.68 2.359 1.919 3.798.034 5.163a60.152 60.152 0 01-21.829 9.892c-1.338.307-2.74.07-3.94-3.012-6.754-17.427-16.015-24.947-24.59-31.91-7.177-5.827-13.872-11.264-18.212-21.793zm72.632 39.117c.611 1.218 1.71 2.67 3.594.812a60.34 60.34 0 009.249-12.215 2.214 2.214 0 00.239-2.167 37.68 37.68 0 00-7.669-8.257 14.577 14.577 0 00-3.976-2.334 3.434 3.434 0 00-1.129-.137c-1.043.126-1.168.593-1.57 2.095-.034.129-.07.265-.11.41a7.431 7.431 0 01-3.424 4.803 6.76 6.76 0 01-3.733.612.97.97 0 00-1.094.467.938.938 0 00.204 1.157 55.145 55.145 0 019.419 14.754z"
|
|
7319
6979
|
}))), _g$4 || (_g$4 = /*#__PURE__*/createElement("g", {
|
|
7320
|
-
mask: "url(#
|
|
6980
|
+
mask: "url(#logo-nypl-lion-white_svg__a)"
|
|
7321
6981
|
}, /*#__PURE__*/createElement("path", {
|
|
7322
6982
|
d: "M0-.994h125v126H0z"
|
|
7323
6983
|
}))));
|
|
@@ -7325,7 +6985,7 @@ function SvgLogoNyplLionWhite(_ref) {
|
|
|
7325
6985
|
|
|
7326
6986
|
var _g$5, _defs$1;
|
|
7327
6987
|
|
|
7328
|
-
var _excluded$
|
|
6988
|
+
var _excluded$11 = ["title", "titleId"];
|
|
7329
6989
|
|
|
7330
6990
|
function _extends$J() { _extends$J = Object.assign || 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$J.apply(this, arguments); }
|
|
7331
6991
|
|
|
@@ -7336,7 +6996,7 @@ function _objectWithoutPropertiesLoose$J(source, excluded) { if (source == null)
|
|
|
7336
6996
|
function SvgLogoOpenebooksColor(_ref) {
|
|
7337
6997
|
var title = _ref.title,
|
|
7338
6998
|
titleId = _ref.titleId,
|
|
7339
|
-
props = _objectWithoutProperties$I(_ref, _excluded$
|
|
6999
|
+
props = _objectWithoutProperties$I(_ref, _excluded$11);
|
|
7340
7000
|
|
|
7341
7001
|
return /*#__PURE__*/createElement("svg", _extends$J({
|
|
7342
7002
|
viewBox: "0 0 152 139",
|
|
@@ -7346,18 +7006,18 @@ function SvgLogoOpenebooksColor(_ref) {
|
|
|
7346
7006
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7347
7007
|
id: titleId
|
|
7348
7008
|
}, title) : null, _g$5 || (_g$5 = /*#__PURE__*/createElement("g", {
|
|
7349
|
-
clipPath: "url(#
|
|
7009
|
+
clipPath: "url(#logo-openebooks-color_svg__clip0_53471_41906)"
|
|
7350
7010
|
}, /*#__PURE__*/createElement("path", {
|
|
7351
7011
|
d: "M130.79 29.541H20.99a5.667 5.667 0 00-5.673 5.662v98.138a5.667 5.667 0 005.673 5.661h109.8a5.667 5.667 0 005.672-5.661V35.202a5.666 5.666 0 00-5.672-5.66z",
|
|
7352
7012
|
fill: "#012F53"
|
|
7353
7013
|
}), /*#__PURE__*/createElement("path", {
|
|
7354
7014
|
d: "M76 7.79S43.52-12.182-.008 11.842v111.332s22.226-23.121 58.783-13.642V30.593h34.45v78.939c36.559-9.473 58.783 13.636 58.783 13.636V11.842C108.482-12.182 76 7.79 76 7.79z",
|
|
7355
|
-
fill: "url(#
|
|
7015
|
+
fill: "url(#logo-openebooks-color_svg__paint0_linear_53471_41906)"
|
|
7356
7016
|
}), /*#__PURE__*/createElement("path", {
|
|
7357
7017
|
d: "M13.312 98.983c19.216-7.728 38.432-8.113 57.65 0V20.067c-18.895-8.814-38.117-8.959-57.65 0v78.915zM80.102 98.983c19.216-7.728 38.432-8.113 57.65 0V20.067c-18.905-8.814-38.117-8.959-57.65 0v78.915z",
|
|
7358
7018
|
fill: "#fff"
|
|
7359
7019
|
}))), _defs$1 || (_defs$1 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("linearGradient", {
|
|
7360
|
-
id: "
|
|
7020
|
+
id: "logo-openebooks-color_svg__paint0_linear_53471_41906",
|
|
7361
7021
|
x1: 76.519,
|
|
7362
7022
|
y1: 132.496,
|
|
7363
7023
|
x2: 75.513,
|
|
@@ -7386,7 +7046,7 @@ function SvgLogoOpenebooksColor(_ref) {
|
|
|
7386
7046
|
|
|
7387
7047
|
var _g$6, _defs$2;
|
|
7388
7048
|
|
|
7389
|
-
var _excluded$
|
|
7049
|
+
var _excluded$12 = ["title", "titleId"];
|
|
7390
7050
|
|
|
7391
7051
|
function _extends$K() { _extends$K = Object.assign || 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$K.apply(this, arguments); }
|
|
7392
7052
|
|
|
@@ -7397,7 +7057,7 @@ function _objectWithoutPropertiesLoose$K(source, excluded) { if (source == null)
|
|
|
7397
7057
|
function SvgLogoOpenebooksNegative(_ref) {
|
|
7398
7058
|
var title = _ref.title,
|
|
7399
7059
|
titleId = _ref.titleId,
|
|
7400
|
-
props = _objectWithoutProperties$J(_ref, _excluded$
|
|
7060
|
+
props = _objectWithoutProperties$J(_ref, _excluded$12);
|
|
7401
7061
|
|
|
7402
7062
|
return /*#__PURE__*/createElement("svg", _extends$K({
|
|
7403
7063
|
viewBox: "0 0 155 139",
|
|
@@ -7407,24 +7067,24 @@ function SvgLogoOpenebooksNegative(_ref) {
|
|
|
7407
7067
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7408
7068
|
id: titleId
|
|
7409
7069
|
}, title) : null, _g$6 || (_g$6 = /*#__PURE__*/createElement("g", {
|
|
7410
|
-
clipPath: "url(#
|
|
7070
|
+
clipPath: "url(#logo-openebooks-negative_svg__clip0_54498_42323)"
|
|
7411
7071
|
}, /*#__PURE__*/createElement("path", {
|
|
7412
7072
|
d: "M78.087 9.5C36.26-12.024 1.802 9.59 0 10.747v110.438c1.074-1.272 5.518-6.158 15.394-9.572v21.596a5.805 5.805 0 005.79 5.791h112.114a5.808 5.808 0 005.79-5.791v-22.206c11.82 3.711 15.912 9.885 15.912 9.885V10.797S121.052-12.61 78.087 9.5z",
|
|
7413
7073
|
fill: "#fff"
|
|
7414
7074
|
}), /*#__PURE__*/createElement("path", {
|
|
7415
7075
|
d: "M100.627 10.801c42.596-3.868 54.346 12.835 54.346 12.835v97.554s-11.75-16.705-54.346-12.835V10.801z",
|
|
7416
|
-
fill: "url(#
|
|
7076
|
+
fill: "url(#logo-openebooks-negative_svg__paint0_linear_54498_42323)"
|
|
7417
7077
|
}), /*#__PURE__*/createElement("path", {
|
|
7418
7078
|
d: "M147.325 106.011c-36.336-17.126-64.97 0-64.97 0V16.268s28.603-17.128 64.97 0v89.743z",
|
|
7419
7079
|
fill: "#0B1F31"
|
|
7420
7080
|
}), /*#__PURE__*/createElement("path", {
|
|
7421
7081
|
d: "M54.346 10.793C11.75 6.924 0 23.627 0 23.627v97.554s11.75-16.705 54.346-12.834V10.793z",
|
|
7422
|
-
fill: "url(#
|
|
7082
|
+
fill: "url(#logo-openebooks-negative_svg__paint1_linear_54498_42323)"
|
|
7423
7083
|
}), /*#__PURE__*/createElement("path", {
|
|
7424
7084
|
d: "M8.52 106.014c36.338-17.129 64.973 0 64.973 0V16.266s-28.604-17.124-64.972 0v89.748z",
|
|
7425
7085
|
fill: "#0B1F31"
|
|
7426
7086
|
}))), _defs$2 || (_defs$2 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("linearGradient", {
|
|
7427
|
-
id: "
|
|
7087
|
+
id: "logo-openebooks-negative_svg__paint0_linear_54498_42323",
|
|
7428
7088
|
x1: 127.8,
|
|
7429
7089
|
y1: 121.19,
|
|
7430
7090
|
x2: 127.8,
|
|
@@ -7445,7 +7105,7 @@ function SvgLogoOpenebooksNegative(_ref) {
|
|
|
7445
7105
|
offset: 1,
|
|
7446
7106
|
stopColor: "#fff"
|
|
7447
7107
|
})), /*#__PURE__*/createElement("linearGradient", {
|
|
7448
|
-
id: "
|
|
7108
|
+
id: "logo-openebooks-negative_svg__paint1_linear_54498_42323",
|
|
7449
7109
|
x1: 27.173,
|
|
7450
7110
|
y1: 121.181,
|
|
7451
7111
|
x2: 27.173,
|
|
@@ -7470,7 +7130,7 @@ function SvgLogoOpenebooksNegative(_ref) {
|
|
|
7470
7130
|
|
|
7471
7131
|
var _g$7, _defs$3;
|
|
7472
7132
|
|
|
7473
|
-
var _excluded$
|
|
7133
|
+
var _excluded$13 = ["title", "titleId"];
|
|
7474
7134
|
|
|
7475
7135
|
function _extends$L() { _extends$L = Object.assign || 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$L.apply(this, arguments); }
|
|
7476
7136
|
|
|
@@ -7478,10 +7138,10 @@ function _objectWithoutProperties$K(source, excluded) { if (source == null) retu
|
|
|
7478
7138
|
|
|
7479
7139
|
function _objectWithoutPropertiesLoose$L(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; }
|
|
7480
7140
|
|
|
7481
|
-
function
|
|
7141
|
+
function SvgLogoOpenebooksWithTextColor(_ref) {
|
|
7482
7142
|
var title = _ref.title,
|
|
7483
7143
|
titleId = _ref.titleId,
|
|
7484
|
-
props = _objectWithoutProperties$K(_ref, _excluded$
|
|
7144
|
+
props = _objectWithoutProperties$K(_ref, _excluded$13);
|
|
7485
7145
|
|
|
7486
7146
|
return /*#__PURE__*/createElement("svg", _extends$L({
|
|
7487
7147
|
viewBox: "0 0 152 139",
|
|
@@ -7491,18 +7151,18 @@ function SvgLogoOpenebooksWtextColor(_ref) {
|
|
|
7491
7151
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7492
7152
|
id: titleId
|
|
7493
7153
|
}, title) : null, _g$7 || (_g$7 = /*#__PURE__*/createElement("g", {
|
|
7494
|
-
clipPath: "url(#
|
|
7154
|
+
clipPath: "url(#logo-openebooks-with-text-color_svg__clip0_53471_41905)"
|
|
7495
7155
|
}, /*#__PURE__*/createElement("path", {
|
|
7496
7156
|
d: "M130.79 29.541H20.99a5.667 5.667 0 00-5.673 5.662v98.138a5.667 5.667 0 005.673 5.661h109.8a5.667 5.667 0 005.672-5.661V35.202a5.666 5.666 0 00-5.672-5.66z",
|
|
7497
7157
|
fill: "#012F53"
|
|
7498
7158
|
}), /*#__PURE__*/createElement("path", {
|
|
7499
7159
|
d: "M76 7.79S43.52-12.182-.008 11.842v111.332s22.226-23.121 58.783-13.642V30.593h34.45v78.939c36.559-9.473 58.783 13.636 58.783 13.636V11.842C108.482-12.182 76 7.79 76 7.79z",
|
|
7500
|
-
fill: "url(#
|
|
7160
|
+
fill: "url(#logo-openebooks-with-text-color_svg__paint0_linear_53471_41905)"
|
|
7501
7161
|
}), /*#__PURE__*/createElement("path", {
|
|
7502
7162
|
d: "M13.312 98.983c19.216-7.728 38.432-8.113 57.65 0V20.067c-18.895-8.814-38.117-8.959-57.65 0v78.915zM80.102 98.983c19.216-7.728 38.432-8.113 57.65 0V20.067c-18.905-8.814-38.117-8.959-57.65 0v78.915zM130.032 126.627c.01.626-.171 1.24-.519 1.76-.372.531-.89.944-1.49 1.191a5.757 5.757 0 01-2.286.419 9.806 9.806 0 01-1.835-.145 7.126 7.126 0 01-1.545-.524v-2.556c.563.28 1.154.502 1.763.66a6.857 6.857 0 001.68.235 1.69 1.69 0 00.967-.21.679.679 0 00.309-.574.58.58 0 00-.128-.377 1.348 1.348 0 00-.397-.335c-.178-.109-.663-.338-1.455-.681a7.123 7.123 0 01-1.61-.916 2.88 2.88 0 01-.796-1.016 3.339 3.339 0 01-.254-1.36 2.701 2.701 0 011.103-2.288c.734-.548 1.743-.821 3.027-.819a8.723 8.723 0 013.47.762l-.911 2.201c-1.025-.456-1.909-.683-2.654-.681a1.402 1.402 0 00-.839.194.589.589 0 00-.263.487.695.695 0 00.097.319c.057.098.137.18.233.24a13.28 13.28 0 001.816.901c.943.411 1.597.853 1.963 1.328.383.515.579 1.145.554 1.785zm-8.358 3.227h-3.342l-2.164-4.06-.878.507v3.562h-2.981v-10.619h2.981v4.609c.273-.471.576-.925.907-1.357l2.309-3.254h3.229l-3.455 4.756 3.394 5.856zm-18.875-5.324c0 2.053.737 3.079 2.21 3.078.748 0 1.302-.247 1.663-.748s.546-1.276.546-2.33-.183-1.844-.554-2.347c-.372-.502-.912-.762-1.642-.762-1.482.003-2.223 1.039-2.223 3.109zm7.536 0c0 1.787-.452 3.145-1.356 4.075-.904.931-2.227 1.395-3.97 1.394-1.72 0-3.039-.467-3.957-1.402-.918-.934-1.375-2.295-1.37-4.082 0-1.768.453-3.117 1.362-4.046.908-.928 2.234-1.396 3.978-1.401 1.745 0 3.067.462 3.966 1.387.898.925 1.347 2.283 1.347 4.075zm-19.767 0c0 2.053.737 3.079 2.21 3.078.75 0 1.304-.247 1.663-.748s.548-1.276.548-2.33-.185-1.844-.556-2.347c-.372-.502-.912-.758-1.648-.758-1.478 0-2.217 1.035-2.217 3.105zm7.536 0c0 1.787-.45 3.145-1.354 4.075-.902.931-2.224 1.395-3.965 1.394-1.72 0-3.04-.467-3.958-1.402-.918-.934-1.375-2.295-1.37-4.082 0-1.768.454-3.117 1.364-4.046.91-.928 2.236-1.396 3.978-1.401 1.746 0 3.067.462 3.964 1.387.897.925 1.344 2.283 1.341 4.075zm-17.634.878v2.231h1.039c.924 0 1.386-.378 1.388-1.135a.96.96 0 00-.374-.813 1.74 1.74 0 00-1.075-.285l-.978.002zm0-2.095h.89c.346.021.69-.068.982-.256a.871.871 0 00.35-.756c0-.595-.463-.893-1.391-.893h-.84l.009 1.905zm-2.963-4.076h3.823c1.488 0 2.592.216 3.313.646.724.419 1.088 1.091 1.088 1.999a2.471 2.471 0 01-.475 1.523c-.3.414-.743.704-1.243.815v.071a2.277 2.277 0 011.934 2.456 2.683 2.683 0 01-1.123 2.28c-.746.558-1.764.838-3.053.838h-4.26l-.004-10.628zm-5.733 4.176c-.32-.007-.63.106-.87.319a1.464 1.464 0 00-.404.987h2.519a1.39 1.39 0 00-.35-.949 1.16 1.16 0 00-.89-.359l-.005.002zm.174 6.588c-1.415 0-2.514-.363-3.298-1.09-.784-.726-1.173-1.765-1.167-3.115 0-1.389.36-2.454 1.083-3.196.722-.741 1.757-1.114 3.105-1.119 1.278 0 2.265.325 2.96.975.697.641 1.05 1.573 1.05 2.789v1.257h-5.236a1.402 1.402 0 00.516 1.083c.39.28.865.418 1.344.392.475.005.95-.042 1.415-.138a7.152 7.152 0 001.409-.487v2.035a5.177 5.177 0 01-1.424.471c-.579.098-1.165.145-1.753.141l-.004.002zm-7.692-.145h-1.45l-5.988-8.913h-.059c.08 1.048.12 2.007.12 2.877v6.036H55.7v-10.619h1.438l5.975 8.876h.07c-.011-.132-.032-.549-.068-1.257a20.277 20.277 0 01-.036-1.525v-6.094h1.19l-.014 10.619zm-12.067 0h-6.11v-10.619h6.11v1.096H47.36v3.42h4.543v1.089h-4.547v3.916h4.828l.005 1.098zm-15.156-5.238h1.146c1.13 0 1.944-.178 2.45-.532.506-.354.756-.92.756-1.699 0-.702-.237-1.224-.712-1.57-.474-.345-1.213-.515-2.216-.515h-1.424v4.316zm5.669-2.288c0 1.073-.38 1.9-1.138 2.483-.759.582-1.84.87-3.246.863h-1.287v4.178h-1.274v-10.619h2.84c2.74 0 4.11 1.032 4.11 3.095h-.005zm-19.197 2.2c0 1.437.315 2.529.945 3.275.63.746 1.548 1.116 2.756 1.11 1.213 0 2.13-.37 2.75-1.11.62-.74.93-1.832.93-3.275 0-1.429-.31-2.511-.93-3.248-.62-.736-1.53-1.106-2.729-1.11-1.213 0-2.137.373-2.771 1.119-.634.746-.951 1.825-.951 3.239zm8.729 0c0 1.7-.444 3.036-1.333 4.008-.889.973-2.12 1.461-3.695 1.467-1.612 0-2.859-.477-3.739-1.431-.88-.954-1.318-2.305-1.312-4.052 0-1.731.44-3.07 1.318-4.017.88-.947 2.128-1.424 3.748-1.431 1.574 0 2.803.485 3.686 1.454.883.97 1.326 2.304 1.33 4.002h-.003z",
|
|
7503
7163
|
fill: "#fff"
|
|
7504
7164
|
}))), _defs$3 || (_defs$3 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("linearGradient", {
|
|
7505
|
-
id: "
|
|
7165
|
+
id: "logo-openebooks-with-text-color_svg__paint0_linear_53471_41905",
|
|
7506
7166
|
x1: 76.519,
|
|
7507
7167
|
y1: 132.496,
|
|
7508
7168
|
x2: 75.513,
|
|
@@ -7531,7 +7191,7 @@ function SvgLogoOpenebooksWtextColor(_ref) {
|
|
|
7531
7191
|
|
|
7532
7192
|
var _g$8, _defs$4;
|
|
7533
7193
|
|
|
7534
|
-
var _excluded$
|
|
7194
|
+
var _excluded$14 = ["title", "titleId"];
|
|
7535
7195
|
|
|
7536
7196
|
function _extends$M() { _extends$M = Object.assign || 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$M.apply(this, arguments); }
|
|
7537
7197
|
|
|
@@ -7539,10 +7199,10 @@ function _objectWithoutProperties$L(source, excluded) { if (source == null) retu
|
|
|
7539
7199
|
|
|
7540
7200
|
function _objectWithoutPropertiesLoose$M(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; }
|
|
7541
7201
|
|
|
7542
|
-
function
|
|
7202
|
+
function SvgLogoOpenebooksWithTextNegative(_ref) {
|
|
7543
7203
|
var title = _ref.title,
|
|
7544
7204
|
titleId = _ref.titleId,
|
|
7545
|
-
props = _objectWithoutProperties$L(_ref, _excluded$
|
|
7205
|
+
props = _objectWithoutProperties$L(_ref, _excluded$14);
|
|
7546
7206
|
|
|
7547
7207
|
return /*#__PURE__*/createElement("svg", _extends$M({
|
|
7548
7208
|
viewBox: "0 0 155 139",
|
|
@@ -7552,13 +7212,13 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7552
7212
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7553
7213
|
id: titleId
|
|
7554
7214
|
}, title) : null, _g$8 || (_g$8 = /*#__PURE__*/createElement("g", {
|
|
7555
|
-
clipPath: "url(#
|
|
7215
|
+
clipPath: "url(#logo-openebooks-with-text-negative_svg__clip0_54498_42322)"
|
|
7556
7216
|
}, /*#__PURE__*/createElement("path", {
|
|
7557
7217
|
d: "M78.087 9.5C36.26-12.024 1.802 9.59 0 10.747v110.438c1.074-1.272 5.518-6.158 15.394-9.572v21.596a5.805 5.805 0 005.79 5.791h112.114a5.808 5.808 0 005.79-5.791v-22.206c11.82 3.711 15.912 9.885 15.912 9.885V10.797S121.052-12.61 78.087 9.5z",
|
|
7558
7218
|
fill: "#fff"
|
|
7559
7219
|
}), /*#__PURE__*/createElement("path", {
|
|
7560
7220
|
d: "M100.627 10.801c42.596-3.868 54.346 12.835 54.346 12.835v97.554s-11.75-16.705-54.346-12.835V10.801z",
|
|
7561
|
-
fill: "url(#
|
|
7221
|
+
fill: "url(#logo-openebooks-with-text-negative_svg__paint0_linear_54498_42322)"
|
|
7562
7222
|
}), /*#__PURE__*/createElement("path", {
|
|
7563
7223
|
d: "M147.325 106.011c-36.336-17.126-64.97 0-64.97 0V16.268s28.603-17.128 64.97 0v89.743z",
|
|
7564
7224
|
fill: "#0B1F31"
|
|
@@ -7567,12 +7227,12 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7567
7227
|
fill: "#000"
|
|
7568
7228
|
}), /*#__PURE__*/createElement("path", {
|
|
7569
7229
|
d: "M54.346 10.793C11.75 6.924 0 23.627 0 23.627v97.554s11.75-16.705 54.346-12.834V10.793z",
|
|
7570
|
-
fill: "url(#
|
|
7230
|
+
fill: "url(#logo-openebooks-with-text-negative_svg__paint1_linear_54498_42322)"
|
|
7571
7231
|
}), /*#__PURE__*/createElement("path", {
|
|
7572
7232
|
d: "M8.52 106.014c36.338-17.129 64.973 0 64.973 0V16.266s-28.604-17.124-64.972 0v89.748z",
|
|
7573
7233
|
fill: "#0B1F31"
|
|
7574
7234
|
}))), _defs$4 || (_defs$4 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("linearGradient", {
|
|
7575
|
-
id: "
|
|
7235
|
+
id: "logo-openebooks-with-text-negative_svg__paint0_linear_54498_42322",
|
|
7576
7236
|
x1: 127.8,
|
|
7577
7237
|
y1: 121.19,
|
|
7578
7238
|
x2: 127.8,
|
|
@@ -7593,7 +7253,7 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7593
7253
|
offset: 1,
|
|
7594
7254
|
stopColor: "#fff"
|
|
7595
7255
|
})), /*#__PURE__*/createElement("linearGradient", {
|
|
7596
|
-
id: "
|
|
7256
|
+
id: "logo-openebooks-with-text-negative_svg__paint1_linear_54498_42322",
|
|
7597
7257
|
x1: 27.173,
|
|
7598
7258
|
y1: 121.181,
|
|
7599
7259
|
x2: 27.173,
|
|
@@ -7618,7 +7278,7 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7618
7278
|
|
|
7619
7279
|
var _path$C;
|
|
7620
7280
|
|
|
7621
|
-
var _excluded$
|
|
7281
|
+
var _excluded$15 = ["title", "titleId"];
|
|
7622
7282
|
|
|
7623
7283
|
function _extends$N() { _extends$N = Object.assign || 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$N.apply(this, arguments); }
|
|
7624
7284
|
|
|
@@ -7629,7 +7289,7 @@ function _objectWithoutPropertiesLoose$N(source, excluded) { if (source == null)
|
|
|
7629
7289
|
function SvgLogoQplAltBlack(_ref) {
|
|
7630
7290
|
var title = _ref.title,
|
|
7631
7291
|
titleId = _ref.titleId,
|
|
7632
|
-
props = _objectWithoutProperties$M(_ref, _excluded$
|
|
7292
|
+
props = _objectWithoutProperties$M(_ref, _excluded$15);
|
|
7633
7293
|
|
|
7634
7294
|
return /*#__PURE__*/createElement("svg", _extends$N({
|
|
7635
7295
|
viewBox: "0 0 250 134",
|
|
@@ -7644,7 +7304,7 @@ function SvgLogoQplAltBlack(_ref) {
|
|
|
7644
7304
|
|
|
7645
7305
|
var _path$D;
|
|
7646
7306
|
|
|
7647
|
-
var _excluded$
|
|
7307
|
+
var _excluded$16 = ["title", "titleId"];
|
|
7648
7308
|
|
|
7649
7309
|
function _extends$O() { _extends$O = Object.assign || 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$O.apply(this, arguments); }
|
|
7650
7310
|
|
|
@@ -7655,7 +7315,7 @@ function _objectWithoutPropertiesLoose$O(source, excluded) { if (source == null)
|
|
|
7655
7315
|
function SvgLogoQplAltWhite(_ref) {
|
|
7656
7316
|
var title = _ref.title,
|
|
7657
7317
|
titleId = _ref.titleId,
|
|
7658
|
-
props = _objectWithoutProperties$N(_ref, _excluded$
|
|
7318
|
+
props = _objectWithoutProperties$N(_ref, _excluded$16);
|
|
7659
7319
|
|
|
7660
7320
|
return /*#__PURE__*/createElement("svg", _extends$O({
|
|
7661
7321
|
viewBox: "0 0 250 134",
|
|
@@ -7671,7 +7331,7 @@ function SvgLogoQplAltWhite(_ref) {
|
|
|
7671
7331
|
|
|
7672
7332
|
var _path$E, _path2$h, _path3$c, _path4$3, _path5$2;
|
|
7673
7333
|
|
|
7674
|
-
var _excluded$
|
|
7334
|
+
var _excluded$17 = ["title", "titleId"];
|
|
7675
7335
|
|
|
7676
7336
|
function _extends$P() { _extends$P = Object.assign || 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$P.apply(this, arguments); }
|
|
7677
7337
|
|
|
@@ -7682,7 +7342,7 @@ function _objectWithoutPropertiesLoose$P(source, excluded) { if (source == null)
|
|
|
7682
7342
|
function SvgLogoQplBlack(_ref) {
|
|
7683
7343
|
var title = _ref.title,
|
|
7684
7344
|
titleId = _ref.titleId,
|
|
7685
|
-
props = _objectWithoutProperties$O(_ref, _excluded$
|
|
7345
|
+
props = _objectWithoutProperties$O(_ref, _excluded$17);
|
|
7686
7346
|
|
|
7687
7347
|
return /*#__PURE__*/createElement("svg", _extends$P({
|
|
7688
7348
|
viewBox: "0 0 320 43",
|
|
@@ -7713,7 +7373,7 @@ function SvgLogoQplBlack(_ref) {
|
|
|
7713
7373
|
|
|
7714
7374
|
var _g$9, _defs$5;
|
|
7715
7375
|
|
|
7716
|
-
var _excluded$
|
|
7376
|
+
var _excluded$18 = ["title", "titleId"];
|
|
7717
7377
|
|
|
7718
7378
|
function _extends$Q() { _extends$Q = Object.assign || 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$Q.apply(this, arguments); }
|
|
7719
7379
|
|
|
@@ -7724,7 +7384,7 @@ function _objectWithoutPropertiesLoose$Q(source, excluded) { if (source == null)
|
|
|
7724
7384
|
function SvgLogoQplColor(_ref) {
|
|
7725
7385
|
var title = _ref.title,
|
|
7726
7386
|
titleId = _ref.titleId,
|
|
7727
|
-
props = _objectWithoutProperties$P(_ref, _excluded$
|
|
7387
|
+
props = _objectWithoutProperties$P(_ref, _excluded$18);
|
|
7728
7388
|
|
|
7729
7389
|
return /*#__PURE__*/createElement("svg", _extends$Q({
|
|
7730
7390
|
viewBox: "0 0 355 48",
|
|
@@ -7734,7 +7394,7 @@ function SvgLogoQplColor(_ref) {
|
|
|
7734
7394
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7735
7395
|
id: titleId
|
|
7736
7396
|
}, title) : null, _g$9 || (_g$9 = /*#__PURE__*/createElement("g", {
|
|
7737
|
-
clipPath: "url(#
|
|
7397
|
+
clipPath: "url(#logo-qpl-color_svg__clip0)"
|
|
7738
7398
|
}, /*#__PURE__*/createElement("path", {
|
|
7739
7399
|
fillRule: "evenodd",
|
|
7740
7400
|
clipRule: "evenodd",
|
|
@@ -7764,7 +7424,7 @@ function SvgLogoQplColor(_ref) {
|
|
|
7764
7424
|
d: "M65.945 32.481a.78.78 0 01.033 1.395l-.856.485c-.312.18-.727.132-1.014-.039l-3.648-2.067c-.998.41-2.115.624-3.34.624-4.587 0-8.236-3.629-8.236-8.19a8.202 8.202 0 018.236-8.237 8.221 8.221 0 018.259 8.236c0 2.144-.916 4.438-2.547 6.016l3.113 1.777zm99.688-7.709a2.962 2.962 0 002.953-2.96c0-1.522-1.326-2.74-2.953-2.74h-3.107v5.7h3.107zm-3.107 7.104a.803.803 0 01-.79.786h-.832a.787.787 0 01-.791-.786v-14.42c0-.429.347-.787.79-.787h4.839c2.896 0 5.28 2.342 5.28 5.185 0 2.901-2.372 5.276-5.257 5.276h-3.239v4.746zm12.624-14.42c0-.425.365-.787.791-.787h.832c.444 0 .791.358.791.786v9.083c0 2.384 1.485 4.05 3.742 4.05 2.29 0 3.785-1.636 3.785-4.006v-9.126c0-.428.348-.786.79-.786h.834c.426 0 .79.362.79.786v9.213c0 3.571-2.585 6.212-6.2 6.212-3.591 0-6.155-2.64-6.155-6.212v-9.213zm23.645 6.051c1.395 0 2.251-.94 2.251-2.348 0-1.405-.815-2.24-2.251-2.24H195.6v4.59h3.195v-.002zm.372 6.95c1.378 0 2.384-1.018 2.384-2.394 0-1.296-1.207-2.306-2.756-2.306h-3.239v4.7H199.167zm4.972-2.373c0 2.674-2.144 4.578-5.148 4.578h-4.992a.79.79 0 01-.79-.788V17.455c0-.427.347-.785.79-.785h4.796c2.832 0 4.863 1.845 4.863 4.38 0 1.393-.71 2.62-1.767 3.432 1.36.747 2.248 1.954 2.248 3.603zm13.305 2.372c.444 0 .792.358.792.786v.633a.784.784 0 01-.233.558.785.785 0 01-.559.23h-7.576a.79.79 0 01-.79-.788v-14.42c0-.427.348-.785.79-.785h.855c.426 0 .79.362.79.786v13h5.931zm4.57-13c0-.424.365-.787.79-.787h.877c.426 0 .792.362.792.786v14.42a.805.805 0 01-.792.787h-.877a.804.804 0 01-.79-.788V17.455zm15.525-1.004c2.162 0 3.857.685 5.565 2.134.32.32.344.815.021 1.138l-.563.557c-.324.403-.756.378-1.109.028-1.107-.955-2.582-1.543-3.936-1.543-3.19 0-5.734 2.664-5.734 5.9 0 3.217 2.548 5.878 5.734 5.878 1.523 0 2.425-.408 3.948-1.552.322-.255.676-.278 1.01-.052l.634.568c.37.278.327.842.012 1.155-1.514 1.461-3.47 2.218-5.582 2.218-4.594 0-8.28-3.639-8.28-8.193 0-4.562 3.694-8.236 8.28-8.236zm27.593 14.005c.444 0 .792.358.792.786v.632a.784.784 0 01-.233.558.785.785 0 01-.559.23h-7.576a.79.79 0 01-.79-.788v-14.42c0-.427.346-.785.79-.785h.855c.425 0 .79.363.79.786v13h5.931v.001zm4.57-13c0-.425.364-.787.79-.787h.875c.427 0 .792.362.792.786v14.42a.805.805 0 01-.792.787h-.875a.802.802 0 01-.79-.789V17.455v.001zm13.947 6.051c1.396 0 2.252-.94 2.252-2.348 0-1.405-.815-2.24-2.252-2.24h-3.195v4.59h3.195v-.002zm.372 6.95c1.378 0 2.384-1.018 2.384-2.394 0-1.296-1.207-2.306-2.756-2.306h-3.238v4.7h3.61zm4.973-2.373c0 2.674-2.145 4.578-5.149 4.578h-4.991a.792.792 0 01-.792-.788v-14.42c0-.427.348-.785.792-.785h4.795c2.833 0 4.864 1.845 4.864 4.38 0 1.393-.71 2.62-1.768 3.432 1.36.747 2.249 1.954 2.249 3.603zm11.291-3.574c1.509 0 2.778-1.257 2.778-2.807 0-1.443-1.292-2.698-2.778-2.698h-3.873v5.505h3.873zm-3.915 7.364a.803.803 0 01-.79.786h-.855a.787.787 0 01-.791-.786v-14.42c0-.429.347-.786.79-.786h5.671c2.847 0 5.149 2.224 5.149 5.012 0 1.978-1.21 3.72-3.093 4.622l2.808 5.177c.291.54-.053 1.181-.704 1.181h-1.116a.75.75 0 01-.685-.4l-2.808-5.567h-3.576v5.181zm20.953-8.192a772.62 772.62 0 00-1.342-3.004l-2.708 6.052h5.412a687.64 687.64 0 01-1.362-3.048zm-2.137-6.789a.759.759 0 01.706-.443h.22c.33 0 .57.174.714.46l6.612 14.655c.247.533-.115 1.096-.714 1.096h-.876a.768.768 0 01-.714-.46l-1.52-3.374h-7.287l-1.494 3.36a.774.774 0 01-.722.474h-.875c-.598 0-.96-.562-.714-1.094l6.664-14.674zm18.459 7.616c1.508 0 2.777-1.257 2.777-2.807 0-1.443-1.292-2.698-2.777-2.698h-3.873v5.505h3.873zm-3.918 7.365a.803.803 0 01-.79.786h-.855a.787.787 0 01-.791-.786v-14.42c0-.428.348-.786.79-.786h5.672c2.847 0 5.149 2.224 5.149 5.012 0 1.977-1.211 3.72-3.093 4.622l2.808 5.178c.29.54-.054 1.18-.704 1.18h-1.117a.744.744 0 01-.685-.4l-2.807-5.567h-3.577v5.181zm12.088-14.006a.773.773 0 01.67-1.2h1.028c.267 0 .499.147.654.35l4.12 5.66 4.123-5.665a.824.824 0 01.65-.345h1.03c.642 0 1 .665.653 1.225l-5.271 7.155v6.826a.806.806 0 01-.791.788h-.855a.79.79 0 01-.79-.788V25.07l-5.221-7.2zm-271.826-.365c0-.423.364-.785.79-.785h.832c.445 0 .792.357.792.785v9.084c0 2.384 1.484 4.05 3.742 4.05 2.289 0 3.785-1.636 3.785-4.006v-9.128c0-.428.347-.785.79-.785h.833c.426 0 .79.362.79.785v9.215c0 3.57-2.584 6.21-6.198 6.21-3.593 0-6.156-2.639-6.156-6.21v-9.215zm27.476 13.001c.444 0 .792.358.792.787v.632a.79.79 0 01-.792.787h-8.627a.79.79 0 01-.79-.787v-14.42c0-.428.346-.785.79-.785h8.627c.443 0 .792.357.792.785v.632a.791.791 0 01-.792.788h-6.982v4.57h5.91c.425 0 .79.362.79.784v.632c0 .442-.36.787-.79.787h-5.91v4.808h6.982zm15.147 0c.444 0 .792.358.792.787v.632a.793.793 0 01-.792.787h-8.628a.79.79 0 01-.79-.787v-14.42c0-.427.347-.785.79-.785h8.628c.444 0 .792.357.792.785v.632a.784.784 0 01-.233.558.785.785 0 01-.559.23h-6.983v4.57h5.91c.426 0 .791.362.791.784v.632c0 .442-.36.787-.79.787h-5.91v4.808h6.982zm8.077 1.42a.78.78 0 01-.232.557.8.8 0 01-.558.23h-.767a.8.8 0 01-.79-.788V17.266c0-.427.365-.765.79-.765h.368a.75.75 0 01.585.28l9.139 11.326V17.505c0-.427.347-.786.79-.786h.767c.426 0 .792.363.792.786v14.66c0 .426-.367.765-.792.765h-.213a.752.752 0 01-.585-.28l-9.294-11.54v10.815zm15.855-2.074l.03-.04c.04-.05.076-.094.155-.195.085-.11.123-.158.163-.204.377-.492.834-.66 1.309-.253l.118.104a7 7 0 00.925.685c.785.487 1.602.775 2.412.775 1.51 0 2.56-.899 2.56-2.024 0-1.189-.964-2-3.607-3.098-2.96-1.286-4.08-2.444-4.08-4.85 0-2.245 1.87-4.25 5.04-4.25.97.007 1.929.205 2.822.584.307.128.583.264.825.402.148.083.253.15.266.164.415.208.622.732.276 1.28-.032.048-.06.091-.122.191l-.003.006a8.212 8.212 0 01-.135.211c-.31.482-.751.608-1.265.32-.009-.004-.206-.123-.305-.18a7.769 7.769 0 00-.585-.305c-.585-.272-1.156-.442-1.675-.466a2.67 2.67 0 00-.12-.003c-1.75 0-2.647.935-2.647 2.023 0 1.156.806 1.933 2.721 2.727 3.68 1.49 5.096 2.734 5.096 5.18 0 2.442-2.292 4.294-5.105 4.294a7.273 7.273 0 01-3.344-.825 7.02 7.02 0 01-1.523-1.03l-.046-.04c-.365-.323-.47-.69-.156-1.183zm-79.424.758c3.28 0 5.974-2.668 5.974-5.92 0-3.263-2.704-5.967-5.974-5.967-3.266 0-5.952 2.7-5.952 5.966 0 3.257 2.677 5.92 5.952 5.92v.001z",
|
|
7765
7425
|
fill: "#422980"
|
|
7766
7426
|
}))), _defs$5 || (_defs$5 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
7767
|
-
id: "
|
|
7427
|
+
id: "logo-qpl-color_svg__clip0"
|
|
7768
7428
|
}, /*#__PURE__*/createElement("path", {
|
|
7769
7429
|
fill: "#fff",
|
|
7770
7430
|
transform: "translate(0 .674)",
|
|
@@ -7774,7 +7434,7 @@ function SvgLogoQplColor(_ref) {
|
|
|
7774
7434
|
|
|
7775
7435
|
var _path$F, _path2$i, _path3$d, _path4$4, _path5$3;
|
|
7776
7436
|
|
|
7777
|
-
var _excluded$
|
|
7437
|
+
var _excluded$19 = ["title", "titleId"];
|
|
7778
7438
|
|
|
7779
7439
|
function _extends$R() { _extends$R = Object.assign || 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); }
|
|
7780
7440
|
|
|
@@ -7785,7 +7445,7 @@ function _objectWithoutPropertiesLoose$R(source, excluded) { if (source == null)
|
|
|
7785
7445
|
function SvgLogoQplWhite(_ref) {
|
|
7786
7446
|
var title = _ref.title,
|
|
7787
7447
|
titleId = _ref.titleId,
|
|
7788
|
-
props = _objectWithoutProperties$Q(_ref, _excluded$
|
|
7448
|
+
props = _objectWithoutProperties$Q(_ref, _excluded$19);
|
|
7789
7449
|
|
|
7790
7450
|
return /*#__PURE__*/createElement("svg", _extends$R({
|
|
7791
7451
|
viewBox: "0 0 320 43",
|
|
@@ -7817,7 +7477,7 @@ function SvgLogoQplWhite(_ref) {
|
|
|
7817
7477
|
|
|
7818
7478
|
var _path$G, _path2$j, _path3$e, _path4$5, _path5$4;
|
|
7819
7479
|
|
|
7820
|
-
var _excluded$
|
|
7480
|
+
var _excluded$1a = ["title", "titleId"];
|
|
7821
7481
|
|
|
7822
7482
|
function _extends$S() { _extends$S = Object.assign || 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); }
|
|
7823
7483
|
|
|
@@ -7828,7 +7488,7 @@ function _objectWithoutPropertiesLoose$S(source, excluded) { if (source == null)
|
|
|
7828
7488
|
function SvgLogoReservoirIconColor(_ref) {
|
|
7829
7489
|
var title = _ref.title,
|
|
7830
7490
|
titleId = _ref.titleId,
|
|
7831
|
-
props = _objectWithoutProperties$R(_ref, _excluded$
|
|
7491
|
+
props = _objectWithoutProperties$R(_ref, _excluded$1a);
|
|
7832
7492
|
|
|
7833
7493
|
return /*#__PURE__*/createElement("svg", _extends$S({
|
|
7834
7494
|
viewBox: "0 0 105 129",
|
|
@@ -7857,7 +7517,7 @@ function SvgLogoReservoirIconColor(_ref) {
|
|
|
7857
7517
|
|
|
7858
7518
|
var _g$a;
|
|
7859
7519
|
|
|
7860
|
-
var _excluded$
|
|
7520
|
+
var _excluded$1b = ["title", "titleId"];
|
|
7861
7521
|
|
|
7862
7522
|
function _extends$T() { _extends$T = Object.assign || 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); }
|
|
7863
7523
|
|
|
@@ -7868,7 +7528,7 @@ function _objectWithoutPropertiesLoose$T(source, excluded) { if (source == null)
|
|
|
7868
7528
|
function SvgLogoReservoirVerticalColor(_ref) {
|
|
7869
7529
|
var title = _ref.title,
|
|
7870
7530
|
titleId = _ref.titleId,
|
|
7871
|
-
props = _objectWithoutProperties$S(_ref, _excluded$
|
|
7531
|
+
props = _objectWithoutProperties$S(_ref, _excluded$1b);
|
|
7872
7532
|
|
|
7873
7533
|
return /*#__PURE__*/createElement("svg", _extends$T({
|
|
7874
7534
|
viewBox: "0 0 234 261",
|
|
@@ -7878,7 +7538,7 @@ function SvgLogoReservoirVerticalColor(_ref) {
|
|
|
7878
7538
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
7879
7539
|
id: titleId
|
|
7880
7540
|
}, title) : null, _g$a || (_g$a = /*#__PURE__*/createElement("g", {
|
|
7881
|
-
clipPath: "url(#
|
|
7541
|
+
clipPath: "url(#logo-reservoir-vertical-color_svg__clip0_362_388)"
|
|
7882
7542
|
}, /*#__PURE__*/createElement("path", {
|
|
7883
7543
|
d: "M3.63 181.54H17.3a14.33 14.33 0 016.56 1.4 10.237 10.237 0 014.3 3.93 11.481 11.481 0 011.52 6v.06a11.16 11.16 0 01-2.22 7 10.896 10.896 0 01-6.08 3.92l9.4 16.46h-4.27l-8.92-15.9c-.13.011-.26.011-.39 0H7.28v15.87H3.63v-38.74zM17 201.17a9.403 9.403 0 006.57-2.17 7.75 7.75 0 002.35-6 7.624 7.624 0 00-2.42-6 9.677 9.677 0 00-6.66-2.14H7.28v16.35l9.72-.04zM41.15 219a11.557 11.557 0 01-4.39-5 17.6 17.6 0 01-1.54-7.64 17.739 17.739 0 011.54-7.65 11.911 11.911 0 014.34-5.08 11.786 11.786 0 016.52-1.8 11.809 11.809 0 016.46 1.73 11.392 11.392 0 014.22 4.88 16.998 16.998 0 011.49 7.33v1.4H37v-2.82h21.07l-1.8 2.55v-1.35a13.449 13.449 0 00-1.11-5.78 8.22 8.22 0 00-3.06-3.56 8.43 8.43 0 00-12.17 3.64 13.048 13.048 0 00-1.14 5.7v1.35a13.422 13.422 0 001.14 5.8 8.37 8.37 0 003.21 3.65 9.162 9.162 0 004.86 1.28 9.927 9.927 0 003.65-.63 7.162 7.162 0 002.69-1.78 6.86 6.86 0 001.53-2.69l.08-.24h3.49v.27a9.678 9.678 0 01-1.44 3.29c-.66 1.02-1.5 1.911-2.48 2.63a11.782 11.782 0 01-3.44 1.72c-1.358.41-2.771.612-4.19.6a12.665 12.665 0 01-6.74-1.8zM70.65 219.74a9.361 9.361 0 01-3.75-2.93 8.558 8.558 0 01-1.66-4.33v-.25h3.52v.25a6.002 6.002 0 002.34 3.88 8.222 8.222 0 005 1.43 10.21 10.21 0 003.69-.59 5.24 5.24 0 002.39-1.7c.56-.739.86-1.643.85-2.57A3.812 3.812 0 0082 210a8.8 8.8 0 00-4-1.75l-4.22-1a12.702 12.702 0 01-5.86-2.76 6.125 6.125 0 01-1.92-4.66 6.899 6.899 0 011.27-4.12 8.552 8.552 0 013.52-2.81 12.281 12.281 0 015.14-1 11.883 11.883 0 015.2 1.06 8.902 8.902 0 013.52 2.93 8.593 8.593 0 011.49 4.28v.3H82.8v-.19a5.802 5.802 0 00-2.11-3.91 7.231 7.231 0 00-4.69-1.51 8.543 8.543 0 00-3.33.6 5.081 5.081 0 00-2.2 1.7 4.18 4.18 0 00-.78 2.51 3.567 3.567 0 001.21 2.77 9.203 9.203 0 004 1.77l4.19 1c2.8.667 4.783 1.583 5.95 2.75a6.33 6.33 0 011.76 4.68 6.859 6.859 0 01-1.37 4.22 9.117 9.117 0 01-3.75 2.86 13.45 13.45 0 01-5.43 1 13.224 13.224 0 01-5.6-.98zM99.15 219a11.557 11.557 0 01-4.39-5 17.599 17.599 0 01-1.55-7.64 17.74 17.74 0 011.55-7.65 12.282 12.282 0 0117.32-5.15 11.367 11.367 0 014.21 4.88 16.841 16.841 0 011.49 7.33v1.4H95v-2.82h21.09l-1.8 2.55v-1.35a13.31 13.31 0 00-1.12-5.78 8.094 8.094 0 00-3.06-3.56 8.42 8.42 0 00-6.909-.95 8.408 8.408 0 00-5.251 4.59 12.91 12.91 0 00-1.15 5.7v1.35a13.269 13.269 0 001.15 5.8 8.41 8.41 0 003.2 3.65 9.169 9.169 0 004.87 1.26 10.014 10.014 0 003.65-.63 7.124 7.124 0 002.68-1.78 6.62 6.62 0 001.53-2.69l.08-.24h3.5l-.06.27a9.882 9.882 0 01-1.35 3.29 10.197 10.197 0 01-2.49 2.63 11.685 11.685 0 01-3.44 1.72 13.99 13.99 0 01-4.19.6 12.614 12.614 0 01-6.78-1.78zM125.67 192.36h3.55v5h.08a7.999 7.999 0 012.54-4 6.54 6.54 0 014.33-1.48 8.024 8.024 0 012.21.32v3.47a4.558 4.558 0 00-1-.28 9.786 9.786 0 00-1.64-.12 5.997 5.997 0 00-5.68 3.65 9.813 9.813 0 00-.79 4.11v17.29h-3.55l-.05-27.96zM143.52 192.36h3.73l8.49 24.22h.1l8.52-24.22H168l-10.37 27.93h-3.76l-10.35-27.93zM177.41 219a11.85 11.85 0 01-4.47-5 17.174 17.174 0 01-1.6-7.68v-.06a16.99 16.99 0 011.6-7.66 11.775 11.775 0 014.47-5 13.457 13.457 0 0113.31 0 11.994 11.994 0 014.47 5 17.067 17.067 0 011.61 7.68v.06a17.139 17.139 0 01-1.61 7.69 12.099 12.099 0 01-4.46 5 12.366 12.366 0 01-6.66 1.77 12.74 12.74 0 01-6.66-1.8zm11.47-2.73a8.821 8.821 0 003.17-3.89 14.997 14.997 0 001.13-6.07v-.06a14.877 14.877 0 00-1.13-6.07 8.728 8.728 0 00-3.19-3.85A8.63 8.63 0 00184 195a8.497 8.497 0 00-4.75 1.34 8.892 8.892 0 00-3.18 3.87 14.599 14.599 0 00-1.14 6v.06a14.813 14.813 0 001.14 6.07 8.837 8.837 0 003.18 3.89 9.254 9.254 0 009.59 0l.04.04zM204 186.63a2.288 2.288 0 01-.68-1.68 2.206 2.206 0 01.68-1.65 2.354 2.354 0 012.566-.512c.286.119.546.293.764.512a2.217 2.217 0 01.67 1.7 2.354 2.354 0 01-1.446 2.159 2.36 2.36 0 01-2.554-.479v-.05zm-.12 5.73h3.54v27.93h-3.54v-27.93zM215.8 192.36h3.55v5h.08a8.007 8.007 0 012.53-4 6.579 6.579 0 014.34-1.48c.432-.002.864.035 1.29.11.308.05.612.12.91.21v3.47a4.25 4.25 0 00-1-.28 10.002 10.002 0 00-1.64-.12 5.927 5.927 0 00-5.68 3.65 9.813 9.813 0 00-.79 4.11v17.29h-3.59v-27.96zM3.28 235.89H5.2l8.24 11.83-2.2-1.95h.9v-9.88h2.06v13.39h-1.92l-8.23-11.85 2.2 1.94h-.9v9.91H3.28v-13.39zM22 243.79l-4.71-7.9h2.31l3.42 5.9h.06l3.41-5.9h2.32l-4.72 7.9v5.49H22v-5.49zM31.86 235.89h2.08v13.39h-2.08v-13.39zm1 7.07h3.43a2.9 2.9 0 002.09-.7 2.513 2.513 0 00.75-1.94 2.541 2.541 0 00-.75-2 3.002 3.002 0 00-2.09-.7H32.9v-1.75h4a4.815 4.815 0 012.32.55c.64.376 1.163.923 1.51 1.58a4.54 4.54 0 01.57 2.3 4.54 4.54 0 01-.57 2.3 4.004 4.004 0 01-1.56 1.55 4.71 4.71 0 01-2.32.55h-4l.01-1.74zM44.71 235.89h2.08v11.59H53v1.8h-8.29v-13.39zM64.88 235.89h4.72a7.002 7.002 0 013.41.78 5.292 5.292 0 012.17 2.27 7.91 7.91 0 01.76 3.6 7.901 7.901 0 01-.76 3.62 5.257 5.257 0 01-2.18 2.33 6.999 6.999 0 01-3.42.79h-4.7v-13.39zm4.52 11.59c.84.026 1.671-.17 2.41-.57a3.608 3.608 0 001.49-1.66 6.298 6.298 0 00.51-2.67 6.28 6.28 0 00-.51-2.66 3.761 3.761 0 00-1.5-1.65 4.786 4.786 0 00-2.4-.56H67v9.79l2.4-.02zM79.52 235.89H88v1.8h-6.4v3.9h6.07v1.74H81.6v4.15H88v1.8h-8.5l.02-13.39zM93.69 249.05a4.238 4.238 0 01-1.79-1.31 3.652 3.652 0 01-.74-2v-.14h2v.12c.054.4.237.772.52 1.06.306.315.683.552 1.1.69a4.79 4.79 0 001.58.24 4.24 4.24 0 001.55-.25 2.31 2.31 0 001-.71 1.78 1.78 0 00.35-1.09 1.558 1.558 0 00-.58-1.28 4.489 4.489 0 00-1.91-.77l-1.46-.3a6.003 6.003 0 01-2.93-1.34 3.202 3.202 0 01-1-2.41c-.01-.717.21-1.418.63-2a3.996 3.996 0 011.71-1.35 6.06 6.06 0 012.52-.49 6.14 6.14 0 012.46.47c.666.285 1.245.74 1.68 1.32.425.583.668 1.279.7 2v.15h-2v-.12a2 2 0 00-.46-1.07 2.42 2.42 0 00-1-.69 4.412 4.412 0 00-2.84 0 2.126 2.126 0 00-.94.69 1.592 1.592 0 00-.34 1 1.49 1.49 0 00.6 1.23c.552.378 1.18.631 1.84.74l1.46.32a6.21 6.21 0 013 1.33 3.186 3.186 0 01.94 2.44 3.65 3.65 0 01-.62 2.12 3.901 3.901 0 01-1.67 1.35 6.837 6.837 0 01-2.73.49 7.083 7.083 0 01-2.63-.44zM105.26 235.89h2.08v13.39h-2.08v-13.39zM113.85 248.65a5.64 5.64 0 01-2.16-2.41 8.373 8.373 0 01-.77-3.72 7.998 7.998 0 01.76-3.64 5.644 5.644 0 012.16-2.37 6.421 6.421 0 013.31-.83 6.26 6.26 0 012.72.55 5.11 5.11 0 011.91 1.51 5.518 5.518 0 011 2.17v.16h-2.08v-.11a3.676 3.676 0 00-1.31-1.8 3.742 3.742 0 00-2.2-.64 4 4 0 00-2.2.6 3.697 3.697 0 00-1.41 1.71 6.644 6.644 0 00-.49 2.69 6.809 6.809 0 00.5 2.76A4.005 4.005 0 00115 247c.656.418 1.422.63 2.2.61a4.172 4.172 0 001.92-.42 3.241 3.241 0 001.3-1.19 3.479 3.479 0 00.48-1.78V244h-3.51v-1.7h5.57v1.37a6.56 6.56 0 01-.69 3.11 4.686 4.686 0 01-2 2 6.498 6.498 0 01-3.11.69 6.247 6.247 0 01-3.31-.82zM126.56 235.89h1.92l8.24 11.83-2.2-1.95h.9v-9.88h2.07v13.39h-1.92l-8.24-11.85 2.2 1.94h-.9v9.91h-2.07v-13.39zM152 249.05a4.24 4.24 0 01-1.79-1.31 3.569 3.569 0 01-.74-2v-.14h2v.12c.055.398.233.769.51 1.06.311.313.691.55 1.11.69.51.168 1.044.249 1.58.24a4.24 4.24 0 001.55-.25 2.311 2.311 0 001-.71 1.78 1.78 0 00.35-1.09 1.558 1.558 0 00-.58-1.28 4.486 4.486 0 00-1.91-.77l-1.46-.3a6 6 0 01-2.93-1.34 3.208 3.208 0 01-1-2.41 3.417 3.417 0 01.64-2 3.995 3.995 0 011.71-1.35 6.673 6.673 0 015 0 4.1 4.1 0 011.69 1.32c.425.583.668 1.279.7 2v.15h-2v-.12a2.003 2.003 0 00-.46-1.07 2.416 2.416 0 00-1-.69 4.412 4.412 0 00-2.84 0 2.125 2.125 0 00-.94.69 1.59 1.59 0 00-.34 1 1.49 1.49 0 00.6 1.23c.552.378 1.18.631 1.84.74l1.46.32a6.212 6.212 0 013 1.33 3.215 3.215 0 01.94 2.44 3.65 3.65 0 01-.62 2.12 3.895 3.895 0 01-1.76 1.38 6.855 6.855 0 01-2.73.49 7.076 7.076 0 01-2.58-.49zM166.38 243.79l-4.72-7.9H164l3.43 5.9 3.42-5.9h2.32l-4.73 7.9v5.49h-2.08l.02-5.49zM177.85 249.05a4.24 4.24 0 01-1.79-1.31 3.652 3.652 0 01-.74-2v-.14h2v.12c.059.399.241.769.52 1.06.308.317.689.554 1.11.69a4.73 4.73 0 001.57.24 4.24 4.24 0 001.55-.25 2.311 2.311 0 001-.71c.241-.311.368-.696.36-1.09a1.583 1.583 0 00-.58-1.28 4.607 4.607 0 00-1.92-.77l-1.46-.3a6.057 6.057 0 01-2.93-1.34 3.206 3.206 0 01-1-2.41 3.343 3.343 0 01.63-2 3.995 3.995 0 011.71-1.35 6.702 6.702 0 015 0 4.238 4.238 0 011.69 1.32 3.74 3.74 0 01.69 2v.15h-2v-.12a2.003 2.003 0 00-.46-1.07 2.416 2.416 0 00-1-.69 4.412 4.412 0 00-2.84 0 2.18 2.18 0 00-.94.69 1.65 1.65 0 00-.34 1 1.49 1.49 0 00.6 1.23c.552.378 1.18.631 1.84.74l1.46.32a6.163 6.163 0 013 1.33 3.193 3.193 0 01.94 2.44 3.58 3.58 0 01-.62 2.12 3.853 3.853 0 01-1.76 1.38 6.838 6.838 0 01-2.73.49 7.059 7.059 0 01-2.56-.49zM192.36 237.69h-4.1v-1.8h10.27v1.8h-4.09v11.59h-2.08v-11.59zM201.82 235.89h8.5v1.8h-6.42v3.9h6.1v1.74h-6.1v4.15h6.42v1.8h-8.5v-13.39zM214.06 235.89h2.4l4.33 10.68h.06l4.33-10.68h2.41v13.39h-1.9v-9.87h-1l2.17-3.15-5.31 13h-1.54l-5.31-13 2.17 3.15H216v9.87h-1.9l-.04-13.39z",
|
|
7884
7544
|
fill: "#000"
|
|
@@ -7896,7 +7556,7 @@ function SvgLogoReservoirVerticalColor(_ref) {
|
|
|
7896
7556
|
|
|
7897
7557
|
var _path$H, _path2$k, _path3$f, _path4$6, _path5$5;
|
|
7898
7558
|
|
|
7899
|
-
var _excluded$
|
|
7559
|
+
var _excluded$1c = ["title", "titleId"];
|
|
7900
7560
|
|
|
7901
7561
|
function _extends$U() { _extends$U = Object.assign || 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); }
|
|
7902
7562
|
|
|
@@ -7907,7 +7567,7 @@ function _objectWithoutPropertiesLoose$U(source, excluded) { if (source == null)
|
|
|
7907
7567
|
function SvgLogoSchomburgBlack(_ref) {
|
|
7908
7568
|
var title = _ref.title,
|
|
7909
7569
|
titleId = _ref.titleId,
|
|
7910
|
-
props = _objectWithoutProperties$T(_ref, _excluded$
|
|
7570
|
+
props = _objectWithoutProperties$T(_ref, _excluded$1c);
|
|
7911
7571
|
|
|
7912
7572
|
return /*#__PURE__*/createElement("svg", _extends$U({
|
|
7913
7573
|
viewBox: "0 0 185 79",
|
|
@@ -7930,7 +7590,7 @@ function SvgLogoSchomburgBlack(_ref) {
|
|
|
7930
7590
|
|
|
7931
7591
|
var _path$I, _path2$l, _path3$g, _path4$7, _path5$6;
|
|
7932
7592
|
|
|
7933
|
-
var _excluded$
|
|
7593
|
+
var _excluded$1d = ["title", "titleId"];
|
|
7934
7594
|
|
|
7935
7595
|
function _extends$V() { _extends$V = Object.assign || 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); }
|
|
7936
7596
|
|
|
@@ -7941,7 +7601,7 @@ function _objectWithoutPropertiesLoose$V(source, excluded) { if (source == null)
|
|
|
7941
7601
|
function SvgLogoSchomburgCircleBlack(_ref) {
|
|
7942
7602
|
var title = _ref.title,
|
|
7943
7603
|
titleId = _ref.titleId,
|
|
7944
|
-
props = _objectWithoutProperties$U(_ref, _excluded$
|
|
7604
|
+
props = _objectWithoutProperties$U(_ref, _excluded$1d);
|
|
7945
7605
|
|
|
7946
7606
|
return /*#__PURE__*/createElement("svg", _extends$V({
|
|
7947
7607
|
viewBox: "0 0 67 67",
|
|
@@ -7964,7 +7624,7 @@ function SvgLogoSchomburgCircleBlack(_ref) {
|
|
|
7964
7624
|
|
|
7965
7625
|
var _path$J, _path2$m, _path3$h, _path4$8, _path5$7;
|
|
7966
7626
|
|
|
7967
|
-
var _excluded$
|
|
7627
|
+
var _excluded$1e = ["title", "titleId"];
|
|
7968
7628
|
|
|
7969
7629
|
function _extends$W() { _extends$W = Object.assign || 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); }
|
|
7970
7630
|
|
|
@@ -7975,7 +7635,7 @@ function _objectWithoutPropertiesLoose$W(source, excluded) { if (source == null)
|
|
|
7975
7635
|
function SvgLogoSchomburgCircleColor(_ref) {
|
|
7976
7636
|
var title = _ref.title,
|
|
7977
7637
|
titleId = _ref.titleId,
|
|
7978
|
-
props = _objectWithoutProperties$V(_ref, _excluded$
|
|
7638
|
+
props = _objectWithoutProperties$V(_ref, _excluded$1e);
|
|
7979
7639
|
|
|
7980
7640
|
return /*#__PURE__*/createElement("svg", _extends$W({
|
|
7981
7641
|
viewBox: "0 0 67 67",
|
|
@@ -8004,7 +7664,7 @@ function SvgLogoSchomburgCircleColor(_ref) {
|
|
|
8004
7664
|
|
|
8005
7665
|
var _path$K, _path2$n, _path3$i, _path4$9, _path5$8;
|
|
8006
7666
|
|
|
8007
|
-
var _excluded$
|
|
7667
|
+
var _excluded$1f = ["title", "titleId"];
|
|
8008
7668
|
|
|
8009
7669
|
function _extends$X() { _extends$X = Object.assign || 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); }
|
|
8010
7670
|
|
|
@@ -8015,7 +7675,7 @@ function _objectWithoutPropertiesLoose$X(source, excluded) { if (source == null)
|
|
|
8015
7675
|
function SvgLogoSchomburgCircleWhite(_ref) {
|
|
8016
7676
|
var title = _ref.title,
|
|
8017
7677
|
titleId = _ref.titleId,
|
|
8018
|
-
props = _objectWithoutProperties$W(_ref, _excluded$
|
|
7678
|
+
props = _objectWithoutProperties$W(_ref, _excluded$1f);
|
|
8019
7679
|
|
|
8020
7680
|
return /*#__PURE__*/createElement("svg", _extends$X({
|
|
8021
7681
|
viewBox: "0 0 67 67",
|
|
@@ -8039,7 +7699,7 @@ function SvgLogoSchomburgCircleWhite(_ref) {
|
|
|
8039
7699
|
|
|
8040
7700
|
var _path$L, _path2$o, _path3$j, _path4$a, _path5$9, _path6$2, _path7$2;
|
|
8041
7701
|
|
|
8042
|
-
var _excluded$
|
|
7702
|
+
var _excluded$1g = ["title", "titleId"];
|
|
8043
7703
|
|
|
8044
7704
|
function _extends$Y() { _extends$Y = Object.assign || 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); }
|
|
8045
7705
|
|
|
@@ -8050,7 +7710,7 @@ function _objectWithoutPropertiesLoose$Y(source, excluded) { if (source == null)
|
|
|
8050
7710
|
function SvgLogoSchomburgColor(_ref) {
|
|
8051
7711
|
var title = _ref.title,
|
|
8052
7712
|
titleId = _ref.titleId,
|
|
8053
|
-
props = _objectWithoutProperties$X(_ref, _excluded$
|
|
7713
|
+
props = _objectWithoutProperties$X(_ref, _excluded$1g);
|
|
8054
7714
|
|
|
8055
7715
|
return /*#__PURE__*/createElement("svg", _extends$Y({
|
|
8056
7716
|
viewBox: "0 0 185 79",
|
|
@@ -8085,7 +7745,7 @@ function SvgLogoSchomburgColor(_ref) {
|
|
|
8085
7745
|
|
|
8086
7746
|
var _path$M, _path2$p, _path3$k, _path4$b, _path5$a;
|
|
8087
7747
|
|
|
8088
|
-
var _excluded$
|
|
7748
|
+
var _excluded$1h = ["title", "titleId"];
|
|
8089
7749
|
|
|
8090
7750
|
function _extends$Z() { _extends$Z = Object.assign || 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); }
|
|
8091
7751
|
|
|
@@ -8096,7 +7756,7 @@ function _objectWithoutPropertiesLoose$Z(source, excluded) { if (source == null)
|
|
|
8096
7756
|
function SvgLogoSchomburgWhite(_ref) {
|
|
8097
7757
|
var title = _ref.title,
|
|
8098
7758
|
titleId = _ref.titleId,
|
|
8099
|
-
props = _objectWithoutProperties$Y(_ref, _excluded$
|
|
7759
|
+
props = _objectWithoutProperties$Y(_ref, _excluded$1h);
|
|
8100
7760
|
|
|
8101
7761
|
return /*#__PURE__*/createElement("svg", _extends$Z({
|
|
8102
7762
|
viewBox: "0 0 185 79",
|
|
@@ -8120,7 +7780,7 @@ function SvgLogoSchomburgWhite(_ref) {
|
|
|
8120
7780
|
|
|
8121
7781
|
var _g$b, _defs$6;
|
|
8122
7782
|
|
|
8123
|
-
var _excluded$
|
|
7783
|
+
var _excluded$1i = ["title", "titleId"];
|
|
8124
7784
|
|
|
8125
7785
|
function _extends$_() { _extends$_ = Object.assign || 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); }
|
|
8126
7786
|
|
|
@@ -8131,7 +7791,7 @@ function _objectWithoutPropertiesLoose$_(source, excluded) { if (source == null)
|
|
|
8131
7791
|
function SvgLogoSimplyeBlack(_ref) {
|
|
8132
7792
|
var title = _ref.title,
|
|
8133
7793
|
titleId = _ref.titleId,
|
|
8134
|
-
props = _objectWithoutProperties$Z(_ref, _excluded$
|
|
7794
|
+
props = _objectWithoutProperties$Z(_ref, _excluded$1i);
|
|
8135
7795
|
|
|
8136
7796
|
return /*#__PURE__*/createElement("svg", _extends$_({
|
|
8137
7797
|
viewBox: "0 0 512 148",
|
|
@@ -8140,7 +7800,7 @@ function SvgLogoSimplyeBlack(_ref) {
|
|
|
8140
7800
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
8141
7801
|
id: titleId
|
|
8142
7802
|
}, title) : null, _g$b || (_g$b = /*#__PURE__*/createElement("g", {
|
|
8143
|
-
clipPath: "url(#
|
|
7803
|
+
clipPath: "url(#logo-simplye-black_svg__clip0)"
|
|
8144
7804
|
}, /*#__PURE__*/createElement("path", {
|
|
8145
7805
|
d: "M25.017 34.161c-.504-.616-.54-1.441.215-1.69l52.402-17.328a.944.944 0 011.24.898.998.998 0 00.93.945c.415.067.836.084 1.254.05a1.001 1.001 0 001.009-.941l-.003-5.512a1.001 1.001 0 00-.558-.914 1.137 1.137 0 00-.83-.118L21.98 29.023c-2.26.73-2.663 1.004-2.663 3.432l.02 99.764a.916.916 0 00.039.282c1.212 3.697 5.547 5.389 5.547 5.389 4.256 1.615 6.449 2.064 10.304.727 0 0 .085-99.525.035-99.963a.28.28 0 00-.23-.242c-.41-.077-6.716-.21-10.017-4.25"
|
|
8146
7806
|
}), /*#__PURE__*/createElement("path", {
|
|
@@ -8148,7 +7808,7 @@ function SvgLogoSimplyeBlack(_ref) {
|
|
|
8148
7808
|
}), /*#__PURE__*/createElement("path", {
|
|
8149
7809
|
d: "M112.969 28.139a.946.946 0 00-1.242-.897L65.072 42.744c-12.007 3.546-12.608 3.957-16.436 2.548a10.762 10.762 0 01-4.804-3.209c-.487-.63-.489-1.441.267-1.691l52.402-17.327a.946.946 0 011.24.897.984.984 0 00.93.946c.415.054.833.07 1.25.05a.99.99 0 001.013-.941l-.003-5.419a1.01 1.01 0 00-.557-1.008.99.99 0 00-.831-.117L40.848 36.944c-2.26.732-2.663 1.005-2.663 3.432l.02 97.48c0 .096.004 1.042.002 1.138-.059 3.155 3.655 4.911 5.418 5.699a14.107 14.107 0 0010.47.824l58.236-18.912a.945.945 0 00.638-.894v-18.715a.948.948 0 00-.783-.93.942.942 0 00-.435.027l-46.7 15.307a.986.986 0 01-1.265-.917v-16.534a.944.944 0 01.672-.904l47.793-15.656c.581-.213.718-.312.718-.808l-.037-19.111a.91.91 0 00-1.224-.756l-46.771 15.49c-.603.174-1.15-.439-1.15-1.067l.071-16.602a.945.945 0 01.656-.9l47.895-15.902c.391-.125.555-.68.555-1.091l.005-18.504zM193.94 91.63c.043 3.264-.609 6.5-1.911 9.494a19.556 19.556 0 01-5.499 7.236 25.79 25.79 0 01-8.742 4.574 38.338 38.338 0 01-11.52 1.621 41.503 41.503 0 01-8.569-.811 43.232 43.232 0 01-6.773-1.968 31.143 31.143 0 01-5.094-2.49 32.82 32.82 0 01-3.416-2.373l6.947-11.347c.463.31 1.158.792 2.084 1.447a20.297 20.297 0 003.473 1.911 33.661 33.661 0 004.864 1.679c2.003.521 4.066.774 6.136.752 3.937 0 6.967-.868 9.089-2.605a7.893 7.893 0 003.184-6.31 6.703 6.703 0 00-1.447-4.342 13.8 13.8 0 00-3.821-3.184 48.838 48.838 0 00-5.5-2.721 95.44 95.44 0 01-6.484-3.068 49.257 49.257 0 01-6.599-3.821 25.536 25.536 0 01-5.211-4.747 20.55 20.55 0 01-3.473-6.195 24.361 24.361 0 01-1.274-8.278 19.651 19.651 0 011.969-8.916 20.53 20.53 0 015.326-6.715 24.22 24.22 0 017.873-4.284 30.599 30.599 0 019.726-1.505c2.813-.03 5.624.202 8.394.694 2.181.398 4.329.96 6.426 1.68a26.533 26.533 0 014.631 2.083 41.813 41.813 0 013.126 2.027l-6.599 11.462a32.073 32.073 0 00-2.547-1.505 24.885 24.885 0 00-3.474-1.505 38.012 38.012 0 00-4.284-1.216 21.567 21.567 0 00-4.747-.521 12.53 12.53 0 00-7.526 2.026 6.912 6.912 0 00-2.779 5.963 6.563 6.563 0 001.101 3.88 11.19 11.19 0 003.01 2.836 30.206 30.206 0 004.515 2.431c1.737.773 3.609 1.622 5.616 2.547a110.48 110.48 0 017.41 3.706 26.855 26.855 0 016.31 4.747 21.065 21.065 0 016.079 15.63zM220.454 40.221a8.972 8.972 0 01-2.721 6.484 9.097 9.097 0 01-6.773 2.78 8.91 8.91 0 01-6.716-2.78 9.064 9.064 0 01-2.663-6.483 8.684 8.684 0 012.663-6.369 9.097 9.097 0 016.716-2.663 9.294 9.294 0 016.773 2.663 8.596 8.596 0 012.721 6.368zm-17.252 72.944V56.779h15.515v56.386h-15.515zM275.449 64.305a30.007 30.007 0 017.643-6.484 20.409 20.409 0 0110.42-2.432 18.358 18.358 0 017.584 1.39 13.05 13.05 0 014.978 3.82 14.903 14.903 0 012.721 5.79 31.09 31.09 0 01.81 7.294v39.482h-15.398V76.809a11.606 11.606 0 00-1.447-6.368c-.967-1.465-2.723-2.199-5.268-2.2a9.43 9.43 0 00-3.474.637c-1.037.4-2.012.946-2.895 1.62a20.225 20.225 0 00-2.315 2.085 74.01 74.01 0 00-1.853 2.026v38.556h-15.399V76.809c0-2.855-.521-4.997-1.564-6.426-1.041-1.427-2.72-2.141-5.036-2.142a8.78 8.78 0 00-3.878.868 14.06 14.06 0 00-3.127 2.026 15.322 15.322 0 00-2.2 2.316 73.736 73.736 0 01-1.331 1.737v37.977h-15.399V56.779h15.051v6.946a73.305 73.305 0 012.548-2.662 17.54 17.54 0 013.589-2.721 24.398 24.398 0 014.747-2.084 19.363 19.363 0 016.021-.869c4.013 0 7.159.81 9.437 2.432a14.285 14.285 0 015.035 6.484zM371.897 84.914a37.586 37.586 0 01-1.853 12.157 27.702 27.702 0 01-5.21 9.321 23.497 23.497 0 01-7.989 6.02 23.991 23.991 0 01-10.19 2.143 20.801 20.801 0 01-8.336-1.39 19.832 19.832 0 01-4.632-2.663v28.02h-15.398V56.779h15.052v5.904a21.67 21.67 0 016.078-5.094 18.72 18.72 0 019.553-2.2c7.178 0 12.794 2.547 16.846 7.642 4.052 5.094 6.078 12.389 6.079 21.883zm-16.326 0c0-5.326-.926-9.533-2.779-12.62a9.202 9.202 0 00-8.452-4.632 10.535 10.535 0 00-3.937.695c-1.095.43-2.142.974-3.126 1.62-.831.538-1.59 1.18-2.257 1.911a44.486 44.486 0 00-1.332 1.563v25.357a24.172 24.172 0 003.763 2.547 12.078 12.078 0 005.963 1.274 10.195 10.195 0 009.031-4.69c2.084-3.125 3.126-7.467 3.126-13.025zM380.929 113.165V29.801h15.399v83.364h-15.399zM402.811 56.779h16.441l12.505 37.166h.579l11.463-37.166h15.862l-23.272 62.407a64.516 64.516 0 01-4.053 8.916 25.026 25.026 0 01-5.21 6.599 21.354 21.354 0 01-7.121 4.111 29.982 29.982 0 01-9.9 1.447 31.243 31.243 0 01-5.673-.405c-1.389-.272-2.392-.484-3.01-.637l2.199-12.157a8.43 8.43 0 001.737.405c1.23.14 2.468.197 3.705.173 3.937 0 6.793-.888 8.568-2.663a19.126 19.126 0 004.284-7.178l2.084-5.79-21.188-55.228zM466.725 113.165V36.053h44.461v13.431h-28.368v17.368h25.009v12.736h-25.009v20.146h29.178v13.431h-45.271z"
|
|
8150
7810
|
}))), _defs$6 || (_defs$6 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
8151
|
-
id: "
|
|
7811
|
+
id: "logo-simplye-black_svg__clip0"
|
|
8152
7812
|
}, /*#__PURE__*/createElement("path", {
|
|
8153
7813
|
fill: "#fff",
|
|
8154
7814
|
transform: "translate(0 .118)",
|
|
@@ -8158,7 +7818,7 @@ function SvgLogoSimplyeBlack(_ref) {
|
|
|
8158
7818
|
|
|
8159
7819
|
var _g$c, _defs$7;
|
|
8160
7820
|
|
|
8161
|
-
var _excluded$
|
|
7821
|
+
var _excluded$1j = ["title", "titleId"];
|
|
8162
7822
|
|
|
8163
7823
|
function _extends$$() { _extends$$ = Object.assign || 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); }
|
|
8164
7824
|
|
|
@@ -8169,7 +7829,7 @@ function _objectWithoutPropertiesLoose$$(source, excluded) { if (source == null)
|
|
|
8169
7829
|
function SvgLogoSimplyeWhite(_ref) {
|
|
8170
7830
|
var title = _ref.title,
|
|
8171
7831
|
titleId = _ref.titleId,
|
|
8172
|
-
props = _objectWithoutProperties$_(_ref, _excluded$
|
|
7832
|
+
props = _objectWithoutProperties$_(_ref, _excluded$1j);
|
|
8173
7833
|
|
|
8174
7834
|
return /*#__PURE__*/createElement("svg", _extends$$({
|
|
8175
7835
|
viewBox: "0 0 512 148",
|
|
@@ -8179,7 +7839,7 @@ function SvgLogoSimplyeWhite(_ref) {
|
|
|
8179
7839
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
8180
7840
|
id: titleId
|
|
8181
7841
|
}, title) : null, _g$c || (_g$c = /*#__PURE__*/createElement("g", {
|
|
8182
|
-
clipPath: "url(#
|
|
7842
|
+
clipPath: "url(#logo-simplye-white_svg__clip0)"
|
|
8183
7843
|
}, /*#__PURE__*/createElement("path", {
|
|
8184
7844
|
d: "M25.017 34.161c-.504-.616-.54-1.441.215-1.69l52.402-17.328a.944.944 0 011.24.898.998.998 0 00.93.945c.415.067.836.084 1.254.05a1.001 1.001 0 001.009-.941l-.003-5.512a1.001 1.001 0 00-.558-.914 1.137 1.137 0 00-.83-.118L21.98 29.023c-2.26.73-2.663 1.004-2.663 3.432l.02 99.764a.916.916 0 00.039.282c1.212 3.697 5.547 5.389 5.547 5.389 4.256 1.615 6.449 2.064 10.304.727 0 0 .085-99.525.035-99.963a.28.28 0 00-.23-.242c-.41-.077-6.716-.21-10.017-4.25"
|
|
8185
7845
|
}), /*#__PURE__*/createElement("path", {
|
|
@@ -8187,7 +7847,7 @@ function SvgLogoSimplyeWhite(_ref) {
|
|
|
8187
7847
|
}), /*#__PURE__*/createElement("path", {
|
|
8188
7848
|
d: "M112.969 28.139a.946.946 0 00-1.242-.897L65.072 42.744c-12.007 3.546-12.608 3.957-16.436 2.548a10.762 10.762 0 01-4.804-3.209c-.487-.63-.489-1.441.267-1.691l52.402-17.327a.946.946 0 011.24.897.984.984 0 00.93.946c.415.054.833.07 1.25.05a.99.99 0 001.013-.941l-.003-5.419a1.01 1.01 0 00-.557-1.008.99.99 0 00-.831-.117L40.848 36.944c-2.26.732-2.663 1.005-2.663 3.432l.02 97.48c0 .096.004 1.042.002 1.138-.059 3.155 3.655 4.911 5.418 5.699a14.107 14.107 0 0010.47.824l58.236-18.912a.945.945 0 00.638-.894v-18.715a.948.948 0 00-.783-.93.942.942 0 00-.435.027l-46.7 15.307a.986.986 0 01-1.265-.917v-16.534a.944.944 0 01.672-.904l47.793-15.656c.581-.213.718-.312.718-.808l-.037-19.111a.91.91 0 00-1.224-.756l-46.771 15.49c-.603.174-1.15-.439-1.15-1.067l.071-16.602a.945.945 0 01.656-.9l47.895-15.902c.391-.125.555-.68.555-1.091l.005-18.504zM193.94 91.63c.043 3.264-.609 6.5-1.911 9.494a19.556 19.556 0 01-5.499 7.236 25.79 25.79 0 01-8.742 4.574 38.338 38.338 0 01-11.52 1.621 41.503 41.503 0 01-8.569-.811 43.232 43.232 0 01-6.773-1.968 31.143 31.143 0 01-5.094-2.49 32.82 32.82 0 01-3.416-2.373l6.947-11.347c.463.31 1.158.792 2.084 1.447a20.297 20.297 0 003.473 1.911 33.661 33.661 0 004.864 1.679c2.003.521 4.066.774 6.136.752 3.937 0 6.967-.868 9.089-2.605a7.893 7.893 0 003.184-6.31 6.703 6.703 0 00-1.447-4.342 13.8 13.8 0 00-3.821-3.184 48.838 48.838 0 00-5.5-2.721 95.44 95.44 0 01-6.484-3.068 49.257 49.257 0 01-6.599-3.821 25.536 25.536 0 01-5.211-4.747 20.55 20.55 0 01-3.473-6.195 24.361 24.361 0 01-1.274-8.278 19.651 19.651 0 011.969-8.916 20.53 20.53 0 015.326-6.715 24.22 24.22 0 017.873-4.284 30.599 30.599 0 019.726-1.505c2.813-.03 5.624.202 8.394.694 2.181.398 4.329.96 6.426 1.68a26.533 26.533 0 014.631 2.083 41.813 41.813 0 013.126 2.027l-6.599 11.462a32.073 32.073 0 00-2.547-1.505 24.885 24.885 0 00-3.474-1.505 38.012 38.012 0 00-4.284-1.216 21.567 21.567 0 00-4.747-.521 12.53 12.53 0 00-7.526 2.026 6.912 6.912 0 00-2.779 5.963 6.563 6.563 0 001.101 3.88 11.19 11.19 0 003.01 2.836 30.206 30.206 0 004.515 2.431c1.737.773 3.609 1.622 5.616 2.547a110.48 110.48 0 017.41 3.706 26.855 26.855 0 016.31 4.747 21.065 21.065 0 016.079 15.63zM220.454 40.221a8.972 8.972 0 01-2.721 6.484 9.097 9.097 0 01-6.773 2.78 8.91 8.91 0 01-6.716-2.78 9.064 9.064 0 01-2.663-6.483 8.684 8.684 0 012.663-6.369 9.097 9.097 0 016.716-2.663 9.294 9.294 0 016.773 2.663 8.596 8.596 0 012.721 6.368zm-17.252 72.944V56.779h15.515v56.386h-15.515zM275.449 64.305a30.007 30.007 0 017.643-6.484 20.409 20.409 0 0110.42-2.432 18.358 18.358 0 017.584 1.39 13.05 13.05 0 014.978 3.82 14.903 14.903 0 012.721 5.79 31.09 31.09 0 01.81 7.294v39.482h-15.398V76.809a11.606 11.606 0 00-1.447-6.368c-.967-1.465-2.723-2.199-5.268-2.2a9.43 9.43 0 00-3.474.637c-1.037.4-2.012.946-2.895 1.62a20.225 20.225 0 00-2.315 2.085 74.01 74.01 0 00-1.853 2.026v38.556h-15.399V76.809c0-2.855-.521-4.997-1.564-6.426-1.041-1.427-2.72-2.141-5.036-2.142a8.78 8.78 0 00-3.878.868 14.06 14.06 0 00-3.127 2.026 15.322 15.322 0 00-2.2 2.316 73.736 73.736 0 01-1.331 1.737v37.977h-15.399V56.779h15.051v6.946a73.305 73.305 0 012.548-2.662 17.54 17.54 0 013.589-2.721 24.398 24.398 0 014.747-2.084 19.363 19.363 0 016.021-.869c4.013 0 7.159.81 9.437 2.432a14.285 14.285 0 015.035 6.484zM371.897 84.914a37.586 37.586 0 01-1.853 12.157 27.702 27.702 0 01-5.21 9.321 23.497 23.497 0 01-7.989 6.02 23.991 23.991 0 01-10.19 2.143 20.801 20.801 0 01-8.336-1.39 19.832 19.832 0 01-4.632-2.663v28.02h-15.398V56.779h15.052v5.904a21.67 21.67 0 016.078-5.094 18.72 18.72 0 019.553-2.2c7.178 0 12.794 2.547 16.846 7.642 4.052 5.094 6.078 12.389 6.079 21.883zm-16.326 0c0-5.326-.926-9.533-2.779-12.62a9.202 9.202 0 00-8.452-4.632 10.535 10.535 0 00-3.937.695c-1.095.43-2.142.974-3.126 1.62-.831.538-1.59 1.18-2.257 1.911a44.486 44.486 0 00-1.332 1.563v25.357a24.172 24.172 0 003.763 2.547 12.078 12.078 0 005.963 1.274 10.195 10.195 0 009.031-4.69c2.084-3.125 3.126-7.467 3.126-13.025zM380.929 113.165V29.801h15.399v83.364h-15.399zM402.811 56.779h16.441l12.505 37.166h.579l11.463-37.166h15.862l-23.272 62.407a64.516 64.516 0 01-4.053 8.916 25.026 25.026 0 01-5.21 6.599 21.354 21.354 0 01-7.121 4.111 29.982 29.982 0 01-9.9 1.447 31.243 31.243 0 01-5.673-.405c-1.389-.272-2.392-.484-3.01-.637l2.199-12.157a8.43 8.43 0 001.737.405c1.23.14 2.468.197 3.705.173 3.937 0 6.793-.888 8.568-2.663a19.126 19.126 0 004.284-7.178l2.084-5.79-21.188-55.228zM466.725 113.165V36.053h44.461v13.431h-28.368v17.368h25.009v12.736h-25.009v20.146h29.178v13.431h-45.271z"
|
|
8189
7849
|
}))), _defs$7 || (_defs$7 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
8190
|
-
id: "
|
|
7850
|
+
id: "logo-simplye-white_svg__clip0"
|
|
8191
7851
|
}, /*#__PURE__*/createElement("path", {
|
|
8192
7852
|
transform: "translate(0 .118)",
|
|
8193
7853
|
d: "M0 0h511.984v147H0z"
|
|
@@ -8196,7 +7856,7 @@ function SvgLogoSimplyeWhite(_ref) {
|
|
|
8196
7856
|
|
|
8197
7857
|
var _g$d, _defs$8;
|
|
8198
7858
|
|
|
8199
|
-
var _excluded$
|
|
7859
|
+
var _excluded$1k = ["title", "titleId"];
|
|
8200
7860
|
|
|
8201
7861
|
function _extends$10() { _extends$10 = Object.assign || 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); }
|
|
8202
7862
|
|
|
@@ -8207,7 +7867,7 @@ function _objectWithoutPropertiesLoose$10(source, excluded) { if (source == null
|
|
|
8207
7867
|
function SvgLogoSimplyeColor(_ref) {
|
|
8208
7868
|
var title = _ref.title,
|
|
8209
7869
|
titleId = _ref.titleId,
|
|
8210
|
-
props = _objectWithoutProperties$$(_ref, _excluded$
|
|
7870
|
+
props = _objectWithoutProperties$$(_ref, _excluded$1k);
|
|
8211
7871
|
|
|
8212
7872
|
return /*#__PURE__*/createElement("svg", _extends$10({
|
|
8213
7873
|
viewBox: "0 0 682 196",
|
|
@@ -8217,7 +7877,7 @@ function SvgLogoSimplyeColor(_ref) {
|
|
|
8217
7877
|
}, props), title ? /*#__PURE__*/createElement("title", {
|
|
8218
7878
|
id: titleId
|
|
8219
7879
|
}, title) : null, _g$d || (_g$d = /*#__PURE__*/createElement("g", {
|
|
8220
|
-
clipPath: "url(#
|
|
7880
|
+
clipPath: "url(#logo-simplye-color_svg__clip0)"
|
|
8221
7881
|
}, /*#__PURE__*/createElement("path", {
|
|
8222
7882
|
d: "M32.454 44.821c-.672-.822-.72-1.921.288-2.254l69.866-23.102a1.258 1.258 0 011.654 1.195c-.001.69.559 1.155 1.242 1.26.528.083 1.108.12 1.67.068.727-.068 1.346-.526 1.346-1.255l-.004-7.35c0-.376-.164-.94-.744-1.218-.324-.158-.735-.28-1.108-.156l-78.258 25.96c-3.012.975-3.55 1.34-3.55 4.576l.027 133.016c0 .126.013.257.052.377 1.616 4.929 7.396 7.184 7.396 7.184 5.674 2.155 8.598 2.753 13.738.969 0 0 .115-132.697.047-133.28a.373.373 0 00-.306-.323c-.546-.103-8.954-.279-13.355-5.667",
|
|
8223
7883
|
fill: "#1B385E"
|
|
@@ -8231,7 +7891,7 @@ function SvgLogoSimplyeColor(_ref) {
|
|
|
8231
7891
|
d: "M257.68 121.443c0 4.631-.848 8.852-2.547 12.658-1.698 3.81-4.144 7.024-7.333 9.65-3.19 2.624-7.077 4.657-11.654 6.096-4.581 1.44-9.703 2.162-15.361 2.162-4.221 0-8.028-.362-11.424-1.08-3.396-.721-6.406-1.594-9.03-2.625-2.626-1.027-4.891-2.134-6.793-3.319-1.906-1.181-3.423-2.238-4.554-3.165l9.261-15.128c.619.412 1.546 1.056 2.78 1.93 1.235.876 2.779 1.724 4.631 2.548 1.853.824 4.015 1.569 6.484 2.237 2.47.67 5.196 1.004 8.181 1.004 5.249 0 9.288-1.158 12.12-3.473 2.829-2.316 4.245-5.119 4.245-8.414 0-2.264-.645-4.193-1.929-5.79-1.29-1.593-2.987-3.009-5.096-4.245-2.11-1.235-4.554-2.443-7.332-3.627a127.762 127.762 0 01-8.645-4.092c-3.192-1.544-6.124-3.241-8.8-5.093-2.677-1.853-4.993-3.961-6.947-6.33-1.955-2.366-3.499-5.118-4.631-8.259-1.134-3.139-1.698-6.817-1.698-11.038 0-4.424.874-8.387 2.624-11.887 1.75-3.497 4.115-6.484 7.101-8.954 2.984-2.47 6.484-4.372 10.497-5.71 4.015-1.338 8.338-2.009 12.968-2.009 4.219 0 7.951.31 11.193.927 3.241.617 6.097 1.365 8.568 2.239 2.469.876 4.528 1.8 6.175 2.778 1.645.979 3.034 1.879 4.167 2.702l-8.799 15.283c-.926-.617-2.06-1.285-3.395-2.007-1.34-.718-2.884-1.389-4.632-2.008a50.57 50.57 0 00-5.712-1.62 28.702 28.702 0 00-6.329-.694c-4.221 0-7.565.901-10.034 2.701-2.471 1.803-3.706 4.452-3.706 7.95 0 2.06.487 3.782 1.467 5.172.976 1.39 2.315 2.65 4.013 3.782 1.699 1.134 3.706 2.214 6.022 3.242a601.234 601.234 0 017.486 3.396 147.494 147.494 0 019.88 4.94c3.189 1.75 5.994 3.86 8.414 6.329 2.416 2.471 4.373 5.379 5.865 8.723 1.491 3.345 2.239 7.385 2.239 12.118zm12.349 28.714v-75.18h20.686v75.18h-20.686zm23.002-97.256c0 3.294-1.211 6.174-3.628 8.645-2.418 2.47-5.429 3.705-9.03 3.705-3.604 0-6.588-1.236-8.955-3.705-2.368-2.47-3.55-5.35-3.55-8.645 0-3.293 1.182-6.123 3.55-8.49 2.367-2.367 5.351-3.551 8.955-3.551 3.601 0 6.612 1.184 9.03 3.55 2.417 2.368 3.628 5.198 3.628 8.49zm73.325 32.11c3.089-3.602 6.485-6.484 10.19-8.645 3.706-2.162 8.336-3.242 13.893-3.242 4.015 0 7.385.618 10.112 1.852 2.727 1.235 4.94 2.933 6.637 5.095 1.699 2.161 2.907 4.734 3.628 7.718.719 2.987 1.081 6.228 1.081 9.725v52.643h-20.531v-48.473c0-3.706-.643-6.535-1.929-8.49-1.29-1.956-3.628-2.934-7.024-2.934-1.648 0-3.192.284-4.632.848a15.621 15.621 0 00-3.86 2.161 26.835 26.835 0 00-3.086 2.78 92.35 92.35 0 00-2.471 2.701v51.407h-20.532v-48.473c0-3.807-.694-6.663-2.085-8.57-1.388-1.902-3.626-2.854-6.714-2.854-1.852 0-3.578.385-5.171 1.157-1.597.772-2.987 1.674-4.169 2.701-1.184 1.031-2.161 2.06-2.932 3.088a106.536 106.536 0 01-1.776 2.316v50.635h-20.532v-75.18h20.068v9.262a97.36 97.36 0 013.397-3.55c1.336-1.337 2.934-2.547 4.785-3.629 1.854-1.081 3.962-2.006 6.33-2.778 2.366-.772 5.041-1.158 8.027-1.158 5.351 0 9.545 1.08 12.583 3.242 3.034 2.16 5.272 5.043 6.713 8.645zm106.828 27.478c0-7.1-1.235-12.71-3.705-16.827-2.471-4.114-6.228-6.174-11.269-6.174-1.956 0-3.704.308-5.25.925-1.544.619-2.933 1.34-4.167 2.162-1.235.825-2.238 1.674-3.01 2.547a59.725 59.725 0 00-1.776 2.084v33.808c1.336 1.134 3.01 2.266 5.018 3.397 2.006 1.133 4.654 1.698 7.95 1.698 5.249 0 9.261-2.085 12.041-6.253 2.779-4.168 4.168-9.957 4.168-17.367zm21.767 0c0 5.97-.825 11.374-2.47 16.21-1.647 4.838-3.964 8.98-6.947 12.426a31.322 31.322 0 01-10.651 8.028c-4.118 1.904-8.647 2.856-13.587 2.856-4.629 0-8.336-.616-11.114-1.852-2.779-1.236-4.839-2.417-6.175-3.551v37.358h-20.531V74.976h20.069v7.873c2.057-2.57 4.758-4.836 8.103-6.791 3.344-1.955 7.588-2.934 12.737-2.934 9.571 0 17.059 3.396 22.461 10.188 5.403 6.793 8.105 16.518 8.105 29.177zm12.041 37.668V39.007h20.532v111.15h-20.532zm29.176-75.18h21.92l16.673 49.554h.772l15.284-49.555h21.149l-31.029 83.208c-1.649 4.425-3.449 8.387-5.404 11.887-1.956 3.497-4.272 6.43-6.946 8.8-2.679 2.365-5.843 4.192-9.495 5.48-3.654 1.285-8.054 1.93-13.198 1.93-3.192 0-5.713-.181-7.565-.541-1.852-.361-3.192-.644-4.013-.848l2.932-16.21c.514.205 1.286.385 2.316.541 1.028.154 2.674.23 4.941.23 5.248 0 9.054-1.183 11.422-3.551 2.367-2.368 4.269-5.557 5.712-9.569l2.779-7.72-28.25-73.637zm85.216 75.18V47.342h59.28v17.91h-37.823v23.156h33.344v16.981h-33.344v26.861h38.903v17.907h-60.36z",
|
|
8232
7892
|
fill: "#1B385E"
|
|
8233
7893
|
}))), _defs$8 || (_defs$8 = /*#__PURE__*/createElement("defs", null, /*#__PURE__*/createElement("clipPath", {
|
|
8234
|
-
id: "
|
|
7894
|
+
id: "logo-simplye-color_svg__clip0"
|
|
8235
7895
|
}, /*#__PURE__*/createElement("path", {
|
|
8236
7896
|
fill: "#fff",
|
|
8237
7897
|
transform: "translate(0 .118)",
|
|
@@ -8241,7 +7901,7 @@ function SvgLogoSimplyeColor(_ref) {
|
|
|
8241
7901
|
|
|
8242
7902
|
var _path$N;
|
|
8243
7903
|
|
|
8244
|
-
var _excluded$
|
|
7904
|
+
var _excluded$1l = ["title", "titleId"];
|
|
8245
7905
|
|
|
8246
7906
|
function _extends$11() { _extends$11 = Object.assign || 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); }
|
|
8247
7907
|
|
|
@@ -8252,7 +7912,7 @@ function _objectWithoutPropertiesLoose$11(source, excluded) { if (source == null
|
|
|
8252
7912
|
function SvgLogoSnflBlack(_ref) {
|
|
8253
7913
|
var title = _ref.title,
|
|
8254
7914
|
titleId = _ref.titleId,
|
|
8255
|
-
props = _objectWithoutProperties$10(_ref, _excluded$
|
|
7915
|
+
props = _objectWithoutProperties$10(_ref, _excluded$1l);
|
|
8256
7916
|
|
|
8257
7917
|
return /*#__PURE__*/createElement("svg", _extends$11({
|
|
8258
7918
|
viewBox: "0 0 84 111",
|
|
@@ -8267,7 +7927,7 @@ function SvgLogoSnflBlack(_ref) {
|
|
|
8267
7927
|
|
|
8268
7928
|
var _path$O;
|
|
8269
7929
|
|
|
8270
|
-
var _excluded$
|
|
7930
|
+
var _excluded$1m = ["title", "titleId"];
|
|
8271
7931
|
|
|
8272
7932
|
function _extends$12() { _extends$12 = Object.assign || 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); }
|
|
8273
7933
|
|
|
@@ -8278,7 +7938,7 @@ function _objectWithoutPropertiesLoose$12(source, excluded) { if (source == null
|
|
|
8278
7938
|
function SvgLogoSnflWhite(_ref) {
|
|
8279
7939
|
var title = _ref.title,
|
|
8280
7940
|
titleId = _ref.titleId,
|
|
8281
|
-
props = _objectWithoutProperties$11(_ref, _excluded$
|
|
7941
|
+
props = _objectWithoutProperties$11(_ref, _excluded$1m);
|
|
8282
7942
|
|
|
8283
7943
|
return /*#__PURE__*/createElement("svg", _extends$12({
|
|
8284
7944
|
viewBox: "0 0 84 111",
|
|
@@ -8294,7 +7954,7 @@ function SvgLogoSnflWhite(_ref) {
|
|
|
8294
7954
|
|
|
8295
7955
|
var _path$P, _path2$q, _path3$l, _path4$c, _path5$b, _path6$3, _path7$3, _path8$1, _path9$1, _path10$1, _path11$1, _path12$1, _path13$1, _path14, _path15, _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;
|
|
8296
7956
|
|
|
8297
|
-
var _excluded$
|
|
7957
|
+
var _excluded$1n = ["title", "titleId"];
|
|
8298
7958
|
|
|
8299
7959
|
function _extends$13() { _extends$13 = Object.assign || 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); }
|
|
8300
7960
|
|
|
@@ -8305,7 +7965,7 @@ function _objectWithoutPropertiesLoose$13(source, excluded) { if (source == null
|
|
|
8305
7965
|
function SvgLogoTreasuresColor(_ref) {
|
|
8306
7966
|
var title = _ref.title,
|
|
8307
7967
|
titleId = _ref.titleId,
|
|
8308
|
-
props = _objectWithoutProperties$12(_ref, _excluded$
|
|
7968
|
+
props = _objectWithoutProperties$12(_ref, _excluded$1n);
|
|
8309
7969
|
|
|
8310
7970
|
return /*#__PURE__*/createElement("svg", _extends$13({
|
|
8311
7971
|
viewBox: "0 0 324 265",
|
|
@@ -8484,7 +8144,7 @@ function SvgLogoTreasuresColor(_ref) {
|
|
|
8484
8144
|
|
|
8485
8145
|
var _path$Q, _path2$r, _path3$m, _path4$d, _path5$c, _path6$4, _path7$4, _path8$2, _path9$2, _path10$2, _path11$2, _path12$2, _path13$2, _path14$1, _path15$1, _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;
|
|
8486
8146
|
|
|
8487
|
-
var _excluded$
|
|
8147
|
+
var _excluded$1o = ["title", "titleId"];
|
|
8488
8148
|
|
|
8489
8149
|
function _extends$14() { _extends$14 = Object.assign || 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); }
|
|
8490
8150
|
|
|
@@ -8495,7 +8155,7 @@ function _objectWithoutPropertiesLoose$14(source, excluded) { if (source == null
|
|
|
8495
8155
|
function SvgLogoTreasuresColorNegative(_ref) {
|
|
8496
8156
|
var title = _ref.title,
|
|
8497
8157
|
titleId = _ref.titleId,
|
|
8498
|
-
props = _objectWithoutProperties$13(_ref, _excluded$
|
|
8158
|
+
props = _objectWithoutProperties$13(_ref, _excluded$1o);
|
|
8499
8159
|
|
|
8500
8160
|
return /*#__PURE__*/createElement("svg", _extends$14({
|
|
8501
8161
|
viewBox: "0 0 327 266",
|
|
@@ -8674,48 +8334,48 @@ function SvgLogoTreasuresColorNegative(_ref) {
|
|
|
8674
8334
|
|
|
8675
8335
|
/* eslint-disable camelcase */
|
|
8676
8336
|
var logoSvgs = {
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
|
|
8691
|
-
|
|
8692
|
-
|
|
8693
|
-
|
|
8694
|
-
|
|
8695
|
-
|
|
8696
|
-
|
|
8697
|
-
|
|
8698
|
-
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8704
|
-
|
|
8705
|
-
|
|
8706
|
-
|
|
8707
|
-
|
|
8708
|
-
|
|
8709
|
-
|
|
8710
|
-
|
|
8711
|
-
|
|
8712
|
-
|
|
8713
|
-
|
|
8714
|
-
|
|
8715
|
-
|
|
8716
|
-
};
|
|
8717
|
-
|
|
8718
|
-
var _excluded$
|
|
8337
|
+
bplBlack: SvgLogoBplBlack,
|
|
8338
|
+
bplWhite: SvgLogoBplWhite,
|
|
8339
|
+
cleverColor: SvgLogoCleverColor,
|
|
8340
|
+
cleverWhite: SvgLogoCleverWhite,
|
|
8341
|
+
firstbookColor: SvgLogoFirstbookColor,
|
|
8342
|
+
firstbookColorNegative: SvgLogoFirstbookColorNegative,
|
|
8343
|
+
lpaBlack: SvgLogoLpaBlack,
|
|
8344
|
+
lpaColor: SvgLogoLpaColor,
|
|
8345
|
+
lpaWhite: SvgLogoLpaWhite,
|
|
8346
|
+
mlnBlack: SvgLogoMlnBlack,
|
|
8347
|
+
mlnWhite: SvgLogoMlnWhite,
|
|
8348
|
+
nyplFullBlack: SvgLogoNyplFullBlack,
|
|
8349
|
+
nyplFullWhite: SvgLogoNyplFullWhite,
|
|
8350
|
+
nyplLionBlack: SvgLogoNyplLionBlack,
|
|
8351
|
+
nyplLionWhite: SvgLogoNyplLionWhite,
|
|
8352
|
+
openebooksColor: SvgLogoOpenebooksColor,
|
|
8353
|
+
openebooksNegative: SvgLogoOpenebooksNegative,
|
|
8354
|
+
openebooksWithTextColor: SvgLogoOpenebooksWithTextColor,
|
|
8355
|
+
openebooksWithTextNegative: SvgLogoOpenebooksWithTextNegative,
|
|
8356
|
+
qplAltBlack: SvgLogoQplAltBlack,
|
|
8357
|
+
qplAltWhite: SvgLogoQplAltWhite,
|
|
8358
|
+
qplBlack: SvgLogoQplBlack,
|
|
8359
|
+
qplColor: SvgLogoQplColor,
|
|
8360
|
+
qplWhite: SvgLogoQplWhite,
|
|
8361
|
+
reservoirIconColor: SvgLogoReservoirIconColor,
|
|
8362
|
+
reservoirVerticalColor: SvgLogoReservoirVerticalColor,
|
|
8363
|
+
schomburgBlack: SvgLogoSchomburgBlack,
|
|
8364
|
+
schomburgCircleBlack: SvgLogoSchomburgCircleBlack,
|
|
8365
|
+
schomburgCircleColor: SvgLogoSchomburgCircleColor,
|
|
8366
|
+
schomburgCircleWhite: SvgLogoSchomburgCircleWhite,
|
|
8367
|
+
schomburgColor: SvgLogoSchomburgColor,
|
|
8368
|
+
schomburgWhite: SvgLogoSchomburgWhite,
|
|
8369
|
+
simplyeBlack: SvgLogoSimplyeBlack,
|
|
8370
|
+
simplyeWhite: SvgLogoSimplyeWhite,
|
|
8371
|
+
simplyeColor: SvgLogoSimplyeColor,
|
|
8372
|
+
snflBlack: SvgLogoSnflBlack,
|
|
8373
|
+
snflWhite: SvgLogoSnflWhite,
|
|
8374
|
+
treasuresColor: SvgLogoTreasuresColor,
|
|
8375
|
+
treasuresColorNegative: SvgLogoTreasuresColorNegative
|
|
8376
|
+
};
|
|
8377
|
+
|
|
8378
|
+
var _excluded$1p = ["children", "className", "decorative", "id", "name", "size", "title"];
|
|
8719
8379
|
/**
|
|
8720
8380
|
* The `Logo` component renders SVG-based logos and color variants that are
|
|
8721
8381
|
* commonly used by the New York Public Library.
|
|
@@ -8724,19 +8384,17 @@ var _excluded$1o = ["additionalStyles", "children", "className", "decorative", "
|
|
|
8724
8384
|
var Logo$1 = /*#__PURE__*/chakra(function (props) {
|
|
8725
8385
|
var _children$props, _children$props2;
|
|
8726
8386
|
|
|
8727
|
-
var
|
|
8728
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
8729
|
-
children = props.children,
|
|
8387
|
+
var children = props.children,
|
|
8730
8388
|
className = props.className,
|
|
8731
8389
|
_props$decorative = props.decorative,
|
|
8732
8390
|
decorative = _props$decorative === void 0 ? false : _props$decorative,
|
|
8733
8391
|
id = props.id,
|
|
8734
8392
|
name = props.name,
|
|
8735
8393
|
_props$size = props.size,
|
|
8736
|
-
size = _props$size === void 0 ?
|
|
8394
|
+
size = _props$size === void 0 ? "medium" : _props$size,
|
|
8737
8395
|
_props$title = props.title,
|
|
8738
8396
|
title = _props$title === void 0 ? name + " logo" : _props$title,
|
|
8739
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8397
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1p);
|
|
8740
8398
|
|
|
8741
8399
|
var styles = useStyleConfig("Logo", {
|
|
8742
8400
|
size: size
|
|
@@ -8768,7 +8426,7 @@ var Logo$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
8768
8426
|
return createElement(Icon$2, Object.assign({
|
|
8769
8427
|
as: SvgComponent
|
|
8770
8428
|
}, logoProps, {
|
|
8771
|
-
__css:
|
|
8429
|
+
__css: styles
|
|
8772
8430
|
}));
|
|
8773
8431
|
} // If no `name` prop was passed, we expect a child SVG element to be passed.
|
|
8774
8432
|
// Apply logo props to the SVG child.
|
|
@@ -8780,12 +8438,12 @@ var Logo$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
8780
8438
|
console.warn("NYPL Reservoir Logo: An `svg` element must be passed to the `Logo` " + "component as its child.");
|
|
8781
8439
|
}
|
|
8782
8440
|
|
|
8783
|
-
return createElement(Box,
|
|
8441
|
+
return createElement(Box, {
|
|
8784
8442
|
__css: styles
|
|
8785
|
-
},
|
|
8443
|
+
}, childSVG);
|
|
8786
8444
|
});
|
|
8787
8445
|
|
|
8788
|
-
var _excluded$
|
|
8446
|
+
var _excluded$1q = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
|
|
8789
8447
|
_excluded2$5 = ["buttonText", "id", "modalProps"],
|
|
8790
8448
|
_excluded3$2 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
|
|
8791
8449
|
var BaseModal = /*#__PURE__*/chakra(function (_ref) {
|
|
@@ -8796,7 +8454,7 @@ var BaseModal = /*#__PURE__*/chakra(function (_ref) {
|
|
|
8796
8454
|
id = _ref.id,
|
|
8797
8455
|
isOpen = _ref.isOpen,
|
|
8798
8456
|
onClose = _ref.onClose,
|
|
8799
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
8457
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
|
|
8800
8458
|
|
|
8801
8459
|
// Based on --nypl-breakpoint-medium
|
|
8802
8460
|
var breakpointMedium = 600;
|
|
@@ -8895,7 +8553,7 @@ function useModal() {
|
|
|
8895
8553
|
};
|
|
8896
8554
|
}
|
|
8897
8555
|
|
|
8898
|
-
var _excluded$
|
|
8556
|
+
var _excluded$1r = ["children", "icon", "id", "isCentered", "notificationType"],
|
|
8899
8557
|
_excluded2$6 = ["alignText", "children", "icon", "notificationType"],
|
|
8900
8558
|
_excluded3$3 = ["ariaLabel", "className", "dismissible", "icon", "id", "isCentered", "noMargin", "notificationContent", "notificationHeading", "notificationType", "showIcon"];
|
|
8901
8559
|
/**
|
|
@@ -8908,7 +8566,7 @@ var NotificationHeading$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
8908
8566
|
id = props.id,
|
|
8909
8567
|
isCentered = props.isCentered,
|
|
8910
8568
|
notificationType = props.notificationType,
|
|
8911
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8569
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1r);
|
|
8912
8570
|
|
|
8913
8571
|
var styles = useMultiStyleConfig("NotificationHeading", {
|
|
8914
8572
|
icon: icon,
|
|
@@ -8919,9 +8577,9 @@ var NotificationHeading$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
8919
8577
|
as: "header",
|
|
8920
8578
|
__css: styles
|
|
8921
8579
|
}, rest), icon, React__default.createElement(Heading, {
|
|
8922
|
-
additionalStyles: styles.heading,
|
|
8923
8580
|
id: id + "-heading",
|
|
8924
|
-
level:
|
|
8581
|
+
level: "four",
|
|
8582
|
+
__css: styles.heading
|
|
8925
8583
|
}, children));
|
|
8926
8584
|
});
|
|
8927
8585
|
/**
|
|
@@ -8965,7 +8623,7 @@ var Notification$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
8965
8623
|
notificationContent = props.notificationContent,
|
|
8966
8624
|
notificationHeading = props.notificationHeading,
|
|
8967
8625
|
_props$notificationTy = props.notificationType,
|
|
8968
|
-
notificationType = _props$notificationTy === void 0 ?
|
|
8626
|
+
notificationType = _props$notificationTy === void 0 ? "standard" : _props$notificationTy,
|
|
8969
8627
|
_props$showIcon = props.showIcon,
|
|
8970
8628
|
showIcon = _props$showIcon === void 0 ? true : _props$showIcon,
|
|
8971
8629
|
rest = _objectWithoutPropertiesLoose(props, _excluded3$3);
|
|
@@ -8986,51 +8644,51 @@ var Notification$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
8986
8644
|
});
|
|
8987
8645
|
|
|
8988
8646
|
var iconElement = function iconElement() {
|
|
8989
|
-
var _iconProps;
|
|
8990
|
-
|
|
8991
8647
|
var baseIconProps = {
|
|
8992
|
-
|
|
8993
|
-
|
|
8994
|
-
}; // If the icon should not display, return
|
|
8648
|
+
size: "large",
|
|
8649
|
+
__css: styles.icon
|
|
8650
|
+
}; // If the icon should not display, return undefined.
|
|
8995
8651
|
|
|
8996
8652
|
if (!showIcon) {
|
|
8997
|
-
return
|
|
8653
|
+
return undefined;
|
|
8998
8654
|
} // If a custom icon is passed, add specific `Notification` styles.
|
|
8999
8655
|
|
|
9000
8656
|
|
|
9001
8657
|
if (icon) return React__default.cloneElement(icon, _extends({
|
|
9002
8658
|
id: id + "-custom-notification-icon"
|
|
9003
8659
|
}, baseIconProps));
|
|
9004
|
-
var iconProps =
|
|
9005
|
-
|
|
9006
|
-
|
|
9007
|
-
|
|
9008
|
-
|
|
9009
|
-
|
|
9010
|
-
|
|
9011
|
-
|
|
9012
|
-
|
|
9013
|
-
|
|
9014
|
-
|
|
9015
|
-
|
|
9016
|
-
|
|
8660
|
+
var iconProps = {
|
|
8661
|
+
announcement: {
|
|
8662
|
+
color: "section.research.secondary",
|
|
8663
|
+
name: "speakerNotes",
|
|
8664
|
+
title: "Notification announcement icon"
|
|
8665
|
+
},
|
|
8666
|
+
standard: {
|
|
8667
|
+
color: "ui.black",
|
|
8668
|
+
name: "alertNotificationImportant",
|
|
8669
|
+
title: "Notification standard icon"
|
|
8670
|
+
},
|
|
8671
|
+
warning: {
|
|
8672
|
+
color: "brand.primary",
|
|
8673
|
+
name: "errorFilled",
|
|
8674
|
+
title: "Notification warning icon"
|
|
8675
|
+
}
|
|
8676
|
+
};
|
|
9017
8677
|
return React__default.createElement(Icon, Object.assign({
|
|
9018
8678
|
id: id + "-notification-icon"
|
|
9019
|
-
},
|
|
8679
|
+
}, iconProps[notificationType], baseIconProps));
|
|
9020
8680
|
};
|
|
9021
8681
|
|
|
9022
8682
|
var dismissibleButton = dismissible && React__default.createElement(Button, {
|
|
9023
|
-
|
|
9024
|
-
|
|
9025
|
-
"aria-label": "Close the notification"
|
|
9026
|
-
},
|
|
9027
|
-
buttonType: ButtonTypes.Link,
|
|
8683
|
+
"aria-label": "Close the notification",
|
|
8684
|
+
buttonType: "link",
|
|
9028
8685
|
id: id + "-notification-dismissible-button",
|
|
9029
|
-
onClick: handleClose
|
|
8686
|
+
onClick: handleClose,
|
|
8687
|
+
__css: styles.dismissibleButton
|
|
9030
8688
|
}, React__default.createElement(Icon, {
|
|
9031
8689
|
id: id + "-dismissible-notification-icon",
|
|
9032
|
-
name:
|
|
9033
|
-
size:
|
|
8690
|
+
name: "close",
|
|
8691
|
+
size: "large",
|
|
9034
8692
|
title: "Notification close icon"
|
|
9035
8693
|
}));
|
|
9036
8694
|
var iconElem = iconElement();
|
|
@@ -9041,10 +8699,10 @@ var Notification$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9041
8699
|
notificationType: notificationType
|
|
9042
8700
|
}, notificationHeading); // Specific alignment styles for the content.
|
|
9043
8701
|
|
|
9044
|
-
var alignText = childHeading && showIcon && (!!icon || !isCentered);
|
|
8702
|
+
var alignText = !!(childHeading && showIcon && (!!icon || !isCentered));
|
|
9045
8703
|
var childContent = React__default.createElement(NotificationContent$1, {
|
|
9046
8704
|
alignText: alignText,
|
|
9047
|
-
icon: !childHeading ? iconElem :
|
|
8705
|
+
icon: !childHeading ? iconElem : undefined,
|
|
9048
8706
|
notificationType: notificationType
|
|
9049
8707
|
}, notificationContent); // If the `Notification` is closed, don't render anything.
|
|
9050
8708
|
|
|
@@ -9064,7 +8722,28 @@ var Notification$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9064
8722
|
}, childHeading, childContent), dismissibleButton);
|
|
9065
8723
|
});
|
|
9066
8724
|
|
|
9067
|
-
|
|
8725
|
+
// Utility functions to use throughout the codebase
|
|
8726
|
+
|
|
8727
|
+
/**
|
|
8728
|
+
* range
|
|
8729
|
+
* Get an array of values from `start` to `stop` - 1 with an optional
|
|
8730
|
+
* `step` between values.
|
|
8731
|
+
*/
|
|
8732
|
+
var range = function range(start, stop, step) {
|
|
8733
|
+
if (step === void 0) {
|
|
8734
|
+
step = 1;
|
|
8735
|
+
}
|
|
8736
|
+
|
|
8737
|
+
if (!start) {
|
|
8738
|
+
return [];
|
|
8739
|
+
}
|
|
8740
|
+
|
|
8741
|
+
return Array(Math.ceil((stop - start) / step)).fill(start).map(function (x, y) {
|
|
8742
|
+
return x + y * step;
|
|
8743
|
+
});
|
|
8744
|
+
};
|
|
8745
|
+
|
|
8746
|
+
var _excluded$1s = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
|
|
9068
8747
|
/**
|
|
9069
8748
|
* A component that provides a navigational list of page items.
|
|
9070
8749
|
*/
|
|
@@ -9078,7 +8757,7 @@ var Pagination$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9078
8757
|
initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
|
|
9079
8758
|
onPageChange = props.onPageChange,
|
|
9080
8759
|
pageCount = props.pageCount,
|
|
9081
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8760
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1s);
|
|
9082
8761
|
|
|
9083
8762
|
var refCurrentPage = useRef(currentPage);
|
|
9084
8763
|
|
|
@@ -9093,7 +8772,7 @@ var Pagination$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9093
8772
|
// to the new currentPage and update the refCurrentPage with that value.
|
|
9094
8773
|
|
|
9095
8774
|
React__default.useEffect(function () {
|
|
9096
|
-
if (onPageChange && currentPage !== refCurrentPage.current) {
|
|
8775
|
+
if (onPageChange && currentPage && currentPage !== refCurrentPage.current) {
|
|
9097
8776
|
setSelectedPage(currentPage);
|
|
9098
8777
|
refCurrentPage.current = currentPage;
|
|
9099
8778
|
}
|
|
@@ -9186,12 +8865,12 @@ var Pagination$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9186
8865
|
}
|
|
9187
8866
|
};
|
|
9188
8867
|
var linkAttrs = allAttrs[type];
|
|
9189
|
-
return React__default.createElement(Link, {
|
|
9190
|
-
additionalStyles: _extends({}, styles.link, currentStyles),
|
|
9191
|
-
attributes: linkAttrs.attributes,
|
|
8868
|
+
return React__default.createElement(Link, Object.assign({
|
|
9192
8869
|
href: linkAttrs.href,
|
|
9193
8870
|
id: id + "-" + linkAttrs.text
|
|
9194
|
-
}, linkAttrs.
|
|
8871
|
+
}, linkAttrs.attributes, {
|
|
8872
|
+
__css: _extends({}, styles.link, currentStyles)
|
|
8873
|
+
}), linkAttrs.text);
|
|
9195
8874
|
};
|
|
9196
8875
|
/**
|
|
9197
8876
|
* This function returns an array of `li` elements with numbers based on the
|
|
@@ -9263,14 +8942,14 @@ var Pagination$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9263
8942
|
className: className,
|
|
9264
8943
|
__css: styles
|
|
9265
8944
|
}, rest), React__default.createElement(List$1, {
|
|
9266
|
-
type:
|
|
8945
|
+
type: "ul",
|
|
9267
8946
|
inline: true,
|
|
9268
8947
|
noStyling: true,
|
|
9269
8948
|
id: id + "-list"
|
|
9270
8949
|
}, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
|
|
9271
8950
|
});
|
|
9272
8951
|
|
|
9273
|
-
var _excluded$
|
|
8952
|
+
var _excluded$1t = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
|
|
9274
8953
|
/**
|
|
9275
8954
|
* A component that displays a progress status for any task that takes a long
|
|
9276
8955
|
* time to complete or consists of multiple steps. Examples include downloading,
|
|
@@ -9282,17 +8961,17 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9282
8961
|
darkMode = _props$darkMode === void 0 ? false : _props$darkMode,
|
|
9283
8962
|
id = props.id,
|
|
9284
8963
|
_props$indicatorType = props.indicatorType,
|
|
9285
|
-
indicatorType = _props$indicatorType === void 0 ?
|
|
8964
|
+
indicatorType = _props$indicatorType === void 0 ? "linear" : _props$indicatorType,
|
|
9286
8965
|
_props$isIndeterminat = props.isIndeterminate,
|
|
9287
8966
|
isIndeterminate = _props$isIndeterminat === void 0 ? false : _props$isIndeterminat,
|
|
9288
8967
|
labelText = props.labelText,
|
|
9289
8968
|
_props$showLabel = props.showLabel,
|
|
9290
8969
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9291
8970
|
_props$size = props.size,
|
|
9292
|
-
size = _props$size === void 0 ?
|
|
8971
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
9293
8972
|
_props$value = props.value,
|
|
9294
8973
|
value = _props$value === void 0 ? 0 : _props$value,
|
|
9295
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8974
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1t);
|
|
9296
8975
|
|
|
9297
8976
|
var styles = useMultiStyleConfig("ProgressIndicator", {
|
|
9298
8977
|
darkMode: darkMode,
|
|
@@ -9313,20 +8992,20 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9313
8992
|
id: id,
|
|
9314
8993
|
// If the label is visually shown, associate it with the progress indicator.
|
|
9315
8994
|
// Otherwise, the `aria-label` will be added.
|
|
9316
|
-
"aria-label": showLabel ?
|
|
9317
|
-
"aria-labelledby": showLabel ? id + "-label" :
|
|
8995
|
+
"aria-label": showLabel ? undefined : labelText,
|
|
8996
|
+
"aria-labelledby": showLabel ? id + "-label" : undefined,
|
|
9318
8997
|
// If `isIndeterminate` is true, then it overrides the `value` prop.
|
|
9319
|
-
isIndeterminate: isIndeterminate ||
|
|
9320
|
-
value: isIndeterminate ?
|
|
8998
|
+
isIndeterminate: isIndeterminate || undefined,
|
|
8999
|
+
value: isIndeterminate ? undefined : finalValue
|
|
9321
9000
|
};
|
|
9322
9001
|
|
|
9323
9002
|
var progressComponent = function progressComponent(indicatorType) {
|
|
9324
9003
|
// Only display the percentage text for the default size, not in the
|
|
9325
9004
|
// indeterminate state, and when `showLabel` is true.
|
|
9326
|
-
if (indicatorType ===
|
|
9005
|
+
if (indicatorType === "circular") {
|
|
9327
9006
|
// For the small size, since the label won't be visible, we need to add
|
|
9328
9007
|
// it to the parent component's `aria-label` attribute.
|
|
9329
|
-
if (size ===
|
|
9008
|
+
if (size === "small") {
|
|
9330
9009
|
progressProps["aria-label"] = labelText;
|
|
9331
9010
|
}
|
|
9332
9011
|
|
|
@@ -9334,7 +9013,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9334
9013
|
__css: styles.circularContainer
|
|
9335
9014
|
}, React__default.createElement(CircularProgress, Object.assign({}, progressProps, {
|
|
9336
9015
|
sx: styles.circular
|
|
9337
|
-
}), showLabel && !isIndeterminate && size !==
|
|
9016
|
+
}), showLabel && !isIndeterminate && size !== "small" && React__default.createElement(CircularProgressLabel, null, finalValue, "%")), showLabel && size !== "small" && React__default.createElement(Label, {
|
|
9338
9017
|
id: id + "-label",
|
|
9339
9018
|
htmlFor: id
|
|
9340
9019
|
}, labelText));
|
|
@@ -9358,7 +9037,7 @@ var ProgressIndicator$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9358
9037
|
}, rest), progressComponent(indicatorType));
|
|
9359
9038
|
});
|
|
9360
9039
|
|
|
9361
|
-
var _excluded$
|
|
9040
|
+
var _excluded$1u = ["className", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
|
|
9362
9041
|
var Radio$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
9363
9042
|
var className = props.className,
|
|
9364
9043
|
helperText = props.helperText,
|
|
@@ -9379,11 +9058,11 @@ var Radio$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
9379
9058
|
_props$showLabel = props.showLabel,
|
|
9380
9059
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9381
9060
|
value = props.value,
|
|
9382
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9061
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1u);
|
|
9383
9062
|
|
|
9384
9063
|
var styles = useMultiStyleConfig("Radio", {});
|
|
9385
9064
|
var footnote = isInvalid ? invalidText : helperText;
|
|
9386
|
-
var
|
|
9065
|
+
var ariaAttributes = {};
|
|
9387
9066
|
|
|
9388
9067
|
if (!id) {
|
|
9389
9068
|
console.warn("NYPL Reservoir Radio: This component's required `id` prop was not passed.");
|
|
@@ -9394,9 +9073,9 @@ var Radio$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
9394
9073
|
console.warn("NYPL Reservoir Radio: `labelText` must be a string when `showLabel` is false.");
|
|
9395
9074
|
}
|
|
9396
9075
|
|
|
9397
|
-
|
|
9076
|
+
ariaAttributes["aria-label"] = labelText && footnote ? labelText + " - " + footnote : labelText;
|
|
9398
9077
|
} else if (footnote) {
|
|
9399
|
-
|
|
9078
|
+
ariaAttributes["aria-describedby"] = id + "-helperText";
|
|
9400
9079
|
}
|
|
9401
9080
|
|
|
9402
9081
|
return createElement(Fragment, null, createElement(Radio$2, Object.assign({
|
|
@@ -9412,15 +9091,15 @@ var Radio$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref)
|
|
|
9412
9091
|
ref: ref,
|
|
9413
9092
|
alignItems: "flex-start",
|
|
9414
9093
|
__css: styles
|
|
9415
|
-
},
|
|
9416
|
-
additionalStyles: styles.helperErrorText,
|
|
9094
|
+
}, ariaAttributes, rest), showLabel && labelText), footnote && showHelperInvalidText && createElement(HelperErrorText, {
|
|
9417
9095
|
id: id + "-helperText",
|
|
9418
9096
|
isInvalid: isInvalid,
|
|
9419
|
-
text: footnote
|
|
9097
|
+
text: footnote,
|
|
9098
|
+
__css: styles.helperErrorText
|
|
9420
9099
|
}));
|
|
9421
9100
|
}));
|
|
9422
9101
|
|
|
9423
|
-
var _excluded$
|
|
9102
|
+
var _excluded$1v = ["children", "className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
|
|
9424
9103
|
/**
|
|
9425
9104
|
* RadioGroup is a wrapper for DS `Radio` components that renders as a fieldset
|
|
9426
9105
|
* HTML element along with optional helper text. The `name` prop is essential
|
|
@@ -9447,7 +9126,7 @@ var RadioGroup$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
9447
9126
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
9448
9127
|
labelText = props.labelText,
|
|
9449
9128
|
_props$layout = props.layout,
|
|
9450
|
-
layout = _props$layout === void 0 ?
|
|
9129
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
9451
9130
|
name = props.name,
|
|
9452
9131
|
_onChange = props.onChange,
|
|
9453
9132
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
@@ -9456,14 +9135,14 @@ var RadioGroup$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
9456
9135
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9457
9136
|
_props$showRequiredLa = props.showRequiredLabel,
|
|
9458
9137
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
9459
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9138
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1v);
|
|
9460
9139
|
|
|
9461
9140
|
var _React$useState = useState(defaultValue),
|
|
9462
9141
|
value = _React$useState[0],
|
|
9463
9142
|
setValue = _React$useState[1];
|
|
9464
9143
|
|
|
9465
9144
|
var footnote = isInvalid ? invalidText : helperText;
|
|
9466
|
-
var spacingProp = layout ===
|
|
9145
|
+
var spacingProp = layout === "column" ? spacing.s : spacing.l;
|
|
9467
9146
|
var newChildren = []; // Get the Chakra-based styles for the custom elements in this component.
|
|
9468
9147
|
|
|
9469
9148
|
var styles = useMultiStyleConfig("RadioGroup", {
|
|
@@ -9518,23 +9197,14 @@ var RadioGroup$1 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props,
|
|
|
9518
9197
|
spacing: spacingProp,
|
|
9519
9198
|
sx: styles.stack
|
|
9520
9199
|
}, newChildren)), footnote && showHelperInvalidText && createElement(HelperErrorText, {
|
|
9521
|
-
additionalStyles: styles.helperErrorText,
|
|
9522
9200
|
id: id + "-helperErrorText",
|
|
9523
9201
|
isInvalid: isInvalid,
|
|
9524
|
-
text: footnote
|
|
9202
|
+
text: footnote,
|
|
9203
|
+
__css: styles.helperErrorText
|
|
9525
9204
|
}));
|
|
9526
9205
|
}));
|
|
9527
9206
|
|
|
9528
|
-
var
|
|
9529
|
-
|
|
9530
|
-
(function (TextSizes) {
|
|
9531
|
-
TextSizes["Default"] = "default";
|
|
9532
|
-
TextSizes["Caption"] = "caption";
|
|
9533
|
-
TextSizes["Tag"] = "tag";
|
|
9534
|
-
TextSizes["Mini"] = "mini";
|
|
9535
|
-
})(TextSizes || (TextSizes = {}));
|
|
9536
|
-
|
|
9537
|
-
var _excluded$1v = ["children", "className", "isBold", "isItalic", "noSpace", "size"];
|
|
9207
|
+
var _excluded$1w = ["children", "className", "isBold", "isItalic", "noSpace", "size"];
|
|
9538
9208
|
var Text$1 = /*#__PURE__*/chakra(function (props) {
|
|
9539
9209
|
var children = props.children,
|
|
9540
9210
|
_props$className = props.className,
|
|
@@ -9543,12 +9213,11 @@ var Text$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9543
9213
|
isItalic = props.isItalic,
|
|
9544
9214
|
noSpace = props.noSpace,
|
|
9545
9215
|
_props$size = props.size,
|
|
9546
|
-
size = _props$size === void 0 ?
|
|
9547
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9216
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
9217
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1w);
|
|
9548
9218
|
|
|
9549
|
-
var variant = getVariant(size, TextSizes, TextSizes.Default);
|
|
9550
9219
|
var styles = useStyleConfig("Text", {
|
|
9551
|
-
variant:
|
|
9220
|
+
variant: size,
|
|
9552
9221
|
isBold: isBold,
|
|
9553
9222
|
isItalic: isItalic,
|
|
9554
9223
|
noSpace: noSpace
|
|
@@ -9564,7 +9233,7 @@ var Text$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9564
9233
|
}, rest), children);
|
|
9565
9234
|
});
|
|
9566
9235
|
|
|
9567
|
-
var _excluded$
|
|
9236
|
+
var _excluded$1x = ["children", "descriptionText", "headingText", "helperText", "id", "invalidText", "isInvalid"];
|
|
9568
9237
|
var ComponentWrapper$1 = /*#__PURE__*/chakra(function (props) {
|
|
9569
9238
|
var children = props.children,
|
|
9570
9239
|
descriptionText = props.descriptionText,
|
|
@@ -9574,7 +9243,7 @@ var ComponentWrapper$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9574
9243
|
invalidText = props.invalidText,
|
|
9575
9244
|
_props$isInvalid = props.isInvalid,
|
|
9576
9245
|
isInvalid = _props$isInvalid === void 0 ? false : _props$isInvalid,
|
|
9577
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9246
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1x);
|
|
9578
9247
|
|
|
9579
9248
|
var hasChildren = !!children;
|
|
9580
9249
|
var styles = useMultiStyleConfig("ComponentWrapper", {
|
|
@@ -9591,41 +9260,23 @@ var ComponentWrapper$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9591
9260
|
__css: styles
|
|
9592
9261
|
}, rest), headingText && createElement(Heading, {
|
|
9593
9262
|
id: id + "-heading",
|
|
9594
|
-
level: HeadingLevels.Two,
|
|
9595
9263
|
text: headingText
|
|
9596
9264
|
}), descriptionText && createElement(Text$1, null, descriptionText), children, footnote && createElement(HelperErrorText, {
|
|
9597
|
-
additionalStyles: styles.helperErrorText,
|
|
9598
9265
|
id: id + "-helperText",
|
|
9599
9266
|
isInvalid: isInvalid,
|
|
9600
|
-
text: footnote
|
|
9267
|
+
text: footnote,
|
|
9268
|
+
__css: styles.helperErrorText
|
|
9601
9269
|
}));
|
|
9602
9270
|
});
|
|
9603
9271
|
|
|
9604
|
-
|
|
9605
|
-
var SelectTypes;
|
|
9606
|
-
|
|
9607
|
-
(function (SelectTypes) {
|
|
9608
|
-
SelectTypes["Default"] = "default";
|
|
9609
|
-
SelectTypes["SearchBar"] = "searchbar";
|
|
9610
|
-
})(SelectTypes || (SelectTypes = {}));
|
|
9611
|
-
|
|
9612
|
-
var LabelPositions;
|
|
9613
|
-
|
|
9614
|
-
(function (LabelPositions) {
|
|
9615
|
-
LabelPositions["Default"] = "default";
|
|
9616
|
-
LabelPositions["Inline"] = "inline";
|
|
9617
|
-
})(LabelPositions || (LabelPositions = {}));
|
|
9618
|
-
|
|
9619
|
-
var _excluded$1x = ["additionalStyles", "children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
9272
|
+
var _excluded$1y = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
9620
9273
|
/**
|
|
9621
9274
|
* Component that renders Chakra's `Select` component along with an accessible
|
|
9622
9275
|
* `Label` and optional `HelperErrorText` component.
|
|
9623
9276
|
*/
|
|
9624
9277
|
|
|
9625
9278
|
var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
9626
|
-
var
|
|
9627
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
9628
|
-
children = props.children,
|
|
9279
|
+
var children = props.children,
|
|
9629
9280
|
className = props.className,
|
|
9630
9281
|
helperText = props.helperText,
|
|
9631
9282
|
id = props.id,
|
|
@@ -9637,13 +9288,13 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(funct
|
|
|
9637
9288
|
_props$isRequired = props.isRequired,
|
|
9638
9289
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
9639
9290
|
_props$labelPosition = props.labelPosition,
|
|
9640
|
-
labelPosition = _props$labelPosition === void 0 ?
|
|
9291
|
+
labelPosition = _props$labelPosition === void 0 ? "default" : _props$labelPosition,
|
|
9641
9292
|
labelText = props.labelText,
|
|
9642
9293
|
name = props.name,
|
|
9643
9294
|
onChange = props.onChange,
|
|
9644
9295
|
placeholder = props.placeholder,
|
|
9645
9296
|
_props$selectType = props.selectType,
|
|
9646
|
-
selectType = _props$selectType === void 0 ?
|
|
9297
|
+
selectType = _props$selectType === void 0 ? "default" : _props$selectType,
|
|
9647
9298
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
9648
9299
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
9649
9300
|
_props$showLabel = props.showLabel,
|
|
@@ -9652,7 +9303,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(funct
|
|
|
9652
9303
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
9653
9304
|
_props$value = props.value,
|
|
9654
9305
|
value = _props$value === void 0 ? "" : _props$value,
|
|
9655
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9306
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1y);
|
|
9656
9307
|
|
|
9657
9308
|
var ariaAttributes = {};
|
|
9658
9309
|
|
|
@@ -9660,7 +9311,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(funct
|
|
|
9660
9311
|
labelWidth = _useState[0],
|
|
9661
9312
|
setLabelWidth = _useState[1];
|
|
9662
9313
|
|
|
9663
|
-
var labelRef = useRef();
|
|
9314
|
+
var labelRef = useRef(null);
|
|
9664
9315
|
var styles = useMultiStyleConfig("CustomSelect", {
|
|
9665
9316
|
variant: selectType,
|
|
9666
9317
|
labelPosition: labelPosition
|
|
@@ -9688,7 +9339,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(funct
|
|
|
9688
9339
|
}
|
|
9689
9340
|
|
|
9690
9341
|
useEffect(function () {
|
|
9691
|
-
if (labelPosition ===
|
|
9342
|
+
if (labelPosition === "inline") {
|
|
9692
9343
|
if (labelRef.current) {
|
|
9693
9344
|
var width = labelRef.current.clientWidth + labelSelectGap;
|
|
9694
9345
|
setLabelWidth(width);
|
|
@@ -9699,9 +9350,9 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(funct
|
|
|
9699
9350
|
}, [labelPosition]);
|
|
9700
9351
|
return React__default.createElement(Box, Object.assign({
|
|
9701
9352
|
className: className,
|
|
9702
|
-
__css:
|
|
9353
|
+
__css: styles
|
|
9703
9354
|
}, rest), React__default.createElement(Box, {
|
|
9704
|
-
__css: labelPosition ===
|
|
9355
|
+
__css: labelPosition === "inline" && styles.inline
|
|
9705
9356
|
}, showLabel && React__default.createElement(Box, {
|
|
9706
9357
|
ref: labelRef
|
|
9707
9358
|
}, React__default.createElement(Label, {
|
|
@@ -9721,8 +9372,8 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(funct
|
|
|
9721
9372
|
}, controlledProps, ariaAttributes, {
|
|
9722
9373
|
icon: React__default.createElement(Icon, {
|
|
9723
9374
|
id: id + "-icon",
|
|
9724
|
-
name:
|
|
9725
|
-
size:
|
|
9375
|
+
name: "arrow",
|
|
9376
|
+
size: "medium"
|
|
9726
9377
|
}),
|
|
9727
9378
|
__css: styles.select
|
|
9728
9379
|
}), children)), footnote && showHelperInvalidText && React__default.createElement(HelperErrorText, {
|
|
@@ -9736,7 +9387,7 @@ var Select$1 = /*#__PURE__*/chakra( /*#__PURE__*/React__default.forwardRef(funct
|
|
|
9736
9387
|
}));
|
|
9737
9388
|
}));
|
|
9738
9389
|
|
|
9739
|
-
var _excluded$
|
|
9390
|
+
var _excluded$1z = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
|
|
9740
9391
|
/**
|
|
9741
9392
|
* Renders a wrapper `form` element to be used with `Select` (optional),
|
|
9742
9393
|
* `Input`, and `Button` components together.
|
|
@@ -9744,8 +9395,7 @@ var _excluded$1y = ["action", "buttonOnClick", "className", "descriptionText", "
|
|
|
9744
9395
|
|
|
9745
9396
|
var SearchBar$1 = /*#__PURE__*/chakra(function (props) {
|
|
9746
9397
|
var action = props.action,
|
|
9747
|
-
|
|
9748
|
-
buttonOnClick = _props$buttonOnClick === void 0 ? null : _props$buttonOnClick,
|
|
9398
|
+
buttonOnClick = props.buttonOnClick,
|
|
9749
9399
|
className = props.className,
|
|
9750
9400
|
descriptionText = props.descriptionText,
|
|
9751
9401
|
headingText = props.headingText,
|
|
@@ -9766,7 +9416,7 @@ var SearchBar$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9766
9416
|
selectProps = props.selectProps,
|
|
9767
9417
|
textInputElement = props.textInputElement,
|
|
9768
9418
|
textInputProps = props.textInputProps,
|
|
9769
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9419
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1z);
|
|
9770
9420
|
|
|
9771
9421
|
var styles = useMultiStyleConfig("SearchBar", {});
|
|
9772
9422
|
var stateProps = {
|
|
@@ -9781,7 +9431,7 @@ var SearchBar$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9781
9431
|
var finalAriaLabel = footnote ? labelText + " - " + footnote : labelText;
|
|
9782
9432
|
var inputPlaceholder = (textInputProps == null ? void 0 : textInputProps.placeholder) || "Search terms";
|
|
9783
9433
|
var textInputPlaceholder = inputPlaceholder + " " + (isRequired ? "(Required)" : "");
|
|
9784
|
-
var buttonType = noBrandButtonType ?
|
|
9434
|
+
var buttonType = noBrandButtonType ? "noBrand" : "primary";
|
|
9785
9435
|
var searchBarButtonStyles = {
|
|
9786
9436
|
borderLeftRadius: "none",
|
|
9787
9437
|
borderRightRadius: {
|
|
@@ -9798,13 +9448,13 @@ var SearchBar$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9798
9448
|
|
|
9799
9449
|
|
|
9800
9450
|
var selectElem = selectProps && createElement(Select$1, Object.assign({
|
|
9801
|
-
additionalStyles: styles.select,
|
|
9802
9451
|
id: "searchbar-select-" + id,
|
|
9803
9452
|
labelText: selectProps == null ? void 0 : selectProps.labelText,
|
|
9804
9453
|
name: selectProps == null ? void 0 : selectProps.name,
|
|
9805
9454
|
onChange: selectProps == null ? void 0 : selectProps.onChange,
|
|
9806
|
-
selectType:
|
|
9807
|
-
value: selectProps == null ? void 0 : selectProps.value
|
|
9455
|
+
selectType: "searchbar",
|
|
9456
|
+
value: selectProps == null ? void 0 : selectProps.value,
|
|
9457
|
+
__css: styles.select
|
|
9808
9458
|
}, stateProps), selectProps == null ? void 0 : selectProps.optionsData.map(function (option) {
|
|
9809
9459
|
return createElement("option", {
|
|
9810
9460
|
key: option,
|
|
@@ -9818,23 +9468,23 @@ var SearchBar$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9818
9468
|
name: textInputProps == null ? void 0 : textInputProps.name,
|
|
9819
9469
|
onChange: textInputProps == null ? void 0 : textInputProps.onChange,
|
|
9820
9470
|
placeholder: textInputPlaceholder,
|
|
9821
|
-
textInputType: selectElem ?
|
|
9822
|
-
type:
|
|
9471
|
+
textInputType: selectElem ? "searchBarSelect" : "searchBar",
|
|
9472
|
+
type: "text",
|
|
9823
9473
|
value: textInputProps == null ? void 0 : textInputProps.value
|
|
9824
9474
|
}, stateProps)); // Render the `Button` component.
|
|
9825
9475
|
|
|
9826
9476
|
var buttonElem = createElement(Button, {
|
|
9827
|
-
additionalStyles: searchBarButtonStyles,
|
|
9828
9477
|
buttonType: buttonType,
|
|
9829
9478
|
id: "searchbar-button-" + id,
|
|
9830
9479
|
isDisabled: isDisabled,
|
|
9831
9480
|
onClick: buttonOnClick,
|
|
9832
|
-
type: "submit"
|
|
9481
|
+
type: "submit",
|
|
9482
|
+
__css: searchBarButtonStyles
|
|
9833
9483
|
}, createElement(Icon, {
|
|
9834
|
-
align:
|
|
9484
|
+
align: "left",
|
|
9835
9485
|
id: "searchbar-icon-" + id,
|
|
9836
|
-
name:
|
|
9837
|
-
size:
|
|
9486
|
+
name: "search",
|
|
9487
|
+
size: "small"
|
|
9838
9488
|
}), "Search"); // If a custom input element was passed, use that element
|
|
9839
9489
|
// instead of the DS `TextInput` component.
|
|
9840
9490
|
|
|
@@ -9859,15 +9509,7 @@ var SearchBar$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9859
9509
|
}, selectElem, textInputElem, buttonElem));
|
|
9860
9510
|
});
|
|
9861
9511
|
|
|
9862
|
-
var
|
|
9863
|
-
|
|
9864
|
-
(function (SkeletonLoaderImageRatios) {
|
|
9865
|
-
SkeletonLoaderImageRatios["Landscape"] = "landscape";
|
|
9866
|
-
SkeletonLoaderImageRatios["Portrait"] = "portrait";
|
|
9867
|
-
SkeletonLoaderImageRatios["Square"] = "square";
|
|
9868
|
-
})(SkeletonLoaderImageRatios || (SkeletonLoaderImageRatios = {}));
|
|
9869
|
-
|
|
9870
|
-
var _excluded$1z = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
|
|
9512
|
+
var _excluded$1A = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
|
|
9871
9513
|
/**
|
|
9872
9514
|
* The `SkeletonLoader` component renders a placeholder to be used while
|
|
9873
9515
|
* dynamic content is loading.
|
|
@@ -9880,11 +9522,11 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9880
9522
|
_props$headingSize = props.headingSize,
|
|
9881
9523
|
headingSize = _props$headingSize === void 0 ? 1 : _props$headingSize,
|
|
9882
9524
|
_props$imageAspectRat = props.imageAspectRatio,
|
|
9883
|
-
imageAspectRatio = _props$imageAspectRat === void 0 ?
|
|
9525
|
+
imageAspectRatio = _props$imageAspectRat === void 0 ? "square" : _props$imageAspectRat,
|
|
9884
9526
|
_props$isBordered = props.isBordered,
|
|
9885
9527
|
isBordered = _props$isBordered === void 0 ? false : _props$isBordered,
|
|
9886
9528
|
_props$layout = props.layout,
|
|
9887
|
-
layout = _props$layout === void 0 ?
|
|
9529
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
9888
9530
|
_props$showButton = props.showButton,
|
|
9889
9531
|
showButton = _props$showButton === void 0 ? false : _props$showButton,
|
|
9890
9532
|
_props$showContent = props.showContent,
|
|
@@ -9894,7 +9536,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9894
9536
|
_props$showImage = props.showImage,
|
|
9895
9537
|
showImage = _props$showImage === void 0 ? true : _props$showImage,
|
|
9896
9538
|
width = props.width,
|
|
9897
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9539
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1A);
|
|
9898
9540
|
|
|
9899
9541
|
var styles = useMultiStyleConfig("SkeletonLoader", {
|
|
9900
9542
|
isBordered: isBordered,
|
|
@@ -9919,7 +9561,7 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9919
9561
|
|
|
9920
9562
|
return new Array(size).fill(null).map(function (_, i) {
|
|
9921
9563
|
var width = i === size - 1 ? lastWidth : "100%";
|
|
9922
|
-
var marginBottomValue = i === size - 1 && type === "content" ? "0" :
|
|
9564
|
+
var marginBottomValue = i === size - 1 && type === "content" ? "0" : undefined;
|
|
9923
9565
|
return createElement(Skeleton$1, {
|
|
9924
9566
|
key: type + "-" + i,
|
|
9925
9567
|
width: width
|
|
@@ -9956,7 +9598,40 @@ var SkeletonLoader$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
9956
9598
|
})))));
|
|
9957
9599
|
});
|
|
9958
9600
|
|
|
9959
|
-
var _excluded$
|
|
9601
|
+
var _excluded$1B = ["className", "id", "target"];
|
|
9602
|
+
/**
|
|
9603
|
+
* SkipNavigation is a component that is used to provide a navigational list of
|
|
9604
|
+
* links. The first link is used to skip to the main content of the page using
|
|
9605
|
+
* the `#mainContent` id, and the second link points to accessibility information
|
|
9606
|
+
* on NYPL.org. These links are visually hidden but can be read by screenreaders.
|
|
9607
|
+
*/
|
|
9608
|
+
|
|
9609
|
+
var SkipNavigation$1 = /*#__PURE__*/chakra(function (props) {
|
|
9610
|
+
var className = props.className,
|
|
9611
|
+
id = props.id,
|
|
9612
|
+
_props$target = props.target,
|
|
9613
|
+
target = _props$target === void 0 ? "#mainContent" : _props$target,
|
|
9614
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1B);
|
|
9615
|
+
|
|
9616
|
+
var styles = useStyleConfig("SkipNavigation");
|
|
9617
|
+
return createElement(Box, Object.assign({
|
|
9618
|
+
as: "nav",
|
|
9619
|
+
"aria-label": "Skip Navigation",
|
|
9620
|
+
className: className,
|
|
9621
|
+
id: id,
|
|
9622
|
+
__css: styles
|
|
9623
|
+
}, rest), createElement(List$1, {
|
|
9624
|
+
inline: true,
|
|
9625
|
+
noStyling: true,
|
|
9626
|
+
type: "ul"
|
|
9627
|
+
}, createElement("li", null, createElement(Link, {
|
|
9628
|
+
href: target
|
|
9629
|
+
}, "Skip to Main Content")), createElement("li", null, createElement(Link, {
|
|
9630
|
+
href: "https://www.nypl.org/accessibility"
|
|
9631
|
+
}, "Click to learn about accessibility at the Library"))));
|
|
9632
|
+
});
|
|
9633
|
+
|
|
9634
|
+
var _excluded$1C = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step"];
|
|
9960
9635
|
/**
|
|
9961
9636
|
* The `Slider` component renders a singular value slider or a range slider
|
|
9962
9637
|
* with a min and max value. The value(s) can be updated through the slider
|
|
@@ -9997,7 +9672,7 @@ var Slider = /*#__PURE__*/chakra(function (props) {
|
|
|
9997
9672
|
showValues = _props$showValues === void 0 ? true : _props$showValues,
|
|
9998
9673
|
_props$step = props.step,
|
|
9999
9674
|
step = _props$step === void 0 ? 1 : _props$step,
|
|
10000
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9675
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1C);
|
|
10001
9676
|
|
|
10002
9677
|
if (!id) {
|
|
10003
9678
|
console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
|
|
@@ -10048,18 +9723,16 @@ var Slider = /*#__PURE__*/chakra(function (props) {
|
|
|
10048
9723
|
}; // Props that the two `TextInput` components use.
|
|
10049
9724
|
|
|
10050
9725
|
var textInputSharedProps = {
|
|
10051
|
-
attributes: {
|
|
10052
|
-
max: max,
|
|
10053
|
-
min: min
|
|
10054
|
-
},
|
|
10055
9726
|
isDisabled: isDisabled,
|
|
10056
9727
|
isInvalid: finalIsInvalid,
|
|
10057
9728
|
isRequired: isRequired,
|
|
9729
|
+
max: max,
|
|
9730
|
+
min: min,
|
|
10058
9731
|
// Never show the label or helper text for the `TextInput` component.
|
|
10059
9732
|
showHelperInvalidText: false,
|
|
10060
9733
|
showLabel: false,
|
|
10061
9734
|
step: step,
|
|
10062
|
-
type:
|
|
9735
|
+
type: "number"
|
|
10063
9736
|
};
|
|
10064
9737
|
/**
|
|
10065
9738
|
* This returns either the "start" or "end" `TextInput` component. Note that
|
|
@@ -10111,7 +9784,7 @@ var Slider = /*#__PURE__*/chakra(function (props) {
|
|
|
10111
9784
|
return createElement(TextInput, Object.assign({
|
|
10112
9785
|
id: id + "-textInput-" + type,
|
|
10113
9786
|
labelText: updatedLabel,
|
|
10114
|
-
|
|
9787
|
+
__css: _extends({}, styles.textInput, {
|
|
10115
9788
|
// Specific margins for each text input to
|
|
10116
9789
|
// push the elements inside.
|
|
10117
9790
|
marginRight: type === "start" ? "s" : null,
|
|
@@ -10128,8 +9801,8 @@ var Slider = /*#__PURE__*/chakra(function (props) {
|
|
|
10128
9801
|
var getSliderType = function getSliderType() {
|
|
10129
9802
|
return isRangeSlider ? createElement(RangeSlider // Both slider thumbs need values and should be in an array.
|
|
10130
9803
|
, Object.assign({
|
|
10131
|
-
"aria-label": !showLabel ? [labelText + " - start value", labelText + " - end value"] :
|
|
10132
|
-
"aria-labelledby": showLabel ? [id + "-label", id + "-label"] :
|
|
9804
|
+
"aria-label": !showLabel ? [labelText + " - start value", labelText + " - end value"] : undefined,
|
|
9805
|
+
"aria-labelledby": showLabel ? [id + "-label", id + "-label"] : undefined,
|
|
10133
9806
|
value: currentValue,
|
|
10134
9807
|
// Make the thumbs larger.
|
|
10135
9808
|
size: "lg"
|
|
@@ -10144,7 +9817,7 @@ var Slider = /*#__PURE__*/chakra(function (props) {
|
|
|
10144
9817
|
index: 1,
|
|
10145
9818
|
sx: styles.thumb
|
|
10146
9819
|
})) : createElement(Slider$1, Object.assign({
|
|
10147
|
-
"aria-label": !showLabel ? labelText :
|
|
9820
|
+
"aria-label": !showLabel ? labelText : undefined,
|
|
10148
9821
|
"aria-labelledby": id + "-label",
|
|
10149
9822
|
value: currentValue,
|
|
10150
9823
|
// Make the thumb larger.
|
|
@@ -10167,7 +9840,7 @@ var Slider = /*#__PURE__*/chakra(function (props) {
|
|
|
10167
9840
|
// should link the label somewhere. So either target the first
|
|
10168
9841
|
// input box in a `RangeSlider` or the only input box in a `Slider`.
|
|
10169
9842
|
// When the input fields are not visible, remove this attribute.
|
|
10170
|
-
htmlFor: showBoxes ? id + "-textInput-" + (isRangeSlider ? "start" : "end") :
|
|
9843
|
+
htmlFor: showBoxes ? id + "-textInput-" + (isRangeSlider ? "start" : "end") : "",
|
|
10171
9844
|
isRequired: showRequiredLabel && isRequired
|
|
10172
9845
|
}, labelText), createElement(Box, {
|
|
10173
9846
|
__css: styles.container
|
|
@@ -10182,15 +9855,7 @@ var Slider = /*#__PURE__*/chakra(function (props) {
|
|
|
10182
9855
|
}));
|
|
10183
9856
|
});
|
|
10184
9857
|
|
|
10185
|
-
var
|
|
10186
|
-
|
|
10187
|
-
(function (StatusBadgeTypes) {
|
|
10188
|
-
StatusBadgeTypes["Low"] = "low";
|
|
10189
|
-
StatusBadgeTypes["Medium"] = "medium";
|
|
10190
|
-
StatusBadgeTypes["High"] = "high";
|
|
10191
|
-
})(StatusBadgeTypes || (StatusBadgeTypes = {}));
|
|
10192
|
-
|
|
10193
|
-
var _excluded$1B = ["children", "className", "id", "level"];
|
|
9858
|
+
var _excluded$1D = ["children", "className", "id", "level"];
|
|
10194
9859
|
/**
|
|
10195
9860
|
* The `StatusBadge` component is used to display a visual badge for three
|
|
10196
9861
|
* different status levels.
|
|
@@ -10201,8 +9866,8 @@ var StatusBadge$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
10201
9866
|
className = props.className,
|
|
10202
9867
|
id = props.id,
|
|
10203
9868
|
_props$level = props.level,
|
|
10204
|
-
level = _props$level === void 0 ?
|
|
10205
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9869
|
+
level = _props$level === void 0 ? "low" : _props$level,
|
|
9870
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1D);
|
|
10206
9871
|
|
|
10207
9872
|
var styles = useStyleConfig("StatusBadge", {
|
|
10208
9873
|
variant: level
|
|
@@ -10219,15 +9884,7 @@ var StatusBadge$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
10219
9884
|
}, rest), children);
|
|
10220
9885
|
});
|
|
10221
9886
|
|
|
10222
|
-
var
|
|
10223
|
-
|
|
10224
|
-
(function (StructuredContentImagePosition) {
|
|
10225
|
-
StructuredContentImagePosition["Left"] = "left";
|
|
10226
|
-
StructuredContentImagePosition["Right"] = "right";
|
|
10227
|
-
StructuredContentImagePosition["Center"] = "center";
|
|
10228
|
-
})(StructuredContentImagePosition || (StructuredContentImagePosition = {}));
|
|
10229
|
-
|
|
10230
|
-
var _excluded$1C = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
|
|
9887
|
+
var _excluded$1E = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
|
|
10231
9888
|
/**
|
|
10232
9889
|
* Internal component used in the `StructuredContent` component
|
|
10233
9890
|
* that renders the DS `Image` component.
|
|
@@ -10270,16 +9927,16 @@ var StructuredContent$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
10270
9927
|
_props$imageProps = props.imageProps,
|
|
10271
9928
|
imageProps = _props$imageProps === void 0 ? {
|
|
10272
9929
|
alt: "",
|
|
10273
|
-
aspectRatio:
|
|
9930
|
+
aspectRatio: "square",
|
|
10274
9931
|
caption: undefined,
|
|
10275
9932
|
component: undefined,
|
|
10276
9933
|
credit: undefined,
|
|
10277
|
-
position:
|
|
10278
|
-
size:
|
|
9934
|
+
position: "left",
|
|
9935
|
+
size: "medium",
|
|
10279
9936
|
src: ""
|
|
10280
9937
|
} : _props$imageProps,
|
|
10281
9938
|
bodyContent = props.bodyContent,
|
|
10282
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9939
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1E);
|
|
10283
9940
|
|
|
10284
9941
|
var hasImage = imageProps.src || imageProps.component;
|
|
10285
9942
|
var hasFigureImage = imageProps.caption || imageProps.credit;
|
|
@@ -10306,12 +9963,11 @@ var StructuredContent$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
10306
9963
|
className: className,
|
|
10307
9964
|
__css: styles
|
|
10308
9965
|
}, rest), headingText && createElement(Heading, {
|
|
10309
|
-
id: id + "-heading"
|
|
10310
|
-
level: HeadingLevels.Two
|
|
9966
|
+
id: id + "-heading"
|
|
10311
9967
|
}, headingText), calloutText && createElement(Heading, {
|
|
10312
9968
|
id: id + "-callout",
|
|
10313
|
-
level:
|
|
10314
|
-
size:
|
|
9969
|
+
level: "three",
|
|
9970
|
+
size: "callout"
|
|
10315
9971
|
}, calloutText), hasImage && createElement(StructuredContentImage, {
|
|
10316
9972
|
additionalFigureStyles: styles.imageFigure,
|
|
10317
9973
|
additionalImageStyles: styles.image,
|
|
@@ -10322,7 +9978,7 @@ var StructuredContent$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
10322
9978
|
caption: imageProps.caption,
|
|
10323
9979
|
credit: imageProps.credit,
|
|
10324
9980
|
size: imageProps.size,
|
|
10325
|
-
src: imageProps.src ? imageProps.src :
|
|
9981
|
+
src: imageProps.src ? imageProps.src : undefined
|
|
10326
9982
|
}), finalBodyContent);
|
|
10327
9983
|
});
|
|
10328
9984
|
|
|
@@ -10381,7 +10037,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
|
|
|
10381
10037
|
};
|
|
10382
10038
|
};
|
|
10383
10039
|
|
|
10384
|
-
var _excluded$
|
|
10040
|
+
var _excluded$1F = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
|
|
10385
10041
|
/**
|
|
10386
10042
|
* An internal function used to update the hash in the URL.
|
|
10387
10043
|
* This function is only used when `useHash` is `true`.
|
|
@@ -10419,7 +10075,7 @@ var getElementsFromData$2 = function getElementsFromData(data, useHash) {
|
|
|
10419
10075
|
key: index,
|
|
10420
10076
|
onClick: useHash ? function () {
|
|
10421
10077
|
return onClickHash("tab" + (index + 1));
|
|
10422
|
-
} :
|
|
10078
|
+
} : undefined
|
|
10423
10079
|
}, tab.label);
|
|
10424
10080
|
|
|
10425
10081
|
if (typeof tab.content === "string") {
|
|
@@ -10500,7 +10156,7 @@ var Tabs = /*#__PURE__*/chakra(function (props) {
|
|
|
10500
10156
|
tabsData = props.tabsData,
|
|
10501
10157
|
_props$useHash = props.useHash,
|
|
10502
10158
|
useHash = _props$useHash === void 0 ? false : _props$useHash,
|
|
10503
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10159
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1F);
|
|
10504
10160
|
|
|
10505
10161
|
var styles = useMultiStyleConfig("Tabs", {}); // Just an estimate of the tab width for the mobile carousel.
|
|
10506
10162
|
|
|
@@ -10546,34 +10202,30 @@ var Tabs = /*#__PURE__*/chakra(function (props) {
|
|
|
10546
10202
|
}
|
|
10547
10203
|
}, [goToStart, windowDimensions.width]);
|
|
10548
10204
|
var previousButton = createElement(Button, {
|
|
10549
|
-
|
|
10550
|
-
"aria-label": "Previous"
|
|
10551
|
-
}, styles.buttonArrows, {
|
|
10552
|
-
left: "0"
|
|
10553
|
-
}),
|
|
10554
|
-
buttonType: ButtonTypes.Primary,
|
|
10205
|
+
"aria-label": "Previous",
|
|
10555
10206
|
id: "tabs-previous-" + id,
|
|
10556
|
-
onClick: prevSlide
|
|
10207
|
+
onClick: prevSlide,
|
|
10208
|
+
__css: _extends({}, styles.buttonArrows, {
|
|
10209
|
+
left: "0"
|
|
10210
|
+
})
|
|
10557
10211
|
}, createElement(Icon, {
|
|
10558
|
-
iconRotation:
|
|
10212
|
+
iconRotation: "rotate90",
|
|
10559
10213
|
id: "tabs-previous-icon-" + id,
|
|
10560
|
-
name:
|
|
10561
|
-
size:
|
|
10214
|
+
name: "arrow",
|
|
10215
|
+
size: "small"
|
|
10562
10216
|
}));
|
|
10563
10217
|
var nextButton = createElement(Button, {
|
|
10564
|
-
|
|
10565
|
-
"aria-label": "Next"
|
|
10566
|
-
}, styles.buttonArrows, {
|
|
10567
|
-
right: "0"
|
|
10568
|
-
}),
|
|
10569
|
-
buttonType: ButtonTypes.Primary,
|
|
10218
|
+
"aria-label": "Next",
|
|
10570
10219
|
id: "tabs-next-" + id,
|
|
10571
|
-
onClick: nextSlide
|
|
10220
|
+
onClick: nextSlide,
|
|
10221
|
+
__css: _extends({}, styles.buttonArrows, {
|
|
10222
|
+
right: "0"
|
|
10223
|
+
})
|
|
10572
10224
|
}, createElement(Icon, {
|
|
10573
|
-
iconRotation:
|
|
10225
|
+
iconRotation: "rotate270",
|
|
10574
10226
|
id: "tabs-next-icon-" + id,
|
|
10575
|
-
name:
|
|
10576
|
-
size:
|
|
10227
|
+
name: "arrow",
|
|
10228
|
+
size: "small"
|
|
10577
10229
|
}));
|
|
10578
10230
|
|
|
10579
10231
|
if (children && tabsData != null && tabsData.length) {
|
|
@@ -10599,7 +10251,7 @@ var Tabs = /*#__PURE__*/chakra(function (props) {
|
|
|
10599
10251
|
}, createElement(Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
|
|
10600
10252
|
}); // Tabs is also exported above so the props can display in Storybook.
|
|
10601
10253
|
|
|
10602
|
-
var _excluded$
|
|
10254
|
+
var _excluded$1G = ["aboveHeader", "breakout", "contentId", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
|
|
10603
10255
|
/**
|
|
10604
10256
|
* The main top-level parent component that wraps all template-related
|
|
10605
10257
|
* components.
|
|
@@ -10826,14 +10478,16 @@ var TemplateAppContainer = /*#__PURE__*/chakra(function (props) {
|
|
|
10826
10478
|
renderFooterElement = _props$renderFooterEl === void 0 ? true : _props$renderFooterEl,
|
|
10827
10479
|
_props$renderHeaderEl = props.renderHeaderElement,
|
|
10828
10480
|
renderHeaderElement = _props$renderHeaderEl === void 0 ? true : _props$renderHeaderEl,
|
|
10829
|
-
|
|
10481
|
+
_props$renderSkipNavi = props.renderSkipNavigation,
|
|
10482
|
+
renderSkipNavigation = _props$renderSkipNavi === void 0 ? false : _props$renderSkipNavi,
|
|
10483
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1G);
|
|
10830
10484
|
|
|
10831
10485
|
var aboveHeaderElem = aboveHeader && createElement(TemplateAboveHeader, null, aboveHeader);
|
|
10832
10486
|
var breakoutElem = breakout && createElement(TemplateBreakout$1, null, breakout);
|
|
10833
10487
|
var contentTopElem = contentTop && createElement(TemplateContentTop$1, null, contentTop);
|
|
10834
10488
|
var contentPrimaryElem = contentPrimary && createElement(TemplateContentPrimary$1, null, contentPrimary);
|
|
10835
10489
|
var contentSidebarElem = contentSidebar && createElement(TemplateContentSidebar$1, null, contentSidebar);
|
|
10836
|
-
return createElement(Template$1, Object.assign({}, rest), aboveHeaderElem, (header || breakoutElem) && createElement(TemplateHeader$1, {
|
|
10490
|
+
return createElement(Template$1, Object.assign({}, rest), renderSkipNavigation ? createElement(SkipNavigation$1, null) : null, aboveHeaderElem, (header || breakoutElem) && createElement(TemplateHeader$1, {
|
|
10837
10491
|
renderHeaderElement: renderHeaderElement
|
|
10838
10492
|
}, header, breakoutElem), createElement(TemplateContent$1, {
|
|
10839
10493
|
id: contentId,
|
|
@@ -10843,7 +10497,7 @@ var TemplateAppContainer = /*#__PURE__*/chakra(function (props) {
|
|
|
10843
10497
|
}, footer));
|
|
10844
10498
|
});
|
|
10845
10499
|
|
|
10846
|
-
var _excluded$
|
|
10500
|
+
var _excluded$1H = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
|
|
10847
10501
|
var onChangeDefault$1 = function onChangeDefault() {
|
|
10848
10502
|
return;
|
|
10849
10503
|
};
|
|
@@ -10852,9 +10506,7 @@ var onChangeDefault$1 = function onChangeDefault() {
|
|
|
10852
10506
|
*/
|
|
10853
10507
|
|
|
10854
10508
|
var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
10855
|
-
var _props$
|
|
10856
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
10857
|
-
_props$defaultChecked = props.defaultChecked,
|
|
10509
|
+
var _props$defaultChecked = props.defaultChecked,
|
|
10858
10510
|
defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,
|
|
10859
10511
|
helperText = props.helperText,
|
|
10860
10512
|
id = props.id,
|
|
@@ -10871,8 +10523,8 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
10871
10523
|
_props$onChange = props.onChange,
|
|
10872
10524
|
onChange = _props$onChange === void 0 ? onChangeDefault$1 : _props$onChange,
|
|
10873
10525
|
_props$size = props.size,
|
|
10874
|
-
size = _props$size === void 0 ?
|
|
10875
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10526
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
10527
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1H);
|
|
10876
10528
|
|
|
10877
10529
|
var footnote = isInvalid ? invalidText : helperText;
|
|
10878
10530
|
var ariaAttributes = {};
|
|
@@ -10890,7 +10542,7 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
10890
10542
|
}
|
|
10891
10543
|
|
|
10892
10544
|
return createElement(Fragment, null, createElement(Box, Object.assign({
|
|
10893
|
-
__css:
|
|
10545
|
+
__css: styles
|
|
10894
10546
|
}, rest), createElement(Switch$1, Object.assign({
|
|
10895
10547
|
id: id,
|
|
10896
10548
|
name: name || "default",
|
|
@@ -10898,7 +10550,7 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
10898
10550
|
isInvalid: isInvalid,
|
|
10899
10551
|
isRequired: isRequired,
|
|
10900
10552
|
ref: ref,
|
|
10901
|
-
size: size ===
|
|
10553
|
+
size: size === "default" ? "lg" : "sm",
|
|
10902
10554
|
lineHeight: "1.5"
|
|
10903
10555
|
}, isChecked !== undefined ? {
|
|
10904
10556
|
isChecked: isChecked,
|
|
@@ -10908,10 +10560,10 @@ var Toggle$2 = /*#__PURE__*/chakra( /*#__PURE__*/forwardRef(function (props, ref
|
|
|
10908
10560
|
}, ariaAttributes, {
|
|
10909
10561
|
__css: switchStyles
|
|
10910
10562
|
}), labelText)), footnote && createElement(HelperErrorText, {
|
|
10911
|
-
additionalStyles: styles.helperErrorText,
|
|
10912
10563
|
id: id + "-helperText",
|
|
10913
10564
|
isInvalid: isInvalid,
|
|
10914
|
-
text: footnote
|
|
10565
|
+
text: footnote,
|
|
10566
|
+
__css: styles.helperErrorText
|
|
10915
10567
|
}));
|
|
10916
10568
|
}));
|
|
10917
10569
|
|
|
@@ -11003,22 +10655,7 @@ function useNYPLTheme() {
|
|
|
11003
10655
|
};
|
|
11004
10656
|
}
|
|
11005
10657
|
|
|
11006
|
-
var
|
|
11007
|
-
|
|
11008
|
-
(function (VideoPlayerTypes) {
|
|
11009
|
-
VideoPlayerTypes["Vimeo"] = "vimeo";
|
|
11010
|
-
VideoPlayerTypes["YouTube"] = "youtube";
|
|
11011
|
-
})(VideoPlayerTypes || (VideoPlayerTypes = {}));
|
|
11012
|
-
|
|
11013
|
-
var VideoPlayerAspectRatios;
|
|
11014
|
-
|
|
11015
|
-
(function (VideoPlayerAspectRatios) {
|
|
11016
|
-
VideoPlayerAspectRatios["FourByThree"] = "fourByThree";
|
|
11017
|
-
VideoPlayerAspectRatios["SixteenByNine"] = "sixteenByNine";
|
|
11018
|
-
VideoPlayerAspectRatios["Square"] = "square";
|
|
11019
|
-
})(VideoPlayerAspectRatios || (VideoPlayerAspectRatios = {}));
|
|
11020
|
-
|
|
11021
|
-
var _excluded$1G = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
|
|
10658
|
+
var _excluded$1I = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
|
|
11022
10659
|
var VideoPlayer$1 = /*#__PURE__*/chakra(function (props) {
|
|
11023
10660
|
var aspectRatio = props.aspectRatio,
|
|
11024
10661
|
className = props.className,
|
|
@@ -11032,10 +10669,10 @@ var VideoPlayer$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
11032
10669
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
11033
10670
|
videoId = props.videoId,
|
|
11034
10671
|
videoType = props.videoType,
|
|
11035
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10672
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1I);
|
|
11036
10673
|
|
|
11037
|
-
var iframeTitleFinal = videoType ===
|
|
11038
|
-
var videoSrc = videoType ===
|
|
10674
|
+
var iframeTitleFinal = videoType === "vimeo" ? iframeTitle || "Vimeo video player" : iframeTitle || "YouTube video player";
|
|
10675
|
+
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";
|
|
11039
10676
|
var iFrameTitleEmbedCode = iframeTitle ? "" + iframeTitle : "Video player";
|
|
11040
10677
|
var embedCodeFinal = embedCode && embedCode.includes("<iframe") && !embedCode.includes("title=") ? embedCode.replace("<iframe ", "<iframe title=\"" + iFrameTitleEmbedCode + "\" ") : embedCode;
|
|
11041
10678
|
var errorMessage = "<strong>Error:</strong> This video player has not been configured " + "properly. Please contact the site administrator.";
|
|
@@ -11065,7 +10702,7 @@ var VideoPlayer$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
11065
10702
|
isInvalid = true;
|
|
11066
10703
|
}
|
|
11067
10704
|
|
|
11068
|
-
var variant = isInvalid ? "invalid" :
|
|
10705
|
+
var variant = isInvalid ? "invalid" : aspectRatio;
|
|
11069
10706
|
var styles = useMultiStyleConfig("VideoPlayer", {
|
|
11070
10707
|
variant: variant
|
|
11071
10708
|
});
|
|
@@ -11092,16 +10729,16 @@ var VideoPlayer$1 = /*#__PURE__*/chakra(function (props) {
|
|
|
11092
10729
|
__html: errorMessage
|
|
11093
10730
|
}
|
|
11094
10731
|
}) : createElement(ComponentWrapper$1, {
|
|
11095
|
-
headingText: headingText ? headingText :
|
|
11096
|
-
descriptionText: descriptionText ? descriptionText :
|
|
11097
|
-
helperText: helperText && showHelperInvalidText ? helperText :
|
|
10732
|
+
headingText: headingText ? headingText : undefined,
|
|
10733
|
+
descriptionText: descriptionText ? descriptionText : undefined,
|
|
10734
|
+
helperText: helperText && showHelperInvalidText ? helperText : undefined,
|
|
11098
10735
|
id: id + "-componentWrapper"
|
|
11099
10736
|
}, createElement(Box, {
|
|
11100
10737
|
__css: styles.inside
|
|
11101
10738
|
}, embedElement)));
|
|
11102
10739
|
});
|
|
11103
10740
|
|
|
11104
|
-
var _excluded$
|
|
10741
|
+
var _excluded$1J = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
|
|
11105
10742
|
/**
|
|
11106
10743
|
* Basic `Table` component used to organize and display tabular data in
|
|
11107
10744
|
* rows and columns.
|
|
@@ -11109,7 +10746,8 @@ var _excluded$1H = ["className", "columnHeaders", "columnHeadersBackgroundColor"
|
|
|
11109
10746
|
|
|
11110
10747
|
var Table = /*#__PURE__*/chakra(function (props) {
|
|
11111
10748
|
var className = props.className,
|
|
11112
|
-
columnHeaders = props.columnHeaders,
|
|
10749
|
+
_props$columnHeaders = props.columnHeaders,
|
|
10750
|
+
columnHeaders = _props$columnHeaders === void 0 ? [] : _props$columnHeaders,
|
|
11113
10751
|
columnHeadersBackgroundColor = props.columnHeadersBackgroundColor,
|
|
11114
10752
|
columnHeadersTextColor = props.columnHeadersTextColor,
|
|
11115
10753
|
id = props.id,
|
|
@@ -11119,7 +10757,7 @@ var Table = /*#__PURE__*/chakra(function (props) {
|
|
|
11119
10757
|
titleText = props.titleText,
|
|
11120
10758
|
_props$useRowHeaders = props.useRowHeaders,
|
|
11121
10759
|
useRowHeaders = _props$useRowHeaders === void 0 ? false : _props$useRowHeaders,
|
|
11122
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10760
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1J);
|
|
11123
10761
|
|
|
11124
10762
|
var customColors = {};
|
|
11125
10763
|
columnHeadersBackgroundColor && (customColors["backgroundColor"] = columnHeadersBackgroundColor);
|
|
@@ -11170,5 +10808,5 @@ var Table = /*#__PURE__*/chakra(function (props) {
|
|
|
11170
10808
|
}, rest), tableCaption, columnHeadersElems, tableBodyElems());
|
|
11171
10809
|
});
|
|
11172
10810
|
|
|
11173
|
-
export { Accordion,
|
|
10811
|
+
export { Accordion, Breadcrumbs, Button, ButtonGroup, Card, CardActions, CardContent, CardHeading, Checkbox, CheckboxGroup, DSProvider, DatePicker, Fieldset, Form, FormField, FormRow, Heading, HelperErrorText, Hero$1 as Hero, HorizontalRule$1 as HorizontalRule, Icon, Image, Label, Link, List$1 as List, Logo$1 as Logo, ModalTrigger, Notification$1 as Notification, Pagination$1 as Pagination, ProgressIndicator$1 as ProgressIndicator, Radio$1 as Radio, RadioGroup$1 as RadioGroup, SearchBar$1 as SearchBar, Select$1 as Select, SimpleGrid, SkeletonLoader$1 as SkeletonLoader, SkipNavigation$1 as SkipNavigation, Slider, StatusBadge$1 as StatusBadge, StructuredContent$1 as StructuredContent, Table, Tabs, Template$1 as Template, TemplateAboveHeader, TemplateAppContainer, TemplateBreakout$1 as TemplateBreakout, TemplateContent$1 as TemplateContent, TemplateContentPrimary$1 as TemplateContentPrimary, TemplateContentSidebar$1 as TemplateContentSidebar, TemplateContentTop$1 as TemplateContentTop, TemplateFooter, TemplateHeader$1 as TemplateHeader, Text$1 as Text, TextInput, Toggle$2 as Toggle, VideoPlayer$1 as VideoPlayer, useCarouselStyles, useModal, useNYPLTheme, useWindowSize };
|
|
11174
10812
|
//# sourceMappingURL=design-system-react-components.esm.js.map
|