@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.
Files changed (159) hide show
  1. package/README.md +8 -10
  2. package/dist/assets/{style.css → design-system-react.css} +1 -1
  3. package/dist/index.d.ts +2 -43
  4. package/dist/index.js +7 -60
  5. package/dist/index.mjs +1738 -6583
  6. package/dist/postcss/plugins/process-icons.d.ts +6 -0
  7. package/dist/{components/Alert/AlertFieldLevel.d.ts → src/components/Alert/alert-field-level.d.ts} +1 -1
  8. package/dist/src/components/Alert/alert-link.d.ts +7 -0
  9. package/dist/{components/Alert/Alert.d.ts → src/components/Alert/alert.d.ts} +3 -3
  10. package/dist/src/components/Alert/alert.stories.d.ts +16 -0
  11. package/dist/src/components/Alert/alert.test.d.ts +0 -0
  12. package/dist/{components/Banner/BannerLanguageLink.d.ts → src/components/Banner/banner-language-link.d.ts} +1 -1
  13. package/dist/{components/Banner/Banner.d.ts → src/components/Banner/banner.d.ts} +1 -0
  14. package/dist/src/components/Banner/banner.stories.d.ts +8 -0
  15. package/dist/src/components/Banner/banner.test.d.ts +0 -0
  16. package/dist/{components/Breadcrumb/Breadcrumb.d.ts → src/components/Breadcrumb/breadcrumb.d.ts} +1 -1
  17. package/dist/src/components/Breadcrumb/breadcrumb.stories.d.ts +6 -0
  18. package/dist/src/components/Breadcrumb/breadcrumb.test.d.ts +0 -0
  19. package/dist/{components/Buttons/ButtonGroup.d.ts → src/components/Buttons/button-group.d.ts} +1 -1
  20. package/dist/src/components/Buttons/button-group.test.d.ts +0 -0
  21. package/dist/{components/Buttons/Button.d.ts → src/components/Buttons/button.d.ts} +2 -2
  22. package/dist/src/components/Buttons/button.test.d.ts +0 -0
  23. package/dist/src/components/Buttons/buttons.stories.d.ts +19 -0
  24. package/dist/src/components/Checkbox/checkbox-large.stories.d.ts +15 -0
  25. package/dist/{components/Checkbox/Checkbox.d.ts → src/components/Checkbox/checkbox.d.ts} +5 -5
  26. package/dist/src/components/Checkbox/checkbox.stories.d.ts +18 -0
  27. package/dist/src/components/Checkbox/checkbox.test.d.ts +0 -0
  28. package/dist/src/components/Checkbox/checkbox.utils.d.ts +6 -0
  29. package/dist/{components/Divider/Divider.d.ts → src/components/Divider/divider.d.ts} +1 -2
  30. package/dist/src/components/Divider/divider.stories.d.ts +7 -0
  31. package/dist/src/components/Divider/divider.test.d.ts +0 -0
  32. package/dist/{components/Expandable/ExpandableGroup.d.ts → src/components/Expandable/expandable-group.d.ts} +2 -3
  33. package/dist/{components/Expandable/Expandable.d.ts → src/components/Expandable/expandable.d.ts} +1 -2
  34. package/dist/src/components/Expandable/expandable.stories.d.ts +10 -0
  35. package/dist/src/components/Expandable/expandable.test.d.ts +0 -0
  36. package/dist/{components/Footer/BackToTop.d.ts → src/components/Footer/back-to-top.d.ts} +1 -0
  37. package/dist/{components/Footer/FooterBanner.d.ts → src/components/Footer/footer-banner.d.ts} +1 -0
  38. package/dist/{components/Footer/FooterCfGov.d.ts → src/components/Footer/footer-cf-gov.d.ts} +2 -1
  39. package/dist/{components/Footer/FooterLinks.d.ts → src/components/Footer/footer-links.d.ts} +3 -2
  40. package/dist/src/components/Footer/footer-links.test.d.ts +1 -0
  41. package/dist/{components/Footer/Footer.d.ts → src/components/Footer/footer.d.ts} +1 -0
  42. package/dist/src/components/Footer/footer.stories.d.ts +7 -0
  43. package/dist/src/components/Footer/footer.test.d.ts +1 -0
  44. package/dist/{components/Grid/GridColumn.d.ts → src/components/Grid/grid-column.d.ts} +1 -0
  45. package/dist/{components/Grid/GridRow.d.ts → src/components/Grid/grid-row.d.ts} +1 -0
  46. package/dist/{components/Grid/GridWrapper.d.ts → src/components/Grid/grid-wrapper.d.ts} +1 -0
  47. package/dist/src/components/Grid/grid.stories.d.ts +9 -0
  48. package/dist/src/components/Grid/grid.test.d.ts +0 -0
  49. package/dist/{components → src/components}/Grid/index.d.ts +3 -3
  50. package/dist/{components/Headings/Heading.d.ts → src/components/Headings/heading.d.ts} +1 -0
  51. package/dist/src/components/Headings/heading.test.d.ts +0 -0
  52. package/dist/src/components/Headings/headings.stories.d.ts +18 -0
  53. package/dist/{components/HelperText/HelperText.d.ts → src/components/HelperText/helper-text.d.ts} +1 -1
  54. package/dist/src/components/Hero/hero-image.d.ts +7 -0
  55. package/dist/{components/Hero/Hero.d.ts → src/components/Hero/hero.d.ts} +2 -1
  56. package/dist/src/components/Hero/hero.stories.d.ts +10 -0
  57. package/dist/src/components/Hero/hero.test.d.ts +1 -0
  58. package/dist/{components/Hero/useBackgroundImage.d.ts → src/components/Hero/use-background-image.d.ts} +1 -1
  59. package/dist/{components/Icon/Icon.d.ts → src/components/Icon/icon.d.ts} +2 -1
  60. package/dist/src/components/Icon/icon.stories.d.ts +17 -0
  61. package/dist/src/components/Icon/icon.test.d.ts +0 -0
  62. package/dist/{components/Label/Label.d.ts → src/components/Label/label.d.ts} +2 -1
  63. package/dist/src/components/Label/label.stories.d.ts +7 -0
  64. package/dist/src/components/Label/label.test.d.ts +0 -0
  65. package/dist/{components/Layout/LayoutContent.d.ts → src/components/Layout/layout-content.d.ts} +2 -2
  66. package/dist/src/components/Layout/layout-content.stories.d.ts +6 -0
  67. package/dist/{components/Layout/LayoutMain.d.ts → src/components/Layout/layout-main.d.ts} +3 -3
  68. package/dist/src/components/Layout/layout-main.stories.d.ts +7 -0
  69. package/dist/{components/Layout/LayoutSidebar.d.ts → src/components/Layout/layout-sidebar.d.ts} +2 -2
  70. package/dist/src/components/Layout/layout-sidebar.stories.d.ts +6 -0
  71. package/dist/{components/Layout/LayoutWrapper.d.ts → src/components/Layout/layout-wrapper.d.ts} +2 -2
  72. package/dist/src/components/Layout/layout-wrapper.stories.d.ts +6 -0
  73. package/dist/src/components/Layout/layout.d.ts +7 -0
  74. package/dist/src/components/Link/link.d.ts +50 -0
  75. package/dist/src/components/Link/link.stories.d.ts +11 -0
  76. package/dist/src/components/Link/link.test.d.ts +0 -0
  77. package/dist/{components/List/ListItem.d.ts → src/components/List/list-item.d.ts} +2 -2
  78. package/dist/{components/List/List.d.ts → src/components/List/list.d.ts} +2 -1
  79. package/dist/src/components/List/list.stories.d.ts +10 -0
  80. package/dist/src/components/List/list.test.d.ts +0 -0
  81. package/dist/{components/Navbar/Navbar.d.ts → src/components/Navbar/navbar.d.ts} +2 -1
  82. package/dist/src/components/Navbar/navbar.stories.d.ts +8 -0
  83. package/dist/{components/PageHeader/PageHeader.d.ts → src/components/PageHeader/page-header.d.ts} +3 -2
  84. package/dist/src/components/PageHeader/page-header.stories.d.ts +7 -0
  85. package/dist/src/components/PageHeader/page-header.test.d.ts +0 -0
  86. package/dist/{components/Pagination/Pagination.d.ts → src/components/Pagination/pagination.d.ts} +2 -2
  87. package/dist/src/components/Pagination/pagination.stories.d.ts +20 -0
  88. package/dist/src/components/Pagination/pagination.story-utils.d.ts +2 -0
  89. package/dist/src/components/Pagination/pagination.test.d.ts +0 -0
  90. package/dist/{components/Pagination/usePagination.d.ts → src/components/Pagination/use-pagination.d.ts} +3 -3
  91. package/dist/src/components/Pagination/use-pagination.test.d.ts +0 -0
  92. package/dist/{components/Paragraph/Paragraph.d.ts → src/components/Paragraph/paragraph.d.ts} +1 -0
  93. package/dist/src/components/Paragraph/paragraph.test.d.ts +0 -0
  94. package/dist/src/components/Paragraph/paragraphs.stories.d.ts +17 -0
  95. package/dist/{components/RadioButton/RadioButton.d.ts → src/components/RadioButton/radio-button.d.ts} +2 -3
  96. package/dist/src/components/RadioButton/radio-button.stories.d.ts +14 -0
  97. package/dist/src/components/RadioButton/radio-button.test.d.ts +0 -0
  98. package/dist/src/components/ResponsiveMenu/responsive-menu.d.ts +12 -0
  99. package/dist/src/components/ResponsiveMenu/responsive-menu.stories.d.ts +8 -0
  100. package/dist/src/components/ResponsiveMenu/responsive-menu.test.d.ts +0 -0
  101. package/dist/{components/Select/SelectMulti.d.ts → src/components/Select/select-multi.d.ts} +2 -1
  102. package/dist/src/components/Select/select-multi.stories.d.ts +6 -0
  103. package/dist/{components/Select/SelectSingle.d.ts → src/components/Select/select-single.d.ts} +2 -1
  104. package/dist/src/components/Select/select-tag.d.ts +11 -0
  105. package/dist/{components/Select/selectUtils.d.ts → src/components/Select/select-utils.d.ts} +2 -1
  106. package/dist/{components/Select/Select.d.ts → src/components/Select/select.d.ts} +1 -1
  107. package/dist/src/components/Select/select.stories.d.ts +9 -0
  108. package/dist/src/components/Select/select.test.d.ts +0 -0
  109. package/dist/src/components/Select/test-utils.d.ts +9 -0
  110. package/dist/src/components/SkipNav/skip-nav.d.ts +5 -0
  111. package/dist/{components/Summaries/Summary.d.ts → src/components/Summaries/summary.d.ts} +1 -2
  112. package/dist/src/components/Summaries/summary.stories.d.ts +8 -0
  113. package/dist/src/components/Table/table-utils.d.ts +4 -0
  114. package/dist/src/components/Table/table.d.ts +33 -0
  115. package/dist/src/components/Table/table.stories.d.ts +13 -0
  116. package/dist/src/components/Table/table.test.d.ts +0 -0
  117. package/dist/src/components/Tagline/tagline.d.ts +8 -0
  118. package/dist/src/components/Tagline/tagline.stories.d.ts +7 -0
  119. package/dist/src/components/Tagline/tagline.test.d.ts +0 -0
  120. package/dist/src/components/TextInput/text-area.d.ts +14 -0
  121. package/dist/src/components/TextInput/text-area.stories.d.ts +13 -0
  122. package/dist/src/components/TextInput/text-area.test.d.ts +0 -0
  123. package/dist/{components/TextInput/TextInput.d.ts → src/components/TextInput/text-input.d.ts} +3 -4
  124. package/dist/src/components/TextInput/text-input.stories.d.ts +14 -0
  125. package/dist/src/components/TextInput/text-input.test.d.ts +0 -0
  126. package/dist/src/components/TextIntroduction/test-helpers.d.ts +19 -0
  127. package/dist/{components/TextIntroduction/TextIntroduction.d.ts → src/components/TextIntroduction/text-introduction.d.ts} +7 -7
  128. package/dist/src/components/TextIntroduction/text-introduction.stories.d.ts +15 -0
  129. package/dist/src/components/TextIntroduction/text-introduction.test.d.ts +0 -0
  130. package/dist/{components/Well/Well.d.ts → src/components/Well/well.d.ts} +2 -1
  131. package/dist/src/components/Well/well.stories.d.ts +7 -0
  132. package/dist/src/components/Well/well.test.d.ts +0 -0
  133. package/dist/{hooks/useIconSvg.d.ts → src/hooks/use-icon-svg.d.ts} +1 -1
  134. package/dist/src/index.d.ts +41 -0
  135. package/dist/{types/jsxElement.d.ts → src/types/jsx-element.d.ts} +1 -0
  136. package/dist/src/utils/sleep.d.ts +1 -0
  137. package/dist/vite/plugins/svg-raw-loader.d.ts +2 -0
  138. package/package.json +68 -93
  139. package/dist/components/Alert/AlertLink.d.ts +0 -6
  140. package/dist/components/Dropdown/Dropdown.d.ts +0 -11
  141. package/dist/components/Dropdown/Dropdown.types.d.ts +0 -20
  142. package/dist/components/Dropdown/DropdownInputWithCheckbox.d.ts +0 -10
  143. package/dist/components/Dropdown/DropdownPills.d.ts +0 -26
  144. package/dist/components/Dropdown/styles.d.ts +0 -2
  145. package/dist/components/Dropdown/utils.d.ts +0 -17
  146. package/dist/components/Hero/HeroImage.d.ts +0 -6
  147. package/dist/components/Link/Link.d.ts +0 -21
  148. package/dist/components/ResponsiveMenu/ResponsiveMenu.d.ts +0 -12
  149. package/dist/components/SkipNav/SkipNav.d.ts +0 -5
  150. package/dist/components/Table/Table.d.ts +0 -34
  151. package/dist/components/Table/tableUtils.d.ts +0 -3
  152. package/dist/components/Tagline/Tagline.d.ts +0 -7
  153. package/dist/components/TextInput/TextArea.d.ts +0 -14
  154. /package/dist/{components/Icon/iconLists.d.ts → src/components/Icon/icon-lists.d.ts} +0 -0
  155. /package/dist/{components/Pagination/paginationConstants.d.ts → src/components/Pagination/pagination-constants.d.ts} +0 -0
  156. /package/dist/{components/TextInput/TextInputStatus.d.ts → src/components/TextInput/text-input-status.d.ts} +0 -0
  157. /package/dist/{types/headingLevel.d.ts → src/types/heading-level.d.ts} +0 -0
  158. /package/dist/{types/WidthPercent.d.ts → src/types/width-percent.d.ts} +0 -0
  159. /package/dist/{utils/noOp.d.ts → src/utils/no-op.d.ts} +0 -0
