@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,157 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: {
|
|
3
|
+
appleAppStoreBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
4
|
+
title?: string;
|
|
5
|
+
}>;
|
|
6
|
+
appleAppStoreWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
7
|
+
title?: string;
|
|
8
|
+
}>;
|
|
9
|
+
bplBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
10
|
+
title?: string;
|
|
11
|
+
}>;
|
|
12
|
+
bplWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
13
|
+
title?: string;
|
|
14
|
+
}>;
|
|
15
|
+
cleverBadgeColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
16
|
+
title?: string;
|
|
17
|
+
}>;
|
|
18
|
+
cleverColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
19
|
+
title?: string;
|
|
20
|
+
}>;
|
|
21
|
+
cleverWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
22
|
+
title?: string;
|
|
23
|
+
}>;
|
|
24
|
+
digitalCollectionsBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
25
|
+
title?: string;
|
|
26
|
+
}>;
|
|
27
|
+
digitalCollectionsWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
28
|
+
title?: string;
|
|
29
|
+
}>;
|
|
30
|
+
firstbookColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
31
|
+
title?: string;
|
|
32
|
+
}>;
|
|
33
|
+
firstbookColorNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
34
|
+
title?: string;
|
|
35
|
+
}>;
|
|
36
|
+
googlePlayBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
37
|
+
title?: string;
|
|
38
|
+
}>;
|
|
39
|
+
lpaBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
40
|
+
title?: string;
|
|
41
|
+
}>;
|
|
42
|
+
lpaColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
43
|
+
title?: string;
|
|
44
|
+
}>;
|
|
45
|
+
lpaWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
46
|
+
title?: string;
|
|
47
|
+
}>;
|
|
48
|
+
mlnBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
49
|
+
title?: string;
|
|
50
|
+
}>;
|
|
51
|
+
mlnColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
52
|
+
title?: string;
|
|
53
|
+
}>;
|
|
54
|
+
mlnWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
55
|
+
title?: string;
|
|
56
|
+
}>;
|
|
57
|
+
nycdoeBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
58
|
+
title?: string;
|
|
59
|
+
}>;
|
|
60
|
+
nycdoeColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
61
|
+
title?: string;
|
|
62
|
+
}>;
|
|
63
|
+
nycdoeWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
64
|
+
title?: string;
|
|
65
|
+
}>;
|
|
66
|
+
nyplFullBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
67
|
+
title?: string;
|
|
68
|
+
}>;
|
|
69
|
+
nyplFullWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
70
|
+
title?: string;
|
|
71
|
+
}>;
|
|
72
|
+
nyplLionBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
73
|
+
title?: string;
|
|
74
|
+
}>;
|
|
75
|
+
nyplLionWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
76
|
+
title?: string;
|
|
77
|
+
}>;
|
|
78
|
+
nyplTextBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
79
|
+
title?: string;
|
|
80
|
+
}>;
|
|
81
|
+
nyplTextWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
82
|
+
title?: string;
|
|
83
|
+
}>;
|
|
84
|
+
openebooksColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
85
|
+
title?: string;
|
|
86
|
+
}>;
|
|
87
|
+
openebooksNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
88
|
+
title?: string;
|
|
89
|
+
}>;
|
|
90
|
+
openebooksWithTextColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
91
|
+
title?: string;
|
|
92
|
+
}>;
|
|
93
|
+
openebooksWithTextNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
94
|
+
title?: string;
|
|
95
|
+
}>;
|
|
96
|
+
qplAltBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
97
|
+
title?: string;
|
|
98
|
+
}>;
|
|
99
|
+
qplAltWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
100
|
+
title?: string;
|
|
101
|
+
}>;
|
|
102
|
+
qplBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
103
|
+
title?: string;
|
|
104
|
+
}>;
|
|
105
|
+
qplColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
106
|
+
title?: string;
|
|
107
|
+
}>;
|
|
108
|
+
qplWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
109
|
+
title?: string;
|
|
110
|
+
}>;
|
|
111
|
+
reservoirIconColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
112
|
+
title?: string;
|
|
113
|
+
}>;
|
|
114
|
+
reservoirVerticalColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
115
|
+
title?: string;
|
|
116
|
+
}>;
|
|
117
|
+
schomburgBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
118
|
+
title?: string;
|
|
119
|
+
}>;
|
|
120
|
+
schomburgCircleBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
121
|
+
title?: string;
|
|
122
|
+
}>;
|
|
123
|
+
schomburgCircleColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
124
|
+
title?: string;
|
|
125
|
+
}>;
|
|
126
|
+
schomburgCircleWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
127
|
+
title?: string;
|
|
128
|
+
}>;
|
|
129
|
+
schomburgColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
130
|
+
title?: string;
|
|
131
|
+
}>;
|
|
132
|
+
schomburgWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
133
|
+
title?: string;
|
|
134
|
+
}>;
|
|
135
|
+
simplyeBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
136
|
+
title?: string;
|
|
137
|
+
}>;
|
|
138
|
+
simplyeWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
139
|
+
title?: string;
|
|
140
|
+
}>;
|
|
141
|
+
simplyeColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
142
|
+
title?: string;
|
|
143
|
+
}>;
|
|
144
|
+
snflBlack: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
145
|
+
title?: string;
|
|
146
|
+
}>;
|
|
147
|
+
snflWhite: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
148
|
+
title?: string;
|
|
149
|
+
}>;
|
|
150
|
+
treasuresColor: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
151
|
+
title?: string;
|
|
152
|
+
}>;
|
|
153
|
+
treasuresColorNegative: import("react").FunctionComponent<import("react").SVGProps<SVGSVGElement> & {
|
|
154
|
+
title?: string;
|
|
155
|
+
}>;
|
|
156
|
+
};
|
|
157
|
+
export default _default;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
interface BaseModalProps {
|
|
3
|
-
bodyContent?: string | JSX.Element;
|
|
4
|
-
closeButtonLabel?: string;
|
|
5
|
-
headingText?: string | JSX.Element;
|
|
6
|
-
/** ID that other components can cross reference for accessibility purposes */
|
|
7
|
-
id?: string;
|
|
8
|
-
isOpen?: boolean;
|
|
9
|
-
onClose?: () => void;
|
|
10
|
-
}
|
|
11
|
-
export interface ModalProps {
|
|
12
|
-
buttonText?: string;
|
|
13
|
-
/** ID that other components can cross reference for accessibility purposes */
|
|
14
|
-
id?: string;
|
|
15
|
-
modalProps: BaseModalProps;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* The `ModalTrigger` component renders a button that you click to open the
|
|
19
|
-
* internal `Modal` component. Note that props to update the internal `Modal`
|
|
20
|
-
* component are passed through to the `modalProps` prop.
|
|
21
|
-
*/
|
|
22
|
-
export declare const ModalTrigger: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<ModalProps & {
|
|
23
|
-
children?: React.ReactNode;
|
|
24
|
-
} & React.RefAttributes<HTMLButtonElement>>, {}>;
|
|
25
|
-
/**
|
|
26
|
-
* This hook function can be used to render the `Modal` component with a custom
|
|
27
|
-
* open button(s) and optional custom close button(s). You must render your own
|
|
28
|
-
* button and pass the appropriate `onOpen` and ` handler for the modal to open.
|
|
29
|
-
*/
|
|
30
|
-
export declare function useModal(): {
|
|
31
|
-
onClose: () => void;
|
|
32
|
-
onOpen: () => void;
|
|
33
|
-
Modal: import("@chakra-ui/react").ChakraComponent<({ bodyContent, closeButtonLabel, headingText, id, ...rest }: React.PropsWithChildren<BaseModalProps>) => JSX.Element, {}>;
|
|
34
|
-
};
|
|
35
|
-
export {};
|
|
1
|
+
import React from "react";
|
|
2
|
+
interface BaseModalProps {
|
|
3
|
+
bodyContent?: string | JSX.Element;
|
|
4
|
+
closeButtonLabel?: string;
|
|
5
|
+
headingText?: string | JSX.Element;
|
|
6
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
7
|
+
id?: string;
|
|
8
|
+
isOpen?: boolean;
|
|
9
|
+
onClose?: () => void;
|
|
10
|
+
}
|
|
11
|
+
export interface ModalProps {
|
|
12
|
+
buttonText?: string;
|
|
13
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
14
|
+
id?: string;
|
|
15
|
+
modalProps: BaseModalProps;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* The `ModalTrigger` component renders a button that you click to open the
|
|
19
|
+
* internal `Modal` component. Note that props to update the internal `Modal`
|
|
20
|
+
* component are passed through to the `modalProps` prop.
|
|
21
|
+
*/
|
|
22
|
+
export declare const ModalTrigger: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<ModalProps & {
|
|
23
|
+
children?: React.ReactNode;
|
|
24
|
+
} & React.RefAttributes<HTMLButtonElement>>, {}>;
|
|
25
|
+
/**
|
|
26
|
+
* This hook function can be used to render the `Modal` component with a custom
|
|
27
|
+
* open button(s) and optional custom close button(s). You must render your own
|
|
28
|
+
* button and pass the appropriate `onOpen` and ` handler for the modal to open.
|
|
29
|
+
*/
|
|
30
|
+
export declare function useModal(): {
|
|
31
|
+
onClose: () => void;
|
|
32
|
+
onOpen: () => void;
|
|
33
|
+
Modal: import("@chakra-ui/react").ChakraComponent<({ bodyContent, closeButtonLabel, headingText, id, ...rest }: React.PropsWithChildren<BaseModalProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
34
|
+
};
|
|
35
|
+
export {};
|
|
@@ -1,78 +1,61 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface MultiSelectItem {
|
|
3
|
-
id: string;
|
|
4
|
-
name: string;
|
|
5
|
-
children?: MultiSelectItem[];
|
|
6
|
-
}
|
|
7
|
-
export declare
|
|
8
|
-
export
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
id
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
items
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
width
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
onChange
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
*
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
/** The action to perform for downshift's onSelectedItemChange function. */
|
|
63
|
-
onChange: ListboxOnChange;
|
|
64
|
-
onMixedStateChange?: never;
|
|
65
|
-
} & {
|
|
66
|
-
children?: React.ReactNode;
|
|
67
|
-
} & React.RefAttributes<HTMLDivElement>) | (MultiSelectCommonProps & {
|
|
68
|
-
type: "dialog";
|
|
69
|
-
/** The action to perform for save/apply button of multiselect. */
|
|
70
|
-
onApply: () => void;
|
|
71
|
-
/** The action to perform on the checkbox's onChange function. */
|
|
72
|
-
onChange: DialogOnChange;
|
|
73
|
-
/** The action to perform for a mixed state checkbox (parent checkbox). */
|
|
74
|
-
onMixedStateChange?: DialogOnChange;
|
|
75
|
-
} & {
|
|
76
|
-
children?: React.ReactNode;
|
|
77
|
-
} & React.RefAttributes<HTMLDivElement>)>, {}>;
|
|
78
|
-
export default MultiSelect;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface MultiSelectItem {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
children?: MultiSelectItem[];
|
|
6
|
+
}
|
|
7
|
+
export declare const multiSelectWidthsArray: readonly ["default", "fitContent", "full"];
|
|
8
|
+
export type MultiSelectWidths = typeof multiSelectWidthsArray[number];
|
|
9
|
+
export interface SelectedItems {
|
|
10
|
+
[name: string]: {
|
|
11
|
+
items: string[];
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
interface MultiSelectCommonProps {
|
|
15
|
+
/** The id of the MultiSelect. */
|
|
16
|
+
id: string;
|
|
17
|
+
/** Set the default open or closed state of the Multiselect. */
|
|
18
|
+
isDefaultOpen?: boolean;
|
|
19
|
+
/** Boolean value used to control how the MultiSelect component will render within the page and interact with other DOM elements.
|
|
20
|
+
* The default value is false. */
|
|
21
|
+
isBlockElement?: boolean;
|
|
22
|
+
/** The items to be rendered in the Multiselect as checkbox options. */
|
|
23
|
+
items: MultiSelectItem[];
|
|
24
|
+
/** The label text rendered within the MultiSelect. */
|
|
25
|
+
labelText: string;
|
|
26
|
+
/** The action to perform for clear/reset button of MultiSelect. */
|
|
27
|
+
onClear?: () => void;
|
|
28
|
+
/** The type of MultiSelect that will be rendered. */
|
|
29
|
+
type: "listbox" | "dialog";
|
|
30
|
+
/** The selected items state (items that were checked by user). */
|
|
31
|
+
selectedItems: SelectedItems;
|
|
32
|
+
/** Value used to set the width for the MultiSelect component. */
|
|
33
|
+
width?: MultiSelectWidths;
|
|
34
|
+
}
|
|
35
|
+
type ListboxOnChange = (selectedItem: MultiSelectItem, id: string) => void;
|
|
36
|
+
type DialogOnChange = (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
37
|
+
type MultiSelectVariantsProps = {
|
|
38
|
+
type: "listbox";
|
|
39
|
+
onApply?: never;
|
|
40
|
+
/** The action to perform for downshift's onSelectedItemChange function. */
|
|
41
|
+
onChange: ListboxOnChange;
|
|
42
|
+
onMixedStateChange?: never;
|
|
43
|
+
} | {
|
|
44
|
+
type: "dialog";
|
|
45
|
+
/** The action to perform for save/apply button of multiselect. */
|
|
46
|
+
onApply: () => void;
|
|
47
|
+
/** The action to perform on the checkbox's onChange function. */
|
|
48
|
+
onChange: DialogOnChange;
|
|
49
|
+
/** The action to perform for a mixed state checkbox (parent checkbox). */
|
|
50
|
+
onMixedStateChange?: DialogOnChange;
|
|
51
|
+
};
|
|
52
|
+
export type MultiSelectProps = MultiSelectCommonProps & MultiSelectVariantsProps;
|
|
53
|
+
/**
|
|
54
|
+
* The `MultiSelect` component is a form input element that presents a list
|
|
55
|
+
* of `Checkbox` components from which a user can make one or multiple
|
|
56
|
+
* selections. Two variants of the MultiSelect component are offered, each with
|
|
57
|
+
* slightly different functionality and requirements. Because of these
|
|
58
|
+
* differences, the two variants are broken out in separate stories below.
|
|
59
|
+
*/
|
|
60
|
+
export declare const MultiSelect: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<React.PropsWithChildren<MultiSelectProps> & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
61
|
+
export default MultiSelect;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MultiSelectProps } from "./MultiSelect";
|
|
3
|
-
export declare const MultiSelectDialog: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<
|
|
4
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
-
} & {
|
|
6
|
-
children?: React.ReactNode;
|
|
7
|
-
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
8
|
-
export default MultiSelectDialog;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MultiSelectProps } from "./MultiSelect";
|
|
3
|
+
export declare const MultiSelectDialog: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<Omit<MultiSelectProps, "onChange"> & {
|
|
4
|
+
onChange: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
5
|
+
} & {
|
|
6
|
+
children?: React.ReactNode;
|
|
7
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
8
|
+
export default MultiSelectDialog;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { MultiSelectItem, MultiSelectProps } from "./MultiSelect";
|
|
3
|
-
/** MultiSelectListbox renders a non-hierarchical list of checkbox options for the `type="listbox". It leverager downshift-js for accessiblity. */
|
|
4
|
-
export declare const MultiSelectListbox: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<
|
|
5
|
-
onChange: (selectedItem: MultiSelectItem, id: string) => void;
|
|
6
|
-
} & {
|
|
7
|
-
children?: React.ReactNode;
|
|
8
|
-
} & React.RefAttributes<HTMLElement>>, {}>;
|
|
9
|
-
export default MultiSelectListbox;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { MultiSelectItem, MultiSelectProps } from "./MultiSelect";
|
|
3
|
+
/** MultiSelectListbox renders a non-hierarchical list of checkbox options for the `type="listbox". It leverager downshift-js for accessiblity. */
|
|
4
|
+
export declare const MultiSelectListbox: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<Omit<MultiSelectProps, "onChange"> & {
|
|
5
|
+
onChange: (selectedItem: MultiSelectItem, id: string) => void;
|
|
6
|
+
} & {
|
|
7
|
+
children?: React.ReactNode;
|
|
8
|
+
} & React.RefAttributes<HTMLElement>>, {}>;
|
|
9
|
+
export default MultiSelectListbox;
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { SelectedItems } from "./MultiSelect";
|
|
3
|
-
export interface MultiSelectMenuButtonProps {
|
|
4
|
-
id: string;
|
|
5
|
-
/** The id of the MultiSelect using this button. */
|
|
6
|
-
multiSelectId: string;
|
|
7
|
-
/** The label text rendered within the MultiSelect using this button. */
|
|
8
|
-
multiSelectLabelText: string;
|
|
9
|
-
/** The open status of the MultiSelect menu. */
|
|
10
|
-
isOpen: boolean;
|
|
11
|
-
/** The selected items state (items that were checked by user). */
|
|
12
|
-
selectedItems: SelectedItems;
|
|
13
|
-
/** The callback function for the menu toggle. */
|
|
14
|
-
onMenuToggle?: () => void;
|
|
15
|
-
/** The action to perform for clear/reset button of MultiSelect. */
|
|
16
|
-
onClear?: () => void;
|
|
17
|
-
onKeyDown?: () => void;
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* The toggle button component used to open and close the `MultiSelect` menu.
|
|
21
|
-
* A second button is rendered above the main button that displays the current
|
|
22
|
-
* number of selected items. Clicking on the second button will clear all
|
|
23
|
-
* the selected items and the main button's close event will not be fired
|
|
24
|
-
* (as expected).
|
|
25
|
-
*/
|
|
26
|
-
declare const MultiSelectMenuButton: React.ForwardRefExoticComponent<MultiSelectMenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
-
export default MultiSelectMenuButton;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { SelectedItems } from "./MultiSelect";
|
|
3
|
+
export interface MultiSelectMenuButtonProps {
|
|
4
|
+
id: string;
|
|
5
|
+
/** The id of the MultiSelect using this button. */
|
|
6
|
+
multiSelectId: string;
|
|
7
|
+
/** The label text rendered within the MultiSelect using this button. */
|
|
8
|
+
multiSelectLabelText: string;
|
|
9
|
+
/** The open status of the MultiSelect menu. */
|
|
10
|
+
isOpen: boolean;
|
|
11
|
+
/** The selected items state (items that were checked by user). */
|
|
12
|
+
selectedItems: SelectedItems;
|
|
13
|
+
/** The callback function for the menu toggle. */
|
|
14
|
+
onMenuToggle?: () => void;
|
|
15
|
+
/** The action to perform for clear/reset button of MultiSelect. */
|
|
16
|
+
onClear?: () => void;
|
|
17
|
+
onKeyDown?: () => void;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* The toggle button component used to open and close the `MultiSelect` menu.
|
|
21
|
+
* A second button is rendered above the main button that displays the current
|
|
22
|
+
* number of selected items. Clicking on the second button will clear all
|
|
23
|
+
* the selected items and the main button's close event will not be fired
|
|
24
|
+
* (as expected).
|
|
25
|
+
*/
|
|
26
|
+
declare const MultiSelectMenuButton: React.ForwardRefExoticComponent<MultiSelectMenuButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
27
|
+
export default MultiSelectMenuButton;
|
|
@@ -1,26 +1,28 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { LayoutTypes } from "../../helpers/types";
|
|
3
|
-
import { MultiSelectWidths } from "../MultiSelect/MultiSelect";
|
|
4
|
-
export interface MultiSelectGroupProps {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
/** Additional className to use. */
|
|
7
|
-
className?: string;
|
|
8
|
-
id
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { LayoutTypes } from "../../helpers/types";
|
|
3
|
+
import { MultiSelectWidths } from "../MultiSelect/MultiSelect";
|
|
4
|
+
export interface MultiSelectGroupProps {
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
/** Additional className to use. */
|
|
7
|
+
className?: string;
|
|
8
|
+
/** The id of the MultiSelectGroup. */
|
|
9
|
+
id: string;
|
|
10
|
+
/** The label text rendered within the MultiSelectGroup. */
|
|
11
|
+
labelText: string;
|
|
12
|
+
/** Renders the layout of `MultiSelect` components in a row or column. */
|
|
13
|
+
layout?: LayoutTypes;
|
|
14
|
+
/** Width will be passed on each `MultiSelect` component. */
|
|
15
|
+
multiSelectWidth?: MultiSelectWidths;
|
|
16
|
+
/** Is set to `true` by default and determines if the `labelText` is visible on the site. */
|
|
17
|
+
showLabel?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* `MultiSelectGroup` is a wrapper component specific for `MultiSelect` components. The wrapped `MutliSelect` components can be displayed in a
|
|
21
|
+
* column or in a row. The `MultiSelectGroup` component renders all the necessary
|
|
22
|
+
* wrapping and associated text elements, but the child elements
|
|
23
|
+
* _need_ to be `MultiSelect` components from the NYPL Design System.
|
|
24
|
+
*/
|
|
25
|
+
export declare const MultiSelectGroup: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<MultiSelectGroupProps & {
|
|
26
|
+
children?: React.ReactNode;
|
|
27
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
28
|
+
export default MultiSelectGroup;
|
|
@@ -1,51 +1,52 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export declare
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
className
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
*
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
export
|
|
1
|
+
import React from "react";
|
|
2
|
+
export declare const notificationTypesArray: readonly ["standard", "announcement", "warning"];
|
|
3
|
+
export type NotificationTypes = typeof notificationTypesArray[number];
|
|
4
|
+
interface BaseProps {
|
|
5
|
+
/** Optional prop to control text alignment in `NotificationContent` */
|
|
6
|
+
alignText?: boolean;
|
|
7
|
+
/** Optional custom `Icon` that will override the default `Icon`. */
|
|
8
|
+
icon?: JSX.Element;
|
|
9
|
+
/** ID that other components can cross reference for accessibility purposes. */
|
|
10
|
+
id?: string;
|
|
11
|
+
/** Optional prop to control horizontal alignment of the `Notification` content */
|
|
12
|
+
isCentered?: boolean;
|
|
13
|
+
/** Content to be rendered in a `NotificationHeading` component. */
|
|
14
|
+
notificationHeading?: string;
|
|
15
|
+
/** Optional prop to control the coloring of the `Notification` text and the
|
|
16
|
+
* visibility of an applicable icon. */
|
|
17
|
+
notificationType?: NotificationTypes;
|
|
18
|
+
/** Prop to display the `Notification` icon. Defaults to `true`. */
|
|
19
|
+
showIcon?: boolean;
|
|
20
|
+
}
|
|
21
|
+
type NotificationHeadingProps = Omit<BasePropsWithoutAlignText, "notificationHeading" | "showIcon">;
|
|
22
|
+
type NotificationContentProps = Omit<BaseProps, "icon">;
|
|
23
|
+
type BasePropsWithoutAlignText = Omit<BaseProps, "alignText">;
|
|
24
|
+
export interface NotificationProps extends BasePropsWithoutAlignText {
|
|
25
|
+
/** Label used to describe the `Notification`'s aside HTML element. */
|
|
26
|
+
ariaLabel?: string;
|
|
27
|
+
/** Additional `className` to add. */
|
|
28
|
+
className?: string;
|
|
29
|
+
/** Optional prop to control whether a `Notification` can be dismissed
|
|
30
|
+
* (closed) by a user. */
|
|
31
|
+
dismissible?: boolean;
|
|
32
|
+
/** Optional custom `Icon` that will override the default `Icon`. */
|
|
33
|
+
icon?: JSX.Element;
|
|
34
|
+
/** Optional prop to control the margin around the `Notification` component. */
|
|
35
|
+
noMargin?: boolean;
|
|
36
|
+
/** Content to be rendered in a `NotificationContent` component. */
|
|
37
|
+
notificationContent: string | JSX.Element;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* NotificationHeading child-component.
|
|
41
|
+
*/
|
|
42
|
+
export declare const NotificationHeading: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationHeadingProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
43
|
+
/**
|
|
44
|
+
* NotificationContent child-component.
|
|
45
|
+
*/
|
|
46
|
+
export declare const NotificationContent: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<NotificationContentProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
47
|
+
/**
|
|
48
|
+
* Component used to present users with three different levels of notifications:
|
|
49
|
+
* standard, announcement, and warning.
|
|
50
|
+
*/
|
|
51
|
+
export declare const Notification: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<NotificationProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
52
|
+
export default Notification;
|