@nypl/design-system-react-components 1.5.4 → 1.6.0-vite-rc-2
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/README.md +24 -40
- package/dist/design-system-react-components.cjs +304 -0
- package/dist/design-system-react-components.js +42142 -0
- package/dist/{components → src/components}/Accordion/Accordion.d.ts +29 -29
- package/dist/{components → src/components}/AlphabetFilter/AlphabetFilter.d.ts +23 -23
- package/dist/{components → src/components}/AudioPlayer/AudioPlayer.d.ts +43 -43
- package/dist/{components → src/components}/Breadcrumbs/Breadcrumbs.d.ts +24 -18
- package/dist/{components → src/components}/Button/Button.d.ts +33 -30
- package/dist/{components → src/components}/ButtonGroup/ButtonGroup.d.ts +25 -24
- package/dist/{components → src/components}/Card/Card.d.ts +55 -55
- package/dist/{components → src/components}/Checkbox/Checkbox.d.ts +47 -47
- package/dist/{components → src/components}/CheckboxGroup/CheckboxGroup.d.ts +51 -51
- package/dist/{components → src/components}/ComponentWrapper/ComponentWrapper.d.ts +31 -31
- package/dist/{components → src/components}/DatePicker/DatePicker.d.ts +82 -81
- package/dist/{components → src/components}/FeedbackBox/FeedbackBox.d.ts +64 -63
- package/dist/{components → src/components}/FeedbackBox/useFeedbackBoxReducer.d.ts +19 -19
- package/dist/{components → src/components}/Fieldset/Fieldset.d.ts +24 -24
- package/dist/{components → src/components}/FilterBar/FilterBar.d.ts +61 -111
- package/dist/{components → src/components}/Footer/Footer.d.ts +14 -14
- package/dist/{components → src/components}/Footer/footerLinks.d.ts +12 -12
- package/dist/{components → src/components}/Form/Form.d.ts +31 -31
- package/dist/{components → src/components}/Grid/SimpleGrid.d.ts +20 -19
- package/dist/{components → src/components}/Header/Header.d.ts +21 -22
- package/dist/{components → src/components}/Header/components/HeaderLogin.d.ts +12 -12
- package/dist/{components → src/components}/Header/components/HeaderLoginButton.d.ts +10 -11
- package/dist/{components → src/components}/Header/components/HeaderLowerNav.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileIconNav.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNav.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNavButton.d.ts +6 -7
- package/dist/{components → src/components}/Header/components/HeaderSearchButton.d.ts +9 -10
- package/dist/{components → src/components}/Header/components/HeaderSearchForm.d.ts +10 -11
- package/dist/{components → src/components}/Header/components/HeaderSitewideAlerts.d.ts +7 -8
- package/dist/{components → src/components}/Header/components/HeaderUpperNav.d.ts +7 -8
- package/dist/{components → src/components}/Header/context/headerContext.d.ts +13 -13
- package/dist/{components → src/components}/Header/utils/googleAnalyticsUtils.d.ts +16 -16
- package/dist/{components → src/components}/Header/utils/headerUtils.d.ts +94 -94
- package/dist/{components → src/components}/Heading/Heading.d.ts +37 -35
- package/dist/{components → src/components}/HelperErrorText/HelperErrorText.d.ts +34 -34
- package/dist/{components → src/components}/Hero/Hero.d.ts +43 -42
- package/dist/{components → src/components}/HorizontalRule/HorizontalRule.d.ts +11 -11
- package/dist/{components → src/components}/Icons/Icon.d.ts +40 -41
- package/dist/src/components/Icons/IconSvgs.d.ts +163 -0
- package/dist/src/components/Icons/iconVariables.d.ts +6 -0
- package/dist/{components → src/components}/Image/Image.d.ts +68 -65
- package/dist/{components → src/components}/Label/Label.d.ts +25 -25
- package/dist/{components → src/components}/Link/Link.d.ts +22 -21
- package/dist/{components → src/components}/List/List.d.ts +42 -42
- package/dist/{components → src/components}/Logo/Logo.d.ts +28 -28
- package/dist/src/components/Logo/LogoSvgs.d.ts +157 -0
- package/dist/{components → src/components}/Modal/Modal.d.ts +35 -35
- package/dist/{components → src/components}/MultiSelect/MultiSelect.d.ts +61 -78
- package/dist/{components → src/components}/MultiSelect/MultiSelectDialog.d.ts +8 -8
- package/dist/{components → src/components}/MultiSelect/MultiSelectListbox.d.ts +9 -9
- package/dist/{components → src/components}/MultiSelect/MultiSelectMenuButton.d.ts +27 -27
- package/dist/{components → src/components}/MultiSelectGroup/MultiSelectGroup.d.ts +28 -26
- package/dist/{components → src/components}/Notification/Notification.d.ts +52 -51
- package/dist/{components → src/components}/Pagination/Pagination.d.ts +27 -27
- package/dist/{components → src/components}/ProgressIndicator/ProgressIndicator.d.ts +32 -30
- package/dist/{components → src/components}/Radio/Radio.d.ts +43 -43
- package/dist/{components → src/components}/RadioGroup/RadioGroup.d.ts +51 -51
- package/dist/{components → src/components}/SearchBar/SearchBar.d.ts +58 -58
- package/dist/{components → src/components}/Select/Select.d.ts +59 -57
- package/dist/{components → src/components}/SkeletonLoader/SkeletonLoader.d.ts +42 -41
- package/dist/{components → src/components}/SkipNavigation/SkipNavigation.d.ts +19 -19
- package/dist/{components → src/components}/Slider/Slider.d.ts +65 -65
- package/dist/{components → src/components}/StatusBadge/StatusBadge.d.ts +19 -18
- package/dist/{components → src/components}/StructuredContent/StructuredContent.d.ts +30 -30
- package/dist/src/components/StyleGuide/ColorCard.d.ts +342 -0
- package/dist/{components → src/components}/StyledList/StyledList.d.ts +25 -25
- package/dist/{components → src/components}/Table/Table.d.ts +32 -32
- package/dist/{components → src/components}/Tabs/Tabs.d.ts +28 -28
- package/dist/{components → src/components}/TagSet/TagSet.d.ts +24 -32
- package/dist/{components → src/components}/TagSet/TagSetExplore.d.ts +28 -27
- package/dist/{components → src/components}/TagSet/TagSetFilter.d.ts +25 -26
- package/dist/src/components/TagSet/TooltipWrapper.d.ts +9 -0
- package/dist/{components → src/components}/Template/Template.d.ts +140 -140
- package/dist/{components → src/components}/Text/Text.d.ts +25 -24
- package/dist/{components → src/components}/TextInput/TextInput.d.ts +89 -88
- package/dist/{components → src/components}/Toggle/Toggle.d.ts +43 -42
- package/dist/{components → src/components}/Tooltip/Tooltip.d.ts +17 -17
- package/dist/{components → src/components}/VideoPlayer/VideoPlayer.d.ts +42 -40
- package/dist/src/helpers/types.d.ts +2 -0
- package/dist/{hooks → src/hooks}/useCarouselStyles.d.ts +17 -17
- package/dist/{hooks → src/hooks}/useCloseDropDown.d.ts +7 -7
- package/dist/{hooks → src/hooks}/useFilterBar.d.ts +21 -21
- package/dist/{hooks → src/hooks}/useMultiSelect.d.ts +15 -15
- package/dist/{hooks → src/hooks}/useNYPLBreakpoints.d.ts +13 -13
- package/dist/{hooks → src/hooks}/useNYPLTheme.d.ts +67 -67
- package/dist/{hooks → src/hooks}/useStateWithDependencies.d.ts +5 -5
- package/dist/{hooks → src/hooks}/useWindowSize.d.ts +10 -10
- package/dist/src/index.d.ts +91 -0
- package/dist/{theme → src/theme}/components/accordion.d.ts +34 -34
- package/dist/{theme → src/theme}/components/alphabetFilter.d.ts +33 -33
- package/dist/{theme → src/theme}/components/audioPlayer.d.ts +16 -16
- package/dist/{theme → src/theme}/components/breadcrumb.d.ts +138 -151
- package/dist/{theme → src/theme}/components/button.d.ts +113 -113
- package/dist/{theme → src/theme}/components/buttonGroup.d.ts +11 -11
- package/dist/{theme → src/theme}/components/card.d.ts +421 -421
- package/dist/{theme → src/theme}/components/checkbox.d.ts +178 -178
- package/dist/{theme → src/theme}/components/checkboxGroup.d.ts +14 -14
- package/dist/{theme → src/theme}/components/componentWrapper.d.ts +12 -12
- package/dist/{theme → src/theme}/components/customTable.d.ts +733 -733
- package/dist/{theme → src/theme}/components/datePicker.d.ts +17 -17
- package/dist/{theme → src/theme}/components/feedbackBox.d.ts +92 -92
- package/dist/{theme → src/theme}/components/fieldset.d.ts +23 -23
- package/dist/{theme → src/theme}/components/filterBar.d.ts +46 -46
- package/dist/{theme → src/theme}/components/footer.d.ts +244 -244
- package/dist/{theme → src/theme}/components/global.d.ts +140 -140
- package/dist/{theme → src/theme}/components/globalMixins.d.ts +40 -40
- package/dist/{theme → src/theme}/components/header/header.d.ts +72 -72
- package/dist/{theme → src/theme}/components/header/headerLogin.d.ts +327 -327
- package/dist/{theme → src/theme}/components/header/headerLoginButton.d.ts +69 -69
- package/dist/{theme → src/theme}/components/header/headerLowerNav.d.ts +70 -70
- package/dist/{theme → src/theme}/components/header/headerMobileIconNav.d.ts +28 -28
- package/dist/{theme → src/theme}/components/header/headerMobileNav.d.ts +86 -86
- package/dist/{theme → src/theme}/components/header/headerMobileNavButton.d.ts +34 -34
- package/dist/{theme → src/theme}/components/header/headerSearchButton.d.ts +83 -83
- package/dist/{theme → src/theme}/components/header/headerSearchForm.d.ts +183 -183
- package/dist/{theme → src/theme}/components/header/headerSitewideAlerts.d.ts +42 -42
- package/dist/{theme → src/theme}/components/header/headerUpperNav.d.ts +72 -72
- package/dist/{theme → src/theme}/components/heading.d.ts +173 -173
- package/dist/{theme → src/theme}/components/helperErrorText.d.ts +15 -15
- package/dist/{theme → src/theme}/components/hero.d.ts +628 -628
- package/dist/{theme → src/theme}/components/horizontalRule.d.ts +18 -18
- package/dist/{theme → src/theme}/components/icon.d.ts +62251 -62251
- package/dist/{theme → src/theme}/components/image.d.ts +662 -662
- package/dist/{theme → src/theme}/components/label.d.ts +21 -21
- package/dist/{theme → src/theme}/components/link.d.ts +106 -106
- package/dist/{theme → src/theme}/components/list.d.ts +228 -228
- package/dist/{theme → src/theme}/components/logo.d.ts +477 -477
- package/dist/{theme → src/theme}/components/modal.d.ts +21 -21
- package/dist/{theme → src/theme}/components/multiSelect.d.ts +29 -29
- package/dist/{theme → src/theme}/components/multiSelectMenuButton.d.ts +95 -95
- package/dist/{theme → src/theme}/components/notification.d.ts +136 -136
- package/dist/{theme → src/theme}/components/pagination.d.ts +16 -16
- package/dist/{theme → src/theme}/components/progressIndicator.d.ts +68 -68
- package/dist/{theme → src/theme}/components/radio.d.ts +202 -202
- package/dist/{theme → src/theme}/components/radioGroup.d.ts +14 -14
- package/dist/{theme → src/theme}/components/searchBar.d.ts +34 -34
- package/dist/{theme → src/theme}/components/select.d.ts +125 -126
- package/dist/{theme → src/theme}/components/skeletonLoader.d.ts +105 -105
- package/dist/{theme → src/theme}/components/skipNavigation.d.ts +28 -28
- package/dist/{theme → src/theme}/components/slider.d.ts +78 -78
- package/dist/{theme → src/theme}/components/statusBadge.d.ts +37 -37
- package/dist/{theme → src/theme}/components/structuredContent.d.ts +385 -385
- package/dist/{theme → src/theme}/components/styledList.d.ts +51 -51
- package/dist/{theme → src/theme}/components/tabs.d.ts +172 -172
- package/dist/{theme → src/theme}/components/tagSet.d.ts +154 -154
- package/dist/{theme → src/theme}/components/template.d.ts +86 -86
- package/dist/{theme → src/theme}/components/text.d.ts +30 -30
- package/dist/{theme → src/theme}/components/textInput.d.ts +349 -355
- package/dist/{theme → src/theme}/components/toggle.d.ts +129 -129
- package/dist/{theme → src/theme}/components/tooltip.d.ts +19 -19
- package/dist/{theme → src/theme}/components/videoPlayer.d.ts +47 -47
- package/dist/{theme → src/theme}/foundations/breakpoints.d.ts +23 -23
- package/dist/{theme → src/theme}/foundations/colors.d.ts +3 -3
- package/dist/{theme → src/theme}/foundations/global.d.ts +68 -68
- package/dist/{theme → src/theme}/foundations/radii.d.ts +11 -11
- package/dist/{theme → src/theme}/foundations/shadows.d.ts +4 -4
- package/dist/{theme → src/theme}/foundations/spacing.d.ts +96 -96
- package/dist/{theme → src/theme}/foundations/typography.d.ts +8 -8
- package/dist/{theme → src/theme}/index.d.ts +20 -20
- package/dist/{theme → src/theme}/provider.d.ts +4 -4
- package/dist/src/theme/types.d.ts +1 -0
- package/dist/src/utils/colorUtils.d.ts +5 -0
- package/dist/{utils → src/utils}/interfaces.d.ts +5 -5
- package/dist/{utils → src/utils}/utils.d.ts +39 -39
- package/dist/styles.css +1 -4
- package/package.json +62 -69
- package/dist/__tests__/fileMock.d.ts +0 -4
- package/dist/__tests__/mediaMatchMock.d.ts +0 -79
- package/dist/__tests__/setup.d.ts +0 -2
- package/dist/__tests__/utils/utils.test.d.ts +0 -1
- package/dist/components/Autosuggest/Autosuggest.stories.d.ts +0 -4
- package/dist/components/FilterBar/FilterBar.stories.d.ts +0 -7
- package/dist/components/Header/utils/authApiMockResponse.d.ts +0 -49
- package/dist/components/Header/utils/encoreCatalogLogOutTimer.d.ts +0 -4
- package/dist/components/Header/utils/encoreCatalogLogOutTimer.test.d.ts +0 -1
- package/dist/components/Header/utils/googleAnalyticsUtils.test.d.ts +0 -1
- package/dist/components/Header/utils/headerUtils.test.d.ts +0 -1
- package/dist/components/Header/utils/sitewideAlertsMocks.d.ts +0 -98
- package/dist/components/Icons/IconColors.d.ts +0 -3
- package/dist/components/Icons/IconNames.d.ts +0 -3
- package/dist/components/Icons/IconSvgs.d.ts +0 -58
- package/dist/components/Logo/LogoSvgs.d.ts +0 -54
- package/dist/components/MultiSelect/MultiSelect.stories.d.ts +0 -4
- package/dist/components/MultiSelectGroup/MultiSelectGroup.stories.d.ts +0 -4
- package/dist/components/Placeholder/Placeholder.d.ts +0 -10
- package/dist/components/StyleGuide/ColorCard.d.ts +0 -46
- package/dist/design-system-react-components.cjs.development.js +0 -18076
- package/dist/design-system-react-components.cjs.development.js.map +0 -1
- package/dist/design-system-react-components.cjs.production.min.js +0 -2
- package/dist/design-system-react-components.cjs.production.min.js.map +0 -1
- package/dist/design-system-react-components.esm.js +0 -17874
- package/dist/design-system-react-components.esm.js.map +0 -1
- package/dist/helpers/types.d.ts +0 -1
- package/dist/hooks/__tests__/useCarouselStyles.test.d.ts +0 -1
- package/dist/hooks/__tests__/useFilterBar.test.d.ts +0 -1
- package/dist/hooks/__tests__/useMultiSelect.test.d.ts +0 -1
- package/dist/hooks/__tests__/useNYPLBreakpoints.test.d.ts +0 -1
- package/dist/index.d.ts +0 -66
- package/dist/index.js +0 -8
- package/dist/resources.scss +0 -382
- package/dist/theme/types.d.ts +0 -1
- package/dist/utils/componentCategories.d.ts +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
accessibilityFull: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
4
|
+
title?: string;
|
|
5
|
+
}>;
|
|
6
|
+
accessibilityPartial: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
7
|
+
title?: string;
|
|
8
|
+
}>;
|
|
9
|
+
actionCheckCircle: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
10
|
+
title?: string;
|
|
11
|
+
}>;
|
|
12
|
+
actionCheckCircleFilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
13
|
+
title?: string;
|
|
14
|
+
}>;
|
|
15
|
+
actionExit: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
16
|
+
title?: string;
|
|
17
|
+
}>;
|
|
18
|
+
actionHelpDefault: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
19
|
+
title?: string;
|
|
20
|
+
}>;
|
|
21
|
+
actionHelpOutline: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
22
|
+
title?: string;
|
|
23
|
+
}>;
|
|
24
|
+
actionLaunch: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
25
|
+
title?: string;
|
|
26
|
+
}>;
|
|
27
|
+
actionPower: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
28
|
+
title?: string;
|
|
29
|
+
}>;
|
|
30
|
+
actionRegistration: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
31
|
+
title?: string;
|
|
32
|
+
}>;
|
|
33
|
+
actionSettings: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
34
|
+
title?: string;
|
|
35
|
+
}>;
|
|
36
|
+
alertNotificationImportant: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
37
|
+
title?: string;
|
|
38
|
+
}>;
|
|
39
|
+
alertWarningFilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
40
|
+
title?: string;
|
|
41
|
+
}>;
|
|
42
|
+
alertWarningOutline: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
43
|
+
title?: string;
|
|
44
|
+
}>;
|
|
45
|
+
arrow: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
46
|
+
title?: string;
|
|
47
|
+
}>;
|
|
48
|
+
building: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
49
|
+
title?: string;
|
|
50
|
+
}>;
|
|
51
|
+
check: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
52
|
+
title?: string;
|
|
53
|
+
}>;
|
|
54
|
+
clock: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
55
|
+
title?: string;
|
|
56
|
+
}>;
|
|
57
|
+
close: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
58
|
+
title?: string;
|
|
59
|
+
}>;
|
|
60
|
+
decorativeEnvelope: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
61
|
+
title?: string;
|
|
62
|
+
}>;
|
|
63
|
+
decorativeLibraryCard: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
64
|
+
title?: string;
|
|
65
|
+
}>;
|
|
66
|
+
decorativeShoppingBag: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
67
|
+
title?: string;
|
|
68
|
+
}>;
|
|
69
|
+
download: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
70
|
+
title?: string;
|
|
71
|
+
}>;
|
|
72
|
+
errorFilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
73
|
+
title?: string;
|
|
74
|
+
}>;
|
|
75
|
+
errorOutline: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
76
|
+
title?: string;
|
|
77
|
+
}>;
|
|
78
|
+
fileTypeAudio: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
79
|
+
title?: string;
|
|
80
|
+
}>;
|
|
81
|
+
fileTypeDoc: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
82
|
+
title?: string;
|
|
83
|
+
}>;
|
|
84
|
+
fileTypeGenericDoc: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
85
|
+
title?: string;
|
|
86
|
+
}>;
|
|
87
|
+
fileTypeImage: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
88
|
+
title?: string;
|
|
89
|
+
}>;
|
|
90
|
+
fileTypePdf: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
91
|
+
title?: string;
|
|
92
|
+
}>;
|
|
93
|
+
fileTypeSpreadsheet: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
94
|
+
title?: string;
|
|
95
|
+
}>;
|
|
96
|
+
fileTypeVideo: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
97
|
+
title?: string;
|
|
98
|
+
}>;
|
|
99
|
+
headset: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
100
|
+
title?: string;
|
|
101
|
+
}>;
|
|
102
|
+
legacyAccountFilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
103
|
+
title?: string;
|
|
104
|
+
}>;
|
|
105
|
+
legacyAccountUnfilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
106
|
+
title?: string;
|
|
107
|
+
}>;
|
|
108
|
+
legacySocialFacebook: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
109
|
+
title?: string;
|
|
110
|
+
}>;
|
|
111
|
+
legacySocialInstagram: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
112
|
+
title?: string;
|
|
113
|
+
}>;
|
|
114
|
+
legacySocialTwitter: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
115
|
+
title?: string;
|
|
116
|
+
}>;
|
|
117
|
+
legacySocialYoutube: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
118
|
+
title?: string;
|
|
119
|
+
}>;
|
|
120
|
+
locator: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
121
|
+
title?: string;
|
|
122
|
+
}>;
|
|
123
|
+
minus: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
124
|
+
title?: string;
|
|
125
|
+
}>;
|
|
126
|
+
plus: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
127
|
+
title?: string;
|
|
128
|
+
}>;
|
|
129
|
+
search: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
130
|
+
title?: string;
|
|
131
|
+
}>;
|
|
132
|
+
socialFacebook: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
133
|
+
title?: string;
|
|
134
|
+
}>;
|
|
135
|
+
socialInstagram: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
136
|
+
title?: string;
|
|
137
|
+
}>;
|
|
138
|
+
socialTumblr: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
139
|
+
title?: string;
|
|
140
|
+
}>;
|
|
141
|
+
socialTwitter: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
142
|
+
title?: string;
|
|
143
|
+
}>;
|
|
144
|
+
socialYoutube: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
145
|
+
title?: string;
|
|
146
|
+
}>;
|
|
147
|
+
speakerNotes: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
148
|
+
title?: string;
|
|
149
|
+
}>;
|
|
150
|
+
utilityAccountFilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
151
|
+
title?: string;
|
|
152
|
+
}>;
|
|
153
|
+
utilityAccountUnfilled: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
154
|
+
title?: string;
|
|
155
|
+
}>;
|
|
156
|
+
utilityHamburger: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
157
|
+
title?: string;
|
|
158
|
+
}>;
|
|
159
|
+
utilitySearch: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
160
|
+
title?: string;
|
|
161
|
+
}>;
|
|
162
|
+
};
|
|
163
|
+
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const iconAlignArray: readonly ["left", "right", "none"];
|
|
2
|
+
export declare const iconColorsArray: readonly ["ui.black", "ui.white", "brand.primary", "brand.secondary", "ui.error.primary", "ui.error.secondary", "ui.status.primary", "ui.status.secondary", "ui.success.primary", "ui.success.secondary", "ui.warning.primary", "ui.warning.secondary", "section.blogs.primary", "section.blogs.secondary", "section.books-and-more.primary", "section.books-and-more.secondary", "section.education.primary", "section.education.secondary", "section.locations.primary", "section.locations.secondary", "section.research.primary", "section.research.secondary", "section.research-library.lpa", "section.research-library.schomburg", "section.research-library.schwartzman", "section.whats-on.primary", "section.whats-on.secondary", "dark.ui.error.primary", "dark.ui.error.secondary", "dark.ui.status.primary", "dark.ui.status.secondary", "dark.ui.success.primary", "dark.ui.success.secondary", "dark.ui.warning.primary", "dark.ui.warning.secondary"];
|
|
3
|
+
export declare const iconNamesArray: readonly ["accessibilityFull", "accessibilityPartial", "actionCheckCircle", "actionCheckCircleFilled", "actionExit", "actionHelpDefault", "actionHelpOutline", "actionLaunch", "actionPower", "actionRegistration", "actionSettings", "alertNotificationImportant", "alertWarningFilled", "alertWarningOutline", "arrow", "building", "check", "clock", "close", "decorativeEnvelope", "decorativeLibraryCard", "decorativeShoppingBag", "download", "errorFilled", "errorOutline", "fileTypeAudio", "fileTypeDoc", "fileTypeGenericDoc", "fileTypeImage", "fileTypePdf", "fileTypeSpreadsheet", "fileTypeVideo", "headset", "legacyAccountFilled", "legacyAccountUnfilled", "legacySocialFacebook", "legacySocialInstagram", "legacySocialTwitter", "legacySocialYoutube", "locator", "minus", "plus", "search", "socialFacebook", "socialInstagram", "socialTumblr", "socialTwitter", "socialYoutube", "speakerNotes", "utilityAccountFilled", "utilityAccountUnfilled", "utilityHamburger", "utilitySearch"];
|
|
4
|
+
export declare const iconRotationTypesArray: readonly ["rotate0", "rotate90", "rotate180", "rotate270"];
|
|
5
|
+
export declare const iconSizesArray: readonly ["default", "xsmall", "small", "medium", "large", "xlarge", "xxlarge", "xxxlarge"];
|
|
6
|
+
export declare const iconTypesArray: readonly ["default", "breadcrumbs"];
|
|
@@ -1,65 +1,68 @@
|
|
|
1
|
-
import React, { ImgHTMLAttributes } from "react";
|
|
2
|
-
export declare
|
|
3
|
-
export declare
|
|
4
|
-
export declare
|
|
5
|
-
export
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
*
|
|
11
|
-
|
|
12
|
-
/** Optional value to
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
component
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
/** Optional value
|
|
24
|
-
*
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
/** Optional value to control the
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
1
|
+
import React, { ImgHTMLAttributes } from "react";
|
|
2
|
+
export declare const imageRatiosArray: readonly ["fourByThree", "oneByTwo", "original", "sixteenByNine", "square", "threeByFour", "threeByTwo", "twoByOne"];
|
|
3
|
+
export declare const imageSizesArray: readonly ["default", "xxsmall", "xsmall", "small", "medium", "large"];
|
|
4
|
+
export declare const imageTypesArray: readonly ["default", "circle"];
|
|
5
|
+
export type ImageRatios = typeof imageRatiosArray[number];
|
|
6
|
+
export type ImageSizes = typeof imageSizesArray[number];
|
|
7
|
+
export type ImageTypes = typeof imageTypesArray[number];
|
|
8
|
+
export interface ComponentImageProps extends Partial<HTMLImageElement> {
|
|
9
|
+
/** String value used to populate the `alt` attribute of the internal `Image`
|
|
10
|
+
* component's `img` element. @NOTE if an image is used, this value must be passed. */
|
|
11
|
+
alt?: string;
|
|
12
|
+
/** Optional value to control the aspect ratio of the internal `Image` component.
|
|
13
|
+
* Defaults to `ImageRatios.Square`. */
|
|
14
|
+
aspectRatio?: ImageRatios;
|
|
15
|
+
/** Optional value to render as a caption for the internal `Image` component. */
|
|
16
|
+
caption?: string;
|
|
17
|
+
/** Optional DOM element to use instead of the DS `Image` component. */
|
|
18
|
+
component?: JSX.Element;
|
|
19
|
+
/** Optional value to render as a credit for the internal `Image` component. */
|
|
20
|
+
credit?: string;
|
|
21
|
+
/** Flag to set the internal `Image` component to `isLazy` mode. */
|
|
22
|
+
isLazy?: boolean;
|
|
23
|
+
/** Optional value to control the size of the internal `Image` component.
|
|
24
|
+
* Defaults to `ImageSizes.Default`. */
|
|
25
|
+
size?: ImageSizes;
|
|
26
|
+
/** Optional value that contains the path to an image. If omitted, the internal
|
|
27
|
+
* DS `Image` component will not render. */
|
|
28
|
+
src?: string;
|
|
29
|
+
}
|
|
30
|
+
interface ImageWrapperProps {
|
|
31
|
+
/** Optionally pass in additional Chakra-based styles. */
|
|
32
|
+
additionalWrapperStyles?: {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
};
|
|
35
|
+
/** ClassName you can add in addition to 'image' */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** Optional value to control the aspect ratio of the card image; default
|
|
38
|
+
* value is `"original"` */
|
|
39
|
+
aspectRatio?: ImageRatios;
|
|
40
|
+
/** Optional value to control the size of the image */
|
|
41
|
+
size?: ImageSizes;
|
|
42
|
+
}
|
|
43
|
+
export interface ImageProps extends ImageWrapperProps, ImgHTMLAttributes<HTMLImageElement> {
|
|
44
|
+
/** Optionally pass in additional Chakra-based styles only for the figure. */
|
|
45
|
+
additionalFigureStyles?: {
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
};
|
|
48
|
+
/** Optionally pass in additional Chakra-based styles only for the image. */
|
|
49
|
+
additionalImageStyles?: {
|
|
50
|
+
[key: string]: any;
|
|
51
|
+
};
|
|
52
|
+
/** Alternate text description of the image */
|
|
53
|
+
alt?: string;
|
|
54
|
+
/** Adding will wrap the image in a <figure> */
|
|
55
|
+
caption?: string;
|
|
56
|
+
/** Custom image component */
|
|
57
|
+
component?: JSX.Element | null;
|
|
58
|
+
/** Adding will wrap the image in a <figure> */
|
|
59
|
+
credit?: string;
|
|
60
|
+
/** Optional value for the image type */
|
|
61
|
+
imageType?: ImageTypes;
|
|
62
|
+
/** Flag to set the internal `Image` component to `isLazy` mode. */
|
|
63
|
+
isLazy?: boolean;
|
|
64
|
+
/** The src attribute is required, and contains the path to the image you want to embed. */
|
|
65
|
+
src?: string;
|
|
66
|
+
}
|
|
67
|
+
export declare const Image: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<ImageProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
68
|
+
export default Image;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface LabelProps {
|
|
3
|
-
/** Additional CSS class name to render in the `label` element. */
|
|
4
|
-
className?: string;
|
|
5
|
-
/** The id of the html element that this `Label` is describing. */
|
|
6
|
-
htmlFor: string;
|
|
7
|
-
/** ID that other components can cross reference for accessibility purposes */
|
|
8
|
-
id?: string;
|
|
9
|
-
/** Controls whether the label should be inline with the input it goes with.
|
|
10
|
-
* This prop should only be used internally. */
|
|
11
|
-
isInlined?: boolean;
|
|
12
|
-
/** Controls whether the "(Required)" text should be displayed alongside the
|
|
13
|
-
* label's text. False by default. */
|
|
14
|
-
isRequired?: boolean;
|
|
15
|
-
/** Allows the '(Required)' text to be changed for language purposes
|
|
16
|
-
* Note: Parenthesis will be added automatically by the component */
|
|
17
|
-
requiredLabelText?: string;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* A label for form inputs. It should never be used alone.
|
|
21
|
-
*/
|
|
22
|
-
export declare const Label: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<LabelProps & {
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
} & React.RefAttributes<HTMLDivElement & HTMLLabelElement>>, {}>;
|
|
25
|
-
export default Label;
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface LabelProps {
|
|
3
|
+
/** Additional CSS class name to render in the `label` element. */
|
|
4
|
+
className?: string;
|
|
5
|
+
/** The id of the html element that this `Label` is describing. */
|
|
6
|
+
htmlFor: string;
|
|
7
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** Controls whether the label should be inline with the input it goes with.
|
|
10
|
+
* This prop should only be used internally. */
|
|
11
|
+
isInlined?: boolean;
|
|
12
|
+
/** Controls whether the "(Required)" text should be displayed alongside the
|
|
13
|
+
* label's text. False by default. */
|
|
14
|
+
isRequired?: boolean;
|
|
15
|
+
/** Allows the '(Required)' text to be changed for language purposes
|
|
16
|
+
* Note: Parenthesis will be added automatically by the component */
|
|
17
|
+
requiredLabelText?: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* A label for form inputs. It should never be used alone.
|
|
21
|
+
*/
|
|
22
|
+
export declare const Label: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<LabelProps & {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
} & React.RefAttributes<HTMLDivElement & HTMLLabelElement>>, {}>;
|
|
25
|
+
export default Label;
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare
|
|
3
|
-
export
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
href
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
* an
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const linkTypesArray: readonly ["action", "backwards", "button", "buttonPrimary", "buttonSecondary", "buttonPill", "buttonCallout", "buttonNoBrand", "buttonDisabled", "default", "external", "forwards"];
|
|
3
|
+
export type LinkTypes = typeof linkTypesArray[number];
|
|
4
|
+
export interface LinkProps {
|
|
5
|
+
/** Any child node passed to the component. */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/** Additional class name to render in the `Link` component. */
|
|
8
|
+
className?: string;
|
|
9
|
+
/** The `href` attribute for the anchor element. */
|
|
10
|
+
href?: string;
|
|
11
|
+
/** ID used for accessibility purposes. */
|
|
12
|
+
id?: string;
|
|
13
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement | HTMLAnchorElement, MouseEvent>) => void;
|
|
14
|
+
/** Controls the link visuals: action, button, backwards, forwards, or default. */
|
|
15
|
+
type?: LinkTypes;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A component that uses an `href` prop or a child anchor element, to create
|
|
19
|
+
* an anchor element with added styling and conventions.
|
|
20
|
+
*/
|
|
21
|
+
export declare const Link: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<LinkProps & React.RefAttributes<HTMLDivElement & HTMLAnchorElement>>, {}>;
|
|
22
|
+
export default Link;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
interface DescriptionProps {
|
|
4
|
-
term: string;
|
|
5
|
-
description: string | JSX.Element;
|
|
6
|
-
}
|
|
7
|
-
export interface ListProps {
|
|
8
|
-
/** ClassName you can add in addition to 'list' */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** ID that other components can cross reference for accessibility purposes */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** Display the list in a row. */
|
|
13
|
-
inline?: boolean;
|
|
14
|
-
/** Data to render if children are not passed. For `listTypes` ordered `"ol"`
|
|
15
|
-
* and unordered `"ul"` `List` types, the data structure is an array of strings
|
|
16
|
-
* to renders as `li` items. For description `"dl"` `List` types, the data
|
|
17
|
-
* structure is an array of objects with `term` and `description` properties
|
|
18
|
-
* to render `dt` and `dd` elements, respectively.
|
|
19
|
-
*/
|
|
20
|
-
listItems?: (string | JSX.Element | DescriptionProps)[];
|
|
21
|
-
/** Remove list styling. */
|
|
22
|
-
noStyling?: boolean;
|
|
23
|
-
/** An optional title that will appear over the list. This prop only applies
|
|
24
|
-
* to Description Lists. */
|
|
25
|
-
title?: string;
|
|
26
|
-
/** The type of list: "ol", "ul", or "dl". "ul" by default. */
|
|
27
|
-
type: ListTypes;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* A component that renders list item `li` elements or description item `dt`
|
|
31
|
-
* and `dd` elements based on the `type` prop. Note that the `title` prop will
|
|
32
|
-
* only display for the `Description` list type.
|
|
33
|
-
*/
|
|
34
|
-
export declare const List: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<ListProps & {
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
} & React.RefAttributes<HTMLDivElement & HTMLUListElement & HTMLOListElement>>, {}>;
|
|
37
|
-
/**
|
|
38
|
-
* Checks for `li` elements and consoles a warning if the
|
|
39
|
-
* children are different HTML elements.
|
|
40
|
-
*/
|
|
41
|
-
export declare const checkListChildrenError: (children: React.ReactNode, listType?: string, componentName?: string) => void;
|
|
42
|
-
export default List;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type ListTypes = "ol" | "ul" | "dl";
|
|
3
|
+
interface DescriptionProps {
|
|
4
|
+
term: string;
|
|
5
|
+
description: string | JSX.Element;
|
|
6
|
+
}
|
|
7
|
+
export interface ListProps {
|
|
8
|
+
/** ClassName you can add in addition to 'list' */
|
|
9
|
+
className?: string;
|
|
10
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** Display the list in a row. */
|
|
13
|
+
inline?: boolean;
|
|
14
|
+
/** Data to render if children are not passed. For `listTypes` ordered `"ol"`
|
|
15
|
+
* and unordered `"ul"` `List` types, the data structure is an array of strings
|
|
16
|
+
* to renders as `li` items. For description `"dl"` `List` types, the data
|
|
17
|
+
* structure is an array of objects with `term` and `description` properties
|
|
18
|
+
* to render `dt` and `dd` elements, respectively.
|
|
19
|
+
*/
|
|
20
|
+
listItems?: (string | JSX.Element | DescriptionProps)[];
|
|
21
|
+
/** Remove list styling. */
|
|
22
|
+
noStyling?: boolean;
|
|
23
|
+
/** An optional title that will appear over the list. This prop only applies
|
|
24
|
+
* to Description Lists. */
|
|
25
|
+
title?: string;
|
|
26
|
+
/** The type of list: "ol", "ul", or "dl". "ul" by default. */
|
|
27
|
+
type: ListTypes;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* A component that renders list item `li` elements or description item `dt`
|
|
31
|
+
* and `dd` elements based on the `type` prop. Note that the `title` prop will
|
|
32
|
+
* only display for the `Description` list type.
|
|
33
|
+
*/
|
|
34
|
+
export declare const List: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<ListProps & {
|
|
35
|
+
children?: React.ReactNode;
|
|
36
|
+
} & React.RefAttributes<HTMLDivElement & HTMLUListElement & HTMLOListElement>>, {}>;
|
|
37
|
+
/**
|
|
38
|
+
* Checks for `li` elements and consoles a warning if the
|
|
39
|
+
* children are different HTML elements.
|
|
40
|
+
*/
|
|
41
|
+
export declare const checkListChildrenError: (children: React.ReactNode, listType?: string, componentName?: string) => void;
|
|
42
|
+
export default List;
|
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export interface LogoProps {
|
|
5
|
-
/** Optional className that will be added to the parent element */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Logos designated as decorative will be ignored by screenreaders. False
|
|
8
|
-
* by default. */
|
|
9
|
-
decorative?: boolean;
|
|
10
|
-
/** ID that other components can cross reference for accessibility purposes */
|
|
11
|
-
id?: string;
|
|
12
|
-
/** The name of the logo you want to use. */
|
|
13
|
-
name?: LogoNames;
|
|
14
|
-
/** Sets the logo size. */
|
|
15
|
-
size?: LogoSizes;
|
|
16
|
-
/** For accessibility purposes, the text passed in the `title` prop gets
|
|
17
|
-
* rendered in a `title` element in the SVG. This descriptive text is not
|
|
18
|
-
* visible but is needed for screenreaders to describe the graphic. */
|
|
19
|
-
title?: string;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* The `Logo` component renders SVG-based logos and color variants that are
|
|
23
|
-
* commonly used by the New York Public Library.
|
|
24
|
-
*/
|
|
25
|
-
export declare const Logo: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<LogoProps & {
|
|
26
|
-
children?: React.ReactNode;
|
|
27
|
-
} & React.RefAttributes<HTMLDivElement & SVGSVGElement>>, {}>;
|
|
28
|
-
export default Logo;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type LogoNames = "appleAppStoreBlack" | "appleAppStoreWhite" | "bplBlack" | "bplWhite" | "cleverBadgeColor" | "cleverColor" | "cleverWhite" | "digitalCollectionsBlack" | "digitalCollectionsWhite" | "firstbookColor" | "firstbookColorNegative" | "googlePlayBlack" | "lpaBlack" | "lpaColor" | "lpaWhite" | "mlnBlack" | "mlnColor" | "mlnWhite" | "nycdoeBlack" | "nycdoeColor" | "nycdoeWhite" | "nyplFullBlack" | "nyplFullWhite" | "nyplLionBlack" | "nyplLionWhite" | "nyplTextBlack" | "nyplTextWhite" | "openebooksColor" | "openebooksNegative" | "openebooksWithTextColor" | "openebooksWithTextNegative" | "qplAltBlack" | "qplAltWhite" | "qplBlack" | "qplColor" | "qplWhite" | "reservoirIconColor" | "reservoirVerticalColor" | "schomburgBlack" | "schomburgCircleBlack" | "schomburgCircleColor" | "schomburgCircleWhite" | "schomburgColor" | "schomburgWhite" | "simplyeBlack" | "simplyeWhite" | "simplyeColor" | "snflBlack" | "snflWhite" | "treasuresColor" | "treasuresColorNegative";
|
|
3
|
+
export type LogoSizes = "default" | "xxsmall" | "xsmall" | "small" | "medium" | "large";
|
|
4
|
+
export interface LogoProps {
|
|
5
|
+
/** Optional className that will be added to the parent element */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Logos designated as decorative will be ignored by screenreaders. False
|
|
8
|
+
* by default. */
|
|
9
|
+
decorative?: boolean;
|
|
10
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
11
|
+
id?: string;
|
|
12
|
+
/** The name of the logo you want to use. */
|
|
13
|
+
name?: LogoNames;
|
|
14
|
+
/** Sets the logo size. */
|
|
15
|
+
size?: LogoSizes;
|
|
16
|
+
/** For accessibility purposes, the text passed in the `title` prop gets
|
|
17
|
+
* rendered in a `title` element in the SVG. This descriptive text is not
|
|
18
|
+
* visible but is needed for screenreaders to describe the graphic. */
|
|
19
|
+
title?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* The `Logo` component renders SVG-based logos and color variants that are
|
|
23
|
+
* commonly used by the New York Public Library.
|
|
24
|
+
*/
|
|
25
|
+
export declare const Logo: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<LogoProps & {
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
} & React.RefAttributes<HTMLDivElement & SVGSVGElement>>, {}>;
|
|
28
|
+
export default Logo;
|