@@ -0,0 +1,6 @@
1
+ import { Plugin } from 'postcss';
2
+ declare const processIcons: {
3
+ (): Plugin;
4
+ postcss: boolean;
5
+ };
6
+ export { processIcons };
@@ -1,4 +1,4 @@
1
- import type { JSXElement } from '../../../src/types/jsxElement';
1
+ import { JSXElement } from '../../types/jsx-element';
2
2
  export type AlertFieldLevelType = 'error' | 'info' | 'success' | 'warning';
3
3
  export declare enum AlertFieldLevelClass {
4
4
  'info' = "--info",
@@ -0,0 +1,7 @@
1
+ import { JSX } from 'react';
2
+ export interface AlertLinkProperties {
3
+ href: string;
4
+ label: string;
5
+ isExternal?: boolean;
6
+ }
7
+ export declare const AlertLink: ({ href, label, isExternal, }: AlertLinkProperties) => JSX.Element;
@@ -1,6 +1,6 @@
1
- import type { HeadingLevel } from '../../types/headingLevel';
2
- import type { AlertFieldLevelType } from './AlertFieldLevel';
3
- import type { AlertLinkProperties } from './AlertLink';
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 type { JSXElement } from '../../types/jsxElement';
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[];
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  interface BannerProperties extends React.HTMLProps<HTMLDivElement> {
2
3
  isHorizontal?: boolean;
3
4
  links?: JSX.Element[];
@@ -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
@@ -1,4 +1,4 @@
1
- import type { HTMLAttributes } from 'react';
1
+ import { HTMLAttributes, JSX } from 'react';
2
2
  export interface BreadcrumbCrumb {
3
3
  href: string;
4
4
  label: string;
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ declare const meta: Meta<typeof BreadCrumbComponent>;
3
+ export default meta;
4
+ type Story = StoryObj<typeof meta>;
5
+ export declare const Default: Story;
6
+ export declare const Crumb: Story;
@@ -1,4 +1,4 @@
1
- import type { JSXElement } from '../../../src/types/jsxElement';
1
+ import { JSXElement } from '../../types/jsx-element';
2
2
  /**
3
3
  * Display a collection of related Buttons
4
4
  */
@@ -1,4 +1,4 @@
1
- import { type ButtonHTMLAttributes } from 'react';
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("react").ForwardRefExoticComponent<ButtonProperties & import("react").RefAttributes<HTMLButtonElement>>;
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 type { ChangeEvent, ReactElement, ReactNode, RefObject } from 'react';
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 checkboxed checked? */
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 be enable direct access and control of the input element */
18
- inputRef?: RefObject<HTMLInputElement> | string | ((instance: HTMLInputElement | null) => void) | null | undefined;
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['input']) => ReactElement;
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;
@@ -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 type { ReactElement } from 'react';
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 type { ReactElement } from 'react';
2
- import React from 'react';
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;
@@ -1,5 +1,4 @@
1
- import type React from 'react';
2
- import type { ReactNode } from 'react';
1
+ import { default as React, ReactNode } from 'react';
3
2
  export interface ExpandableProperties extends React.HTMLAttributes<HTMLDivElement> {
4
3
  header: string;
5
4
  children: ReactNode;
@@ -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;
@@ -1 +1,2 @@
1
+ import { JSX } from 'react';
1
2
  export declare const BackToTop: () => JSX.Element;
@@ -1 +1,2 @@
1
+ import { JSX } from 'react';
1
2
  export declare const FooterBanner: () => JSX.Element;
@@ -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['footer']) => JSX.Element;
5
+ export declare const FooterCfGov: ({ cfLink, className, ...properties }: FootCfGovProperties & JSX.IntrinsicElements["footer"]) => JSX.Element;
5
6
  export {};
@@ -1,4 +1,5 @@
1
- import type { JSXElement } from '../../types/jsxElement';
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 {};
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  interface FooterProperties extends React.HTMLProps<HTMLElement> {
2
3
  navLinks?: JSX.Element[];
3
4
  socialLinks?: JSX.Element[];
@@ -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 {};
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export declare enum GridColWidth {
2
3
  Full = 12,
3
4
  ThreeQuarters = 9,
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  interface GridRowProperties {
2
3
  children: JSX.Element | JSX.Element[] | string;
3
4
  className?: string;
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  interface GridWrapperProperties {
2
3
  width?: number | undefined;
3
4
  children?: JSX.Element | JSX.Element[] | string;
@@ -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 './GridColumn';
2
- import { GridRow } from './GridRow';
3
- import { GridWrapper } from './GridWrapper';
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
@@ -1,3 +1,4 @@
1
+ import { JSX } from 'react';
1
2
  export type HeadingType = '1' | '2' | '3' | '4' | '5' | 'display' | 'eyebrow' | 'slug';
2
3
  interface HeadingProperties extends React.HTMLProps<HTMLHeadingElement> {
3
4
  /** Heading type (1-5, display, eyebrow, slug) */
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,4 @@
1
- import type React from 'react';
1
+ import { default as React, JSX } from 'react';
2
2
  type HelperTextProperties = React.HTMLProps<HTMLDivElement>;
3
3
  /**
4
4
  * A utility component to consistently display helper text for input elements
@@ -0,0 +1,7 @@
1
+ import { JSX } from 'react';
2
+ interface HeroImageProperties {
3
+ image?: string;
4
+ altText?: string;
5
+ }
6
+ export declare const HeroImage: ({ image, altText, }: HeroImageProperties) => JSX.Element | null;
7
+ export {};
@@ -1,4 +1,5 @@
1
- import type { HeadingLevel } from '../../types/headingLevel';
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 {};
@@ -1,4 +1,4 @@
1
- import type { Ref } from 'react';
1
+ import { Ref } from 'react';
2
2
  /**
3
3
  * Add inline styles which apply a background-image to the referenced <div>
4
4
  *
@@ -1,4 +1,5 @@
1
- interface IconProperties {
1
+ import { SVGProps, JSX } from 'react';
2
+ interface IconProperties extends Omit<SVGProps<SVGSVGElement>, 'name'> {
2
3
  name: string;
3
4
  alt?: string;
4
5
  ariaLabel?: string;
@@ -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['label'] & LabelProperties) => React.ReactElement | null;
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
@@ -1,8 +1,8 @@
1
- interface LayoutContentProperties {
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 {};
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Layout } from '../../index';
3
+ declare const meta: Meta<typeof Layout.Content>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Content: Story;
@@ -1,8 +1,8 @@
1
- interface LayoutMainProperties {
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;
@@ -1,8 +1,8 @@
1
- interface LayoutSidebarProperties {
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 {};
@@ -0,0 +1,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Layout } from '../../index';
3
+ declare const meta: Meta<typeof Layout.Sidebar>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Sidebar: Story;
@@ -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,6 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Layout } from '../../index';
3
+ declare const meta: Meta<typeof Layout.Wrapper>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Wrapper: Story;
@@ -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;