@nypl/design-system-react-components 1.5.1 → 1.6.0-vite-rc
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +39 -39
- package/dist/design-system-react-components.cjs +279 -0
- package/dist/design-system-react-components.js +42759 -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 +18 -18
- package/dist/{components → src/components}/Button/Button.d.ts +30 -30
- package/dist/{components → src/components}/ButtonGroup/ButtonGroup.d.ts +24 -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 +81 -81
- package/dist/{components → src/components}/FeedbackBox/FeedbackBox.d.ts +63 -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 +19 -19
- package/dist/{components → src/components}/Header/Header.d.ts +22 -22
- package/dist/{components → src/components}/Header/components/HeaderLogin.d.ts +12 -12
- package/dist/{components → src/components}/Header/components/HeaderLoginButton.d.ts +11 -11
- package/dist/{components → src/components}/Header/components/HeaderLowerNav.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileIconNav.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNav.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderMobileNavButton.d.ts +7 -7
- package/dist/{components → src/components}/Header/components/HeaderSearchButton.d.ts +10 -10
- package/dist/{components → src/components}/Header/components/HeaderSearchForm.d.ts +11 -11
- package/dist/{components → src/components}/Header/components/HeaderSitewideAlerts.d.ts +8 -8
- package/dist/{components → src/components}/Header/components/HeaderUpperNav.d.ts +8 -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 +35 -35
- package/dist/{components → src/components}/HelperErrorText/HelperErrorText.d.ts +34 -34
- package/dist/{components → src/components}/Hero/Hero.d.ts +42 -42
- package/dist/{components → src/components}/HorizontalRule/HorizontalRule.d.ts +11 -11
- package/dist/{components → src/components}/Icons/Icon.d.ts +41 -41
- package/dist/{components → src/components}/Icons/IconColors.d.ts +3 -3
- package/dist/{components → src/components}/Icons/IconNames.d.ts +3 -3
- package/dist/{components → src/components}/Icons/IconSvgs.d.ts +56 -56
- package/dist/{components → src/components}/Image/Image.d.ts +65 -65
- package/dist/{components → src/components}/Label/Label.d.ts +25 -25
- package/dist/{components → src/components}/Link/Link.d.ts +21 -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/{components → src/components}/Logo/LogoSvgs.d.ts +54 -52
- package/dist/{components → src/components}/Modal/Modal.d.ts +35 -35
- package/dist/{components → src/components}/MultiSelect/MultiSelect.d.ts +60 -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 +26 -26
- package/dist/{components → src/components}/Notification/Notification.d.ts +51 -51
- package/dist/{components → src/components}/Pagination/Pagination.d.ts +27 -27
- package/dist/{components → src/components}/ProgressIndicator/ProgressIndicator.d.ts +30 -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 +57 -57
- package/dist/{components → src/components}/SkeletonLoader/SkeletonLoader.d.ts +41 -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 +18 -18
- package/dist/{components → src/components}/StructuredContent/StructuredContent.d.ts +30 -30
- package/dist/{components → src/components}/StyleGuide/ColorCard.d.ts +46 -46
- 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 +33 -32
- package/dist/{components → src/components}/TagSet/TagSetExplore.d.ts +27 -27
- package/dist/{components → src/components}/TagSet/TagSetFilter.d.ts +26 -26
- package/dist/{components → src/components}/Template/Template.d.ts +140 -140
- package/dist/{components → src/components}/Text/Text.d.ts +24 -24
- package/dist/{components → src/components}/TextInput/TextInput.d.ts +88 -88
- package/dist/{components → src/components}/Toggle/Toggle.d.ts +42 -42
- package/dist/{components → src/components}/Tooltip/Tooltip.d.ts +17 -17
- package/dist/{components → src/components}/VideoPlayer/VideoPlayer.d.ts +40 -40
- package/dist/src/helpers/types.d.ts +1 -0
- package/dist/{hooks → src/hooks}/useCarouselStyles.d.ts +17 -17
- package/dist/{hooks → src/hooks}/useCloseDropDown.d.ts +7 -6
- 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 +90 -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 +151 -138
- 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 -85
- 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 -241
- 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 -125
- 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 -349
- 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/{utils → src/utils}/interfaces.d.ts +5 -5
- package/dist/{utils → src/utils}/utils.d.ts +39 -39
- package/dist/style.css +1 -0
- package/package.json +52 -61
- package/CHANGELOG.md +0 -1861
- 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/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/design-system-react-components.cjs.development.js +0 -17917
- 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 -17716
- 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 -65
- package/dist/index.js +0 -8
- package/dist/resources.scss +0 -382
- package/dist/styles.css +0 -4
- package/dist/theme/types.d.ts +0 -1
- package/dist/utils/componentCategories.d.ts +0 -1
|
@@ -1,94 +1,94 @@
|
|
|
1
|
-
export interface Alert {
|
|
2
|
-
id: string;
|
|
3
|
-
link: string;
|
|
4
|
-
description: string;
|
|
5
|
-
startDate: string;
|
|
6
|
-
endDate: string;
|
|
7
|
-
}
|
|
8
|
-
export declare const alertsApiUrl = "https://refinery.nypl.org/api/nypl/ndo/v0.1/content/alerts?filter%5Bscope%5D=all";
|
|
9
|
-
export declare const patronApiUrl = "https://platform.nypl.org/api/v0.1/auth/patron/tokens/";
|
|
10
|
-
export declare const tokenRefreshLink: (isProduction?: boolean) => string;
|
|
11
|
-
export declare const getLoginLinks: (patronName?: string, isProduction?: boolean) => {
|
|
12
|
-
catalogLink: string;
|
|
13
|
-
researchLink: string;
|
|
14
|
-
logOutLink: string;
|
|
15
|
-
};
|
|
16
|
-
export declare const upperNavLinks: {
|
|
17
|
-
locations: {
|
|
18
|
-
href: string;
|
|
19
|
-
text: string;
|
|
20
|
-
};
|
|
21
|
-
libraryCard: {
|
|
22
|
-
href: string;
|
|
23
|
-
text: string;
|
|
24
|
-
};
|
|
25
|
-
emailUpdates: {
|
|
26
|
-
href: string;
|
|
27
|
-
text: string;
|
|
28
|
-
};
|
|
29
|
-
donate: {
|
|
30
|
-
href: string;
|
|
31
|
-
text: string;
|
|
32
|
-
};
|
|
33
|
-
shop: {
|
|
34
|
-
href: string;
|
|
35
|
-
text: string;
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
export declare const siteNavLinks: {
|
|
39
|
-
href: string;
|
|
40
|
-
text: string;
|
|
41
|
-
}[];
|
|
42
|
-
/**
|
|
43
|
-
* Replaces the search string's special characters that need to be encoded
|
|
44
|
-
* using base64. These characters are "=","/", "\", "?".
|
|
45
|
-
*/
|
|
46
|
-
export declare const encoreEncodeSearchString: (searchString: any) => any;
|
|
47
|
-
/**
|
|
48
|
-
* Returns the final URL for the NYPL Encore search.
|
|
49
|
-
*/
|
|
50
|
-
export declare const getEncoreCatalogURL: (searchValue: any) => any;
|
|
51
|
-
/**
|
|
52
|
-
* Returns the final URL for the NYPL Research Catalog search.
|
|
53
|
-
*/
|
|
54
|
-
export declare const getResearchCatalogURL: (searchValue: any) => string;
|
|
55
|
-
/**
|
|
56
|
-
* Returns the final URL for the NYPL catalog search.
|
|
57
|
-
*/
|
|
58
|
-
export declare const getNYPLSearchURL: (searchString: any) => string;
|
|
59
|
-
/**
|
|
60
|
-
* The `alertsApiUrl` fetches NYPL alerts from the Refinery API. This API
|
|
61
|
-
* returns JSONAPI-formatted data. We could use a better JSONAPI parser, but
|
|
62
|
-
* this is the only endpoint we will use that is JSONAPI. Eventually, this
|
|
63
|
-
* endpoint will be replaced. This function parses the JSONAPI data in a very
|
|
64
|
-
* naive and quick way to get the necessary alerts data. The data is then
|
|
65
|
-
* filtered to include active alerts.
|
|
66
|
-
*/
|
|
67
|
-
export declare const parseAlertsData: (data: any) => Alert[];
|
|
68
|
-
/**
|
|
69
|
-
* `refreshAccessToken` attempts to refresh the "nyplIdentityPatron" cookie's
|
|
70
|
-
* `accessToken` by making a request to the `tokenRefreshLink`. If successful,
|
|
71
|
-
* it tries to fetch the patron's data again.
|
|
72
|
-
*/
|
|
73
|
-
export declare const refreshAccessToken: (api: any, cb: any, fallBackCb: any) => void;
|
|
74
|
-
/**
|
|
75
|
-
* getCookieValue uses the js.cookie package to get the value
|
|
76
|
-
* of the "nyplIdentityPatron" cookie (if it exists) and extract
|
|
77
|
-
* the cookie's `access_token`.
|
|
78
|
-
*/
|
|
79
|
-
export declare const getCookieValue: () => {
|
|
80
|
-
cookieValue: any;
|
|
81
|
-
accessToken: any;
|
|
82
|
-
};
|
|
83
|
-
export declare const deleteCookieValue: () => void;
|
|
84
|
-
/**
|
|
85
|
-
* getLoginData uses the `patronApiUrl` combined with the
|
|
86
|
-
* `accessToken` from the "nyplIdentityPatron" cookie to fetch
|
|
87
|
-
* the patron's information from the server.
|
|
88
|
-
*/
|
|
89
|
-
export declare const getLoginData: (accessToken: any, cb: any) => void;
|
|
90
|
-
/**
|
|
91
|
-
* `extractPatronName` locates and returns the `patronName`
|
|
92
|
-
* from the nested object that is returned from `getLoginData`.
|
|
93
|
-
*/
|
|
94
|
-
export declare const extractPatronName: (data: any) => any;
|
|
1
|
+
export interface Alert {
|
|
2
|
+
id: string;
|
|
3
|
+
link: string;
|
|
4
|
+
description: string;
|
|
5
|
+
startDate: string;
|
|
6
|
+
endDate: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const alertsApiUrl = "https://refinery.nypl.org/api/nypl/ndo/v0.1/content/alerts?filter%5Bscope%5D=all";
|
|
9
|
+
export declare const patronApiUrl = "https://platform.nypl.org/api/v0.1/auth/patron/tokens/";
|
|
10
|
+
export declare const tokenRefreshLink: (isProduction?: boolean) => string;
|
|
11
|
+
export declare const getLoginLinks: (patronName?: string, isProduction?: boolean) => {
|
|
12
|
+
catalogLink: string;
|
|
13
|
+
researchLink: string;
|
|
14
|
+
logOutLink: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const upperNavLinks: {
|
|
17
|
+
locations: {
|
|
18
|
+
href: string;
|
|
19
|
+
text: string;
|
|
20
|
+
};
|
|
21
|
+
libraryCard: {
|
|
22
|
+
href: string;
|
|
23
|
+
text: string;
|
|
24
|
+
};
|
|
25
|
+
emailUpdates: {
|
|
26
|
+
href: string;
|
|
27
|
+
text: string;
|
|
28
|
+
};
|
|
29
|
+
donate: {
|
|
30
|
+
href: string;
|
|
31
|
+
text: string;
|
|
32
|
+
};
|
|
33
|
+
shop: {
|
|
34
|
+
href: string;
|
|
35
|
+
text: string;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
export declare const siteNavLinks: {
|
|
39
|
+
href: string;
|
|
40
|
+
text: string;
|
|
41
|
+
}[];
|
|
42
|
+
/**
|
|
43
|
+
* Replaces the search string's special characters that need to be encoded
|
|
44
|
+
* using base64. These characters are "=","/", "\", "?".
|
|
45
|
+
*/
|
|
46
|
+
export declare const encoreEncodeSearchString: (searchString: any) => any;
|
|
47
|
+
/**
|
|
48
|
+
* Returns the final URL for the NYPL Encore search.
|
|
49
|
+
*/
|
|
50
|
+
export declare const getEncoreCatalogURL: (searchValue: any) => any;
|
|
51
|
+
/**
|
|
52
|
+
* Returns the final URL for the NYPL Research Catalog search.
|
|
53
|
+
*/
|
|
54
|
+
export declare const getResearchCatalogURL: (searchValue: any) => string;
|
|
55
|
+
/**
|
|
56
|
+
* Returns the final URL for the NYPL catalog search.
|
|
57
|
+
*/
|
|
58
|
+
export declare const getNYPLSearchURL: (searchString: any) => string;
|
|
59
|
+
/**
|
|
60
|
+
* The `alertsApiUrl` fetches NYPL alerts from the Refinery API. This API
|
|
61
|
+
* returns JSONAPI-formatted data. We could use a better JSONAPI parser, but
|
|
62
|
+
* this is the only endpoint we will use that is JSONAPI. Eventually, this
|
|
63
|
+
* endpoint will be replaced. This function parses the JSONAPI data in a very
|
|
64
|
+
* naive and quick way to get the necessary alerts data. The data is then
|
|
65
|
+
* filtered to include active alerts.
|
|
66
|
+
*/
|
|
67
|
+
export declare const parseAlertsData: (data: any) => Alert[];
|
|
68
|
+
/**
|
|
69
|
+
* `refreshAccessToken` attempts to refresh the "nyplIdentityPatron" cookie's
|
|
70
|
+
* `accessToken` by making a request to the `tokenRefreshLink`. If successful,
|
|
71
|
+
* it tries to fetch the patron's data again.
|
|
72
|
+
*/
|
|
73
|
+
export declare const refreshAccessToken: (api: any, cb: any, fallBackCb: any) => void;
|
|
74
|
+
/**
|
|
75
|
+
* getCookieValue uses the js.cookie package to get the value
|
|
76
|
+
* of the "nyplIdentityPatron" cookie (if it exists) and extract
|
|
77
|
+
* the cookie's `access_token`.
|
|
78
|
+
*/
|
|
79
|
+
export declare const getCookieValue: () => {
|
|
80
|
+
cookieValue: any;
|
|
81
|
+
accessToken: any;
|
|
82
|
+
};
|
|
83
|
+
export declare const deleteCookieValue: () => void;
|
|
84
|
+
/**
|
|
85
|
+
* getLoginData uses the `patronApiUrl` combined with the
|
|
86
|
+
* `accessToken` from the "nyplIdentityPatron" cookie to fetch
|
|
87
|
+
* the patron's information from the server.
|
|
88
|
+
*/
|
|
89
|
+
export declare const getLoginData: (accessToken: any, cb: any) => void;
|
|
90
|
+
/**
|
|
91
|
+
* `extractPatronName` locates and returns the `patronName`
|
|
92
|
+
* from the nested object that is returned from `getLoginData`.
|
|
93
|
+
*/
|
|
94
|
+
export declare const extractPatronName: (data: any) => any;
|
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export interface HeadingProps {
|
|
5
|
-
/** Optional className that appears in addition to `heading` */
|
|
6
|
-
className?: string;
|
|
7
|
-
/** Optional ID that other components can cross reference for accessibility purposes */
|
|
8
|
-
id?: string;
|
|
9
|
-
/** Optional prop used to show capitalized text */
|
|
10
|
-
isCapitalized?: boolean;
|
|
11
|
-
/** Optional prop used to show upper case text */
|
|
12
|
-
isUppercase?: boolean;
|
|
13
|
-
/** Optional prop used to show lower case text */
|
|
14
|
-
isLowercase?: boolean;
|
|
15
|
-
/** Optional number 1-6 used to create the `<h*>` tag; if prop is not passed,
|
|
16
|
-
* `Heading` will default to `<h2>` */
|
|
17
|
-
level?: HeadingLevels;
|
|
18
|
-
/** Optional size used to override the default styles of the semantic HTM
|
|
19
|
-
* `<h>` elements */
|
|
20
|
-
size?: HeadingSizes;
|
|
21
|
-
/** Optional prop used to remove default spacing */
|
|
22
|
-
noSpace?: boolean;
|
|
23
|
-
/** Inner text of the `<h*>` element */
|
|
24
|
-
text?: string;
|
|
25
|
-
/** Optional URL that header points to; when `url` prop is passed to
|
|
26
|
-
* `Heading`, a child `<a>` element is created and the heading text becomes
|
|
27
|
-
* an active link */
|
|
28
|
-
url?: string;
|
|
29
|
-
/** Optional className for the URL when the `url` prop is passed */
|
|
30
|
-
urlClass?: string;
|
|
31
|
-
}
|
|
32
|
-
export declare const Heading: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HeadingProps & {
|
|
33
|
-
children?: React.ReactNode;
|
|
34
|
-
} & React.RefAttributes<HTMLHeadingElement>>, {}>;
|
|
35
|
-
export default Heading;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type HeadingSizes = "primary" | "secondary" | "tertiary" | "callout";
|
|
3
|
+
export type HeadingLevels = "one" | "two" | "three" | "four" | "five" | "six";
|
|
4
|
+
export interface HeadingProps {
|
|
5
|
+
/** Optional className that appears in addition to `heading` */
|
|
6
|
+
className?: string;
|
|
7
|
+
/** Optional ID that other components can cross reference for accessibility purposes */
|
|
8
|
+
id?: string;
|
|
9
|
+
/** Optional prop used to show capitalized text */
|
|
10
|
+
isCapitalized?: boolean;
|
|
11
|
+
/** Optional prop used to show upper case text */
|
|
12
|
+
isUppercase?: boolean;
|
|
13
|
+
/** Optional prop used to show lower case text */
|
|
14
|
+
isLowercase?: boolean;
|
|
15
|
+
/** Optional number 1-6 used to create the `<h*>` tag; if prop is not passed,
|
|
16
|
+
* `Heading` will default to `<h2>` */
|
|
17
|
+
level?: HeadingLevels;
|
|
18
|
+
/** Optional size used to override the default styles of the semantic HTM
|
|
19
|
+
* `<h>` elements */
|
|
20
|
+
size?: HeadingSizes;
|
|
21
|
+
/** Optional prop used to remove default spacing */
|
|
22
|
+
noSpace?: boolean;
|
|
23
|
+
/** Inner text of the `<h*>` element */
|
|
24
|
+
text?: string;
|
|
25
|
+
/** Optional URL that header points to; when `url` prop is passed to
|
|
26
|
+
* `Heading`, a child `<a>` element is created and the heading text becomes
|
|
27
|
+
* an active link */
|
|
28
|
+
url?: string;
|
|
29
|
+
/** Optional className for the URL when the `url` prop is passed */
|
|
30
|
+
urlClass?: string;
|
|
31
|
+
}
|
|
32
|
+
export declare const Heading: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HeadingProps & {
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
} & React.RefAttributes<HTMLHeadingElement>>, {}>;
|
|
35
|
+
export default Heading;
|
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
interface HelperErrorTextProps {
|
|
5
|
-
/** Aria attribute. When true, assistive technologies will read the entire
|
|
6
|
-
* DOM element. When false, only changes (additionals or removals) will be
|
|
7
|
-
* read. True by default. */
|
|
8
|
-
ariaAtomic?: boolean;
|
|
9
|
-
/** Aria attribute used to handle live updates for the helper and error text.
|
|
10
|
-
* This indicates the priority of the text and when it should be presented to
|
|
11
|
-
* users using screen readers; "off" indicates that the content should not be
|
|
12
|
-
* presented, "polite" that it will be announced at the next available time
|
|
13
|
-
* slot, and "assertive" that it should be announced immediately. This is set
|
|
14
|
-
* to "polite" by default. */
|
|
15
|
-
ariaLive?: AriaLiveValues;
|
|
16
|
-
/** Additional className to add. */
|
|
17
|
-
className?: string;
|
|
18
|
-
/** Unique ID for accessibility purposes. */
|
|
19
|
-
id?: string;
|
|
20
|
-
/** Toggles between helper and invalid styling. */
|
|
21
|
-
isInvalid?: boolean;
|
|
22
|
-
/** Offers the ability to render or not render the content passed in
|
|
23
|
-
* the `text` prop; `true` by default. */
|
|
24
|
-
isRenderedText?: boolean;
|
|
25
|
-
/** The text to display. */
|
|
26
|
-
text: HelperErrorTextType;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Component that always renders a div even if the text content is not passed.
|
|
30
|
-
* This pattern guarantees accessibility guidelines are met if the text content
|
|
31
|
-
* is dynamically updated by the app or component that implements it.
|
|
32
|
-
*/
|
|
33
|
-
export declare const HelperErrorText: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HelperErrorTextProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
34
|
-
export default HelperErrorText;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export type AriaLiveValues = "assertive" | "off" | "polite" | undefined;
|
|
3
|
+
export type HelperErrorTextType = string | JSX.Element;
|
|
4
|
+
interface HelperErrorTextProps {
|
|
5
|
+
/** Aria attribute. When true, assistive technologies will read the entire
|
|
6
|
+
* DOM element. When false, only changes (additionals or removals) will be
|
|
7
|
+
* read. True by default. */
|
|
8
|
+
ariaAtomic?: boolean;
|
|
9
|
+
/** Aria attribute used to handle live updates for the helper and error text.
|
|
10
|
+
* This indicates the priority of the text and when it should be presented to
|
|
11
|
+
* users using screen readers; "off" indicates that the content should not be
|
|
12
|
+
* presented, "polite" that it will be announced at the next available time
|
|
13
|
+
* slot, and "assertive" that it should be announced immediately. This is set
|
|
14
|
+
* to "polite" by default. */
|
|
15
|
+
ariaLive?: AriaLiveValues;
|
|
16
|
+
/** Additional className to add. */
|
|
17
|
+
className?: string;
|
|
18
|
+
/** Unique ID for accessibility purposes. */
|
|
19
|
+
id?: string;
|
|
20
|
+
/** Toggles between helper and invalid styling. */
|
|
21
|
+
isInvalid?: boolean;
|
|
22
|
+
/** Offers the ability to render or not render the content passed in
|
|
23
|
+
* the `text` prop; `true` by default. */
|
|
24
|
+
isRenderedText?: boolean;
|
|
25
|
+
/** The text to display. */
|
|
26
|
+
text: HelperErrorTextType;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Component that always renders a div even if the text content is not passed.
|
|
30
|
+
* This pattern guarantees accessibility guidelines are met if the text content
|
|
31
|
+
* is dynamically updated by the app or component that implements it.
|
|
32
|
+
*/
|
|
33
|
+
export declare const HelperErrorText: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HelperErrorTextProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
34
|
+
export default HelperErrorText;
|
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { ComponentImageProps } from "../Image/Image";
|
|
3
|
-
export
|
|
4
|
-
export declare const heroSecondaryTypes: string[];
|
|
5
|
-
export interface HeroImageProps extends Pick<ComponentImageProps, "alt" | "src"> {
|
|
6
|
-
}
|
|
7
|
-
export interface HeroProps {
|
|
8
|
-
/** Optional hex color value used to override the default background
|
|
9
|
-
* color for a given `Hero` variation.
|
|
10
|
-
* Note: not all `Hero` variations utilize this prop. */
|
|
11
|
-
backgroundColor?: string;
|
|
12
|
-
/** Optional path to an image that will be used as a background image for the
|
|
13
|
-
* `Hero` component.
|
|
14
|
-
* Note: not all `Hero` variations utilize this prop. */
|
|
15
|
-
backgroundImageSrc?: string;
|
|
16
|
-
/** Optional hex color value used to override the default text color for a
|
|
17
|
-
* given `Hero` variation.
|
|
18
|
-
* Note: not all `Hero` variations utilize this prop. */
|
|
19
|
-
foregroundColor?: string;
|
|
20
|
-
/** Optional heading element. */
|
|
21
|
-
heading?: JSX.Element;
|
|
22
|
-
/** Used to control how the `Hero` component will be rendered. */
|
|
23
|
-
heroType?: HeroTypes;
|
|
24
|
-
/** Object used to create and render the `Image` component. Note that only
|
|
25
|
-
* `src` and `alt` are the available attributes to pass. If `imageProps.alt`
|
|
26
|
-
* is left blank, a warning will be logged to the console and will cause
|
|
27
|
-
* accessibility issues. For `imageProps.src`, it will only work for the
|
|
28
|
-
* "secondary", "fiftyFifty" and "campaign" `Hero` types; Note: `imageProps.src`
|
|
29
|
-
* can only be used in conjunction with `backgroundImageSrc` for the "campaign"
|
|
30
|
-
* `Hero` type. Note: not all `Hero` variations utilize this prop. */
|
|
31
|
-
imageProps?: HeroImageProps;
|
|
32
|
-
/** Optional details area that contains location data.
|
|
33
|
-
* Note: not all `Hero` variations utilize this prop. */
|
|
34
|
-
locationDetails?: JSX.Element;
|
|
35
|
-
/** Optional string used for the subheader that displays
|
|
36
|
-
* underneath the heading element. */
|
|
37
|
-
subHeaderText?: string | JSX.Element;
|
|
38
|
-
}
|
|
39
|
-
export declare const Hero: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HeroProps & {
|
|
40
|
-
children?: React.ReactNode;
|
|
41
|
-
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
42
|
-
export default Hero;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { ComponentImageProps } from "../Image/Image";
|
|
3
|
+
export type HeroTypes = "primary" | "secondary" | "secondaryBooksAndMore" | "secondaryLocations" | "secondaryResearch" | "secondaryWhatsOn" | "tertiary" | "campaign" | "fiftyFifty";
|
|
4
|
+
export declare const heroSecondaryTypes: string[];
|
|
5
|
+
export interface HeroImageProps extends Pick<ComponentImageProps, "alt" | "src"> {
|
|
6
|
+
}
|
|
7
|
+
export interface HeroProps {
|
|
8
|
+
/** Optional hex color value used to override the default background
|
|
9
|
+
* color for a given `Hero` variation.
|
|
10
|
+
* Note: not all `Hero` variations utilize this prop. */
|
|
11
|
+
backgroundColor?: string;
|
|
12
|
+
/** Optional path to an image that will be used as a background image for the
|
|
13
|
+
* `Hero` component.
|
|
14
|
+
* Note: not all `Hero` variations utilize this prop. */
|
|
15
|
+
backgroundImageSrc?: string;
|
|
16
|
+
/** Optional hex color value used to override the default text color for a
|
|
17
|
+
* given `Hero` variation.
|
|
18
|
+
* Note: not all `Hero` variations utilize this prop. */
|
|
19
|
+
foregroundColor?: string;
|
|
20
|
+
/** Optional heading element. */
|
|
21
|
+
heading?: JSX.Element;
|
|
22
|
+
/** Used to control how the `Hero` component will be rendered. */
|
|
23
|
+
heroType?: HeroTypes;
|
|
24
|
+
/** Object used to create and render the `Image` component. Note that only
|
|
25
|
+
* `src` and `alt` are the available attributes to pass. If `imageProps.alt`
|
|
26
|
+
* is left blank, a warning will be logged to the console and will cause
|
|
27
|
+
* accessibility issues. For `imageProps.src`, it will only work for the
|
|
28
|
+
* "secondary", "fiftyFifty" and "campaign" `Hero` types; Note: `imageProps.src`
|
|
29
|
+
* can only be used in conjunction with `backgroundImageSrc` for the "campaign"
|
|
30
|
+
* `Hero` type. Note: not all `Hero` variations utilize this prop. */
|
|
31
|
+
imageProps?: HeroImageProps;
|
|
32
|
+
/** Optional details area that contains location data.
|
|
33
|
+
* Note: not all `Hero` variations utilize this prop. */
|
|
34
|
+
locationDetails?: JSX.Element;
|
|
35
|
+
/** Optional string used for the subheader that displays
|
|
36
|
+
* underneath the heading element. */
|
|
37
|
+
subHeaderText?: string | JSX.Element;
|
|
38
|
+
}
|
|
39
|
+
export declare const Hero: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HeroProps & {
|
|
40
|
+
children?: React.ReactNode;
|
|
41
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
42
|
+
export default Hero;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
export interface HorizontalRuleProps {
|
|
3
|
-
/** Optional alignment value to align the horizontal rule to one side or the
|
|
4
|
-
* other when the width is less than 100%. If omitted, the horizontal rule
|
|
5
|
-
* will have a default center alignment. */
|
|
6
|
-
align?: "left" | "right";
|
|
7
|
-
/** ClassName you can add in addition to `horizontal-rule` */
|
|
8
|
-
className?: string;
|
|
9
|
-
}
|
|
10
|
-
export declare const HorizontalRule: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HorizontalRuleProps & React.RefAttributes<HTMLDivElement & HTMLHRElement>>, {}>;
|
|
11
|
-
export default HorizontalRule;
|
|
1
|
+
import React from "react";
|
|
2
|
+
export interface HorizontalRuleProps {
|
|
3
|
+
/** Optional alignment value to align the horizontal rule to one side or the
|
|
4
|
+
* other when the width is less than 100%. If omitted, the horizontal rule
|
|
5
|
+
* will have a default center alignment. */
|
|
6
|
+
align?: "left" | "right";
|
|
7
|
+
/** ClassName you can add in addition to `horizontal-rule` */
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const HorizontalRule: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<HorizontalRuleProps & React.RefAttributes<HTMLDivElement & HTMLHRElement>>, {}>;
|
|
11
|
+
export default HorizontalRule;
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import iconColors from "./IconColors";
|
|
3
|
-
import iconNames from "./IconNames";
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
9
|
-
export
|
|
10
|
-
export interface IconProps {
|
|
11
|
-
/** Aligns the icon. */
|
|
12
|
-
align?: IconAlign;
|
|
13
|
-
/** Optional className that will be added to the parent element */
|
|
14
|
-
className?: string;
|
|
15
|
-
/** Overrides default icon color (black). */
|
|
16
|
-
color?: IconColors;
|
|
17
|
-
/** Icons designated as decorative will be ignored by screenreaders. True
|
|
18
|
-
* by default. */
|
|
19
|
-
decorative?: boolean;
|
|
20
|
-
/** Rotates the icon clockwise in increments of 90deg */
|
|
21
|
-
iconRotation?: IconRotationTypes;
|
|
22
|
-
/** ID that other components can cross reference for accessibility purposes */
|
|
23
|
-
id?: string;
|
|
24
|
-
/** The name of the icon you want to use. */
|
|
25
|
-
name?: IconNames;
|
|
26
|
-
/** Sets the icon size. */
|
|
27
|
-
size?: IconSizes;
|
|
28
|
-
/** For accessibility purposes, the text passed in the `title` prop gets
|
|
29
|
-
* rendered in a `title` element in the SVG. This descriptive text is not
|
|
30
|
-
* visible but is needed for screenreaders to describe the graphic. */
|
|
31
|
-
title?: string;
|
|
32
|
-
/** FOR INTERNAL DS USE ONLY: the icon variant to display. */
|
|
33
|
-
type?: IconTypes;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Renders SVG-based icons.
|
|
37
|
-
*/
|
|
38
|
-
export declare const Icon: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<IconProps & {
|
|
39
|
-
children?: React.ReactNode;
|
|
40
|
-
} & React.RefAttributes<HTMLDivElement & SVGSVGElement>>, {}>;
|
|
41
|
-
export default Icon;
|
|
1
|
+
import React from "react";
|
|
2
|
+
import iconColors from "./IconColors";
|
|
3
|
+
import iconNames from "./IconNames";
|
|
4
|
+
export type IconAlign = "left" | "right" | "none";
|
|
5
|
+
export type IconColors = typeof iconColors[number];
|
|
6
|
+
export type IconNames = typeof iconNames[number];
|
|
7
|
+
export type IconRotationTypes = "rotate0" | "rotate90" | "rotate180" | "rotate270";
|
|
8
|
+
export type IconSizes = "default" | "xsmall" | "small" | "medium" | "large" | "xlarge" | "xxlarge" | "xxxlarge";
|
|
9
|
+
export type IconTypes = "default" | "breadcrumbs";
|
|
10
|
+
export interface IconProps {
|
|
11
|
+
/** Aligns the icon. */
|
|
12
|
+
align?: IconAlign;
|
|
13
|
+
/** Optional className that will be added to the parent element */
|
|
14
|
+
className?: string;
|
|
15
|
+
/** Overrides default icon color (black). */
|
|
16
|
+
color?: IconColors;
|
|
17
|
+
/** Icons designated as decorative will be ignored by screenreaders. True
|
|
18
|
+
* by default. */
|
|
19
|
+
decorative?: boolean;
|
|
20
|
+
/** Rotates the icon clockwise in increments of 90deg */
|
|
21
|
+
iconRotation?: IconRotationTypes;
|
|
22
|
+
/** ID that other components can cross reference for accessibility purposes */
|
|
23
|
+
id?: string;
|
|
24
|
+
/** The name of the icon you want to use. */
|
|
25
|
+
name?: IconNames;
|
|
26
|
+
/** Sets the icon size. */
|
|
27
|
+
size?: IconSizes;
|
|
28
|
+
/** For accessibility purposes, the text passed in the `title` prop gets
|
|
29
|
+
* rendered in a `title` element in the SVG. This descriptive text is not
|
|
30
|
+
* visible but is needed for screenreaders to describe the graphic. */
|
|
31
|
+
title?: string;
|
|
32
|
+
/** FOR INTERNAL DS USE ONLY: the icon variant to display. */
|
|
33
|
+
type?: IconTypes;
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Renders SVG-based icons.
|
|
37
|
+
*/
|
|
38
|
+
export declare const Icon: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<IconProps & {
|
|
39
|
+
children?: React.ReactNode;
|
|
40
|
+
} & React.RefAttributes<HTMLDivElement & SVGSVGElement>>, {}>;
|
|
41
|
+
export default Icon;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const iconColors: 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"];
|
|
2
|
-
export declare const getIconColors: () => 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 default iconColors;
|
|
1
|
+
declare const iconColors: 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"];
|
|
2
|
+
export declare const getIconColors: () => 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 default iconColors;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
declare const iconNames: 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"];
|
|
2
|
-
export declare const getIconNames: () => 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"];
|
|
3
|
-
export default iconNames;
|
|
1
|
+
declare const iconNames: 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"];
|
|
2
|
+
export declare const getIconNames: () => 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"];
|
|
3
|
+
export default iconNames;
|