@nypl/design-system-react-components 1.6.0-vite-rc → 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/dist/design-system-react-components.cjs +100 -75
- package/dist/design-system-react-components.js +25200 -25817
- package/dist/src/components/Breadcrumbs/Breadcrumbs.d.ts +7 -1
- package/dist/src/components/Button/Button.d.ts +6 -3
- package/dist/src/components/ButtonGroup/ButtonGroup.d.ts +2 -1
- package/dist/src/components/Card/Card.d.ts +2 -2
- package/dist/src/components/DatePicker/DatePicker.d.ts +2 -1
- package/dist/src/components/FeedbackBox/FeedbackBox.d.ts +6 -5
- package/dist/src/components/Form/Form.d.ts +2 -2
- package/dist/src/components/Grid/SimpleGrid.d.ts +2 -1
- package/dist/src/components/Header/Header.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderLogin.d.ts +1 -1
- package/dist/src/components/Header/components/HeaderLoginButton.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderLowerNav.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderMobileIconNav.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderMobileNav.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderMobileNavButton.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderSearchButton.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderSearchForm.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderSitewideAlerts.d.ts +1 -2
- package/dist/src/components/Header/components/HeaderUpperNav.d.ts +1 -2
- package/dist/src/components/Header/context/headerContext.d.ts +1 -1
- package/dist/src/components/Heading/Heading.d.ts +4 -2
- package/dist/src/components/Hero/Hero.d.ts +2 -1
- package/dist/src/components/Icons/Icon.d.ts +7 -8
- package/dist/src/components/Icons/IconSvgs.d.ts +160 -53
- package/dist/src/components/Icons/iconVariables.d.ts +6 -0
- package/dist/src/components/Image/Image.d.ts +6 -3
- package/dist/src/components/Link/Link.d.ts +2 -1
- package/dist/src/components/Logo/LogoSvgs.d.ts +154 -51
- package/dist/src/components/Modal/Modal.d.ts +1 -1
- package/dist/src/components/MultiSelect/MultiSelect.d.ts +2 -1
- package/dist/src/components/MultiSelectGroup/MultiSelectGroup.d.ts +2 -0
- package/dist/src/components/Notification/Notification.d.ts +4 -3
- package/dist/src/components/ProgressIndicator/ProgressIndicator.d.ts +4 -2
- package/dist/src/components/Select/Select.d.ts +4 -2
- package/dist/src/components/SkeletonLoader/SkeletonLoader.d.ts +2 -1
- package/dist/src/components/StatusBadge/StatusBadge.d.ts +2 -1
- package/dist/src/components/StyleGuide/ColorCard.d.ts +298 -2
- package/dist/src/components/TagSet/TagSet.d.ts +1 -10
- package/dist/src/components/TagSet/TagSetExplore.d.ts +4 -3
- package/dist/src/components/TagSet/TagSetFilter.d.ts +1 -2
- package/dist/src/components/TagSet/TooltipWrapper.d.ts +9 -0
- package/dist/src/components/Template/Template.d.ts +11 -11
- package/dist/src/components/Text/Text.d.ts +2 -1
- package/dist/src/components/TextInput/TextInput.d.ts +2 -1
- package/dist/src/components/Toggle/Toggle.d.ts +2 -1
- package/dist/src/components/VideoPlayer/VideoPlayer.d.ts +4 -2
- package/dist/src/helpers/types.d.ts +2 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/theme/components/breadcrumb.d.ts +0 -13
- package/dist/src/theme/provider.d.ts +1 -1
- package/dist/src/utils/colorUtils.d.ts +5 -0
- package/package.json +21 -18
- package/dist/src/components/Icons/IconColors.d.ts +0 -3
- package/dist/src/components/Icons/IconNames.d.ts +0 -3
- /package/dist/{style.css → styles.css} +0 -0
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
2
|
+
export declare const breadcrumbTypeArray: readonly ["blogs", "booksAndMore", "brand", "education", "locations", "research", "whatsOn"];
|
|
3
|
+
export type BreadcrumbsTypes = typeof breadcrumbTypeArray[number];
|
|
3
4
|
export interface BreadcrumbsDataProps {
|
|
4
5
|
url: string;
|
|
5
6
|
text: string | React.ReactNode;
|
|
@@ -14,5 +15,10 @@ export interface BreadcrumbProps {
|
|
|
14
15
|
/** ID that other components can cross reference for accessibility purposes */
|
|
15
16
|
id?: string;
|
|
16
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
* The `Breadcrumbs` component is a navigation element that provides a
|
|
20
|
+
* breadcrumb path that reflects the site structure and allows a user to
|
|
21
|
+
* navigate to any page available in the breadcrumb hierarchy.
|
|
22
|
+
*/
|
|
17
23
|
export declare const Breadcrumbs: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<BreadcrumbProps & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
18
24
|
export default Breadcrumbs;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
2
|
+
export declare const buttonElementTypeArray: readonly ["submit", "button", "reset"];
|
|
3
|
+
export declare const buttonSizesArray: readonly ["small", "medium", "large"];
|
|
4
|
+
export declare const buttonTypesArray: readonly ["primary", "secondary", "text", "callout", "pill", "noBrand", "link"];
|
|
5
|
+
export type ButtonElementType = typeof buttonElementTypeArray[number];
|
|
6
|
+
export type ButtonSizes = typeof buttonSizesArray[number];
|
|
7
|
+
export type ButtonTypes = typeof buttonTypesArray[number];
|
|
5
8
|
interface ButtonProps {
|
|
6
9
|
/** The button variation to render based on the `ButtonTypes` type.*/
|
|
7
10
|
buttonType?: ButtonTypes;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LayoutTypes } from "../../helpers/types";
|
|
3
|
-
export
|
|
3
|
+
export declare const buttonGroupWidthsArray: readonly ["default", "full"];
|
|
4
|
+
export type ButtonGroupWidths = typeof buttonGroupWidthsArray[number];
|
|
4
5
|
interface ButtonGroupProps {
|
|
5
6
|
/** Sets the width to "default" (for "fit-content") or "full". */
|
|
6
7
|
buttonWidth?: ButtonGroupWidths;
|
|
@@ -47,8 +47,8 @@ export interface CardProps extends CardBaseProps, CardWrapperProps {
|
|
|
47
47
|
export declare const CardHeading: import("@chakra-ui/react").ChakraComponent<import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<import("../Heading/Heading").HeadingProps & {
|
|
48
48
|
children?: React.ReactNode;
|
|
49
49
|
} & React.RefAttributes<HTMLHeadingElement>>, {}>, {}>;
|
|
50
|
-
export declare const CardContent: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<{}>) => JSX.Element, {}>;
|
|
51
|
-
export declare const CardActions: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<CardActionsProps>) => JSX.Element, {}>;
|
|
50
|
+
export declare const CardContent: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<{}>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
51
|
+
export declare const CardActions: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<CardActionsProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
52
52
|
export declare const Card: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<CardProps & {
|
|
53
53
|
children?: React.ReactNode;
|
|
54
54
|
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
|
|
3
3
|
import { TextInputRefType } from "../TextInput/TextInput";
|
|
4
|
-
export
|
|
4
|
+
export declare const datePickerTypesArray: readonly ["full", "month", "year"];
|
|
5
|
+
export type DatePickerTypes = typeof datePickerTypesArray[number];
|
|
5
6
|
export interface FullDateType {
|
|
6
7
|
/** Date object that gets returned for the onChange
|
|
7
8
|
* function only for date ranges. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
|
|
2
|
+
export declare const feedbackBoxViewTypeArray: readonly ["form", "confirmation", "error"];
|
|
3
|
+
export type FeedbackBoxViewType = typeof feedbackBoxViewTypeArray[number];
|
|
3
4
|
interface FeedbackBoxProps {
|
|
4
5
|
/** Additional class name to add. */
|
|
5
6
|
className?: string;
|
|
@@ -14,9 +15,9 @@ interface FeedbackBoxProps {
|
|
|
14
15
|
hiddenFields?: any;
|
|
15
16
|
/** ID that other components can cross reference for accessibility purposes */
|
|
16
17
|
id?: string;
|
|
17
|
-
/** Toggles the invalid state for the email field. */
|
|
18
|
-
isInvalidComment?: boolean;
|
|
19
18
|
/** Toggles the invalid state for the comment field. */
|
|
19
|
+
isInvalidComment?: boolean;
|
|
20
|
+
/** Toggles the invalid state for the email field. */
|
|
20
21
|
isInvalidEmail?: boolean;
|
|
21
22
|
/** Only used for internal purposes. */
|
|
22
23
|
isOpen?: boolean;
|
|
@@ -43,7 +44,7 @@ interface FeedbackBoxProps {
|
|
|
43
44
|
* header title. */
|
|
44
45
|
title: string;
|
|
45
46
|
/** Used to specify what screen should be displayed. */
|
|
46
|
-
view?:
|
|
47
|
+
view?: FeedbackBoxViewType;
|
|
47
48
|
}
|
|
48
49
|
/**
|
|
49
50
|
* The `FeedbackBox` component renders a fixed-positioned button on the bottom
|
|
@@ -58,6 +59,6 @@ export declare function useFeedbackBox(): {
|
|
|
58
59
|
isOpen: boolean;
|
|
59
60
|
onClose: () => void;
|
|
60
61
|
onOpen: () => void;
|
|
61
|
-
FeedbackBox: import("@chakra-ui/react").ChakraComponent<(props: any) => JSX.Element, {}>;
|
|
62
|
+
FeedbackBox: import("@chakra-ui/react").ChakraComponent<(props: any) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
62
63
|
};
|
|
63
64
|
export default FeedbackBox;
|
|
@@ -21,9 +21,9 @@ export interface FormProps extends FormBaseProps {
|
|
|
21
21
|
onSubmit?: (e: React.FormEvent<any>) => void;
|
|
22
22
|
}
|
|
23
23
|
/** FormRow child-component */
|
|
24
|
-
export declare const FormRow: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<FormChildProps>) => JSX.Element, {}>;
|
|
24
|
+
export declare const FormRow: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<FormChildProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
25
25
|
/** FormField child-component */
|
|
26
|
-
export declare const FormField: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<FormChildProps>) => JSX.Element, {}>;
|
|
26
|
+
export declare const FormField: import("@chakra-ui/react").ChakraComponent<(props: React.PropsWithChildren<FormChildProps>) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
27
27
|
/** Main Form component */
|
|
28
28
|
export declare const Form: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<FormProps & {
|
|
29
29
|
children?: React.ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
2
|
+
export declare const gridGapsArray: readonly ["grid.xxs", "grid.xs", "grid.s", "grid.m", "grid.l", "grid.xl", "grid.xxl"];
|
|
3
|
+
export type GridGaps = typeof gridGapsArray[number];
|
|
3
4
|
export interface SimpleGridProps {
|
|
4
5
|
/** Additional class name. */
|
|
5
6
|
className?: string;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface GAOptionProps {
|
|
3
2
|
debug?: boolean;
|
|
4
3
|
standardImplementation?: boolean;
|
|
@@ -18,5 +17,5 @@ export interface HeaderProps {
|
|
|
18
17
|
* contains features for logging in, logging out, searching, and navigating
|
|
19
18
|
* the NYPL.org site.
|
|
20
19
|
*/
|
|
21
|
-
export declare const Header: import("@chakra-ui/react").ChakraComponent<({ fetchSitewideAlerts, gaOptions, isProduction, }: HeaderProps) => JSX.Element, {}>;
|
|
20
|
+
export declare const Header: import("@chakra-ui/react").ChakraComponent<({ fetchSitewideAlerts, gaOptions, isProduction, }: HeaderProps) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
22
21
|
export default Header;
|
|
@@ -8,5 +8,5 @@ export interface HeaderLoginProps {
|
|
|
8
8
|
* in and log out. When the patron is logged in, it will also display the patron's
|
|
9
9
|
* name, links to the catalogs, and a log out link.
|
|
10
10
|
*/
|
|
11
|
-
declare const HeaderLogin: import("@chakra-ui/react").ChakraComponent<({ catalogRef, isMobile }: HeaderLoginProps) => JSX.Element, {}>;
|
|
11
|
+
declare const HeaderLogin: import("@chakra-ui/react").ChakraComponent<({ catalogRef, isMobile }: HeaderLoginProps) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
12
12
|
export default HeaderLogin;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface HeaderLoginButtonProps {
|
|
3
2
|
isMobile?: boolean;
|
|
4
3
|
}
|
|
@@ -7,5 +6,5 @@ export interface HeaderLoginButtonProps {
|
|
|
7
6
|
* and keep focus trapped within the menu. Its display text will be "Log In"
|
|
8
7
|
* when the user is not logged in and "My Account" when the user is logged in.
|
|
9
8
|
*/
|
|
10
|
-
declare const HeaderLoginButton: import("@chakra-ui/react").ChakraComponent<({ isMobile }: HeaderLoginButtonProps) => JSX.Element, {}>;
|
|
9
|
+
declare const HeaderLoginButton: import("@chakra-ui/react").ChakraComponent<({ isMobile }: HeaderLoginButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
11
10
|
export default HeaderLoginButton;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* This component renders the navigational list of links used to
|
|
4
3
|
* navigate to different landing pages on NYPL.org.
|
|
5
4
|
*/
|
|
6
|
-
declare const HeaderLowerNav: import("@chakra-ui/react").ChakraComponent<() => JSX.Element, {}>;
|
|
5
|
+
declare const HeaderLowerNav: import("@chakra-ui/react").ChakraComponent<() => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
7
6
|
export default HeaderLowerNav;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* This component renders the mobile list of icon buttons for
|
|
4
3
|
* logging in, searching, and navigating on NYPL.org.
|
|
5
4
|
*/
|
|
6
|
-
declare const HeaderMobileIconNav: import("@chakra-ui/react").ChakraComponent<() => JSX.Element, {}>;
|
|
5
|
+
declare const HeaderMobileIconNav: import("@chakra-ui/react").ChakraComponent<() => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
7
6
|
export default HeaderMobileIconNav;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* This component renders the navigational list of links used to navigate
|
|
4
3
|
* NYPL.org for mobile devices.
|
|
5
4
|
*/
|
|
6
|
-
declare const HeaderMobileNav: import("@chakra-ui/react").ChakraComponent<() => JSX.Element, {}>;
|
|
5
|
+
declare const HeaderMobileNav: import("@chakra-ui/react").ChakraComponent<() => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
7
6
|
export default HeaderMobileNav;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* This is the button that will render the navigational list of links
|
|
4
3
|
* when it is clicked and keep focus trapped within the menu.
|
|
5
4
|
*/
|
|
6
|
-
declare const HeaderMobileNavButton: import("@chakra-ui/react").ChakraComponent<() => JSX.Element, {}>;
|
|
5
|
+
declare const HeaderMobileNavButton: import("@chakra-ui/react").ChakraComponent<() => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
7
6
|
export default HeaderMobileNavButton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface HeaderSearchButtonProps {
|
|
3
2
|
isMobile?: boolean;
|
|
4
3
|
}
|
|
@@ -6,5 +5,5 @@ export interface HeaderSearchButtonProps {
|
|
|
6
5
|
* This is the button that will render the search form when it is clicked and
|
|
7
6
|
* keep focus trapped within the menu.
|
|
8
7
|
*/
|
|
9
|
-
declare const HeaderSearchButton: import("@chakra-ui/react").ChakraComponent<({ isMobile }: HeaderSearchButtonProps) => JSX.Element, {}>;
|
|
8
|
+
declare const HeaderSearchButton: import("@chakra-ui/react").ChakraComponent<({ isMobile }: HeaderSearchButtonProps) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
10
9
|
export default HeaderSearchButton;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export interface HeaderSearchFormProps {
|
|
3
2
|
isMobile?: boolean;
|
|
4
3
|
}
|
|
@@ -7,5 +6,5 @@ export type SearchOptionType = "circulatingCatalog" | "researchCatalog" | "websi
|
|
|
7
6
|
* Displays the search form for the Header's search interface. On mobile, two
|
|
8
7
|
* buttons are displayed and on desktop, two radio inputs are displayed.
|
|
9
8
|
*/
|
|
10
|
-
declare const HeaderSearchForm: import("@chakra-ui/react").ChakraComponent<({ isMobile }: HeaderSearchFormProps) => JSX.Element, {}>;
|
|
9
|
+
declare const HeaderSearchForm: import("@chakra-ui/react").ChakraComponent<({ isMobile }: HeaderSearchFormProps) => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
11
10
|
export default HeaderSearchForm;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* The HeaderSitewideAlerts component makes an API request to an NYPL API
|
|
4
3
|
* endpoint to fetch NYPL sitewide alerts. While this component can be used in
|
|
5
4
|
* isolation, it is already rendered in the DS Header component.
|
|
6
5
|
*/
|
|
7
|
-
export declare const HeaderSitewideAlerts: import("@chakra-ui/react").ChakraComponent<() => JSX.Element, {}>;
|
|
6
|
+
export declare const HeaderSitewideAlerts: import("@chakra-ui/react").ChakraComponent<() => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
8
7
|
export default HeaderSitewideAlerts;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
/**
|
|
3
2
|
* This renders the navigational list of links for logging in, subscribing
|
|
4
3
|
* to the email service, going to the Locations page, getting a Library card,
|
|
5
4
|
* donating, and shopping at NYPL.
|
|
6
5
|
*/
|
|
7
|
-
declare const HeaderUpperNav: import("@chakra-ui/react").ChakraComponent<() => JSX.Element, {}>;
|
|
6
|
+
declare const HeaderUpperNav: import("@chakra-ui/react").ChakraComponent<() => import("@emotion/react/jsx-runtime").JSX.Element, {}>;
|
|
8
7
|
export default HeaderUpperNav;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
2
|
+
export declare const headingSizesArray: readonly ["primary", "secondary", "tertiary", "callout"];
|
|
3
|
+
export declare const headingLevelsArray: readonly ["one", "two", "three", "four", "five", "six"];
|
|
4
|
+
export type HeadingSizes = typeof headingSizesArray[number];
|
|
5
|
+
export type HeadingLevels = typeof headingLevelsArray[number];
|
|
4
6
|
export interface HeadingProps {
|
|
5
7
|
/** Optional className that appears in addition to `heading` */
|
|
6
8
|
className?: string;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { ComponentImageProps } from "../Image/Image";
|
|
3
|
-
export
|
|
3
|
+
export declare const heroTypesArray: readonly ["primary", "secondary", "secondaryBooksAndMore", "secondaryLocations", "secondaryResearch", "secondaryWhatsOn", "tertiary", "campaign", "fiftyFifty"];
|
|
4
|
+
export type HeroTypes = typeof heroTypesArray[number];
|
|
4
5
|
export declare const heroSecondaryTypes: string[];
|
|
5
6
|
export interface HeroImageProps extends Pick<ComponentImageProps, "alt" | "src"> {
|
|
6
7
|
}
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
export type
|
|
5
|
-
export type
|
|
6
|
-
export type
|
|
7
|
-
export type
|
|
8
|
-
export type
|
|
9
|
-
export type IconTypes = "default" | "breadcrumbs";
|
|
2
|
+
import { iconAlignArray, iconColorsArray, iconNamesArray, iconRotationTypesArray, iconSizesArray, iconTypesArray } from "./iconVariables";
|
|
3
|
+
export type IconAlign = typeof iconAlignArray[number];
|
|
4
|
+
export type IconColors = typeof iconColorsArray[number];
|
|
5
|
+
export type IconNames = typeof iconNamesArray[number];
|
|
6
|
+
export type IconRotationTypes = typeof iconRotationTypesArray[number];
|
|
7
|
+
export type IconSizes = typeof iconSizesArray[number];
|
|
8
|
+
export type IconTypes = typeof iconTypesArray[number];
|
|
10
9
|
export interface IconProps {
|
|
11
10
|
/** Aligns the icon. */
|
|
12
11
|
align?: IconAlign;
|
|
@@ -1,56 +1,163 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
declare const _default: {
|
|
2
|
-
accessibilityFull:
|
|
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
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
+
}>;
|
|
55
162
|
};
|
|
56
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,7 +1,10 @@
|
|
|
1
1
|
import React, { ImgHTMLAttributes } from "react";
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
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];
|
|
5
8
|
export interface ComponentImageProps extends Partial<HTMLImageElement> {
|
|
6
9
|
/** String value used to populate the `alt` attribute of the internal `Image`
|
|
7
10
|
* component's `img` element. @NOTE if an image is used, this value must be passed. */
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React from "react";
|
|
2
|
-
export
|
|
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];
|
|
3
4
|
export interface LinkProps {
|
|
4
5
|
/** Any child node passed to the component. */
|
|
5
6
|
children: React.ReactNode;
|