@hmlr/govuk-react-components-library 1.2.0 → 1.2.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/README.md +8 -2
- package/bundle-analysis-main.html +1 -1
- package/bundle-analysis-pdfvc.html +1 -1
- package/dist/PDFViewerCanvas.cjs.js +2 -2
- package/dist/PDFViewerCanvas.cjs.js.map +1 -1
- package/dist/PDFViewerCanvas.esm.js +1 -1
- package/dist/PDFViewerCanvas.esm.js.map +1 -1
- package/dist/index.cjs.js +21 -8
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.esm.js +17 -4
- package/dist/index.esm.js.map +1 -1
- package/package.json +20 -19
- package/scripts/generateStories.mjs +3 -3
- package/dist/types/PDFViewerCanvas.d.ts +0 -1
- package/dist/types/components/Accordion/Accordion.config.d.ts +0 -5
- package/dist/types/components/Accordion/Accordion.d.ts +0 -4
- package/dist/types/components/Accordion/Accordion.types.d.ts +0 -20
- package/dist/types/components/Accordion/index.d.ts +0 -2
- package/dist/types/components/ActionLink/ActionLink.d.ts +0 -4
- package/dist/types/components/ActionLink/ActionLink.types.d.ts +0 -13
- package/dist/types/components/ActionLink/index.d.ts +0 -1
- package/dist/types/components/BackLink/BackLink.d.ts +0 -4
- package/dist/types/components/BackLink/BackLink.types.d.ts +0 -9
- package/dist/types/components/BackLink/index.d.ts +0 -1
- package/dist/types/components/Boolean/Boolean.d.ts +0 -4
- package/dist/types/components/Boolean/Boolean.types.d.ts +0 -39
- package/dist/types/components/Boolean/OmitKey.d.ts +0 -5
- package/dist/types/components/Boolean/index.d.ts +0 -1
- package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -4
- package/dist/types/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -13
- package/dist/types/components/Breadcrumbs/index.d.ts +0 -1
- package/dist/types/components/Button/Button.config.d.ts +0 -2
- package/dist/types/components/Button/Button.d.ts +0 -4
- package/dist/types/components/Button/Button.types.d.ts +0 -13
- package/dist/types/components/Button/index.d.ts +0 -2
- package/dist/types/components/CardColumn/CardColumn.d.ts +0 -5
- package/dist/types/components/CardColumn/CardColumn.types.d.ts +0 -25
- package/dist/types/components/CardColumn/index.d.ts +0 -1
- package/dist/types/components/CardLayout/CardLayout.d.ts +0 -4
- package/dist/types/components/CardLayout/CardLayout.types.d.ts +0 -5
- package/dist/types/components/CardLayout/index.d.ts +0 -1
- package/dist/types/components/CharacterCount/CharacterCount.config.d.ts +0 -2
- package/dist/types/components/CharacterCount/CharacterCount.d.ts +0 -4
- package/dist/types/components/CharacterCount/CharacterCount.types.d.ts +0 -12
- package/dist/types/components/CharacterCount/index.d.ts +0 -1
- package/dist/types/components/Checkboxes/Checkboxes.config.d.ts +0 -1
- package/dist/types/components/Checkboxes/Checkboxes.d.ts +0 -4
- package/dist/types/components/Checkboxes/Checkboxes.types.d.ts +0 -3
- package/dist/types/components/Checkboxes/index.d.ts +0 -2
- package/dist/types/components/CookieBanner/CookieBanner.d.ts +0 -4
- package/dist/types/components/CookieBanner/CookieBanner.types.d.ts +0 -21
- package/dist/types/components/CookieBanner/index.d.ts +0 -1
- package/dist/types/components/DataNavigation/DataNavigation.d.ts +0 -4
- package/dist/types/components/DataNavigation/DataNavigation.types.d.ts +0 -34
- package/dist/types/components/DataNavigation/index.d.ts +0 -1
- package/dist/types/components/DateInput/DateInput.d.ts +0 -4
- package/dist/types/components/DateInput/DateInput.types.d.ts +0 -29
- package/dist/types/components/DateInput/index.d.ts +0 -1
- package/dist/types/components/Details/Details.d.ts +0 -4
- package/dist/types/components/Details/Details.types.d.ts +0 -5
- package/dist/types/components/Details/index.d.ts +0 -1
- package/dist/types/components/DifferenceNavigation/DifferenceNavigation.d.ts +0 -4
- package/dist/types/components/DifferenceNavigation/DifferenceNavigation.types.d.ts +0 -32
- package/dist/types/components/DifferenceNavigation/index.d.ts +0 -1
- package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +0 -9
- package/dist/types/components/ErrorBoundary/ErrorBoundary.types.d.ts +0 -11
- package/dist/types/components/ErrorBoundary/index.d.ts +0 -1
- package/dist/types/components/ErrorMessage/ErrorMessage.d.ts +0 -4
- package/dist/types/components/ErrorMessage/ErrorMessage.types.d.ts +0 -6
- package/dist/types/components/ErrorMessage/index.d.ts +0 -1
- package/dist/types/components/ErrorSummary/ErrorSummary.config.d.ts +0 -2
- package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +0 -4
- package/dist/types/components/ErrorSummary/ErrorSummary.types.d.ts +0 -13
- package/dist/types/components/ErrorSummary/index.d.ts +0 -2
- package/dist/types/components/ExitThisPage/ExitThisPage.config.d.ts +0 -1
- package/dist/types/components/ExitThisPage/ExitThisPage.d.ts +0 -4
- package/dist/types/components/ExitThisPage/ExitThisPage.types.d.ts +0 -17
- package/dist/types/components/ExitThisPage/index.d.ts +0 -2
- package/dist/types/components/Fieldset/Fieldset.d.ts +0 -4
- package/dist/types/components/Fieldset/Fieldset.types.d.ts +0 -12
- package/dist/types/components/Fieldset/index.d.ts +0 -1
- package/dist/types/components/FileUpload/FileUpload.d.ts +0 -4
- package/dist/types/components/FileUpload/FileUpload.types.d.ts +0 -15
- package/dist/types/components/FileUpload/index.d.ts +0 -1
- package/dist/types/components/Footer/Footer.d.ts +0 -4
- package/dist/types/components/Footer/Footer.types.d.ts +0 -40
- package/dist/types/components/Footer/index.d.ts +0 -1
- package/dist/types/components/Header/Header.config.d.ts +0 -1
- package/dist/types/components/Header/Header.d.ts +0 -4
- package/dist/types/components/Header/Header.types.d.ts +0 -28
- package/dist/types/components/Header/index.d.ts +0 -2
- package/dist/types/components/Hint/Hint.d.ts +0 -4
- package/dist/types/components/Hint/Hint.types.d.ts +0 -4
- package/dist/types/components/Hint/index.d.ts +0 -1
- package/dist/types/components/Input/Input.d.ts +0 -4
- package/dist/types/components/Input/Input.types.d.ts +0 -22
- package/dist/types/components/Input/index.d.ts +0 -1
- package/dist/types/components/InsetText/InsetText.d.ts +0 -4
- package/dist/types/components/InsetText/InsetText.types.d.ts +0 -4
- package/dist/types/components/InsetText/index.d.ts +0 -1
- package/dist/types/components/Label/Label.d.ts +0 -4
- package/dist/types/components/Label/Label.types.d.ts +0 -6
- package/dist/types/components/Label/index.d.ts +0 -1
- package/dist/types/components/Landing/Landing.d.ts +0 -4
- package/dist/types/components/Landing/Landing.types.d.ts +0 -4
- package/dist/types/components/Landing/index.d.ts +0 -1
- package/dist/types/components/LinkWithRef/LinkWithRef.d.ts +0 -4
- package/dist/types/components/LinkWithRef/LinkWithRef.types.d.ts +0 -9
- package/dist/types/components/LinkWithRef/index.d.ts +0 -1
- package/dist/types/components/Loading/Loading.d.ts +0 -5
- package/dist/types/components/Loading/Loading.types.d.ts +0 -4
- package/dist/types/components/Loading/index.d.ts +0 -1
- package/dist/types/components/Main/Main.d.ts +0 -4
- package/dist/types/components/Main/Main.types.d.ts +0 -5
- package/dist/types/components/Main/index.d.ts +0 -1
- package/dist/types/components/NotFoundPage/NotFoundPage.d.ts +0 -3
- package/dist/types/components/NotFoundPage/index.d.ts +0 -1
- package/dist/types/components/NotificationBanner/NotificationBanner.config.d.ts +0 -2
- package/dist/types/components/NotificationBanner/NotificationBanner.d.ts +0 -4
- package/dist/types/components/NotificationBanner/NotificationBanner.types.d.ts +0 -12
- package/dist/types/components/NotificationBanner/index.d.ts +0 -1
- package/dist/types/components/PDFViewer/ObjectToQueryString.d.ts +0 -1
- package/dist/types/components/PDFViewer/PDFViewer.d.ts +0 -4
- package/dist/types/components/PDFViewer/PDFViewer.types.d.ts +0 -25
- package/dist/types/components/PDFViewer/PDFViewerBackend.d.ts +0 -2
- package/dist/types/components/PDFViewer/ResolvePDFSource.d.ts +0 -27
- package/dist/types/components/PDFViewer/Slugify.d.ts +0 -1
- package/dist/types/components/PDFViewer/index.d.ts +0 -2
- package/dist/types/components/PDFViewer/testutilities/SampleBase64.d.ts +0 -44
- package/dist/types/components/PDFViewerCanvas/PDFViewerCanvas.d.ts +0 -9
- package/dist/types/components/PDFViewerCanvas/PDFViewerCanvas.types.d.ts +0 -38
- package/dist/types/components/PDFViewerCanvas/index.d.ts +0 -1
- package/dist/types/components/Pagination/NavigationButton.d.ts +0 -3
- package/dist/types/components/Pagination/Pagination.d.ts +0 -4
- package/dist/types/components/Pagination/Pagination.types.d.ts +0 -32
- package/dist/types/components/Pagination/SvgIcon.d.ts +0 -3
- package/dist/types/components/Pagination/UsePagination.d.ts +0 -9
- package/dist/types/components/Pagination/index.d.ts +0 -3
- package/dist/types/components/Panel/Panel.d.ts +0 -4
- package/dist/types/components/Panel/Panel.types.d.ts +0 -7
- package/dist/types/components/Panel/index.d.ts +0 -1
- package/dist/types/components/PasswordInput/PasswordInput.config.d.ts +0 -1
- package/dist/types/components/PasswordInput/PasswordInput.d.ts +0 -4
- package/dist/types/components/PasswordInput/PasswordInput.types.d.ts +0 -49
- package/dist/types/components/PasswordInput/index.d.ts +0 -2
- package/dist/types/components/PhaseBanner/PhaseBanner.d.ts +0 -4
- package/dist/types/components/PhaseBanner/PhaseBanner.types.d.ts +0 -6
- package/dist/types/components/PhaseBanner/index.d.ts +0 -1
- package/dist/types/components/ProblemWithService/ProblemWithService.d.ts +0 -4
- package/dist/types/components/ProblemWithService/ProblemWithService.types.d.ts +0 -7
- package/dist/types/components/ProblemWithService/index.d.ts +0 -1
- package/dist/types/components/Radios/Radios.config.d.ts +0 -1
- package/dist/types/components/Radios/Radios.d.ts +0 -4
- package/dist/types/components/Radios/Radios.types.d.ts +0 -7
- package/dist/types/components/Radios/index.d.ts +0 -2
- package/dist/types/components/Select/Select.d.ts +0 -4
- package/dist/types/components/Select/Select.types.d.ts +0 -21
- package/dist/types/components/Select/index.d.ts +0 -1
- package/dist/types/components/ServiceNavigation/ServiceNavigation.d.ts +0 -4
- package/dist/types/components/ServiceNavigation/ServiceNavigation.types.d.ts +0 -21
- package/dist/types/components/ServiceNavigation/index.d.ts +0 -1
- package/dist/types/components/SkipLink/SkipLink.config.d.ts +0 -1
- package/dist/types/components/SkipLink/SkipLink.d.ts +0 -4
- package/dist/types/components/SkipLink/SkipLink.types.d.ts +0 -5
- package/dist/types/components/SkipLink/index.d.ts +0 -2
- package/dist/types/components/SummaryList/SummaryList.d.ts +0 -4
- package/dist/types/components/SummaryList/SummaryList.types.d.ts +0 -22
- package/dist/types/components/SummaryList/index.d.ts +0 -1
- package/dist/types/components/Table/Table.d.ts +0 -4
- package/dist/types/components/Table/Table.types.d.ts +0 -21
- package/dist/types/components/Table/index.d.ts +0 -1
- package/dist/types/components/Tabs/Tabs.config.d.ts +0 -1
- package/dist/types/components/Tabs/Tabs.d.ts +0 -4
- package/dist/types/components/Tabs/Tabs.types.d.ts +0 -14
- package/dist/types/components/Tabs/index.d.ts +0 -2
- package/dist/types/components/Tag/Tag.d.ts +0 -4
- package/dist/types/components/Tag/Tag.types.d.ts +0 -4
- package/dist/types/components/Tag/index.d.ts +0 -1
- package/dist/types/components/TaskList/TaskList.d.ts +0 -4
- package/dist/types/components/TaskList/TaskList.types.d.ts +0 -21
- package/dist/types/components/TaskList/index.d.ts +0 -1
- package/dist/types/components/Textarea/Textarea.d.ts +0 -4
- package/dist/types/components/Textarea/Textarea.types.d.ts +0 -14
- package/dist/types/components/Textarea/index.d.ts +0 -1
- package/dist/types/components/WarningInfo/WarningInfo.d.ts +0 -4
- package/dist/types/components/WarningInfo/WarningInfo.types.d.ts +0 -8
- package/dist/types/components/WarningInfo/index.d.ts +0 -1
- package/dist/types/components/WarningText/WarningText.d.ts +0 -4
- package/dist/types/components/WarningText/WarningText.types.d.ts +0 -4
- package/dist/types/components/WarningText/index.d.ts +0 -1
- package/dist/types/components/index.d.ts +0 -51
- package/dist/types/dynamics/index.d.ts +0 -3
- package/dist/types/dynamics/types.d.ts +0 -37
- package/dist/types/index.d.ts +0 -1
- package/dist/types/utils/ProcessExampleData.d.ts +0 -3
- package/dist/types/utils/StoriesFromFixtures.d.ts +0 -5
- package/dist/types/utils/TitleCase.d.ts +0 -2
- package/dist/types/utils/WithReference.d.ts +0 -5
- package/dist/types/utils/WithReference.types.d.ts +0 -15
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface PasswordInputLabelProps {
|
|
2
|
-
children?: React.ReactNode;
|
|
3
|
-
className?: string;
|
|
4
|
-
isPageHeading?: boolean;
|
|
5
|
-
[key: string]: unknown;
|
|
6
|
-
}
|
|
7
|
-
export interface PasswordInputProps {
|
|
8
|
-
/** Additional CSS classes for the `<input>` element. Maps from fixture `classes` → className */
|
|
9
|
-
className?: string;
|
|
10
|
-
/** Pre-existing aria-describedby value to prepend */
|
|
11
|
-
"aria-describedby"?: string;
|
|
12
|
-
/** Error message sub-object — `{ children }` after processExampleData transforms `text` */
|
|
13
|
-
errorMessage?: {
|
|
14
|
-
children?: React.ReactNode;
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
};
|
|
17
|
-
/** Wrapper div options */
|
|
18
|
-
formGroup?: {
|
|
19
|
-
className?: string;
|
|
20
|
-
[key: string]: unknown;
|
|
21
|
-
};
|
|
22
|
-
/** Hint sub-object — `{ children }` after processExampleData transforms `text` */
|
|
23
|
-
hint?: {
|
|
24
|
-
children?: React.ReactNode;
|
|
25
|
-
[key: string]: unknown;
|
|
26
|
-
};
|
|
27
|
-
/** Label sub-object — `{ children, className, isPageHeading }` */
|
|
28
|
-
label?: PasswordInputLabelProps;
|
|
29
|
-
/** Input name attribute */
|
|
30
|
-
name?: string;
|
|
31
|
-
/** Input id attribute — also used to link label and aria-describedby */
|
|
32
|
-
id?: string;
|
|
33
|
-
/** autocomplete attribute — defaults to "current-password" */
|
|
34
|
-
autoComplete?: string;
|
|
35
|
-
/** i18n: label for the show-password button (default: "Show") */
|
|
36
|
-
showPasswordText?: string;
|
|
37
|
-
/** i18n: label for the hide-password button (default: "Hide") */
|
|
38
|
-
hidePasswordText?: string;
|
|
39
|
-
/** i18n: aria-label for the show-password button */
|
|
40
|
-
showPasswordAriaLabelText?: string;
|
|
41
|
-
/** i18n: aria-label for the hide-password button */
|
|
42
|
-
hidePasswordAriaLabelText?: string;
|
|
43
|
-
/** i18n: text announced when the password becomes visible */
|
|
44
|
-
passwordShownAnnouncementText?: string;
|
|
45
|
-
/** i18n: text announced when the password is hidden */
|
|
46
|
-
passwordHiddenAnnouncementText?: string;
|
|
47
|
-
/** Allow pass-through of any other HTML input attributes */
|
|
48
|
-
[key: string]: unknown;
|
|
49
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as PhaseBanner } from "./PhaseBanner";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ProblemWithService } from "./ProblemWithService";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ConfigureOverallRadios($scope?: Document | Element): void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { ErrorMessageProps } from "../ErrorMessage/ErrorMessage.types";
|
|
2
|
-
import { HintProps } from "../Hint/Hint.types";
|
|
3
|
-
import { LabelProps } from "../Label/Label.types";
|
|
4
|
-
export interface Option {
|
|
5
|
-
reactListKey?: string | number;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export interface SelectProps {
|
|
10
|
-
className?: string;
|
|
11
|
-
"aria-describedby"?: string;
|
|
12
|
-
errorMessage?: ErrorMessageProps;
|
|
13
|
-
formGroup?: {
|
|
14
|
-
className?: string;
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
};
|
|
17
|
-
hint?: HintProps;
|
|
18
|
-
id: string;
|
|
19
|
-
items?: Option[];
|
|
20
|
-
label: LabelProps;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Select } from "./Select";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { To } from "react-router-dom";
|
|
2
|
-
export interface NavigationItem {
|
|
3
|
-
active?: boolean;
|
|
4
|
-
className?: string;
|
|
5
|
-
children?: React.ReactNode;
|
|
6
|
-
href?: string;
|
|
7
|
-
to?: To;
|
|
8
|
-
reactListKey?: string | number;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
}
|
|
11
|
-
export interface ServiceNavigationProps {
|
|
12
|
-
className?: string;
|
|
13
|
-
containerClassName?: string;
|
|
14
|
-
menuButtonLabel?: string;
|
|
15
|
-
navigation?: NavigationItem[];
|
|
16
|
-
navigationClassName?: string;
|
|
17
|
-
navigationLabel?: string;
|
|
18
|
-
serviceName?: string;
|
|
19
|
-
serviceUrlHref?: string;
|
|
20
|
-
serviceUrlTo?: To;
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as ServiceNavigation } from "./ServiceNavigation";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ConfigureOverallSkipLink($scope?: Document | Element): void;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Action } from "../ActionLink/ActionLink.types";
|
|
2
|
-
export interface Row {
|
|
3
|
-
reactListKey?: string;
|
|
4
|
-
key?: {
|
|
5
|
-
className?: string;
|
|
6
|
-
children: React.ReactNode;
|
|
7
|
-
};
|
|
8
|
-
value?: {
|
|
9
|
-
className?: string;
|
|
10
|
-
children: React.ReactNode;
|
|
11
|
-
};
|
|
12
|
-
actions?: {
|
|
13
|
-
items: Action[];
|
|
14
|
-
className?: string;
|
|
15
|
-
};
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
export interface SummaryListProps {
|
|
19
|
-
className?: string;
|
|
20
|
-
rows?: Row[];
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as SummaryList } from "./SummaryList";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
export interface TableItem {
|
|
3
|
-
className?: string;
|
|
4
|
-
format?: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
reactListKey?: string | number;
|
|
7
|
-
[key: string]: unknown;
|
|
8
|
-
}
|
|
9
|
-
export interface TableRow {
|
|
10
|
-
cells: TableItem[];
|
|
11
|
-
reactListKey?: string | number;
|
|
12
|
-
}
|
|
13
|
-
export interface TableProps extends HTMLAttributes<HTMLTableElement> {
|
|
14
|
-
caption?: string;
|
|
15
|
-
captionClassName?: string;
|
|
16
|
-
firstCellIsHeader?: boolean;
|
|
17
|
-
className?: string;
|
|
18
|
-
head?: TableItem[];
|
|
19
|
-
rows?: TableRow[];
|
|
20
|
-
footer?: TableItem[];
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Table } from "./Table";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function ConfigureOverallTabs($scope?: Document | Element): void;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { HTMLAttributes } from "react";
|
|
2
|
-
export interface TabItem {
|
|
3
|
-
id?: string;
|
|
4
|
-
label: string;
|
|
5
|
-
panel: HTMLAttributes<HTMLDivElement>;
|
|
6
|
-
[key: string]: unknown;
|
|
7
|
-
}
|
|
8
|
-
export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
9
|
-
className?: string;
|
|
10
|
-
id: string;
|
|
11
|
-
idPrefix?: string;
|
|
12
|
-
items: TabItem[];
|
|
13
|
-
title?: string;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Tag } from "./Tag";
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { HintProps } from "../Hint/Hint.types";
|
|
3
|
-
export interface TaskListItemProps {
|
|
4
|
-
title: {
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
};
|
|
7
|
-
hint: HintProps;
|
|
8
|
-
status: {
|
|
9
|
-
children?: React.ReactNode;
|
|
10
|
-
tag?: {
|
|
11
|
-
children: React.ReactNode;
|
|
12
|
-
};
|
|
13
|
-
};
|
|
14
|
-
href?: string;
|
|
15
|
-
[key: string]: unknown;
|
|
16
|
-
}
|
|
17
|
-
export interface TaskListProps {
|
|
18
|
-
className?: string;
|
|
19
|
-
idPrefix?: string;
|
|
20
|
-
items: TaskListItemProps[];
|
|
21
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as TaskList } from "./TaskList";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes } from "react";
|
|
2
|
-
import { ErrorMessageProps } from "../ErrorMessage/ErrorMessage.types";
|
|
3
|
-
export interface TextareaProps extends TextareaHTMLAttributes<HTMLTextAreaElement> {
|
|
4
|
-
className?: string;
|
|
5
|
-
"aria-describedby"?: string;
|
|
6
|
-
errorMessage?: ErrorMessageProps;
|
|
7
|
-
formGroup?: {
|
|
8
|
-
className?: string;
|
|
9
|
-
[key: string]: unknown;
|
|
10
|
-
};
|
|
11
|
-
hint?: object;
|
|
12
|
-
label?: object;
|
|
13
|
-
id?: string;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Textarea } from "./Textarea";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as WarningInfo } from "./WarningInfo";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as WarningText } from "./WarningText";
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
export * from "./Accordion";
|
|
2
|
-
export * from "./ActionLink";
|
|
3
|
-
export * from "./BackLink";
|
|
4
|
-
export * from "./Boolean";
|
|
5
|
-
export * from "./Breadcrumbs";
|
|
6
|
-
export * from "./Button";
|
|
7
|
-
export * from "./CardColumn";
|
|
8
|
-
export * from "./CardLayout";
|
|
9
|
-
export * from "./CharacterCount";
|
|
10
|
-
export * from "./Checkboxes";
|
|
11
|
-
export * from "./CookieBanner";
|
|
12
|
-
export * from "./DataNavigation";
|
|
13
|
-
export * from "./DateInput";
|
|
14
|
-
export * from "./Details";
|
|
15
|
-
export * from "./DifferenceNavigation";
|
|
16
|
-
export * from "./ErrorBoundary";
|
|
17
|
-
export * from "./ErrorMessage";
|
|
18
|
-
export * from "./ErrorSummary";
|
|
19
|
-
export * from "./ExitThisPage";
|
|
20
|
-
export * from "./Fieldset";
|
|
21
|
-
export * from "./FileUpload";
|
|
22
|
-
export * from "./Footer";
|
|
23
|
-
export * from "./Header";
|
|
24
|
-
export * from "./Hint";
|
|
25
|
-
export * from "./Input";
|
|
26
|
-
export * from "./InsetText";
|
|
27
|
-
export * from "./Label";
|
|
28
|
-
export * from "./Landing";
|
|
29
|
-
export * from "./LinkWithRef";
|
|
30
|
-
export * from "./Loading";
|
|
31
|
-
export * from "./Main";
|
|
32
|
-
export * from "./NotFoundPage";
|
|
33
|
-
export * from "./NotificationBanner";
|
|
34
|
-
export * from "./Pagination";
|
|
35
|
-
export * from "./Panel";
|
|
36
|
-
export * from "./PasswordInput";
|
|
37
|
-
export * from "./PDFViewer";
|
|
38
|
-
export * from "./PhaseBanner";
|
|
39
|
-
export * from "./ProblemWithService";
|
|
40
|
-
export * from "./Radios";
|
|
41
|
-
export * from "./Select";
|
|
42
|
-
export * from "./ServiceNavigation";
|
|
43
|
-
export * from "./SkipLink";
|
|
44
|
-
export * from "./SummaryList";
|
|
45
|
-
export * from "./Table";
|
|
46
|
-
export * from "./Tabs";
|
|
47
|
-
export * from "./Tag";
|
|
48
|
-
export * from "./TaskList";
|
|
49
|
-
export * from "./Textarea";
|
|
50
|
-
export * from "./WarningInfo";
|
|
51
|
-
export * from "./WarningText";
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { ArgTypes, Tag } from "storybook/internal/csf";
|
|
2
|
-
type AnyJson = boolean | number | string | null | Array<AnyJson> | JsonMap | React.ReactNode | undefined;
|
|
3
|
-
interface JsonMap {
|
|
4
|
-
[key: string]: AnyJson;
|
|
5
|
-
}
|
|
6
|
-
interface AnnotationsConfig {
|
|
7
|
-
parameters?: JsonMap;
|
|
8
|
-
args?: JsonMap;
|
|
9
|
-
argTypes?: ArgTypes;
|
|
10
|
-
tags?: Tag[];
|
|
11
|
-
}
|
|
12
|
-
export interface MetaConfig extends AnnotationsConfig {
|
|
13
|
-
title?: string;
|
|
14
|
-
}
|
|
15
|
-
export interface StoryConfig extends AnnotationsConfig {
|
|
16
|
-
name?: string;
|
|
17
|
-
}
|
|
18
|
-
export type StoryConfigs = Record<string, StoryConfig>;
|
|
19
|
-
export interface DynamicConfig {
|
|
20
|
-
baseCsf: string;
|
|
21
|
-
storiesCsf?: string;
|
|
22
|
-
stories?: () => Promise<StoryConfigs> | StoryConfigs;
|
|
23
|
-
}
|
|
24
|
-
export interface ComponentFixture {
|
|
25
|
-
name: string;
|
|
26
|
-
options?: object;
|
|
27
|
-
hidden?: boolean;
|
|
28
|
-
description?: string;
|
|
29
|
-
previewLayoutModifiers?: unknown[];
|
|
30
|
-
screenshot?: boolean;
|
|
31
|
-
html?: string;
|
|
32
|
-
}
|
|
33
|
-
export interface ComponentFixtureRoot {
|
|
34
|
-
component: string;
|
|
35
|
-
fixtures: ComponentFixture[];
|
|
36
|
-
}
|
|
37
|
-
export {};
|
package/dist/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./components";
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { ComponentFixture, ComponentFixtureRoot } from "../dynamics";
|
|
2
|
-
export default function processExampleData(data: unknown, componentName: string): Array<ComponentFixture>;
|
|
3
|
-
export declare function extractShownFixtures(fixtures: ComponentFixtureRoot): Array<ComponentFixture>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ComponentFixtureRoot, StoryConfigs } from "../dynamics";
|
|
2
|
-
export declare function loadFixturesAsJson(fileLocation: string): Promise<any>;
|
|
3
|
-
export declare function storiesFromFixtures(fixtures: ComponentFixtureRoot): StoryConfigs;
|
|
4
|
-
export declare function storiesFromFixturesSCF(fixtures: ComponentFixtureRoot, hasConfig?: boolean): string;
|
|
5
|
-
export declare function createBaseCSF(fixtureName: string, hasConfig?: boolean): string;
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
type RefAcceptingComponent = React.ComponentType<Record<string, unknown> & {
|
|
3
|
-
ref?: React.Ref<HTMLElement>;
|
|
4
|
-
}>;
|
|
5
|
-
export interface WithRefProps {
|
|
6
|
-
Component: RefAcceptingComponent;
|
|
7
|
-
items?: unknown[];
|
|
8
|
-
[key: string]: unknown;
|
|
9
|
-
}
|
|
10
|
-
export interface InfoSectionProps {
|
|
11
|
-
refName: string;
|
|
12
|
-
Component: RefAcceptingComponent;
|
|
13
|
-
restProps: Record<string, unknown>;
|
|
14
|
-
}
|
|
15
|
-
export {};
|