govuk-react 0.10.6 → 1.0.0-alpha.0
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/LICENSE +21 -0
- package/README.md +45 -52
- package/dist/accordion.d.ts +4 -0
- package/dist/accordion.js +4 -0
- package/dist/accordion.js.map +1 -0
- package/dist/back-link.d.ts +21 -0
- package/dist/back-link.js +4 -0
- package/dist/back-link.js.map +1 -0
- package/dist/body.d.ts +1 -0
- package/dist/body.js +4 -0
- package/dist/body.js.map +1 -0
- package/dist/breadcrumbs.d.ts +1 -0
- package/dist/breadcrumbs.js +3 -0
- package/dist/breadcrumbs.js.map +1 -0
- package/dist/button.d.ts +26 -0
- package/dist/button.js +4 -0
- package/dist/button.js.map +1 -0
- package/dist/caption.d.ts +1 -0
- package/dist/caption.js +4 -0
- package/dist/caption.js.map +1 -0
- package/dist/character-count.d.ts +4 -0
- package/dist/character-count.js +4 -0
- package/dist/character-count.js.map +1 -0
- package/dist/checkboxes.d.ts +3 -0
- package/dist/checkboxes.js +4 -0
- package/dist/checkboxes.js.map +1 -0
- package/dist/chunk-2KPHO7N2.js +3 -0
- package/dist/chunk-2KPHO7N2.js.map +1 -0
- package/dist/chunk-2W35PR6E.js +3 -0
- package/dist/chunk-2W35PR6E.js.map +1 -0
- package/dist/chunk-57K6B6V2.js +38 -0
- package/dist/chunk-57K6B6V2.js.map +1 -0
- package/dist/chunk-5RYJUAI3.js +3 -0
- package/dist/chunk-5RYJUAI3.js.map +1 -0
- package/dist/chunk-5YT2PQAF.js +3 -0
- package/dist/chunk-5YT2PQAF.js.map +1 -0
- package/dist/chunk-B33BQUXM.js +8 -0
- package/dist/chunk-B33BQUXM.js.map +1 -0
- package/dist/chunk-BAXFWXMR.js +41 -0
- package/dist/chunk-BAXFWXMR.js.map +1 -0
- package/dist/chunk-BDIDAVNV.js +22 -0
- package/dist/chunk-BDIDAVNV.js.map +1 -0
- package/dist/chunk-D6TMELAY.js +3 -0
- package/dist/chunk-D6TMELAY.js.map +1 -0
- package/dist/chunk-DHTWPFZO.js +8 -0
- package/dist/chunk-DHTWPFZO.js.map +1 -0
- package/dist/chunk-DK2FZF7U.js +3 -0
- package/dist/chunk-DK2FZF7U.js.map +1 -0
- package/dist/chunk-EMM6RZT7.js +3 -0
- package/dist/chunk-EMM6RZT7.js.map +1 -0
- package/dist/chunk-EMNBPB3L.js +8 -0
- package/dist/chunk-EMNBPB3L.js.map +1 -0
- package/dist/chunk-FE2OFAA5.js +8 -0
- package/dist/chunk-FE2OFAA5.js.map +1 -0
- package/dist/chunk-FNDQEOKW.js +20 -0
- package/dist/chunk-FNDQEOKW.js.map +1 -0
- package/dist/chunk-HHH5BEO6.js +3 -0
- package/dist/chunk-HHH5BEO6.js.map +1 -0
- package/dist/chunk-HRURRTAU.js +83 -0
- package/dist/chunk-HRURRTAU.js.map +1 -0
- package/dist/chunk-IFETUZ4S.js +3 -0
- package/dist/chunk-IFETUZ4S.js.map +1 -0
- package/dist/chunk-JLNRFYFI.js +3 -0
- package/dist/chunk-JLNRFYFI.js.map +1 -0
- package/dist/chunk-K7VSNNQD.js +8 -0
- package/dist/chunk-K7VSNNQD.js.map +1 -0
- package/dist/chunk-KFWTQTVJ.js +3 -0
- package/dist/chunk-KFWTQTVJ.js.map +1 -0
- package/dist/chunk-L4GCVMBX.js +3 -0
- package/dist/chunk-L4GCVMBX.js.map +1 -0
- package/dist/chunk-L4O7OXGY.js +151 -0
- package/dist/chunk-L4O7OXGY.js.map +1 -0
- package/dist/chunk-LG7D7X4T.js +8 -0
- package/dist/chunk-LG7D7X4T.js.map +1 -0
- package/dist/chunk-M5BQAPSC.js +8 -0
- package/dist/chunk-M5BQAPSC.js.map +1 -0
- package/dist/chunk-NN44HUS7.js +64 -0
- package/dist/chunk-NN44HUS7.js.map +1 -0
- package/dist/chunk-NV2BSK6G.js +3 -0
- package/dist/chunk-NV2BSK6G.js.map +1 -0
- package/dist/chunk-OCGJIH5X.js +159 -0
- package/dist/chunk-OCGJIH5X.js.map +1 -0
- package/dist/chunk-OQVOKH2T.js +8 -0
- package/dist/chunk-OQVOKH2T.js.map +1 -0
- package/dist/chunk-OWBD4KZC.js +115 -0
- package/dist/chunk-OWBD4KZC.js.map +1 -0
- package/dist/chunk-PM2AAFY4.js +35 -0
- package/dist/chunk-PM2AAFY4.js.map +1 -0
- package/dist/chunk-PNMADTQQ.js +3 -0
- package/dist/chunk-PNMADTQQ.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +9 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-QOWZLJK4.js +3 -0
- package/dist/chunk-QOWZLJK4.js.map +1 -0
- package/dist/chunk-QV7AS734.js +98 -0
- package/dist/chunk-QV7AS734.js.map +1 -0
- package/dist/chunk-RC24GP47.js +8 -0
- package/dist/chunk-RC24GP47.js.map +1 -0
- package/dist/chunk-RIB3ADHK.js +8 -0
- package/dist/chunk-RIB3ADHK.js.map +1 -0
- package/dist/chunk-RODK5NYM.js +3 -0
- package/dist/chunk-RODK5NYM.js.map +1 -0
- package/dist/chunk-SKQVJZMM.js +79 -0
- package/dist/chunk-SKQVJZMM.js.map +1 -0
- package/dist/chunk-SMUQZFJ7.js +179 -0
- package/dist/chunk-SMUQZFJ7.js.map +1 -0
- package/dist/chunk-SVIOO5V5.js +109 -0
- package/dist/chunk-SVIOO5V5.js.map +1 -0
- package/dist/chunk-SYW45KJ5.js +3 -0
- package/dist/chunk-SYW45KJ5.js.map +1 -0
- package/dist/chunk-T56AQZA4.js +3 -0
- package/dist/chunk-T56AQZA4.js.map +1 -0
- package/dist/chunk-TK6FAARU.js +12 -0
- package/dist/chunk-TK6FAARU.js.map +1 -0
- package/dist/chunk-TQOVKJLU.js +78 -0
- package/dist/chunk-TQOVKJLU.js.map +1 -0
- package/dist/chunk-U2FEV65D.js +8 -0
- package/dist/chunk-U2FEV65D.js.map +1 -0
- package/dist/chunk-UHX5TMH6.js +49 -0
- package/dist/chunk-UHX5TMH6.js.map +1 -0
- package/dist/chunk-VB3GA2KO.js +3 -0
- package/dist/chunk-VB3GA2KO.js.map +1 -0
- package/dist/chunk-VGZUAGCQ.js +8 -0
- package/dist/chunk-VGZUAGCQ.js.map +1 -0
- package/dist/chunk-VKUBJY23.js +8 -0
- package/dist/chunk-VKUBJY23.js.map +1 -0
- package/dist/chunk-VQ4FRNV3.js +8 -0
- package/dist/chunk-VQ4FRNV3.js.map +1 -0
- package/dist/chunk-W7RN6ITL.js +8 -0
- package/dist/chunk-W7RN6ITL.js.map +1 -0
- package/dist/chunk-WFHQPUFE.js +3 -0
- package/dist/chunk-WFHQPUFE.js.map +1 -0
- package/dist/chunk-XO7OW5TM.js +3 -0
- package/dist/chunk-XO7OW5TM.js.map +1 -0
- package/dist/chunk-YOBXV2EG.js +101 -0
- package/dist/chunk-YOBXV2EG.js.map +1 -0
- package/dist/chunk-YYDYVLVS.js +47 -0
- package/dist/chunk-YYDYVLVS.js.map +1 -0
- package/dist/chunk-Z4J4DQCF.js +8 -0
- package/dist/chunk-Z4J4DQCF.js.map +1 -0
- package/dist/chunk-ZHHORZMC.js +3 -0
- package/dist/chunk-ZHHORZMC.js.map +1 -0
- package/dist/cookie-banner.d.ts +1 -0
- package/dist/cookie-banner.js +3 -0
- package/dist/cookie-banner.js.map +1 -0
- package/dist/date-input.d.ts +1 -0
- package/dist/date-input.js +3 -0
- package/dist/date-input.js.map +1 -0
- package/dist/details.d.ts +1 -0
- package/dist/details.js +3 -0
- package/dist/details.js.map +1 -0
- package/dist/document-footer-metadata.d.ts +2 -0
- package/dist/document-footer-metadata.js +4 -0
- package/dist/document-footer-metadata.js.map +1 -0
- package/dist/error-message.d.ts +1 -0
- package/dist/error-message.js +4 -0
- package/dist/error-message.js.map +1 -0
- package/dist/error-summary.d.ts +3 -0
- package/dist/error-summary.js +4 -0
- package/dist/error-summary.js.map +1 -0
- package/dist/exit-this-page.d.ts +4 -0
- package/dist/exit-this-page.js +4 -0
- package/dist/exit-this-page.js.map +1 -0
- package/dist/feedback.d.ts +1 -0
- package/dist/feedback.js +3 -0
- package/dist/feedback.js.map +1 -0
- package/dist/fieldset.d.ts +1 -0
- package/dist/fieldset.js +3 -0
- package/dist/fieldset.js.map +1 -0
- package/dist/file-upload.d.ts +90 -0
- package/dist/file-upload.js +4 -0
- package/dist/file-upload.js.map +1 -0
- package/dist/footer.d.ts +1 -0
- package/dist/footer.js +3 -0
- package/dist/footer.js.map +1 -0
- package/dist/form-group.d.ts +1 -0
- package/dist/form-group.js +4 -0
- package/dist/form-group.js.map +1 -0
- package/dist/generic-header.d.ts +1 -0
- package/dist/generic-header.js +3 -0
- package/dist/generic-header.js.map +1 -0
- package/dist/grid-column.d.ts +1 -0
- package/dist/grid-column.js +4 -0
- package/dist/grid-column.js.map +1 -0
- package/dist/grid-row.d.ts +1 -0
- package/dist/grid-row.js +4 -0
- package/dist/grid-row.js.map +1 -0
- package/dist/header.d.ts +1 -0
- package/dist/header.js +3 -0
- package/dist/header.js.map +1 -0
- package/dist/heading.d.ts +1 -0
- package/dist/heading.js +4 -0
- package/dist/heading.js.map +1 -0
- package/dist/hint.d.ts +1 -0
- package/dist/hint.js +4 -0
- package/dist/hint.js.map +1 -0
- package/dist/index-7cuUiEo3.d.ts +98 -0
- package/dist/index-B8fw-F9t.d.ts +22 -0
- package/dist/index-BBckYYWt.d.ts +131 -0
- package/dist/index-BOPiKua4.d.ts +61 -0
- package/dist/index-BOfUYry5.d.ts +22 -0
- package/dist/index-BP18qbj1.d.ts +22 -0
- package/dist/index-BQaNJq4d.d.ts +22 -0
- package/dist/index-BnYaP7AC.d.ts +57 -0
- package/dist/index-C-c5LroN.d.ts +22 -0
- package/dist/index-CAxOsfPr.d.ts +22 -0
- package/dist/index-CHKQTetM.d.ts +52 -0
- package/dist/index-CWRQhs3p.d.ts +55 -0
- package/dist/index-CidkuScr.d.ts +22 -0
- package/dist/index-D-5h70y_.d.ts +22 -0
- package/dist/index-DDvVZ8mX.d.ts +22 -0
- package/dist/index-DQaFKwpy.d.ts +106 -0
- package/dist/index-DWibEGiF.d.ts +22 -0
- package/dist/index-D_wOwhn9.d.ts +127 -0
- package/dist/index-DhPVSZNZ.d.ts +40 -0
- package/dist/index-DhjWVeDK.d.ts +22 -0
- package/dist/index-DnvlWvry.d.ts +54 -0
- package/dist/index-Dr0S9iUZ.d.ts +22 -0
- package/dist/index-Dw9RbQVO.d.ts +22 -0
- package/dist/index-MxQB65RM.d.ts +48 -0
- package/dist/index-RZtIJBvk.d.ts +22 -0
- package/dist/index-TgEbRgDh.d.ts +22 -0
- package/dist/index-a8sYZpTj.d.ts +77 -0
- package/dist/index-rQaOtoWF.d.ts +59 -0
- package/dist/index-trAlT6HP.d.ts +22 -0
- package/dist/index-vBukON0x.d.ts +50 -0
- package/dist/index.d.ts +94 -0
- package/dist/index.js +61 -0
- package/dist/index.js.map +1 -0
- package/dist/input.d.ts +1 -0
- package/dist/input.js +3 -0
- package/dist/input.js.map +1 -0
- package/dist/inset-text.d.ts +1 -0
- package/dist/inset-text.js +4 -0
- package/dist/inset-text.js.map +1 -0
- package/dist/label.d.ts +1 -0
- package/dist/label.js +4 -0
- package/dist/label.js.map +1 -0
- package/dist/language-navigation.d.ts +1 -0
- package/dist/language-navigation.js +3 -0
- package/dist/language-navigation.js.map +1 -0
- package/dist/link.d.ts +1 -0
- package/dist/link.js +4 -0
- package/dist/link.js.map +1 -0
- package/dist/list.d.ts +1 -0
- package/dist/list.js +4 -0
- package/dist/list.js.map +1 -0
- package/dist/loading-box.d.ts +39 -0
- package/dist/loading-box.js +4 -0
- package/dist/loading-box.js.map +1 -0
- package/dist/main-wrapper.d.ts +1 -0
- package/dist/main-wrapper.js +4 -0
- package/dist/main-wrapper.js.map +1 -0
- package/dist/modal.d.ts +4 -0
- package/dist/modal.js +4 -0
- package/dist/modal.js.map +1 -0
- package/dist/notification-banner.d.ts +3 -0
- package/dist/notification-banner.js +4 -0
- package/dist/notification-banner.js.map +1 -0
- package/dist/page.d.ts +27 -0
- package/dist/page.js +7 -0
- package/dist/page.js.map +1 -0
- package/dist/pagination.d.ts +1 -0
- package/dist/pagination.js +3 -0
- package/dist/pagination.js.map +1 -0
- package/dist/panel.d.ts +1 -0
- package/dist/panel.js +3 -0
- package/dist/panel.js.map +1 -0
- package/dist/password-input.d.ts +4 -0
- package/dist/password-input.js +4 -0
- package/dist/password-input.js.map +1 -0
- package/dist/phase-banner.d.ts +1 -0
- package/dist/phase-banner.js +3 -0
- package/dist/phase-banner.js.map +1 -0
- package/dist/radios.d.ts +3 -0
- package/dist/radios.js +4 -0
- package/dist/radios.js.map +1 -0
- package/dist/related-items.d.ts +2 -0
- package/dist/related-items.js +4 -0
- package/dist/related-items.js.map +1 -0
- package/dist/search-box.d.ts +3 -0
- package/dist/search-box.js +4 -0
- package/dist/search-box.js.map +1 -0
- package/dist/section-break.d.ts +1 -0
- package/dist/section-break.js +4 -0
- package/dist/section-break.js.map +1 -0
- package/dist/select.d.ts +1 -0
- package/dist/select.js +3 -0
- package/dist/select.js.map +1 -0
- package/dist/service-navigation.d.ts +4 -0
- package/dist/service-navigation.js +4 -0
- package/dist/service-navigation.js.map +1 -0
- package/dist/skip-link.d.ts +16 -0
- package/dist/skip-link.js +4 -0
- package/dist/skip-link.js.map +1 -0
- package/dist/summary-list.d.ts +1 -0
- package/dist/summary-list.js +3 -0
- package/dist/summary-list.js.map +1 -0
- package/dist/table.d.ts +1 -0
- package/dist/table.js +3 -0
- package/dist/table.js.map +1 -0
- package/dist/tabs.d.ts +3 -0
- package/dist/tabs.js +4 -0
- package/dist/tabs.js.map +1 -0
- package/dist/tag.d.ts +1 -0
- package/dist/tag.js +4 -0
- package/dist/tag.js.map +1 -0
- package/dist/task-list.d.ts +1 -0
- package/dist/task-list.js +3 -0
- package/dist/task-list.js.map +1 -0
- package/dist/textarea.d.ts +1 -0
- package/dist/textarea.js +3 -0
- package/dist/textarea.js.map +1 -0
- package/dist/visually-hidden.d.ts +1 -0
- package/dist/visually-hidden.js +4 -0
- package/dist/visually-hidden.js.map +1 -0
- package/dist/warning-text.d.ts +1 -0
- package/dist/warning-text.js +3 -0
- package/dist/warning-text.js.map +1 -0
- package/dist/width-container.d.ts +1 -0
- package/dist/width-container.js +4 -0
- package/dist/width-container.js.map +1 -0
- package/package.json +38 -66
- package/dist/declarations/src/index.d.ts +0 -52
- package/dist/govuk-react.cjs.d.ts +0 -2
- package/dist/govuk-react.cjs.d.ts.map +0 -1
- package/dist/govuk-react.cjs.dev.js +0 -351
- package/dist/govuk-react.cjs.js +0 -7
- package/dist/govuk-react.cjs.prod.js +0 -351
- package/dist/govuk-react.esm.js +0 -51
- package/src/index.ts +0 -56
- package/src/test.tsx +0 -56
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Markup from 'govuk-frontend-react/checkboxes';
|
|
3
|
+
import { Divider, DividerProps, Hint, HintProps, Item, ItemProps, Label, LabelProps } from 'govuk-frontend-react/checkboxes';
|
|
4
|
+
|
|
5
|
+
/** Shows a reveal only while its checkbox is checked, before or without JavaScript. */
|
|
6
|
+
declare const checkboxesCss: string;
|
|
7
|
+
type RootProps = Markup.RootProps;
|
|
8
|
+
/**
|
|
9
|
+
* Let users select one or more options by using the checkboxes component.
|
|
10
|
+
*
|
|
11
|
+
* Children are `Item`s, each with an `Input`, followed by a `Conditional` where it reveals one.
|
|
12
|
+
*
|
|
13
|
+
* @see https://design-system.service.gov.uk/components/checkboxes/
|
|
14
|
+
*/
|
|
15
|
+
declare function Root(props: RootProps): React.JSX.Element;
|
|
16
|
+
type InputProps = Markup.InputProps & {
|
|
17
|
+
/** The id of the `Conditional` this checkbox reveals. */
|
|
18
|
+
controls?: string;
|
|
19
|
+
/**
|
|
20
|
+
* For an option such as "None of these": once JavaScript runs, checking it unchecks the other
|
|
21
|
+
* checkboxes with its name, and checking one of them unchecks it.
|
|
22
|
+
*/
|
|
23
|
+
exclusive?: boolean;
|
|
24
|
+
/** govuk-frontend's way to make it exclusive: "exclusive". */
|
|
25
|
+
'data-behaviour'?: string;
|
|
26
|
+
};
|
|
27
|
+
declare function Input({ controls, exclusive, 'data-behaviour': behaviour, ...props }: InputProps): React.JSX.Element;
|
|
28
|
+
type ConditionalProps = Markup.ConditionalProps;
|
|
29
|
+
/** Content revealed while its checkbox is checked, straight after its `Item`. Pass the checkbox's `checked` or `defaultChecked` as `checked`. */
|
|
30
|
+
declare function Conditional(props: ConditionalProps): React.JSX.Element;
|
|
31
|
+
type ItemCompositeProps = Markup.ItemCompositeProps & Pick<InputProps, 'exclusive'>;
|
|
32
|
+
declare function ItemComposite({ id, label, hint, conditional, 'aria-describedby': describedBy, ...props }: ItemCompositeProps): React.JSX.Element;
|
|
33
|
+
type FieldProps = Omit<Markup.FieldProps, 'items' | 'children'> & ({
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
items?: never;
|
|
36
|
+
} | {
|
|
37
|
+
children?: never;
|
|
38
|
+
/** Prefer children, which memoise and re-render better. */
|
|
39
|
+
items: (ItemCompositeProps | {
|
|
40
|
+
divider: React.ReactNode;
|
|
41
|
+
})[];
|
|
42
|
+
});
|
|
43
|
+
/**
|
|
44
|
+
* Let users select one or more options by using the checkboxes component.
|
|
45
|
+
*
|
|
46
|
+
* Children are `ItemComposite`s and `Divider`s.
|
|
47
|
+
*
|
|
48
|
+
* @see https://design-system.service.gov.uk/components/checkboxes/
|
|
49
|
+
*/
|
|
50
|
+
declare function Field({ items, children, ...props }: FieldProps): React.JSX.Element;
|
|
51
|
+
|
|
52
|
+
declare const index_Conditional: typeof Conditional;
|
|
53
|
+
type index_ConditionalProps = ConditionalProps;
|
|
54
|
+
declare const index_Divider: typeof Divider;
|
|
55
|
+
declare const index_DividerProps: typeof DividerProps;
|
|
56
|
+
declare const index_Field: typeof Field;
|
|
57
|
+
type index_FieldProps = FieldProps;
|
|
58
|
+
declare const index_Hint: typeof Hint;
|
|
59
|
+
declare const index_HintProps: typeof HintProps;
|
|
60
|
+
declare const index_Input: typeof Input;
|
|
61
|
+
type index_InputProps = InputProps;
|
|
62
|
+
declare const index_Item: typeof Item;
|
|
63
|
+
declare const index_ItemComposite: typeof ItemComposite;
|
|
64
|
+
type index_ItemCompositeProps = ItemCompositeProps;
|
|
65
|
+
declare const index_ItemProps: typeof ItemProps;
|
|
66
|
+
declare const index_Label: typeof Label;
|
|
67
|
+
declare const index_LabelProps: typeof LabelProps;
|
|
68
|
+
declare const index_Root: typeof Root;
|
|
69
|
+
type index_RootProps = RootProps;
|
|
70
|
+
declare const index_checkboxesCss: typeof checkboxesCss;
|
|
71
|
+
declare namespace index {
|
|
72
|
+
export { index_Conditional as Conditional, index_Divider as Divider, index_DividerProps as DividerProps, index_Field as Field, index_Hint as Hint, index_HintProps as HintProps, index_Input as Input, index_Item as Item, index_ItemComposite as ItemComposite, index_ItemProps as ItemProps, index_Label as Label, index_LabelProps as LabelProps, index_Root as Root, index_checkboxesCss as checkboxesCss };
|
|
73
|
+
export type { index_ConditionalProps as ConditionalProps, index_FieldProps as FieldProps, index_InputProps as InputProps, index_ItemCompositeProps as ItemCompositeProps, index_RootProps as RootProps };
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export { Conditional as C, Field as F, Input as I, Root as R, ItemComposite as d, checkboxesCss as g, index as i };
|
|
77
|
+
export type { ConditionalProps as a, FieldProps as b, InputProps as c, ItemCompositeProps as e, RootProps as f };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
/** Styles govuk-frontend has no class for, hoisted and deduplicated by React. */
|
|
5
|
+
declare const relatedItemsCss = ".govuk-react-related-items{border-top:2px solid var(--govuk-brand-colour,#1d70b8);padding-top:10px}";
|
|
6
|
+
type RootProps = ComponentProps<'div'>;
|
|
7
|
+
/** Related content, such as topics, guidance and collections. */
|
|
8
|
+
declare function Root({ className, children, ...props }: RootProps): React.JSX.Element;
|
|
9
|
+
type HeadingProps = ComponentProps<'h2'>;
|
|
10
|
+
declare function Heading({ className, children, ...props }: HeadingProps): React.JSX.Element;
|
|
11
|
+
type SectionProps = ComponentProps<'nav'>;
|
|
12
|
+
declare function Section(props: SectionProps): React.JSX.Element;
|
|
13
|
+
type SectionHeadingProps = ComponentProps<'h3'>;
|
|
14
|
+
declare function SectionHeading({ className, children, ...props }: SectionHeadingProps): React.JSX.Element;
|
|
15
|
+
type ListProps = ComponentProps<'ul'>;
|
|
16
|
+
declare function List({ className, ...props }: ListProps): React.JSX.Element;
|
|
17
|
+
type ItemProps = ComponentProps<'li'>;
|
|
18
|
+
declare function Item(props: ItemProps): React.JSX.Element;
|
|
19
|
+
type SectionCompositeProps = Omit<SectionProps, 'title'> & {
|
|
20
|
+
/** The section heading, such as “Travel abroad”. Also labels the navigation landmark. */
|
|
21
|
+
title: ReactNode;
|
|
22
|
+
};
|
|
23
|
+
/** A labelled navigation section with a heading and a list. Children are `Item`s. */
|
|
24
|
+
declare function SectionComposite({ title, children, ...props }: SectionCompositeProps): React.JSX.Element;
|
|
25
|
+
type CompositeProps = Omit<RootProps, 'title'> & {
|
|
26
|
+
/** The main heading. */
|
|
27
|
+
title?: ReactNode;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Related content, including topics, guidance and collections. Children are `SectionComposite`s.
|
|
31
|
+
*
|
|
32
|
+
* @see https://components.publishing.service.gov.uk/component-guide/related_navigation
|
|
33
|
+
*/
|
|
34
|
+
declare function Composite({ title, children, ...props }: CompositeProps): React.JSX.Element;
|
|
35
|
+
|
|
36
|
+
declare const index_Composite: typeof Composite;
|
|
37
|
+
type index_CompositeProps = CompositeProps;
|
|
38
|
+
declare const index_Heading: typeof Heading;
|
|
39
|
+
type index_HeadingProps = HeadingProps;
|
|
40
|
+
declare const index_Item: typeof Item;
|
|
41
|
+
type index_ItemProps = ItemProps;
|
|
42
|
+
declare const index_List: typeof List;
|
|
43
|
+
type index_ListProps = ListProps;
|
|
44
|
+
declare const index_Root: typeof Root;
|
|
45
|
+
type index_RootProps = RootProps;
|
|
46
|
+
declare const index_Section: typeof Section;
|
|
47
|
+
declare const index_SectionComposite: typeof SectionComposite;
|
|
48
|
+
type index_SectionCompositeProps = SectionCompositeProps;
|
|
49
|
+
declare const index_SectionHeading: typeof SectionHeading;
|
|
50
|
+
type index_SectionHeadingProps = SectionHeadingProps;
|
|
51
|
+
type index_SectionProps = SectionProps;
|
|
52
|
+
declare const index_relatedItemsCss: typeof relatedItemsCss;
|
|
53
|
+
declare namespace index {
|
|
54
|
+
export { index_Composite as Composite, index_Heading as Heading, index_Item as Item, index_List as List, index_Root as Root, index_Section as Section, index_SectionComposite as SectionComposite, index_SectionHeading as SectionHeading, index_relatedItemsCss as relatedItemsCss };
|
|
55
|
+
export type { index_CompositeProps as CompositeProps, index_HeadingProps as HeadingProps, index_ItemProps as ItemProps, index_ListProps as ListProps, index_RootProps as RootProps, index_SectionCompositeProps as SectionCompositeProps, index_SectionHeadingProps as SectionHeadingProps, index_SectionProps as SectionProps };
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export { Composite as C, Heading as H, Item as I, List as L, Root as R, Section as S, SectionComposite as f, SectionHeading as h, index as i, relatedItemsCss as r };
|
|
59
|
+
export type { CompositeProps as a, HeadingProps as b, ItemProps as c, ListProps as d, RootProps as e, SectionCompositeProps as g, SectionHeadingProps as j, SectionProps as k };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as cookieBanner from 'govuk-frontend-react/cookie-banner';
|
|
2
|
+
|
|
3
|
+
function _mergeNamespaces(n, m) {
|
|
4
|
+
m.forEach(function (e) {
|
|
5
|
+
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function (k) {
|
|
6
|
+
if (k !== 'default' && !(k in n)) {
|
|
7
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
8
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return e[k]; }
|
|
11
|
+
});
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
return Object.freeze(n);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
var index = /*#__PURE__*/_mergeNamespaces({
|
|
19
|
+
__proto__: null
|
|
20
|
+
}, [cookieBanner]);
|
|
21
|
+
|
|
22
|
+
export { index as i };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import * as Markup from 'govuk-frontend-react/error-summary';
|
|
3
|
+
import { Alert, AlertProps, Body, BodyProps, Description, DescriptionProps, List, ListItem, ListItemComposite, ListItemCompositeProps, ListItemLink, ListItemProps, ListProps, Title, TitleProps } from 'govuk-frontend-react/error-summary';
|
|
4
|
+
|
|
5
|
+
type RootProps = Markup.RootProps;
|
|
6
|
+
/**
|
|
7
|
+
* Use an error summary when there is a validation error.
|
|
8
|
+
*
|
|
9
|
+
* It takes focus when it appears. To move focus to it again, such as after another invalid submit,
|
|
10
|
+
* give it a new `key`.
|
|
11
|
+
*
|
|
12
|
+
* @see https://design-system.service.gov.uk/components/error-summary/
|
|
13
|
+
*/
|
|
14
|
+
declare function Root({ disableAutoFocus, ...props }: RootProps): React.JSX.Element;
|
|
15
|
+
type CompositeProps = Markup.CompositeProps;
|
|
16
|
+
/**
|
|
17
|
+
* Use an error summary when there is a validation error.
|
|
18
|
+
*
|
|
19
|
+
* Children are `ListItemComposite`s.
|
|
20
|
+
*
|
|
21
|
+
* @see https://design-system.service.gov.uk/components/error-summary/
|
|
22
|
+
*/
|
|
23
|
+
declare function Composite({ title, description, errors, children, ...props }: CompositeProps): React.JSX.Element;
|
|
24
|
+
|
|
25
|
+
declare const index_Alert: typeof Alert;
|
|
26
|
+
declare const index_AlertProps: typeof AlertProps;
|
|
27
|
+
declare const index_Body: typeof Body;
|
|
28
|
+
declare const index_BodyProps: typeof BodyProps;
|
|
29
|
+
declare const index_Composite: typeof Composite;
|
|
30
|
+
type index_CompositeProps = CompositeProps;
|
|
31
|
+
declare const index_Description: typeof Description;
|
|
32
|
+
declare const index_DescriptionProps: typeof DescriptionProps;
|
|
33
|
+
declare const index_List: typeof List;
|
|
34
|
+
declare const index_ListItem: typeof ListItem;
|
|
35
|
+
declare const index_ListItemComposite: typeof ListItemComposite;
|
|
36
|
+
declare const index_ListItemCompositeProps: typeof ListItemCompositeProps;
|
|
37
|
+
declare const index_ListItemLink: typeof ListItemLink;
|
|
38
|
+
declare const index_ListItemProps: typeof ListItemProps;
|
|
39
|
+
declare const index_ListProps: typeof ListProps;
|
|
40
|
+
declare const index_Root: typeof Root;
|
|
41
|
+
type index_RootProps = RootProps;
|
|
42
|
+
declare const index_Title: typeof Title;
|
|
43
|
+
declare const index_TitleProps: typeof TitleProps;
|
|
44
|
+
declare namespace index {
|
|
45
|
+
export { index_Alert as Alert, index_AlertProps as AlertProps, index_Body as Body, index_BodyProps as BodyProps, index_Composite as Composite, index_Description as Description, index_DescriptionProps as DescriptionProps, index_List as List, index_ListItem as ListItem, index_ListItemComposite as ListItemComposite, index_ListItemCompositeProps as ListItemCompositeProps, index_ListItemLink as ListItemLink, index_ListItemProps as ListItemProps, index_ListProps as ListProps, index_Root as Root, index_Title as Title, index_TitleProps as TitleProps };
|
|
46
|
+
export type { index_CompositeProps as CompositeProps, index_RootProps as RootProps };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export { Composite as C, Root as R, index as i };
|
|
50
|
+
export type { CompositeProps as a, RootProps as b };
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
export { i as Accordion } from './index-7cuUiEo3.js';
|
|
2
|
+
export { BackLink } from 'govuk-frontend-react/back-link';
|
|
3
|
+
export { Body } from 'govuk-frontend-react/body';
|
|
4
|
+
export { i as Breadcrumbs } from './index-D-5h70y_.js';
|
|
5
|
+
export { Button, StartButton } from './button.js';
|
|
6
|
+
export { Caption } from 'govuk-frontend-react/caption';
|
|
7
|
+
export { i as CharacterCount } from './index-BnYaP7AC.js';
|
|
8
|
+
export { i as Checkboxes } from './index-a8sYZpTj.js';
|
|
9
|
+
export { i as CookieBanner } from './index-trAlT6HP.js';
|
|
10
|
+
export { i as DateInput } from './index-CAxOsfPr.js';
|
|
11
|
+
export { i as Details } from './index-Dw9RbQVO.js';
|
|
12
|
+
export { i as DocumentFooterMetadata } from './index-DnvlWvry.js';
|
|
13
|
+
export { ErrorMessage, ErrorMessageComposite } from 'govuk-frontend-react/error-message';
|
|
14
|
+
export { i as ErrorSummary } from './index-vBukON0x.js';
|
|
15
|
+
export { i as ExitThisPage } from './index-CHKQTetM.js';
|
|
16
|
+
export { i as Feedback } from './index-Dr0S9iUZ.js';
|
|
17
|
+
export { i as Fieldset } from './index-BQaNJq4d.js';
|
|
18
|
+
export { EnhancedFileUpload, FileUpload, FileUploadField, FileUploadFieldProps, FileUploadProps } from './file-upload.js';
|
|
19
|
+
export { i as Footer } from './index-BOfUYry5.js';
|
|
20
|
+
export { FormGroup } from 'govuk-frontend-react/form-group';
|
|
21
|
+
export { i as GenericHeader } from './index-BP18qbj1.js';
|
|
22
|
+
export { GridColumn, GridRow } from 'govuk-frontend-react/grid';
|
|
23
|
+
export { i as Header } from './index-DhjWVeDK.js';
|
|
24
|
+
export { Heading } from 'govuk-frontend-react/heading';
|
|
25
|
+
export { Hint } from 'govuk-frontend-react/hint';
|
|
26
|
+
export * from 'govuk-frontend-react/input';
|
|
27
|
+
export { InsetText } from 'govuk-frontend-react/inset-text';
|
|
28
|
+
export { Label, LabelComposite, LabelWrapper } from 'govuk-frontend-react/label';
|
|
29
|
+
export { i as LanguageNavigation } from './index-TgEbRgDh.js';
|
|
30
|
+
export { Link } from 'govuk-frontend-react/link';
|
|
31
|
+
export { List } from 'govuk-frontend-react/list';
|
|
32
|
+
export { LoadingBox } from './loading-box.js';
|
|
33
|
+
export { MainWrapper } from 'govuk-frontend-react/main-wrapper';
|
|
34
|
+
export { i as NotificationBanner } from './index-DhPVSZNZ.js';
|
|
35
|
+
export { Page } from './page.js';
|
|
36
|
+
export { i as Modal } from './index-CWRQhs3p.js';
|
|
37
|
+
export { i as PasswordInput } from './index-MxQB65RM.js';
|
|
38
|
+
export { i as Pagination } from './index-B8fw-F9t.js';
|
|
39
|
+
export { i as Panel } from './index-C-c5LroN.js';
|
|
40
|
+
export { i as PhaseBanner } from './index-RZtIJBvk.js';
|
|
41
|
+
export { i as Radios } from './index-BOPiKua4.js';
|
|
42
|
+
export { i as RelatedItems } from './index-rQaOtoWF.js';
|
|
43
|
+
export { i as SearchBox } from './index-D_wOwhn9.js';
|
|
44
|
+
export { SectionBreak } from 'govuk-frontend-react/section-break';
|
|
45
|
+
export * from 'govuk-frontend-react/select';
|
|
46
|
+
export { i as ServiceNavigation } from './index-DQaFKwpy.js';
|
|
47
|
+
export { SkipLink } from './skip-link.js';
|
|
48
|
+
export { i as SummaryList } from './index-CidkuScr.js';
|
|
49
|
+
export { i as Table } from './index-DWibEGiF.js';
|
|
50
|
+
export { i as Tabs } from './index-BBckYYWt.js';
|
|
51
|
+
export { Tag } from 'govuk-frontend-react/tag';
|
|
52
|
+
export { i as TaskList } from './index-DDvVZ8mX.js';
|
|
53
|
+
export * from 'govuk-frontend-react/textarea';
|
|
54
|
+
export { VisuallyHidden } from 'govuk-frontend-react/visually-hidden';
|
|
55
|
+
export * from 'govuk-frontend-react/warning-text';
|
|
56
|
+
export { WidthContainer } from 'govuk-frontend-react/width-container';
|
|
57
|
+
export { FluidWidth, OverrideProps, Spacing, overrideClasses } from 'govuk-frontend-react/overrides';
|
|
58
|
+
export { ButtonLinkProps, ButtonProps, ButtonVariant, StartButtonContent, StartButtonIcon, StartButtonIconProps } from 'govuk-frontend-react/button';
|
|
59
|
+
import 'react';
|
|
60
|
+
import '@govuk-react/primitives/accordion';
|
|
61
|
+
import 'govuk-frontend-react/accordion';
|
|
62
|
+
import 'govuk-frontend-react/breadcrumbs';
|
|
63
|
+
import '@govuk-react/primitives/character-count';
|
|
64
|
+
import 'govuk-frontend-react/character-count';
|
|
65
|
+
import 'govuk-frontend-react/checkboxes';
|
|
66
|
+
import 'govuk-frontend-react/cookie-banner';
|
|
67
|
+
import 'govuk-frontend-react/date-input';
|
|
68
|
+
import 'govuk-frontend-react/details';
|
|
69
|
+
import 'govuk-frontend-react/error-summary';
|
|
70
|
+
import 'govuk-frontend-react/exit-this-page';
|
|
71
|
+
import 'govuk-frontend-react/skip-link';
|
|
72
|
+
import 'govuk-frontend-react/feedback';
|
|
73
|
+
import 'govuk-frontend-react/fieldset';
|
|
74
|
+
import 'govuk-frontend-react/file-upload';
|
|
75
|
+
import '@govuk-react/primitives/file-upload';
|
|
76
|
+
import 'govuk-frontend-react/footer';
|
|
77
|
+
import 'govuk-frontend-react/generic-header';
|
|
78
|
+
import 'govuk-frontend-react/header';
|
|
79
|
+
import 'govuk-frontend-react/language-navigation';
|
|
80
|
+
import 'govuk-frontend-react/notification-banner';
|
|
81
|
+
import '@govuk-react/primitives/modal';
|
|
82
|
+
import '@govuk-react/primitives/password-input';
|
|
83
|
+
import 'govuk-frontend-react/password-input';
|
|
84
|
+
import 'govuk-frontend-react/pagination';
|
|
85
|
+
import 'govuk-frontend-react/panel';
|
|
86
|
+
import 'govuk-frontend-react/phase-banner';
|
|
87
|
+
import 'govuk-frontend-react/radios';
|
|
88
|
+
import '@govuk-react/primitives/autocomplete';
|
|
89
|
+
import '@govuk-react/primitives/disclosure';
|
|
90
|
+
import 'govuk-frontend-react/service-navigation';
|
|
91
|
+
import 'govuk-frontend-react/summary-list';
|
|
92
|
+
import 'govuk-frontend-react/table';
|
|
93
|
+
import 'govuk-frontend-react/tabs';
|
|
94
|
+
import 'govuk-frontend-react/task-list';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import './chunk-5RYJUAI3.js';
|
|
2
|
+
export { summary_list_exports as SummaryList } from './chunk-M5BQAPSC.js';
|
|
3
|
+
export { table_exports as Table } from './chunk-DHTWPFZO.js';
|
|
4
|
+
export { tabs_exports as Tabs } from './chunk-QV7AS734.js';
|
|
5
|
+
export { Tag } from './chunk-D6TMELAY.js';
|
|
6
|
+
export { task_list_exports as TaskList } from './chunk-Z4J4DQCF.js';
|
|
7
|
+
import './chunk-PNMADTQQ.js';
|
|
8
|
+
export { VisuallyHidden } from './chunk-RODK5NYM.js';
|
|
9
|
+
export { panel_exports as Panel } from './chunk-LG7D7X4T.js';
|
|
10
|
+
export { phase_banner_exports as PhaseBanner } from './chunk-B33BQUXM.js';
|
|
11
|
+
export { radios_exports as Radios } from './chunk-SKQVJZMM.js';
|
|
12
|
+
export { related_items_exports as RelatedItems } from './chunk-UHX5TMH6.js';
|
|
13
|
+
export { search_box_exports as SearchBox } from './chunk-SMUQZFJ7.js';
|
|
14
|
+
export { SectionBreak } from './chunk-JLNRFYFI.js';
|
|
15
|
+
import './chunk-2W35PR6E.js';
|
|
16
|
+
export { service_navigation_exports as ServiceNavigation } from './chunk-OWBD4KZC.js';
|
|
17
|
+
export { List } from './chunk-WFHQPUFE.js';
|
|
18
|
+
export { LoadingBox } from './chunk-TQOVKJLU.js';
|
|
19
|
+
export { notification_banner_exports as NotificationBanner } from './chunk-PM2AAFY4.js';
|
|
20
|
+
export { Page } from './chunk-FNDQEOKW.js';
|
|
21
|
+
export { WidthContainer } from './chunk-2KPHO7N2.js';
|
|
22
|
+
export { SkipLink } from './chunk-TK6FAARU.js';
|
|
23
|
+
export { MainWrapper } from './chunk-KFWTQTVJ.js';
|
|
24
|
+
export { modal_exports as Modal } from './chunk-YYDYVLVS.js';
|
|
25
|
+
export { password_input_exports as PasswordInput } from './chunk-SVIOO5V5.js';
|
|
26
|
+
export { pagination_exports as Pagination } from './chunk-U2FEV65D.js';
|
|
27
|
+
export { header_exports as Header } from './chunk-OQVOKH2T.js';
|
|
28
|
+
export { Heading } from './chunk-EMM6RZT7.js';
|
|
29
|
+
export { Hint } from './chunk-QOWZLJK4.js';
|
|
30
|
+
import './chunk-T56AQZA4.js';
|
|
31
|
+
export { InsetText } from './chunk-VB3GA2KO.js';
|
|
32
|
+
export { Label, LabelComposite, LabelWrapper } from './chunk-DK2FZF7U.js';
|
|
33
|
+
export { language_navigation_exports as LanguageNavigation } from './chunk-VQ4FRNV3.js';
|
|
34
|
+
export { Link } from './chunk-5YT2PQAF.js';
|
|
35
|
+
export { feedback_exports as Feedback } from './chunk-RC24GP47.js';
|
|
36
|
+
export { fieldset_exports as Fieldset } from './chunk-K7VSNNQD.js';
|
|
37
|
+
export { enhanced_exports as EnhancedFileUpload, FileUpload, FileUploadField } from './chunk-L4O7OXGY.js';
|
|
38
|
+
export { footer_exports as Footer } from './chunk-RIB3ADHK.js';
|
|
39
|
+
export { FormGroup } from './chunk-XO7OW5TM.js';
|
|
40
|
+
export { generic_header_exports as GenericHeader } from './chunk-FE2OFAA5.js';
|
|
41
|
+
export { GridColumn } from './chunk-L4GCVMBX.js';
|
|
42
|
+
export { GridRow } from './chunk-SYW45KJ5.js';
|
|
43
|
+
export { checkboxes_exports as Checkboxes } from './chunk-HRURRTAU.js';
|
|
44
|
+
export { cookie_banner_exports as CookieBanner } from './chunk-VKUBJY23.js';
|
|
45
|
+
export { date_input_exports as DateInput } from './chunk-W7RN6ITL.js';
|
|
46
|
+
export { details_exports as Details } from './chunk-VGZUAGCQ.js';
|
|
47
|
+
export { document_footer_metadata_exports as DocumentFooterMetadata } from './chunk-BAXFWXMR.js';
|
|
48
|
+
export { ErrorMessage, ErrorMessageComposite } from './chunk-HHH5BEO6.js';
|
|
49
|
+
export { error_summary_exports as ErrorSummary } from './chunk-57K6B6V2.js';
|
|
50
|
+
export { exit_this_page_exports as ExitThisPage } from './chunk-NN44HUS7.js';
|
|
51
|
+
export { accordion_exports as Accordion } from './chunk-YOBXV2EG.js';
|
|
52
|
+
export { BackLink } from './chunk-NV2BSK6G.js';
|
|
53
|
+
export { Body } from './chunk-IFETUZ4S.js';
|
|
54
|
+
export { breadcrumbs_exports as Breadcrumbs } from './chunk-EMNBPB3L.js';
|
|
55
|
+
export { Button, StartButton, StartButtonContent, StartButtonIcon } from './chunk-BDIDAVNV.js';
|
|
56
|
+
export { Caption } from './chunk-ZHHORZMC.js';
|
|
57
|
+
export { character_count_exports as CharacterCount } from './chunk-OCGJIH5X.js';
|
|
58
|
+
import './chunk-PZ5AY32C.js';
|
|
59
|
+
export { overrideClasses } from 'govuk-frontend-react/overrides';
|
|
60
|
+
//# sourceMappingURL=index.js.map
|
|
61
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
package/dist/input.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'govuk-frontend-react/input';
|
package/dist/input.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"input.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { InsetText, InsetTextProps } from 'govuk-frontend-react/inset-text';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"inset-text.js"}
|
package/dist/label.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Label, LabelComposite, LabelCompositeProps, LabelProps, LabelWrapper, LabelWrapperProps } from 'govuk-frontend-react/label';
|
package/dist/label.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"label.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'govuk-frontend-react/language-navigation';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"language-navigation.js"}
|
package/dist/link.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { Link, LinkProps } from 'govuk-frontend-react/link';
|
package/dist/link.js
ADDED
package/dist/link.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"link.js"}
|
package/dist/list.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { List, ListProps } from 'govuk-frontend-react/list';
|
package/dist/list.js
ADDED
package/dist/list.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"list.js"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { ComponentProps, ReactNode } from 'react';
|
|
3
|
+
|
|
4
|
+
/** Static styles, hoisted and deduplicated by React. Dynamic values come in through custom properties. */
|
|
5
|
+
declare const loadingBoxCss = "\n.govuk-react-loading-box{position:relative;padding-bottom:2px;min-height:10px}\n.govuk-react-loading-box__overlay{position:absolute;inset:0;z-index:100;display:flex;justify-content:center;visibility:hidden;transition:visibility 0s linear var(--govuk-react-loading-box-time-out)}\n.govuk-react-loading-box__backdrop{position:absolute;inset:0;background-color:var(--govuk-react-loading-box-background-colour);opacity:0;transition:opacity var(--govuk-react-loading-box-time-out) ease-in-out}\n.govuk-react-loading-box__spinner{position:absolute;z-index:1;display:block;width:50px;height:100%;max-height:calc(50vh + 100px);opacity:0;transition:opacity var(--govuk-react-loading-box-time-out) ease-in-out}\n.govuk-react-loading-box__spinner rect{animation:govuk-react-loading-box-fade 1s infinite linear}\n.govuk-react-loading-box--loading>.govuk-react-loading-box__overlay{visibility:visible;transition-delay:0s}\n.govuk-react-loading-box--loading>.govuk-react-loading-box__overlay>.govuk-react-loading-box__backdrop{opacity:var(--govuk-react-loading-box-background-opacity);transition-duration:var(--govuk-react-loading-box-time-in)}\n.govuk-react-loading-box--loading>.govuk-react-loading-box__overlay>.govuk-react-loading-box__spinner{opacity:1;transition-duration:var(--govuk-react-loading-box-time-in);transition-delay:calc(var(--govuk-react-loading-box-time-in) / 2)}\n\n.govuk-react-loading-box__text{display:none;position:absolute;z-index:1;margin:0;padding-top:20px}\n@media (prefers-reduced-motion:reduce){.govuk-react-loading-box__overlay,.govuk-react-loading-box__backdrop,.govuk-react-loading-box__spinner{transition:none}.govuk-react-loading-box__spinner{display:none}.govuk-react-loading-box__text{display:block}}\n@keyframes govuk-react-loading-box-fade{0%{opacity:.250075}.01%{opacity:.25}.03%{opacity:1}100%{opacity:.250075}}\n";
|
|
6
|
+
type LoadingBoxProps = Omit<ComponentProps<'div'>, 'title'> & {
|
|
7
|
+
/** Content that the loading box overlays. */
|
|
8
|
+
children?: ReactNode;
|
|
9
|
+
/** Whether the content is loading. Shows the spinner and overlay, announces `statusText`, and sets `aria-busy` on the content. */
|
|
10
|
+
loading?: boolean;
|
|
11
|
+
/** Text announced to screen reader users while loading, and shown instead of the spinner when the user prefers reduced motion. Say what’s happening, such as “Sending your application”. */
|
|
12
|
+
statusText?: ReactNode;
|
|
13
|
+
/** Make the content inert while loading, so users can’t interact with it or move focus into it. Focus inside the content moves to the page body, so move focus yourself when loading ends. */
|
|
14
|
+
inertWhileLoading?: boolean;
|
|
15
|
+
/** Colour of the spinner, as any CSS colour. Defaults to the text colour. */
|
|
16
|
+
spinnerColor?: string;
|
|
17
|
+
/** Colour of the overlay, as any CSS colour. Defaults to the page background colour. */
|
|
18
|
+
backgroundColor?: string;
|
|
19
|
+
/** Opacity of the overlay, from 0 to 1. */
|
|
20
|
+
backgroundColorOpacity?: number;
|
|
21
|
+
/** Length of the fade-in, in milliseconds. */
|
|
22
|
+
timeIn?: number;
|
|
23
|
+
/** Length of the fade-out, in milliseconds. */
|
|
24
|
+
timeOut?: number;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Wraps content that loads asynchronously. While `loading` is `true`, a spinner and overlay cover the content and `statusText` is announced.
|
|
28
|
+
*
|
|
29
|
+
* - Say what’s happening in `statusText`, and keep it showing for at least a couple of seconds so it doesn’t flash and screen readers have time to announce it.
|
|
30
|
+
* - Don’t disable buttons while loading: disabled buttons have poor contrast and can confuse some users. Prevent repeat submissions in your submit handler, and on the server.
|
|
31
|
+
* - When loading ends, move focus to the result, or to the error summary if there are errors.
|
|
32
|
+
* - If loading fails or times out, show an error and a way to continue. Don’t leave the spinner running.
|
|
33
|
+
*
|
|
34
|
+
* @see https://github.com/alphagov/govuk-design-system/discussions/6167
|
|
35
|
+
*/
|
|
36
|
+
declare function LoadingBox({ children, loading, statusText, inertWhileLoading, spinnerColor, backgroundColor, backgroundColorOpacity, timeIn, timeOut, className, style, ...props }: LoadingBoxProps): React.JSX.Element;
|
|
37
|
+
|
|
38
|
+
export { LoadingBox, loadingBoxCss };
|
|
39
|
+
export type { LoadingBoxProps };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"loading-box.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MainWrapper, MainWrapperProps } from 'govuk-frontend-react/main-wrapper';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"main-wrapper.js"}
|
package/dist/modal.d.ts
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@govuk-react/primitives/modal';
|
|
3
|
+
import 'govuk-frontend-react/button';
|
|
4
|
+
export { C as Close, a as CloseProps, b as Composite, c as CompositeProps, d as Content, e as ContentProps, R as Root, f as RootProps, T as Title, g as TitleProps, h as Trigger, j as TriggerProps, m as modalCss } from './index-CWRQhs3p.js';
|
package/dist/modal.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"modal.js"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
export { Content, ContentProps, Header, HeaderProps, Heading, HeadingProps, Link, LinkProps, Title, TitleProps } from 'govuk-frontend-react/notification-banner';
|
|
3
|
+
export { C as Composite, a as CompositeProps, R as Root, b as RootProps } from './index-DhPVSZNZ.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"notification-banner.js"}
|
package/dist/page.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
|
|
3
|
+
type PageProps = {
|
|
4
|
+
/** Page contents, rendered inside the main wrapper. */
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** Id of the main wrapper, which the skip link points to. */
|
|
7
|
+
id?: string;
|
|
8
|
+
/** Page header, such as `Header.Composite` or `ServiceNavigation`. */
|
|
9
|
+
header?: React.ReactNode;
|
|
10
|
+
/** Page footer, such as `Footer.Composite`. */
|
|
11
|
+
footer?: React.ReactNode;
|
|
12
|
+
/** Content outside the main wrapper but inside the width container, such as a back link, breadcrumbs or phase banner. */
|
|
13
|
+
beforeChildren?: React.ReactNode;
|
|
14
|
+
/** Text for the skip link. */
|
|
15
|
+
skipLinkText?: React.ReactNode;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Lays out the body of a GOV.UK page: skip link, header and footer landmarks, width container and main wrapper.
|
|
19
|
+
* For custom layouts, compose `SkipLink`, `WidthContainer` and `MainWrapper` directly.
|
|
20
|
+
*
|
|
21
|
+
* - https://design-system.service.gov.uk/styles/page-template/
|
|
22
|
+
* - https://design-system.service.gov.uk/styles/layout/#page-wrappers
|
|
23
|
+
*/
|
|
24
|
+
declare function Page({ header, footer, children, id, beforeChildren, skipLinkText, }: PageProps): React.JSX.Element;
|
|
25
|
+
|
|
26
|
+
export { Page };
|
|
27
|
+
export type { PageProps };
|
package/dist/page.js
ADDED
package/dist/page.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"page.js"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'govuk-frontend-react/pagination';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"pagination.js"}
|
package/dist/panel.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'govuk-frontend-react/panel';
|
package/dist/panel.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"panel.js"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import 'react';
|
|
2
|
+
import '@govuk-react/primitives/password-input';
|
|
3
|
+
export { Wrapper, WrapperProps } from 'govuk-frontend-react/password-input';
|
|
4
|
+
export { F as Field, a as FieldProps, I as Input, b as InputProps, R as Root, c as RootProps, S as Status, d as StatusProps, T as Toggle, e as ToggleProps } from './index-MxQB65RM.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"password-input.js"}
|