@nypl/design-system-react-components 1.0.4 → 1.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +44 -0
- package/dist/components/Accordion/Accordion.d.ts +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.d.ts +2 -2
- package/dist/components/Button/Button.d.ts +4 -2
- package/dist/components/ButtonGroup/ButtonGroup.d.ts +4 -2
- package/dist/components/Card/Card.d.ts +7 -3
- package/dist/components/Checkbox/Checkbox.d.ts +1 -1
- package/dist/components/CheckboxGroup/CheckboxGroup.d.ts +2 -2
- package/dist/components/ComponentWrapper/ComponentWrapper.d.ts +4 -2
- package/dist/components/Fieldset/Fieldset.d.ts +3 -1
- package/dist/components/Form/Form.d.ts +4 -2
- package/dist/components/Grid/SimpleGrid.d.ts +4 -2
- package/dist/components/Heading/Heading.d.ts +4 -2
- package/dist/components/HelperErrorText/HelperErrorText.d.ts +2 -2
- package/dist/components/Hero/Hero.d.ts +4 -2
- package/dist/components/HorizontalRule/HorizontalRule.d.ts +2 -2
- package/dist/components/Icons/Icon.d.ts +5 -3
- package/dist/components/Icons/IconSvgs.d.ts +13 -0
- package/dist/components/Image/Image.d.ts +6 -2
- package/dist/components/Label/Label.d.ts +4 -2
- package/dist/components/Link/Link.d.ts +2 -2
- package/dist/components/List/List.d.ts +4 -2
- package/dist/components/Logo/Logo.d.ts +4 -2
- package/dist/components/Modal/Modal.d.ts +4 -2
- package/dist/components/Notification/Notification.d.ts +1 -1
- package/dist/components/Pagination/Pagination.d.ts +2 -2
- package/dist/components/ProgressIndicator/ProgressIndicator.d.ts +2 -2
- package/dist/components/Radio/Radio.d.ts +1 -1
- package/dist/components/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/components/SearchBar/SearchBar.d.ts +8 -3
- package/dist/components/SkeletonLoader/SkeletonLoader.d.ts +4 -2
- package/dist/components/SkipNavigation/SkipNavigation.d.ts +4 -2
- package/dist/components/Slider/Slider.d.ts +4 -2
- package/dist/components/StatusBadge/StatusBadge.d.ts +4 -2
- package/dist/components/StructuredContent/StructuredContent.d.ts +4 -2
- package/dist/components/StyleGuide/ColorCard.d.ts +25 -7
- package/dist/components/Table/Table.d.ts +4 -2
- package/dist/components/Tabs/Tabs.d.ts +4 -2
- package/dist/components/Template/Template.d.ts +7 -3
- package/dist/components/Text/Text.d.ts +4 -2
- package/dist/components/TextInput/TextInput.d.ts +1 -1
- package/dist/components/Toggle/Toggle.d.ts +1 -1
- package/dist/components/VideoPlayer/VideoPlayer.d.ts +4 -2
- package/dist/design-system-react-components.cjs.development.js +2438 -1834
- package/dist/design-system-react-components.cjs.development.js.map +1 -1
- package/dist/design-system-react-components.cjs.production.min.js +1 -1
- package/dist/design-system-react-components.cjs.production.min.js.map +1 -1
- package/dist/design-system-react-components.esm.js +2440 -1837
- package/dist/design-system-react-components.esm.js.map +1 -1
- package/dist/hooks/useCarouselStyles.d.ts +1 -1
- package/dist/hooks/useNYPLBreakpoints.d.ts +5 -5
- package/dist/index.d.ts +1 -0
- package/dist/styles.css +1 -1
- package/dist/theme/components/breadcrumb.d.ts +3 -3
- package/dist/theme/components/card.d.ts +4 -4
- package/dist/theme/components/checkbox.d.ts +2 -3
- package/dist/theme/components/customTable.d.ts +43 -43
- package/dist/theme/components/global.d.ts +2 -2
- package/dist/theme/components/globalMixins.d.ts +1 -4
- package/dist/theme/components/heading.d.ts +30 -30
- package/dist/theme/components/hero.d.ts +163 -119
- package/dist/theme/components/horizontalRule.d.ts +2 -2
- package/dist/theme/components/icon.d.ts +4762 -4762
- package/dist/theme/components/image.d.ts +42 -42
- package/dist/theme/components/list.d.ts +13 -13
- package/dist/theme/components/notification.d.ts +4 -4
- package/dist/theme/components/radio.d.ts +4 -2
- package/dist/theme/components/select.d.ts +2 -2
- package/dist/theme/components/skeletonLoader.d.ts +1 -1
- package/dist/theme/components/slider.d.ts +6 -6
- package/dist/theme/components/structuredContent.d.ts +33 -33
- package/dist/theme/components/tabs.d.ts +9 -9
- package/dist/theme/components/template.d.ts +7 -7
- package/dist/theme/components/toggle.d.ts +2 -2
- package/package.json +13 -14
|
@@ -1,12 +1,30 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
2
|
export interface ColorCardProps {
|
|
3
|
-
/** backgroundColor of the color card */
|
|
3
|
+
/** The backgroundColor of the color card. */
|
|
4
4
|
backgroundColor: string;
|
|
5
|
-
/** name of
|
|
5
|
+
/** The name of a color's javascript theme object. */
|
|
6
6
|
colorName: string;
|
|
7
|
+
/** The name of the color that the current color is based on. */
|
|
8
|
+
colorSource: string;
|
|
9
|
+
/** Contrast and WCAG compliance data related to the color black when used
|
|
10
|
+
* with the current color. */
|
|
11
|
+
dataBlack: string[];
|
|
12
|
+
/** Contrast and WCAG compliance data related to the color white when used
|
|
13
|
+
* with the current color. */
|
|
14
|
+
dataWhite: string[];
|
|
15
|
+
/** The color to use for text in the color card. */
|
|
16
|
+
textColor: string;
|
|
7
17
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
18
|
+
export interface DataTableProps {
|
|
19
|
+
/** Contrast and WCAG compliance data related to the color black when used
|
|
20
|
+
* with the current color. */
|
|
21
|
+
dataBlack: string[];
|
|
22
|
+
/** Contrast and WCAG compliance data related to the color white when used
|
|
23
|
+
* with the current color. */
|
|
24
|
+
dataWhite: string[];
|
|
25
|
+
/** color to use for text in color card */
|
|
26
|
+
textColor: string;
|
|
27
|
+
}
|
|
28
|
+
export declare const DataTable: (props: React.PropsWithChildren<DataTableProps>) => JSX.Element;
|
|
29
|
+
export declare const ColorCard: (props: React.PropsWithChildren<ColorCardProps>) => JSX.Element;
|
|
30
|
+
export default ColorCard;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface TableProps {
|
|
3
3
|
/** Additional class name for the `Table` component. */
|
|
4
4
|
className?: string;
|
|
@@ -26,5 +26,7 @@ export interface TableProps {
|
|
|
26
26
|
* Basic `Table` component used to organize and display tabular data in
|
|
27
27
|
* rows and columns.
|
|
28
28
|
*/
|
|
29
|
-
export declare const Table: import("@chakra-ui/react").ChakraComponent<
|
|
29
|
+
export declare const Table: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<TableProps & {
|
|
30
|
+
children?: React.ReactNode;
|
|
31
|
+
} & React.RefAttributes<HTMLTableElement>>, {}>;
|
|
30
32
|
export default Table;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Tab, TabList, TabPanels, TabPanel } from "@chakra-ui/react";
|
|
2
|
-
import
|
|
2
|
+
import React from "react";
|
|
3
3
|
export interface TabsDataProps {
|
|
4
4
|
label: string;
|
|
5
5
|
content: string | React.ReactNode;
|
|
@@ -21,6 +21,8 @@ export interface TabsProps {
|
|
|
21
21
|
* Renders Chakra's `Tab` component with specific variants, props,
|
|
22
22
|
* and controlled styling.
|
|
23
23
|
*/
|
|
24
|
-
export declare const Tabs: import("@chakra-ui/react").ChakraComponent<
|
|
24
|
+
export declare const Tabs: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<TabsProps & {
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
25
27
|
export { TabList, Tab, TabPanels, TabPanel };
|
|
26
28
|
export default Tabs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export interface TemplateProps {
|
|
3
3
|
}
|
|
4
4
|
export interface TemplateHeaderProps {
|
|
@@ -45,7 +45,9 @@ export interface TemplateAppContainerProps extends TemplateFooterProps, Template
|
|
|
45
45
|
* The main top-level parent component that wraps all template-related
|
|
46
46
|
* components.
|
|
47
47
|
*/
|
|
48
|
-
declare const Template: import("@chakra-ui/react").ChakraComponent<
|
|
48
|
+
declare const Template: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<TemplateProps & {
|
|
49
|
+
children?: React.ReactNode;
|
|
50
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
49
51
|
/**
|
|
50
52
|
* This optional component renders its children from edge-to-edge and should
|
|
51
53
|
* be used for alerts or notifications that are typically site-wide. This must
|
|
@@ -121,6 +123,8 @@ declare const TemplateFooter: ({ children, renderFooterElement, }: React.PropsWi
|
|
|
121
123
|
* be rendered. For example, if you want to render content in the
|
|
122
124
|
* `TemplateContentPrimary` section, then pass it as a prop to `contentPrimary`.
|
|
123
125
|
*/
|
|
124
|
-
export declare const TemplateAppContainer: import("@chakra-ui/react").ChakraComponent<
|
|
126
|
+
export declare const TemplateAppContainer: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<TemplateAppContainerProps & {
|
|
127
|
+
children?: React.ReactNode;
|
|
128
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
125
129
|
export { Template, TemplateAboveHeader, TemplateHeader, TemplateBreakout, TemplateContent, TemplateContentTop, TemplateContentPrimary, TemplateContentSidebar, TemplateFooter, };
|
|
126
130
|
export default TemplateAppContainer;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
export declare type TextSizes = "default" | "caption" | "tag" | "mini";
|
|
3
3
|
export interface TextProps {
|
|
4
4
|
/** Additional class name to render in the `Text` component. */
|
|
@@ -18,5 +18,7 @@ export interface TextProps {
|
|
|
18
18
|
/** Optional prop to control the text styling */
|
|
19
19
|
size?: TextSizes;
|
|
20
20
|
}
|
|
21
|
-
export declare const Text: import("@chakra-ui/react").ChakraComponent<
|
|
21
|
+
export declare const Text: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<TextProps & {
|
|
22
|
+
children?: React.ReactNode;
|
|
23
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
22
24
|
export default Text;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
|
|
3
3
|
export declare type TextInputTypes = "email" | "hidden" | "number" | "password" | "text" | "textarea" | "tel" | "url";
|
|
4
4
|
export declare const TextInputFormats: {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import React from "react";
|
|
2
2
|
import { HelperErrorTextType } from "../HelperErrorText/HelperErrorText";
|
|
3
3
|
export declare type VideoPlayerTypes = "vimeo" | "youtube";
|
|
4
4
|
export declare type VideoPlayerAspectRatios = "fourByThree" | "sixteenByNine" | "square";
|
|
@@ -34,5 +34,7 @@ export interface VideoPlayerProps {
|
|
|
34
34
|
/** Required. Used to specify which video service is being used. */
|
|
35
35
|
videoType?: VideoPlayerTypes;
|
|
36
36
|
}
|
|
37
|
-
export declare const VideoPlayer: import("@chakra-ui/react").ChakraComponent<
|
|
37
|
+
export declare const VideoPlayer: import("@chakra-ui/react").ChakraComponent<React.ForwardRefExoticComponent<VideoPlayerProps & {
|
|
38
|
+
children?: React.ReactNode;
|
|
39
|
+
} & React.RefAttributes<HTMLDivElement>>, {}>;
|
|
38
40
|
export default VideoPlayer;
|