@nypl/design-system-react-components 0.26.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 +56 -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/Modal/Modal.d.ts +28 -8
- 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 +977 -1213
- 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 +976 -1276
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/helpers/types.d.ts +1 -0
- package/dist/index.d.ts +27 -48
- package/dist/styles.css +1 -1
- 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 -10
- 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 +15 -16
- 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/Card/__snapshots__/Card.test.tsx.snap +1 -1
- 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/Checkbox/__snapshots__/Checkbox.test.tsx.snap +9 -9
- 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 +24 -35
- 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 -94
- package/src/components/Link/Link.test.tsx +25 -75
- 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 +245 -139
- package/src/components/Modal/Modal.test.tsx +147 -10
- package/src/components/Modal/Modal.tsx +140 -20
- package/src/components/Modal/__snapshots__/Modal.test.tsx.snap +25 -0
- 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 +3 -4
- 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 +1 -13
- package/src/components/Select/Select.stories.mdx +10 -25
- package/src/components/Select/Select.test.tsx +6 -7
- package/src/components/Select/Select.tsx +28 -35
- package/src/components/Select/__snapshots__/Select.test.tsx.snap +24 -24
- 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 +52 -46
- package/src/styles.scss +0 -1
- 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 -6
- 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/Modal/_Modal.scss +0 -18
- 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
|
@@ -29,22 +29,6 @@ function _extends() {
|
|
|
29
29
|
return _extends.apply(this, arguments);
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
function _inheritsLoose(subClass, superClass) {
|
|
33
|
-
subClass.prototype = Object.create(superClass.prototype);
|
|
34
|
-
subClass.prototype.constructor = subClass;
|
|
35
|
-
|
|
36
|
-
_setPrototypeOf(subClass, superClass);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
function _setPrototypeOf(o, p) {
|
|
40
|
-
_setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) {
|
|
41
|
-
o.__proto__ = p;
|
|
42
|
-
return o;
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
return _setPrototypeOf(o, p);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
32
|
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
49
33
|
if (source == null) return {};
|
|
50
34
|
var target = {};
|
|
@@ -60,97 +44,6 @@ function _objectWithoutPropertiesLoose(source, excluded) {
|
|
|
60
44
|
return target;
|
|
61
45
|
}
|
|
62
46
|
|
|
63
|
-
(function (AccordionTypes) {
|
|
64
|
-
AccordionTypes["Default"] = "default";
|
|
65
|
-
AccordionTypes["Warning"] = "warning";
|
|
66
|
-
AccordionTypes["Error"] = "error";
|
|
67
|
-
})(exports.AccordionTypes || (exports.AccordionTypes = {}));
|
|
68
|
-
|
|
69
|
-
/* eslint-disable camelcase */
|
|
70
|
-
|
|
71
|
-
(function (IconAlign) {
|
|
72
|
-
IconAlign["Left"] = "left";
|
|
73
|
-
IconAlign["Right"] = "right";
|
|
74
|
-
IconAlign["None"] = "none";
|
|
75
|
-
})(exports.IconAlign || (exports.IconAlign = {}));
|
|
76
|
-
|
|
77
|
-
(function (IconTypes) {
|
|
78
|
-
IconTypes["Default"] = "default";
|
|
79
|
-
IconTypes["Breadcrumbs"] = "breadcrumbs";
|
|
80
|
-
})(exports.IconTypes || (exports.IconTypes = {}));
|
|
81
|
-
|
|
82
|
-
(function (IconRotationTypes) {
|
|
83
|
-
IconRotationTypes["Rotate0"] = "rotate0";
|
|
84
|
-
IconRotationTypes["Rotate90"] = "rotate90";
|
|
85
|
-
IconRotationTypes["Rotate180"] = "rotate180";
|
|
86
|
-
IconRotationTypes["Rotate270"] = "rotate270";
|
|
87
|
-
})(exports.IconRotationTypes || (exports.IconRotationTypes = {}));
|
|
88
|
-
|
|
89
|
-
(function (IconColors) {
|
|
90
|
-
IconColors["UiBlack"] = "ui.black";
|
|
91
|
-
IconColors["UiWhite"] = "ui.white";
|
|
92
|
-
IconColors["BrandPrimary"] = "brand.primary";
|
|
93
|
-
IconColors["BrandSecondary"] = "brand.secondary";
|
|
94
|
-
IconColors["SectionBlogsPrimary"] = "section.blogs.primary";
|
|
95
|
-
IconColors["SectionBlogsSecondary"] = "section.blogs.secondary";
|
|
96
|
-
IconColors["SectionBooksAndMorePrimary"] = "section.books-and-more.primary";
|
|
97
|
-
IconColors["SectionBooksAndMoreSecondary"] = "section.books-and-more.secondary";
|
|
98
|
-
IconColors["SectionEducationPrimary"] = "section.education.primary";
|
|
99
|
-
IconColors["SectionEducationSecondary"] = "section.education.secondary";
|
|
100
|
-
IconColors["SectionLocationsPrimary"] = "section.locations.primary";
|
|
101
|
-
IconColors["SectionLocationsSecondary"] = "section.locations.secondary";
|
|
102
|
-
IconColors["SectionResearchPrimary"] = "section.research.primary";
|
|
103
|
-
IconColors["SectionResearchSecondary"] = "section.research.secondary";
|
|
104
|
-
IconColors["SectionResearchLibraryLpa"] = "section.research-library.lpa";
|
|
105
|
-
IconColors["SectionResearchLibrarySchomburg"] = "section.research-library.schomburg";
|
|
106
|
-
IconColors["SectionResearchLibrarySchwartzman"] = "section.research-library.schwartzman";
|
|
107
|
-
IconColors["SectionWhatsOnPrimary"] = "section.whats-on.primary";
|
|
108
|
-
IconColors["SectionWhatsOnSecondary"] = "section.whats-on.secondary";
|
|
109
|
-
})(exports.IconColors || (exports.IconColors = {}));
|
|
110
|
-
|
|
111
|
-
(function (IconSizes) {
|
|
112
|
-
IconSizes["Default"] = "default";
|
|
113
|
-
IconSizes["Small"] = "small";
|
|
114
|
-
IconSizes["Medium"] = "medium";
|
|
115
|
-
IconSizes["Large"] = "large";
|
|
116
|
-
IconSizes["ExtraLarge"] = "xlarge";
|
|
117
|
-
IconSizes["ExtraExtraLarge"] = "xxlarge";
|
|
118
|
-
IconSizes["ExtraExtraExtraLarge"] = "xxxlarge";
|
|
119
|
-
})(exports.IconSizes || (exports.IconSizes = {}));
|
|
120
|
-
|
|
121
|
-
(function (IconNames) {
|
|
122
|
-
IconNames["AccessibilityFull"] = "accessibility_full";
|
|
123
|
-
IconNames["AccessibilityPartial"] = "accessibility_partial";
|
|
124
|
-
IconNames["ActionCheckCircle"] = "action_check_circle";
|
|
125
|
-
IconNames["ActionHelpDefault"] = "action_help_default";
|
|
126
|
-
IconNames["ActionHelpOutline"] = "action_help_outline";
|
|
127
|
-
IconNames["AlertNotificationImportant"] = "alert_notification_important";
|
|
128
|
-
IconNames["ActionLaunch"] = "action_launch";
|
|
129
|
-
IconNames["Arrow"] = "arrow";
|
|
130
|
-
IconNames["Check"] = "check";
|
|
131
|
-
IconNames["Clock"] = "clock";
|
|
132
|
-
IconNames["Close"] = "close";
|
|
133
|
-
IconNames["Download"] = "download";
|
|
134
|
-
IconNames["ErrorFilled"] = "error_filled";
|
|
135
|
-
IconNames["ErrorOutline"] = "error_outline";
|
|
136
|
-
IconNames["FileTypeAudio"] = "file_type_audio";
|
|
137
|
-
IconNames["FileTypeDoc"] = "file_type_doc";
|
|
138
|
-
IconNames["FileTypeGenericDoc"] = "file_type_generic_doc";
|
|
139
|
-
IconNames["FileTypeImage"] = "file_type_image";
|
|
140
|
-
IconNames["FileTypePdf"] = "file_type_pdf";
|
|
141
|
-
IconNames["FileTypeSpreadsheet"] = "file_type_spreadsheet";
|
|
142
|
-
IconNames["FileTypeVideo"] = "file_type_video";
|
|
143
|
-
IconNames["Headset"] = "headset";
|
|
144
|
-
IconNames["Minus"] = "minus";
|
|
145
|
-
IconNames["Plus"] = "plus";
|
|
146
|
-
IconNames["Search"] = "search";
|
|
147
|
-
IconNames["SpeakerNotes"] = "speaker_notes";
|
|
148
|
-
IconNames["UtilityAccountFilled"] = "utility_account_filled";
|
|
149
|
-
IconNames["UtilityAccountUnfilled"] = "utility_account_unfilled";
|
|
150
|
-
IconNames["UtilityHamburger"] = "utility_hamburger";
|
|
151
|
-
IconNames["UtilitySearch"] = "utility_search";
|
|
152
|
-
})(exports.IconNames || (exports.IconNames = {}));
|
|
153
|
-
|
|
154
47
|
var _path, _path2, _path3;
|
|
155
48
|
|
|
156
49
|
var _excluded = ["title", "titleId"];
|
|
@@ -1054,39 +947,39 @@ function SvgUtilityHamburger(_ref) {
|
|
|
1054
947
|
|
|
1055
948
|
/* eslint-disable camelcase */
|
|
1056
949
|
var iconSvgs = {
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
950
|
+
accessibilityFull: SvgAccessibilityFull,
|
|
951
|
+
accessibilityPartial: SvgAccessibilityPartial,
|
|
952
|
+
actionCheckCircle: SvgActionCheckCircle,
|
|
953
|
+
actionHelpDefault: SvgActionHelpDefault,
|
|
954
|
+
actionHelpOutline: SvgActionHelpOutline,
|
|
955
|
+
actionLaunch: SvgActionLaunch,
|
|
956
|
+
alertNotificationImportant: SvgAlertNotificationImportant,
|
|
1064
957
|
arrow: SvgArrow,
|
|
1065
958
|
check: SvgCheck,
|
|
1066
959
|
clock: SvgClock,
|
|
1067
960
|
close: SvgClose,
|
|
1068
961
|
download: SvgDownload,
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
962
|
+
errorFilled: SvgErrorFilled,
|
|
963
|
+
errorOutline: SvgErrorOutline,
|
|
964
|
+
fileTypeAudio: SvgFileTypeAudio,
|
|
965
|
+
fileTypeDoc: SvgFileTypeDoc,
|
|
966
|
+
fileTypeGenericDoc: SvgFileTypeGenericDoc,
|
|
967
|
+
fileTypeImage: SvgFileTypeImage,
|
|
968
|
+
fileTypePdf: SvgFileTypePdf,
|
|
969
|
+
fileTypeSpreadsheet: SvgFileTypeSpreadsheet,
|
|
970
|
+
fileTypeVideo: SvgFileTypeVideo,
|
|
1078
971
|
headset: SvgHeadset,
|
|
1079
972
|
minus: SvgMinus,
|
|
1080
973
|
plus: SvgPlus,
|
|
1081
974
|
search: SvgSearch,
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
975
|
+
speakerNotes: SvgSpeakerNotes,
|
|
976
|
+
utilityAccountFilled: SvgUtilityAccountFilled,
|
|
977
|
+
utilityAccountUnfilled: SvgUtilityAccountUnfilled,
|
|
978
|
+
utilityHamburger: SvgUtilityHamburger,
|
|
979
|
+
utilitySearch: SvgSearch
|
|
1087
980
|
};
|
|
1088
981
|
|
|
1089
|
-
var _excluded$t = ["
|
|
982
|
+
var _excluded$t = ["align", "children", "className", "color", "decorative", "iconRotation", "id", "name", "size", "title", "type"];
|
|
1090
983
|
/**
|
|
1091
984
|
* Renders SVG-based icons.
|
|
1092
985
|
*/
|
|
@@ -1094,26 +987,24 @@ var _excluded$t = ["additionalStyles", "align", "children", "className", "color"
|
|
|
1094
987
|
var Icon = /*#__PURE__*/react.chakra(function (props) {
|
|
1095
988
|
var _children$props, _children$props2;
|
|
1096
989
|
|
|
1097
|
-
var _props$
|
|
1098
|
-
|
|
1099
|
-
_props$align = props.align,
|
|
1100
|
-
align = _props$align === void 0 ? exports.IconAlign.None : _props$align,
|
|
990
|
+
var _props$align = props.align,
|
|
991
|
+
align = _props$align === void 0 ? "none" : _props$align,
|
|
1101
992
|
children = props.children,
|
|
1102
993
|
className = props.className,
|
|
1103
994
|
_props$color = props.color,
|
|
1104
|
-
color = _props$color === void 0 ?
|
|
995
|
+
color = _props$color === void 0 ? "ui.black" : _props$color,
|
|
1105
996
|
_props$decorative = props.decorative,
|
|
1106
997
|
decorative = _props$decorative === void 0 ? true : _props$decorative,
|
|
1107
998
|
_props$iconRotation = props.iconRotation,
|
|
1108
|
-
iconRotation = _props$iconRotation === void 0 ?
|
|
999
|
+
iconRotation = _props$iconRotation === void 0 ? "rotate0" : _props$iconRotation,
|
|
1109
1000
|
id = props.id,
|
|
1110
1001
|
name = props.name,
|
|
1111
1002
|
_props$size = props.size,
|
|
1112
|
-
size = _props$size === void 0 ?
|
|
1003
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
1113
1004
|
_props$title = props.title,
|
|
1114
1005
|
title = _props$title === void 0 ? name + " icon" : _props$title,
|
|
1115
1006
|
_props$type = props.type,
|
|
1116
|
-
type = _props$type === void 0 ?
|
|
1007
|
+
type = _props$type === void 0 ? "default" : _props$type,
|
|
1117
1008
|
rest = _objectWithoutPropertiesLoose(props, _excluded$t);
|
|
1118
1009
|
|
|
1119
1010
|
var styles = react.useStyleConfig("Icon", {
|
|
@@ -1150,7 +1041,7 @@ var Icon = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1150
1041
|
return React.createElement(react.Icon, Object.assign({
|
|
1151
1042
|
as: SvgComponent
|
|
1152
1043
|
}, iconProps, {
|
|
1153
|
-
__css:
|
|
1044
|
+
__css: styles
|
|
1154
1045
|
}));
|
|
1155
1046
|
} // If no `name` prop was passed, we expect a child SVG element to be passed.
|
|
1156
1047
|
// Apply icon props to the SVG child.
|
|
@@ -1162,11 +1053,11 @@ var Icon = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1162
1053
|
console.warn("NYPL Reservoir Icon: An `svg` element must be passed to the `Icon` " + "component as its child.");
|
|
1163
1054
|
}
|
|
1164
1055
|
|
|
1165
|
-
return React.createElement(react.Box,
|
|
1056
|
+
return React.createElement(react.Box, {
|
|
1166
1057
|
__css: styles
|
|
1167
|
-
},
|
|
1058
|
+
}, childSVG);
|
|
1168
1059
|
}, // Pass all custom props to Chakra and override, e.g. we want the
|
|
1169
|
-
// DS color
|
|
1060
|
+
// DS color value set and not color strings.
|
|
1170
1061
|
{
|
|
1171
1062
|
shouldForwardProp: function shouldForwardProp() {
|
|
1172
1063
|
return true;
|
|
@@ -1184,11 +1075,11 @@ var getIcon = function getIcon(isExpanded, index, id) {
|
|
|
1184
1075
|
isExpanded = false;
|
|
1185
1076
|
}
|
|
1186
1077
|
|
|
1187
|
-
var iconName = isExpanded ?
|
|
1078
|
+
var iconName = isExpanded ? "minus" : "plus";
|
|
1188
1079
|
return React.createElement(Icon, {
|
|
1189
1080
|
id: "accordion-" + id + "-icon-" + index,
|
|
1190
1081
|
name: iconName,
|
|
1191
|
-
size:
|
|
1082
|
+
size: "small"
|
|
1192
1083
|
});
|
|
1193
1084
|
};
|
|
1194
1085
|
/**
|
|
@@ -1199,16 +1090,20 @@ var getIcon = function getIcon(isExpanded, index, id) {
|
|
|
1199
1090
|
|
|
1200
1091
|
|
|
1201
1092
|
var getElementsFromData = function getElementsFromData(data, id) {
|
|
1202
|
-
var
|
|
1093
|
+
var _data;
|
|
1203
1094
|
|
|
1204
1095
|
if (data === void 0) {
|
|
1205
1096
|
data = [];
|
|
1206
1097
|
}
|
|
1207
1098
|
|
|
1208
|
-
var colorMap =
|
|
1099
|
+
var colorMap = {
|
|
1100
|
+
"default": "ui.white",
|
|
1101
|
+
warning: "ui.status.primary",
|
|
1102
|
+
error: "ui.status.secondary"
|
|
1103
|
+
}; // For FAQ-style multiple accordions, the button should be bigger.
|
|
1209
1104
|
// Otherwise, use the default.
|
|
1210
1105
|
|
|
1211
|
-
var multiplePadding = ((_data = data) == null ? void 0 : _data.length) > 1 ? 4 :
|
|
1106
|
+
var multiplePadding = ((_data = data) == null ? void 0 : _data.length) > 1 ? "4" : "initial";
|
|
1212
1107
|
return data.map(function (content, index) {
|
|
1213
1108
|
// This is done to support both string and DOM element input.
|
|
1214
1109
|
var panel = typeof content.panel === "string" ? React.createElement(react.AccordionPanel, {
|
|
@@ -1259,64 +1154,15 @@ var Accordion = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1259
1154
|
rest = _objectWithoutPropertiesLoose(props, _excluded$u); // Pass `0` to open the first accordion in the 0-index based array.
|
|
1260
1155
|
|
|
1261
1156
|
|
|
1262
|
-
var openFirstAccordion = isDefaultOpen ? 0 : undefined;
|
|
1157
|
+
var openFirstAccordion = isDefaultOpen ? [0] : undefined;
|
|
1263
1158
|
return React.createElement(react.Accordion, Object.assign({
|
|
1264
1159
|
id: id,
|
|
1265
|
-
defaultIndex:
|
|
1160
|
+
defaultIndex: openFirstAccordion,
|
|
1266
1161
|
allowMultiple: true
|
|
1267
1162
|
}, rest), getElementsFromData(accordionData, id));
|
|
1268
1163
|
});
|
|
1269
1164
|
|
|
1270
|
-
|
|
1271
|
-
BreadcrumbsTypes["Blogs"] = "blogs";
|
|
1272
|
-
BreadcrumbsTypes["BooksAndMore"] = "booksAndMore";
|
|
1273
|
-
BreadcrumbsTypes["Education"] = "education";
|
|
1274
|
-
BreadcrumbsTypes["Locations"] = "locations";
|
|
1275
|
-
BreadcrumbsTypes["Research"] = "research";
|
|
1276
|
-
BreadcrumbsTypes["WhatsOn"] = "whatsOn";
|
|
1277
|
-
})(exports.BreadcrumbsTypes || (exports.BreadcrumbsTypes = {}));
|
|
1278
|
-
|
|
1279
|
-
// Utility functions to use throughout the codebase
|
|
1280
|
-
|
|
1281
|
-
/**
|
|
1282
|
-
* range
|
|
1283
|
-
* Get an array of values from `start` to `stop` - 1 with an optional
|
|
1284
|
-
* `step` between values.
|
|
1285
|
-
*/
|
|
1286
|
-
var range = function range(start, stop, step) {
|
|
1287
|
-
if (step === void 0) {
|
|
1288
|
-
step = 1;
|
|
1289
|
-
}
|
|
1290
|
-
|
|
1291
|
-
if (!start) {
|
|
1292
|
-
return [];
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
return Array(Math.ceil((stop - start) / step)).fill(start).map(function (x, y) {
|
|
1296
|
-
return x + y * step;
|
|
1297
|
-
});
|
|
1298
|
-
};
|
|
1299
|
-
/**
|
|
1300
|
-
* Map an enum value to a component's Chakra theme variant object. If a wrong
|
|
1301
|
-
* value is passed (typically in non-Typescript scenarios), then the "fallback"
|
|
1302
|
-
* value, if provided, will be used.
|
|
1303
|
-
*/
|
|
1304
|
-
|
|
1305
|
-
var getVariant = function getVariant(variant, collection, fallback) {
|
|
1306
|
-
if (fallback === void 0) {
|
|
1307
|
-
fallback = null;
|
|
1308
|
-
}
|
|
1309
|
-
|
|
1310
|
-
var variantMap = {};
|
|
1311
|
-
|
|
1312
|
-
for (var type in collection) {
|
|
1313
|
-
variantMap[collection[type]] = collection[type];
|
|
1314
|
-
}
|
|
1315
|
-
|
|
1316
|
-
return variantMap[variant] || fallback;
|
|
1317
|
-
};
|
|
1318
|
-
|
|
1319
|
-
var _excluded$v = ["additionalStyles", "breadcrumbsData", "breadcrumbsType", "className", "id"];
|
|
1165
|
+
var _excluded$v = ["breadcrumbsData", "breadcrumbsType", "className", "id"];
|
|
1320
1166
|
|
|
1321
1167
|
var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
1322
1168
|
if (!(data != null && data.length)) {
|
|
@@ -1330,12 +1176,12 @@ var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
|
1330
1176
|
}, React.createElement(react.BreadcrumbLink, {
|
|
1331
1177
|
href: breadcrumbData.url
|
|
1332
1178
|
}, index === data.length - 2 && React.createElement(Icon, {
|
|
1333
|
-
name:
|
|
1334
|
-
size:
|
|
1335
|
-
iconRotation:
|
|
1179
|
+
name: "arrow",
|
|
1180
|
+
size: "small",
|
|
1181
|
+
iconRotation: "rotate90",
|
|
1336
1182
|
id: breadcrumbsID + "__backarrow",
|
|
1337
1183
|
className: "breadcrumbs-icon",
|
|
1338
|
-
type:
|
|
1184
|
+
type: "breadcrumbs"
|
|
1339
1185
|
}), React.createElement("span", {
|
|
1340
1186
|
className: "breadcrumb-label"
|
|
1341
1187
|
}, breadcrumbData.text)));
|
|
@@ -1344,54 +1190,37 @@ var getElementsFromData$1 = function getElementsFromData(data, breadcrumbsID) {
|
|
|
1344
1190
|
};
|
|
1345
1191
|
|
|
1346
1192
|
var Breadcrumbs = /*#__PURE__*/react.chakra(function (props) {
|
|
1347
|
-
var
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
breadcrumbsType = props.breadcrumbsType,
|
|
1193
|
+
var breadcrumbsData = props.breadcrumbsData,
|
|
1194
|
+
_props$breadcrumbsTyp = props.breadcrumbsType,
|
|
1195
|
+
breadcrumbsType = _props$breadcrumbsTyp === void 0 ? "whatsOn" : _props$breadcrumbsTyp,
|
|
1351
1196
|
className = props.className,
|
|
1352
1197
|
id = props.id,
|
|
1353
1198
|
rest = _objectWithoutPropertiesLoose(props, _excluded$v);
|
|
1354
1199
|
|
|
1355
|
-
var variant = getVariant(breadcrumbsType, exports.BreadcrumbsTypes);
|
|
1356
|
-
|
|
1357
1200
|
if (!breadcrumbsData || breadcrumbsData.length === 0) {
|
|
1358
1201
|
throw new Error("NYPL Reservoir Breadcrumbs: No data was passed to the `breadcrumbsData` prop.");
|
|
1359
1202
|
}
|
|
1360
1203
|
|
|
1361
1204
|
var styles = react.useStyleConfig("Breadcrumb", {
|
|
1362
|
-
variant:
|
|
1205
|
+
variant: breadcrumbsType
|
|
1363
1206
|
});
|
|
1364
|
-
|
|
1365
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
1366
|
-
|
|
1367
1207
|
var breadcrumbItems = getElementsFromData$1(breadcrumbsData, id);
|
|
1368
1208
|
return React.createElement(react.Breadcrumb, Object.assign({
|
|
1369
1209
|
"aria-label": "Breadcrumb",
|
|
1370
1210
|
className: className,
|
|
1371
1211
|
id: id,
|
|
1372
|
-
__css:
|
|
1212
|
+
__css: styles
|
|
1373
1213
|
}, rest), breadcrumbItems);
|
|
1374
1214
|
});
|
|
1375
1215
|
|
|
1376
|
-
|
|
1377
|
-
ButtonTypes["Primary"] = "primary";
|
|
1378
|
-
ButtonTypes["Secondary"] = "secondary";
|
|
1379
|
-
ButtonTypes["Callout"] = "callout";
|
|
1380
|
-
ButtonTypes["Pill"] = "pill";
|
|
1381
|
-
ButtonTypes["Link"] = "link";
|
|
1382
|
-
ButtonTypes["NoBrand"] = "noBrand";
|
|
1383
|
-
})(exports.ButtonTypes || (exports.ButtonTypes = {}));
|
|
1384
|
-
|
|
1385
|
-
var _excluded$w = ["additionalStyles", "attributes", "buttonType", "children", "className", "id", "isDisabled", "mouseDown", "onClick", "type"];
|
|
1216
|
+
var _excluded$w = ["buttonType", "children", "className", "id", "isDisabled", "mouseDown", "onClick", "type"];
|
|
1386
1217
|
/**
|
|
1387
1218
|
* Renders a simple `button` element with custom variant styles.
|
|
1388
1219
|
*/
|
|
1389
1220
|
|
|
1390
1221
|
var Button = /*#__PURE__*/react.chakra(function (props) {
|
|
1391
|
-
var _props$
|
|
1392
|
-
|
|
1393
|
-
attributes = props.attributes,
|
|
1394
|
-
buttonType = props.buttonType,
|
|
1222
|
+
var _props$buttonType = props.buttonType,
|
|
1223
|
+
buttonType = _props$buttonType === void 0 ? "primary" : _props$buttonType,
|
|
1395
1224
|
children = props.children,
|
|
1396
1225
|
_props$className = props.className,
|
|
1397
1226
|
className = _props$className === void 0 ? "" : _props$className,
|
|
@@ -1412,7 +1241,7 @@ var Button = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1412
1241
|
};
|
|
1413
1242
|
var childCount = 0;
|
|
1414
1243
|
var hasIcon = false;
|
|
1415
|
-
var variant;
|
|
1244
|
+
var variant = buttonType;
|
|
1416
1245
|
var styles = {};
|
|
1417
1246
|
|
|
1418
1247
|
if (!id) {
|
|
@@ -1423,7 +1252,9 @@ var Button = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1423
1252
|
childCount++;
|
|
1424
1253
|
|
|
1425
1254
|
if (child !== undefined && child !== null) {
|
|
1426
|
-
|
|
1255
|
+
var _child$props;
|
|
1256
|
+
|
|
1257
|
+
if (child.type === Icon || (child == null ? void 0 : (_child$props = child.props) == null ? void 0 : _child$props.mdxType) === "Icon") {
|
|
1427
1258
|
hasIcon = true;
|
|
1428
1259
|
}
|
|
1429
1260
|
}
|
|
@@ -1431,8 +1262,6 @@ var Button = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1431
1262
|
|
|
1432
1263
|
if (childCount === 1 && hasIcon) {
|
|
1433
1264
|
variant = "iconOnly";
|
|
1434
|
-
} else {
|
|
1435
|
-
variant = getVariant(buttonType, exports.ButtonTypes, exports.ButtonTypes.Primary);
|
|
1436
1265
|
}
|
|
1437
1266
|
|
|
1438
1267
|
styles = react.useStyleConfig("Button", {
|
|
@@ -1444,45 +1273,121 @@ var Button = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1444
1273
|
className: className,
|
|
1445
1274
|
type: type,
|
|
1446
1275
|
isDisabled: isDisabled
|
|
1447
|
-
},
|
|
1448
|
-
__css:
|
|
1276
|
+
}, btnCallback, {
|
|
1277
|
+
__css: styles
|
|
1449
1278
|
}, rest), children);
|
|
1450
1279
|
});
|
|
1451
1280
|
|
|
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
|
-
|
|
1281
|
+
/**
|
|
1282
|
+
* React hook used to get the window size on device resizing.
|
|
1283
|
+
* Based on https://usehooks-typescript.com/react-hook/use-window-size
|
|
1284
|
+
*/
|
|
1285
|
+
|
|
1286
|
+
function useWindowSize() {
|
|
1287
|
+
var _React$useState = React__default.useState({
|
|
1288
|
+
width: 0,
|
|
1289
|
+
height: 0
|
|
1290
|
+
}),
|
|
1291
|
+
windowSize = _React$useState[0],
|
|
1292
|
+
setWindowSize = _React$useState[1];
|
|
1293
|
+
|
|
1294
|
+
React__default.useEffect(function () {
|
|
1295
|
+
var handler = function handler() {
|
|
1296
|
+
setWindowSize({
|
|
1297
|
+
width: window.innerWidth,
|
|
1298
|
+
height: window.innerHeight
|
|
1299
|
+
});
|
|
1300
|
+
}; // Set size at the first client-side load
|
|
1301
|
+
|
|
1302
|
+
|
|
1303
|
+
handler();
|
|
1304
|
+
window.addEventListener("resize", handler); // Remove event listener on cleanup
|
|
1305
|
+
|
|
1306
|
+
return function () {
|
|
1307
|
+
window.removeEventListener("resize", handler);
|
|
1308
|
+
};
|
|
1309
|
+
}, []);
|
|
1310
|
+
return windowSize;
|
|
1311
|
+
}
|
|
1312
|
+
|
|
1313
|
+
var _excluded$x = ["buttonWidth", "children", "className", "id", "isDisabled", "layout"];
|
|
1314
|
+
/**
|
|
1315
|
+
* A simple wrapper to group `Button` components together. The layout can be set
|
|
1316
|
+
* to row or column and the width of internal `Button` components can be set to
|
|
1317
|
+
* the parent's full width or the `Button`'s content width
|
|
1318
|
+
*/
|
|
1319
|
+
|
|
1320
|
+
|
|
1321
|
+
var ButtonGroup = /*#__PURE__*/react.chakra(function (props) {
|
|
1322
|
+
var _props$buttonWidth = props.buttonWidth,
|
|
1323
|
+
buttonWidth = _props$buttonWidth === void 0 ? "default" : _props$buttonWidth,
|
|
1324
|
+
children = props.children,
|
|
1325
|
+
_props$className = props.className,
|
|
1326
|
+
className = _props$className === void 0 ? "" : _props$className,
|
|
1327
|
+
id = props.id,
|
|
1328
|
+
_props$isDisabled = props.isDisabled,
|
|
1329
|
+
isDisabled = _props$isDisabled === void 0 ? false : _props$isDisabled,
|
|
1330
|
+
_props$layout = props.layout,
|
|
1331
|
+
layout = _props$layout === void 0 ? "row" : _props$layout,
|
|
1332
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$x);
|
|
1333
|
+
|
|
1334
|
+
var newChildren = []; // Based on --nypl-breakpoint-medium
|
|
1335
|
+
|
|
1336
|
+
var breakpointMedium = 600;
|
|
1337
|
+
|
|
1338
|
+
var _React$useState = React.useState(layout),
|
|
1339
|
+
finalLayout = _React$useState[0],
|
|
1340
|
+
setFinalLayout = _React$useState[1];
|
|
1341
|
+
|
|
1342
|
+
var _React$useState2 = React.useState(buttonWidth),
|
|
1343
|
+
finalButtonWidth = _React$useState2[0],
|
|
1344
|
+
setFinalButtonWidth = _React$useState2[1];
|
|
1345
|
+
|
|
1346
|
+
var windowDimensions = useWindowSize();
|
|
1347
|
+
React.useEffect(function () {
|
|
1348
|
+
// When on a mobile device or narrow window, always set the layout to
|
|
1349
|
+
// column and the button width to "full".
|
|
1350
|
+
if (windowDimensions.width <= breakpointMedium) {
|
|
1351
|
+
setFinalButtonWidth("full");
|
|
1352
|
+
setFinalLayout("column");
|
|
1353
|
+
} else {
|
|
1354
|
+
// Otherwise, set the layout and button width to the values
|
|
1355
|
+
// passed in via the `buttonWidth` and `layout` props.
|
|
1356
|
+
setFinalButtonWidth(buttonWidth);
|
|
1357
|
+
setFinalLayout(layout);
|
|
1358
|
+
}
|
|
1359
|
+
}, [buttonWidth, layout, windowDimensions.width]);
|
|
1360
|
+
var styles = react.useStyleConfig("ButtonGroup", {
|
|
1361
|
+
buttonWidth: finalButtonWidth
|
|
1362
|
+
});
|
|
1363
|
+
React.Children.map(children, function (child, key) {
|
|
1364
|
+
if (child.type !== Button) {
|
|
1365
|
+
// Special case for Storybook MDX documentation.
|
|
1366
|
+
if (child.props.mdxType && child.props.mdxType === "Button") ; else {
|
|
1367
|
+
console.warn("NYPL Reservoir ButtonGroup: Only Button components can be children of ButtonGroup.");
|
|
1368
|
+
return;
|
|
1369
|
+
}
|
|
1370
|
+
}
|
|
1371
|
+
|
|
1372
|
+
newChildren.push(React.cloneElement(child, {
|
|
1373
|
+
key: key,
|
|
1374
|
+
isDisabled: isDisabled
|
|
1375
|
+
}));
|
|
1376
|
+
});
|
|
1377
|
+
return React.createElement(react.Stack, Object.assign({
|
|
1378
|
+
id: id,
|
|
1379
|
+
className: className,
|
|
1380
|
+
direction: finalLayout,
|
|
1381
|
+
// Always set the spacing to "8px".
|
|
1382
|
+
spacing: "xs",
|
|
1383
|
+
sx: styles
|
|
1384
|
+
}, rest), newChildren);
|
|
1385
|
+
});
|
|
1386
|
+
|
|
1387
|
+
var _excluded$y = ["children", "className", "href", "id", "type"];
|
|
1483
1388
|
/**
|
|
1484
1389
|
* Renders the `Link` children components with a direction arrow icon based
|
|
1485
|
-
* on the `
|
|
1390
|
+
* on the `"backwards"` or `"forwards"` `linkType` value.
|
|
1486
1391
|
*/
|
|
1487
1392
|
|
|
1488
1393
|
function getWithDirectionIcon(children, type, linkId) {
|
|
@@ -1491,12 +1396,12 @@ function getWithDirectionIcon(children, type, linkId) {
|
|
|
1491
1396
|
var icon = null; // An icon needs a position in order for it to be created and
|
|
1492
1397
|
// rendered in the link.
|
|
1493
1398
|
|
|
1494
|
-
if (type ===
|
|
1495
|
-
iconRotation =
|
|
1496
|
-
iconAlign =
|
|
1497
|
-
} else if (type ===
|
|
1498
|
-
iconRotation =
|
|
1499
|
-
iconAlign =
|
|
1399
|
+
if (type === "backwards") {
|
|
1400
|
+
iconRotation = "rotate90";
|
|
1401
|
+
iconAlign = "left";
|
|
1402
|
+
} else if (type === "forwards") {
|
|
1403
|
+
iconRotation = "rotate270";
|
|
1404
|
+
iconAlign = "right";
|
|
1500
1405
|
}
|
|
1501
1406
|
|
|
1502
1407
|
var iconId = linkId + "-icon";
|
|
@@ -1505,20 +1410,20 @@ function getWithDirectionIcon(children, type, linkId) {
|
|
|
1505
1410
|
className: "more-link",
|
|
1506
1411
|
iconRotation: iconRotation,
|
|
1507
1412
|
id: iconId,
|
|
1508
|
-
name:
|
|
1509
|
-
size:
|
|
1413
|
+
name: "arrow",
|
|
1414
|
+
size: "medium"
|
|
1510
1415
|
});
|
|
1511
|
-
return React.createElement(React.Fragment, null, type ===
|
|
1416
|
+
return React.createElement(React.Fragment, null, type === "backwards" && icon, children, type === "forwards" && icon);
|
|
1512
1417
|
}
|
|
1513
1418
|
|
|
1514
1419
|
function getExternalIcon(children, linkId) {
|
|
1515
1420
|
var iconId = linkId + "-icon";
|
|
1516
1421
|
var icon = React.createElement(Icon, {
|
|
1517
|
-
align:
|
|
1422
|
+
align: "right",
|
|
1518
1423
|
className: "more-link",
|
|
1519
1424
|
id: iconId,
|
|
1520
|
-
name:
|
|
1521
|
-
size:
|
|
1425
|
+
name: "actionLaunch",
|
|
1426
|
+
size: "medium"
|
|
1522
1427
|
});
|
|
1523
1428
|
return React.createElement(React.Fragment, null, children, icon);
|
|
1524
1429
|
}
|
|
@@ -1529,23 +1434,20 @@ function getExternalIcon(children, linkId) {
|
|
|
1529
1434
|
|
|
1530
1435
|
|
|
1531
1436
|
var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
1532
|
-
var
|
|
1533
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
1534
|
-
attributes = props.attributes,
|
|
1535
|
-
children = props.children,
|
|
1437
|
+
var children = props.children,
|
|
1536
1438
|
className = props.className,
|
|
1537
1439
|
href = props.href,
|
|
1538
1440
|
id = props.id,
|
|
1539
1441
|
_props$type = props.type,
|
|
1540
|
-
type = _props$type === void 0 ?
|
|
1541
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1442
|
+
type = _props$type === void 0 ? "default" : _props$type,
|
|
1443
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$y); // Merge the necessary props alongside any extra props for the
|
|
1542
1444
|
// anchor element.
|
|
1543
1445
|
|
|
1544
1446
|
|
|
1545
1447
|
var linkProps = _extends({
|
|
1546
1448
|
id: id,
|
|
1547
1449
|
href: href
|
|
1548
|
-
},
|
|
1450
|
+
}, rest); // The "default" type.
|
|
1549
1451
|
|
|
1550
1452
|
|
|
1551
1453
|
var variant = "link";
|
|
@@ -1554,21 +1456,21 @@ var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
1554
1456
|
throw new Error("`Link` needs the `href` prop.");
|
|
1555
1457
|
}
|
|
1556
1458
|
|
|
1557
|
-
if (type ===
|
|
1459
|
+
if (type === "action" || type === "forwards" || type === "backwards" || type === "external") {
|
|
1558
1460
|
variant = "moreLink";
|
|
1559
|
-
} else if (type ===
|
|
1461
|
+
} else if (type === "button") {
|
|
1560
1462
|
variant = "button";
|
|
1561
1463
|
}
|
|
1562
1464
|
|
|
1563
1465
|
var style = react.useStyleConfig("Link", {
|
|
1564
1466
|
variant: variant
|
|
1565
|
-
});
|
|
1467
|
+
});
|
|
1468
|
+
var rel = type === "external" ? "nofollow" : null;
|
|
1469
|
+
var target = type === "external" ? "_blank" : null; // Render with specific direction arrows if the type is
|
|
1566
1470
|
// Forwards or Backwards. Or render with the launch icon
|
|
1567
1471
|
// if the type is External. Otherwise, do not add an icon.
|
|
1568
1472
|
|
|
1569
|
-
var newChildren = (type ===
|
|
1570
|
-
var rel = type === exports.LinkTypes.External ? "nofollow" : null;
|
|
1571
|
-
var target = type === exports.LinkTypes.External ? "_blank" : null;
|
|
1473
|
+
var newChildren = (type === "forwards" || type === "backwards") && getWithDirectionIcon(children, type, id) || type === "external" && getExternalIcon(children, id) || children;
|
|
1572
1474
|
|
|
1573
1475
|
if (!href) {
|
|
1574
1476
|
// React Types error makes this fail:
|
|
@@ -1580,18 +1482,15 @@ var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
1580
1482
|
|
|
1581
1483
|
var childrenToClone = children[0] ? children[0] : children;
|
|
1582
1484
|
var childProps = childrenToClone.props;
|
|
1583
|
-
return React.createElement(react.Box,
|
|
1485
|
+
return React.createElement(react.Box, {
|
|
1584
1486
|
as: "span",
|
|
1585
1487
|
__css: style
|
|
1586
|
-
},
|
|
1488
|
+
}, React.cloneElement(childrenToClone, _extends({
|
|
1587
1489
|
className: className
|
|
1588
1490
|
}, linkProps, childProps, {
|
|
1589
1491
|
ref: ref,
|
|
1590
1492
|
rel: rel,
|
|
1591
|
-
target: target
|
|
1592
|
-
// Useful if more styles are needed for the custom
|
|
1593
|
-
// anchor element or link component.
|
|
1594
|
-
style: additionalStyles
|
|
1493
|
+
target: target
|
|
1595
1494
|
}), [childrenToClone.props.children]));
|
|
1596
1495
|
} else {
|
|
1597
1496
|
return React.createElement(react.Box, Object.assign({
|
|
@@ -1601,17 +1500,17 @@ var Link = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (pr
|
|
|
1601
1500
|
rel: rel,
|
|
1602
1501
|
target: target
|
|
1603
1502
|
}, linkProps, {
|
|
1604
|
-
__css:
|
|
1605
|
-
}
|
|
1503
|
+
__css: style
|
|
1504
|
+
}), newChildren);
|
|
1606
1505
|
}
|
|
1607
1506
|
}));
|
|
1608
1507
|
|
|
1609
|
-
var _excluded$
|
|
1508
|
+
var _excluded$z = ["className", "id", "level", "size", "text", "url", "urlClass"];
|
|
1610
1509
|
/** Map the word heading level to the number heading level. The default is 2. */
|
|
1611
1510
|
|
|
1612
1511
|
var getMappedLevel = function getMappedLevel(level) {
|
|
1613
1512
|
if (level === void 0) {
|
|
1614
|
-
level =
|
|
1513
|
+
level = "two";
|
|
1615
1514
|
}
|
|
1616
1515
|
|
|
1617
1516
|
var levelMap = {
|
|
@@ -1626,27 +1525,23 @@ var getMappedLevel = function getMappedLevel(level) {
|
|
|
1626
1525
|
};
|
|
1627
1526
|
|
|
1628
1527
|
var Heading = /*#__PURE__*/react.chakra(function (props) {
|
|
1629
|
-
var
|
|
1630
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
1631
|
-
className = props.className,
|
|
1528
|
+
var className = props.className,
|
|
1632
1529
|
id = props.id,
|
|
1633
1530
|
_props$level = props.level,
|
|
1634
|
-
level = _props$level === void 0 ?
|
|
1531
|
+
level = _props$level === void 0 ? "two" : _props$level,
|
|
1635
1532
|
size = props.size,
|
|
1636
1533
|
text = props.text,
|
|
1637
1534
|
url = props.url,
|
|
1638
1535
|
urlClass = props.urlClass,
|
|
1639
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1536
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$z);
|
|
1640
1537
|
|
|
1641
1538
|
var finalLevel = getMappedLevel(level);
|
|
1642
|
-
var variant = size ?
|
|
1539
|
+
var variant = size ? size : "h" + finalLevel;
|
|
1643
1540
|
var styles = react.useStyleConfig("Heading", {
|
|
1644
1541
|
variant: variant
|
|
1645
1542
|
}); // Combine native base styles with any additional styles.
|
|
1646
1543
|
// This is used in the `Hero` and `Notification` components.
|
|
1647
1544
|
|
|
1648
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
1649
|
-
|
|
1650
1545
|
var asHeading = "h" + finalLevel;
|
|
1651
1546
|
|
|
1652
1547
|
if (!props.children && !text) {
|
|
@@ -1668,36 +1563,11 @@ var Heading = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1668
1563
|
as: asHeading,
|
|
1669
1564
|
className: className,
|
|
1670
1565
|
id: id,
|
|
1671
|
-
sx:
|
|
1566
|
+
sx: styles
|
|
1672
1567
|
}, rest), content);
|
|
1673
1568
|
});
|
|
1674
1569
|
|
|
1675
|
-
|
|
1676
|
-
ImageRatios["FourByThree"] = "fourByThree";
|
|
1677
|
-
ImageRatios["OneByTwo"] = "oneByTwo";
|
|
1678
|
-
ImageRatios["Original"] = "original";
|
|
1679
|
-
ImageRatios["SixteenByNine"] = "sixteenByNine";
|
|
1680
|
-
ImageRatios["Square"] = "square";
|
|
1681
|
-
ImageRatios["ThreeByFour"] = "threeByFour";
|
|
1682
|
-
ImageRatios["ThreeByTwo"] = "threeByTwo";
|
|
1683
|
-
ImageRatios["TwoByOne"] = "twoByOne";
|
|
1684
|
-
})(exports.ImageRatios || (exports.ImageRatios = {}));
|
|
1685
|
-
|
|
1686
|
-
(function (ImageSizes) {
|
|
1687
|
-
ImageSizes["Default"] = "default";
|
|
1688
|
-
ImageSizes["ExtraExtraSmall"] = "xxsmall";
|
|
1689
|
-
ImageSizes["ExtraSmall"] = "xsmall";
|
|
1690
|
-
ImageSizes["Small"] = "small";
|
|
1691
|
-
ImageSizes["Medium"] = "medium";
|
|
1692
|
-
ImageSizes["Large"] = "large";
|
|
1693
|
-
})(exports.ImageSizes || (exports.ImageSizes = {}));
|
|
1694
|
-
|
|
1695
|
-
(function (ImageTypes) {
|
|
1696
|
-
ImageTypes["Default"] = "default";
|
|
1697
|
-
ImageTypes["Circle"] = "circle";
|
|
1698
|
-
})(exports.ImageTypes || (exports.ImageTypes = {}));
|
|
1699
|
-
|
|
1700
|
-
var _excluded$z = ["additionalWrapperStyles", "className", "children", "aspectRatio", "size"],
|
|
1570
|
+
var _excluded$A = ["additionalWrapperStyles", "className", "children", "aspectRatio", "size"],
|
|
1701
1571
|
_excluded2 = ["additionalFigureStyles", "additionalImageStyles", "additionalWrapperStyles", "alt", "aspectRatio", "caption", "className", "component", "credit", "imageType", "size", "src"];
|
|
1702
1572
|
var ImageWrapper = /*#__PURE__*/react.chakra(function (props) {
|
|
1703
1573
|
var _props$additionalWrap = props.additionalWrapperStyles,
|
|
@@ -1706,10 +1576,10 @@ var ImageWrapper = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1706
1576
|
className = _props$className === void 0 ? "" : _props$className,
|
|
1707
1577
|
children = props.children,
|
|
1708
1578
|
_props$aspectRatio = props.aspectRatio,
|
|
1709
|
-
aspectRatio = _props$aspectRatio === void 0 ?
|
|
1579
|
+
aspectRatio = _props$aspectRatio === void 0 ? "original" : _props$aspectRatio,
|
|
1710
1580
|
_props$size = props.size,
|
|
1711
|
-
size = _props$size === void 0 ?
|
|
1712
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1581
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
1582
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$A);
|
|
1713
1583
|
|
|
1714
1584
|
var styles = react.useMultiStyleConfig("CustomImageWrapper", {
|
|
1715
1585
|
ratio: aspectRatio,
|
|
@@ -1732,20 +1602,20 @@ var Image = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1732
1602
|
additionalWrapperStyles = _props$additionalWrap2 === void 0 ? {} : _props$additionalWrap2,
|
|
1733
1603
|
alt = props.alt,
|
|
1734
1604
|
_props$aspectRatio2 = props.aspectRatio,
|
|
1735
|
-
aspectRatio = _props$aspectRatio2 === void 0 ?
|
|
1605
|
+
aspectRatio = _props$aspectRatio2 === void 0 ? "original" : _props$aspectRatio2,
|
|
1736
1606
|
caption = props.caption,
|
|
1737
1607
|
_props$className2 = props.className,
|
|
1738
1608
|
className = _props$className2 === void 0 ? "" : _props$className2,
|
|
1739
1609
|
component = props.component,
|
|
1740
1610
|
credit = props.credit,
|
|
1741
1611
|
_props$imageType = props.imageType,
|
|
1742
|
-
imageType = _props$imageType === void 0 ?
|
|
1612
|
+
imageType = _props$imageType === void 0 ? "default" : _props$imageType,
|
|
1743
1613
|
_props$size2 = props.size,
|
|
1744
|
-
size = _props$size2 === void 0 ?
|
|
1614
|
+
size = _props$size2 === void 0 ? "default" : _props$size2,
|
|
1745
1615
|
src = props.src,
|
|
1746
1616
|
rest = _objectWithoutPropertiesLoose(props, _excluded2);
|
|
1747
1617
|
|
|
1748
|
-
var useImageWrapper = aspectRatio !==
|
|
1618
|
+
var useImageWrapper = aspectRatio !== "original";
|
|
1749
1619
|
var styles = react.useMultiStyleConfig("CustomImage", {
|
|
1750
1620
|
variant: imageType,
|
|
1751
1621
|
size: size
|
|
@@ -1780,39 +1650,7 @@ var Image = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1780
1650
|
}, credit))) : finalImage;
|
|
1781
1651
|
});
|
|
1782
1652
|
|
|
1783
|
-
|
|
1784
|
-
* React hook used to get the window size on device resizing.
|
|
1785
|
-
* Based on https://usehooks-typescript.com/react-hook/use-window-size
|
|
1786
|
-
*/
|
|
1787
|
-
|
|
1788
|
-
function useWindowSize() {
|
|
1789
|
-
var _React$useState = React__default.useState({
|
|
1790
|
-
width: 0,
|
|
1791
|
-
height: 0
|
|
1792
|
-
}),
|
|
1793
|
-
windowSize = _React$useState[0],
|
|
1794
|
-
setWindowSize = _React$useState[1];
|
|
1795
|
-
|
|
1796
|
-
React__default.useEffect(function () {
|
|
1797
|
-
var handler = function handler() {
|
|
1798
|
-
setWindowSize({
|
|
1799
|
-
width: window.innerWidth,
|
|
1800
|
-
height: window.innerHeight
|
|
1801
|
-
});
|
|
1802
|
-
}; // Set size at the first client-side load
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
handler();
|
|
1806
|
-
window.addEventListener("resize", handler); // Remove event listener on cleanup
|
|
1807
|
-
|
|
1808
|
-
return function () {
|
|
1809
|
-
window.removeEventListener("resize", handler);
|
|
1810
|
-
};
|
|
1811
|
-
}, []);
|
|
1812
|
-
return windowSize;
|
|
1813
|
-
}
|
|
1814
|
-
|
|
1815
|
-
var _excluded$A = ["children"],
|
|
1653
|
+
var _excluded$B = ["children"],
|
|
1816
1654
|
_excluded2$1 = ["bottomBorder", "children", "isCentered", "layout", "topBorder"],
|
|
1817
1655
|
_excluded3 = ["backgroundColor", "children", "className", "foregroundColor", "id", "imageProps", "isAlignedRightActions", "isBordered", "isCentered", "layout", "mainActionLink"];
|
|
1818
1656
|
/**
|
|
@@ -1857,12 +1695,12 @@ var CardHeading = /*#__PURE__*/react.chakra(Heading); // CardContent child-compo
|
|
|
1857
1695
|
|
|
1858
1696
|
var CardContent = /*#__PURE__*/react.chakra(function (props) {
|
|
1859
1697
|
var children = props.children,
|
|
1860
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1698
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$B);
|
|
1861
1699
|
|
|
1862
1700
|
var styles = react.useStyleConfig("CardContent");
|
|
1863
|
-
return children
|
|
1701
|
+
return children ? React.createElement(react.Box, Object.assign({
|
|
1864
1702
|
__css: styles
|
|
1865
|
-
}, rest), children);
|
|
1703
|
+
}, rest), children) : null;
|
|
1866
1704
|
}); // CardActions child-component
|
|
1867
1705
|
|
|
1868
1706
|
var CardActions = /*#__PURE__*/react.chakra(function (props) {
|
|
@@ -1879,9 +1717,9 @@ var CardActions = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1879
1717
|
layout: layout,
|
|
1880
1718
|
topBorder: topBorder
|
|
1881
1719
|
});
|
|
1882
|
-
return children
|
|
1720
|
+
return children ? React.createElement(react.Box, Object.assign({
|
|
1883
1721
|
__css: styles
|
|
1884
|
-
}, rest), children);
|
|
1722
|
+
}, rest), children) : null;
|
|
1885
1723
|
});
|
|
1886
1724
|
/**
|
|
1887
1725
|
* If `mainActionLink` is passed, then this adds Chakra's `LinkBox` wrapper
|
|
@@ -1920,12 +1758,12 @@ var Card = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1920
1758
|
_props$imageProps = props.imageProps,
|
|
1921
1759
|
imageProps = _props$imageProps === void 0 ? {
|
|
1922
1760
|
alt: "",
|
|
1923
|
-
aspectRatio:
|
|
1761
|
+
aspectRatio: "square",
|
|
1924
1762
|
caption: undefined,
|
|
1925
1763
|
component: undefined,
|
|
1926
1764
|
credit: undefined,
|
|
1927
1765
|
isAtEnd: false,
|
|
1928
|
-
size:
|
|
1766
|
+
size: "default",
|
|
1929
1767
|
src: ""
|
|
1930
1768
|
} : _props$imageProps,
|
|
1931
1769
|
_props$isAlignedRight = props.isAlignedRightActions,
|
|
@@ -1934,34 +1772,34 @@ var Card = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1934
1772
|
_props$isCentered = props.isCentered,
|
|
1935
1773
|
isCentered = _props$isCentered === void 0 ? false : _props$isCentered,
|
|
1936
1774
|
_props$layout = props.layout,
|
|
1937
|
-
layout = _props$layout === void 0 ?
|
|
1775
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
1938
1776
|
mainActionLink = props.mainActionLink,
|
|
1939
1777
|
rest = _objectWithoutPropertiesLoose(props, _excluded3);
|
|
1940
1778
|
|
|
1941
1779
|
var hasImage = imageProps.src || imageProps.component;
|
|
1942
1780
|
|
|
1943
|
-
var _React$useState = React.useState(imageProps.size),
|
|
1781
|
+
var _React$useState = React.useState(imageProps.size || "default"),
|
|
1944
1782
|
finalImageSize = _React$useState[0],
|
|
1945
1783
|
setFinalImageSize = _React$useState[1];
|
|
1946
1784
|
|
|
1947
|
-
var finalImageAspectRatio = imageProps.component ?
|
|
1785
|
+
var finalImageAspectRatio = imageProps.component ? "original" : imageProps.aspectRatio;
|
|
1948
1786
|
var customColors = {};
|
|
1949
1787
|
var cardContents = [];
|
|
1950
1788
|
var cardRightContents = [];
|
|
1951
1789
|
var windowDimensions = useWindowSize();
|
|
1952
1790
|
var cardHeadingCount = 0;
|
|
1953
1791
|
|
|
1954
|
-
if (imageProps.component && imageProps.aspectRatio !==
|
|
1792
|
+
if (imageProps.component && imageProps.aspectRatio !== "square") {
|
|
1955
1793
|
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.");
|
|
1956
1794
|
} // The `Card`'s image should always display as 100% width on mobile. To
|
|
1957
|
-
// achieve this, we set the size to `
|
|
1795
|
+
// achieve this, we set the size to `"default"` only when the
|
|
1958
1796
|
// viewport is less than "600px". Otherwise, we set the size to
|
|
1959
1797
|
// the value passed in via `imageSize`.
|
|
1960
1798
|
|
|
1961
1799
|
|
|
1962
1800
|
React.useEffect(function () {
|
|
1963
1801
|
if (windowDimensions.width < 600) {
|
|
1964
|
-
setFinalImageSize(
|
|
1802
|
+
setFinalImageSize("default");
|
|
1965
1803
|
} else {
|
|
1966
1804
|
setFinalImageSize(imageProps.size);
|
|
1967
1805
|
}
|
|
@@ -1989,11 +1827,11 @@ var Card = /*#__PURE__*/react.chakra(function (props) {
|
|
|
1989
1827
|
mainActionLink: mainActionLink
|
|
1990
1828
|
}, child.props.children) : child.props.children;
|
|
1991
1829
|
var elem = React.cloneElement(child, {
|
|
1992
|
-
additionalStyles: _extends({}, styles.heading, child.props.additionalStyles),
|
|
1993
1830
|
key: key,
|
|
1994
1831
|
// Override the child text with the potential `CardLinkOverlay`.
|
|
1995
1832
|
children: newChildren,
|
|
1996
|
-
layout: layout
|
|
1833
|
+
layout: layout,
|
|
1834
|
+
__css: styles.heading
|
|
1997
1835
|
});
|
|
1998
1836
|
cardContents.push(elem);
|
|
1999
1837
|
cardHeadingCount++;
|
|
@@ -2012,7 +1850,7 @@ var Card = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2012
1850
|
// `CardContent` component when in the row layout.
|
|
2013
1851
|
|
|
2014
1852
|
|
|
2015
|
-
if (isAlignedRightActions && layout ===
|
|
1853
|
+
if (isAlignedRightActions && layout === "row") {
|
|
2016
1854
|
cardRightContents.push(_elem2);
|
|
2017
1855
|
} else {
|
|
2018
1856
|
cardContents.push(_elem2);
|
|
@@ -2044,15 +1882,13 @@ var Card = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2044
1882
|
}, cardRightContents) : null));
|
|
2045
1883
|
});
|
|
2046
1884
|
|
|
2047
|
-
var _excluded$
|
|
1885
|
+
var _excluded$C = ["ariaAtomic", "ariaLive", "className", "id", "isInvalid", "text"];
|
|
2048
1886
|
/**
|
|
2049
1887
|
* Helper or error text for forms components.
|
|
2050
1888
|
*/
|
|
2051
1889
|
|
|
2052
1890
|
var HelperErrorText = /*#__PURE__*/react.chakra(function (_ref) {
|
|
2053
|
-
var _ref$
|
|
2054
|
-
additionalStyles = _ref$additionalStyles === void 0 ? {} : _ref$additionalStyles,
|
|
2055
|
-
_ref$ariaAtomic = _ref.ariaAtomic,
|
|
1891
|
+
var _ref$ariaAtomic = _ref.ariaAtomic,
|
|
2056
1892
|
ariaAtomic = _ref$ariaAtomic === void 0 ? true : _ref$ariaAtomic,
|
|
2057
1893
|
_ref$ariaLive = _ref.ariaLive,
|
|
2058
1894
|
ariaLive = _ref$ariaLive === void 0 ? "polite" : _ref$ariaLive,
|
|
@@ -2062,7 +1898,7 @@ var HelperErrorText = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
2062
1898
|
_ref$isInvalid = _ref.isInvalid,
|
|
2063
1899
|
isInvalid = _ref$isInvalid === void 0 ? false : _ref$isInvalid,
|
|
2064
1900
|
text = _ref.text,
|
|
2065
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
1901
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$C);
|
|
2066
1902
|
|
|
2067
1903
|
// Only announce the text in the invalid state.
|
|
2068
1904
|
var announceAriaLive = isInvalid;
|
|
@@ -2070,15 +1906,13 @@ var HelperErrorText = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
2070
1906
|
isInvalid: isInvalid
|
|
2071
1907
|
});
|
|
2072
1908
|
|
|
2073
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
2074
|
-
|
|
2075
1909
|
var props = _extends({
|
|
2076
1910
|
"aria-atomic": ariaAtomic,
|
|
2077
1911
|
"aria-live": announceAriaLive ? ariaLive : "off",
|
|
2078
1912
|
className: className,
|
|
2079
1913
|
"data-isinvalid": isInvalid,
|
|
2080
1914
|
id: id,
|
|
2081
|
-
__css:
|
|
1915
|
+
__css: styles
|
|
2082
1916
|
}, rest);
|
|
2083
1917
|
|
|
2084
1918
|
return typeof text === "string" ? React.createElement(react.Box, Object.assign({}, props, {
|
|
@@ -2088,7 +1922,7 @@ var HelperErrorText = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
2088
1922
|
})) : React.createElement(react.Box, Object.assign({}, props), text);
|
|
2089
1923
|
});
|
|
2090
1924
|
|
|
2091
|
-
var _excluded$
|
|
1925
|
+
var _excluded$D = ["isIndeterminate", "isChecked"],
|
|
2092
1926
|
_excluded2$2 = ["className", "invalidText", "helperText", "id", "isChecked", "isDisabled", "isIndeterminate", "isInvalid", "isRequired", "labelText", "name", "showHelperInvalidText", "showLabel", "value"];
|
|
2093
1927
|
var onChangeDefault = function onChangeDefault() {
|
|
2094
1928
|
return;
|
|
@@ -2098,7 +1932,7 @@ function CheckboxIcon(props) {
|
|
|
2098
1932
|
// We don't need the `isIndeterminate` or `isChecked` props but it
|
|
2099
1933
|
// causes rendering issues on the SVG element, so we remove them
|
|
2100
1934
|
// before passing all the props to the `Icon` component.
|
|
2101
|
-
var rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
1935
|
+
var rest = _objectWithoutPropertiesLoose(props, _excluded$D);
|
|
2102
1936
|
|
|
2103
1937
|
return React.createElement(react.Icon, Object.assign({
|
|
2104
1938
|
viewBox: "0 0 24 24"
|
|
@@ -2172,14 +2006,14 @@ var Checkbox = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
2172
2006
|
alignItems: "flex-start",
|
|
2173
2007
|
__css: styles
|
|
2174
2008
|
}, ariaAttributes, rest), showLabel && labelText), footnote && showHelperInvalidText && React.createElement(HelperErrorText, {
|
|
2175
|
-
additionalStyles: styles.helperErrorText,
|
|
2176
2009
|
id: id + "-helperText",
|
|
2177
2010
|
isInvalid: isInvalid,
|
|
2178
|
-
text: footnote
|
|
2011
|
+
text: footnote,
|
|
2012
|
+
__css: styles.helperErrorText
|
|
2179
2013
|
}));
|
|
2180
2014
|
}));
|
|
2181
2015
|
|
|
2182
|
-
var _excluded$
|
|
2016
|
+
var _excluded$E = ["children", "className", "id", "isLegendHidden", "isRequired", "legendText", "showRequiredLabel"];
|
|
2183
2017
|
/**
|
|
2184
2018
|
* A wrapper component that renders a `fieldset` element along with a `legend`
|
|
2185
2019
|
* element as its first child. Commonly used to wrap form components.
|
|
@@ -2196,7 +2030,7 @@ var Fieldset = /*#__PURE__*/react.chakra(function (_ref) {
|
|
|
2196
2030
|
legendText = _ref.legendText,
|
|
2197
2031
|
_ref$showRequiredLabe = _ref.showRequiredLabel,
|
|
2198
2032
|
showRequiredLabel = _ref$showRequiredLabe === void 0 ? true : _ref$showRequiredLabe,
|
|
2199
|
-
rest = _objectWithoutPropertiesLoose(_ref, _excluded$
|
|
2033
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$E);
|
|
2200
2034
|
|
|
2201
2035
|
var styles = react.useMultiStyleConfig("Fieldset", {
|
|
2202
2036
|
isLegendHidden: isLegendHidden
|
|
@@ -2348,7 +2182,7 @@ var reservoirSpacingTokens = {
|
|
|
2348
2182
|
};
|
|
2349
2183
|
var spacing = /*#__PURE__*/_extends({}, chakraSpacingTokens, reservoirSpacingTokens);
|
|
2350
2184
|
|
|
2351
|
-
var _excluded$
|
|
2185
|
+
var _excluded$F = ["children", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
|
|
2352
2186
|
/**
|
|
2353
2187
|
* Wrapper component to wrap `Checkbox` components. Can be displayed in a
|
|
2354
2188
|
* column or in a row. The `CheckboxGroup` component renders all the necessary
|
|
@@ -2374,7 +2208,7 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
2374
2208
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
2375
2209
|
labelText = props.labelText,
|
|
2376
2210
|
_props$layout = props.layout,
|
|
2377
|
-
layout = _props$layout === void 0 ?
|
|
2211
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
2378
2212
|
name = props.name,
|
|
2379
2213
|
onChange = props.onChange,
|
|
2380
2214
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
@@ -2383,11 +2217,11 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
2383
2217
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
2384
2218
|
_props$showRequiredLa = props.showRequiredLabel,
|
|
2385
2219
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
2386
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2220
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$F);
|
|
2387
2221
|
|
|
2388
2222
|
var footnote = isInvalid ? invalidText : helperText;
|
|
2389
|
-
var spacingProp = layout === exports.LayoutTypes.Column ? spacing.input.group["default"].vstack : spacing.input.group["default"].hstack;
|
|
2390
2223
|
var newChildren = [];
|
|
2224
|
+
var spacingProp = layout === "column" ? spacing.input.group["default"].vstack : spacing.input.group["default"].hstack;
|
|
2391
2225
|
var checkboxProps = defaultValue && onChange ? {
|
|
2392
2226
|
defaultValue: defaultValue,
|
|
2393
2227
|
onChange: onChange
|
|
@@ -2434,41 +2268,25 @@ var CheckboxGroup = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(fun
|
|
|
2434
2268
|
direction: [layout],
|
|
2435
2269
|
spacing: spacingProp,
|
|
2436
2270
|
ref: ref,
|
|
2437
|
-
"aria-label": !showLabel ? labelText :
|
|
2271
|
+
"aria-label": !showLabel ? labelText : undefined,
|
|
2438
2272
|
sx: styles.stack
|
|
2439
2273
|
}, newChildren)), footnote && showHelperInvalidText && React.createElement(HelperErrorText, {
|
|
2440
|
-
additionalStyles: styles.helperErrorText,
|
|
2441
2274
|
id: id + "-helperErrorText",
|
|
2442
2275
|
isInvalid: isInvalid,
|
|
2443
|
-
text: footnote
|
|
2276
|
+
text: footnote,
|
|
2277
|
+
__css: styles.helperErrorText
|
|
2444
2278
|
}));
|
|
2445
2279
|
}));
|
|
2446
2280
|
|
|
2447
|
-
|
|
2448
|
-
DatePickerTypes["Full"] = "full";
|
|
2449
|
-
DatePickerTypes["Month"] = "month";
|
|
2450
|
-
DatePickerTypes["Year"] = "year";
|
|
2451
|
-
})(exports.DatePickerTypes || (exports.DatePickerTypes = {}));
|
|
2452
|
-
|
|
2453
|
-
(function (GridGaps) {
|
|
2454
|
-
GridGaps["ExtraExtraSmall"] = "grid.xxs";
|
|
2455
|
-
GridGaps["ExtraSmall"] = "grid.xs";
|
|
2456
|
-
GridGaps["Small"] = "grid.s";
|
|
2457
|
-
GridGaps["Medium"] = "grid.m";
|
|
2458
|
-
GridGaps["Large"] = "grid.l";
|
|
2459
|
-
GridGaps["ExtraLarge"] = "grid.xl";
|
|
2460
|
-
GridGaps["ExtraExtraLarge"] = "grid.xxl";
|
|
2461
|
-
})(exports.GridGaps || (exports.GridGaps = {}));
|
|
2462
|
-
|
|
2463
|
-
var _excluded$F = ["children", "columns", "className", "gap", "id"];
|
|
2281
|
+
var _excluded$G = ["children", "columns", "className", "gap", "id"];
|
|
2464
2282
|
var SimpleGrid = /*#__PURE__*/react.chakra(function (props) {
|
|
2465
2283
|
var children = props.children,
|
|
2466
2284
|
columns = props.columns,
|
|
2467
2285
|
className = props.className,
|
|
2468
2286
|
_props$gap = props.gap,
|
|
2469
|
-
gap = _props$gap === void 0 ?
|
|
2287
|
+
gap = _props$gap === void 0 ? "grid.l" : _props$gap,
|
|
2470
2288
|
id = props.id,
|
|
2471
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2289
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$G);
|
|
2472
2290
|
|
|
2473
2291
|
var responsiveCols = columns ? {
|
|
2474
2292
|
base: 1,
|
|
@@ -2490,7 +2308,7 @@ var SimpleGrid = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2490
2308
|
}
|
|
2491
2309
|
});
|
|
2492
2310
|
|
|
2493
|
-
var _excluded$
|
|
2311
|
+
var _excluded$H = ["children", "className", "gap", "id"],
|
|
2494
2312
|
_excluded2$3 = ["children", "className", "gap", "id"],
|
|
2495
2313
|
_excluded3$1 = ["action", "children", "className", "gap", "id", "method", "onSubmit"];
|
|
2496
2314
|
/** FormRow child-component */
|
|
@@ -2500,7 +2318,7 @@ var FormRow = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2500
2318
|
className = props.className,
|
|
2501
2319
|
gap = props.gap,
|
|
2502
2320
|
id = props.id,
|
|
2503
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2321
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$H);
|
|
2504
2322
|
|
|
2505
2323
|
var count = React.Children.count(children);
|
|
2506
2324
|
var alteredChildren = React.Children.map(children, function (child, i) {
|
|
@@ -2545,7 +2363,7 @@ var Form = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2545
2363
|
children = props.children,
|
|
2546
2364
|
className = props.className,
|
|
2547
2365
|
_props$gap = props.gap,
|
|
2548
|
-
gap = _props$gap === void 0 ?
|
|
2366
|
+
gap = _props$gap === void 0 ? "grid.l" : _props$gap,
|
|
2549
2367
|
id = props.id,
|
|
2550
2368
|
method = props.method,
|
|
2551
2369
|
onSubmit = props.onSubmit,
|
|
@@ -2580,60 +2398,7 @@ var Form = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2580
2398
|
}
|
|
2581
2399
|
});
|
|
2582
2400
|
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
(function (TextInputTypes) {
|
|
2586
|
-
TextInputTypes["email"] = "email";
|
|
2587
|
-
TextInputTypes["hidden"] = "hidden"; // eslint-disable-next-line id-blacklist
|
|
2588
|
-
|
|
2589
|
-
TextInputTypes["number"] = "number";
|
|
2590
|
-
TextInputTypes["password"] = "password";
|
|
2591
|
-
TextInputTypes["text"] = "text";
|
|
2592
|
-
TextInputTypes["textarea"] = "textarea";
|
|
2593
|
-
TextInputTypes["tel"] = "tel";
|
|
2594
|
-
TextInputTypes["url"] = "url";
|
|
2595
|
-
})(exports.TextInputTypes || (exports.TextInputTypes = {})); // Only used internally in `TextInput`.
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
var TextInputFormats;
|
|
2599
|
-
|
|
2600
|
-
(function (TextInputFormats) {
|
|
2601
|
-
TextInputFormats["email"] = "jdoe@domain.com";
|
|
2602
|
-
TextInputFormats["hidden"] = ""; // eslint-disable-next-line id-blacklist
|
|
2603
|
-
|
|
2604
|
-
TextInputFormats["number"] = "";
|
|
2605
|
-
TextInputFormats["password"] = "";
|
|
2606
|
-
TextInputFormats["text"] = "";
|
|
2607
|
-
TextInputFormats["tel"] = "(123) 123-1234";
|
|
2608
|
-
TextInputFormats["textarea"] = "";
|
|
2609
|
-
TextInputFormats["url"] = "https://domain.com";
|
|
2610
|
-
})(TextInputFormats || (TextInputFormats = {})); // Only used internally in `TextInput` and `SearchBar`.
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
var TextInputVariants;
|
|
2614
|
-
|
|
2615
|
-
(function (TextInputVariants) {
|
|
2616
|
-
TextInputVariants["Default"] = "default";
|
|
2617
|
-
TextInputVariants["SearchBar"] = "searchBar";
|
|
2618
|
-
TextInputVariants["SearchBarSelect"] = "searchBarSelect";
|
|
2619
|
-
})(TextInputVariants || (TextInputVariants = {}));
|
|
2620
|
-
/*
|
|
2621
|
-
export enum TextInputPatterns {
|
|
2622
|
-
// eslint-disable-next-line prettier/prettier
|
|
2623
|
-
email = "[a-z0-9._%+-]+@[a-z0-9.-]+.[a-z]{2,}$",
|
|
2624
|
-
hidden = "",
|
|
2625
|
-
// eslint-disable-next-line id-blacklist
|
|
2626
|
-
number = "",
|
|
2627
|
-
password = "",
|
|
2628
|
-
text = "",
|
|
2629
|
-
// eslint-disable-next-line prettier/prettier
|
|
2630
|
-
tel = "([0-9]{3}) [0-9]{3}-[0-9]{4}",
|
|
2631
|
-
textarea = "textarea",
|
|
2632
|
-
url = "https?://.+",
|
|
2633
|
-
}
|
|
2634
|
-
*/
|
|
2635
|
-
|
|
2636
|
-
var _excluded$H = ["children", "className", "htmlFor", "id", "isInlined", "isRequired"];
|
|
2401
|
+
var _excluded$I = ["children", "className", "htmlFor", "id", "isInlined", "isRequired"];
|
|
2637
2402
|
/**
|
|
2638
2403
|
* A label for form inputs. It should never be used alone.
|
|
2639
2404
|
*/
|
|
@@ -2647,7 +2412,7 @@ var Label = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2647
2412
|
isInlined = _props$isInlined === void 0 ? false : _props$isInlined,
|
|
2648
2413
|
_props$isRequired = props.isRequired,
|
|
2649
2414
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
2650
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2415
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$I);
|
|
2651
2416
|
|
|
2652
2417
|
var styles = react.useStyleConfig("Label", {
|
|
2653
2418
|
isInlined: isInlined
|
|
@@ -2666,7 +2431,17 @@ var Label = /*#__PURE__*/react.chakra(function (props) {
|
|
|
2666
2431
|
}, rest), children, isRequired && React.createElement("span", null, " (Required)"));
|
|
2667
2432
|
});
|
|
2668
2433
|
|
|
2669
|
-
var _excluded$
|
|
2434
|
+
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"];
|
|
2435
|
+
|
|
2436
|
+
var TextInputFormats = {
|
|
2437
|
+
email: "jdoe@domain.com",
|
|
2438
|
+
hidden: "",
|
|
2439
|
+
password: "",
|
|
2440
|
+
text: "",
|
|
2441
|
+
tel: "(123) 123-1234",
|
|
2442
|
+
textarea: "",
|
|
2443
|
+
url: "https://domain.com"
|
|
2444
|
+
};
|
|
2670
2445
|
/**
|
|
2671
2446
|
* Renders either an `input` element with a specified type or a `textarea`
|
|
2672
2447
|
* element. All types will render an accessible `Label` component and an
|
|
@@ -2674,11 +2449,7 @@ var _excluded$I = ["additionalStyles", "attributes", "className", "defaultValue"
|
|
|
2674
2449
|
*/
|
|
2675
2450
|
|
|
2676
2451
|
var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
2677
|
-
var
|
|
2678
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
2679
|
-
_props$attributes = props.attributes,
|
|
2680
|
-
attributes = _props$attributes === void 0 ? {} : _props$attributes,
|
|
2681
|
-
className = props.className,
|
|
2452
|
+
var className = props.className,
|
|
2682
2453
|
defaultValue = props.defaultValue,
|
|
2683
2454
|
helperText = props.helperText,
|
|
2684
2455
|
id = props.id,
|
|
@@ -2690,8 +2461,13 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
2690
2461
|
_props$isRequired = props.isRequired,
|
|
2691
2462
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
2692
2463
|
labelText = props.labelText,
|
|
2464
|
+
max = props.max,
|
|
2465
|
+
maxLength = props.maxLength,
|
|
2466
|
+
min = props.min,
|
|
2693
2467
|
name = props.name,
|
|
2694
2468
|
onChange = props.onChange,
|
|
2469
|
+
onClick = props.onClick,
|
|
2470
|
+
onFocus = props.onFocus,
|
|
2695
2471
|
placeholder = props.placeholder,
|
|
2696
2472
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
2697
2473
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
@@ -2702,22 +2478,20 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
2702
2478
|
_props$step = props.step,
|
|
2703
2479
|
step = _props$step === void 0 ? 1 : _props$step,
|
|
2704
2480
|
_props$textInputType = props.textInputType,
|
|
2705
|
-
textInputType = _props$textInputType === void 0 ?
|
|
2481
|
+
textInputType = _props$textInputType === void 0 ? "default" : _props$textInputType,
|
|
2706
2482
|
_props$type = props.type,
|
|
2707
|
-
type = _props$type === void 0 ?
|
|
2483
|
+
type = _props$type === void 0 ? "text" : _props$type,
|
|
2708
2484
|
value = props.value,
|
|
2709
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
2485
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$J);
|
|
2710
2486
|
|
|
2711
2487
|
var styles = react.useMultiStyleConfig("TextInput", {
|
|
2712
2488
|
variant: textInputType
|
|
2713
2489
|
});
|
|
2714
|
-
|
|
2715
|
-
var
|
|
2716
|
-
|
|
2717
|
-
var isTextArea = type === exports.TextInputTypes.textarea;
|
|
2718
|
-
var isHidden = type === exports.TextInputTypes.hidden;
|
|
2490
|
+
var isTextArea = type === "textarea";
|
|
2491
|
+
var isHidden = type === "hidden";
|
|
2719
2492
|
var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
|
|
2720
2493
|
var footnote = isInvalid ? finalInvalidText : helperText;
|
|
2494
|
+
var ariaAttributes = {};
|
|
2721
2495
|
var fieldOutput;
|
|
2722
2496
|
var options;
|
|
2723
2497
|
|
|
@@ -2726,13 +2500,13 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
2726
2500
|
}
|
|
2727
2501
|
|
|
2728
2502
|
if (!showLabel) {
|
|
2729
|
-
|
|
2503
|
+
ariaAttributes["aria-label"] = labelText && footnote ? labelText + " - " + footnote : labelText;
|
|
2730
2504
|
} else if (helperText) {
|
|
2731
|
-
|
|
2505
|
+
ariaAttributes["aria-describedby"] = id + "-helperText";
|
|
2732
2506
|
}
|
|
2733
2507
|
|
|
2734
|
-
if (type ===
|
|
2735
|
-
var example = TextInputFormats[type];
|
|
2508
|
+
if (type === "tel" || type === "url" || type === "email") {
|
|
2509
|
+
var example = TextInputFormats[type] || "";
|
|
2736
2510
|
footnote = React.createElement(React.Fragment, null, "Ex: ", example, React.createElement("br", null), footnote);
|
|
2737
2511
|
} // When the type is "hidden", the input element needs fewer attributes.
|
|
2738
2512
|
|
|
@@ -2750,13 +2524,18 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
2750
2524
|
isDisabled: isDisabled,
|
|
2751
2525
|
isRequired: isRequired,
|
|
2752
2526
|
isInvalid: isInvalid,
|
|
2753
|
-
|
|
2527
|
+
max: max,
|
|
2528
|
+
maxLength: maxLength,
|
|
2529
|
+
min: min,
|
|
2754
2530
|
name: name,
|
|
2755
2531
|
onChange: onChange,
|
|
2532
|
+
onClick: onClick,
|
|
2533
|
+
onFocus: onFocus,
|
|
2534
|
+
placeholder: placeholder,
|
|
2756
2535
|
ref: ref,
|
|
2757
2536
|
// The `step` attribute is useful for the number type.
|
|
2758
|
-
step: type ===
|
|
2759
|
-
},
|
|
2537
|
+
step: type === "number" ? step : null
|
|
2538
|
+
}, ariaAttributes, rest); // For `input` and `textarea`, all attributes are the same but `input`
|
|
2760
2539
|
// also needs `type` and `value` to render correctly.
|
|
2761
2540
|
|
|
2762
2541
|
if (!isTextArea) {
|
|
@@ -2765,16 +2544,16 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
2765
2544
|
value: value
|
|
2766
2545
|
}, options);
|
|
2767
2546
|
fieldOutput = React.createElement(react.Input, Object.assign({}, options, {
|
|
2768
|
-
__css:
|
|
2547
|
+
__css: styles.input
|
|
2769
2548
|
}));
|
|
2770
2549
|
} else {
|
|
2771
2550
|
fieldOutput = React.createElement(react.Textarea, Object.assign({}, options, {
|
|
2772
|
-
__css:
|
|
2551
|
+
__css: styles.textarea
|
|
2773
2552
|
}), value);
|
|
2774
2553
|
}
|
|
2775
2554
|
|
|
2776
2555
|
return React.createElement(react.Box, Object.assign({
|
|
2777
|
-
__css:
|
|
2556
|
+
__css: styles,
|
|
2778
2557
|
className: className
|
|
2779
2558
|
}, rest), labelText && showLabel && !isHidden && React.createElement(Label, {
|
|
2780
2559
|
htmlFor: id,
|
|
@@ -2787,7 +2566,7 @@ var TextInput = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(functio
|
|
|
2787
2566
|
}));
|
|
2788
2567
|
}));
|
|
2789
2568
|
|
|
2790
|
-
var _excluded$
|
|
2569
|
+
var _excluded$K = ["children", "className", "id", "isDateRange", "isRequired", "labelText", "showLabel", "showRequiredLabel"],
|
|
2791
2570
|
_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"];
|
|
2792
2571
|
/**
|
|
2793
2572
|
* A Design System `TextInput` component that is used as the custom input
|
|
@@ -2799,17 +2578,15 @@ var _excluded$J = ["children", "className", "id", "isDateRange", "isRequired", "
|
|
|
2799
2578
|
*/
|
|
2800
2579
|
|
|
2801
2580
|
var CustomTextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
2802
|
-
var
|
|
2803
|
-
additionalStyles = _ref$additionalStyles === void 0 ? {} : _ref$additionalStyles,
|
|
2804
|
-
attributes = _ref.attributes,
|
|
2805
|
-
dsId = _ref.dsId,
|
|
2806
|
-
dsRef = _ref.dsRef,
|
|
2581
|
+
var dsRef = _ref.dsRef,
|
|
2807
2582
|
helperText = _ref.helperText,
|
|
2583
|
+
id = _ref.id,
|
|
2808
2584
|
invalidText = _ref.invalidText,
|
|
2809
2585
|
isDisabled = _ref.isDisabled,
|
|
2810
2586
|
isInvalid = _ref.isInvalid,
|
|
2811
2587
|
isRequired = _ref.isRequired,
|
|
2812
2588
|
labelText = _ref.labelText,
|
|
2589
|
+
name = _ref.name,
|
|
2813
2590
|
onChange = _ref.onChange,
|
|
2814
2591
|
onClick = _ref.onClick,
|
|
2815
2592
|
showLabel = _ref.showLabel,
|
|
@@ -2817,26 +2594,24 @@ var CustomTextInput = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
|
|
|
2817
2594
|
showRequiredLabel = _ref.showRequiredLabel,
|
|
2818
2595
|
value = _ref.value;
|
|
2819
2596
|
return React__default.createElement(TextInput, {
|
|
2820
|
-
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
value: value,
|
|
2824
|
-
labelText: labelText,
|
|
2597
|
+
helperText: helperText,
|
|
2598
|
+
id: id,
|
|
2599
|
+
invalidText: invalidText,
|
|
2825
2600
|
isDisabled: isDisabled,
|
|
2601
|
+
isInvalid: isInvalid,
|
|
2826
2602
|
isRequired: isRequired,
|
|
2603
|
+
labelText: labelText,
|
|
2604
|
+
name: name,
|
|
2605
|
+
onChange: onChange,
|
|
2606
|
+
onClick: onClick,
|
|
2827
2607
|
showHelperInvalidText: showHelperInvalidText,
|
|
2608
|
+
showLabel: showLabel,
|
|
2828
2609
|
showRequiredLabel: showRequiredLabel,
|
|
2829
|
-
|
|
2830
|
-
helperText: helperText,
|
|
2831
|
-
invalidText: invalidText,
|
|
2610
|
+
value: value,
|
|
2832
2611
|
// Use either the specific prop-based or the `forwardRef` value.
|
|
2833
2612
|
// `react-datepicker` manipulates the `ref` value so when we
|
|
2834
2613
|
// want a specific ref, use the `dsRef` prop.
|
|
2835
|
-
ref: dsRef || ref
|
|
2836
|
-
attributes: _extends({}, attributes, {
|
|
2837
|
-
onClick: onClick
|
|
2838
|
-
}),
|
|
2839
|
-
additionalStyles: additionalStyles
|
|
2614
|
+
ref: dsRef || ref
|
|
2840
2615
|
});
|
|
2841
2616
|
});
|
|
2842
2617
|
/**
|
|
@@ -2855,7 +2630,7 @@ var DatePickerWrapper = /*#__PURE__*/react.chakra(function (_ref2) {
|
|
|
2855
2630
|
labelText = _ref2.labelText,
|
|
2856
2631
|
showLabel = _ref2.showLabel,
|
|
2857
2632
|
showRequiredLabel = _ref2.showRequiredLabel,
|
|
2858
|
-
rest = _objectWithoutPropertiesLoose(_ref2, _excluded$
|
|
2633
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded$K);
|
|
2859
2634
|
|
|
2860
2635
|
return React__default.createElement(FormField, Object.assign({
|
|
2861
2636
|
id: id + "-form-field"
|
|
@@ -2885,7 +2660,7 @@ var DateRangeRow = function DateRangeRow(_ref3) {
|
|
|
2885
2660
|
children = _ref3.children;
|
|
2886
2661
|
return isDateRange ? React__default.createElement(FormRow, {
|
|
2887
2662
|
id: id + "-form-row",
|
|
2888
|
-
gap:
|
|
2663
|
+
gap: "grid.xs"
|
|
2889
2664
|
}, children) : React__default.createElement(React__default.Fragment, null, children);
|
|
2890
2665
|
};
|
|
2891
2666
|
/**
|
|
@@ -2898,7 +2673,7 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardR
|
|
|
2898
2673
|
_props$dateFormat = props.dateFormat,
|
|
2899
2674
|
dateFormat = _props$dateFormat === void 0 ? "yyyy-MM-dd" : _props$dateFormat,
|
|
2900
2675
|
_props$dateType = props.dateType,
|
|
2901
|
-
dateType = _props$dateType === void 0 ?
|
|
2676
|
+
dateType = _props$dateType === void 0 ? "full" : _props$dateType,
|
|
2902
2677
|
helperText = props.helperText,
|
|
2903
2678
|
helperTextFrom = props.helperTextFrom,
|
|
2904
2679
|
helperTextTo = props.helperTextTo,
|
|
@@ -2953,7 +2728,7 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardR
|
|
|
2953
2728
|
|
|
2954
2729
|
setFullDate(_extends({}, fullDate, (_extends2 = {}, _extends2[value] = date, _extends2)));
|
|
2955
2730
|
onChange && onChange(_extends({}, fullDate, (_extends3 = {}, _extends3[value] = date, _extends3)));
|
|
2956
|
-
}; // How many years to display in the
|
|
2731
|
+
}; // How many years to display in the "year" option.
|
|
2957
2732
|
|
|
2958
2733
|
|
|
2959
2734
|
var yearsToDisplay = 12; // Both `ReactDatePicker` components share some props.
|
|
@@ -2973,7 +2748,6 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardR
|
|
|
2973
2748
|
}; // Both custom `TextInput` components share some props.
|
|
2974
2749
|
|
|
2975
2750
|
var baseCustomTextInputAttrs = {
|
|
2976
|
-
dsId: id + "-start",
|
|
2977
2751
|
isRequired: isRequired,
|
|
2978
2752
|
// In the date range type, don't display the "(Required)" text in
|
|
2979
2753
|
// individual input labels. It'll display in the legend element.
|
|
@@ -2986,7 +2760,7 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardR
|
|
|
2986
2760
|
helperText: isDateRange ? helperTextFrom : helperText,
|
|
2987
2761
|
showHelperInvalidText: showHelperInvalidText,
|
|
2988
2762
|
invalidText: invalidText,
|
|
2989
|
-
|
|
2763
|
+
__css: finalStyles.subLabels
|
|
2990
2764
|
}; // These are attribute objects for the `react-datepicker` package component.
|
|
2991
2765
|
|
|
2992
2766
|
var startDatePickerAttrs = {};
|
|
@@ -2996,10 +2770,10 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardR
|
|
|
2996
2770
|
|
|
2997
2771
|
var startLabelText = labelText; // Update the appropriate props for the selected date type to render.
|
|
2998
2772
|
|
|
2999
|
-
if (dateType ===
|
|
2773
|
+
if (dateType === "month") {
|
|
3000
2774
|
baseDatePickerAttrs["showMonthYearPicker"] = true;
|
|
3001
2775
|
baseDatePickerAttrs.dateFormat = "MM-yyyy";
|
|
3002
|
-
} else if (dateType ===
|
|
2776
|
+
} else if (dateType === "year") {
|
|
3003
2777
|
baseDatePickerAttrs["showYearPicker"] = true;
|
|
3004
2778
|
baseDatePickerAttrs["yearItemNumber"] = yearsToDisplay;
|
|
3005
2779
|
baseDatePickerAttrs.dateFormat = "yyyy";
|
|
@@ -3024,7 +2798,6 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardR
|
|
|
3024
2798
|
|
|
3025
2799
|
if (isDateRange) {
|
|
3026
2800
|
var endCustomTextInputAttrs = _extends({}, baseCustomTextInputAttrs, {
|
|
3027
|
-
dsId: id + "-end",
|
|
3028
2801
|
helperText: helperTextTo
|
|
3029
2802
|
}); // These props are used to follow the pattern recommended by
|
|
3030
2803
|
// the react-datepicker plugin.
|
|
@@ -3043,32 +2816,30 @@ var DatePicker = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardR
|
|
|
3043
2816
|
});
|
|
3044
2817
|
startLabelText = "From";
|
|
3045
2818
|
endDatePickerElement = React__default.createElement(ReactDatePicker, Object.assign({
|
|
3046
|
-
|
|
2819
|
+
customInput: React__default.createElement(CustomTextInput, Object.assign({
|
|
2820
|
+
dsRef: refTo,
|
|
2821
|
+
labelText: "To"
|
|
2822
|
+
}, endCustomTextInputAttrs)),
|
|
2823
|
+
id: id + "-end",
|
|
2824
|
+
name: nameTo,
|
|
3047
2825
|
onChange: function onChange(date) {
|
|
3048
2826
|
return onChangeDefault(date, "endDate");
|
|
3049
2827
|
},
|
|
3050
|
-
|
|
3051
|
-
labelText: "To",
|
|
3052
|
-
dsRef: refTo,
|
|
3053
|
-
attributes: {
|
|
3054
|
-
name: nameTo
|
|
3055
|
-
}
|
|
3056
|
-
}, endCustomTextInputAttrs))
|
|
2828
|
+
selected: fullDate.endDate
|
|
3057
2829
|
}, endDatePickerAttrs));
|
|
3058
2830
|
}
|
|
3059
2831
|
|
|
3060
2832
|
var startDatePickerElement = React__default.createElement(ReactDatePicker, Object.assign({
|
|
3061
|
-
|
|
2833
|
+
customInput: React__default.createElement(CustomTextInput, Object.assign({
|
|
2834
|
+
dsRef: ref,
|
|
2835
|
+
labelText: startLabelText
|
|
2836
|
+
}, baseCustomTextInputAttrs)),
|
|
2837
|
+
id: id + "-start",
|
|
2838
|
+
name: nameFrom,
|
|
3062
2839
|
onChange: function onChange(date) {
|
|
3063
2840
|
return onChangeDefault(date, "startDate");
|
|
3064
2841
|
},
|
|
3065
|
-
|
|
3066
|
-
labelText: startLabelText,
|
|
3067
|
-
dsRef: ref,
|
|
3068
|
-
attributes: {
|
|
3069
|
-
name: nameFrom
|
|
3070
|
-
}
|
|
3071
|
-
}, baseCustomTextInputAttrs))
|
|
2842
|
+
selected: fullDate.startDate
|
|
3072
2843
|
}, startDatePickerAttrs));
|
|
3073
2844
|
return React__default.createElement(DatePickerWrapper, Object.assign({
|
|
3074
2845
|
id: id,
|
|
@@ -3862,6 +3633,18 @@ var Button$1 = {
|
|
|
3862
3633
|
}
|
|
3863
3634
|
};
|
|
3864
3635
|
|
|
3636
|
+
var ButtonGroup$1 = {
|
|
3637
|
+
baseStyle: function baseStyle(_ref) {
|
|
3638
|
+
var buttonWidth = _ref.buttonWidth;
|
|
3639
|
+
return {
|
|
3640
|
+
width: buttonWidth === "default" ? "fit-content" : "100%",
|
|
3641
|
+
button: {
|
|
3642
|
+
flexGrow: buttonWidth === "default" ? undefined : "1"
|
|
3643
|
+
}
|
|
3644
|
+
};
|
|
3645
|
+
}
|
|
3646
|
+
};
|
|
3647
|
+
|
|
3865
3648
|
var imageSizes = {
|
|
3866
3649
|
xxsmall: {
|
|
3867
3650
|
flex: {
|
|
@@ -3894,8 +3677,8 @@ var imageSizes = {
|
|
|
3894
3677
|
|
|
3895
3678
|
var getBodyPaddingStyles = function getBodyPaddingStyles(_ref) {
|
|
3896
3679
|
var hasImage = _ref.hasImage,
|
|
3897
|
-
isBordered = _ref.isBordered,
|
|
3898
3680
|
imageIsAtEnd = _ref.imageIsAtEnd,
|
|
3681
|
+
isBordered = _ref.isBordered,
|
|
3899
3682
|
isRow = _ref.isRow;
|
|
3900
3683
|
var bodyPadding = null;
|
|
3901
3684
|
|
|
@@ -3930,13 +3713,13 @@ var getBodyPaddingStyles = function getBodyPaddingStyles(_ref) {
|
|
|
3930
3713
|
|
|
3931
3714
|
var Card$1 = {
|
|
3932
3715
|
parts: ["actions", "body", "heading"],
|
|
3933
|
-
baseStyle: function baseStyle(
|
|
3934
|
-
var hasImage =
|
|
3935
|
-
imageIsAtEnd =
|
|
3936
|
-
isBordered =
|
|
3937
|
-
isCentered =
|
|
3938
|
-
layout =
|
|
3939
|
-
mainActionLink =
|
|
3716
|
+
baseStyle: function baseStyle(_ref2) {
|
|
3717
|
+
var hasImage = _ref2.hasImage,
|
|
3718
|
+
imageIsAtEnd = _ref2.imageIsAtEnd,
|
|
3719
|
+
isBordered = _ref2.isBordered,
|
|
3720
|
+
isCentered = _ref2.isCentered,
|
|
3721
|
+
layout = _ref2.layout,
|
|
3722
|
+
mainActionLink = _ref2.mainActionLink;
|
|
3940
3723
|
var isRow = layout === "row";
|
|
3941
3724
|
var layoutStyles = isRow ? {
|
|
3942
3725
|
display: "flex",
|
|
@@ -3998,11 +3781,11 @@ var Card$1 = {
|
|
|
3998
3781
|
}
|
|
3999
3782
|
};
|
|
4000
3783
|
var CardActions$1 = {
|
|
4001
|
-
baseStyle: function baseStyle(
|
|
4002
|
-
var bottomBorder =
|
|
4003
|
-
isCentered =
|
|
4004
|
-
layout =
|
|
4005
|
-
topBorder =
|
|
3784
|
+
baseStyle: function baseStyle(_ref3) {
|
|
3785
|
+
var bottomBorder = _ref3.bottomBorder,
|
|
3786
|
+
isCentered = _ref3.isCentered,
|
|
3787
|
+
layout = _ref3.layout,
|
|
3788
|
+
topBorder = _ref3.topBorder;
|
|
4006
3789
|
var justifyContent = null; // Only center in the column layout.
|
|
4007
3790
|
|
|
4008
3791
|
if (layout === "row") {
|
|
@@ -4041,13 +3824,13 @@ var CardContent$1 = {
|
|
|
4041
3824
|
}
|
|
4042
3825
|
};
|
|
4043
3826
|
var CardImage$1 = {
|
|
4044
|
-
baseStyle: function baseStyle(
|
|
4045
|
-
var imageIsAtEnd =
|
|
4046
|
-
isCentered =
|
|
4047
|
-
layout =
|
|
4048
|
-
size =
|
|
3827
|
+
baseStyle: function baseStyle(_ref4) {
|
|
3828
|
+
var imageIsAtEnd = _ref4.imageIsAtEnd,
|
|
3829
|
+
isCentered = _ref4.isCentered,
|
|
3830
|
+
layout = _ref4.layout,
|
|
3831
|
+
size = _ref4.size;
|
|
4049
3832
|
// These sizes are only for the "row" layout.
|
|
4050
|
-
var imageSize = imageSizes[size]
|
|
3833
|
+
var imageSize = size ? imageSizes[size] : {};
|
|
4051
3834
|
var layoutStyles = layout === "row" ? _extends({
|
|
4052
3835
|
flex: {
|
|
4053
3836
|
md: "0 0 225px"
|
|
@@ -4279,7 +4062,7 @@ var CustomImage = {
|
|
|
4279
4062
|
width: "100%"
|
|
4280
4063
|
}, imageSizes$1[size]),
|
|
4281
4064
|
captionWrappers: {
|
|
4282
|
-
|
|
4065
|
+
marginTop: "xxs"
|
|
4283
4066
|
}
|
|
4284
4067
|
};
|
|
4285
4068
|
}
|
|
@@ -4333,21 +4116,14 @@ var select = {
|
|
|
4333
4116
|
var Select = {
|
|
4334
4117
|
parts: ["helperText", "inline", "select"],
|
|
4335
4118
|
baseStyle: function baseStyle(_ref) {
|
|
4336
|
-
var labelPosition = _ref.labelPosition
|
|
4337
|
-
labelWidth = _ref.labelWidth;
|
|
4119
|
+
var labelPosition = _ref.labelPosition;
|
|
4338
4120
|
return {
|
|
4339
|
-
marginBottom: "xs",
|
|
4340
4121
|
// The backgroundColor set to "ui.white" hides the arrow SVG icon when
|
|
4341
4122
|
// the component is focused. The background is added for dark mode and
|
|
4342
4123
|
// so we need to add specific selector.
|
|
4343
4124
|
".chakra-select__icon-wrapper": {
|
|
4344
4125
|
zIndex: "9999"
|
|
4345
4126
|
},
|
|
4346
|
-
helperText: {
|
|
4347
|
-
marginLeft: labelPosition === "inline" ? {
|
|
4348
|
-
md: labelWidth + "px"
|
|
4349
|
-
} : null
|
|
4350
|
-
},
|
|
4351
4127
|
inline: {
|
|
4352
4128
|
display: {
|
|
4353
4129
|
md: "flex"
|
|
@@ -4765,7 +4541,7 @@ var campaign = {
|
|
|
4765
4541
|
}
|
|
4766
4542
|
}
|
|
4767
4543
|
};
|
|
4768
|
-
var
|
|
4544
|
+
var fiftyFifty = {
|
|
4769
4545
|
content: /*#__PURE__*/_extends({}, wrapperStyles, {
|
|
4770
4546
|
alignItems: "center",
|
|
4771
4547
|
display: "flex",
|
|
@@ -4808,7 +4584,7 @@ var Hero = {
|
|
|
4808
4584
|
secondaryWhatsOn: secondaryWhatsOn,
|
|
4809
4585
|
tertiary: tertiary,
|
|
4810
4586
|
campaign: campaign,
|
|
4811
|
-
|
|
4587
|
+
fiftyFifty: fiftyFifty
|
|
4812
4588
|
}
|
|
4813
4589
|
};
|
|
4814
4590
|
|
|
@@ -5080,12 +4856,6 @@ var Logo = {
|
|
|
5080
4856
|
}
|
|
5081
4857
|
};
|
|
5082
4858
|
|
|
5083
|
-
(function (NotificationTypes) {
|
|
5084
|
-
NotificationTypes["Standard"] = "standard";
|
|
5085
|
-
NotificationTypes["Announcement"] = "announcement";
|
|
5086
|
-
NotificationTypes["Warning"] = "warning";
|
|
5087
|
-
})(exports.NotificationTypes || (exports.NotificationTypes = {}));
|
|
5088
|
-
|
|
5089
4859
|
var Notification = {
|
|
5090
4860
|
parts: ["container", "dismissibleButton", "icon"],
|
|
5091
4861
|
baseStyle: function baseStyle(_ref) {
|
|
@@ -5095,7 +4865,7 @@ var Notification = {
|
|
|
5095
4865
|
notificationType = _ref.notificationType;
|
|
5096
4866
|
var bg = "ui.status.primary";
|
|
5097
4867
|
|
|
5098
|
-
if (notificationType ===
|
|
4868
|
+
if (notificationType === "announcement" || notificationType === "warning") {
|
|
5099
4869
|
bg = "ui.gray.x-light-cool";
|
|
5100
4870
|
}
|
|
5101
4871
|
|
|
@@ -5151,7 +4921,7 @@ var NotificationContent = {
|
|
|
5151
4921
|
display: "flex",
|
|
5152
4922
|
justifyContent: "center",
|
|
5153
4923
|
content: {
|
|
5154
|
-
color: notificationType ===
|
|
4924
|
+
color: notificationType === "warning" ? "brand.primary" : "currentColor",
|
|
5155
4925
|
marginTop: icon ? "xxxs" : "0",
|
|
5156
4926
|
paddingLeft: alignText ? "calc(var(--nypl-space-m) + var(--nypl-space-s))" : null,
|
|
5157
4927
|
width: "100%",
|
|
@@ -5174,9 +4944,9 @@ var NotificationHeading = {
|
|
|
5174
4944
|
notificationType = _ref3.notificationType;
|
|
5175
4945
|
var color = "ui.black";
|
|
5176
4946
|
|
|
5177
|
-
if (notificationType ===
|
|
4947
|
+
if (notificationType === "announcement") {
|
|
5178
4948
|
color = "section.research.secondary";
|
|
5179
|
-
} else if (notificationType ===
|
|
4949
|
+
} else if (notificationType === "warning") {
|
|
5180
4950
|
color = "brand.primary";
|
|
5181
4951
|
}
|
|
5182
4952
|
|
|
@@ -5214,16 +4984,6 @@ var Pagination = {
|
|
|
5214
4984
|
}
|
|
5215
4985
|
};
|
|
5216
4986
|
|
|
5217
|
-
(function (ProgressIndicatorSizes) {
|
|
5218
|
-
ProgressIndicatorSizes["Default"] = "default";
|
|
5219
|
-
ProgressIndicatorSizes["Small"] = "small";
|
|
5220
|
-
})(exports.ProgressIndicatorSizes || (exports.ProgressIndicatorSizes = {}));
|
|
5221
|
-
|
|
5222
|
-
(function (ProgressIndicatorTypes) {
|
|
5223
|
-
ProgressIndicatorTypes["Circular"] = "circular";
|
|
5224
|
-
ProgressIndicatorTypes["Linear"] = "linear";
|
|
5225
|
-
})(exports.ProgressIndicatorTypes || (exports.ProgressIndicatorTypes = {}));
|
|
5226
|
-
|
|
5227
4987
|
var ProgressIndicator = {
|
|
5228
4988
|
parts: ["circular", "circularLabel", "linear", "linearContainer", "linearPercentage"],
|
|
5229
4989
|
baseStyle: function baseStyle(_ref) {
|
|
@@ -5235,8 +4995,8 @@ var ProgressIndicator = {
|
|
|
5235
4995
|
// Note: we have to target the SVG HTMl elements in order
|
|
5236
4996
|
// to override the default styles.
|
|
5237
4997
|
svg: {
|
|
5238
|
-
height: size ===
|
|
5239
|
-
width: size ===
|
|
4998
|
+
height: size === "default" ? "48px" : "24px",
|
|
4999
|
+
width: size === "default" ? "48px" : "24px",
|
|
5240
5000
|
display: "block",
|
|
5241
5001
|
circle: {
|
|
5242
5002
|
_first: {
|
|
@@ -5264,7 +5024,7 @@ var ProgressIndicator = {
|
|
|
5264
5024
|
bg: darkMode ? "ui.gray.dark" : "ui.gray.light-cool",
|
|
5265
5025
|
height: {
|
|
5266
5026
|
base: "4px",
|
|
5267
|
-
md: size ===
|
|
5027
|
+
md: size === "default" ? "8px" : "4px"
|
|
5268
5028
|
}
|
|
5269
5029
|
},
|
|
5270
5030
|
linearContainer: {
|
|
@@ -5520,7 +5280,31 @@ var Skeleton = {
|
|
|
5520
5280
|
}
|
|
5521
5281
|
};
|
|
5522
5282
|
|
|
5523
|
-
|
|
5283
|
+
var SkipNavigation = {
|
|
5284
|
+
baseStyle: {
|
|
5285
|
+
// Don't display links by default...
|
|
5286
|
+
a: {
|
|
5287
|
+
backgroundColor: "ui.white",
|
|
5288
|
+
height: "1px",
|
|
5289
|
+
left: "-10000px",
|
|
5290
|
+
overflow: "hidden",
|
|
5291
|
+
position: "absolute",
|
|
5292
|
+
top: "auto",
|
|
5293
|
+
width: "1px",
|
|
5294
|
+
// Only display when the user focuses on the links.
|
|
5295
|
+
_focus: {
|
|
5296
|
+
border: "1px solid var(—nypl-colors-ui-gray-dark)",
|
|
5297
|
+
height: "auto",
|
|
5298
|
+
left: "2rem",
|
|
5299
|
+
padding: "var(--nypl-space-inset-extranarrow) var(--nypl-space-inset-narrow)",
|
|
5300
|
+
top: "3rem",
|
|
5301
|
+
width: "auto"
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
}
|
|
5305
|
+
};
|
|
5306
|
+
|
|
5307
|
+
// Margins around the static display values.
|
|
5524
5308
|
var staticValues = {
|
|
5525
5309
|
marginTop: "xs",
|
|
5526
5310
|
marginBottom: "xs",
|
|
@@ -5630,7 +5414,7 @@ var baseTHStyles = function baseTHStyles(showRowDividers, columnHeadersTextColor
|
|
|
5630
5414
|
}
|
|
5631
5415
|
|
|
5632
5416
|
if (columnHeadersTextColor === void 0) {
|
|
5633
|
-
columnHeadersTextColor =
|
|
5417
|
+
columnHeadersTextColor = "";
|
|
5634
5418
|
}
|
|
5635
5419
|
|
|
5636
5420
|
return {
|
|
@@ -6078,13 +5862,17 @@ var variants$2 = {
|
|
|
6078
5862
|
}
|
|
6079
5863
|
};
|
|
6080
5864
|
var Text = {
|
|
6081
|
-
baseStyle: function baseStyle(
|
|
6082
|
-
var
|
|
6083
|
-
|
|
5865
|
+
baseStyle: function baseStyle(_ref) {
|
|
5866
|
+
var isBold = _ref.isBold,
|
|
5867
|
+
isItalic = _ref.isItalic,
|
|
5868
|
+
noSpace = _ref.noSpace,
|
|
5869
|
+
variant = _ref.variant;
|
|
5870
|
+
var fontWeight = isBold ? variant === "tag" || variant === "mini" ? "medium" : "bold" : null;
|
|
5871
|
+
var fontStyle = isItalic ? "italic" : null;
|
|
6084
5872
|
return {
|
|
6085
5873
|
fontStyle: fontStyle,
|
|
6086
5874
|
fontWeight: fontWeight,
|
|
6087
|
-
marginBottom:
|
|
5875
|
+
marginBottom: noSpace ? "0 !important" : null
|
|
6088
5876
|
};
|
|
6089
5877
|
},
|
|
6090
5878
|
variants: variants$2
|
|
@@ -6152,11 +5940,6 @@ var TextInput$1 = {
|
|
|
6152
5940
|
}
|
|
6153
5941
|
};
|
|
6154
5942
|
|
|
6155
|
-
(function (ToggleSizes) {
|
|
6156
|
-
ToggleSizes["Default"] = "default";
|
|
6157
|
-
ToggleSizes["Small"] = "small";
|
|
6158
|
-
})(exports.ToggleSizes || (exports.ToggleSizes = {}));
|
|
6159
|
-
|
|
6160
5943
|
var _container, _container2;
|
|
6161
5944
|
|
|
6162
5945
|
var toggleBaseStyle = function toggleBaseStyle(_ref) {
|
|
@@ -6168,7 +5951,7 @@ var toggleBaseStyle = function toggleBaseStyle(_ref) {
|
|
|
6168
5951
|
width: "fit-content"
|
|
6169
5952
|
};
|
|
6170
5953
|
var helperErrorText = {
|
|
6171
|
-
marginLeft: size ===
|
|
5954
|
+
marginLeft: size === "default" ? "xxl" : "xl",
|
|
6172
5955
|
fontStyle: isDisabled ? "italic" : null
|
|
6173
5956
|
};
|
|
6174
5957
|
return {
|
|
@@ -6335,7 +6118,8 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
|
|
|
6335
6118
|
components: /*#__PURE__*/_extends({
|
|
6336
6119
|
Accordion: Accordion$1,
|
|
6337
6120
|
Breadcrumb: Breadcrumb,
|
|
6338
|
-
Button: Button$1
|
|
6121
|
+
Button: Button$1,
|
|
6122
|
+
ButtonGroup: ButtonGroup$1
|
|
6339
6123
|
}, Card$2, {
|
|
6340
6124
|
Checkbox: Checkbox$1,
|
|
6341
6125
|
CheckboxGroup: CheckboxGroup$1,
|
|
@@ -6362,6 +6146,7 @@ var theme = /*#__PURE__*/react.extendTheme( /*#__PURE__*/_extends({
|
|
|
6362
6146
|
SearchBar: SearchBar,
|
|
6363
6147
|
Skeleton: Skeleton,
|
|
6364
6148
|
SkeletonLoader: SkeletonLoader,
|
|
6149
|
+
SkipNavigation: SkipNavigation,
|
|
6365
6150
|
CustomSlider: CustomSlider,
|
|
6366
6151
|
StatusBadge: StatusBadge,
|
|
6367
6152
|
StructuredContent: StructuredContent,
|
|
@@ -6387,129 +6172,101 @@ var DSProvider = function DSProvider(_ref) {
|
|
|
6387
6172
|
}, children);
|
|
6388
6173
|
};
|
|
6389
6174
|
|
|
6390
|
-
|
|
6391
|
-
HeroTypes["Primary"] = "primary";
|
|
6392
|
-
HeroTypes["Secondary"] = "secondary";
|
|
6393
|
-
HeroTypes["SecondaryBooksAndMore"] = "secondaryBooksAndMore";
|
|
6394
|
-
HeroTypes["SecondaryLocations"] = "secondaryLocations";
|
|
6395
|
-
HeroTypes["SecondaryResearch"] = "secondaryResearch";
|
|
6396
|
-
HeroTypes["SecondaryWhatsOn"] = "secondaryWhatsOn";
|
|
6397
|
-
HeroTypes["Tertiary"] = "tertiary";
|
|
6398
|
-
HeroTypes["Campaign"] = "campaign";
|
|
6399
|
-
HeroTypes["FiftyFifty"] = "fiftyfifty";
|
|
6400
|
-
})(exports.HeroTypes || (exports.HeroTypes = {})); // Only used for internal purposes.
|
|
6401
|
-
|
|
6402
|
-
|
|
6403
|
-
var HeroSecondaryTypes = [exports.HeroTypes.Secondary, exports.HeroTypes.SecondaryBooksAndMore, exports.HeroTypes.SecondaryLocations, exports.HeroTypes.SecondaryResearch, exports.HeroTypes.SecondaryWhatsOn];
|
|
6404
|
-
|
|
6405
|
-
var _excluded$K = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageAlt", "imageSrc", "locationDetails", "subHeaderText"];
|
|
6406
|
-
|
|
6407
|
-
var variantMap = {};
|
|
6408
|
-
|
|
6409
|
-
for (var type in exports.HeroTypes) {
|
|
6410
|
-
variantMap[exports.HeroTypes[type]] = exports.HeroTypes[type];
|
|
6411
|
-
}
|
|
6412
|
-
/**
|
|
6413
|
-
* Map the HeroTypes to the Hero Chakra theme variant object. If a wrong
|
|
6414
|
-
* value is passed (typically in non-Typescript scenarios), then the default
|
|
6415
|
-
* is the "primary" variant.
|
|
6416
|
-
*/
|
|
6417
|
-
|
|
6418
|
-
|
|
6419
|
-
var getVariant$1 = function getVariant(type) {
|
|
6420
|
-
return variantMap[type] || exports.HeroTypes.Primary;
|
|
6421
|
-
};
|
|
6175
|
+
var _excluded$L = ["backgroundColor", "backgroundImageSrc", "foregroundColor", "heading", "heroType", "imageProps", "locationDetails", "subHeaderText"];
|
|
6422
6176
|
|
|
6177
|
+
var heroSecondaryTypes = ["secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn"];
|
|
6423
6178
|
var Hero$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
6424
6179
|
var backgroundColor = props.backgroundColor,
|
|
6425
6180
|
backgroundImageSrc = props.backgroundImageSrc,
|
|
6426
6181
|
foregroundColor = props.foregroundColor,
|
|
6427
6182
|
heading = props.heading,
|
|
6428
6183
|
heroType = props.heroType,
|
|
6429
|
-
|
|
6430
|
-
|
|
6184
|
+
_props$imageProps = props.imageProps,
|
|
6185
|
+
imageProps = _props$imageProps === void 0 ? {
|
|
6186
|
+
alt: "",
|
|
6187
|
+
src: ""
|
|
6188
|
+
} : _props$imageProps,
|
|
6431
6189
|
locationDetails = props.locationDetails,
|
|
6432
6190
|
subHeaderText = props.subHeaderText,
|
|
6433
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6191
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$L);
|
|
6434
6192
|
|
|
6435
|
-
var variant = getVariant$1(heroType);
|
|
6436
6193
|
var styles = react.useMultiStyleConfig("Hero", {
|
|
6437
|
-
variant:
|
|
6194
|
+
variant: heroType
|
|
6438
6195
|
});
|
|
6439
6196
|
var headingStyles = styles.heading; // We want to add `Hero`-specific styling to the `Heading` component.
|
|
6440
6197
|
|
|
6441
6198
|
var finalHeading = heading && React.cloneElement(heading, {
|
|
6442
|
-
|
|
6199
|
+
__css: headingStyles
|
|
6443
6200
|
});
|
|
6444
6201
|
var backgroundImageStyle = {};
|
|
6445
6202
|
var contentBoxStyling = {};
|
|
6446
6203
|
|
|
6447
|
-
if (
|
|
6448
|
-
console.warn("NYPL Reservoir: The \"
|
|
6204
|
+
if (imageProps.src && !imageProps.alt) {
|
|
6205
|
+
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.");
|
|
6449
6206
|
}
|
|
6450
6207
|
|
|
6451
|
-
if (heroType ===
|
|
6208
|
+
if (heroType === "primary") {
|
|
6452
6209
|
if (!backgroundImageSrc) {
|
|
6453
|
-
console.warn("NYPL Reservoir Hero: It is recommended to use the `backgroundImageSrc` " + "prop for the `
|
|
6210
|
+
console.warn("NYPL Reservoir Hero: It is recommended to use the `backgroundImageSrc` " + "prop for the `'primary'` `heroType` variant.");
|
|
6454
6211
|
}
|
|
6455
6212
|
|
|
6456
|
-
if (
|
|
6457
|
-
console.warn("NYPL Reservoir Hero: The `
|
|
6213
|
+
if (imageProps.alt && imageProps.src) {
|
|
6214
|
+
console.warn("NYPL Reservoir Hero: The `imageProps.src` and `imageProps.alt` props have been " + "passed, but the `'primary'` `heroType` variant will not use it.");
|
|
6458
6215
|
}
|
|
6459
6216
|
} else if (locationDetails) {
|
|
6460
|
-
console.warn("NYPL Reservoir Hero: The `locationDetails` prop should only be used " + "with the `
|
|
6217
|
+
console.warn("NYPL Reservoir Hero: The `locationDetails` prop should only be used " + "with the `'primary'` `heroType` variant.");
|
|
6461
6218
|
}
|
|
6462
6219
|
|
|
6463
|
-
if (
|
|
6464
|
-
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `
|
|
6220
|
+
if (heroSecondaryTypes.includes(heroType) && backgroundImageSrc) {
|
|
6221
|
+
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `'secondary'` `heroType` variant will not use it.");
|
|
6465
6222
|
}
|
|
6466
6223
|
|
|
6467
|
-
if (heroType ===
|
|
6468
|
-
console.warn("NYPL Reservoir Hero: The `
|
|
6224
|
+
if (heroType === "tertiary" && (backgroundImageSrc || imageProps.src)) {
|
|
6225
|
+
console.warn("NYPL Reservoir Hero: The `'tertiary'` `heroType` variant hero " + "will not use any of the image props.");
|
|
6469
6226
|
}
|
|
6470
6227
|
|
|
6471
|
-
if (heroType ===
|
|
6472
|
-
console.warn("NYPL Reservoir Hero: It is recommended to use both the " + "`backgroundImageSrc` and `
|
|
6228
|
+
if (heroType === "campaign" && (!backgroundImageSrc || !imageProps.src)) {
|
|
6229
|
+
console.warn("NYPL Reservoir Hero: It is recommended to use both the " + "`backgroundImageSrc` and `imageProps.src` props for the " + "`'campaign'` `heroType` variant.");
|
|
6473
6230
|
}
|
|
6474
6231
|
|
|
6475
|
-
if (heroType ===
|
|
6476
|
-
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `
|
|
6232
|
+
if (heroType === "fiftyFifty" && backgroundImageSrc) {
|
|
6233
|
+
console.warn("NYPL Reservoir Hero: The `backgroundImageSrc` prop has been passed, " + "but the `'fiftyFifty'` `heroType` variant hero will not use it.");
|
|
6477
6234
|
}
|
|
6478
6235
|
|
|
6479
|
-
if (heroType ===
|
|
6236
|
+
if (heroType === "primary") {
|
|
6480
6237
|
backgroundImageStyle = backgroundImageSrc ? {
|
|
6481
6238
|
backgroundImage: "url(" + backgroundImageSrc + ")"
|
|
6482
6239
|
} : {};
|
|
6483
|
-
} else if (heroType ===
|
|
6240
|
+
} else if (heroType === "campaign") {
|
|
6484
6241
|
backgroundImageStyle = backgroundImageSrc ? {
|
|
6485
6242
|
backgroundImage: "url(" + backgroundImageSrc + ")"
|
|
6486
6243
|
} : {
|
|
6487
6244
|
backgroundColor: backgroundColor
|
|
6488
6245
|
};
|
|
6489
|
-
} else if (heroType ===
|
|
6246
|
+
} else if (heroType === "tertiary" || heroType === "fiftyFifty") {
|
|
6490
6247
|
backgroundImageStyle = {
|
|
6491
6248
|
backgroundColor: backgroundColor
|
|
6492
6249
|
};
|
|
6493
6250
|
}
|
|
6494
6251
|
|
|
6495
|
-
if (!
|
|
6252
|
+
if (!heroSecondaryTypes.includes(heroType)) {
|
|
6496
6253
|
contentBoxStyling = {
|
|
6497
6254
|
color: foregroundColor,
|
|
6498
6255
|
backgroundColor: backgroundColor
|
|
6499
6256
|
};
|
|
6500
6257
|
} else if (foregroundColor || backgroundColor) {
|
|
6501
|
-
console.warn("NYPL Reservoir Hero: The `foregroundColor` and/or `backgroundColor` " + "props have been passed, but the `
|
|
6258
|
+
console.warn("NYPL Reservoir Hero: The `foregroundColor` and/or `backgroundColor` " + "props have been passed, but the `'secondary'` `heroType` " + "variant will not use them.");
|
|
6502
6259
|
}
|
|
6503
6260
|
|
|
6504
|
-
var childrenToRender = heroType ===
|
|
6505
|
-
alt:
|
|
6506
|
-
src:
|
|
6261
|
+
var childrenToRender = heroType === "campaign" ? React.createElement(React.Fragment, null, React.createElement(Image, {
|
|
6262
|
+
alt: imageProps.alt,
|
|
6263
|
+
src: imageProps.src
|
|
6507
6264
|
}), React.createElement(react.Box, {
|
|
6508
6265
|
__css: styles.interior
|
|
6509
|
-
}, finalHeading, subHeaderText)) : React.createElement(React.Fragment, null, heroType !==
|
|
6510
|
-
alt:
|
|
6511
|
-
src:
|
|
6512
|
-
}), finalHeading, heroType ===
|
|
6266
|
+
}, finalHeading, subHeaderText)) : React.createElement(React.Fragment, null, heroType !== "primary" && heroType !== "tertiary" && React.createElement(Image, {
|
|
6267
|
+
alt: imageProps.alt,
|
|
6268
|
+
src: imageProps.src
|
|
6269
|
+
}), finalHeading, heroType === "tertiary" && subHeaderText ? React.createElement("p", null, subHeaderText) : React.createElement(react.Box, {
|
|
6513
6270
|
__css: styles.bodyText
|
|
6514
6271
|
}, subHeaderText));
|
|
6515
6272
|
return React.createElement(react.Box, Object.assign({
|
|
@@ -6521,18 +6278,18 @@ var Hero$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
6521
6278
|
"data-testid": "hero-content",
|
|
6522
6279
|
style: contentBoxStyling,
|
|
6523
6280
|
__css: styles.content
|
|
6524
|
-
}, childrenToRender)
|
|
6281
|
+
}, childrenToRender));
|
|
6525
6282
|
}, {
|
|
6526
6283
|
shouldForwardProp: function shouldForwardProp() {
|
|
6527
6284
|
return true;
|
|
6528
6285
|
}
|
|
6529
6286
|
});
|
|
6530
6287
|
|
|
6531
|
-
var _excluded$
|
|
6288
|
+
var _excluded$M = ["align", "className"];
|
|
6532
6289
|
var HorizontalRule$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
6533
6290
|
var align = props.align,
|
|
6534
6291
|
className = props.className,
|
|
6535
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6292
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$M);
|
|
6536
6293
|
|
|
6537
6294
|
var styles = react.useStyleConfig("HorizontalRule", {
|
|
6538
6295
|
align: align
|
|
@@ -6550,13 +6307,7 @@ var HorizontalRule$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
6550
6307
|
}, rest));
|
|
6551
6308
|
});
|
|
6552
6309
|
|
|
6553
|
-
|
|
6554
|
-
ListTypes["Ordered"] = "ol";
|
|
6555
|
-
ListTypes["Unordered"] = "ul";
|
|
6556
|
-
ListTypes["Description"] = "dl";
|
|
6557
|
-
})(exports.ListTypes || (exports.ListTypes = {}));
|
|
6558
|
-
|
|
6559
|
-
var _excluded$M = ["additionalStyles", "children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
|
|
6310
|
+
var _excluded$N = ["children", "className", "id", "inline", "listItems", "noStyling", "title", "type"];
|
|
6560
6311
|
/**
|
|
6561
6312
|
* A component that renders list item `li` elements or description item `dt`
|
|
6562
6313
|
* and `dd` elements based on the `type` prop. Note that the `title` prop will
|
|
@@ -6564,9 +6315,7 @@ var _excluded$M = ["additionalStyles", "children", "className", "id", "inline",
|
|
|
6564
6315
|
*/
|
|
6565
6316
|
|
|
6566
6317
|
var List$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
6567
|
-
var
|
|
6568
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
6569
|
-
children = props.children,
|
|
6318
|
+
var children = props.children,
|
|
6570
6319
|
className = props.className,
|
|
6571
6320
|
id = props.id,
|
|
6572
6321
|
_props$inline = props.inline,
|
|
@@ -6576,21 +6325,18 @@ var List$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
6576
6325
|
noStyling = _props$noStyling === void 0 ? false : _props$noStyling,
|
|
6577
6326
|
title = props.title,
|
|
6578
6327
|
_props$type = props.type,
|
|
6579
|
-
type = _props$type === void 0 ?
|
|
6580
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
6328
|
+
type = _props$type === void 0 ? "ul" : _props$type,
|
|
6329
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$N);
|
|
6581
6330
|
|
|
6582
6331
|
var styles = react.useStyleConfig("List", {
|
|
6583
6332
|
inline: inline,
|
|
6584
6333
|
noStyling: noStyling,
|
|
6585
6334
|
variant: type
|
|
6586
6335
|
});
|
|
6587
|
-
|
|
6588
|
-
var finalStyles = _extends({}, styles, additionalStyles);
|
|
6589
|
-
|
|
6590
6336
|
var listElement = null; // Either li/dt/dd children elements must be passed or the `listItems`
|
|
6591
6337
|
// prop must be used.
|
|
6592
6338
|
|
|
6593
|
-
if (children &&
|
|
6339
|
+
if (children && listItems && (listItems == null ? void 0 : listItems.length) > 0) {
|
|
6594
6340
|
console.warn("NYPL Reservoir List: Pass in either `<li>`, `<dt>`, or `<dd>` " + "children or use the `listItems` data prop. Do not use both.");
|
|
6595
6341
|
return null;
|
|
6596
6342
|
}
|
|
@@ -6602,9 +6348,9 @@ var List$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
6602
6348
|
/**
|
|
6603
6349
|
* This returns either the `children` elements passed to the `List` component
|
|
6604
6350
|
* first, otherwise it will check and render the data passed into the
|
|
6605
|
-
* `listItems` props based on the `ListType` type. If it is of type
|
|
6606
|
-
* or
|
|
6607
|
-
* combination of `dt` and `dd` elements for the
|
|
6351
|
+
* `listItems` props based on the `ListType` type. If it is of type unordered
|
|
6352
|
+
* or ordered, it will return `li` elements. Otherwise, it will return a
|
|
6353
|
+
* combination of `dt` and `dd` elements for the description type.
|
|
6608
6354
|
*/
|
|
6609
6355
|
|
|
6610
6356
|
|
|
@@ -6613,13 +6359,17 @@ var List$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
6613
6359
|
return children;
|
|
6614
6360
|
}
|
|
6615
6361
|
|
|
6616
|
-
if (
|
|
6362
|
+
if (!listItems) {
|
|
6363
|
+
return null;
|
|
6364
|
+
}
|
|
6365
|
+
|
|
6366
|
+
if (listType === "ol" || listType === "ul") {
|
|
6617
6367
|
return listItems.map(function (item, i) {
|
|
6618
6368
|
return React.createElement("li", {
|
|
6619
6369
|
key: i
|
|
6620
6370
|
}, item);
|
|
6621
6371
|
});
|
|
6622
|
-
} else if (listType ===
|
|
6372
|
+
} else if (listType === "dl") {
|
|
6623
6373
|
return listItems.map(function (item, i) {
|
|
6624
6374
|
return [React.createElement("dt", {
|
|
6625
6375
|
key: i + "-term"
|
|
@@ -6660,90 +6410,32 @@ var List$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
6660
6410
|
});
|
|
6661
6411
|
};
|
|
6662
6412
|
|
|
6663
|
-
if (type ===
|
|
6413
|
+
if (type === "ol" || type === "ul") {
|
|
6664
6414
|
checkListChildrenError(type);
|
|
6665
6415
|
listElement = React.createElement(react.Box, Object.assign({
|
|
6666
6416
|
as: type,
|
|
6667
6417
|
id: id,
|
|
6668
6418
|
className: className,
|
|
6669
|
-
__css:
|
|
6419
|
+
__css: styles
|
|
6670
6420
|
}, rest), listChildrenElms(type));
|
|
6671
|
-
} else if (type ===
|
|
6421
|
+
} else if (type === "dl") {
|
|
6672
6422
|
checkDescriptionChildrenError();
|
|
6673
6423
|
listElement = React.createElement(react.Box, Object.assign({
|
|
6674
6424
|
as: "section",
|
|
6675
6425
|
id: id,
|
|
6676
6426
|
className: className,
|
|
6677
|
-
__css:
|
|
6427
|
+
__css: styles
|
|
6678
6428
|
}, rest), title && React.createElement(Heading, {
|
|
6679
|
-
id: id + "-heading"
|
|
6680
|
-
level: exports.HeadingLevels.Two
|
|
6429
|
+
id: id + "-heading"
|
|
6681
6430
|
}, title), React.createElement("dl", null, listChildrenElms(type)));
|
|
6682
6431
|
}
|
|
6683
6432
|
|
|
6684
6433
|
return listElement;
|
|
6685
6434
|
});
|
|
6686
6435
|
|
|
6687
|
-
(function (LogoColors) {
|
|
6688
|
-
LogoColors["Default"] = "";
|
|
6689
|
-
LogoColors["UiBlack"] = "ui.black";
|
|
6690
|
-
LogoColors["UiWhite"] = "ui.white";
|
|
6691
|
-
})(exports.LogoColors || (exports.LogoColors = {}));
|
|
6692
|
-
|
|
6693
|
-
(function (LogoSizes) {
|
|
6694
|
-
LogoSizes["Default"] = "default";
|
|
6695
|
-
LogoSizes["ExtraExtraSmall"] = "xxsmall";
|
|
6696
|
-
LogoSizes["ExtraSmall"] = "xsmall";
|
|
6697
|
-
LogoSizes["Small"] = "small";
|
|
6698
|
-
LogoSizes["Medium"] = "medium";
|
|
6699
|
-
LogoSizes["Large"] = "large";
|
|
6700
|
-
})(exports.LogoSizes || (exports.LogoSizes = {}));
|
|
6701
|
-
|
|
6702
|
-
(function (LogoNames) {
|
|
6703
|
-
LogoNames["BrooklynPublicLibraryBlack"] = "logo_bpl_black";
|
|
6704
|
-
LogoNames["BrooklynPublicLibraryWhite"] = "logo_bpl_white";
|
|
6705
|
-
LogoNames["CleverColor"] = "logo_clever_color";
|
|
6706
|
-
LogoNames["CleverWhite"] = "logo_clever_white";
|
|
6707
|
-
LogoNames["FirstBookColor"] = "logo_firstbook_color";
|
|
6708
|
-
LogoNames["FirstBookColorNegative"] = "logo_firstbook_color_negative";
|
|
6709
|
-
LogoNames["LPAColor"] = "logo_lpa_color";
|
|
6710
|
-
LogoNames["LPABlack"] = "logo_lpa_black";
|
|
6711
|
-
LogoNames["LPAWhite"] = "logo_lpa_white";
|
|
6712
|
-
LogoNames["MyLibraryNYCBlack"] = "logo_mln_black";
|
|
6713
|
-
LogoNames["MyLibraryNYCWhite"] = "logo_mln_white";
|
|
6714
|
-
LogoNames["NYPLBlack"] = "logo_nypl_full_black";
|
|
6715
|
-
LogoNames["NYPLWhite"] = "logo_nypl_full_white";
|
|
6716
|
-
LogoNames["NYPLLionBlack"] = "logo_nypl_lion_black";
|
|
6717
|
-
LogoNames["NYPLLionWhite"] = "logo_nypl_lion_white";
|
|
6718
|
-
LogoNames["OpenEBooksColor"] = "logo_openebooks_color";
|
|
6719
|
-
LogoNames["OpenEBooksNegative"] = "logo_openebooks_negative";
|
|
6720
|
-
LogoNames["OpenEBooksWithTextColor"] = "logo_openebooks_wtext_color";
|
|
6721
|
-
LogoNames["OpenEBooksWithTextNegative"] = "logo_openebooks_wtext_negative";
|
|
6722
|
-
LogoNames["QueensPublicLibraryColor"] = "logo_qpl_color";
|
|
6723
|
-
LogoNames["QueensPublicLibraryBlack"] = "logo_qpl_black";
|
|
6724
|
-
LogoNames["QueensPublicLibraryWhite"] = "logo_qpl_white";
|
|
6725
|
-
LogoNames["QueensPublicLibraryAltBlack"] = "logo_qpl_alt_black";
|
|
6726
|
-
LogoNames["QueensPublicLibraryAltWhite"] = "logo_qpl_alt_white";
|
|
6727
|
-
LogoNames["ReservoirIconColor"] = "logo_reservoir_icon_color";
|
|
6728
|
-
LogoNames["ReservoirVerticalColor"] = "logo_reservoir_vertical_color";
|
|
6729
|
-
LogoNames["SchomburgColor"] = "logo_schomburg_color";
|
|
6730
|
-
LogoNames["SchomburgBlack"] = "logo_schomburg_black";
|
|
6731
|
-
LogoNames["SchomburgWhite"] = "logo_schomburg_white";
|
|
6732
|
-
LogoNames["SchomburgCircleColor"] = "logo_schomburg_circle_color";
|
|
6733
|
-
LogoNames["SchomburgCircleBlack"] = "logo_schomburg_circle_black";
|
|
6734
|
-
LogoNames["SchomburgCircleWhite"] = "logo_schomburg_circle_white";
|
|
6735
|
-
LogoNames["SimplyEColor"] = "logo_simplye_color";
|
|
6736
|
-
LogoNames["SimplyEBlack"] = "logo_simplye_black";
|
|
6737
|
-
LogoNames["SimplyEWhite"] = "logo_simplye_white";
|
|
6738
|
-
LogoNames["SNFLBlack"] = "logo_snfl_black";
|
|
6739
|
-
LogoNames["SNFLWhite"] = "logo_snfl_white";
|
|
6740
|
-
LogoNames["TreasuresColor"] = "logo_treasures_color";
|
|
6741
|
-
LogoNames["TreasuresColorNegative"] = "logo_treasures_color_negative";
|
|
6742
|
-
})(exports.LogoNames || (exports.LogoNames = {}));
|
|
6743
|
-
|
|
6744
6436
|
var _path$r, _path2$b, _path3$7;
|
|
6745
6437
|
|
|
6746
|
-
var _excluded$
|
|
6438
|
+
var _excluded$O = ["title", "titleId"];
|
|
6747
6439
|
|
|
6748
6440
|
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); }
|
|
6749
6441
|
|
|
@@ -6754,7 +6446,7 @@ function _objectWithoutPropertiesLoose$u(source, excluded) { if (source == null)
|
|
|
6754
6446
|
function SvgLogoBplBlack(_ref) {
|
|
6755
6447
|
var title = _ref.title,
|
|
6756
6448
|
titleId = _ref.titleId,
|
|
6757
|
-
props = _objectWithoutProperties$t(_ref, _excluded$
|
|
6449
|
+
props = _objectWithoutProperties$t(_ref, _excluded$O);
|
|
6758
6450
|
|
|
6759
6451
|
return /*#__PURE__*/React.createElement("svg", _extends$u({
|
|
6760
6452
|
viewBox: "0 0 328 120",
|
|
@@ -6773,7 +6465,7 @@ function SvgLogoBplBlack(_ref) {
|
|
|
6773
6465
|
|
|
6774
6466
|
var _path$s, _path2$c, _path3$8;
|
|
6775
6467
|
|
|
6776
|
-
var _excluded$
|
|
6468
|
+
var _excluded$P = ["title", "titleId"];
|
|
6777
6469
|
|
|
6778
6470
|
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); }
|
|
6779
6471
|
|
|
@@ -6784,7 +6476,7 @@ function _objectWithoutPropertiesLoose$v(source, excluded) { if (source == null)
|
|
|
6784
6476
|
function SvgLogoBplWhite(_ref) {
|
|
6785
6477
|
var title = _ref.title,
|
|
6786
6478
|
titleId = _ref.titleId,
|
|
6787
|
-
props = _objectWithoutProperties$u(_ref, _excluded$
|
|
6479
|
+
props = _objectWithoutProperties$u(_ref, _excluded$P);
|
|
6788
6480
|
|
|
6789
6481
|
return /*#__PURE__*/React.createElement("svg", _extends$v({
|
|
6790
6482
|
viewBox: "0 0 328 120",
|
|
@@ -6804,7 +6496,7 @@ function SvgLogoBplWhite(_ref) {
|
|
|
6804
6496
|
|
|
6805
6497
|
var _path$t;
|
|
6806
6498
|
|
|
6807
|
-
var _excluded$
|
|
6499
|
+
var _excluded$Q = ["title", "titleId"];
|
|
6808
6500
|
|
|
6809
6501
|
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); }
|
|
6810
6502
|
|
|
@@ -6815,7 +6507,7 @@ function _objectWithoutPropertiesLoose$w(source, excluded) { if (source == null)
|
|
|
6815
6507
|
function SvgLogoCleverColor(_ref) {
|
|
6816
6508
|
var title = _ref.title,
|
|
6817
6509
|
titleId = _ref.titleId,
|
|
6818
|
-
props = _objectWithoutProperties$v(_ref, _excluded$
|
|
6510
|
+
props = _objectWithoutProperties$v(_ref, _excluded$Q);
|
|
6819
6511
|
|
|
6820
6512
|
return /*#__PURE__*/React.createElement("svg", _extends$w({
|
|
6821
6513
|
viewBox: "0 0 312 88",
|
|
@@ -6833,7 +6525,7 @@ function SvgLogoCleverColor(_ref) {
|
|
|
6833
6525
|
|
|
6834
6526
|
var _path$u;
|
|
6835
6527
|
|
|
6836
|
-
var _excluded$
|
|
6528
|
+
var _excluded$R = ["title", "titleId"];
|
|
6837
6529
|
|
|
6838
6530
|
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); }
|
|
6839
6531
|
|
|
@@ -6844,7 +6536,7 @@ function _objectWithoutPropertiesLoose$x(source, excluded) { if (source == null)
|
|
|
6844
6536
|
function SvgLogoCleverWhite(_ref) {
|
|
6845
6537
|
var title = _ref.title,
|
|
6846
6538
|
titleId = _ref.titleId,
|
|
6847
|
-
props = _objectWithoutProperties$w(_ref, _excluded$
|
|
6539
|
+
props = _objectWithoutProperties$w(_ref, _excluded$R);
|
|
6848
6540
|
|
|
6849
6541
|
return /*#__PURE__*/React.createElement("svg", _extends$x({
|
|
6850
6542
|
viewBox: "0 0 312 88",
|
|
@@ -6862,7 +6554,7 @@ function SvgLogoCleverWhite(_ref) {
|
|
|
6862
6554
|
|
|
6863
6555
|
var _path$v, _path2$d, _path3$9, _path4$1, _path5, _path6, _path7, _path8, _path9, _path10, _path11, _path12, _path13;
|
|
6864
6556
|
|
|
6865
|
-
var _excluded$
|
|
6557
|
+
var _excluded$S = ["title", "titleId"];
|
|
6866
6558
|
|
|
6867
6559
|
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); }
|
|
6868
6560
|
|
|
@@ -6873,7 +6565,7 @@ function _objectWithoutPropertiesLoose$y(source, excluded) { if (source == null)
|
|
|
6873
6565
|
function SvgLogoFirstbookColor(_ref) {
|
|
6874
6566
|
var title = _ref.title,
|
|
6875
6567
|
titleId = _ref.titleId,
|
|
6876
|
-
props = _objectWithoutProperties$x(_ref, _excluded$
|
|
6568
|
+
props = _objectWithoutProperties$x(_ref, _excluded$S);
|
|
6877
6569
|
|
|
6878
6570
|
return /*#__PURE__*/React.createElement("svg", _extends$y({
|
|
6879
6571
|
viewBox: "0 0 172 152",
|
|
@@ -6926,7 +6618,7 @@ function SvgLogoFirstbookColor(_ref) {
|
|
|
6926
6618
|
|
|
6927
6619
|
var _g;
|
|
6928
6620
|
|
|
6929
|
-
var _excluded$
|
|
6621
|
+
var _excluded$T = ["title", "titleId"];
|
|
6930
6622
|
|
|
6931
6623
|
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); }
|
|
6932
6624
|
|
|
@@ -6937,7 +6629,7 @@ function _objectWithoutPropertiesLoose$z(source, excluded) { if (source == null)
|
|
|
6937
6629
|
function SvgLogoFirstbookColorNegative(_ref) {
|
|
6938
6630
|
var title = _ref.title,
|
|
6939
6631
|
titleId = _ref.titleId,
|
|
6940
|
-
props = _objectWithoutProperties$y(_ref, _excluded$
|
|
6632
|
+
props = _objectWithoutProperties$y(_ref, _excluded$T);
|
|
6941
6633
|
|
|
6942
6634
|
return /*#__PURE__*/React.createElement("svg", _extends$z({
|
|
6943
6635
|
viewBox: "0 0 170 150",
|
|
@@ -6947,7 +6639,7 @@ function SvgLogoFirstbookColorNegative(_ref) {
|
|
|
6947
6639
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
6948
6640
|
id: titleId
|
|
6949
6641
|
}, title) : null, _g || (_g = /*#__PURE__*/React.createElement("g", {
|
|
6950
|
-
clipPath: "url(#
|
|
6642
|
+
clipPath: "url(#logo-firstbook-color-negative_svg__clip0_50221_35656)"
|
|
6951
6643
|
}, /*#__PURE__*/React.createElement("path", {
|
|
6952
6644
|
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",
|
|
6953
6645
|
fill: "#fff"
|
|
@@ -6995,7 +6687,7 @@ function SvgLogoFirstbookColorNegative(_ref) {
|
|
|
6995
6687
|
|
|
6996
6688
|
var _path$w, _path2$e;
|
|
6997
6689
|
|
|
6998
|
-
var _excluded$
|
|
6690
|
+
var _excluded$U = ["title", "titleId"];
|
|
6999
6691
|
|
|
7000
6692
|
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); }
|
|
7001
6693
|
|
|
@@ -7006,7 +6698,7 @@ function _objectWithoutPropertiesLoose$A(source, excluded) { if (source == null)
|
|
|
7006
6698
|
function SvgLogoLpaColor(_ref) {
|
|
7007
6699
|
var title = _ref.title,
|
|
7008
6700
|
titleId = _ref.titleId,
|
|
7009
|
-
props = _objectWithoutProperties$z(_ref, _excluded$
|
|
6701
|
+
props = _objectWithoutProperties$z(_ref, _excluded$U);
|
|
7010
6702
|
|
|
7011
6703
|
return /*#__PURE__*/React.createElement("svg", _extends$A({
|
|
7012
6704
|
viewBox: "0 0 186 74",
|
|
@@ -7026,7 +6718,7 @@ function SvgLogoLpaColor(_ref) {
|
|
|
7026
6718
|
|
|
7027
6719
|
var _path$x;
|
|
7028
6720
|
|
|
7029
|
-
var _excluded$
|
|
6721
|
+
var _excluded$V = ["title", "titleId"];
|
|
7030
6722
|
|
|
7031
6723
|
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); }
|
|
7032
6724
|
|
|
@@ -7037,7 +6729,7 @@ function _objectWithoutPropertiesLoose$B(source, excluded) { if (source == null)
|
|
|
7037
6729
|
function SvgLogoLpaBlack(_ref) {
|
|
7038
6730
|
var title = _ref.title,
|
|
7039
6731
|
titleId = _ref.titleId,
|
|
7040
|
-
props = _objectWithoutProperties$A(_ref, _excluded$
|
|
6732
|
+
props = _objectWithoutProperties$A(_ref, _excluded$V);
|
|
7041
6733
|
|
|
7042
6734
|
return /*#__PURE__*/React.createElement("svg", _extends$B({
|
|
7043
6735
|
viewBox: "0 0 186 74",
|
|
@@ -7052,7 +6744,7 @@ function SvgLogoLpaBlack(_ref) {
|
|
|
7052
6744
|
|
|
7053
6745
|
var _path$y;
|
|
7054
6746
|
|
|
7055
|
-
var _excluded$
|
|
6747
|
+
var _excluded$W = ["title", "titleId"];
|
|
7056
6748
|
|
|
7057
6749
|
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); }
|
|
7058
6750
|
|
|
@@ -7063,7 +6755,7 @@ function _objectWithoutPropertiesLoose$C(source, excluded) { if (source == null)
|
|
|
7063
6755
|
function SvgLogoLpaWhite(_ref) {
|
|
7064
6756
|
var title = _ref.title,
|
|
7065
6757
|
titleId = _ref.titleId,
|
|
7066
|
-
props = _objectWithoutProperties$B(_ref, _excluded$
|
|
6758
|
+
props = _objectWithoutProperties$B(_ref, _excluded$W);
|
|
7067
6759
|
|
|
7068
6760
|
return /*#__PURE__*/React.createElement("svg", _extends$C({
|
|
7069
6761
|
viewBox: "0 0 186 74",
|
|
@@ -7079,7 +6771,7 @@ function SvgLogoLpaWhite(_ref) {
|
|
|
7079
6771
|
|
|
7080
6772
|
var _g$1;
|
|
7081
6773
|
|
|
7082
|
-
var _excluded$
|
|
6774
|
+
var _excluded$X = ["title", "titleId"];
|
|
7083
6775
|
|
|
7084
6776
|
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); }
|
|
7085
6777
|
|
|
@@ -7090,7 +6782,7 @@ function _objectWithoutPropertiesLoose$D(source, excluded) { if (source == null)
|
|
|
7090
6782
|
function SvgLogoMlnBlack(_ref) {
|
|
7091
6783
|
var title = _ref.title,
|
|
7092
6784
|
titleId = _ref.titleId,
|
|
7093
|
-
props = _objectWithoutProperties$C(_ref, _excluded$
|
|
6785
|
+
props = _objectWithoutProperties$C(_ref, _excluded$X);
|
|
7094
6786
|
|
|
7095
6787
|
return /*#__PURE__*/React.createElement("svg", _extends$D({
|
|
7096
6788
|
viewBox: "0 0 300 71",
|
|
@@ -7099,7 +6791,7 @@ function SvgLogoMlnBlack(_ref) {
|
|
|
7099
6791
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7100
6792
|
id: titleId
|
|
7101
6793
|
}, title) : null, _g$1 || (_g$1 = /*#__PURE__*/React.createElement("g", {
|
|
7102
|
-
clipPath: "url(#
|
|
6794
|
+
clipPath: "url(#logo-mln-black_svg__clip0_51609_40290)"
|
|
7103
6795
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7104
6796
|
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"
|
|
7105
6797
|
}))));
|
|
@@ -7107,7 +6799,7 @@ function SvgLogoMlnBlack(_ref) {
|
|
|
7107
6799
|
|
|
7108
6800
|
var _g$2;
|
|
7109
6801
|
|
|
7110
|
-
var _excluded$
|
|
6802
|
+
var _excluded$Y = ["title", "titleId"];
|
|
7111
6803
|
|
|
7112
6804
|
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); }
|
|
7113
6805
|
|
|
@@ -7118,7 +6810,7 @@ function _objectWithoutPropertiesLoose$E(source, excluded) { if (source == null)
|
|
|
7118
6810
|
function SvgLogoMlnWhite(_ref) {
|
|
7119
6811
|
var title = _ref.title,
|
|
7120
6812
|
titleId = _ref.titleId,
|
|
7121
|
-
props = _objectWithoutProperties$D(_ref, _excluded$
|
|
6813
|
+
props = _objectWithoutProperties$D(_ref, _excluded$Y);
|
|
7122
6814
|
|
|
7123
6815
|
return /*#__PURE__*/React.createElement("svg", _extends$E({
|
|
7124
6816
|
viewBox: "0 0 300 71",
|
|
@@ -7128,7 +6820,7 @@ function SvgLogoMlnWhite(_ref) {
|
|
|
7128
6820
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7129
6821
|
id: titleId
|
|
7130
6822
|
}, title) : null, _g$2 || (_g$2 = /*#__PURE__*/React.createElement("g", {
|
|
7131
|
-
clipPath: "url(#
|
|
6823
|
+
clipPath: "url(#logo-mln-white_svg__clip0_51609_40290)"
|
|
7132
6824
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7133
6825
|
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"
|
|
7134
6826
|
}))));
|
|
@@ -7136,7 +6828,7 @@ function SvgLogoMlnWhite(_ref) {
|
|
|
7136
6828
|
|
|
7137
6829
|
var _path$z, _path2$f, _path3$a, _path4$2, _path5$1, _path6$1, _path7$1;
|
|
7138
6830
|
|
|
7139
|
-
var _excluded$
|
|
6831
|
+
var _excluded$Z = ["title", "titleId"];
|
|
7140
6832
|
|
|
7141
6833
|
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); }
|
|
7142
6834
|
|
|
@@ -7147,7 +6839,7 @@ function _objectWithoutPropertiesLoose$F(source, excluded) { if (source == null)
|
|
|
7147
6839
|
function SvgLogoNyplFullBlack(_ref) {
|
|
7148
6840
|
var title = _ref.title,
|
|
7149
6841
|
titleId = _ref.titleId,
|
|
7150
|
-
props = _objectWithoutProperties$E(_ref, _excluded$
|
|
6842
|
+
props = _objectWithoutProperties$E(_ref, _excluded$Z);
|
|
7151
6843
|
|
|
7152
6844
|
return /*#__PURE__*/React.createElement("svg", _extends$F({
|
|
7153
6845
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7178,7 +6870,7 @@ function SvgLogoNyplFullBlack(_ref) {
|
|
|
7178
6870
|
|
|
7179
6871
|
var _g$3, _defs;
|
|
7180
6872
|
|
|
7181
|
-
var _excluded$
|
|
6873
|
+
var _excluded$_ = ["title", "titleId"];
|
|
7182
6874
|
|
|
7183
6875
|
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); }
|
|
7184
6876
|
|
|
@@ -7189,7 +6881,7 @@ function _objectWithoutPropertiesLoose$G(source, excluded) { if (source == null)
|
|
|
7189
6881
|
function SvgLogoNyplFullWhite(_ref) {
|
|
7190
6882
|
var title = _ref.title,
|
|
7191
6883
|
titleId = _ref.titleId,
|
|
7192
|
-
props = _objectWithoutProperties$F(_ref, _excluded$
|
|
6884
|
+
props = _objectWithoutProperties$F(_ref, _excluded$_);
|
|
7193
6885
|
|
|
7194
6886
|
return /*#__PURE__*/React.createElement("svg", _extends$G({
|
|
7195
6887
|
viewBox: "0 0 967 568",
|
|
@@ -7199,7 +6891,7 @@ function SvgLogoNyplFullWhite(_ref) {
|
|
|
7199
6891
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7200
6892
|
id: titleId
|
|
7201
6893
|
}, title) : null, _g$3 || (_g$3 = /*#__PURE__*/React.createElement("g", {
|
|
7202
|
-
clipPath: "url(#
|
|
6894
|
+
clipPath: "url(#logo-nypl-full-white_svg__clip0_1147_1139)",
|
|
7203
6895
|
fill: "#fff"
|
|
7204
6896
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7205
6897
|
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"
|
|
@@ -7210,7 +6902,7 @@ function SvgLogoNyplFullWhite(_ref) {
|
|
|
7210
6902
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7211
6903
|
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"
|
|
7212
6904
|
}))), _defs || (_defs = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
7213
|
-
id: "
|
|
6905
|
+
id: "logo-nypl-full-white_svg__clip0_1147_1139"
|
|
7214
6906
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7215
6907
|
fill: "#fff",
|
|
7216
6908
|
d: "M0 0h966.773v567.413H0z"
|
|
@@ -7219,7 +6911,7 @@ function SvgLogoNyplFullWhite(_ref) {
|
|
|
7219
6911
|
|
|
7220
6912
|
var _path$A, _path2$g, _path3$b;
|
|
7221
6913
|
|
|
7222
|
-
var _excluded
|
|
6914
|
+
var _excluded$$ = ["title", "titleId"];
|
|
7223
6915
|
|
|
7224
6916
|
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); }
|
|
7225
6917
|
|
|
@@ -7230,7 +6922,7 @@ function _objectWithoutPropertiesLoose$H(source, excluded) { if (source == null)
|
|
|
7230
6922
|
function SvgLogoNyplLionBlack(_ref) {
|
|
7231
6923
|
var title = _ref.title,
|
|
7232
6924
|
titleId = _ref.titleId,
|
|
7233
|
-
props = _objectWithoutProperties$G(_ref, _excluded
|
|
6925
|
+
props = _objectWithoutProperties$G(_ref, _excluded$$);
|
|
7234
6926
|
|
|
7235
6927
|
return /*#__PURE__*/React.createElement("svg", _extends$H({
|
|
7236
6928
|
viewBox: "0 0 136 135",
|
|
@@ -7255,7 +6947,7 @@ function SvgLogoNyplLionBlack(_ref) {
|
|
|
7255
6947
|
|
|
7256
6948
|
var _path$B, _mask, _g$4;
|
|
7257
6949
|
|
|
7258
|
-
var _excluded
|
|
6950
|
+
var _excluded$10 = ["title", "titleId"];
|
|
7259
6951
|
|
|
7260
6952
|
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); }
|
|
7261
6953
|
|
|
@@ -7266,7 +6958,7 @@ function _objectWithoutPropertiesLoose$I(source, excluded) { if (source == null)
|
|
|
7266
6958
|
function SvgLogoNyplLionWhite(_ref) {
|
|
7267
6959
|
var title = _ref.title,
|
|
7268
6960
|
titleId = _ref.titleId,
|
|
7269
|
-
props = _objectWithoutProperties$H(_ref, _excluded
|
|
6961
|
+
props = _objectWithoutProperties$H(_ref, _excluded$10);
|
|
7270
6962
|
|
|
7271
6963
|
return /*#__PURE__*/React.createElement("svg", _extends$I({
|
|
7272
6964
|
viewBox: "0 0 125 126",
|
|
@@ -7280,7 +6972,7 @@ function SvgLogoNyplLionWhite(_ref) {
|
|
|
7280
6972
|
clipRule: "evenodd",
|
|
7281
6973
|
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"
|
|
7282
6974
|
})), _mask || (_mask = /*#__PURE__*/React.createElement("mask", {
|
|
7283
|
-
id: "
|
|
6975
|
+
id: "logo-nypl-lion-white_svg__a",
|
|
7284
6976
|
maskUnits: "userSpaceOnUse",
|
|
7285
6977
|
x: 0,
|
|
7286
6978
|
y: 0,
|
|
@@ -7291,7 +6983,7 @@ function SvgLogoNyplLionWhite(_ref) {
|
|
|
7291
6983
|
clipRule: "evenodd",
|
|
7292
6984
|
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"
|
|
7293
6985
|
}))), _g$4 || (_g$4 = /*#__PURE__*/React.createElement("g", {
|
|
7294
|
-
mask: "url(#
|
|
6986
|
+
mask: "url(#logo-nypl-lion-white_svg__a)"
|
|
7295
6987
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7296
6988
|
d: "M0-.994h125v126H0z"
|
|
7297
6989
|
}))));
|
|
@@ -7299,7 +6991,7 @@ function SvgLogoNyplLionWhite(_ref) {
|
|
|
7299
6991
|
|
|
7300
6992
|
var _g$5, _defs$1;
|
|
7301
6993
|
|
|
7302
|
-
var _excluded$
|
|
6994
|
+
var _excluded$11 = ["title", "titleId"];
|
|
7303
6995
|
|
|
7304
6996
|
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); }
|
|
7305
6997
|
|
|
@@ -7310,7 +7002,7 @@ function _objectWithoutPropertiesLoose$J(source, excluded) { if (source == null)
|
|
|
7310
7002
|
function SvgLogoOpenebooksColor(_ref) {
|
|
7311
7003
|
var title = _ref.title,
|
|
7312
7004
|
titleId = _ref.titleId,
|
|
7313
|
-
props = _objectWithoutProperties$I(_ref, _excluded$
|
|
7005
|
+
props = _objectWithoutProperties$I(_ref, _excluded$11);
|
|
7314
7006
|
|
|
7315
7007
|
return /*#__PURE__*/React.createElement("svg", _extends$J({
|
|
7316
7008
|
viewBox: "0 0 152 139",
|
|
@@ -7320,18 +7012,18 @@ function SvgLogoOpenebooksColor(_ref) {
|
|
|
7320
7012
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7321
7013
|
id: titleId
|
|
7322
7014
|
}, title) : null, _g$5 || (_g$5 = /*#__PURE__*/React.createElement("g", {
|
|
7323
|
-
clipPath: "url(#
|
|
7015
|
+
clipPath: "url(#logo-openebooks-color_svg__clip0_53471_41906)"
|
|
7324
7016
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7325
7017
|
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",
|
|
7326
7018
|
fill: "#012F53"
|
|
7327
7019
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7328
7020
|
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",
|
|
7329
|
-
fill: "url(#
|
|
7021
|
+
fill: "url(#logo-openebooks-color_svg__paint0_linear_53471_41906)"
|
|
7330
7022
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7331
7023
|
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",
|
|
7332
7024
|
fill: "#fff"
|
|
7333
7025
|
}))), _defs$1 || (_defs$1 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
7334
|
-
id: "
|
|
7026
|
+
id: "logo-openebooks-color_svg__paint0_linear_53471_41906",
|
|
7335
7027
|
x1: 76.519,
|
|
7336
7028
|
y1: 132.496,
|
|
7337
7029
|
x2: 75.513,
|
|
@@ -7360,7 +7052,7 @@ function SvgLogoOpenebooksColor(_ref) {
|
|
|
7360
7052
|
|
|
7361
7053
|
var _g$6, _defs$2;
|
|
7362
7054
|
|
|
7363
|
-
var _excluded$
|
|
7055
|
+
var _excluded$12 = ["title", "titleId"];
|
|
7364
7056
|
|
|
7365
7057
|
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); }
|
|
7366
7058
|
|
|
@@ -7371,7 +7063,7 @@ function _objectWithoutPropertiesLoose$K(source, excluded) { if (source == null)
|
|
|
7371
7063
|
function SvgLogoOpenebooksNegative(_ref) {
|
|
7372
7064
|
var title = _ref.title,
|
|
7373
7065
|
titleId = _ref.titleId,
|
|
7374
|
-
props = _objectWithoutProperties$J(_ref, _excluded$
|
|
7066
|
+
props = _objectWithoutProperties$J(_ref, _excluded$12);
|
|
7375
7067
|
|
|
7376
7068
|
return /*#__PURE__*/React.createElement("svg", _extends$K({
|
|
7377
7069
|
viewBox: "0 0 155 139",
|
|
@@ -7381,24 +7073,24 @@ function SvgLogoOpenebooksNegative(_ref) {
|
|
|
7381
7073
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7382
7074
|
id: titleId
|
|
7383
7075
|
}, title) : null, _g$6 || (_g$6 = /*#__PURE__*/React.createElement("g", {
|
|
7384
|
-
clipPath: "url(#
|
|
7076
|
+
clipPath: "url(#logo-openebooks-negative_svg__clip0_54498_42323)"
|
|
7385
7077
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7386
7078
|
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",
|
|
7387
7079
|
fill: "#fff"
|
|
7388
7080
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7389
7081
|
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",
|
|
7390
|
-
fill: "url(#
|
|
7082
|
+
fill: "url(#logo-openebooks-negative_svg__paint0_linear_54498_42323)"
|
|
7391
7083
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7392
7084
|
d: "M147.325 106.011c-36.336-17.126-64.97 0-64.97 0V16.268s28.603-17.128 64.97 0v89.743z",
|
|
7393
7085
|
fill: "#0B1F31"
|
|
7394
7086
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7395
7087
|
d: "M54.346 10.793C11.75 6.924 0 23.627 0 23.627v97.554s11.75-16.705 54.346-12.834V10.793z",
|
|
7396
|
-
fill: "url(#
|
|
7088
|
+
fill: "url(#logo-openebooks-negative_svg__paint1_linear_54498_42323)"
|
|
7397
7089
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7398
7090
|
d: "M8.52 106.014c36.338-17.129 64.973 0 64.973 0V16.266s-28.604-17.124-64.972 0v89.748z",
|
|
7399
7091
|
fill: "#0B1F31"
|
|
7400
7092
|
}))), _defs$2 || (_defs$2 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
7401
|
-
id: "
|
|
7093
|
+
id: "logo-openebooks-negative_svg__paint0_linear_54498_42323",
|
|
7402
7094
|
x1: 127.8,
|
|
7403
7095
|
y1: 121.19,
|
|
7404
7096
|
x2: 127.8,
|
|
@@ -7419,7 +7111,7 @@ function SvgLogoOpenebooksNegative(_ref) {
|
|
|
7419
7111
|
offset: 1,
|
|
7420
7112
|
stopColor: "#fff"
|
|
7421
7113
|
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
7422
|
-
id: "
|
|
7114
|
+
id: "logo-openebooks-negative_svg__paint1_linear_54498_42323",
|
|
7423
7115
|
x1: 27.173,
|
|
7424
7116
|
y1: 121.181,
|
|
7425
7117
|
x2: 27.173,
|
|
@@ -7444,7 +7136,7 @@ function SvgLogoOpenebooksNegative(_ref) {
|
|
|
7444
7136
|
|
|
7445
7137
|
var _g$7, _defs$3;
|
|
7446
7138
|
|
|
7447
|
-
var _excluded$
|
|
7139
|
+
var _excluded$13 = ["title", "titleId"];
|
|
7448
7140
|
|
|
7449
7141
|
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); }
|
|
7450
7142
|
|
|
@@ -7452,10 +7144,10 @@ function _objectWithoutProperties$K(source, excluded) { if (source == null) retu
|
|
|
7452
7144
|
|
|
7453
7145
|
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; }
|
|
7454
7146
|
|
|
7455
|
-
function
|
|
7147
|
+
function SvgLogoOpenebooksWithTextColor(_ref) {
|
|
7456
7148
|
var title = _ref.title,
|
|
7457
7149
|
titleId = _ref.titleId,
|
|
7458
|
-
props = _objectWithoutProperties$K(_ref, _excluded$
|
|
7150
|
+
props = _objectWithoutProperties$K(_ref, _excluded$13);
|
|
7459
7151
|
|
|
7460
7152
|
return /*#__PURE__*/React.createElement("svg", _extends$L({
|
|
7461
7153
|
viewBox: "0 0 152 139",
|
|
@@ -7465,18 +7157,18 @@ function SvgLogoOpenebooksWtextColor(_ref) {
|
|
|
7465
7157
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7466
7158
|
id: titleId
|
|
7467
7159
|
}, title) : null, _g$7 || (_g$7 = /*#__PURE__*/React.createElement("g", {
|
|
7468
|
-
clipPath: "url(#
|
|
7160
|
+
clipPath: "url(#logo-openebooks-with-text-color_svg__clip0_53471_41905)"
|
|
7469
7161
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7470
7162
|
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",
|
|
7471
7163
|
fill: "#012F53"
|
|
7472
7164
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7473
7165
|
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",
|
|
7474
|
-
fill: "url(#
|
|
7166
|
+
fill: "url(#logo-openebooks-with-text-color_svg__paint0_linear_53471_41905)"
|
|
7475
7167
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7476
7168
|
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",
|
|
7477
7169
|
fill: "#fff"
|
|
7478
7170
|
}))), _defs$3 || (_defs$3 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
7479
|
-
id: "
|
|
7171
|
+
id: "logo-openebooks-with-text-color_svg__paint0_linear_53471_41905",
|
|
7480
7172
|
x1: 76.519,
|
|
7481
7173
|
y1: 132.496,
|
|
7482
7174
|
x2: 75.513,
|
|
@@ -7505,7 +7197,7 @@ function SvgLogoOpenebooksWtextColor(_ref) {
|
|
|
7505
7197
|
|
|
7506
7198
|
var _g$8, _defs$4;
|
|
7507
7199
|
|
|
7508
|
-
var _excluded$
|
|
7200
|
+
var _excluded$14 = ["title", "titleId"];
|
|
7509
7201
|
|
|
7510
7202
|
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); }
|
|
7511
7203
|
|
|
@@ -7513,10 +7205,10 @@ function _objectWithoutProperties$L(source, excluded) { if (source == null) retu
|
|
|
7513
7205
|
|
|
7514
7206
|
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; }
|
|
7515
7207
|
|
|
7516
|
-
function
|
|
7208
|
+
function SvgLogoOpenebooksWithTextNegative(_ref) {
|
|
7517
7209
|
var title = _ref.title,
|
|
7518
7210
|
titleId = _ref.titleId,
|
|
7519
|
-
props = _objectWithoutProperties$L(_ref, _excluded$
|
|
7211
|
+
props = _objectWithoutProperties$L(_ref, _excluded$14);
|
|
7520
7212
|
|
|
7521
7213
|
return /*#__PURE__*/React.createElement("svg", _extends$M({
|
|
7522
7214
|
viewBox: "0 0 155 139",
|
|
@@ -7526,13 +7218,13 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7526
7218
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7527
7219
|
id: titleId
|
|
7528
7220
|
}, title) : null, _g$8 || (_g$8 = /*#__PURE__*/React.createElement("g", {
|
|
7529
|
-
clipPath: "url(#
|
|
7221
|
+
clipPath: "url(#logo-openebooks-with-text-negative_svg__clip0_54498_42322)"
|
|
7530
7222
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7531
7223
|
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",
|
|
7532
7224
|
fill: "#fff"
|
|
7533
7225
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7534
7226
|
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",
|
|
7535
|
-
fill: "url(#
|
|
7227
|
+
fill: "url(#logo-openebooks-with-text-negative_svg__paint0_linear_54498_42322)"
|
|
7536
7228
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7537
7229
|
d: "M147.325 106.011c-36.336-17.126-64.97 0-64.97 0V16.268s28.603-17.128 64.97 0v89.743z",
|
|
7538
7230
|
fill: "#0B1F31"
|
|
@@ -7541,12 +7233,12 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7541
7233
|
fill: "#000"
|
|
7542
7234
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7543
7235
|
d: "M54.346 10.793C11.75 6.924 0 23.627 0 23.627v97.554s11.75-16.705 54.346-12.834V10.793z",
|
|
7544
|
-
fill: "url(#
|
|
7236
|
+
fill: "url(#logo-openebooks-with-text-negative_svg__paint1_linear_54498_42322)"
|
|
7545
7237
|
}), /*#__PURE__*/React.createElement("path", {
|
|
7546
7238
|
d: "M8.52 106.014c36.338-17.129 64.973 0 64.973 0V16.266s-28.604-17.124-64.972 0v89.748z",
|
|
7547
7239
|
fill: "#0B1F31"
|
|
7548
7240
|
}))), _defs$4 || (_defs$4 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("linearGradient", {
|
|
7549
|
-
id: "
|
|
7241
|
+
id: "logo-openebooks-with-text-negative_svg__paint0_linear_54498_42322",
|
|
7550
7242
|
x1: 127.8,
|
|
7551
7243
|
y1: 121.19,
|
|
7552
7244
|
x2: 127.8,
|
|
@@ -7567,7 +7259,7 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7567
7259
|
offset: 1,
|
|
7568
7260
|
stopColor: "#fff"
|
|
7569
7261
|
})), /*#__PURE__*/React.createElement("linearGradient", {
|
|
7570
|
-
id: "
|
|
7262
|
+
id: "logo-openebooks-with-text-negative_svg__paint1_linear_54498_42322",
|
|
7571
7263
|
x1: 27.173,
|
|
7572
7264
|
y1: 121.181,
|
|
7573
7265
|
x2: 27.173,
|
|
@@ -7592,7 +7284,7 @@ function SvgLogoOpenebooksWtextNegative(_ref) {
|
|
|
7592
7284
|
|
|
7593
7285
|
var _path$C;
|
|
7594
7286
|
|
|
7595
|
-
var _excluded$
|
|
7287
|
+
var _excluded$15 = ["title", "titleId"];
|
|
7596
7288
|
|
|
7597
7289
|
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); }
|
|
7598
7290
|
|
|
@@ -7603,7 +7295,7 @@ function _objectWithoutPropertiesLoose$N(source, excluded) { if (source == null)
|
|
|
7603
7295
|
function SvgLogoQplAltBlack(_ref) {
|
|
7604
7296
|
var title = _ref.title,
|
|
7605
7297
|
titleId = _ref.titleId,
|
|
7606
|
-
props = _objectWithoutProperties$M(_ref, _excluded$
|
|
7298
|
+
props = _objectWithoutProperties$M(_ref, _excluded$15);
|
|
7607
7299
|
|
|
7608
7300
|
return /*#__PURE__*/React.createElement("svg", _extends$N({
|
|
7609
7301
|
viewBox: "0 0 250 134",
|
|
@@ -7618,7 +7310,7 @@ function SvgLogoQplAltBlack(_ref) {
|
|
|
7618
7310
|
|
|
7619
7311
|
var _path$D;
|
|
7620
7312
|
|
|
7621
|
-
var _excluded$
|
|
7313
|
+
var _excluded$16 = ["title", "titleId"];
|
|
7622
7314
|
|
|
7623
7315
|
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); }
|
|
7624
7316
|
|
|
@@ -7629,7 +7321,7 @@ function _objectWithoutPropertiesLoose$O(source, excluded) { if (source == null)
|
|
|
7629
7321
|
function SvgLogoQplAltWhite(_ref) {
|
|
7630
7322
|
var title = _ref.title,
|
|
7631
7323
|
titleId = _ref.titleId,
|
|
7632
|
-
props = _objectWithoutProperties$N(_ref, _excluded$
|
|
7324
|
+
props = _objectWithoutProperties$N(_ref, _excluded$16);
|
|
7633
7325
|
|
|
7634
7326
|
return /*#__PURE__*/React.createElement("svg", _extends$O({
|
|
7635
7327
|
viewBox: "0 0 250 134",
|
|
@@ -7645,7 +7337,7 @@ function SvgLogoQplAltWhite(_ref) {
|
|
|
7645
7337
|
|
|
7646
7338
|
var _path$E, _path2$h, _path3$c, _path4$3, _path5$2;
|
|
7647
7339
|
|
|
7648
|
-
var _excluded$
|
|
7340
|
+
var _excluded$17 = ["title", "titleId"];
|
|
7649
7341
|
|
|
7650
7342
|
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); }
|
|
7651
7343
|
|
|
@@ -7656,7 +7348,7 @@ function _objectWithoutPropertiesLoose$P(source, excluded) { if (source == null)
|
|
|
7656
7348
|
function SvgLogoQplBlack(_ref) {
|
|
7657
7349
|
var title = _ref.title,
|
|
7658
7350
|
titleId = _ref.titleId,
|
|
7659
|
-
props = _objectWithoutProperties$O(_ref, _excluded$
|
|
7351
|
+
props = _objectWithoutProperties$O(_ref, _excluded$17);
|
|
7660
7352
|
|
|
7661
7353
|
return /*#__PURE__*/React.createElement("svg", _extends$P({
|
|
7662
7354
|
viewBox: "0 0 320 43",
|
|
@@ -7687,7 +7379,7 @@ function SvgLogoQplBlack(_ref) {
|
|
|
7687
7379
|
|
|
7688
7380
|
var _g$9, _defs$5;
|
|
7689
7381
|
|
|
7690
|
-
var _excluded$
|
|
7382
|
+
var _excluded$18 = ["title", "titleId"];
|
|
7691
7383
|
|
|
7692
7384
|
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); }
|
|
7693
7385
|
|
|
@@ -7698,7 +7390,7 @@ function _objectWithoutPropertiesLoose$Q(source, excluded) { if (source == null)
|
|
|
7698
7390
|
function SvgLogoQplColor(_ref) {
|
|
7699
7391
|
var title = _ref.title,
|
|
7700
7392
|
titleId = _ref.titleId,
|
|
7701
|
-
props = _objectWithoutProperties$P(_ref, _excluded$
|
|
7393
|
+
props = _objectWithoutProperties$P(_ref, _excluded$18);
|
|
7702
7394
|
|
|
7703
7395
|
return /*#__PURE__*/React.createElement("svg", _extends$Q({
|
|
7704
7396
|
viewBox: "0 0 355 48",
|
|
@@ -7708,7 +7400,7 @@ function SvgLogoQplColor(_ref) {
|
|
|
7708
7400
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7709
7401
|
id: titleId
|
|
7710
7402
|
}, title) : null, _g$9 || (_g$9 = /*#__PURE__*/React.createElement("g", {
|
|
7711
|
-
clipPath: "url(#
|
|
7403
|
+
clipPath: "url(#logo-qpl-color_svg__clip0)"
|
|
7712
7404
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7713
7405
|
fillRule: "evenodd",
|
|
7714
7406
|
clipRule: "evenodd",
|
|
@@ -7738,7 +7430,7 @@ function SvgLogoQplColor(_ref) {
|
|
|
7738
7430
|
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",
|
|
7739
7431
|
fill: "#422980"
|
|
7740
7432
|
}))), _defs$5 || (_defs$5 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
7741
|
-
id: "
|
|
7433
|
+
id: "logo-qpl-color_svg__clip0"
|
|
7742
7434
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7743
7435
|
fill: "#fff",
|
|
7744
7436
|
transform: "translate(0 .674)",
|
|
@@ -7748,7 +7440,7 @@ function SvgLogoQplColor(_ref) {
|
|
|
7748
7440
|
|
|
7749
7441
|
var _path$F, _path2$i, _path3$d, _path4$4, _path5$3;
|
|
7750
7442
|
|
|
7751
|
-
var _excluded$
|
|
7443
|
+
var _excluded$19 = ["title", "titleId"];
|
|
7752
7444
|
|
|
7753
7445
|
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); }
|
|
7754
7446
|
|
|
@@ -7759,7 +7451,7 @@ function _objectWithoutPropertiesLoose$R(source, excluded) { if (source == null)
|
|
|
7759
7451
|
function SvgLogoQplWhite(_ref) {
|
|
7760
7452
|
var title = _ref.title,
|
|
7761
7453
|
titleId = _ref.titleId,
|
|
7762
|
-
props = _objectWithoutProperties$Q(_ref, _excluded$
|
|
7454
|
+
props = _objectWithoutProperties$Q(_ref, _excluded$19);
|
|
7763
7455
|
|
|
7764
7456
|
return /*#__PURE__*/React.createElement("svg", _extends$R({
|
|
7765
7457
|
viewBox: "0 0 320 43",
|
|
@@ -7791,7 +7483,7 @@ function SvgLogoQplWhite(_ref) {
|
|
|
7791
7483
|
|
|
7792
7484
|
var _path$G, _path2$j, _path3$e, _path4$5, _path5$4;
|
|
7793
7485
|
|
|
7794
|
-
var _excluded$
|
|
7486
|
+
var _excluded$1a = ["title", "titleId"];
|
|
7795
7487
|
|
|
7796
7488
|
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); }
|
|
7797
7489
|
|
|
@@ -7802,7 +7494,7 @@ function _objectWithoutPropertiesLoose$S(source, excluded) { if (source == null)
|
|
|
7802
7494
|
function SvgLogoReservoirIconColor(_ref) {
|
|
7803
7495
|
var title = _ref.title,
|
|
7804
7496
|
titleId = _ref.titleId,
|
|
7805
|
-
props = _objectWithoutProperties$R(_ref, _excluded$
|
|
7497
|
+
props = _objectWithoutProperties$R(_ref, _excluded$1a);
|
|
7806
7498
|
|
|
7807
7499
|
return /*#__PURE__*/React.createElement("svg", _extends$S({
|
|
7808
7500
|
viewBox: "0 0 105 129",
|
|
@@ -7831,7 +7523,7 @@ function SvgLogoReservoirIconColor(_ref) {
|
|
|
7831
7523
|
|
|
7832
7524
|
var _g$a;
|
|
7833
7525
|
|
|
7834
|
-
var _excluded$
|
|
7526
|
+
var _excluded$1b = ["title", "titleId"];
|
|
7835
7527
|
|
|
7836
7528
|
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); }
|
|
7837
7529
|
|
|
@@ -7842,7 +7534,7 @@ function _objectWithoutPropertiesLoose$T(source, excluded) { if (source == null)
|
|
|
7842
7534
|
function SvgLogoReservoirVerticalColor(_ref) {
|
|
7843
7535
|
var title = _ref.title,
|
|
7844
7536
|
titleId = _ref.titleId,
|
|
7845
|
-
props = _objectWithoutProperties$S(_ref, _excluded$
|
|
7537
|
+
props = _objectWithoutProperties$S(_ref, _excluded$1b);
|
|
7846
7538
|
|
|
7847
7539
|
return /*#__PURE__*/React.createElement("svg", _extends$T({
|
|
7848
7540
|
viewBox: "0 0 234 261",
|
|
@@ -7852,7 +7544,7 @@ function SvgLogoReservoirVerticalColor(_ref) {
|
|
|
7852
7544
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
7853
7545
|
id: titleId
|
|
7854
7546
|
}, title) : null, _g$a || (_g$a = /*#__PURE__*/React.createElement("g", {
|
|
7855
|
-
clipPath: "url(#
|
|
7547
|
+
clipPath: "url(#logo-reservoir-vertical-color_svg__clip0_362_388)"
|
|
7856
7548
|
}, /*#__PURE__*/React.createElement("path", {
|
|
7857
7549
|
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",
|
|
7858
7550
|
fill: "#000"
|
|
@@ -7870,7 +7562,7 @@ function SvgLogoReservoirVerticalColor(_ref) {
|
|
|
7870
7562
|
|
|
7871
7563
|
var _path$H, _path2$k, _path3$f, _path4$6, _path5$5;
|
|
7872
7564
|
|
|
7873
|
-
var _excluded$
|
|
7565
|
+
var _excluded$1c = ["title", "titleId"];
|
|
7874
7566
|
|
|
7875
7567
|
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); }
|
|
7876
7568
|
|
|
@@ -7881,7 +7573,7 @@ function _objectWithoutPropertiesLoose$U(source, excluded) { if (source == null)
|
|
|
7881
7573
|
function SvgLogoSchomburgBlack(_ref) {
|
|
7882
7574
|
var title = _ref.title,
|
|
7883
7575
|
titleId = _ref.titleId,
|
|
7884
|
-
props = _objectWithoutProperties$T(_ref, _excluded$
|
|
7576
|
+
props = _objectWithoutProperties$T(_ref, _excluded$1c);
|
|
7885
7577
|
|
|
7886
7578
|
return /*#__PURE__*/React.createElement("svg", _extends$U({
|
|
7887
7579
|
viewBox: "0 0 185 79",
|
|
@@ -7904,7 +7596,7 @@ function SvgLogoSchomburgBlack(_ref) {
|
|
|
7904
7596
|
|
|
7905
7597
|
var _path$I, _path2$l, _path3$g, _path4$7, _path5$6;
|
|
7906
7598
|
|
|
7907
|
-
var _excluded$
|
|
7599
|
+
var _excluded$1d = ["title", "titleId"];
|
|
7908
7600
|
|
|
7909
7601
|
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); }
|
|
7910
7602
|
|
|
@@ -7915,7 +7607,7 @@ function _objectWithoutPropertiesLoose$V(source, excluded) { if (source == null)
|
|
|
7915
7607
|
function SvgLogoSchomburgCircleBlack(_ref) {
|
|
7916
7608
|
var title = _ref.title,
|
|
7917
7609
|
titleId = _ref.titleId,
|
|
7918
|
-
props = _objectWithoutProperties$U(_ref, _excluded$
|
|
7610
|
+
props = _objectWithoutProperties$U(_ref, _excluded$1d);
|
|
7919
7611
|
|
|
7920
7612
|
return /*#__PURE__*/React.createElement("svg", _extends$V({
|
|
7921
7613
|
viewBox: "0 0 67 67",
|
|
@@ -7938,7 +7630,7 @@ function SvgLogoSchomburgCircleBlack(_ref) {
|
|
|
7938
7630
|
|
|
7939
7631
|
var _path$J, _path2$m, _path3$h, _path4$8, _path5$7;
|
|
7940
7632
|
|
|
7941
|
-
var _excluded$
|
|
7633
|
+
var _excluded$1e = ["title", "titleId"];
|
|
7942
7634
|
|
|
7943
7635
|
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); }
|
|
7944
7636
|
|
|
@@ -7949,7 +7641,7 @@ function _objectWithoutPropertiesLoose$W(source, excluded) { if (source == null)
|
|
|
7949
7641
|
function SvgLogoSchomburgCircleColor(_ref) {
|
|
7950
7642
|
var title = _ref.title,
|
|
7951
7643
|
titleId = _ref.titleId,
|
|
7952
|
-
props = _objectWithoutProperties$V(_ref, _excluded$
|
|
7644
|
+
props = _objectWithoutProperties$V(_ref, _excluded$1e);
|
|
7953
7645
|
|
|
7954
7646
|
return /*#__PURE__*/React.createElement("svg", _extends$W({
|
|
7955
7647
|
viewBox: "0 0 67 67",
|
|
@@ -7978,7 +7670,7 @@ function SvgLogoSchomburgCircleColor(_ref) {
|
|
|
7978
7670
|
|
|
7979
7671
|
var _path$K, _path2$n, _path3$i, _path4$9, _path5$8;
|
|
7980
7672
|
|
|
7981
|
-
var _excluded$
|
|
7673
|
+
var _excluded$1f = ["title", "titleId"];
|
|
7982
7674
|
|
|
7983
7675
|
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); }
|
|
7984
7676
|
|
|
@@ -7989,7 +7681,7 @@ function _objectWithoutPropertiesLoose$X(source, excluded) { if (source == null)
|
|
|
7989
7681
|
function SvgLogoSchomburgCircleWhite(_ref) {
|
|
7990
7682
|
var title = _ref.title,
|
|
7991
7683
|
titleId = _ref.titleId,
|
|
7992
|
-
props = _objectWithoutProperties$W(_ref, _excluded$
|
|
7684
|
+
props = _objectWithoutProperties$W(_ref, _excluded$1f);
|
|
7993
7685
|
|
|
7994
7686
|
return /*#__PURE__*/React.createElement("svg", _extends$X({
|
|
7995
7687
|
viewBox: "0 0 67 67",
|
|
@@ -8013,7 +7705,7 @@ function SvgLogoSchomburgCircleWhite(_ref) {
|
|
|
8013
7705
|
|
|
8014
7706
|
var _path$L, _path2$o, _path3$j, _path4$a, _path5$9, _path6$2, _path7$2;
|
|
8015
7707
|
|
|
8016
|
-
var _excluded$
|
|
7708
|
+
var _excluded$1g = ["title", "titleId"];
|
|
8017
7709
|
|
|
8018
7710
|
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); }
|
|
8019
7711
|
|
|
@@ -8024,7 +7716,7 @@ function _objectWithoutPropertiesLoose$Y(source, excluded) { if (source == null)
|
|
|
8024
7716
|
function SvgLogoSchomburgColor(_ref) {
|
|
8025
7717
|
var title = _ref.title,
|
|
8026
7718
|
titleId = _ref.titleId,
|
|
8027
|
-
props = _objectWithoutProperties$X(_ref, _excluded$
|
|
7719
|
+
props = _objectWithoutProperties$X(_ref, _excluded$1g);
|
|
8028
7720
|
|
|
8029
7721
|
return /*#__PURE__*/React.createElement("svg", _extends$Y({
|
|
8030
7722
|
viewBox: "0 0 185 79",
|
|
@@ -8059,7 +7751,7 @@ function SvgLogoSchomburgColor(_ref) {
|
|
|
8059
7751
|
|
|
8060
7752
|
var _path$M, _path2$p, _path3$k, _path4$b, _path5$a;
|
|
8061
7753
|
|
|
8062
|
-
var _excluded$
|
|
7754
|
+
var _excluded$1h = ["title", "titleId"];
|
|
8063
7755
|
|
|
8064
7756
|
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); }
|
|
8065
7757
|
|
|
@@ -8070,7 +7762,7 @@ function _objectWithoutPropertiesLoose$Z(source, excluded) { if (source == null)
|
|
|
8070
7762
|
function SvgLogoSchomburgWhite(_ref) {
|
|
8071
7763
|
var title = _ref.title,
|
|
8072
7764
|
titleId = _ref.titleId,
|
|
8073
|
-
props = _objectWithoutProperties$Y(_ref, _excluded$
|
|
7765
|
+
props = _objectWithoutProperties$Y(_ref, _excluded$1h);
|
|
8074
7766
|
|
|
8075
7767
|
return /*#__PURE__*/React.createElement("svg", _extends$Z({
|
|
8076
7768
|
viewBox: "0 0 185 79",
|
|
@@ -8094,7 +7786,7 @@ function SvgLogoSchomburgWhite(_ref) {
|
|
|
8094
7786
|
|
|
8095
7787
|
var _g$b, _defs$6;
|
|
8096
7788
|
|
|
8097
|
-
var _excluded$
|
|
7789
|
+
var _excluded$1i = ["title", "titleId"];
|
|
8098
7790
|
|
|
8099
7791
|
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); }
|
|
8100
7792
|
|
|
@@ -8105,7 +7797,7 @@ function _objectWithoutPropertiesLoose$_(source, excluded) { if (source == null)
|
|
|
8105
7797
|
function SvgLogoSimplyeBlack(_ref) {
|
|
8106
7798
|
var title = _ref.title,
|
|
8107
7799
|
titleId = _ref.titleId,
|
|
8108
|
-
props = _objectWithoutProperties$Z(_ref, _excluded$
|
|
7800
|
+
props = _objectWithoutProperties$Z(_ref, _excluded$1i);
|
|
8109
7801
|
|
|
8110
7802
|
return /*#__PURE__*/React.createElement("svg", _extends$_({
|
|
8111
7803
|
viewBox: "0 0 512 148",
|
|
@@ -8114,7 +7806,7 @@ function SvgLogoSimplyeBlack(_ref) {
|
|
|
8114
7806
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
8115
7807
|
id: titleId
|
|
8116
7808
|
}, title) : null, _g$b || (_g$b = /*#__PURE__*/React.createElement("g", {
|
|
8117
|
-
clipPath: "url(#
|
|
7809
|
+
clipPath: "url(#logo-simplye-black_svg__clip0)"
|
|
8118
7810
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8119
7811
|
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"
|
|
8120
7812
|
}), /*#__PURE__*/React.createElement("path", {
|
|
@@ -8122,7 +7814,7 @@ function SvgLogoSimplyeBlack(_ref) {
|
|
|
8122
7814
|
}), /*#__PURE__*/React.createElement("path", {
|
|
8123
7815
|
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"
|
|
8124
7816
|
}))), _defs$6 || (_defs$6 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
8125
|
-
id: "
|
|
7817
|
+
id: "logo-simplye-black_svg__clip0"
|
|
8126
7818
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8127
7819
|
fill: "#fff",
|
|
8128
7820
|
transform: "translate(0 .118)",
|
|
@@ -8132,7 +7824,7 @@ function SvgLogoSimplyeBlack(_ref) {
|
|
|
8132
7824
|
|
|
8133
7825
|
var _g$c, _defs$7;
|
|
8134
7826
|
|
|
8135
|
-
var _excluded$
|
|
7827
|
+
var _excluded$1j = ["title", "titleId"];
|
|
8136
7828
|
|
|
8137
7829
|
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); }
|
|
8138
7830
|
|
|
@@ -8143,7 +7835,7 @@ function _objectWithoutPropertiesLoose$$(source, excluded) { if (source == null)
|
|
|
8143
7835
|
function SvgLogoSimplyeWhite(_ref) {
|
|
8144
7836
|
var title = _ref.title,
|
|
8145
7837
|
titleId = _ref.titleId,
|
|
8146
|
-
props = _objectWithoutProperties$_(_ref, _excluded$
|
|
7838
|
+
props = _objectWithoutProperties$_(_ref, _excluded$1j);
|
|
8147
7839
|
|
|
8148
7840
|
return /*#__PURE__*/React.createElement("svg", _extends$$({
|
|
8149
7841
|
viewBox: "0 0 512 148",
|
|
@@ -8153,7 +7845,7 @@ function SvgLogoSimplyeWhite(_ref) {
|
|
|
8153
7845
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
8154
7846
|
id: titleId
|
|
8155
7847
|
}, title) : null, _g$c || (_g$c = /*#__PURE__*/React.createElement("g", {
|
|
8156
|
-
clipPath: "url(#
|
|
7848
|
+
clipPath: "url(#logo-simplye-white_svg__clip0)"
|
|
8157
7849
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8158
7850
|
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"
|
|
8159
7851
|
}), /*#__PURE__*/React.createElement("path", {
|
|
@@ -8161,7 +7853,7 @@ function SvgLogoSimplyeWhite(_ref) {
|
|
|
8161
7853
|
}), /*#__PURE__*/React.createElement("path", {
|
|
8162
7854
|
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"
|
|
8163
7855
|
}))), _defs$7 || (_defs$7 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
8164
|
-
id: "
|
|
7856
|
+
id: "logo-simplye-white_svg__clip0"
|
|
8165
7857
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8166
7858
|
transform: "translate(0 .118)",
|
|
8167
7859
|
d: "M0 0h511.984v147H0z"
|
|
@@ -8170,7 +7862,7 @@ function SvgLogoSimplyeWhite(_ref) {
|
|
|
8170
7862
|
|
|
8171
7863
|
var _g$d, _defs$8;
|
|
8172
7864
|
|
|
8173
|
-
var _excluded$
|
|
7865
|
+
var _excluded$1k = ["title", "titleId"];
|
|
8174
7866
|
|
|
8175
7867
|
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); }
|
|
8176
7868
|
|
|
@@ -8181,7 +7873,7 @@ function _objectWithoutPropertiesLoose$10(source, excluded) { if (source == null
|
|
|
8181
7873
|
function SvgLogoSimplyeColor(_ref) {
|
|
8182
7874
|
var title = _ref.title,
|
|
8183
7875
|
titleId = _ref.titleId,
|
|
8184
|
-
props = _objectWithoutProperties$$(_ref, _excluded$
|
|
7876
|
+
props = _objectWithoutProperties$$(_ref, _excluded$1k);
|
|
8185
7877
|
|
|
8186
7878
|
return /*#__PURE__*/React.createElement("svg", _extends$10({
|
|
8187
7879
|
viewBox: "0 0 682 196",
|
|
@@ -8191,7 +7883,7 @@ function SvgLogoSimplyeColor(_ref) {
|
|
|
8191
7883
|
}, props), title ? /*#__PURE__*/React.createElement("title", {
|
|
8192
7884
|
id: titleId
|
|
8193
7885
|
}, title) : null, _g$d || (_g$d = /*#__PURE__*/React.createElement("g", {
|
|
8194
|
-
clipPath: "url(#
|
|
7886
|
+
clipPath: "url(#logo-simplye-color_svg__clip0)"
|
|
8195
7887
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8196
7888
|
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",
|
|
8197
7889
|
fill: "#1B385E"
|
|
@@ -8205,7 +7897,7 @@ function SvgLogoSimplyeColor(_ref) {
|
|
|
8205
7897
|
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",
|
|
8206
7898
|
fill: "#1B385E"
|
|
8207
7899
|
}))), _defs$8 || (_defs$8 = /*#__PURE__*/React.createElement("defs", null, /*#__PURE__*/React.createElement("clipPath", {
|
|
8208
|
-
id: "
|
|
7900
|
+
id: "logo-simplye-color_svg__clip0"
|
|
8209
7901
|
}, /*#__PURE__*/React.createElement("path", {
|
|
8210
7902
|
fill: "#fff",
|
|
8211
7903
|
transform: "translate(0 .118)",
|
|
@@ -8215,7 +7907,7 @@ function SvgLogoSimplyeColor(_ref) {
|
|
|
8215
7907
|
|
|
8216
7908
|
var _path$N;
|
|
8217
7909
|
|
|
8218
|
-
var _excluded$
|
|
7910
|
+
var _excluded$1l = ["title", "titleId"];
|
|
8219
7911
|
|
|
8220
7912
|
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); }
|
|
8221
7913
|
|
|
@@ -8226,7 +7918,7 @@ function _objectWithoutPropertiesLoose$11(source, excluded) { if (source == null
|
|
|
8226
7918
|
function SvgLogoSnflBlack(_ref) {
|
|
8227
7919
|
var title = _ref.title,
|
|
8228
7920
|
titleId = _ref.titleId,
|
|
8229
|
-
props = _objectWithoutProperties$10(_ref, _excluded$
|
|
7921
|
+
props = _objectWithoutProperties$10(_ref, _excluded$1l);
|
|
8230
7922
|
|
|
8231
7923
|
return /*#__PURE__*/React.createElement("svg", _extends$11({
|
|
8232
7924
|
viewBox: "0 0 84 111",
|
|
@@ -8241,7 +7933,7 @@ function SvgLogoSnflBlack(_ref) {
|
|
|
8241
7933
|
|
|
8242
7934
|
var _path$O;
|
|
8243
7935
|
|
|
8244
|
-
var _excluded$
|
|
7936
|
+
var _excluded$1m = ["title", "titleId"];
|
|
8245
7937
|
|
|
8246
7938
|
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); }
|
|
8247
7939
|
|
|
@@ -8252,7 +7944,7 @@ function _objectWithoutPropertiesLoose$12(source, excluded) { if (source == null
|
|
|
8252
7944
|
function SvgLogoSnflWhite(_ref) {
|
|
8253
7945
|
var title = _ref.title,
|
|
8254
7946
|
titleId = _ref.titleId,
|
|
8255
|
-
props = _objectWithoutProperties$11(_ref, _excluded$
|
|
7947
|
+
props = _objectWithoutProperties$11(_ref, _excluded$1m);
|
|
8256
7948
|
|
|
8257
7949
|
return /*#__PURE__*/React.createElement("svg", _extends$12({
|
|
8258
7950
|
viewBox: "0 0 84 111",
|
|
@@ -8268,7 +7960,7 @@ function SvgLogoSnflWhite(_ref) {
|
|
|
8268
7960
|
|
|
8269
7961
|
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;
|
|
8270
7962
|
|
|
8271
|
-
var _excluded$
|
|
7963
|
+
var _excluded$1n = ["title", "titleId"];
|
|
8272
7964
|
|
|
8273
7965
|
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); }
|
|
8274
7966
|
|
|
@@ -8279,7 +7971,7 @@ function _objectWithoutPropertiesLoose$13(source, excluded) { if (source == null
|
|
|
8279
7971
|
function SvgLogoTreasuresColor(_ref) {
|
|
8280
7972
|
var title = _ref.title,
|
|
8281
7973
|
titleId = _ref.titleId,
|
|
8282
|
-
props = _objectWithoutProperties$12(_ref, _excluded$
|
|
7974
|
+
props = _objectWithoutProperties$12(_ref, _excluded$1n);
|
|
8283
7975
|
|
|
8284
7976
|
return /*#__PURE__*/React.createElement("svg", _extends$13({
|
|
8285
7977
|
viewBox: "0 0 324 265",
|
|
@@ -8458,7 +8150,7 @@ function SvgLogoTreasuresColor(_ref) {
|
|
|
8458
8150
|
|
|
8459
8151
|
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;
|
|
8460
8152
|
|
|
8461
|
-
var _excluded$
|
|
8153
|
+
var _excluded$1o = ["title", "titleId"];
|
|
8462
8154
|
|
|
8463
8155
|
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); }
|
|
8464
8156
|
|
|
@@ -8469,7 +8161,7 @@ function _objectWithoutPropertiesLoose$14(source, excluded) { if (source == null
|
|
|
8469
8161
|
function SvgLogoTreasuresColorNegative(_ref) {
|
|
8470
8162
|
var title = _ref.title,
|
|
8471
8163
|
titleId = _ref.titleId,
|
|
8472
|
-
props = _objectWithoutProperties$13(_ref, _excluded$
|
|
8164
|
+
props = _objectWithoutProperties$13(_ref, _excluded$1o);
|
|
8473
8165
|
|
|
8474
8166
|
return /*#__PURE__*/React.createElement("svg", _extends$14({
|
|
8475
8167
|
viewBox: "0 0 327 266",
|
|
@@ -8648,48 +8340,48 @@ function SvgLogoTreasuresColorNegative(_ref) {
|
|
|
8648
8340
|
|
|
8649
8341
|
/* eslint-disable camelcase */
|
|
8650
8342
|
var logoSvgs = {
|
|
8651
|
-
|
|
8652
|
-
|
|
8653
|
-
|
|
8654
|
-
|
|
8655
|
-
|
|
8656
|
-
|
|
8657
|
-
|
|
8658
|
-
|
|
8659
|
-
|
|
8660
|
-
|
|
8661
|
-
|
|
8662
|
-
|
|
8663
|
-
|
|
8664
|
-
|
|
8665
|
-
|
|
8666
|
-
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8675
|
-
|
|
8676
|
-
|
|
8677
|
-
|
|
8678
|
-
|
|
8679
|
-
|
|
8680
|
-
|
|
8681
|
-
|
|
8682
|
-
|
|
8683
|
-
|
|
8684
|
-
|
|
8685
|
-
|
|
8686
|
-
|
|
8687
|
-
|
|
8688
|
-
|
|
8689
|
-
|
|
8690
|
-
};
|
|
8691
|
-
|
|
8692
|
-
var _excluded$
|
|
8343
|
+
bplBlack: SvgLogoBplBlack,
|
|
8344
|
+
bplWhite: SvgLogoBplWhite,
|
|
8345
|
+
cleverColor: SvgLogoCleverColor,
|
|
8346
|
+
cleverWhite: SvgLogoCleverWhite,
|
|
8347
|
+
firstbookColor: SvgLogoFirstbookColor,
|
|
8348
|
+
firstbookColorNegative: SvgLogoFirstbookColorNegative,
|
|
8349
|
+
lpaBlack: SvgLogoLpaBlack,
|
|
8350
|
+
lpaColor: SvgLogoLpaColor,
|
|
8351
|
+
lpaWhite: SvgLogoLpaWhite,
|
|
8352
|
+
mlnBlack: SvgLogoMlnBlack,
|
|
8353
|
+
mlnWhite: SvgLogoMlnWhite,
|
|
8354
|
+
nyplFullBlack: SvgLogoNyplFullBlack,
|
|
8355
|
+
nyplFullWhite: SvgLogoNyplFullWhite,
|
|
8356
|
+
nyplLionBlack: SvgLogoNyplLionBlack,
|
|
8357
|
+
nyplLionWhite: SvgLogoNyplLionWhite,
|
|
8358
|
+
openebooksColor: SvgLogoOpenebooksColor,
|
|
8359
|
+
openebooksNegative: SvgLogoOpenebooksNegative,
|
|
8360
|
+
openebooksWithTextColor: SvgLogoOpenebooksWithTextColor,
|
|
8361
|
+
openebooksWithTextNegative: SvgLogoOpenebooksWithTextNegative,
|
|
8362
|
+
qplAltBlack: SvgLogoQplAltBlack,
|
|
8363
|
+
qplAltWhite: SvgLogoQplAltWhite,
|
|
8364
|
+
qplBlack: SvgLogoQplBlack,
|
|
8365
|
+
qplColor: SvgLogoQplColor,
|
|
8366
|
+
qplWhite: SvgLogoQplWhite,
|
|
8367
|
+
reservoirIconColor: SvgLogoReservoirIconColor,
|
|
8368
|
+
reservoirVerticalColor: SvgLogoReservoirVerticalColor,
|
|
8369
|
+
schomburgBlack: SvgLogoSchomburgBlack,
|
|
8370
|
+
schomburgCircleBlack: SvgLogoSchomburgCircleBlack,
|
|
8371
|
+
schomburgCircleColor: SvgLogoSchomburgCircleColor,
|
|
8372
|
+
schomburgCircleWhite: SvgLogoSchomburgCircleWhite,
|
|
8373
|
+
schomburgColor: SvgLogoSchomburgColor,
|
|
8374
|
+
schomburgWhite: SvgLogoSchomburgWhite,
|
|
8375
|
+
simplyeBlack: SvgLogoSimplyeBlack,
|
|
8376
|
+
simplyeWhite: SvgLogoSimplyeWhite,
|
|
8377
|
+
simplyeColor: SvgLogoSimplyeColor,
|
|
8378
|
+
snflBlack: SvgLogoSnflBlack,
|
|
8379
|
+
snflWhite: SvgLogoSnflWhite,
|
|
8380
|
+
treasuresColor: SvgLogoTreasuresColor,
|
|
8381
|
+
treasuresColorNegative: SvgLogoTreasuresColorNegative
|
|
8382
|
+
};
|
|
8383
|
+
|
|
8384
|
+
var _excluded$1p = ["children", "className", "decorative", "id", "name", "size", "title"];
|
|
8693
8385
|
/**
|
|
8694
8386
|
* The `Logo` component renders SVG-based logos and color variants that are
|
|
8695
8387
|
* commonly used by the New York Public Library.
|
|
@@ -8698,19 +8390,17 @@ var _excluded$1o = ["additionalStyles", "children", "className", "decorative", "
|
|
|
8698
8390
|
var Logo$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
8699
8391
|
var _children$props, _children$props2;
|
|
8700
8392
|
|
|
8701
|
-
var
|
|
8702
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
8703
|
-
children = props.children,
|
|
8393
|
+
var children = props.children,
|
|
8704
8394
|
className = props.className,
|
|
8705
8395
|
_props$decorative = props.decorative,
|
|
8706
8396
|
decorative = _props$decorative === void 0 ? false : _props$decorative,
|
|
8707
8397
|
id = props.id,
|
|
8708
8398
|
name = props.name,
|
|
8709
8399
|
_props$size = props.size,
|
|
8710
|
-
size = _props$size === void 0 ?
|
|
8400
|
+
size = _props$size === void 0 ? "medium" : _props$size,
|
|
8711
8401
|
_props$title = props.title,
|
|
8712
8402
|
title = _props$title === void 0 ? name + " logo" : _props$title,
|
|
8713
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8403
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1p);
|
|
8714
8404
|
|
|
8715
8405
|
var styles = react.useStyleConfig("Logo", {
|
|
8716
8406
|
size: size
|
|
@@ -8742,7 +8432,7 @@ var Logo$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8742
8432
|
return React.createElement(react.Icon, Object.assign({
|
|
8743
8433
|
as: SvgComponent
|
|
8744
8434
|
}, logoProps, {
|
|
8745
|
-
__css:
|
|
8435
|
+
__css: styles
|
|
8746
8436
|
}));
|
|
8747
8437
|
} // If no `name` prop was passed, we expect a child SVG element to be passed.
|
|
8748
8438
|
// Apply logo props to the SVG child.
|
|
@@ -8754,48 +8444,124 @@ var Logo$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8754
8444
|
console.warn("NYPL Reservoir Logo: An `svg` element must be passed to the `Logo` " + "component as its child.");
|
|
8755
8445
|
}
|
|
8756
8446
|
|
|
8757
|
-
return React.createElement(react.Box,
|
|
8447
|
+
return React.createElement(react.Box, {
|
|
8758
8448
|
__css: styles
|
|
8759
|
-
},
|
|
8449
|
+
}, childSVG);
|
|
8760
8450
|
});
|
|
8761
8451
|
|
|
8762
|
-
|
|
8452
|
+
var _excluded$1q = ["bodyContent", "closeButtonLabel", "headingText", "id", "isOpen", "onClose"],
|
|
8453
|
+
_excluded2$5 = ["buttonText", "id", "modalProps"],
|
|
8454
|
+
_excluded3$2 = ["bodyContent", "closeButtonLabel", "headingText", "id"];
|
|
8455
|
+
var BaseModal = /*#__PURE__*/react.chakra(function (_ref) {
|
|
8456
|
+
var bodyContent = _ref.bodyContent,
|
|
8457
|
+
_ref$closeButtonLabel = _ref.closeButtonLabel,
|
|
8458
|
+
closeButtonLabel = _ref$closeButtonLabel === void 0 ? "Close" : _ref$closeButtonLabel,
|
|
8459
|
+
headingText = _ref.headingText,
|
|
8460
|
+
id = _ref.id,
|
|
8461
|
+
isOpen = _ref.isOpen,
|
|
8462
|
+
onClose = _ref.onClose,
|
|
8463
|
+
rest = _objectWithoutPropertiesLoose(_ref, _excluded$1q);
|
|
8763
8464
|
|
|
8764
|
-
|
|
8765
|
-
|
|
8465
|
+
// Based on --nypl-breakpoint-medium
|
|
8466
|
+
var breakpointMedium = 600;
|
|
8467
|
+
var defaultSize = "xl";
|
|
8468
|
+
var fullSize = "full";
|
|
8766
8469
|
|
|
8767
|
-
|
|
8768
|
-
|
|
8769
|
-
|
|
8470
|
+
var _React$useState = React.useState(defaultSize),
|
|
8471
|
+
size = _React$useState[0],
|
|
8472
|
+
setSize = _React$useState[1];
|
|
8770
8473
|
|
|
8771
|
-
var
|
|
8474
|
+
var windowDimensions = useWindowSize();
|
|
8475
|
+
React.useEffect(function () {
|
|
8476
|
+
if (windowDimensions.width <= breakpointMedium) {
|
|
8477
|
+
setSize(fullSize);
|
|
8478
|
+
} else {
|
|
8479
|
+
setSize(defaultSize);
|
|
8480
|
+
}
|
|
8481
|
+
}, [windowDimensions.width]);
|
|
8482
|
+
return React.createElement(react.Modal, Object.assign({
|
|
8483
|
+
id: id,
|
|
8484
|
+
isOpen: isOpen,
|
|
8485
|
+
onClose: onClose,
|
|
8486
|
+
scrollBehavior: "inside",
|
|
8487
|
+
size: size
|
|
8488
|
+
}, rest), React.createElement(react.ModalOverlay, null), React.createElement(react.ModalContent, null, React.createElement(react.ModalHeader, null, headingText), React.createElement(react.ModalCloseButton, null), React.createElement(react.ModalBody, null, bodyContent), React.createElement(react.ModalFooter, null, React.createElement(ButtonGroup, null, React.createElement(Button, {
|
|
8489
|
+
id: "modal-close-btn",
|
|
8490
|
+
onClick: onClose
|
|
8491
|
+
}, closeButtonLabel)))));
|
|
8492
|
+
});
|
|
8493
|
+
/**
|
|
8494
|
+
* The `ModalTrigger` component renders a button that you click to open the
|
|
8495
|
+
* internal `Modal` component. Note that props to update the internal `Modal`
|
|
8496
|
+
* component are passed through to the `modalProps` prop.
|
|
8497
|
+
*/
|
|
8772
8498
|
|
|
8773
|
-
|
|
8774
|
-
|
|
8775
|
-
|
|
8499
|
+
var ModalTrigger = /*#__PURE__*/react.chakra(function (_ref2) {
|
|
8500
|
+
var buttonText = _ref2.buttonText,
|
|
8501
|
+
id = _ref2.id,
|
|
8502
|
+
modalProps = _ref2.modalProps,
|
|
8503
|
+
rest = _objectWithoutPropertiesLoose(_ref2, _excluded2$5);
|
|
8776
8504
|
|
|
8777
|
-
|
|
8778
|
-
|
|
8779
|
-
|
|
8505
|
+
var _useDisclosure = react.useDisclosure(),
|
|
8506
|
+
isOpen = _useDisclosure.isOpen,
|
|
8507
|
+
onOpen = _useDisclosure.onOpen,
|
|
8508
|
+
onClose = _useDisclosure.onClose;
|
|
8780
8509
|
|
|
8781
|
-
|
|
8782
|
-
|
|
8783
|
-
|
|
8784
|
-
className = _this$props.className;
|
|
8785
|
-
return React.createElement("div", {
|
|
8786
|
-
// eslint-disable-next-line jsx-a11y/no-noninteractive-tabindex
|
|
8787
|
-
tabIndex: 0,
|
|
8788
|
-
className: "modal " + className,
|
|
8789
|
-
id: id
|
|
8790
|
-
}, this.props.children);
|
|
8510
|
+
var finalOnCloseHandler = function finalOnCloseHandler() {
|
|
8511
|
+
modalProps.onClose && modalProps.onClose();
|
|
8512
|
+
onClose();
|
|
8791
8513
|
};
|
|
8792
8514
|
|
|
8793
|
-
return
|
|
8794
|
-
|
|
8515
|
+
return React.createElement(React.Fragment, null, React.createElement(Button, {
|
|
8516
|
+
id: "modal-open-btn",
|
|
8517
|
+
onClick: onOpen
|
|
8518
|
+
}, buttonText), React.createElement(BaseModal, Object.assign({
|
|
8519
|
+
bodyContent: modalProps.bodyContent,
|
|
8520
|
+
closeButtonLabel: modalProps.closeButtonLabel,
|
|
8521
|
+
headingText: modalProps.headingText,
|
|
8522
|
+
id: id,
|
|
8523
|
+
isOpen: isOpen,
|
|
8524
|
+
onClose: finalOnCloseHandler
|
|
8525
|
+
}, rest)));
|
|
8526
|
+
});
|
|
8527
|
+
/**
|
|
8528
|
+
* This hook function can be used to render the `Modal` component with a custom
|
|
8529
|
+
* open button(s) and optional custom close button(s). You must render your own
|
|
8530
|
+
* button and pass the appropriate `onOpen` and ` handler for the modal to open.
|
|
8531
|
+
*/
|
|
8532
|
+
|
|
8533
|
+
function useModal() {
|
|
8534
|
+
var _useDisclosure2 = react.useDisclosure(),
|
|
8535
|
+
isOpen = _useDisclosure2.isOpen,
|
|
8536
|
+
onClose = _useDisclosure2.onClose,
|
|
8537
|
+
onOpen = _useDisclosure2.onOpen;
|
|
8538
|
+
|
|
8539
|
+
var Modal = react.chakra(function (_ref3) {
|
|
8540
|
+
var bodyContent = _ref3.bodyContent,
|
|
8541
|
+
closeButtonLabel = _ref3.closeButtonLabel,
|
|
8542
|
+
headingText = _ref3.headingText,
|
|
8543
|
+
id = _ref3.id,
|
|
8544
|
+
rest = _objectWithoutPropertiesLoose(_ref3, _excluded3$2);
|
|
8545
|
+
|
|
8546
|
+
return React.createElement(BaseModal, Object.assign({
|
|
8547
|
+
bodyContent: bodyContent,
|
|
8548
|
+
closeButtonLabel: closeButtonLabel,
|
|
8549
|
+
headingText: headingText,
|
|
8550
|
+
id: id,
|
|
8551
|
+
isOpen: isOpen,
|
|
8552
|
+
onClose: onClose
|
|
8553
|
+
}, rest));
|
|
8554
|
+
});
|
|
8555
|
+
return {
|
|
8556
|
+
onClose: onClose,
|
|
8557
|
+
onOpen: onOpen,
|
|
8558
|
+
Modal: Modal
|
|
8559
|
+
};
|
|
8560
|
+
}
|
|
8795
8561
|
|
|
8796
|
-
var _excluded$
|
|
8797
|
-
_excluded2$
|
|
8798
|
-
_excluded3$
|
|
8562
|
+
var _excluded$1r = ["children", "icon", "id", "isCentered", "notificationType"],
|
|
8563
|
+
_excluded2$6 = ["alignText", "children", "icon", "notificationType"],
|
|
8564
|
+
_excluded3$3 = ["ariaLabel", "className", "dismissible", "icon", "id", "isCentered", "noMargin", "notificationContent", "notificationHeading", "notificationType", "showIcon"];
|
|
8799
8565
|
/**
|
|
8800
8566
|
* NotificationHeading child-component.
|
|
8801
8567
|
*/
|
|
@@ -8806,7 +8572,7 @@ var NotificationHeading$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8806
8572
|
id = props.id,
|
|
8807
8573
|
isCentered = props.isCentered,
|
|
8808
8574
|
notificationType = props.notificationType,
|
|
8809
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8575
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1r);
|
|
8810
8576
|
|
|
8811
8577
|
var styles = react.useMultiStyleConfig("NotificationHeading", {
|
|
8812
8578
|
icon: icon,
|
|
@@ -8817,9 +8583,9 @@ var NotificationHeading$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8817
8583
|
as: "header",
|
|
8818
8584
|
__css: styles
|
|
8819
8585
|
}, rest), icon, React__default.createElement(Heading, {
|
|
8820
|
-
additionalStyles: styles.heading,
|
|
8821
8586
|
id: id + "-heading",
|
|
8822
|
-
level:
|
|
8587
|
+
level: "four",
|
|
8588
|
+
__css: styles.heading
|
|
8823
8589
|
}, children));
|
|
8824
8590
|
});
|
|
8825
8591
|
/**
|
|
@@ -8831,7 +8597,7 @@ var NotificationContent$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8831
8597
|
children = props.children,
|
|
8832
8598
|
icon = props.icon,
|
|
8833
8599
|
notificationType = props.notificationType,
|
|
8834
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded2$
|
|
8600
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded2$6);
|
|
8835
8601
|
|
|
8836
8602
|
var styles = react.useMultiStyleConfig("NotificationContent", {
|
|
8837
8603
|
alignText: alignText,
|
|
@@ -8863,10 +8629,10 @@ var Notification$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8863
8629
|
notificationContent = props.notificationContent,
|
|
8864
8630
|
notificationHeading = props.notificationHeading,
|
|
8865
8631
|
_props$notificationTy = props.notificationType,
|
|
8866
|
-
notificationType = _props$notificationTy === void 0 ?
|
|
8632
|
+
notificationType = _props$notificationTy === void 0 ? "standard" : _props$notificationTy,
|
|
8867
8633
|
_props$showIcon = props.showIcon,
|
|
8868
8634
|
showIcon = _props$showIcon === void 0 ? true : _props$showIcon,
|
|
8869
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded3$
|
|
8635
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded3$3);
|
|
8870
8636
|
|
|
8871
8637
|
var _useState = React.useState(true),
|
|
8872
8638
|
isOpen = _useState[0],
|
|
@@ -8884,51 +8650,51 @@ var Notification$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8884
8650
|
});
|
|
8885
8651
|
|
|
8886
8652
|
var iconElement = function iconElement() {
|
|
8887
|
-
var _iconProps;
|
|
8888
|
-
|
|
8889
8653
|
var baseIconProps = {
|
|
8890
|
-
|
|
8891
|
-
|
|
8892
|
-
}; // If the icon should not display, return
|
|
8654
|
+
size: "large",
|
|
8655
|
+
__css: styles.icon
|
|
8656
|
+
}; // If the icon should not display, return undefined.
|
|
8893
8657
|
|
|
8894
8658
|
if (!showIcon) {
|
|
8895
|
-
return
|
|
8659
|
+
return undefined;
|
|
8896
8660
|
} // If a custom icon is passed, add specific `Notification` styles.
|
|
8897
8661
|
|
|
8898
8662
|
|
|
8899
8663
|
if (icon) return React__default.cloneElement(icon, _extends({
|
|
8900
8664
|
id: id + "-custom-notification-icon"
|
|
8901
8665
|
}, baseIconProps));
|
|
8902
|
-
var iconProps =
|
|
8903
|
-
|
|
8904
|
-
|
|
8905
|
-
|
|
8906
|
-
|
|
8907
|
-
|
|
8908
|
-
|
|
8909
|
-
|
|
8910
|
-
|
|
8911
|
-
|
|
8912
|
-
|
|
8913
|
-
|
|
8914
|
-
|
|
8666
|
+
var iconProps = {
|
|
8667
|
+
announcement: {
|
|
8668
|
+
color: "section.research.secondary",
|
|
8669
|
+
name: "speakerNotes",
|
|
8670
|
+
title: "Notification announcement icon"
|
|
8671
|
+
},
|
|
8672
|
+
standard: {
|
|
8673
|
+
color: "ui.black",
|
|
8674
|
+
name: "alertNotificationImportant",
|
|
8675
|
+
title: "Notification standard icon"
|
|
8676
|
+
},
|
|
8677
|
+
warning: {
|
|
8678
|
+
color: "brand.primary",
|
|
8679
|
+
name: "errorFilled",
|
|
8680
|
+
title: "Notification warning icon"
|
|
8681
|
+
}
|
|
8682
|
+
};
|
|
8915
8683
|
return React__default.createElement(Icon, Object.assign({
|
|
8916
8684
|
id: id + "-notification-icon"
|
|
8917
|
-
},
|
|
8685
|
+
}, iconProps[notificationType], baseIconProps));
|
|
8918
8686
|
};
|
|
8919
8687
|
|
|
8920
8688
|
var dismissibleButton = dismissible && React__default.createElement(Button, {
|
|
8921
|
-
|
|
8922
|
-
|
|
8923
|
-
"aria-label": "Close the notification"
|
|
8924
|
-
},
|
|
8925
|
-
buttonType: exports.ButtonTypes.Link,
|
|
8689
|
+
"aria-label": "Close the notification",
|
|
8690
|
+
buttonType: "link",
|
|
8926
8691
|
id: id + "-notification-dismissible-button",
|
|
8927
|
-
onClick: handleClose
|
|
8692
|
+
onClick: handleClose,
|
|
8693
|
+
__css: styles.dismissibleButton
|
|
8928
8694
|
}, React__default.createElement(Icon, {
|
|
8929
8695
|
id: id + "-dismissible-notification-icon",
|
|
8930
|
-
name:
|
|
8931
|
-
size:
|
|
8696
|
+
name: "close",
|
|
8697
|
+
size: "large",
|
|
8932
8698
|
title: "Notification close icon"
|
|
8933
8699
|
}));
|
|
8934
8700
|
var iconElem = iconElement();
|
|
@@ -8939,10 +8705,10 @@ var Notification$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8939
8705
|
notificationType: notificationType
|
|
8940
8706
|
}, notificationHeading); // Specific alignment styles for the content.
|
|
8941
8707
|
|
|
8942
|
-
var alignText = childHeading && showIcon && (!!icon || !isCentered);
|
|
8708
|
+
var alignText = !!(childHeading && showIcon && (!!icon || !isCentered));
|
|
8943
8709
|
var childContent = React__default.createElement(NotificationContent$1, {
|
|
8944
8710
|
alignText: alignText,
|
|
8945
|
-
icon: !childHeading ? iconElem :
|
|
8711
|
+
icon: !childHeading ? iconElem : undefined,
|
|
8946
8712
|
notificationType: notificationType
|
|
8947
8713
|
}, notificationContent); // If the `Notification` is closed, don't render anything.
|
|
8948
8714
|
|
|
@@ -8962,7 +8728,28 @@ var Notification$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8962
8728
|
}, childHeading, childContent), dismissibleButton);
|
|
8963
8729
|
});
|
|
8964
8730
|
|
|
8965
|
-
|
|
8731
|
+
// Utility functions to use throughout the codebase
|
|
8732
|
+
|
|
8733
|
+
/**
|
|
8734
|
+
* range
|
|
8735
|
+
* Get an array of values from `start` to `stop` - 1 with an optional
|
|
8736
|
+
* `step` between values.
|
|
8737
|
+
*/
|
|
8738
|
+
var range = function range(start, stop, step) {
|
|
8739
|
+
if (step === void 0) {
|
|
8740
|
+
step = 1;
|
|
8741
|
+
}
|
|
8742
|
+
|
|
8743
|
+
if (!start) {
|
|
8744
|
+
return [];
|
|
8745
|
+
}
|
|
8746
|
+
|
|
8747
|
+
return Array(Math.ceil((stop - start) / step)).fill(start).map(function (x, y) {
|
|
8748
|
+
return x + y * step;
|
|
8749
|
+
});
|
|
8750
|
+
};
|
|
8751
|
+
|
|
8752
|
+
var _excluded$1s = ["className", "currentPage", "getPageHref", "id", "initialPage", "onPageChange", "pageCount"];
|
|
8966
8753
|
/**
|
|
8967
8754
|
* A component that provides a navigational list of page items.
|
|
8968
8755
|
*/
|
|
@@ -8976,7 +8763,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8976
8763
|
initialPage = _props$initialPage === void 0 ? 1 : _props$initialPage,
|
|
8977
8764
|
onPageChange = props.onPageChange,
|
|
8978
8765
|
pageCount = props.pageCount,
|
|
8979
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8766
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1s);
|
|
8980
8767
|
|
|
8981
8768
|
var refCurrentPage = React.useRef(currentPage);
|
|
8982
8769
|
|
|
@@ -8991,7 +8778,7 @@ var Pagination$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
8991
8778
|
// to the new currentPage and update the refCurrentPage with that value.
|
|
8992
8779
|
|
|
8993
8780
|
React__default.useEffect(function () {
|
|
8994
|
-
if (onPageChange && currentPage !== refCurrentPage.current) {
|
|
8781
|
+
if (onPageChange && currentPage && currentPage !== refCurrentPage.current) {
|
|
8995
8782
|
setSelectedPage(currentPage);
|
|
8996
8783
|
refCurrentPage.current = currentPage;
|
|
8997
8784
|
}
|
|
@@ -9084,12 +8871,12 @@ var Pagination$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9084
8871
|
}
|
|
9085
8872
|
};
|
|
9086
8873
|
var linkAttrs = allAttrs[type];
|
|
9087
|
-
return React__default.createElement(Link, {
|
|
9088
|
-
additionalStyles: _extends({}, styles.link, currentStyles),
|
|
9089
|
-
attributes: linkAttrs.attributes,
|
|
8874
|
+
return React__default.createElement(Link, Object.assign({
|
|
9090
8875
|
href: linkAttrs.href,
|
|
9091
8876
|
id: id + "-" + linkAttrs.text
|
|
9092
|
-
}, linkAttrs.
|
|
8877
|
+
}, linkAttrs.attributes, {
|
|
8878
|
+
__css: _extends({}, styles.link, currentStyles)
|
|
8879
|
+
}), linkAttrs.text);
|
|
9093
8880
|
};
|
|
9094
8881
|
/**
|
|
9095
8882
|
* This function returns an array of `li` elements with numbers based on the
|
|
@@ -9161,14 +8948,14 @@ var Pagination$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9161
8948
|
className: className,
|
|
9162
8949
|
__css: styles
|
|
9163
8950
|
}, rest), React__default.createElement(List$1, {
|
|
9164
|
-
type:
|
|
8951
|
+
type: "ul",
|
|
9165
8952
|
inline: true,
|
|
9166
8953
|
noStyling: true,
|
|
9167
8954
|
id: id + "-list"
|
|
9168
8955
|
}, previousLiLink, getPaginationNumbers(selectedPage), nextLiLink));
|
|
9169
8956
|
});
|
|
9170
8957
|
|
|
9171
|
-
var _excluded$
|
|
8958
|
+
var _excluded$1t = ["darkMode", "id", "indicatorType", "isIndeterminate", "labelText", "showLabel", "size", "value"];
|
|
9172
8959
|
/**
|
|
9173
8960
|
* A component that displays a progress status for any task that takes a long
|
|
9174
8961
|
* time to complete or consists of multiple steps. Examples include downloading,
|
|
@@ -9180,17 +8967,17 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9180
8967
|
darkMode = _props$darkMode === void 0 ? false : _props$darkMode,
|
|
9181
8968
|
id = props.id,
|
|
9182
8969
|
_props$indicatorType = props.indicatorType,
|
|
9183
|
-
indicatorType = _props$indicatorType === void 0 ?
|
|
8970
|
+
indicatorType = _props$indicatorType === void 0 ? "linear" : _props$indicatorType,
|
|
9184
8971
|
_props$isIndeterminat = props.isIndeterminate,
|
|
9185
8972
|
isIndeterminate = _props$isIndeterminat === void 0 ? false : _props$isIndeterminat,
|
|
9186
8973
|
labelText = props.labelText,
|
|
9187
8974
|
_props$showLabel = props.showLabel,
|
|
9188
8975
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9189
8976
|
_props$size = props.size,
|
|
9190
|
-
size = _props$size === void 0 ?
|
|
8977
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
9191
8978
|
_props$value = props.value,
|
|
9192
8979
|
value = _props$value === void 0 ? 0 : _props$value,
|
|
9193
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
8980
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1t);
|
|
9194
8981
|
|
|
9195
8982
|
var styles = react.useMultiStyleConfig("ProgressIndicator", {
|
|
9196
8983
|
darkMode: darkMode,
|
|
@@ -9211,20 +8998,20 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9211
8998
|
id: id,
|
|
9212
8999
|
// If the label is visually shown, associate it with the progress indicator.
|
|
9213
9000
|
// Otherwise, the `aria-label` will be added.
|
|
9214
|
-
"aria-label": showLabel ?
|
|
9215
|
-
"aria-labelledby": showLabel ? id + "-label" :
|
|
9001
|
+
"aria-label": showLabel ? undefined : labelText,
|
|
9002
|
+
"aria-labelledby": showLabel ? id + "-label" : undefined,
|
|
9216
9003
|
// If `isIndeterminate` is true, then it overrides the `value` prop.
|
|
9217
|
-
isIndeterminate: isIndeterminate ||
|
|
9218
|
-
value: isIndeterminate ?
|
|
9004
|
+
isIndeterminate: isIndeterminate || undefined,
|
|
9005
|
+
value: isIndeterminate ? undefined : finalValue
|
|
9219
9006
|
};
|
|
9220
9007
|
|
|
9221
9008
|
var progressComponent = function progressComponent(indicatorType) {
|
|
9222
9009
|
// Only display the percentage text for the default size, not in the
|
|
9223
9010
|
// indeterminate state, and when `showLabel` is true.
|
|
9224
|
-
if (indicatorType ===
|
|
9011
|
+
if (indicatorType === "circular") {
|
|
9225
9012
|
// For the small size, since the label won't be visible, we need to add
|
|
9226
9013
|
// it to the parent component's `aria-label` attribute.
|
|
9227
|
-
if (size ===
|
|
9014
|
+
if (size === "small") {
|
|
9228
9015
|
progressProps["aria-label"] = labelText;
|
|
9229
9016
|
}
|
|
9230
9017
|
|
|
@@ -9232,7 +9019,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9232
9019
|
__css: styles.circularContainer
|
|
9233
9020
|
}, React__default.createElement(react.CircularProgress, Object.assign({}, progressProps, {
|
|
9234
9021
|
sx: styles.circular
|
|
9235
|
-
}), showLabel && !isIndeterminate && size !==
|
|
9022
|
+
}), showLabel && !isIndeterminate && size !== "small" && React__default.createElement(react.CircularProgressLabel, null, finalValue, "%")), showLabel && size !== "small" && React__default.createElement(Label, {
|
|
9236
9023
|
id: id + "-label",
|
|
9237
9024
|
htmlFor: id
|
|
9238
9025
|
}, labelText));
|
|
@@ -9256,7 +9043,7 @@ var ProgressIndicator$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9256
9043
|
}, rest), progressComponent(indicatorType));
|
|
9257
9044
|
});
|
|
9258
9045
|
|
|
9259
|
-
var _excluded$
|
|
9046
|
+
var _excluded$1u = ["className", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "showHelperInvalidText", "showLabel", "value"];
|
|
9260
9047
|
var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
9261
9048
|
var className = props.className,
|
|
9262
9049
|
helperText = props.helperText,
|
|
@@ -9277,11 +9064,11 @@ var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
9277
9064
|
_props$showLabel = props.showLabel,
|
|
9278
9065
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9279
9066
|
value = props.value,
|
|
9280
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9067
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1u);
|
|
9281
9068
|
|
|
9282
9069
|
var styles = react.useMultiStyleConfig("Radio", {});
|
|
9283
9070
|
var footnote = isInvalid ? invalidText : helperText;
|
|
9284
|
-
var
|
|
9071
|
+
var ariaAttributes = {};
|
|
9285
9072
|
|
|
9286
9073
|
if (!id) {
|
|
9287
9074
|
console.warn("NYPL Reservoir Radio: This component's required `id` prop was not passed.");
|
|
@@ -9292,9 +9079,9 @@ var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
9292
9079
|
console.warn("NYPL Reservoir Radio: `labelText` must be a string when `showLabel` is false.");
|
|
9293
9080
|
}
|
|
9294
9081
|
|
|
9295
|
-
|
|
9082
|
+
ariaAttributes["aria-label"] = labelText && footnote ? labelText + " - " + footnote : labelText;
|
|
9296
9083
|
} else if (footnote) {
|
|
9297
|
-
|
|
9084
|
+
ariaAttributes["aria-describedby"] = id + "-helperText";
|
|
9298
9085
|
}
|
|
9299
9086
|
|
|
9300
9087
|
return React.createElement(React.Fragment, null, React.createElement(react.Radio, Object.assign({
|
|
@@ -9310,15 +9097,15 @@ var Radio$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
9310
9097
|
ref: ref,
|
|
9311
9098
|
alignItems: "flex-start",
|
|
9312
9099
|
__css: styles
|
|
9313
|
-
},
|
|
9314
|
-
additionalStyles: styles.helperErrorText,
|
|
9100
|
+
}, ariaAttributes, rest), showLabel && labelText), footnote && showHelperInvalidText && React.createElement(HelperErrorText, {
|
|
9315
9101
|
id: id + "-helperText",
|
|
9316
9102
|
isInvalid: isInvalid,
|
|
9317
|
-
text: footnote
|
|
9103
|
+
text: footnote,
|
|
9104
|
+
__css: styles.helperErrorText
|
|
9318
9105
|
}));
|
|
9319
9106
|
}));
|
|
9320
9107
|
|
|
9321
|
-
var _excluded$
|
|
9108
|
+
var _excluded$1v = ["children", "className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isFullWidth", "isInvalid", "isRequired", "labelText", "layout", "name", "onChange", "showHelperInvalidText", "showLabel", "showRequiredLabel"];
|
|
9322
9109
|
/**
|
|
9323
9110
|
* RadioGroup is a wrapper for DS `Radio` components that renders as a fieldset
|
|
9324
9111
|
* HTML element along with optional helper text. The `name` prop is essential
|
|
@@ -9345,7 +9132,7 @@ var RadioGroup$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
9345
9132
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
9346
9133
|
labelText = props.labelText,
|
|
9347
9134
|
_props$layout = props.layout,
|
|
9348
|
-
layout = _props$layout === void 0 ?
|
|
9135
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
9349
9136
|
name = props.name,
|
|
9350
9137
|
_onChange = props.onChange,
|
|
9351
9138
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
@@ -9354,14 +9141,14 @@ var RadioGroup$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
9354
9141
|
showLabel = _props$showLabel === void 0 ? true : _props$showLabel,
|
|
9355
9142
|
_props$showRequiredLa = props.showRequiredLabel,
|
|
9356
9143
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
9357
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9144
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1v);
|
|
9358
9145
|
|
|
9359
9146
|
var _React$useState = React.useState(defaultValue),
|
|
9360
9147
|
value = _React$useState[0],
|
|
9361
9148
|
setValue = _React$useState[1];
|
|
9362
9149
|
|
|
9363
9150
|
var footnote = isInvalid ? invalidText : helperText;
|
|
9364
|
-
var spacingProp = layout ===
|
|
9151
|
+
var spacingProp = layout === "column" ? spacing.s : spacing.l;
|
|
9365
9152
|
var newChildren = []; // Get the Chakra-based styles for the custom elements in this component.
|
|
9366
9153
|
|
|
9367
9154
|
var styles = react.useMultiStyleConfig("RadioGroup", {
|
|
@@ -9416,21 +9203,14 @@ var RadioGroup$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(func
|
|
|
9416
9203
|
spacing: spacingProp,
|
|
9417
9204
|
sx: styles.stack
|
|
9418
9205
|
}, newChildren)), footnote && showHelperInvalidText && React.createElement(HelperErrorText, {
|
|
9419
|
-
additionalStyles: styles.helperErrorText,
|
|
9420
9206
|
id: id + "-helperErrorText",
|
|
9421
9207
|
isInvalid: isInvalid,
|
|
9422
|
-
text: footnote
|
|
9208
|
+
text: footnote,
|
|
9209
|
+
__css: styles.helperErrorText
|
|
9423
9210
|
}));
|
|
9424
9211
|
}));
|
|
9425
9212
|
|
|
9426
|
-
|
|
9427
|
-
TextSizes["Default"] = "default";
|
|
9428
|
-
TextSizes["Caption"] = "caption";
|
|
9429
|
-
TextSizes["Tag"] = "tag";
|
|
9430
|
-
TextSizes["Mini"] = "mini";
|
|
9431
|
-
})(exports.TextSizes || (exports.TextSizes = {}));
|
|
9432
|
-
|
|
9433
|
-
var _excluded$1u = ["children", "className", "isBold", "isItalic", "noSpace", "size"];
|
|
9213
|
+
var _excluded$1w = ["children", "className", "isBold", "isItalic", "noSpace", "size"];
|
|
9434
9214
|
var Text$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
9435
9215
|
var children = props.children,
|
|
9436
9216
|
_props$className = props.className,
|
|
@@ -9439,12 +9219,11 @@ var Text$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9439
9219
|
isItalic = props.isItalic,
|
|
9440
9220
|
noSpace = props.noSpace,
|
|
9441
9221
|
_props$size = props.size,
|
|
9442
|
-
size = _props$size === void 0 ?
|
|
9443
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9222
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
9223
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1w);
|
|
9444
9224
|
|
|
9445
|
-
var variant = getVariant(size, exports.TextSizes, exports.TextSizes.Default);
|
|
9446
9225
|
var styles = react.useStyleConfig("Text", {
|
|
9447
|
-
variant:
|
|
9226
|
+
variant: size,
|
|
9448
9227
|
isBold: isBold,
|
|
9449
9228
|
isItalic: isItalic,
|
|
9450
9229
|
noSpace: noSpace
|
|
@@ -9460,7 +9239,7 @@ var Text$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9460
9239
|
}, rest), children);
|
|
9461
9240
|
});
|
|
9462
9241
|
|
|
9463
|
-
var _excluded$
|
|
9242
|
+
var _excluded$1x = ["children", "descriptionText", "headingText", "helperText", "id", "invalidText", "isInvalid"];
|
|
9464
9243
|
var ComponentWrapper$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
9465
9244
|
var children = props.children,
|
|
9466
9245
|
descriptionText = props.descriptionText,
|
|
@@ -9470,7 +9249,7 @@ var ComponentWrapper$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9470
9249
|
invalidText = props.invalidText,
|
|
9471
9250
|
_props$isInvalid = props.isInvalid,
|
|
9472
9251
|
isInvalid = _props$isInvalid === void 0 ? false : _props$isInvalid,
|
|
9473
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9252
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1x);
|
|
9474
9253
|
|
|
9475
9254
|
var hasChildren = !!children;
|
|
9476
9255
|
var styles = react.useMultiStyleConfig("ComponentWrapper", {
|
|
@@ -9487,39 +9266,23 @@ var ComponentWrapper$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9487
9266
|
__css: styles
|
|
9488
9267
|
}, rest), headingText && React.createElement(Heading, {
|
|
9489
9268
|
id: id + "-heading",
|
|
9490
|
-
level: exports.HeadingLevels.Two,
|
|
9491
9269
|
text: headingText
|
|
9492
9270
|
}), descriptionText && React.createElement(Text$1, null, descriptionText), children, footnote && React.createElement(HelperErrorText, {
|
|
9493
|
-
additionalStyles: styles.helperErrorText,
|
|
9494
9271
|
id: id + "-helperText",
|
|
9495
9272
|
isInvalid: isInvalid,
|
|
9496
|
-
text: footnote
|
|
9273
|
+
text: footnote,
|
|
9274
|
+
__css: styles.helperErrorText
|
|
9497
9275
|
}));
|
|
9498
9276
|
});
|
|
9499
9277
|
|
|
9500
|
-
|
|
9501
|
-
var SelectTypes;
|
|
9502
|
-
|
|
9503
|
-
(function (SelectTypes) {
|
|
9504
|
-
SelectTypes["Default"] = "default";
|
|
9505
|
-
SelectTypes["SearchBar"] = "searchbar";
|
|
9506
|
-
})(SelectTypes || (SelectTypes = {}));
|
|
9507
|
-
|
|
9508
|
-
(function (LabelPositions) {
|
|
9509
|
-
LabelPositions["Default"] = "default";
|
|
9510
|
-
LabelPositions["Inline"] = "inline";
|
|
9511
|
-
})(exports.LabelPositions || (exports.LabelPositions = {}));
|
|
9512
|
-
|
|
9513
|
-
var _excluded$1w = ["additionalStyles", "children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
9278
|
+
var _excluded$1y = ["children", "className", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelPosition", "labelText", "name", "onChange", "placeholder", "selectType", "showHelperInvalidText", "showLabel", "showRequiredLabel", "value"];
|
|
9514
9279
|
/**
|
|
9515
9280
|
* Component that renders Chakra's `Select` component along with an accessible
|
|
9516
9281
|
* `Label` and optional `HelperErrorText` component.
|
|
9517
9282
|
*/
|
|
9518
9283
|
|
|
9519
9284
|
var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardRef(function (props, ref) {
|
|
9520
|
-
var
|
|
9521
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
9522
|
-
children = props.children,
|
|
9285
|
+
var children = props.children,
|
|
9523
9286
|
className = props.className,
|
|
9524
9287
|
helperText = props.helperText,
|
|
9525
9288
|
id = props.id,
|
|
@@ -9531,13 +9294,13 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardRef
|
|
|
9531
9294
|
_props$isRequired = props.isRequired,
|
|
9532
9295
|
isRequired = _props$isRequired === void 0 ? false : _props$isRequired,
|
|
9533
9296
|
_props$labelPosition = props.labelPosition,
|
|
9534
|
-
labelPosition = _props$labelPosition === void 0 ?
|
|
9297
|
+
labelPosition = _props$labelPosition === void 0 ? "default" : _props$labelPosition,
|
|
9535
9298
|
labelText = props.labelText,
|
|
9536
9299
|
name = props.name,
|
|
9537
9300
|
onChange = props.onChange,
|
|
9538
9301
|
placeholder = props.placeholder,
|
|
9539
9302
|
_props$selectType = props.selectType,
|
|
9540
|
-
selectType = _props$selectType === void 0 ?
|
|
9303
|
+
selectType = _props$selectType === void 0 ? "default" : _props$selectType,
|
|
9541
9304
|
_props$showHelperInva = props.showHelperInvalidText,
|
|
9542
9305
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
9543
9306
|
_props$showLabel = props.showLabel,
|
|
@@ -9546,7 +9309,7 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardRef
|
|
|
9546
9309
|
showRequiredLabel = _props$showRequiredLa === void 0 ? true : _props$showRequiredLa,
|
|
9547
9310
|
_props$value = props.value,
|
|
9548
9311
|
value = _props$value === void 0 ? "" : _props$value,
|
|
9549
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9312
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1y);
|
|
9550
9313
|
|
|
9551
9314
|
var ariaAttributes = {};
|
|
9552
9315
|
|
|
@@ -9554,11 +9317,10 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardRef
|
|
|
9554
9317
|
labelWidth = _useState[0],
|
|
9555
9318
|
setLabelWidth = _useState[1];
|
|
9556
9319
|
|
|
9557
|
-
var labelRef = React.useRef();
|
|
9320
|
+
var labelRef = React.useRef(null);
|
|
9558
9321
|
var styles = react.useMultiStyleConfig("CustomSelect", {
|
|
9559
9322
|
variant: selectType,
|
|
9560
|
-
labelPosition: labelPosition
|
|
9561
|
-
labelWidth: labelWidth
|
|
9323
|
+
labelPosition: labelPosition
|
|
9562
9324
|
});
|
|
9563
9325
|
var finalInvalidText = invalidText ? invalidText : "There is an error related to this field.";
|
|
9564
9326
|
var footnote = isInvalid ? finalInvalidText : helperText; // To control the `Select` component, both `onChange` and `value`
|
|
@@ -9567,7 +9329,10 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardRef
|
|
|
9567
9329
|
var controlledProps = onChange ? {
|
|
9568
9330
|
onChange: onChange,
|
|
9569
9331
|
value: value
|
|
9570
|
-
} : {};
|
|
9332
|
+
} : {}; // The number of pixels between the label and select elements
|
|
9333
|
+
// when the labelPosition is inline (equivalent to --nypl-space-xs).
|
|
9334
|
+
|
|
9335
|
+
var labelSelectGap = 8;
|
|
9571
9336
|
|
|
9572
9337
|
if (!showLabel) {
|
|
9573
9338
|
ariaAttributes["aria-label"] = labelText && footnote ? labelText + " - " + footnote : labelText;
|
|
@@ -9580,18 +9345,20 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardRef
|
|
|
9580
9345
|
}
|
|
9581
9346
|
|
|
9582
9347
|
React.useEffect(function () {
|
|
9583
|
-
if (labelPosition ===
|
|
9348
|
+
if (labelPosition === "inline") {
|
|
9584
9349
|
if (labelRef.current) {
|
|
9585
|
-
var width = labelRef.current.clientWidth +
|
|
9350
|
+
var width = labelRef.current.clientWidth + labelSelectGap;
|
|
9586
9351
|
setLabelWidth(width);
|
|
9587
9352
|
}
|
|
9353
|
+
} else {
|
|
9354
|
+
setLabelWidth(0);
|
|
9588
9355
|
}
|
|
9589
9356
|
}, [labelPosition]);
|
|
9590
9357
|
return React__default.createElement(react.Box, Object.assign({
|
|
9591
9358
|
className: className,
|
|
9592
|
-
__css:
|
|
9359
|
+
__css: styles
|
|
9593
9360
|
}, rest), React__default.createElement(react.Box, {
|
|
9594
|
-
__css: labelPosition ===
|
|
9361
|
+
__css: labelPosition === "inline" && styles.inline
|
|
9595
9362
|
}, showLabel && React__default.createElement(react.Box, {
|
|
9596
9363
|
ref: labelRef
|
|
9597
9364
|
}, React__default.createElement(Label, {
|
|
@@ -9611,18 +9378,22 @@ var Select$1 = /*#__PURE__*/react.chakra( /*#__PURE__*/React__default.forwardRef
|
|
|
9611
9378
|
}, controlledProps, ariaAttributes, {
|
|
9612
9379
|
icon: React__default.createElement(Icon, {
|
|
9613
9380
|
id: id + "-icon",
|
|
9614
|
-
name:
|
|
9615
|
-
size:
|
|
9381
|
+
name: "arrow",
|
|
9382
|
+
size: "medium"
|
|
9616
9383
|
}),
|
|
9617
9384
|
__css: styles.select
|
|
9618
|
-
}), children), footnote && showHelperInvalidText && React__default.createElement(HelperErrorText, {
|
|
9385
|
+
}), children)), footnote && showHelperInvalidText && React__default.createElement(HelperErrorText, {
|
|
9619
9386
|
id: id + "-helperText",
|
|
9620
9387
|
isInvalid: isInvalid,
|
|
9621
|
-
text: footnote
|
|
9622
|
-
|
|
9388
|
+
text: footnote,
|
|
9389
|
+
ml: {
|
|
9390
|
+
sm: "auto",
|
|
9391
|
+
md: labelWidth + "px"
|
|
9392
|
+
}
|
|
9393
|
+
}));
|
|
9623
9394
|
}));
|
|
9624
9395
|
|
|
9625
|
-
var _excluded$
|
|
9396
|
+
var _excluded$1z = ["action", "buttonOnClick", "className", "descriptionText", "headingText", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRequired", "labelText", "method", "noBrandButtonType", "onSubmit", "selectProps", "textInputElement", "textInputProps"];
|
|
9626
9397
|
/**
|
|
9627
9398
|
* Renders a wrapper `form` element to be used with `Select` (optional),
|
|
9628
9399
|
* `Input`, and `Button` components together.
|
|
@@ -9630,8 +9401,7 @@ var _excluded$1x = ["action", "buttonOnClick", "className", "descriptionText", "
|
|
|
9630
9401
|
|
|
9631
9402
|
var SearchBar$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
9632
9403
|
var action = props.action,
|
|
9633
|
-
|
|
9634
|
-
buttonOnClick = _props$buttonOnClick === void 0 ? null : _props$buttonOnClick,
|
|
9404
|
+
buttonOnClick = props.buttonOnClick,
|
|
9635
9405
|
className = props.className,
|
|
9636
9406
|
descriptionText = props.descriptionText,
|
|
9637
9407
|
headingText = props.headingText,
|
|
@@ -9652,7 +9422,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9652
9422
|
selectProps = props.selectProps,
|
|
9653
9423
|
textInputElement = props.textInputElement,
|
|
9654
9424
|
textInputProps = props.textInputProps,
|
|
9655
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9425
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1z);
|
|
9656
9426
|
|
|
9657
9427
|
var styles = react.useMultiStyleConfig("SearchBar", {});
|
|
9658
9428
|
var stateProps = {
|
|
@@ -9667,7 +9437,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9667
9437
|
var finalAriaLabel = footnote ? labelText + " - " + footnote : labelText;
|
|
9668
9438
|
var inputPlaceholder = (textInputProps == null ? void 0 : textInputProps.placeholder) || "Search terms";
|
|
9669
9439
|
var textInputPlaceholder = inputPlaceholder + " " + (isRequired ? "(Required)" : "");
|
|
9670
|
-
var buttonType = noBrandButtonType ?
|
|
9440
|
+
var buttonType = noBrandButtonType ? "noBrand" : "primary";
|
|
9671
9441
|
var searchBarButtonStyles = {
|
|
9672
9442
|
borderLeftRadius: "none",
|
|
9673
9443
|
borderRightRadius: {
|
|
@@ -9684,13 +9454,13 @@ var SearchBar$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9684
9454
|
|
|
9685
9455
|
|
|
9686
9456
|
var selectElem = selectProps && React.createElement(Select$1, Object.assign({
|
|
9687
|
-
additionalStyles: styles.select,
|
|
9688
9457
|
id: "searchbar-select-" + id,
|
|
9689
9458
|
labelText: selectProps == null ? void 0 : selectProps.labelText,
|
|
9690
9459
|
name: selectProps == null ? void 0 : selectProps.name,
|
|
9691
9460
|
onChange: selectProps == null ? void 0 : selectProps.onChange,
|
|
9692
|
-
selectType:
|
|
9693
|
-
value: selectProps == null ? void 0 : selectProps.value
|
|
9461
|
+
selectType: "searchbar",
|
|
9462
|
+
value: selectProps == null ? void 0 : selectProps.value,
|
|
9463
|
+
__css: styles.select
|
|
9694
9464
|
}, stateProps), selectProps == null ? void 0 : selectProps.optionsData.map(function (option) {
|
|
9695
9465
|
return React.createElement("option", {
|
|
9696
9466
|
key: option,
|
|
@@ -9704,23 +9474,23 @@ var SearchBar$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9704
9474
|
name: textInputProps == null ? void 0 : textInputProps.name,
|
|
9705
9475
|
onChange: textInputProps == null ? void 0 : textInputProps.onChange,
|
|
9706
9476
|
placeholder: textInputPlaceholder,
|
|
9707
|
-
textInputType: selectElem ?
|
|
9708
|
-
type:
|
|
9477
|
+
textInputType: selectElem ? "searchBarSelect" : "searchBar",
|
|
9478
|
+
type: "text",
|
|
9709
9479
|
value: textInputProps == null ? void 0 : textInputProps.value
|
|
9710
9480
|
}, stateProps)); // Render the `Button` component.
|
|
9711
9481
|
|
|
9712
9482
|
var buttonElem = React.createElement(Button, {
|
|
9713
|
-
additionalStyles: searchBarButtonStyles,
|
|
9714
9483
|
buttonType: buttonType,
|
|
9715
9484
|
id: "searchbar-button-" + id,
|
|
9716
9485
|
isDisabled: isDisabled,
|
|
9717
9486
|
onClick: buttonOnClick,
|
|
9718
|
-
type: "submit"
|
|
9487
|
+
type: "submit",
|
|
9488
|
+
__css: searchBarButtonStyles
|
|
9719
9489
|
}, React.createElement(Icon, {
|
|
9720
|
-
align:
|
|
9490
|
+
align: "left",
|
|
9721
9491
|
id: "searchbar-icon-" + id,
|
|
9722
|
-
name:
|
|
9723
|
-
size:
|
|
9492
|
+
name: "search",
|
|
9493
|
+
size: "small"
|
|
9724
9494
|
}), "Search"); // If a custom input element was passed, use that element
|
|
9725
9495
|
// instead of the DS `TextInput` component.
|
|
9726
9496
|
|
|
@@ -9745,13 +9515,7 @@ var SearchBar$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9745
9515
|
}, selectElem, textInputElem, buttonElem));
|
|
9746
9516
|
});
|
|
9747
9517
|
|
|
9748
|
-
|
|
9749
|
-
SkeletonLoaderImageRatios["Landscape"] = "landscape";
|
|
9750
|
-
SkeletonLoaderImageRatios["Portrait"] = "portrait";
|
|
9751
|
-
SkeletonLoaderImageRatios["Square"] = "square";
|
|
9752
|
-
})(exports.SkeletonLoaderImageRatios || (exports.SkeletonLoaderImageRatios = {}));
|
|
9753
|
-
|
|
9754
|
-
var _excluded$1y = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
|
|
9518
|
+
var _excluded$1A = ["className", "contentSize", "headingSize", "imageAspectRatio", "isBordered", "layout", "showButton", "showContent", "showHeading", "showImage", "width"];
|
|
9755
9519
|
/**
|
|
9756
9520
|
* The `SkeletonLoader` component renders a placeholder to be used while
|
|
9757
9521
|
* dynamic content is loading.
|
|
@@ -9764,11 +9528,11 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9764
9528
|
_props$headingSize = props.headingSize,
|
|
9765
9529
|
headingSize = _props$headingSize === void 0 ? 1 : _props$headingSize,
|
|
9766
9530
|
_props$imageAspectRat = props.imageAspectRatio,
|
|
9767
|
-
imageAspectRatio = _props$imageAspectRat === void 0 ?
|
|
9531
|
+
imageAspectRatio = _props$imageAspectRat === void 0 ? "square" : _props$imageAspectRat,
|
|
9768
9532
|
_props$isBordered = props.isBordered,
|
|
9769
9533
|
isBordered = _props$isBordered === void 0 ? false : _props$isBordered,
|
|
9770
9534
|
_props$layout = props.layout,
|
|
9771
|
-
layout = _props$layout === void 0 ?
|
|
9535
|
+
layout = _props$layout === void 0 ? "column" : _props$layout,
|
|
9772
9536
|
_props$showButton = props.showButton,
|
|
9773
9537
|
showButton = _props$showButton === void 0 ? false : _props$showButton,
|
|
9774
9538
|
_props$showContent = props.showContent,
|
|
@@ -9778,7 +9542,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9778
9542
|
_props$showImage = props.showImage,
|
|
9779
9543
|
showImage = _props$showImage === void 0 ? true : _props$showImage,
|
|
9780
9544
|
width = props.width,
|
|
9781
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9545
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1A);
|
|
9782
9546
|
|
|
9783
9547
|
var styles = react.useMultiStyleConfig("SkeletonLoader", {
|
|
9784
9548
|
isBordered: isBordered,
|
|
@@ -9803,7 +9567,7 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9803
9567
|
|
|
9804
9568
|
return new Array(size).fill(null).map(function (_, i) {
|
|
9805
9569
|
var width = i === size - 1 ? lastWidth : "100%";
|
|
9806
|
-
var marginBottomValue = i === size - 1 && type === "content" ? "0" :
|
|
9570
|
+
var marginBottomValue = i === size - 1 && type === "content" ? "0" : undefined;
|
|
9807
9571
|
return React.createElement(react.Skeleton, {
|
|
9808
9572
|
key: type + "-" + i,
|
|
9809
9573
|
width: width
|
|
@@ -9840,7 +9604,40 @@ var SkeletonLoader$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9840
9604
|
})))));
|
|
9841
9605
|
});
|
|
9842
9606
|
|
|
9843
|
-
var _excluded$
|
|
9607
|
+
var _excluded$1B = ["className", "id", "target"];
|
|
9608
|
+
/**
|
|
9609
|
+
* SkipNavigation is a component that is used to provide a navigational list of
|
|
9610
|
+
* links. The first link is used to skip to the main content of the page using
|
|
9611
|
+
* the `#mainContent` id, and the second link points to accessibility information
|
|
9612
|
+
* on NYPL.org. These links are visually hidden but can be read by screenreaders.
|
|
9613
|
+
*/
|
|
9614
|
+
|
|
9615
|
+
var SkipNavigation$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
9616
|
+
var className = props.className,
|
|
9617
|
+
id = props.id,
|
|
9618
|
+
_props$target = props.target,
|
|
9619
|
+
target = _props$target === void 0 ? "#mainContent" : _props$target,
|
|
9620
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1B);
|
|
9621
|
+
|
|
9622
|
+
var styles = react.useStyleConfig("SkipNavigation");
|
|
9623
|
+
return React.createElement(react.Box, Object.assign({
|
|
9624
|
+
as: "nav",
|
|
9625
|
+
"aria-label": "Skip Navigation",
|
|
9626
|
+
className: className,
|
|
9627
|
+
id: id,
|
|
9628
|
+
__css: styles
|
|
9629
|
+
}, rest), React.createElement(List$1, {
|
|
9630
|
+
inline: true,
|
|
9631
|
+
noStyling: true,
|
|
9632
|
+
type: "ul"
|
|
9633
|
+
}, React.createElement("li", null, React.createElement(Link, {
|
|
9634
|
+
href: target
|
|
9635
|
+
}, "Skip to Main Content")), React.createElement("li", null, React.createElement(Link, {
|
|
9636
|
+
href: "https://www.nypl.org/accessibility"
|
|
9637
|
+
}, "Click to learn about accessibility at the Library"))));
|
|
9638
|
+
});
|
|
9639
|
+
|
|
9640
|
+
var _excluded$1C = ["className", "defaultValue", "helperText", "id", "invalidText", "isDisabled", "isInvalid", "isRangeSlider", "isRequired", "labelText", "max", "min", "name", "onChange", "showBoxes", "showHelperInvalidText", "showLabel", "showRequiredLabel", "showValues", "step"];
|
|
9844
9641
|
/**
|
|
9845
9642
|
* The `Slider` component renders a singular value slider or a range slider
|
|
9846
9643
|
* with a min and max value. The value(s) can be updated through the slider
|
|
@@ -9881,7 +9678,7 @@ var Slider = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9881
9678
|
showValues = _props$showValues === void 0 ? true : _props$showValues,
|
|
9882
9679
|
_props$step = props.step,
|
|
9883
9680
|
step = _props$step === void 0 ? 1 : _props$step,
|
|
9884
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9681
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1C);
|
|
9885
9682
|
|
|
9886
9683
|
if (!id) {
|
|
9887
9684
|
console.warn("NYPL Reservoir Slider: This component's required `id` prop was not passed.");
|
|
@@ -9932,18 +9729,16 @@ var Slider = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9932
9729
|
}; // Props that the two `TextInput` components use.
|
|
9933
9730
|
|
|
9934
9731
|
var textInputSharedProps = {
|
|
9935
|
-
attributes: {
|
|
9936
|
-
max: max,
|
|
9937
|
-
min: min
|
|
9938
|
-
},
|
|
9939
9732
|
isDisabled: isDisabled,
|
|
9940
9733
|
isInvalid: finalIsInvalid,
|
|
9941
9734
|
isRequired: isRequired,
|
|
9735
|
+
max: max,
|
|
9736
|
+
min: min,
|
|
9942
9737
|
// Never show the label or helper text for the `TextInput` component.
|
|
9943
9738
|
showHelperInvalidText: false,
|
|
9944
9739
|
showLabel: false,
|
|
9945
9740
|
step: step,
|
|
9946
|
-
type:
|
|
9741
|
+
type: "number"
|
|
9947
9742
|
};
|
|
9948
9743
|
/**
|
|
9949
9744
|
* This returns either the "start" or "end" `TextInput` component. Note that
|
|
@@ -9995,7 +9790,7 @@ var Slider = /*#__PURE__*/react.chakra(function (props) {
|
|
|
9995
9790
|
return React.createElement(TextInput, Object.assign({
|
|
9996
9791
|
id: id + "-textInput-" + type,
|
|
9997
9792
|
labelText: updatedLabel,
|
|
9998
|
-
|
|
9793
|
+
__css: _extends({}, styles.textInput, {
|
|
9999
9794
|
// Specific margins for each text input to
|
|
10000
9795
|
// push the elements inside.
|
|
10001
9796
|
marginRight: type === "start" ? "s" : null,
|
|
@@ -10012,8 +9807,8 @@ var Slider = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10012
9807
|
var getSliderType = function getSliderType() {
|
|
10013
9808
|
return isRangeSlider ? React.createElement(react.RangeSlider // Both slider thumbs need values and should be in an array.
|
|
10014
9809
|
, Object.assign({
|
|
10015
|
-
"aria-label": !showLabel ? [labelText + " - start value", labelText + " - end value"] :
|
|
10016
|
-
"aria-labelledby": showLabel ? [id + "-label", id + "-label"] :
|
|
9810
|
+
"aria-label": !showLabel ? [labelText + " - start value", labelText + " - end value"] : undefined,
|
|
9811
|
+
"aria-labelledby": showLabel ? [id + "-label", id + "-label"] : undefined,
|
|
10017
9812
|
value: currentValue,
|
|
10018
9813
|
// Make the thumbs larger.
|
|
10019
9814
|
size: "lg"
|
|
@@ -10028,7 +9823,7 @@ var Slider = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10028
9823
|
index: 1,
|
|
10029
9824
|
sx: styles.thumb
|
|
10030
9825
|
})) : React.createElement(react.Slider, Object.assign({
|
|
10031
|
-
"aria-label": !showLabel ? labelText :
|
|
9826
|
+
"aria-label": !showLabel ? labelText : undefined,
|
|
10032
9827
|
"aria-labelledby": id + "-label",
|
|
10033
9828
|
value: currentValue,
|
|
10034
9829
|
// Make the thumb larger.
|
|
@@ -10051,7 +9846,7 @@ var Slider = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10051
9846
|
// should link the label somewhere. So either target the first
|
|
10052
9847
|
// input box in a `RangeSlider` or the only input box in a `Slider`.
|
|
10053
9848
|
// When the input fields are not visible, remove this attribute.
|
|
10054
|
-
htmlFor: showBoxes ? id + "-textInput-" + (isRangeSlider ? "start" : "end") :
|
|
9849
|
+
htmlFor: showBoxes ? id + "-textInput-" + (isRangeSlider ? "start" : "end") : "",
|
|
10055
9850
|
isRequired: showRequiredLabel && isRequired
|
|
10056
9851
|
}, labelText), React.createElement(react.Box, {
|
|
10057
9852
|
__css: styles.container
|
|
@@ -10066,13 +9861,7 @@ var Slider = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10066
9861
|
}));
|
|
10067
9862
|
});
|
|
10068
9863
|
|
|
10069
|
-
|
|
10070
|
-
StatusBadgeTypes["Low"] = "low";
|
|
10071
|
-
StatusBadgeTypes["Medium"] = "medium";
|
|
10072
|
-
StatusBadgeTypes["High"] = "high";
|
|
10073
|
-
})(exports.StatusBadgeTypes || (exports.StatusBadgeTypes = {}));
|
|
10074
|
-
|
|
10075
|
-
var _excluded$1A = ["children", "className", "id", "level"];
|
|
9864
|
+
var _excluded$1D = ["children", "className", "id", "level"];
|
|
10076
9865
|
/**
|
|
10077
9866
|
* The `StatusBadge` component is used to display a visual badge for three
|
|
10078
9867
|
* different status levels.
|
|
@@ -10083,8 +9872,8 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10083
9872
|
className = props.className,
|
|
10084
9873
|
id = props.id,
|
|
10085
9874
|
_props$level = props.level,
|
|
10086
|
-
level = _props$level === void 0 ?
|
|
10087
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9875
|
+
level = _props$level === void 0 ? "low" : _props$level,
|
|
9876
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1D);
|
|
10088
9877
|
|
|
10089
9878
|
var styles = react.useStyleConfig("StatusBadge", {
|
|
10090
9879
|
variant: level
|
|
@@ -10101,13 +9890,7 @@ var StatusBadge$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10101
9890
|
}, rest), children);
|
|
10102
9891
|
});
|
|
10103
9892
|
|
|
10104
|
-
|
|
10105
|
-
StructuredContentImagePosition["Left"] = "left";
|
|
10106
|
-
StructuredContentImagePosition["Right"] = "right";
|
|
10107
|
-
StructuredContentImagePosition["Center"] = "center";
|
|
10108
|
-
})(exports.StructuredContentImagePosition || (exports.StructuredContentImagePosition = {}));
|
|
10109
|
-
|
|
10110
|
-
var _excluded$1B = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
|
|
9893
|
+
var _excluded$1E = ["calloutText", "className", "headingText", "id", "imageProps", "bodyContent"];
|
|
10111
9894
|
/**
|
|
10112
9895
|
* Internal component used in the `StructuredContent` component
|
|
10113
9896
|
* that renders the DS `Image` component.
|
|
@@ -10150,16 +9933,16 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10150
9933
|
_props$imageProps = props.imageProps,
|
|
10151
9934
|
imageProps = _props$imageProps === void 0 ? {
|
|
10152
9935
|
alt: "",
|
|
10153
|
-
aspectRatio:
|
|
9936
|
+
aspectRatio: "square",
|
|
10154
9937
|
caption: undefined,
|
|
10155
9938
|
component: undefined,
|
|
10156
9939
|
credit: undefined,
|
|
10157
|
-
position:
|
|
10158
|
-
size:
|
|
9940
|
+
position: "left",
|
|
9941
|
+
size: "medium",
|
|
10159
9942
|
src: ""
|
|
10160
9943
|
} : _props$imageProps,
|
|
10161
9944
|
bodyContent = props.bodyContent,
|
|
10162
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
9945
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1E);
|
|
10163
9946
|
|
|
10164
9947
|
var hasImage = imageProps.src || imageProps.component;
|
|
10165
9948
|
var hasFigureImage = imageProps.caption || imageProps.credit;
|
|
@@ -10186,12 +9969,11 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10186
9969
|
className: className,
|
|
10187
9970
|
__css: styles
|
|
10188
9971
|
}, rest), headingText && React.createElement(Heading, {
|
|
10189
|
-
id: id + "-heading"
|
|
10190
|
-
level: exports.HeadingLevels.Two
|
|
9972
|
+
id: id + "-heading"
|
|
10191
9973
|
}, headingText), calloutText && React.createElement(Heading, {
|
|
10192
9974
|
id: id + "-callout",
|
|
10193
|
-
level:
|
|
10194
|
-
size:
|
|
9975
|
+
level: "three",
|
|
9976
|
+
size: "callout"
|
|
10195
9977
|
}, calloutText), hasImage && React.createElement(StructuredContentImage, {
|
|
10196
9978
|
additionalFigureStyles: styles.imageFigure,
|
|
10197
9979
|
additionalImageStyles: styles.image,
|
|
@@ -10202,7 +9984,7 @@ var StructuredContent$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10202
9984
|
caption: imageProps.caption,
|
|
10203
9985
|
credit: imageProps.credit,
|
|
10204
9986
|
size: imageProps.size,
|
|
10205
|
-
src: imageProps.src ? imageProps.src :
|
|
9987
|
+
src: imageProps.src ? imageProps.src : undefined
|
|
10206
9988
|
}), finalBodyContent);
|
|
10207
9989
|
});
|
|
10208
9990
|
|
|
@@ -10261,7 +10043,7 @@ var useCarouselStyles = function useCarouselStyles(slidesCount, slideWidth) {
|
|
|
10261
10043
|
};
|
|
10262
10044
|
};
|
|
10263
10045
|
|
|
10264
|
-
var _excluded$
|
|
10046
|
+
var _excluded$1F = ["children", "defaultIndex", "id", "onChange", "tabsData", "useHash"];
|
|
10265
10047
|
/**
|
|
10266
10048
|
* An internal function used to update the hash in the URL.
|
|
10267
10049
|
* This function is only used when `useHash` is `true`.
|
|
@@ -10299,7 +10081,7 @@ var getElementsFromData$2 = function getElementsFromData(data, useHash) {
|
|
|
10299
10081
|
key: index,
|
|
10300
10082
|
onClick: useHash ? function () {
|
|
10301
10083
|
return onClickHash("tab" + (index + 1));
|
|
10302
|
-
} :
|
|
10084
|
+
} : undefined
|
|
10303
10085
|
}, tab.label);
|
|
10304
10086
|
|
|
10305
10087
|
if (typeof tab.content === "string") {
|
|
@@ -10380,7 +10162,7 @@ var Tabs = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10380
10162
|
tabsData = props.tabsData,
|
|
10381
10163
|
_props$useHash = props.useHash,
|
|
10382
10164
|
useHash = _props$useHash === void 0 ? false : _props$useHash,
|
|
10383
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10165
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1F);
|
|
10384
10166
|
|
|
10385
10167
|
var styles = react.useMultiStyleConfig("Tabs", {}); // Just an estimate of the tab width for the mobile carousel.
|
|
10386
10168
|
|
|
@@ -10426,34 +10208,30 @@ var Tabs = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10426
10208
|
}
|
|
10427
10209
|
}, [goToStart, windowDimensions.width]);
|
|
10428
10210
|
var previousButton = React.createElement(Button, {
|
|
10429
|
-
|
|
10430
|
-
"aria-label": "Previous"
|
|
10431
|
-
}, styles.buttonArrows, {
|
|
10432
|
-
left: "0"
|
|
10433
|
-
}),
|
|
10434
|
-
buttonType: exports.ButtonTypes.Primary,
|
|
10211
|
+
"aria-label": "Previous",
|
|
10435
10212
|
id: "tabs-previous-" + id,
|
|
10436
|
-
onClick: prevSlide
|
|
10213
|
+
onClick: prevSlide,
|
|
10214
|
+
__css: _extends({}, styles.buttonArrows, {
|
|
10215
|
+
left: "0"
|
|
10216
|
+
})
|
|
10437
10217
|
}, React.createElement(Icon, {
|
|
10438
|
-
iconRotation:
|
|
10218
|
+
iconRotation: "rotate90",
|
|
10439
10219
|
id: "tabs-previous-icon-" + id,
|
|
10440
|
-
name:
|
|
10441
|
-
size:
|
|
10220
|
+
name: "arrow",
|
|
10221
|
+
size: "small"
|
|
10442
10222
|
}));
|
|
10443
10223
|
var nextButton = React.createElement(Button, {
|
|
10444
|
-
|
|
10445
|
-
"aria-label": "Next"
|
|
10446
|
-
}, styles.buttonArrows, {
|
|
10447
|
-
right: "0"
|
|
10448
|
-
}),
|
|
10449
|
-
buttonType: exports.ButtonTypes.Primary,
|
|
10224
|
+
"aria-label": "Next",
|
|
10450
10225
|
id: "tabs-next-" + id,
|
|
10451
|
-
onClick: nextSlide
|
|
10226
|
+
onClick: nextSlide,
|
|
10227
|
+
__css: _extends({}, styles.buttonArrows, {
|
|
10228
|
+
right: "0"
|
|
10229
|
+
})
|
|
10452
10230
|
}, React.createElement(Icon, {
|
|
10453
|
-
iconRotation:
|
|
10231
|
+
iconRotation: "rotate270",
|
|
10454
10232
|
id: "tabs-next-icon-" + id,
|
|
10455
|
-
name:
|
|
10456
|
-
size:
|
|
10233
|
+
name: "arrow",
|
|
10234
|
+
size: "small"
|
|
10457
10235
|
}));
|
|
10458
10236
|
|
|
10459
10237
|
if (children && tabsData != null && tabsData.length) {
|
|
@@ -10479,7 +10257,7 @@ var Tabs = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10479
10257
|
}, React.createElement(react.Box, Object.assign({}, carouselStyle), tabs)), nextButton), panels);
|
|
10480
10258
|
}); // Tabs is also exported above so the props can display in Storybook.
|
|
10481
10259
|
|
|
10482
|
-
var _excluded$
|
|
10260
|
+
var _excluded$1G = ["aboveHeader", "breakout", "contentId", "contentPrimary", "contentSidebar", "contentTop", "footer", "header", "sidebar", "renderFooterElement", "renderHeaderElement", "renderSkipNavigation"];
|
|
10483
10261
|
/**
|
|
10484
10262
|
* The main top-level parent component that wraps all template-related
|
|
10485
10263
|
* components.
|
|
@@ -10706,14 +10484,16 @@ var TemplateAppContainer = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10706
10484
|
renderFooterElement = _props$renderFooterEl === void 0 ? true : _props$renderFooterEl,
|
|
10707
10485
|
_props$renderHeaderEl = props.renderHeaderElement,
|
|
10708
10486
|
renderHeaderElement = _props$renderHeaderEl === void 0 ? true : _props$renderHeaderEl,
|
|
10709
|
-
|
|
10487
|
+
_props$renderSkipNavi = props.renderSkipNavigation,
|
|
10488
|
+
renderSkipNavigation = _props$renderSkipNavi === void 0 ? false : _props$renderSkipNavi,
|
|
10489
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1G);
|
|
10710
10490
|
|
|
10711
10491
|
var aboveHeaderElem = aboveHeader && React.createElement(TemplateAboveHeader, null, aboveHeader);
|
|
10712
10492
|
var breakoutElem = breakout && React.createElement(TemplateBreakout$1, null, breakout);
|
|
10713
10493
|
var contentTopElem = contentTop && React.createElement(TemplateContentTop$1, null, contentTop);
|
|
10714
10494
|
var contentPrimaryElem = contentPrimary && React.createElement(TemplateContentPrimary$1, null, contentPrimary);
|
|
10715
10495
|
var contentSidebarElem = contentSidebar && React.createElement(TemplateContentSidebar$1, null, contentSidebar);
|
|
10716
|
-
return React.createElement(Template$1, Object.assign({}, rest), aboveHeaderElem, (header || breakoutElem) && React.createElement(TemplateHeader$1, {
|
|
10496
|
+
return React.createElement(Template$1, Object.assign({}, rest), renderSkipNavigation ? React.createElement(SkipNavigation$1, null) : null, aboveHeaderElem, (header || breakoutElem) && React.createElement(TemplateHeader$1, {
|
|
10717
10497
|
renderHeaderElement: renderHeaderElement
|
|
10718
10498
|
}, header, breakoutElem), React.createElement(TemplateContent$1, {
|
|
10719
10499
|
id: contentId,
|
|
@@ -10723,7 +10503,7 @@ var TemplateAppContainer = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10723
10503
|
}, footer));
|
|
10724
10504
|
});
|
|
10725
10505
|
|
|
10726
|
-
var _excluded$
|
|
10506
|
+
var _excluded$1H = ["defaultChecked", "helperText", "id", "invalidText", "isChecked", "isDisabled", "isInvalid", "isRequired", "labelText", "name", "onChange", "size"];
|
|
10727
10507
|
var onChangeDefault$1 = function onChangeDefault() {
|
|
10728
10508
|
return;
|
|
10729
10509
|
};
|
|
@@ -10732,9 +10512,7 @@ var onChangeDefault$1 = function onChangeDefault() {
|
|
|
10732
10512
|
*/
|
|
10733
10513
|
|
|
10734
10514
|
var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
10735
|
-
var _props$
|
|
10736
|
-
additionalStyles = _props$additionalStyl === void 0 ? {} : _props$additionalStyl,
|
|
10737
|
-
_props$defaultChecked = props.defaultChecked,
|
|
10515
|
+
var _props$defaultChecked = props.defaultChecked,
|
|
10738
10516
|
defaultChecked = _props$defaultChecked === void 0 ? false : _props$defaultChecked,
|
|
10739
10517
|
helperText = props.helperText,
|
|
10740
10518
|
id = props.id,
|
|
@@ -10751,8 +10529,8 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
10751
10529
|
_props$onChange = props.onChange,
|
|
10752
10530
|
onChange = _props$onChange === void 0 ? onChangeDefault$1 : _props$onChange,
|
|
10753
10531
|
_props$size = props.size,
|
|
10754
|
-
size = _props$size === void 0 ?
|
|
10755
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10532
|
+
size = _props$size === void 0 ? "default" : _props$size,
|
|
10533
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1H);
|
|
10756
10534
|
|
|
10757
10535
|
var footnote = isInvalid ? invalidText : helperText;
|
|
10758
10536
|
var ariaAttributes = {};
|
|
@@ -10770,7 +10548,7 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
10770
10548
|
}
|
|
10771
10549
|
|
|
10772
10550
|
return React.createElement(React.Fragment, null, React.createElement(react.Box, Object.assign({
|
|
10773
|
-
__css:
|
|
10551
|
+
__css: styles
|
|
10774
10552
|
}, rest), React.createElement(react.Switch, Object.assign({
|
|
10775
10553
|
id: id,
|
|
10776
10554
|
name: name || "default",
|
|
@@ -10778,7 +10556,7 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
10778
10556
|
isInvalid: isInvalid,
|
|
10779
10557
|
isRequired: isRequired,
|
|
10780
10558
|
ref: ref,
|
|
10781
|
-
size: size ===
|
|
10559
|
+
size: size === "default" ? "lg" : "sm",
|
|
10782
10560
|
lineHeight: "1.5"
|
|
10783
10561
|
}, isChecked !== undefined ? {
|
|
10784
10562
|
isChecked: isChecked,
|
|
@@ -10788,10 +10566,10 @@ var Toggle$2 = /*#__PURE__*/react.chakra( /*#__PURE__*/React.forwardRef(function
|
|
|
10788
10566
|
}, ariaAttributes, {
|
|
10789
10567
|
__css: switchStyles
|
|
10790
10568
|
}), labelText)), footnote && React.createElement(HelperErrorText, {
|
|
10791
|
-
additionalStyles: styles.helperErrorText,
|
|
10792
10569
|
id: id + "-helperText",
|
|
10793
10570
|
isInvalid: isInvalid,
|
|
10794
|
-
text: footnote
|
|
10571
|
+
text: footnote,
|
|
10572
|
+
__css: styles.helperErrorText
|
|
10795
10573
|
}));
|
|
10796
10574
|
}));
|
|
10797
10575
|
|
|
@@ -10883,18 +10661,7 @@ function useNYPLTheme() {
|
|
|
10883
10661
|
};
|
|
10884
10662
|
}
|
|
10885
10663
|
|
|
10886
|
-
|
|
10887
|
-
VideoPlayerTypes["Vimeo"] = "vimeo";
|
|
10888
|
-
VideoPlayerTypes["YouTube"] = "youtube";
|
|
10889
|
-
})(exports.VideoPlayerTypes || (exports.VideoPlayerTypes = {}));
|
|
10890
|
-
|
|
10891
|
-
(function (VideoPlayerAspectRatios) {
|
|
10892
|
-
VideoPlayerAspectRatios["FourByThree"] = "fourByThree";
|
|
10893
|
-
VideoPlayerAspectRatios["SixteenByNine"] = "sixteenByNine";
|
|
10894
|
-
VideoPlayerAspectRatios["Square"] = "square";
|
|
10895
|
-
})(exports.VideoPlayerAspectRatios || (exports.VideoPlayerAspectRatios = {}));
|
|
10896
|
-
|
|
10897
|
-
var _excluded$1F = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
|
|
10664
|
+
var _excluded$1I = ["aspectRatio", "className", "descriptionText", "embedCode", "headingText", "helperText", "id", "iframeTitle", "showHelperInvalidText", "videoId", "videoType"];
|
|
10898
10665
|
var VideoPlayer$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
10899
10666
|
var aspectRatio = props.aspectRatio,
|
|
10900
10667
|
className = props.className,
|
|
@@ -10908,10 +10675,10 @@ var VideoPlayer$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10908
10675
|
showHelperInvalidText = _props$showHelperInva === void 0 ? true : _props$showHelperInva,
|
|
10909
10676
|
videoId = props.videoId,
|
|
10910
10677
|
videoType = props.videoType,
|
|
10911
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10678
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1I);
|
|
10912
10679
|
|
|
10913
|
-
var iframeTitleFinal = videoType ===
|
|
10914
|
-
var videoSrc = videoType ===
|
|
10680
|
+
var iframeTitleFinal = videoType === "vimeo" ? iframeTitle || "Vimeo video player" : iframeTitle || "YouTube video player";
|
|
10681
|
+
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";
|
|
10915
10682
|
var iFrameTitleEmbedCode = iframeTitle ? "" + iframeTitle : "Video player";
|
|
10916
10683
|
var embedCodeFinal = embedCode && embedCode.includes("<iframe") && !embedCode.includes("title=") ? embedCode.replace("<iframe ", "<iframe title=\"" + iFrameTitleEmbedCode + "\" ") : embedCode;
|
|
10917
10684
|
var errorMessage = "<strong>Error:</strong> This video player has not been configured " + "properly. Please contact the site administrator.";
|
|
@@ -10941,7 +10708,7 @@ var VideoPlayer$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10941
10708
|
isInvalid = true;
|
|
10942
10709
|
}
|
|
10943
10710
|
|
|
10944
|
-
var variant = isInvalid ? "invalid" :
|
|
10711
|
+
var variant = isInvalid ? "invalid" : aspectRatio;
|
|
10945
10712
|
var styles = react.useMultiStyleConfig("VideoPlayer", {
|
|
10946
10713
|
variant: variant
|
|
10947
10714
|
});
|
|
@@ -10968,16 +10735,16 @@ var VideoPlayer$1 = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10968
10735
|
__html: errorMessage
|
|
10969
10736
|
}
|
|
10970
10737
|
}) : React.createElement(ComponentWrapper$1, {
|
|
10971
|
-
headingText: headingText ? headingText :
|
|
10972
|
-
descriptionText: descriptionText ? descriptionText :
|
|
10973
|
-
helperText: helperText && showHelperInvalidText ? helperText :
|
|
10738
|
+
headingText: headingText ? headingText : undefined,
|
|
10739
|
+
descriptionText: descriptionText ? descriptionText : undefined,
|
|
10740
|
+
helperText: helperText && showHelperInvalidText ? helperText : undefined,
|
|
10974
10741
|
id: id + "-componentWrapper"
|
|
10975
10742
|
}, React.createElement(react.Box, {
|
|
10976
10743
|
__css: styles.inside
|
|
10977
10744
|
}, embedElement)));
|
|
10978
10745
|
});
|
|
10979
10746
|
|
|
10980
|
-
var _excluded$
|
|
10747
|
+
var _excluded$1J = ["className", "columnHeaders", "columnHeadersBackgroundColor", "columnHeadersTextColor", "id", "showRowDividers", "tableData", "titleText", "useRowHeaders"];
|
|
10981
10748
|
/**
|
|
10982
10749
|
* Basic `Table` component used to organize and display tabular data in
|
|
10983
10750
|
* rows and columns.
|
|
@@ -10985,7 +10752,8 @@ var _excluded$1G = ["className", "columnHeaders", "columnHeadersBackgroundColor"
|
|
|
10985
10752
|
|
|
10986
10753
|
var Table = /*#__PURE__*/react.chakra(function (props) {
|
|
10987
10754
|
var className = props.className,
|
|
10988
|
-
columnHeaders = props.columnHeaders,
|
|
10755
|
+
_props$columnHeaders = props.columnHeaders,
|
|
10756
|
+
columnHeaders = _props$columnHeaders === void 0 ? [] : _props$columnHeaders,
|
|
10989
10757
|
columnHeadersBackgroundColor = props.columnHeadersBackgroundColor,
|
|
10990
10758
|
columnHeadersTextColor = props.columnHeadersTextColor,
|
|
10991
10759
|
id = props.id,
|
|
@@ -10995,7 +10763,7 @@ var Table = /*#__PURE__*/react.chakra(function (props) {
|
|
|
10995
10763
|
titleText = props.titleText,
|
|
10996
10764
|
_props$useRowHeaders = props.useRowHeaders,
|
|
10997
10765
|
useRowHeaders = _props$useRowHeaders === void 0 ? false : _props$useRowHeaders,
|
|
10998
|
-
rest = _objectWithoutPropertiesLoose(props, _excluded$
|
|
10766
|
+
rest = _objectWithoutPropertiesLoose(props, _excluded$1J);
|
|
10999
10767
|
|
|
11000
10768
|
var customColors = {};
|
|
11001
10769
|
columnHeadersBackgroundColor && (customColors["backgroundColor"] = columnHeadersBackgroundColor);
|
|
@@ -11052,12 +10820,6 @@ Object.defineProperty(exports, 'Box', {
|
|
|
11052
10820
|
return react.Box;
|
|
11053
10821
|
}
|
|
11054
10822
|
});
|
|
11055
|
-
Object.defineProperty(exports, 'ButtonGroup', {
|
|
11056
|
-
enumerable: true,
|
|
11057
|
-
get: function () {
|
|
11058
|
-
return react.ButtonGroup;
|
|
11059
|
-
}
|
|
11060
|
-
});
|
|
11061
10823
|
Object.defineProperty(exports, 'Center', {
|
|
11062
10824
|
enumerable: true,
|
|
11063
10825
|
get: function () {
|
|
@@ -11145,6 +10907,7 @@ Object.defineProperty(exports, 'VStack', {
|
|
|
11145
10907
|
exports.Accordion = Accordion;
|
|
11146
10908
|
exports.Breadcrumbs = Breadcrumbs;
|
|
11147
10909
|
exports.Button = Button;
|
|
10910
|
+
exports.ButtonGroup = ButtonGroup;
|
|
11148
10911
|
exports.Card = Card;
|
|
11149
10912
|
exports.CardActions = CardActions;
|
|
11150
10913
|
exports.CardContent = CardContent;
|
|
@@ -11156,7 +10919,6 @@ exports.DatePicker = DatePicker;
|
|
|
11156
10919
|
exports.Fieldset = Fieldset;
|
|
11157
10920
|
exports.Form = Form;
|
|
11158
10921
|
exports.FormField = FormField;
|
|
11159
|
-
exports.FormGaps = exports.GridGaps;
|
|
11160
10922
|
exports.FormRow = FormRow;
|
|
11161
10923
|
exports.Heading = Heading;
|
|
11162
10924
|
exports.HelperErrorText = HelperErrorText;
|
|
@@ -11168,7 +10930,7 @@ exports.Label = Label;
|
|
|
11168
10930
|
exports.Link = Link;
|
|
11169
10931
|
exports.List = List$1;
|
|
11170
10932
|
exports.Logo = Logo$1;
|
|
11171
|
-
exports.
|
|
10933
|
+
exports.ModalTrigger = ModalTrigger;
|
|
11172
10934
|
exports.Notification = Notification$1;
|
|
11173
10935
|
exports.Pagination = Pagination$1;
|
|
11174
10936
|
exports.ProgressIndicator = ProgressIndicator$1;
|
|
@@ -11178,6 +10940,7 @@ exports.SearchBar = SearchBar$1;
|
|
|
11178
10940
|
exports.Select = Select$1;
|
|
11179
10941
|
exports.SimpleGrid = SimpleGrid;
|
|
11180
10942
|
exports.SkeletonLoader = SkeletonLoader$1;
|
|
10943
|
+
exports.SkipNavigation = SkipNavigation$1;
|
|
11181
10944
|
exports.Slider = Slider;
|
|
11182
10945
|
exports.StatusBadge = StatusBadge$1;
|
|
11183
10946
|
exports.StructuredContent = StructuredContent$1;
|
|
@@ -11198,6 +10961,7 @@ exports.TextInput = TextInput;
|
|
|
11198
10961
|
exports.Toggle = Toggle$2;
|
|
11199
10962
|
exports.VideoPlayer = VideoPlayer$1;
|
|
11200
10963
|
exports.useCarouselStyles = useCarouselStyles;
|
|
10964
|
+
exports.useModal = useModal;
|
|
11201
10965
|
exports.useNYPLTheme = useNYPLTheme;
|
|
11202
10966
|
exports.useWindowSize = useWindowSize;
|
|
11203
10967
|
//# sourceMappingURL=design-system-react-components.cjs.development.js.map
|