@cfpb/design-system-react 0.0.11 → 0.0.13
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 +8 -10
- package/dist/assets/{style.css → design-system-react.css} +1 -1
- package/dist/index.d.ts +2 -43
- package/dist/index.js +7 -60
- package/dist/index.mjs +1738 -6583
- package/dist/postcss/plugins/process-icons.d.ts +6 -0
- package/dist/{components/Alert/AlertFieldLevel.d.ts → src/components/Alert/alert-field-level.d.ts} +1 -1
- package/dist/src/components/Alert/alert-link.d.ts +7 -0
- package/dist/{components/Alert/Alert.d.ts → src/components/Alert/alert.d.ts} +3 -3
- package/dist/src/components/Alert/alert.stories.d.ts +16 -0
- package/dist/src/components/Alert/alert.test.d.ts +0 -0
- package/dist/{components/Banner/BannerLanguageLink.d.ts → src/components/Banner/banner-language-link.d.ts} +1 -1
- package/dist/{components/Banner/Banner.d.ts → src/components/Banner/banner.d.ts} +1 -0
- package/dist/src/components/Banner/banner.stories.d.ts +8 -0
- package/dist/src/components/Banner/banner.test.d.ts +0 -0
- package/dist/{components/Breadcrumb/Breadcrumb.d.ts → src/components/Breadcrumb/breadcrumb.d.ts} +1 -1
- package/dist/src/components/Breadcrumb/breadcrumb.stories.d.ts +6 -0
- package/dist/src/components/Breadcrumb/breadcrumb.test.d.ts +0 -0
- package/dist/{components/Buttons/ButtonGroup.d.ts → src/components/Buttons/button-group.d.ts} +1 -1
- package/dist/src/components/Buttons/button-group.test.d.ts +0 -0
- package/dist/{components/Buttons/Button.d.ts → src/components/Buttons/button.d.ts} +2 -2
- package/dist/src/components/Buttons/button.test.d.ts +0 -0
- package/dist/src/components/Buttons/buttons.stories.d.ts +19 -0
- package/dist/src/components/Checkbox/checkbox-large.stories.d.ts +15 -0
- package/dist/{components/Checkbox/Checkbox.d.ts → src/components/Checkbox/checkbox.d.ts} +5 -5
- package/dist/src/components/Checkbox/checkbox.stories.d.ts +18 -0
- package/dist/src/components/Checkbox/checkbox.test.d.ts +0 -0
- package/dist/src/components/Checkbox/checkbox.utils.d.ts +6 -0
- package/dist/{components/Divider/Divider.d.ts → src/components/Divider/divider.d.ts} +1 -2
- package/dist/src/components/Divider/divider.stories.d.ts +7 -0
- package/dist/src/components/Divider/divider.test.d.ts +0 -0
- package/dist/{components/Expandable/ExpandableGroup.d.ts → src/components/Expandable/expandable-group.d.ts} +2 -3
- package/dist/{components/Expandable/Expandable.d.ts → src/components/Expandable/expandable.d.ts} +1 -2
- package/dist/src/components/Expandable/expandable.stories.d.ts +10 -0
- package/dist/src/components/Expandable/expandable.test.d.ts +0 -0
- package/dist/{components/Footer/BackToTop.d.ts → src/components/Footer/back-to-top.d.ts} +1 -0
- package/dist/{components/Footer/FooterBanner.d.ts → src/components/Footer/footer-banner.d.ts} +1 -0
- package/dist/{components/Footer/FooterCfGov.d.ts → src/components/Footer/footer-cf-gov.d.ts} +2 -1
- package/dist/{components/Footer/FooterLinks.d.ts → src/components/Footer/footer-links.d.ts} +3 -2
- package/dist/src/components/Footer/footer-links.test.d.ts +1 -0
- package/dist/{components/Footer/Footer.d.ts → src/components/Footer/footer.d.ts} +1 -0
- package/dist/src/components/Footer/footer.stories.d.ts +7 -0
- package/dist/src/components/Footer/footer.test.d.ts +1 -0
- package/dist/{components/Grid/GridColumn.d.ts → src/components/Grid/grid-column.d.ts} +1 -0
- package/dist/{components/Grid/GridRow.d.ts → src/components/Grid/grid-row.d.ts} +1 -0
- package/dist/{components/Grid/GridWrapper.d.ts → src/components/Grid/grid-wrapper.d.ts} +1 -0
- package/dist/src/components/Grid/grid.stories.d.ts +9 -0
- package/dist/src/components/Grid/grid.test.d.ts +0 -0
- package/dist/{components → src/components}/Grid/index.d.ts +3 -3
- package/dist/{components/Headings/Heading.d.ts → src/components/Headings/heading.d.ts} +1 -0
- package/dist/src/components/Headings/heading.test.d.ts +0 -0
- package/dist/src/components/Headings/headings.stories.d.ts +18 -0
- package/dist/{components/HelperText/HelperText.d.ts → src/components/HelperText/helper-text.d.ts} +1 -1
- package/dist/src/components/Hero/hero-image.d.ts +7 -0
- package/dist/{components/Hero/Hero.d.ts → src/components/Hero/hero.d.ts} +2 -1
- package/dist/src/components/Hero/hero.stories.d.ts +10 -0
- package/dist/src/components/Hero/hero.test.d.ts +1 -0
- package/dist/{components/Hero/useBackgroundImage.d.ts → src/components/Hero/use-background-image.d.ts} +1 -1
- package/dist/{components/Icon/Icon.d.ts → src/components/Icon/icon.d.ts} +2 -1
- package/dist/src/components/Icon/icon.stories.d.ts +17 -0
- package/dist/src/components/Icon/icon.test.d.ts +0 -0
- package/dist/{components/Label/Label.d.ts → src/components/Label/label.d.ts} +2 -1
- package/dist/src/components/Label/label.stories.d.ts +7 -0
- package/dist/src/components/Label/label.test.d.ts +0 -0
- package/dist/{components/Layout/LayoutContent.d.ts → src/components/Layout/layout-content.d.ts} +2 -2
- package/dist/src/components/Layout/layout-content.stories.d.ts +6 -0
- package/dist/{components/Layout/LayoutMain.d.ts → src/components/Layout/layout-main.d.ts} +3 -3
- package/dist/src/components/Layout/layout-main.stories.d.ts +7 -0
- package/dist/{components/Layout/LayoutSidebar.d.ts → src/components/Layout/layout-sidebar.d.ts} +2 -2
- package/dist/src/components/Layout/layout-sidebar.stories.d.ts +6 -0
- package/dist/{components/Layout/LayoutWrapper.d.ts → src/components/Layout/layout-wrapper.d.ts} +2 -2
- package/dist/src/components/Layout/layout-wrapper.stories.d.ts +6 -0
- package/dist/src/components/Layout/layout.d.ts +7 -0
- package/dist/src/components/Link/link.d.ts +50 -0
- package/dist/src/components/Link/link.stories.d.ts +11 -0
- package/dist/src/components/Link/link.test.d.ts +0 -0
- package/dist/{components/List/ListItem.d.ts → src/components/List/list-item.d.ts} +2 -2
- package/dist/{components/List/List.d.ts → src/components/List/list.d.ts} +2 -1
- package/dist/src/components/List/list.stories.d.ts +10 -0
- package/dist/src/components/List/list.test.d.ts +0 -0
- package/dist/{components/Navbar/Navbar.d.ts → src/components/Navbar/navbar.d.ts} +2 -1
- package/dist/src/components/Navbar/navbar.stories.d.ts +8 -0
- package/dist/{components/PageHeader/PageHeader.d.ts → src/components/PageHeader/page-header.d.ts} +3 -2
- package/dist/src/components/PageHeader/page-header.stories.d.ts +7 -0
- package/dist/src/components/PageHeader/page-header.test.d.ts +0 -0
- package/dist/{components/Pagination/Pagination.d.ts → src/components/Pagination/pagination.d.ts} +2 -2
- package/dist/src/components/Pagination/pagination.stories.d.ts +20 -0
- package/dist/src/components/Pagination/pagination.story-utils.d.ts +2 -0
- package/dist/src/components/Pagination/pagination.test.d.ts +0 -0
- package/dist/{components/Pagination/usePagination.d.ts → src/components/Pagination/use-pagination.d.ts} +3 -3
- package/dist/src/components/Pagination/use-pagination.test.d.ts +0 -0
- package/dist/{components/Paragraph/Paragraph.d.ts → src/components/Paragraph/paragraph.d.ts} +1 -0
- package/dist/src/components/Paragraph/paragraph.test.d.ts +0 -0
- package/dist/src/components/Paragraph/paragraphs.stories.d.ts +17 -0
- package/dist/{components/RadioButton/RadioButton.d.ts → src/components/RadioButton/radio-button.d.ts} +2 -3
- package/dist/src/components/RadioButton/radio-button.stories.d.ts +14 -0
- package/dist/src/components/RadioButton/radio-button.test.d.ts +0 -0
- package/dist/src/components/ResponsiveMenu/responsive-menu.d.ts +12 -0
- package/dist/src/components/ResponsiveMenu/responsive-menu.stories.d.ts +8 -0
- package/dist/src/components/ResponsiveMenu/responsive-menu.test.d.ts +0 -0
- package/dist/{components/Select/SelectMulti.d.ts → src/components/Select/select-multi.d.ts} +2 -1
- package/dist/src/components/Select/select-multi.stories.d.ts +6 -0
- package/dist/{components/Select/SelectSingle.d.ts → src/components/Select/select-single.d.ts} +2 -1
- package/dist/src/components/Select/select-tag.d.ts +11 -0
- package/dist/{components/Select/selectUtils.d.ts → src/components/Select/select-utils.d.ts} +2 -1
- package/dist/{components/Select/Select.d.ts → src/components/Select/select.d.ts} +1 -1
- package/dist/src/components/Select/select.stories.d.ts +9 -0
- package/dist/src/components/Select/select.test.d.ts +0 -0
- package/dist/src/components/Select/test-utils.d.ts +9 -0
- package/dist/src/components/SkipNav/skip-nav.d.ts +5 -0
- package/dist/{components/Summaries/Summary.d.ts → src/components/Summaries/summary.d.ts} +1 -2
- package/dist/src/components/Summaries/summary.stories.d.ts +8 -0
- package/dist/src/components/Table/table-utils.d.ts +4 -0
- package/dist/src/components/Table/table.d.ts +33 -0
- package/dist/src/components/Table/table.stories.d.ts +13 -0
- package/dist/src/components/Table/table.test.d.ts +0 -0
- package/dist/src/components/Tagline/tagline.d.ts +8 -0
- package/dist/src/components/Tagline/tagline.stories.d.ts +7 -0
- package/dist/src/components/Tagline/tagline.test.d.ts +0 -0
- package/dist/src/components/TextInput/text-area.d.ts +14 -0
- package/dist/src/components/TextInput/text-area.stories.d.ts +13 -0
- package/dist/src/components/TextInput/text-area.test.d.ts +0 -0
- package/dist/{components/TextInput/TextInput.d.ts → src/components/TextInput/text-input.d.ts} +3 -4
- package/dist/src/components/TextInput/text-input.stories.d.ts +14 -0
- package/dist/src/components/TextInput/text-input.test.d.ts +0 -0
- package/dist/src/components/TextIntroduction/test-helpers.d.ts +19 -0
- package/dist/{components/TextIntroduction/TextIntroduction.d.ts → src/components/TextIntroduction/text-introduction.d.ts} +7 -7
- package/dist/src/components/TextIntroduction/text-introduction.stories.d.ts +15 -0
- package/dist/src/components/TextIntroduction/text-introduction.test.d.ts +0 -0
- package/dist/{components/Well/Well.d.ts → src/components/Well/well.d.ts} +2 -1
- package/dist/src/components/Well/well.stories.d.ts +7 -0
- package/dist/src/components/Well/well.test.d.ts +0 -0
- package/dist/{hooks/useIconSvg.d.ts → src/hooks/use-icon-svg.d.ts} +1 -1
- package/dist/src/index.d.ts +41 -0
- package/dist/{types/jsxElement.d.ts → src/types/jsx-element.d.ts} +1 -0
- package/dist/src/utils/sleep.d.ts +1 -0
- package/dist/vite/plugins/svg-raw-loader.d.ts +2 -0
- package/package.json +68 -93
- package/dist/components/Alert/AlertLink.d.ts +0 -6
- package/dist/components/Dropdown/Dropdown.d.ts +0 -11
- package/dist/components/Dropdown/Dropdown.types.d.ts +0 -20
- package/dist/components/Dropdown/DropdownInputWithCheckbox.d.ts +0 -10
- package/dist/components/Dropdown/DropdownPills.d.ts +0 -26
- package/dist/components/Dropdown/styles.d.ts +0 -2
- package/dist/components/Dropdown/utils.d.ts +0 -17
- package/dist/components/Hero/HeroImage.d.ts +0 -6
- package/dist/components/Link/Link.d.ts +0 -21
- package/dist/components/ResponsiveMenu/ResponsiveMenu.d.ts +0 -12
- package/dist/components/SkipNav/SkipNav.d.ts +0 -5
- package/dist/components/Table/Table.d.ts +0 -34
- package/dist/components/Table/tableUtils.d.ts +0 -3
- package/dist/components/Tagline/Tagline.d.ts +0 -7
- package/dist/components/TextInput/TextArea.d.ts +0 -14
- /package/dist/{components/Icon/iconLists.d.ts → src/components/Icon/icon-lists.d.ts} +0 -0
- /package/dist/{components/Pagination/paginationConstants.d.ts → src/components/Pagination/pagination-constants.d.ts} +0 -0
- /package/dist/{components/TextInput/TextInputStatus.d.ts → src/components/TextInput/text-input-status.d.ts} +0 -0
- /package/dist/{types/headingLevel.d.ts → src/types/heading-level.d.ts} +0 -0
- /package/dist/{types/WidthPercent.d.ts → src/types/width-percent.d.ts} +0 -0
- /package/dist/{utils/noOp.d.ts → src/utils/no-op.d.ts} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { HeadingLevel } from '../../types/heading-level';
|
|
2
|
+
import { AlertFieldLevelType } from './alert-field-level';
|
|
3
|
+
import { AlertLinkProperties } from './alert-link';
|
|
4
4
|
export declare const iconByType: Record<string, {
|
|
5
5
|
name: string;
|
|
6
6
|
withBg: boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Alert } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Alert>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Information: Story;
|
|
7
|
+
export declare const InformationWithMessageAndExplanation: Story;
|
|
8
|
+
export declare const InformationWithOnlyExplanation: Story;
|
|
9
|
+
export declare const InformationWithLinks: Story;
|
|
10
|
+
export declare const Success: Story;
|
|
11
|
+
export declare const Warning: Story;
|
|
12
|
+
export declare const Error: Story;
|
|
13
|
+
export declare const InProgress: Story;
|
|
14
|
+
export declare const SuccessFieldLevel: Story;
|
|
15
|
+
export declare const WarningFieldLevel: Story;
|
|
16
|
+
export declare const ErrorFieldLevel: Story;
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSXElement } from '../../types/jsx-element';
|
|
2
2
|
export type LanguageDefinition = Record<string | symbol, Record<string | symbol, string>>;
|
|
3
3
|
export declare const LanguageMap: LanguageDefinition;
|
|
4
4
|
export declare const AllLanguageCodes: string[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Banner } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Banner>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const USGovBanner: Story;
|
|
7
|
+
export declare const USGovBannerWithCFGovLinks: Story;
|
|
8
|
+
export declare const USGovBannerWithLinks: Story;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
interface ButtonProperties extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
3
3
|
/**
|
|
4
4
|
* Button contents
|
|
@@ -32,5 +32,5 @@ interface ButtonProperties extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
32
32
|
/**
|
|
33
33
|
* Primary UI component for user interaction
|
|
34
34
|
*/
|
|
35
|
-
export declare const Button: import(
|
|
35
|
+
export declare const Button: import('react').ForwardRefExoticComponent<ButtonProperties & import('react').RefAttributes<HTMLButtonElement>>;
|
|
36
36
|
export {};
|
|
File without changes
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Button } from '../../index';
|
|
3
|
+
/**
|
|
4
|
+
Buttons are interactive elements that signal actions. They should be used sparingly as each additional button on a page reduces the visual prominence of a call to action. In contrast, links should lead users to another page or further information.
|
|
5
|
+
|
|
6
|
+
Source: <a href="https://cfpb.github.io/design-system/components/buttons" target="_blank">https://cfpb.github.io/design-system/components/buttons</a>
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: Meta<typeof Button>;
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const Primary: Story;
|
|
12
|
+
export declare const Secondary: Story;
|
|
13
|
+
export declare const Disabled: Story;
|
|
14
|
+
export declare const Destructive: Story;
|
|
15
|
+
export declare const StaticIconButtons: Story;
|
|
16
|
+
export declare const AnimatedIconButtons: Story;
|
|
17
|
+
export declare const ButtonsGroup: Story;
|
|
18
|
+
export declare const FullWidthOnSmallScreens: Story;
|
|
19
|
+
export declare const ButtonLink: Story;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { default as Checkbox } from './checkbox';
|
|
3
|
+
/**
|
|
4
|
+
Source: https://cfpb.github.io/design-system/components/checkboxes
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Enabled: Story;
|
|
10
|
+
export declare const Hover: Story;
|
|
11
|
+
export declare const Focus: Story;
|
|
12
|
+
export declare const Selected: Story;
|
|
13
|
+
export declare const Disabled: Story;
|
|
14
|
+
export declare const DisabledSelected: Story;
|
|
15
|
+
export declare const WithHelperText: Story;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { ChangeEvent, ReactElement, ReactNode, RefObject, JSX } from 'react';
|
|
2
2
|
export interface CheckboxProperties {
|
|
3
3
|
/** Unique identifier for this checkbox */
|
|
4
4
|
id: string;
|
|
@@ -6,7 +6,7 @@ export interface CheckboxProperties {
|
|
|
6
6
|
label: ReactNode;
|
|
7
7
|
/** Additional CSS classes applied to the checkbox's wrapper element */
|
|
8
8
|
className?: string;
|
|
9
|
-
/** Is
|
|
9
|
+
/** Is the checkbox checked? */
|
|
10
10
|
checked?: boolean;
|
|
11
11
|
/** Additional text to further clarify purpose of checkbox */
|
|
12
12
|
helperText?: ReactNode;
|
|
@@ -14,8 +14,8 @@ export interface CheckboxProperties {
|
|
|
14
14
|
inputClassName?: string;
|
|
15
15
|
/** Additional CSS classes that will be applied to checkbox label element */
|
|
16
16
|
labelClassName?: string;
|
|
17
|
-
/** React Ref to
|
|
18
|
-
inputRef?: RefObject<HTMLInputElement> |
|
|
17
|
+
/** React Ref to enable direct access and control of the input element */
|
|
18
|
+
inputRef?: RefObject<HTMLInputElement> | ((instance: HTMLInputElement | null) => void) | null | undefined;
|
|
19
19
|
/** Apply the "Large" styles for this element? */
|
|
20
20
|
isLarge?: boolean;
|
|
21
21
|
/** A name for this checkbox's value that can be referenced in javascript */
|
|
@@ -29,5 +29,5 @@ export interface CheckboxProperties {
|
|
|
29
29
|
/** Border status */
|
|
30
30
|
status?: 'error' | 'success' | 'warning';
|
|
31
31
|
}
|
|
32
|
-
export declare const Checkbox: ({ id, label, className, inputClassName, labelClassName, checked, helperText, inputRef, disabled, isLarge, labelInline, name, onChange, status, ...properties }: CheckboxProperties & JSX.IntrinsicElements[
|
|
32
|
+
export declare const Checkbox: ({ id, label, className, inputClassName, labelClassName, checked, helperText, inputRef, disabled, isLarge, labelInline, name, onChange, status, ...properties }: CheckboxProperties & JSX.IntrinsicElements["input"]) => ReactElement;
|
|
33
33
|
export default Checkbox;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { default as Checkbox } from './checkbox';
|
|
3
|
+
/**
|
|
4
|
+
Source: https://cfpb.github.io/design-system/components/checkboxes
|
|
5
|
+
*/
|
|
6
|
+
declare const meta: Meta<typeof Checkbox>;
|
|
7
|
+
export default meta;
|
|
8
|
+
type Story = StoryObj<typeof meta>;
|
|
9
|
+
export declare const Enabled: Story;
|
|
10
|
+
export declare const Hover: Story;
|
|
11
|
+
export declare const Focus: Story;
|
|
12
|
+
export declare const Selected: Story;
|
|
13
|
+
export declare const Disabled: Story;
|
|
14
|
+
export declare const Disabledselected: Story;
|
|
15
|
+
export declare const Success: Story;
|
|
16
|
+
export declare const Warning: Story;
|
|
17
|
+
export declare const Error: Story;
|
|
18
|
+
export declare const WithHelperText: Story;
|
|
File without changes
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { CheckboxProperties } from './checkbox';
|
|
3
|
+
export declare const CheckboxTestWrapper: ({ onChange, checked, ...others }: CheckboxProperties) => JSX.Element;
|
|
4
|
+
export declare function CheckboxWrapper({ ...arguments_ }: {
|
|
5
|
+
[x: string]: any;
|
|
6
|
+
}): JSX.Element;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type React from 'react';
|
|
1
|
+
import { default as React, ReactElement } from 'react';
|
|
3
2
|
export declare const Divider: ({ className, ...properties }: React.HTMLProps<HTMLDivElement>) => ReactElement;
|
|
4
3
|
export default Divider;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Divider } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Divider>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const ExampleUsage: Story;
|
|
File without changes
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import type { ExpandableProperties } from './Expandable';
|
|
1
|
+
import { ReactElement, default as React } from 'react';
|
|
2
|
+
import { ExpandableProperties } from './expandable';
|
|
4
3
|
export interface ExpandableGroupProperties extends React.HTMLAttributes<HTMLDivElement> {
|
|
5
4
|
groupId: string;
|
|
6
5
|
accordion?: boolean;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Expandable } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Expandable>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const PaddedExpandable: Story;
|
|
8
|
+
export declare const OpenOnLoad: Story;
|
|
9
|
+
export declare const DefaultExpandableGroup: Story;
|
|
10
|
+
export declare const Accordion: Story;
|
|
File without changes
|
package/dist/{components/Footer/FooterCfGov.d.ts → src/components/Footer/footer-cf-gov.d.ts}
RENAMED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface FootCfGovProperties {
|
|
2
3
|
cfLink?: string;
|
|
3
4
|
}
|
|
4
|
-
export declare const FooterCfGov: ({ cfLink, className, ...properties }: FootCfGovProperties & JSX.IntrinsicElements[
|
|
5
|
+
export declare const FooterCfGov: ({ cfLink, className, ...properties }: FootCfGovProperties & JSX.IntrinsicElements["footer"]) => JSX.Element;
|
|
5
6
|
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { JSXElement } from '../../types/jsx-element';
|
|
2
3
|
interface WrapperProperties {
|
|
3
4
|
children: JSX.Element[];
|
|
4
5
|
}
|
|
@@ -13,5 +14,5 @@ export declare const SocialLinks: ({ children }: WrapperProperties) => JSXElemen
|
|
|
13
14
|
/**
|
|
14
15
|
* Wrapper for column of Footer Links
|
|
15
16
|
*/
|
|
16
|
-
export declare const FooterLinksColumn: ({ children }: WrapperProperties) => JSXElement;
|
|
17
|
+
export declare const FooterLinksColumn: ({ children, }: WrapperProperties) => JSXElement;
|
|
17
18
|
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Footer } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Footer>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Example: Story;
|
|
7
|
+
export declare const CFGov: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Grid } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Grid.Wrapper>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const StandardGrid: Story;
|
|
7
|
+
export declare const NestedGrid: Story;
|
|
8
|
+
export declare const CenteredGrid: Story;
|
|
9
|
+
export declare const GridColWidthEnum: Story;
|
|
File without changes
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { GridColWidth, GridColumn } from './
|
|
2
|
-
import { GridRow } from './
|
|
3
|
-
import { GridWrapper } from './
|
|
1
|
+
import { GridColWidth, GridColumn } from './grid-column';
|
|
2
|
+
import { GridRow } from './grid-row';
|
|
3
|
+
import { GridWrapper } from './grid-wrapper';
|
|
4
4
|
/**
|
|
5
5
|
* CFPB Grid
|
|
6
6
|
* https://cfpb.github.io/design-system/foundation/grid
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Heading } from '../../index';
|
|
3
|
+
/**
|
|
4
|
+
* A successful type hierarchy establishes the order of importance of elements on a page. Consistent scaling, weights, and capitalization are used to create distinction between headings and provide users with familiar focus points when scanning text.
|
|
5
|
+
*
|
|
6
|
+
* Source: <a href='https://cfpb.github.io/design-system/foundation/headings' target='_blank'> https://cfpb.github.io/design-system/foundation/headings</a>
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: Meta<typeof Heading>;
|
|
9
|
+
export default meta;
|
|
10
|
+
type Story = StoryObj<typeof meta>;
|
|
11
|
+
export declare const H1: Story;
|
|
12
|
+
export declare const H2: Story;
|
|
13
|
+
export declare const H3: Story;
|
|
14
|
+
export declare const H4: Story;
|
|
15
|
+
export declare const H5: Story;
|
|
16
|
+
export declare const Display: Story;
|
|
17
|
+
export declare const Eyebrow: Story;
|
|
18
|
+
export declare const Slug: Story;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { HeadingLevel } from '../../types/heading-level';
|
|
2
3
|
interface HeroProperties extends React.HTMLAttributes<HTMLDivElement> {
|
|
3
4
|
backgroundColor?: string;
|
|
4
5
|
heading?: React.ReactNode;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Hero } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Hero>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const WithIllustration: Story;
|
|
7
|
+
export declare const WithPhotograph: Story;
|
|
8
|
+
export declare const Jumbo: Story;
|
|
9
|
+
export declare const FiftyFifty: Story;
|
|
10
|
+
export declare const WithKnockoutText: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Icon } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Icon>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const IconPlain: () => React.ReactElement;
|
|
7
|
+
export declare const IconWithBackground: () => React.ReactElement;
|
|
8
|
+
export declare const NavigationIcons: () => React.ReactElement;
|
|
9
|
+
export declare const StatusIcons: () => React.ReactElement;
|
|
10
|
+
export declare const SocialSharingIcons: () => React.ReactElement;
|
|
11
|
+
export declare const CommunicationIcons: () => React.ReactElement;
|
|
12
|
+
export declare const NumberIcons: () => React.ReactElement;
|
|
13
|
+
export declare const DocumentIcons: () => React.ReactElement;
|
|
14
|
+
export declare const FinancialProductsServicesAndConceptIcons: () => React.ReactElement;
|
|
15
|
+
export declare const ExpenseIcons: () => React.ReactElement;
|
|
16
|
+
export declare const WebApplicationIcons: () => React.ReactElement;
|
|
17
|
+
export declare const IconWithText: Story;
|
|
File without changes
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
interface LabelProperties {
|
|
2
3
|
children: React.ReactNode;
|
|
3
4
|
inline?: boolean;
|
|
4
5
|
htmlFor: string;
|
|
5
6
|
className?: string;
|
|
6
7
|
}
|
|
7
|
-
export declare const Label: ({ children, inline, htmlFor, className, ...other }: JSX.IntrinsicElements[
|
|
8
|
+
export declare const Label: ({ children, inline, htmlFor, className, ...other }: JSX.IntrinsicElements["label"] & LabelProperties) => React.ReactElement | null;
|
|
8
9
|
export default Label;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Label } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Label>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const LabelHeading: Story;
|
|
7
|
+
export declare const InlineLabel: Story;
|
|
File without changes
|
package/dist/{components/Layout/LayoutContent.d.ts → src/components/Layout/layout-content.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export interface LayoutContentProperties {
|
|
2
3
|
children: JSX.Element | JSX.Element[] | string;
|
|
3
4
|
flushAllOnSmall?: boolean;
|
|
4
5
|
flushBottom?: boolean;
|
|
5
6
|
flushTopOnSmall?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const LayoutContent: ({ children, flushBottom, flushTopOnSmall, flushAllOnSmall, ...properties }: LayoutContentProperties & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
8
|
-
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export interface LayoutMainProperties {
|
|
2
3
|
children: JSX.Element | JSX.Element[];
|
|
3
4
|
classes?: string;
|
|
4
5
|
id?: string;
|
|
5
6
|
layout?: '1-3' | '2-1';
|
|
6
7
|
}
|
|
7
|
-
export declare const LayoutMain: ({ children, classes, id, layout }: LayoutMainProperties) => JSX.Element;
|
|
8
|
-
export {};
|
|
8
|
+
export declare const LayoutMain: ({ children, classes, id, layout, }: LayoutMainProperties) => JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Layout } from '../../index';
|
|
3
|
+
declare const meta: Meta<typeof Layout.Main>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Layout_2_1: Story;
|
|
7
|
+
export declare const Layout_1_3: Story;
|
package/dist/{components/Layout/LayoutSidebar.d.ts → src/components/Layout/layout-sidebar.d.ts}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
export interface LayoutSidebarProperties {
|
|
2
3
|
children: JSX.Element | JSX.Element[] | string;
|
|
3
4
|
flushBottom?: boolean;
|
|
4
5
|
flushTopOnSmall?: boolean;
|
|
5
6
|
flushAllOnSmall?: boolean;
|
|
6
7
|
}
|
|
7
8
|
export declare const LayoutSidebar: ({ children, flushBottom, flushTopOnSmall, flushAllOnSmall, ...properties }: LayoutSidebarProperties & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
8
|
-
export {};
|
package/dist/{components/Layout/LayoutWrapper.d.ts → src/components/Layout/layout-wrapper.d.ts}
RENAMED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
1
2
|
/**
|
|
2
3
|
* ~ Usage ~
|
|
3
4
|
*
|
|
@@ -13,8 +14,7 @@
|
|
|
13
14
|
* </Layout.Wrapper>
|
|
14
15
|
* </Layout.Main>
|
|
15
16
|
*/
|
|
16
|
-
interface LayoutWrapperProperties {
|
|
17
|
+
export interface LayoutWrapperProperties {
|
|
17
18
|
children: JSX.Element | JSX.Element[] | string;
|
|
18
19
|
}
|
|
19
20
|
export declare const LayoutWrapper: ({ children, ...properties }: LayoutWrapperProperties & React.HTMLAttributes<HTMLDivElement>) => JSX.Element;
|
|
20
|
-
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
Content: ({ children, flushBottom, flushTopOnSmall, flushAllOnSmall, ...properties }: import('./layout-content').LayoutContentProperties & React.HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
3
|
+
Main: ({ children, classes, id, layout, }: import('./layout-main').LayoutMainProperties) => import("react").JSX.Element;
|
|
4
|
+
Sidebar: ({ children, flushBottom, flushTopOnSmall, flushAllOnSmall, ...properties }: import('./layout-sidebar').LayoutSidebarProperties & React.HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
5
|
+
Wrapper: ({ children, ...properties }: import('./layout-wrapper').LayoutWrapperProperties & React.HTMLAttributes<HTMLDivElement>) => import("react").JSX.Element;
|
|
6
|
+
};
|
|
7
|
+
export default _default;
|