@hmlr/govuk-react-components-library 1.2.0 → 1.2.1

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 (200) hide show
  1. package/README.md +8 -2
  2. package/bundle-analysis-main.html +1 -1
  3. package/bundle-analysis-pdfvc.html +1 -1
  4. package/dist/PDFViewerCanvas.cjs.js +1979 -12
  5. package/dist/PDFViewerCanvas.cjs.js.map +1 -1
  6. package/dist/PDFViewerCanvas.esm.js +1950 -1
  7. package/dist/PDFViewerCanvas.esm.js.map +1 -1
  8. package/dist/index.cjs.js +2008 -47
  9. package/dist/index.cjs.js.map +1 -1
  10. package/dist/index.d.ts +2 -2
  11. package/dist/index.esm.js +1990 -29
  12. package/dist/index.esm.js.map +1 -1
  13. package/package.json +19 -19
  14. package/scripts/generateStories.mjs +3 -3
  15. package/dist/types/PDFViewerCanvas.d.ts +0 -1
  16. package/dist/types/components/Accordion/Accordion.config.d.ts +0 -5
  17. package/dist/types/components/Accordion/Accordion.d.ts +0 -4
  18. package/dist/types/components/Accordion/Accordion.types.d.ts +0 -20
  19. package/dist/types/components/Accordion/index.d.ts +0 -2
  20. package/dist/types/components/ActionLink/ActionLink.d.ts +0 -4
  21. package/dist/types/components/ActionLink/ActionLink.types.d.ts +0 -13
  22. package/dist/types/components/ActionLink/index.d.ts +0 -1
  23. package/dist/types/components/BackLink/BackLink.d.ts +0 -4
  24. package/dist/types/components/BackLink/BackLink.types.d.ts +0 -9
  25. package/dist/types/components/BackLink/index.d.ts +0 -1
  26. package/dist/types/components/Boolean/Boolean.d.ts +0 -4
  27. package/dist/types/components/Boolean/Boolean.types.d.ts +0 -39
  28. package/dist/types/components/Boolean/OmitKey.d.ts +0 -5
  29. package/dist/types/components/Boolean/index.d.ts +0 -1
  30. package/dist/types/components/Breadcrumbs/Breadcrumbs.d.ts +0 -4
  31. package/dist/types/components/Breadcrumbs/Breadcrumbs.types.d.ts +0 -13
  32. package/dist/types/components/Breadcrumbs/index.d.ts +0 -1
  33. package/dist/types/components/Button/Button.config.d.ts +0 -2
  34. package/dist/types/components/Button/Button.d.ts +0 -4
  35. package/dist/types/components/Button/Button.types.d.ts +0 -13
  36. package/dist/types/components/Button/index.d.ts +0 -2
  37. package/dist/types/components/CardColumn/CardColumn.d.ts +0 -5
  38. package/dist/types/components/CardColumn/CardColumn.types.d.ts +0 -25
  39. package/dist/types/components/CardColumn/index.d.ts +0 -1
  40. package/dist/types/components/CardLayout/CardLayout.d.ts +0 -4
  41. package/dist/types/components/CardLayout/CardLayout.types.d.ts +0 -5
  42. package/dist/types/components/CardLayout/index.d.ts +0 -1
  43. package/dist/types/components/CharacterCount/CharacterCount.config.d.ts +0 -2
  44. package/dist/types/components/CharacterCount/CharacterCount.d.ts +0 -4
  45. package/dist/types/components/CharacterCount/CharacterCount.types.d.ts +0 -12
  46. package/dist/types/components/CharacterCount/index.d.ts +0 -1
  47. package/dist/types/components/Checkboxes/Checkboxes.config.d.ts +0 -1
  48. package/dist/types/components/Checkboxes/Checkboxes.d.ts +0 -4
  49. package/dist/types/components/Checkboxes/Checkboxes.types.d.ts +0 -3
  50. package/dist/types/components/Checkboxes/index.d.ts +0 -2
  51. package/dist/types/components/CookieBanner/CookieBanner.d.ts +0 -4
  52. package/dist/types/components/CookieBanner/CookieBanner.types.d.ts +0 -21
  53. package/dist/types/components/CookieBanner/index.d.ts +0 -1
  54. package/dist/types/components/DataNavigation/DataNavigation.d.ts +0 -4
  55. package/dist/types/components/DataNavigation/DataNavigation.types.d.ts +0 -34
  56. package/dist/types/components/DataNavigation/index.d.ts +0 -1
  57. package/dist/types/components/DateInput/DateInput.d.ts +0 -4
  58. package/dist/types/components/DateInput/DateInput.types.d.ts +0 -29
  59. package/dist/types/components/DateInput/index.d.ts +0 -1
  60. package/dist/types/components/Details/Details.d.ts +0 -4
  61. package/dist/types/components/Details/Details.types.d.ts +0 -5
  62. package/dist/types/components/Details/index.d.ts +0 -1
  63. package/dist/types/components/DifferenceNavigation/DifferenceNavigation.d.ts +0 -4
  64. package/dist/types/components/DifferenceNavigation/DifferenceNavigation.types.d.ts +0 -32
  65. package/dist/types/components/DifferenceNavigation/index.d.ts +0 -1
  66. package/dist/types/components/ErrorBoundary/ErrorBoundary.d.ts +0 -9
  67. package/dist/types/components/ErrorBoundary/ErrorBoundary.types.d.ts +0 -11
  68. package/dist/types/components/ErrorBoundary/index.d.ts +0 -1
  69. package/dist/types/components/ErrorMessage/ErrorMessage.d.ts +0 -4
  70. package/dist/types/components/ErrorMessage/ErrorMessage.types.d.ts +0 -6
  71. package/dist/types/components/ErrorMessage/index.d.ts +0 -1
  72. package/dist/types/components/ErrorSummary/ErrorSummary.config.d.ts +0 -2
  73. package/dist/types/components/ErrorSummary/ErrorSummary.d.ts +0 -4
  74. package/dist/types/components/ErrorSummary/ErrorSummary.types.d.ts +0 -13
  75. package/dist/types/components/ErrorSummary/index.d.ts +0 -2
  76. package/dist/types/components/ExitThisPage/ExitThisPage.config.d.ts +0 -1
  77. package/dist/types/components/ExitThisPage/ExitThisPage.d.ts +0 -4
  78. package/dist/types/components/ExitThisPage/ExitThisPage.types.d.ts +0 -17
  79. package/dist/types/components/ExitThisPage/index.d.ts +0 -2
  80. package/dist/types/components/Fieldset/Fieldset.d.ts +0 -4
  81. package/dist/types/components/Fieldset/Fieldset.types.d.ts +0 -12
  82. package/dist/types/components/Fieldset/index.d.ts +0 -1
  83. package/dist/types/components/FileUpload/FileUpload.d.ts +0 -4
  84. package/dist/types/components/FileUpload/FileUpload.types.d.ts +0 -15
  85. package/dist/types/components/FileUpload/index.d.ts +0 -1
  86. package/dist/types/components/Footer/Footer.d.ts +0 -4
  87. package/dist/types/components/Footer/Footer.types.d.ts +0 -40
  88. package/dist/types/components/Footer/index.d.ts +0 -1
  89. package/dist/types/components/Header/Header.config.d.ts +0 -1
  90. package/dist/types/components/Header/Header.d.ts +0 -4
  91. package/dist/types/components/Header/Header.types.d.ts +0 -28
  92. package/dist/types/components/Header/index.d.ts +0 -2
  93. package/dist/types/components/Hint/Hint.d.ts +0 -4
  94. package/dist/types/components/Hint/Hint.types.d.ts +0 -4
  95. package/dist/types/components/Hint/index.d.ts +0 -1
  96. package/dist/types/components/Input/Input.d.ts +0 -4
  97. package/dist/types/components/Input/Input.types.d.ts +0 -22
  98. package/dist/types/components/Input/index.d.ts +0 -1
  99. package/dist/types/components/InsetText/InsetText.d.ts +0 -4
  100. package/dist/types/components/InsetText/InsetText.types.d.ts +0 -4
  101. package/dist/types/components/InsetText/index.d.ts +0 -1
  102. package/dist/types/components/Label/Label.d.ts +0 -4
  103. package/dist/types/components/Label/Label.types.d.ts +0 -6
  104. package/dist/types/components/Label/index.d.ts +0 -1
  105. package/dist/types/components/Landing/Landing.d.ts +0 -4
  106. package/dist/types/components/Landing/Landing.types.d.ts +0 -4
  107. package/dist/types/components/Landing/index.d.ts +0 -1
  108. package/dist/types/components/LinkWithRef/LinkWithRef.d.ts +0 -4
  109. package/dist/types/components/LinkWithRef/LinkWithRef.types.d.ts +0 -9
  110. package/dist/types/components/LinkWithRef/index.d.ts +0 -1
  111. package/dist/types/components/Loading/Loading.d.ts +0 -5
  112. package/dist/types/components/Loading/Loading.types.d.ts +0 -4
  113. package/dist/types/components/Loading/index.d.ts +0 -1
  114. package/dist/types/components/Main/Main.d.ts +0 -4
  115. package/dist/types/components/Main/Main.types.d.ts +0 -5
  116. package/dist/types/components/Main/index.d.ts +0 -1
  117. package/dist/types/components/NotFoundPage/NotFoundPage.d.ts +0 -3
  118. package/dist/types/components/NotFoundPage/index.d.ts +0 -1
  119. package/dist/types/components/NotificationBanner/NotificationBanner.config.d.ts +0 -2
  120. package/dist/types/components/NotificationBanner/NotificationBanner.d.ts +0 -4
  121. package/dist/types/components/NotificationBanner/NotificationBanner.types.d.ts +0 -12
  122. package/dist/types/components/NotificationBanner/index.d.ts +0 -1
  123. package/dist/types/components/PDFViewer/ObjectToQueryString.d.ts +0 -1
  124. package/dist/types/components/PDFViewer/PDFViewer.d.ts +0 -4
  125. package/dist/types/components/PDFViewer/PDFViewer.types.d.ts +0 -25
  126. package/dist/types/components/PDFViewer/PDFViewerBackend.d.ts +0 -2
  127. package/dist/types/components/PDFViewer/ResolvePDFSource.d.ts +0 -27
  128. package/dist/types/components/PDFViewer/Slugify.d.ts +0 -1
  129. package/dist/types/components/PDFViewer/index.d.ts +0 -2
  130. package/dist/types/components/PDFViewer/testutilities/SampleBase64.d.ts +0 -44
  131. package/dist/types/components/PDFViewerCanvas/PDFViewerCanvas.d.ts +0 -9
  132. package/dist/types/components/PDFViewerCanvas/PDFViewerCanvas.types.d.ts +0 -38
  133. package/dist/types/components/PDFViewerCanvas/index.d.ts +0 -1
  134. package/dist/types/components/Pagination/NavigationButton.d.ts +0 -3
  135. package/dist/types/components/Pagination/Pagination.d.ts +0 -4
  136. package/dist/types/components/Pagination/Pagination.types.d.ts +0 -32
  137. package/dist/types/components/Pagination/SvgIcon.d.ts +0 -3
  138. package/dist/types/components/Pagination/UsePagination.d.ts +0 -9
  139. package/dist/types/components/Pagination/index.d.ts +0 -3
  140. package/dist/types/components/Panel/Panel.d.ts +0 -4
  141. package/dist/types/components/Panel/Panel.types.d.ts +0 -7
  142. package/dist/types/components/Panel/index.d.ts +0 -1
  143. package/dist/types/components/PasswordInput/PasswordInput.config.d.ts +0 -1
  144. package/dist/types/components/PasswordInput/PasswordInput.d.ts +0 -4
  145. package/dist/types/components/PasswordInput/PasswordInput.types.d.ts +0 -49
  146. package/dist/types/components/PasswordInput/index.d.ts +0 -2
  147. package/dist/types/components/PhaseBanner/PhaseBanner.d.ts +0 -4
  148. package/dist/types/components/PhaseBanner/PhaseBanner.types.d.ts +0 -6
  149. package/dist/types/components/PhaseBanner/index.d.ts +0 -1
  150. package/dist/types/components/ProblemWithService/ProblemWithService.d.ts +0 -4
  151. package/dist/types/components/ProblemWithService/ProblemWithService.types.d.ts +0 -7
  152. package/dist/types/components/ProblemWithService/index.d.ts +0 -1
  153. package/dist/types/components/Radios/Radios.config.d.ts +0 -1
  154. package/dist/types/components/Radios/Radios.d.ts +0 -4
  155. package/dist/types/components/Radios/Radios.types.d.ts +0 -7
  156. package/dist/types/components/Radios/index.d.ts +0 -2
  157. package/dist/types/components/Select/Select.d.ts +0 -4
  158. package/dist/types/components/Select/Select.types.d.ts +0 -21
  159. package/dist/types/components/Select/index.d.ts +0 -1
  160. package/dist/types/components/ServiceNavigation/ServiceNavigation.d.ts +0 -4
  161. package/dist/types/components/ServiceNavigation/ServiceNavigation.types.d.ts +0 -21
  162. package/dist/types/components/ServiceNavigation/index.d.ts +0 -1
  163. package/dist/types/components/SkipLink/SkipLink.config.d.ts +0 -1
  164. package/dist/types/components/SkipLink/SkipLink.d.ts +0 -4
  165. package/dist/types/components/SkipLink/SkipLink.types.d.ts +0 -5
  166. package/dist/types/components/SkipLink/index.d.ts +0 -2
  167. package/dist/types/components/SummaryList/SummaryList.d.ts +0 -4
  168. package/dist/types/components/SummaryList/SummaryList.types.d.ts +0 -22
  169. package/dist/types/components/SummaryList/index.d.ts +0 -1
  170. package/dist/types/components/Table/Table.d.ts +0 -4
  171. package/dist/types/components/Table/Table.types.d.ts +0 -21
  172. package/dist/types/components/Table/index.d.ts +0 -1
  173. package/dist/types/components/Tabs/Tabs.config.d.ts +0 -1
  174. package/dist/types/components/Tabs/Tabs.d.ts +0 -4
  175. package/dist/types/components/Tabs/Tabs.types.d.ts +0 -14
  176. package/dist/types/components/Tabs/index.d.ts +0 -2
  177. package/dist/types/components/Tag/Tag.d.ts +0 -4
  178. package/dist/types/components/Tag/Tag.types.d.ts +0 -4
  179. package/dist/types/components/Tag/index.d.ts +0 -1
  180. package/dist/types/components/TaskList/TaskList.d.ts +0 -4
  181. package/dist/types/components/TaskList/TaskList.types.d.ts +0 -21
  182. package/dist/types/components/TaskList/index.d.ts +0 -1
  183. package/dist/types/components/Textarea/Textarea.d.ts +0 -4
  184. package/dist/types/components/Textarea/Textarea.types.d.ts +0 -14
  185. package/dist/types/components/Textarea/index.d.ts +0 -1
  186. package/dist/types/components/WarningInfo/WarningInfo.d.ts +0 -4
  187. package/dist/types/components/WarningInfo/WarningInfo.types.d.ts +0 -8
  188. package/dist/types/components/WarningInfo/index.d.ts +0 -1
  189. package/dist/types/components/WarningText/WarningText.d.ts +0 -4
  190. package/dist/types/components/WarningText/WarningText.types.d.ts +0 -4
  191. package/dist/types/components/WarningText/index.d.ts +0 -1
  192. package/dist/types/components/index.d.ts +0 -51
  193. package/dist/types/dynamics/index.d.ts +0 -3
  194. package/dist/types/dynamics/types.d.ts +0 -37
  195. package/dist/types/index.d.ts +0 -1
  196. package/dist/types/utils/ProcessExampleData.d.ts +0 -3
  197. package/dist/types/utils/StoriesFromFixtures.d.ts +0 -5
  198. package/dist/types/utils/TitleCase.d.ts +0 -2
  199. package/dist/types/utils/WithReference.d.ts +0 -5
  200. package/dist/types/utils/WithReference.types.d.ts +0 -15
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { NavigationButtonProps } from "./Pagination.types";
3
- export declare const NavigationButton: React.FC<NavigationButtonProps>;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { PaginationProps } from "./Pagination.types";
3
- declare const Pagination: React.FC<PaginationProps>;
4
- export default Pagination;
@@ -1,32 +0,0 @@
1
- export interface PaginationItemProps {
2
- /** Page number or label (e.g. 1, "one"). Omit when ellipsis is true. */
3
- number?: number | string;
4
- href?: string;
5
- current?: boolean;
6
- ellipsis?: boolean;
7
- }
8
- export interface PaginationNavProps {
9
- href: string;
10
- /** Override the default "Previous" / "Next" link text.
11
- * Populated automatically from fixture `text` by ProcessExampleData (text → children). */
12
- children?: React.ReactNode;
13
- /** Secondary label rendered below the link title (block-layout mode). */
14
- labelText?: string;
15
- }
16
- export interface PaginationProps {
17
- previous?: PaginationNavProps;
18
- next?: PaginationNavProps;
19
- items?: PaginationItemProps[];
20
- className?: string;
21
- }
22
- export interface SvgIconProps {
23
- type: string;
24
- }
25
- export interface NavigationButtonProps {
26
- href: string;
27
- type: "next" | "previous";
28
- /** Overrides the default "Previous" / "Next" label (from fixture `text` → `children`). */
29
- children?: React.ReactNode;
30
- /** Optional secondary label shown beneath the link title. */
31
- labelText?: string;
32
- }
@@ -1,3 +0,0 @@
1
- import React from "react";
2
- import { SvgIconProps } from "./Pagination.types";
3
- export declare const SvgIcon: React.FC<SvgIconProps & React.SVGProps<SVGSVGElement>>;
@@ -1,9 +0,0 @@
1
- export declare const DOTS = "...";
2
- interface UsePaginationProps {
3
- totalCount: number;
4
- pageSize: number;
5
- siblingCount?: number;
6
- currentPage: number;
7
- }
8
- export declare const UsePagination: ({ totalCount, pageSize, siblingCount, currentPage, }: UsePaginationProps) => (number | string)[] | undefined;
9
- export {};
@@ -1,3 +0,0 @@
1
- export { default as Pagination } from "./Pagination";
2
- export { UsePagination, DOTS } from "./UsePagination";
3
- export type { PaginationProps, PaginationNavProps, PaginationItemProps, } from "./Pagination.types";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { PanelProps } from "./Panel.types";
3
- declare const Panel: React.FC<PanelProps>;
4
- export default Panel;
@@ -1,7 +0,0 @@
1
- import { ElementType, HTMLAttributes } from "react";
2
- export interface PanelProps extends HTMLAttributes<HTMLDivElement> {
3
- headingLevel?: ElementType;
4
- className?: string;
5
- titleChildren: React.ReactNode;
6
- children?: React.ReactNode;
7
- }
@@ -1 +0,0 @@
1
- export { default as Panel } from "./Panel";
@@ -1 +0,0 @@
1
- export declare function ConfigureOverallPasswordInput($scope?: Document | Element): void;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { PasswordInputProps } from "./PasswordInput.types";
3
- declare const PasswordInput: React.FC<PasswordInputProps & React.InputHTMLAttributes<HTMLInputElement>>;
4
- export default PasswordInput;
@@ -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,2 +0,0 @@
1
- export { default as PasswordInput } from "./PasswordInput";
2
- export * from "./PasswordInput.config";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { PhaseBannerProps } from "./PhaseBanner.types";
3
- declare const PhaseBanner: React.FC<PhaseBannerProps>;
4
- export default PhaseBanner;
@@ -1,6 +0,0 @@
1
- import { TagProps } from "../Tag/Tag.types";
2
- export interface PhaseBannerProps {
3
- className?: string;
4
- tag?: TagProps;
5
- children: React.ReactNode;
6
- }
@@ -1 +0,0 @@
1
- export { default as PhaseBanner } from "./PhaseBanner";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { ProblemWithServiceProps } from "./ProblemWithService.types";
3
- declare const ProblemWithService: React.FC<ProblemWithServiceProps>;
4
- export default ProblemWithService;
@@ -1,7 +0,0 @@
1
- export interface ProblemWithServiceProps {
2
- message?: string;
3
- applicationName?: string;
4
- applicationRoute?: string;
5
- reportingLink?: string;
6
- basePageName?: string;
7
- }
@@ -1 +0,0 @@
1
- export { default as ProblemWithService } from "./ProblemWithService";
@@ -1 +0,0 @@
1
- export declare function ConfigureOverallRadios($scope?: Document | Element): void;
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { RadiosProps } from "./Radios.types";
3
- declare const Radios: React.FC<RadiosProps>;
4
- export default Radios;
@@ -1,7 +0,0 @@
1
- import { BooleanItem } from "../Boolean/Boolean.types";
2
- export interface RadiosProps {
3
- value?: string;
4
- defaultValue?: string;
5
- items?: BooleanItem[];
6
- [key: string]: unknown;
7
- }
@@ -1,2 +0,0 @@
1
- export { default as Radios } from "./Radios";
2
- export * from "./Radios.config";
@@ -1,4 +0,0 @@
1
- import React, { SelectHTMLAttributes } from "react";
2
- import { SelectProps } from "./Select.types";
3
- declare const Select: React.FC<SelectProps & SelectHTMLAttributes<HTMLSelectElement>>;
4
- export default Select;
@@ -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,4 +0,0 @@
1
- import React, { HTMLAttributes } from "react";
2
- import { ServiceNavigationProps } from "./ServiceNavigation.types";
3
- declare const ServiceNavigation: React.FC<ServiceNavigationProps & HTMLAttributes<HTMLDivElement>>;
4
- export default ServiceNavigation;
@@ -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,4 +0,0 @@
1
- import React from "react";
2
- import { SkipLinkProps } from "./SkipLink.types";
3
- declare const SkipLink: React.FC<SkipLinkProps & React.HTMLAttributes<HTMLOrSVGElement>>;
4
- export default SkipLink;
@@ -1,5 +0,0 @@
1
- export interface SkipLinkProps {
2
- href: string;
3
- className: string;
4
- children?: React.ReactNode;
5
- }
@@ -1,2 +0,0 @@
1
- export { default as SkipLink } from "./SkipLink";
2
- export * from "./SkipLink.config";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { SummaryListProps } from "./SummaryList.types";
3
- declare const SummaryList: React.FC<SummaryListProps>;
4
- export default SummaryList;
@@ -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,4 +0,0 @@
1
- import React from "react";
2
- import { TableProps } from "./Table.types";
3
- declare const Table: React.FC<TableProps>;
4
- export default Table;
@@ -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,4 +0,0 @@
1
- import React from "react";
2
- import { TabsProps } from "./Tabs.types";
3
- declare const Tabs: React.FC<TabsProps>;
4
- export default Tabs;
@@ -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,2 +0,0 @@
1
- export { default as Tabs } from "./Tabs";
2
- export * from "./Tabs.config";
@@ -1,4 +0,0 @@
1
- import React from "react";
2
- import { TagProps } from "./Tag.types";
3
- declare const Tag: React.FC<TagProps & React.HTMLAttributes<HTMLOrSVGElement>>;
4
- export default Tag;
@@ -1,4 +0,0 @@
1
- export interface TagProps {
2
- className?: string;
3
- children?: React.ReactNode;
4
- }
@@ -1 +0,0 @@
1
- export { default as Tag } from "./Tag";
@@ -1,4 +0,0 @@
1
- import React, { HTMLAttributes } from "react";
2
- import { TaskListProps } from "./TaskList.types";
3
- declare const TaskList: React.FC<TaskListProps & HTMLAttributes<HTMLUListElement>>;
4
- export default TaskList;
@@ -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,4 +0,0 @@
1
- import React from "react";
2
- import { TextareaProps } from "./Textarea.types";
3
- declare const Textarea: React.FC<TextareaProps>;
4
- export default Textarea;
@@ -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,4 +0,0 @@
1
- import React from "react";
2
- import { WarningInfoProps } from "./WarningInfo.types";
3
- declare const WarningInfo: React.FC<WarningInfoProps>;
4
- export default WarningInfo;
@@ -1,8 +0,0 @@
1
- export interface WarningInfoProps {
2
- messageHeading?: string;
3
- message?: string;
4
- advice?: string;
5
- applicationName?: string;
6
- applicationRoute?: string;
7
- basePageName?: string;
8
- }
@@ -1 +0,0 @@
1
- export { default as WarningInfo } from "./WarningInfo";
@@ -1,4 +0,0 @@
1
- import React, { HTMLAttributes } from "react";
2
- import { WarningTextProps } from "./WarningText.types";
3
- declare const WarningText: React.FC<WarningTextProps & HTMLAttributes<HTMLDivElement>>;
4
- export default WarningText;
@@ -1,4 +0,0 @@
1
- export interface WarningTextProps {
2
- children?: React.ReactNode;
3
- className?: string;
4
- }
@@ -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,3 +0,0 @@
1
- import type { DynamicConfig } from "./types";
2
- export declare const defineStories: (config: DynamicConfig) => DynamicConfig;
3
- export * from "./types";
@@ -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 {};
@@ -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,2 +0,0 @@
1
- export declare function titleCase(str: string): string;
2
- export declare function titleCaseNoSpace(str: string): string;
@@ -1,5 +0,0 @@
1
- import { FC } from "react";
2
- import { WithRefProps } from "./WithReference.types";
3
- declare const WithRef: FC<WithRefProps>;
4
- declare const WithItemRefs: FC<WithRefProps>;
5
- export { WithRef, WithItemRefs };
@@ -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 {};