govuk-react 1.0.0-alpha.0 → 1.0.0-alpha.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 +3 -2
- package/dist/components/accordion/index.d.ts +68 -0
- package/dist/components/accordion/index.js +104 -0
- package/dist/components/accordion/index.js.map +1 -0
- package/dist/components/back-link/index.d.ts +1 -0
- package/dist/components/back-link/index.js +2 -0
- package/dist/components/back-link/index.js.map +1 -0
- package/dist/components/body/index.d.ts +1 -0
- package/dist/components/body/index.js +2 -0
- package/dist/components/body/index.js.map +1 -0
- package/dist/components/breadcrumbs/index.js +2 -0
- package/dist/components/breadcrumbs/index.js.map +1 -0
- package/dist/components/button/index.d.ts +24 -0
- package/dist/components/button/index.js +17 -0
- package/dist/components/button/index.js.map +1 -0
- package/dist/components/caption/index.d.ts +1 -0
- package/dist/components/caption/index.js +2 -0
- package/dist/components/caption/index.js.map +1 -0
- package/dist/components/character-count/index.d.ts +36 -0
- package/dist/components/character-count/index.js +82 -0
- package/dist/components/character-count/index.js.map +1 -0
- package/dist/components/checkboxes/index.d.ts +47 -0
- package/dist/components/checkboxes/index.js +64 -0
- package/dist/components/checkboxes/index.js.map +1 -0
- package/dist/components/cookie-banner/index.js +2 -0
- package/dist/components/cookie-banner/index.js.map +1 -0
- package/dist/components/date-input/index.js +2 -0
- package/dist/components/date-input/index.js.map +1 -0
- package/dist/components/details/index.js +2 -0
- package/dist/components/details/index.js.map +1 -0
- package/dist/components/document-footer-metadata/index.d.ts +35 -0
- package/dist/components/document-footer-metadata/index.js +36 -0
- package/dist/components/document-footer-metadata/index.js.map +1 -0
- package/dist/components/error-message/index.d.ts +1 -0
- package/dist/components/error-message/index.js +2 -0
- package/dist/components/error-message/index.js.map +1 -0
- package/dist/components/error-summary/index.d.ts +22 -0
- package/dist/components/error-summary/index.js +49 -0
- package/dist/components/error-summary/index.js.map +1 -0
- package/dist/components/exit-this-page/index.d.ts +33 -0
- package/dist/components/exit-this-page/index.js +66 -0
- package/dist/components/exit-this-page/index.js.map +1 -0
- package/dist/components/feedback/index.js +2 -0
- package/dist/components/feedback/index.js.map +1 -0
- package/dist/components/fieldset/index.js +2 -0
- package/dist/components/fieldset/index.js.map +1 -0
- package/dist/components/file-upload/control.d.ts +6 -0
- package/dist/components/file-upload/control.js +9 -0
- package/dist/components/file-upload/control.js.map +1 -0
- package/dist/components/file-upload/enhanced.d.ts +45 -0
- package/dist/components/file-upload/enhanced.js +84 -0
- package/dist/components/file-upload/enhanced.js.map +1 -0
- package/dist/components/file-upload/index.d.ts +12 -0
- package/dist/components/file-upload/index.js +18 -0
- package/dist/components/file-upload/index.js.map +1 -0
- package/dist/components/footer/index.js +2 -0
- package/dist/components/footer/index.js.map +1 -0
- package/dist/components/form-group/index.d.ts +1 -0
- package/dist/components/form-group/index.js +2 -0
- package/dist/components/form-group/index.js.map +1 -0
- package/dist/components/generic-header/index.js +2 -0
- package/dist/components/generic-header/index.js.map +1 -0
- package/dist/components/grid-column/index.d.ts +1 -0
- package/dist/components/grid-column/index.js +2 -0
- package/dist/components/grid-column/index.js.map +1 -0
- package/dist/components/grid-row/index.d.ts +1 -0
- package/dist/components/grid-row/index.js +2 -0
- package/dist/components/grid-row/index.js.map +1 -0
- package/dist/components/header/index.js +2 -0
- package/dist/components/header/index.js.map +1 -0
- package/dist/components/heading/index.d.ts +1 -0
- package/dist/components/heading/index.js +2 -0
- package/dist/components/heading/index.js.map +1 -0
- package/dist/components/hint/index.d.ts +1 -0
- package/dist/components/hint/index.js +2 -0
- package/dist/components/hint/index.js.map +1 -0
- package/dist/components/input/index.js +2 -0
- package/dist/components/input/index.js.map +1 -0
- package/dist/components/inset-text/index.d.ts +1 -0
- package/dist/components/inset-text/index.js +2 -0
- package/dist/components/inset-text/index.js.map +1 -0
- package/dist/components/label/index.d.ts +1 -0
- package/dist/components/label/index.js +2 -0
- package/dist/components/label/index.js.map +1 -0
- package/dist/components/language-navigation/index.js +2 -0
- package/dist/components/language-navigation/index.js.map +1 -0
- package/dist/components/link/index.d.ts +1 -0
- package/dist/components/link/index.js +2 -0
- package/dist/components/link/index.js.map +1 -0
- package/dist/components/list/index.d.ts +1 -0
- package/dist/components/list/index.js +2 -0
- package/dist/components/list/index.js.map +1 -0
- package/dist/components/loading-box/index.d.ts +33 -0
- package/dist/components/loading-box/index.js +29 -0
- package/dist/components/loading-box/index.js.map +1 -0
- package/dist/components/main-wrapper/index.d.ts +1 -0
- package/dist/components/main-wrapper/index.js +2 -0
- package/dist/components/main-wrapper/index.js.map +1 -0
- package/dist/components/modal/index.d.ts +31 -0
- package/dist/components/modal/index.js +45 -0
- package/dist/components/modal/index.js.map +1 -0
- package/dist/components/notification-banner/index.d.ts +17 -0
- package/dist/components/notification-banner/index.js +44 -0
- package/dist/components/notification-banner/index.js.map +1 -0
- package/dist/{page.d.ts → components/page/index.d.ts} +2 -6
- package/dist/components/page/index.js +22 -0
- package/dist/components/page/index.js.map +1 -0
- package/dist/components/pagination/index.js +2 -0
- package/dist/components/pagination/index.js.map +1 -0
- package/dist/components/panel/index.js +2 -0
- package/dist/components/panel/index.js.map +1 -0
- package/dist/components/password-input/index.d.ts +26 -0
- package/dist/components/password-input/index.js +60 -0
- package/dist/components/password-input/index.js.map +1 -0
- package/dist/components/phase-banner/index.js +2 -0
- package/dist/components/phase-banner/index.js.map +1 -0
- package/dist/components/radios/index.d.ts +31 -0
- package/dist/components/radios/index.js +61 -0
- package/dist/components/radios/index.js.map +1 -0
- package/dist/components/related-items/index.d.ts +31 -0
- package/dist/components/related-items/index.js +41 -0
- package/dist/components/related-items/index.js.map +1 -0
- package/dist/components/search-box/index.d.ts +87 -0
- package/dist/components/search-box/index.js +96 -0
- package/dist/components/search-box/index.js.map +1 -0
- package/dist/components/section-break/index.d.ts +1 -0
- package/dist/components/section-break/index.js +2 -0
- package/dist/components/section-break/index.js.map +1 -0
- package/dist/components/select/index.js +2 -0
- package/dist/components/select/index.js.map +1 -0
- package/dist/components/service-navigation/index.d.ts +62 -0
- package/dist/components/service-navigation/index.js +122 -0
- package/dist/components/service-navigation/index.js.map +1 -0
- package/dist/{skip-link.d.ts → components/skip-link/index.d.ts} +2 -6
- package/dist/components/skip-link/index.js +16 -0
- package/dist/components/skip-link/index.js.map +1 -0
- package/dist/components/summary-list/index.js +2 -0
- package/dist/components/summary-list/index.js.map +1 -0
- package/dist/components/table/index.js +2 -0
- package/dist/components/table/index.js.map +1 -0
- package/dist/components/tabs/index.d.ts +94 -0
- package/dist/components/tabs/index.js +105 -0
- package/dist/components/tabs/index.js.map +1 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/index.js +2 -0
- package/dist/components/tag/index.js.map +1 -0
- package/dist/components/task-list/index.js +2 -0
- package/dist/components/task-list/index.js.map +1 -0
- package/dist/components/textarea/index.js +2 -0
- package/dist/components/textarea/index.js.map +1 -0
- package/dist/components/visually-hidden/index.d.ts +1 -0
- package/dist/components/visually-hidden/index.js +2 -0
- package/dist/components/visually-hidden/index.js.map +1 -0
- package/dist/components/warning-text/index.js +2 -0
- package/dist/components/warning-text/index.js.map +1 -0
- package/dist/components/width-container/index.d.ts +1 -0
- package/dist/components/width-container/index.js +2 -0
- package/dist/components/width-container/index.js.map +1 -0
- package/dist/index.d.ts +58 -94
- package/dist/index.js +59 -59
- package/dist/index.js.map +1 -1
- package/dist/styles.css +350 -0
- package/dist/utils/join-ids.d.ts +2 -0
- package/dist/utils/join-ids.js +6 -0
- package/dist/utils/join-ids.js.map +1 -0
- package/package.json +10 -7
- package/dist/accordion.d.ts +0 -4
- package/dist/accordion.js +0 -4
- package/dist/accordion.js.map +0 -1
- package/dist/back-link.d.ts +0 -21
- package/dist/back-link.js +0 -4
- package/dist/back-link.js.map +0 -1
- package/dist/body.d.ts +0 -1
- package/dist/body.js +0 -4
- package/dist/body.js.map +0 -1
- package/dist/breadcrumbs.js +0 -3
- package/dist/breadcrumbs.js.map +0 -1
- package/dist/button.d.ts +0 -26
- package/dist/button.js +0 -4
- package/dist/button.js.map +0 -1
- package/dist/caption.d.ts +0 -1
- package/dist/caption.js +0 -4
- package/dist/caption.js.map +0 -1
- package/dist/character-count.d.ts +0 -4
- package/dist/character-count.js +0 -4
- package/dist/character-count.js.map +0 -1
- package/dist/checkboxes.d.ts +0 -3
- package/dist/checkboxes.js +0 -4
- package/dist/checkboxes.js.map +0 -1
- package/dist/chunk-2KPHO7N2.js +0 -3
- package/dist/chunk-2KPHO7N2.js.map +0 -1
- package/dist/chunk-2W35PR6E.js +0 -3
- package/dist/chunk-2W35PR6E.js.map +0 -1
- package/dist/chunk-57K6B6V2.js +0 -38
- package/dist/chunk-57K6B6V2.js.map +0 -1
- package/dist/chunk-5RYJUAI3.js +0 -3
- package/dist/chunk-5RYJUAI3.js.map +0 -1
- package/dist/chunk-5YT2PQAF.js +0 -3
- package/dist/chunk-5YT2PQAF.js.map +0 -1
- package/dist/chunk-B33BQUXM.js +0 -8
- package/dist/chunk-B33BQUXM.js.map +0 -1
- package/dist/chunk-BAXFWXMR.js +0 -41
- package/dist/chunk-BAXFWXMR.js.map +0 -1
- package/dist/chunk-BDIDAVNV.js +0 -22
- package/dist/chunk-BDIDAVNV.js.map +0 -1
- package/dist/chunk-D6TMELAY.js +0 -3
- package/dist/chunk-D6TMELAY.js.map +0 -1
- package/dist/chunk-DHTWPFZO.js +0 -8
- package/dist/chunk-DHTWPFZO.js.map +0 -1
- package/dist/chunk-DK2FZF7U.js +0 -3
- package/dist/chunk-DK2FZF7U.js.map +0 -1
- package/dist/chunk-EMM6RZT7.js +0 -3
- package/dist/chunk-EMM6RZT7.js.map +0 -1
- package/dist/chunk-EMNBPB3L.js +0 -8
- package/dist/chunk-EMNBPB3L.js.map +0 -1
- package/dist/chunk-FE2OFAA5.js +0 -8
- package/dist/chunk-FE2OFAA5.js.map +0 -1
- package/dist/chunk-FNDQEOKW.js +0 -20
- package/dist/chunk-FNDQEOKW.js.map +0 -1
- package/dist/chunk-HHH5BEO6.js +0 -3
- package/dist/chunk-HHH5BEO6.js.map +0 -1
- package/dist/chunk-HRURRTAU.js +0 -83
- package/dist/chunk-HRURRTAU.js.map +0 -1
- package/dist/chunk-IFETUZ4S.js +0 -3
- package/dist/chunk-IFETUZ4S.js.map +0 -1
- package/dist/chunk-JLNRFYFI.js +0 -3
- package/dist/chunk-JLNRFYFI.js.map +0 -1
- package/dist/chunk-K7VSNNQD.js +0 -8
- package/dist/chunk-K7VSNNQD.js.map +0 -1
- package/dist/chunk-KFWTQTVJ.js +0 -3
- package/dist/chunk-KFWTQTVJ.js.map +0 -1
- package/dist/chunk-L4GCVMBX.js +0 -3
- package/dist/chunk-L4GCVMBX.js.map +0 -1
- package/dist/chunk-L4O7OXGY.js +0 -151
- package/dist/chunk-L4O7OXGY.js.map +0 -1
- package/dist/chunk-LG7D7X4T.js +0 -8
- package/dist/chunk-LG7D7X4T.js.map +0 -1
- package/dist/chunk-M5BQAPSC.js +0 -8
- package/dist/chunk-M5BQAPSC.js.map +0 -1
- package/dist/chunk-NN44HUS7.js +0 -64
- package/dist/chunk-NN44HUS7.js.map +0 -1
- package/dist/chunk-NV2BSK6G.js +0 -3
- package/dist/chunk-NV2BSK6G.js.map +0 -1
- package/dist/chunk-OCGJIH5X.js +0 -159
- package/dist/chunk-OCGJIH5X.js.map +0 -1
- package/dist/chunk-OQVOKH2T.js +0 -8
- package/dist/chunk-OQVOKH2T.js.map +0 -1
- package/dist/chunk-OWBD4KZC.js +0 -115
- package/dist/chunk-OWBD4KZC.js.map +0 -1
- package/dist/chunk-PM2AAFY4.js +0 -35
- package/dist/chunk-PM2AAFY4.js.map +0 -1
- package/dist/chunk-PNMADTQQ.js +0 -3
- package/dist/chunk-PNMADTQQ.js.map +0 -1
- package/dist/chunk-PZ5AY32C.js +0 -9
- package/dist/chunk-PZ5AY32C.js.map +0 -1
- package/dist/chunk-QOWZLJK4.js +0 -3
- package/dist/chunk-QOWZLJK4.js.map +0 -1
- package/dist/chunk-QV7AS734.js +0 -98
- package/dist/chunk-QV7AS734.js.map +0 -1
- package/dist/chunk-RC24GP47.js +0 -8
- package/dist/chunk-RC24GP47.js.map +0 -1
- package/dist/chunk-RIB3ADHK.js +0 -8
- package/dist/chunk-RIB3ADHK.js.map +0 -1
- package/dist/chunk-RODK5NYM.js +0 -3
- package/dist/chunk-RODK5NYM.js.map +0 -1
- package/dist/chunk-SKQVJZMM.js +0 -79
- package/dist/chunk-SKQVJZMM.js.map +0 -1
- package/dist/chunk-SMUQZFJ7.js +0 -179
- package/dist/chunk-SMUQZFJ7.js.map +0 -1
- package/dist/chunk-SVIOO5V5.js +0 -109
- package/dist/chunk-SVIOO5V5.js.map +0 -1
- package/dist/chunk-SYW45KJ5.js +0 -3
- package/dist/chunk-SYW45KJ5.js.map +0 -1
- package/dist/chunk-T56AQZA4.js +0 -3
- package/dist/chunk-T56AQZA4.js.map +0 -1
- package/dist/chunk-TK6FAARU.js +0 -12
- package/dist/chunk-TK6FAARU.js.map +0 -1
- package/dist/chunk-TQOVKJLU.js +0 -78
- package/dist/chunk-TQOVKJLU.js.map +0 -1
- package/dist/chunk-U2FEV65D.js +0 -8
- package/dist/chunk-U2FEV65D.js.map +0 -1
- package/dist/chunk-UHX5TMH6.js +0 -49
- package/dist/chunk-UHX5TMH6.js.map +0 -1
- package/dist/chunk-VB3GA2KO.js +0 -3
- package/dist/chunk-VB3GA2KO.js.map +0 -1
- package/dist/chunk-VGZUAGCQ.js +0 -8
- package/dist/chunk-VGZUAGCQ.js.map +0 -1
- package/dist/chunk-VKUBJY23.js +0 -8
- package/dist/chunk-VKUBJY23.js.map +0 -1
- package/dist/chunk-VQ4FRNV3.js +0 -8
- package/dist/chunk-VQ4FRNV3.js.map +0 -1
- package/dist/chunk-W7RN6ITL.js +0 -8
- package/dist/chunk-W7RN6ITL.js.map +0 -1
- package/dist/chunk-WFHQPUFE.js +0 -3
- package/dist/chunk-WFHQPUFE.js.map +0 -1
- package/dist/chunk-XO7OW5TM.js +0 -3
- package/dist/chunk-XO7OW5TM.js.map +0 -1
- package/dist/chunk-YOBXV2EG.js +0 -101
- package/dist/chunk-YOBXV2EG.js.map +0 -1
- package/dist/chunk-YYDYVLVS.js +0 -47
- package/dist/chunk-YYDYVLVS.js.map +0 -1
- package/dist/chunk-Z4J4DQCF.js +0 -8
- package/dist/chunk-Z4J4DQCF.js.map +0 -1
- package/dist/chunk-ZHHORZMC.js +0 -3
- package/dist/chunk-ZHHORZMC.js.map +0 -1
- package/dist/cookie-banner.js +0 -3
- package/dist/cookie-banner.js.map +0 -1
- package/dist/date-input.js +0 -3
- package/dist/date-input.js.map +0 -1
- package/dist/details.js +0 -3
- package/dist/details.js.map +0 -1
- package/dist/document-footer-metadata.d.ts +0 -2
- package/dist/document-footer-metadata.js +0 -4
- package/dist/document-footer-metadata.js.map +0 -1
- package/dist/error-message.d.ts +0 -1
- package/dist/error-message.js +0 -4
- package/dist/error-message.js.map +0 -1
- package/dist/error-summary.d.ts +0 -3
- package/dist/error-summary.js +0 -4
- package/dist/error-summary.js.map +0 -1
- package/dist/exit-this-page.d.ts +0 -4
- package/dist/exit-this-page.js +0 -4
- package/dist/exit-this-page.js.map +0 -1
- package/dist/feedback.js +0 -3
- package/dist/feedback.js.map +0 -1
- package/dist/fieldset.js +0 -3
- package/dist/fieldset.js.map +0 -1
- package/dist/file-upload.d.ts +0 -90
- package/dist/file-upload.js +0 -4
- package/dist/file-upload.js.map +0 -1
- package/dist/footer.js +0 -3
- package/dist/footer.js.map +0 -1
- package/dist/form-group.d.ts +0 -1
- package/dist/form-group.js +0 -4
- package/dist/form-group.js.map +0 -1
- package/dist/generic-header.js +0 -3
- package/dist/generic-header.js.map +0 -1
- package/dist/grid-column.d.ts +0 -1
- package/dist/grid-column.js +0 -4
- package/dist/grid-column.js.map +0 -1
- package/dist/grid-row.d.ts +0 -1
- package/dist/grid-row.js +0 -4
- package/dist/grid-row.js.map +0 -1
- package/dist/header.js +0 -3
- package/dist/header.js.map +0 -1
- package/dist/heading.d.ts +0 -1
- package/dist/heading.js +0 -4
- package/dist/heading.js.map +0 -1
- package/dist/hint.d.ts +0 -1
- package/dist/hint.js +0 -4
- package/dist/hint.js.map +0 -1
- package/dist/index-7cuUiEo3.d.ts +0 -98
- package/dist/index-B8fw-F9t.d.ts +0 -22
- package/dist/index-BBckYYWt.d.ts +0 -131
- package/dist/index-BOPiKua4.d.ts +0 -61
- package/dist/index-BOfUYry5.d.ts +0 -22
- package/dist/index-BP18qbj1.d.ts +0 -22
- package/dist/index-BQaNJq4d.d.ts +0 -22
- package/dist/index-BnYaP7AC.d.ts +0 -57
- package/dist/index-C-c5LroN.d.ts +0 -22
- package/dist/index-CAxOsfPr.d.ts +0 -22
- package/dist/index-CHKQTetM.d.ts +0 -52
- package/dist/index-CWRQhs3p.d.ts +0 -55
- package/dist/index-CidkuScr.d.ts +0 -22
- package/dist/index-D-5h70y_.d.ts +0 -22
- package/dist/index-DDvVZ8mX.d.ts +0 -22
- package/dist/index-DQaFKwpy.d.ts +0 -106
- package/dist/index-DWibEGiF.d.ts +0 -22
- package/dist/index-D_wOwhn9.d.ts +0 -127
- package/dist/index-DhPVSZNZ.d.ts +0 -40
- package/dist/index-DhjWVeDK.d.ts +0 -22
- package/dist/index-DnvlWvry.d.ts +0 -54
- package/dist/index-Dr0S9iUZ.d.ts +0 -22
- package/dist/index-Dw9RbQVO.d.ts +0 -22
- package/dist/index-MxQB65RM.d.ts +0 -48
- package/dist/index-RZtIJBvk.d.ts +0 -22
- package/dist/index-TgEbRgDh.d.ts +0 -22
- package/dist/index-a8sYZpTj.d.ts +0 -77
- package/dist/index-rQaOtoWF.d.ts +0 -59
- package/dist/index-trAlT6HP.d.ts +0 -22
- package/dist/index-vBukON0x.d.ts +0 -50
- package/dist/input.js +0 -3
- package/dist/input.js.map +0 -1
- package/dist/inset-text.d.ts +0 -1
- package/dist/inset-text.js +0 -4
- package/dist/inset-text.js.map +0 -1
- package/dist/label.d.ts +0 -1
- package/dist/label.js +0 -4
- package/dist/label.js.map +0 -1
- package/dist/language-navigation.js +0 -3
- package/dist/language-navigation.js.map +0 -1
- package/dist/link.d.ts +0 -1
- package/dist/link.js +0 -4
- package/dist/link.js.map +0 -1
- package/dist/list.d.ts +0 -1
- package/dist/list.js +0 -4
- package/dist/list.js.map +0 -1
- package/dist/loading-box.d.ts +0 -39
- package/dist/loading-box.js +0 -4
- package/dist/loading-box.js.map +0 -1
- package/dist/main-wrapper.d.ts +0 -1
- package/dist/main-wrapper.js +0 -4
- package/dist/main-wrapper.js.map +0 -1
- package/dist/modal.d.ts +0 -4
- package/dist/modal.js +0 -4
- package/dist/modal.js.map +0 -1
- package/dist/notification-banner.d.ts +0 -3
- package/dist/notification-banner.js +0 -4
- package/dist/notification-banner.js.map +0 -1
- package/dist/page.js +0 -7
- package/dist/page.js.map +0 -1
- package/dist/pagination.js +0 -3
- package/dist/pagination.js.map +0 -1
- package/dist/panel.js +0 -3
- package/dist/panel.js.map +0 -1
- package/dist/password-input.d.ts +0 -4
- package/dist/password-input.js +0 -4
- package/dist/password-input.js.map +0 -1
- package/dist/phase-banner.js +0 -3
- package/dist/phase-banner.js.map +0 -1
- package/dist/radios.d.ts +0 -3
- package/dist/radios.js +0 -4
- package/dist/radios.js.map +0 -1
- package/dist/related-items.d.ts +0 -2
- package/dist/related-items.js +0 -4
- package/dist/related-items.js.map +0 -1
- package/dist/search-box.d.ts +0 -3
- package/dist/search-box.js +0 -4
- package/dist/search-box.js.map +0 -1
- package/dist/section-break.d.ts +0 -1
- package/dist/section-break.js +0 -4
- package/dist/section-break.js.map +0 -1
- package/dist/select.js +0 -3
- package/dist/select.js.map +0 -1
- package/dist/service-navigation.d.ts +0 -4
- package/dist/service-navigation.js +0 -4
- package/dist/service-navigation.js.map +0 -1
- package/dist/skip-link.js +0 -4
- package/dist/skip-link.js.map +0 -1
- package/dist/summary-list.js +0 -3
- package/dist/summary-list.js.map +0 -1
- package/dist/table.js +0 -3
- package/dist/table.js.map +0 -1
- package/dist/tabs.d.ts +0 -3
- package/dist/tabs.js +0 -4
- package/dist/tabs.js.map +0 -1
- package/dist/tag.d.ts +0 -1
- package/dist/tag.js +0 -4
- package/dist/tag.js.map +0 -1
- package/dist/task-list.js +0 -3
- package/dist/task-list.js.map +0 -1
- package/dist/textarea.js +0 -3
- package/dist/textarea.js.map +0 -1
- package/dist/visually-hidden.d.ts +0 -1
- package/dist/visually-hidden.js +0 -4
- package/dist/visually-hidden.js.map +0 -1
- package/dist/warning-text.js +0 -3
- package/dist/warning-text.js.map +0 -1
- package/dist/width-container.d.ts +0 -1
- package/dist/width-container.js +0 -4
- package/dist/width-container.js.map +0 -1
- /package/dist/{breadcrumbs.d.ts → components/breadcrumbs/index.d.ts} +0 -0
- /package/dist/{cookie-banner.d.ts → components/cookie-banner/index.d.ts} +0 -0
- /package/dist/{date-input.d.ts → components/date-input/index.d.ts} +0 -0
- /package/dist/{details.d.ts → components/details/index.d.ts} +0 -0
- /package/dist/{feedback.d.ts → components/feedback/index.d.ts} +0 -0
- /package/dist/{fieldset.d.ts → components/fieldset/index.d.ts} +0 -0
- /package/dist/{footer.d.ts → components/footer/index.d.ts} +0 -0
- /package/dist/{generic-header.d.ts → components/generic-header/index.d.ts} +0 -0
- /package/dist/{header.d.ts → components/header/index.d.ts} +0 -0
- /package/dist/{input.d.ts → components/input/index.d.ts} +0 -0
- /package/dist/{language-navigation.d.ts → components/language-navigation/index.d.ts} +0 -0
- /package/dist/{pagination.d.ts → components/pagination/index.d.ts} +0 -0
- /package/dist/{panel.d.ts → components/panel/index.d.ts} +0 -0
- /package/dist/{phase-banner.d.ts → components/phase-banner/index.d.ts} +0 -0
- /package/dist/{select.d.ts → components/select/index.d.ts} +0 -0
- /package/dist/{summary-list.d.ts → components/summary-list/index.d.ts} +0 -0
- /package/dist/{table.d.ts → components/table/index.d.ts} +0 -0
- /package/dist/{task-list.d.ts → components/task-list/index.d.ts} +0 -0
- /package/dist/{textarea.d.ts → components/textarea/index.d.ts} +0 -0
- /package/dist/{warning-text.d.ts → components/warning-text/index.d.ts} +0 -0
package/dist/index-BOPiKua4.d.ts
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as Markup from 'govuk-frontend-react/radios';
|
|
3
|
-
import { Divider, DividerProps, Hint, HintProps, Item, ItemProps, Label, LabelProps } from 'govuk-frontend-react/radios';
|
|
4
|
-
|
|
5
|
-
/** Shows a reveal only while its radio is checked, before or without JavaScript. */
|
|
6
|
-
declare const radiosCss: string;
|
|
7
|
-
type RootProps = Markup.RootProps;
|
|
8
|
-
/**
|
|
9
|
-
* Let users select a single option from a list using the radios 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/radios/
|
|
14
|
-
*/
|
|
15
|
-
declare function Root(props: RootProps): React.JSX.Element;
|
|
16
|
-
type InputProps = Markup.InputProps & {
|
|
17
|
-
/** The id of the `Conditional` this radio reveals. */
|
|
18
|
-
controls?: string;
|
|
19
|
-
};
|
|
20
|
-
declare function Input({ controls, ...props }: InputProps): React.JSX.Element;
|
|
21
|
-
type ConditionalProps = Markup.ConditionalProps;
|
|
22
|
-
/** Content revealed while its radio is checked, straight after its `Item`. Pass the radio's `checked` or `defaultChecked` as `checked`. */
|
|
23
|
-
declare function Conditional(props: ConditionalProps): React.JSX.Element;
|
|
24
|
-
type ItemCompositeProps = Markup.ItemCompositeProps;
|
|
25
|
-
declare function ItemComposite({ id, label, hint, conditional, 'aria-describedby': describedBy, ...props }: ItemCompositeProps): React.JSX.Element;
|
|
26
|
-
type FieldProps = Markup.FieldProps;
|
|
27
|
-
/**
|
|
28
|
-
* Let users select a single option from a list using the radios component.
|
|
29
|
-
*
|
|
30
|
-
* Children are `ItemComposite`s and `Divider`s.
|
|
31
|
-
*
|
|
32
|
-
* @see https://design-system.service.gov.uk/components/radios/
|
|
33
|
-
*/
|
|
34
|
-
declare function Field({ items, children, ...props }: FieldProps): React.JSX.Element;
|
|
35
|
-
|
|
36
|
-
declare const index_Conditional: typeof Conditional;
|
|
37
|
-
type index_ConditionalProps = ConditionalProps;
|
|
38
|
-
declare const index_Divider: typeof Divider;
|
|
39
|
-
declare const index_DividerProps: typeof DividerProps;
|
|
40
|
-
declare const index_Field: typeof Field;
|
|
41
|
-
type index_FieldProps = FieldProps;
|
|
42
|
-
declare const index_Hint: typeof Hint;
|
|
43
|
-
declare const index_HintProps: typeof HintProps;
|
|
44
|
-
declare const index_Input: typeof Input;
|
|
45
|
-
type index_InputProps = InputProps;
|
|
46
|
-
declare const index_Item: typeof Item;
|
|
47
|
-
declare const index_ItemComposite: typeof ItemComposite;
|
|
48
|
-
type index_ItemCompositeProps = ItemCompositeProps;
|
|
49
|
-
declare const index_ItemProps: typeof ItemProps;
|
|
50
|
-
declare const index_Label: typeof Label;
|
|
51
|
-
declare const index_LabelProps: typeof LabelProps;
|
|
52
|
-
declare const index_Root: typeof Root;
|
|
53
|
-
type index_RootProps = RootProps;
|
|
54
|
-
declare const index_radiosCss: typeof radiosCss;
|
|
55
|
-
declare namespace index {
|
|
56
|
-
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_radiosCss as radiosCss };
|
|
57
|
-
export type { index_ConditionalProps as ConditionalProps, index_FieldProps as FieldProps, index_InputProps as InputProps, index_ItemCompositeProps as ItemCompositeProps, index_RootProps as RootProps };
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export { Conditional as C, Field as F, Input as I, Root as R, ItemComposite as d, index as i, radiosCss as r };
|
|
61
|
-
export type { ConditionalProps as a, FieldProps as b, InputProps as c, ItemCompositeProps as e, RootProps as f };
|
package/dist/index-BOfUYry5.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as footer from 'govuk-frontend-react/footer';
|
|
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
|
-
}, [footer]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-BP18qbj1.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as genericHeader from 'govuk-frontend-react/generic-header';
|
|
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
|
-
}, [genericHeader]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-BQaNJq4d.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as fieldset from 'govuk-frontend-react/fieldset';
|
|
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
|
-
}, [fieldset]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-BnYaP7AC.d.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as Primitives from '@govuk-react/primitives/character-count';
|
|
3
|
-
import * as Markup from 'govuk-frontend-react/character-count';
|
|
4
|
-
|
|
5
|
-
type RootProps = Markup.RootProps;
|
|
6
|
-
/**
|
|
7
|
-
* Tell users how many characters or words they can enter into a textarea.
|
|
8
|
-
*
|
|
9
|
-
* Wrap `Textarea`, `Message`, `Status` and `ScreenReaderStatus`, with the label, hint and error
|
|
10
|
-
* message.
|
|
11
|
-
*
|
|
12
|
-
* @see https://design-system.service.gov.uk/components/character-count/
|
|
13
|
-
*/
|
|
14
|
-
declare function Root({ maxLength, maxWords, threshold, countType, charactersUnderLimitText, charactersAtLimitText, charactersOverLimitText, wordsUnderLimitText, wordsAtLimitText, wordsOverLimitText, error, ...props }: RootProps): React.JSX.Element;
|
|
15
|
-
type TextareaProps = Markup.TextareaProps;
|
|
16
|
-
/** The field. */
|
|
17
|
-
declare function Textarea(props: TextareaProps): React.JSX.Element;
|
|
18
|
-
type MessageProps = Markup.MessageProps;
|
|
19
|
-
/**
|
|
20
|
-
* The description, such as "You can enter up to 200 characters". Shown without JavaScript, and
|
|
21
|
-
* visually hidden once the count shows. Give it the field's id followed by `-info`, and add that to
|
|
22
|
-
* the field's `aria-describedby`.
|
|
23
|
-
*/
|
|
24
|
-
declare function Message(props: MessageProps): React.JSX.Element;
|
|
25
|
-
type StatusProps = Omit<Primitives.StatusProps, 'asChild'>;
|
|
26
|
-
/** The visible count, after `Message`. Shown once JavaScript runs. */
|
|
27
|
-
declare function Status({ className, ...props }: StatusProps): React.JSX.Element;
|
|
28
|
-
type ScreenReaderStatusProps = Omit<Primitives.ScreenReaderStatusProps, 'asChild'>;
|
|
29
|
-
/** The count for screen readers, after `Status`, once the user pauses typing. */
|
|
30
|
-
declare function ScreenReaderStatus({ className, ...props }: ScreenReaderStatusProps): React.JSX.Element;
|
|
31
|
-
type FieldProps = Markup.FieldProps;
|
|
32
|
-
/**
|
|
33
|
-
* Tell users how many characters or words they can enter into a textarea.
|
|
34
|
-
*
|
|
35
|
-
* @see https://design-system.service.gov.uk/components/character-count/
|
|
36
|
-
*/
|
|
37
|
-
declare function Field({ id: idProp, name, label, labelSize, labelIsPageHeading, hint, errorMessage, maxLength, maxWords, threshold, countType, textareaDescriptionText, charactersUnderLimitText, charactersAtLimitText, charactersOverLimitText, wordsUnderLimitText, wordsAtLimitText, wordsOverLimitText, 'aria-describedby': describedBy, ...props }: FieldProps): React.JSX.Element;
|
|
38
|
-
|
|
39
|
-
declare const index_Field: typeof Field;
|
|
40
|
-
type index_FieldProps = FieldProps;
|
|
41
|
-
declare const index_Message: typeof Message;
|
|
42
|
-
type index_MessageProps = MessageProps;
|
|
43
|
-
declare const index_Root: typeof Root;
|
|
44
|
-
type index_RootProps = RootProps;
|
|
45
|
-
declare const index_ScreenReaderStatus: typeof ScreenReaderStatus;
|
|
46
|
-
type index_ScreenReaderStatusProps = ScreenReaderStatusProps;
|
|
47
|
-
declare const index_Status: typeof Status;
|
|
48
|
-
type index_StatusProps = StatusProps;
|
|
49
|
-
declare const index_Textarea: typeof Textarea;
|
|
50
|
-
type index_TextareaProps = TextareaProps;
|
|
51
|
-
declare namespace index {
|
|
52
|
-
export { index_Field as Field, index_Message as Message, index_Root as Root, index_ScreenReaderStatus as ScreenReaderStatus, index_Status as Status, index_Textarea as Textarea };
|
|
53
|
-
export type { index_FieldProps as FieldProps, index_MessageProps as MessageProps, index_RootProps as RootProps, index_ScreenReaderStatusProps as ScreenReaderStatusProps, index_StatusProps as StatusProps, index_TextareaProps as TextareaProps };
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export { Field as F, Message as M, Root as R, ScreenReaderStatus as S, Textarea as T, Status as e, index as i };
|
|
57
|
-
export type { FieldProps as a, MessageProps as b, RootProps as c, ScreenReaderStatusProps as d, StatusProps as f, TextareaProps as g };
|
package/dist/index-C-c5LroN.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as panel from 'govuk-frontend-react/panel';
|
|
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
|
-
}, [panel]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-CAxOsfPr.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as dateInput from 'govuk-frontend-react/date-input';
|
|
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
|
-
}, [dateInput]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-CHKQTetM.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import * as Markup from 'govuk-frontend-react/exit-this-page';
|
|
3
|
-
import { SkipLinkProps as SkipLinkProps$1 } from 'govuk-frontend-react/skip-link';
|
|
4
|
-
|
|
5
|
-
type RootProps = Markup.RootProps;
|
|
6
|
-
/**
|
|
7
|
-
* Give users a way to quickly and safely exit a service, website or application.
|
|
8
|
-
*
|
|
9
|
-
* Once JavaScript runs, the button, a `SkipLink`, or pressing Shift 3 times hides the page and
|
|
10
|
-
* goes to the button's `href`, as in govuk-frontend.
|
|
11
|
-
*
|
|
12
|
-
* @see https://design-system.service.gov.uk/components/exit-this-page/
|
|
13
|
-
*/
|
|
14
|
-
declare function Root({ children, ...props }: RootProps): React.JSX.Element;
|
|
15
|
-
type ButtonProps = Markup.ButtonProps;
|
|
16
|
-
/** The link to a safe page. Shows how many times Shift has been pressed. */
|
|
17
|
-
declare function Button({ children, ...props }: ButtonProps): React.JSX.Element;
|
|
18
|
-
/** Shows how many times Shift has been pressed. Button renders it. */
|
|
19
|
-
declare function Indicator(): React.JSX.Element;
|
|
20
|
-
/** Tells screen readers how many more presses are needed. Root renders it. */
|
|
21
|
-
declare function Status(): React.JSX.Element;
|
|
22
|
-
type SkipLinkProps = SkipLinkProps$1;
|
|
23
|
-
/** A skip link that exits the page too, for the top of the page. */
|
|
24
|
-
declare function SkipLink({ href, className, ...props }: SkipLinkProps): React.JSX.Element;
|
|
25
|
-
type CompositeProps = Markup.CompositeProps;
|
|
26
|
-
/**
|
|
27
|
-
* Give users a way to quickly and safely exit a service, website or application.
|
|
28
|
-
*
|
|
29
|
-
* Once JavaScript runs, the button, a `SkipLink`, or pressing Shift 3 times hides the page and
|
|
30
|
-
* goes to the button's `href`, as in govuk-frontend.
|
|
31
|
-
*
|
|
32
|
-
* @see https://design-system.service.gov.uk/components/exit-this-page/
|
|
33
|
-
*/
|
|
34
|
-
declare function Composite({ href, children, ...props }: CompositeProps): React.JSX.Element;
|
|
35
|
-
|
|
36
|
-
declare const index_Button: typeof Button;
|
|
37
|
-
type index_ButtonProps = ButtonProps;
|
|
38
|
-
declare const index_Composite: typeof Composite;
|
|
39
|
-
type index_CompositeProps = CompositeProps;
|
|
40
|
-
declare const index_Indicator: typeof Indicator;
|
|
41
|
-
declare const index_Root: typeof Root;
|
|
42
|
-
type index_RootProps = RootProps;
|
|
43
|
-
declare const index_SkipLink: typeof SkipLink;
|
|
44
|
-
type index_SkipLinkProps = SkipLinkProps;
|
|
45
|
-
declare const index_Status: typeof Status;
|
|
46
|
-
declare namespace index {
|
|
47
|
-
export { index_Button as Button, index_Composite as Composite, index_Indicator as Indicator, index_Root as Root, index_SkipLink as SkipLink, index_Status as Status };
|
|
48
|
-
export type { index_ButtonProps as ButtonProps, index_CompositeProps as CompositeProps, index_RootProps as RootProps, index_SkipLinkProps as SkipLinkProps };
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export { Button as B, Composite as C, Indicator as I, Root as R, SkipLink as S, Status as e, index as i };
|
|
52
|
-
export type { ButtonProps as a, CompositeProps as b, RootProps as c, SkipLinkProps as d };
|
package/dist/index-CWRQhs3p.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ReactNode } from 'react';
|
|
3
|
-
import * as Primitives from '@govuk-react/primitives/modal';
|
|
4
|
-
import { ButtonProps } from 'govuk-frontend-react/button';
|
|
5
|
-
|
|
6
|
-
/** Styles govuk-frontend has no class for, hoisted and deduplicated by React. */
|
|
7
|
-
declare const modalCss = "\n.govuk-react-modal{box-sizing:border-box;width:calc(100% - 30px);max-width:640px;max-height:calc(100% - 30px);padding:30px;border:5px solid var(--govuk-text-colour,#0b0c0c);background:var(--govuk-body-background-colour,#fff);color:var(--govuk-text-colour,#0b0c0c)}\n.govuk-react-modal:focus{outline:3px solid var(--govuk-focus-colour,#fd0);outline-offset:0}\n.govuk-react-modal::backdrop{background:rgb(11 12 12 / .8)}\n.govuk-react-modal>:last-child{margin-bottom:0}\n@media (max-width:40.0525em){.govuk-react-modal{padding:15px}}\n";
|
|
8
|
-
type RootProps = Primitives.RootProps;
|
|
9
|
-
/** Holds the modal and the buttons that open and close it. */
|
|
10
|
-
declare function Root({ children, ...props }: RootProps): React.JSX.Element;
|
|
11
|
-
type TriggerProps = Omit<ButtonProps, 'as' | 'href' | 'type'> & Pick<Primitives.TriggerProps, 'dialogId'>;
|
|
12
|
-
/** A button that opens the modal. */
|
|
13
|
-
declare function Trigger({ dialogId, ...props }: TriggerProps): React.JSX.Element;
|
|
14
|
-
type CloseProps = TriggerProps;
|
|
15
|
-
/** A button that closes the modal. A secondary button, unless you pass another `variant`, or `undefined` for a primary one. */
|
|
16
|
-
declare function Close({ dialogId, ...props }: CloseProps): React.JSX.Element;
|
|
17
|
-
type ContentProps = Omit<Primitives.ContentProps, 'asChild'>;
|
|
18
|
-
/** The modal dialog. Give it a Title. */
|
|
19
|
-
declare function Content({ className, ...props }: ContentProps): React.JSX.Element;
|
|
20
|
-
type TitleProps = Omit<Primitives.TitleProps, 'asChild'>;
|
|
21
|
-
/** The modal's heading, which names it. */
|
|
22
|
-
declare function Title({ className, ...props }: TitleProps): React.JSX.Element;
|
|
23
|
-
type CompositeProps = Omit<RootProps, 'title'> & {
|
|
24
|
-
/** The text of the button that opens the modal. */
|
|
25
|
-
triggerText: ReactNode;
|
|
26
|
-
/** The modal's heading. */
|
|
27
|
-
title: ReactNode;
|
|
28
|
-
/** The text of the button that closes the modal. Defaults to "Cancel". */
|
|
29
|
-
closeText?: ReactNode;
|
|
30
|
-
/** Other actions, such as a button that confirms, shown before the close button. */
|
|
31
|
-
actions?: ReactNode;
|
|
32
|
-
};
|
|
33
|
-
/** A button that opens a modal with a title, content and actions. */
|
|
34
|
-
declare function Composite({ triggerText, title, closeText, actions, children, ...props }: CompositeProps): React.JSX.Element;
|
|
35
|
-
|
|
36
|
-
declare const index_Close: typeof Close;
|
|
37
|
-
type index_CloseProps = CloseProps;
|
|
38
|
-
declare const index_Composite: typeof Composite;
|
|
39
|
-
type index_CompositeProps = CompositeProps;
|
|
40
|
-
declare const index_Content: typeof Content;
|
|
41
|
-
type index_ContentProps = ContentProps;
|
|
42
|
-
declare const index_Root: typeof Root;
|
|
43
|
-
type index_RootProps = RootProps;
|
|
44
|
-
declare const index_Title: typeof Title;
|
|
45
|
-
type index_TitleProps = TitleProps;
|
|
46
|
-
declare const index_Trigger: typeof Trigger;
|
|
47
|
-
type index_TriggerProps = TriggerProps;
|
|
48
|
-
declare const index_modalCss: typeof modalCss;
|
|
49
|
-
declare namespace index {
|
|
50
|
-
export { index_Close as Close, index_Composite as Composite, index_Content as Content, index_Root as Root, index_Title as Title, index_Trigger as Trigger, index_modalCss as modalCss };
|
|
51
|
-
export type { index_CloseProps as CloseProps, index_CompositeProps as CompositeProps, index_ContentProps as ContentProps, index_RootProps as RootProps, index_TitleProps as TitleProps, index_TriggerProps as TriggerProps };
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export { Close as C, Root as R, Title as T, Composite as b, Content as d, Trigger as h, index as i, modalCss as m };
|
|
55
|
-
export type { CloseProps as a, CompositeProps as c, ContentProps as e, RootProps as f, TitleProps as g, TriggerProps as j };
|
package/dist/index-CidkuScr.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as summaryList from 'govuk-frontend-react/summary-list';
|
|
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
|
-
}, [summaryList]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-D-5h70y_.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as breadcrumbs from 'govuk-frontend-react/breadcrumbs';
|
|
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
|
-
}, [breadcrumbs]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-DDvVZ8mX.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as taskList from 'govuk-frontend-react/task-list';
|
|
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
|
-
}, [taskList]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|
package/dist/index-DQaFKwpy.d.ts
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { ComponentProps } from 'react';
|
|
3
|
-
import * as Primitives from '@govuk-react/primitives/disclosure';
|
|
4
|
-
import * as Markup from 'govuk-frontend-react/service-navigation';
|
|
5
|
-
import { ActiveFallback, ActiveFallbackProps, Container, ContainerProps, Item, ItemComposite, ItemCompositeProps, ItemProps, Link, LinkProps, Root, RootProps, ServiceName, ServiceNameProps, Text, TextProps, WidthContainer, WidthContainerProps, Wrapper, WrapperProps } from 'govuk-frontend-react/service-navigation';
|
|
6
|
-
|
|
7
|
-
type MenuState = {
|
|
8
|
-
/** Whether the menu is open below tablet width, to control it once hydrated, such as to close it after navigating. */
|
|
9
|
-
open?: boolean;
|
|
10
|
-
/** Called when the user opens or closes the menu. */
|
|
11
|
-
onOpenChange?: (open: boolean) => void;
|
|
12
|
-
};
|
|
13
|
-
type MenuProps = Omit<Primitives.RootProps, 'media' | 'defaultOpen'> & MenuState;
|
|
14
|
-
/**
|
|
15
|
-
* govuk-frontend's menu: inside `Wrapper`, around `Toggle` and `List`. Below tablet width the
|
|
16
|
-
* button shows and hides the list once JavaScript runs. Without JavaScript the list is always
|
|
17
|
-
* shown and the button hidden.
|
|
18
|
-
*/
|
|
19
|
-
declare function Menu({ style, ...props }: MenuProps): React.JSX.Element;
|
|
20
|
-
type ToggleProps = Markup.ToggleProps;
|
|
21
|
-
/** The menu button, inside `Menu`. Hidden from tablet width up, and without JavaScript. */
|
|
22
|
-
declare function Toggle(props: ToggleProps): React.JSX.Element;
|
|
23
|
-
/** Styles govuk-frontend has no class for, hoisted and deduplicated by React. */
|
|
24
|
-
declare const detailsCss = "\n.govuk-react-service-navigation__details>summary{list-style:none}\n.govuk-react-service-navigation__details>summary::-webkit-details-marker{display:none}\n.govuk-react-service-navigation__details[open]>summary::after{transform:rotate(180deg)}\n@supports selector(::details-content){@media (min-width: 40.0625em){.govuk-react-service-navigation__details>summary{display:none}.govuk-react-service-navigation__details::details-content{content-visibility:visible;display:contents}}}\n";
|
|
25
|
-
type DetailsMenuProps = Omit<ComponentProps<'details'>, 'open'> & MenuState;
|
|
26
|
-
/**
|
|
27
|
-
* A menu that works without JavaScript: a native `details`, inside `Wrapper`, around `Summary`
|
|
28
|
-
* and `List`. Below tablet width the summary shows and hides the list. From tablet width the list
|
|
29
|
-
* shows where the browser supports `::details-content` (Chrome and Edge 131, Safari 18.4,
|
|
30
|
-
* Firefox 143), and stays behind the menu where it doesn't.
|
|
31
|
-
*
|
|
32
|
-
* Check it with your users' assistive technology before choosing it over `Menu`. GOV.UK's audits
|
|
33
|
-
* of the Details component found VoiceOver doesn't convey a `summary`'s state on iOS before 17,
|
|
34
|
-
* and Dragon voice control can have trouble opening one.
|
|
35
|
-
*
|
|
36
|
-
* @see https://github.com/alphagov/govuk-design-system/issues/4030
|
|
37
|
-
* @see https://github.com/alphagov/govuk-frontend/issues/5310
|
|
38
|
-
*/
|
|
39
|
-
declare function DetailsMenu({ open, onOpenChange, onToggle, className, children, ...props }: DetailsMenuProps): React.JSX.Element;
|
|
40
|
-
type SummaryProps = ComponentProps<'summary'>;
|
|
41
|
-
/** The menu button of `DetailsMenu`. Hidden from tablet width up, where the browser can show the list. */
|
|
42
|
-
declare function Summary({ className, children, ...props }: SummaryProps): React.JSX.Element;
|
|
43
|
-
type ListProps = Markup.ListProps;
|
|
44
|
-
/** The navigation list, inside `Menu` or `DetailsMenu`, or straight inside `Wrapper` with no menu. */
|
|
45
|
-
declare function List(props: ListProps): React.JSX.Element;
|
|
46
|
-
type CompositeProps = Markup.CompositeProps & MenuState;
|
|
47
|
-
/**
|
|
48
|
-
* Service navigation helps users understand that they’re using your service and lets them navigate around your service.
|
|
49
|
-
*
|
|
50
|
-
* Children are `ItemComposite`s. The menu is govuk-frontend's: without JavaScript the
|
|
51
|
-
* navigation is always shown.
|
|
52
|
-
*
|
|
53
|
-
* @see https://design-system.service.gov.uk/components/service-navigation/
|
|
54
|
-
*/
|
|
55
|
-
declare function Composite(props: CompositeProps): React.JSX.Element;
|
|
56
|
-
/**
|
|
57
|
-
* Service navigation helps users understand that they’re using your service and lets them navigate around your service.
|
|
58
|
-
*
|
|
59
|
-
* Children are `ItemComposite`s. The menu is a `DetailsMenu`, which works without JavaScript but
|
|
60
|
-
* has screen reader and voice control caveats: see `DetailsMenu`.
|
|
61
|
-
*
|
|
62
|
-
* @see https://design-system.service.gov.uk/components/service-navigation/
|
|
63
|
-
*/
|
|
64
|
-
declare function DetailsComposite(props: CompositeProps): React.JSX.Element;
|
|
65
|
-
|
|
66
|
-
declare const index_ActiveFallback: typeof ActiveFallback;
|
|
67
|
-
declare const index_ActiveFallbackProps: typeof ActiveFallbackProps;
|
|
68
|
-
declare const index_Composite: typeof Composite;
|
|
69
|
-
type index_CompositeProps = CompositeProps;
|
|
70
|
-
declare const index_Container: typeof Container;
|
|
71
|
-
declare const index_ContainerProps: typeof ContainerProps;
|
|
72
|
-
declare const index_DetailsComposite: typeof DetailsComposite;
|
|
73
|
-
declare const index_DetailsMenu: typeof DetailsMenu;
|
|
74
|
-
type index_DetailsMenuProps = DetailsMenuProps;
|
|
75
|
-
declare const index_Item: typeof Item;
|
|
76
|
-
declare const index_ItemComposite: typeof ItemComposite;
|
|
77
|
-
declare const index_ItemCompositeProps: typeof ItemCompositeProps;
|
|
78
|
-
declare const index_ItemProps: typeof ItemProps;
|
|
79
|
-
declare const index_Link: typeof Link;
|
|
80
|
-
declare const index_LinkProps: typeof LinkProps;
|
|
81
|
-
declare const index_List: typeof List;
|
|
82
|
-
type index_ListProps = ListProps;
|
|
83
|
-
declare const index_Menu: typeof Menu;
|
|
84
|
-
type index_MenuProps = MenuProps;
|
|
85
|
-
declare const index_Root: typeof Root;
|
|
86
|
-
declare const index_RootProps: typeof RootProps;
|
|
87
|
-
declare const index_ServiceName: typeof ServiceName;
|
|
88
|
-
declare const index_ServiceNameProps: typeof ServiceNameProps;
|
|
89
|
-
declare const index_Summary: typeof Summary;
|
|
90
|
-
type index_SummaryProps = SummaryProps;
|
|
91
|
-
declare const index_Text: typeof Text;
|
|
92
|
-
declare const index_TextProps: typeof TextProps;
|
|
93
|
-
declare const index_Toggle: typeof Toggle;
|
|
94
|
-
type index_ToggleProps = ToggleProps;
|
|
95
|
-
declare const index_WidthContainer: typeof WidthContainer;
|
|
96
|
-
declare const index_WidthContainerProps: typeof WidthContainerProps;
|
|
97
|
-
declare const index_Wrapper: typeof Wrapper;
|
|
98
|
-
declare const index_WrapperProps: typeof WrapperProps;
|
|
99
|
-
declare const index_detailsCss: typeof detailsCss;
|
|
100
|
-
declare namespace index {
|
|
101
|
-
export { index_ActiveFallback as ActiveFallback, index_ActiveFallbackProps as ActiveFallbackProps, index_Composite as Composite, index_Container as Container, index_ContainerProps as ContainerProps, index_DetailsComposite as DetailsComposite, index_DetailsMenu as DetailsMenu, index_Item as Item, index_ItemComposite as ItemComposite, index_ItemCompositeProps as ItemCompositeProps, index_ItemProps as ItemProps, index_Link as Link, index_LinkProps as LinkProps, index_List as List, index_Menu as Menu, index_Root as Root, index_RootProps as RootProps, index_ServiceName as ServiceName, index_ServiceNameProps as ServiceNameProps, index_Summary as Summary, index_Text as Text, index_TextProps as TextProps, index_Toggle as Toggle, index_WidthContainer as WidthContainer, index_WidthContainerProps as WidthContainerProps, index_Wrapper as Wrapper, index_WrapperProps as WrapperProps, index_detailsCss as detailsCss };
|
|
102
|
-
export type { index_CompositeProps as CompositeProps, index_DetailsMenuProps as DetailsMenuProps, index_ListProps as ListProps, index_MenuProps as MenuProps, index_SummaryProps as SummaryProps, index_ToggleProps as ToggleProps };
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export { Composite as C, DetailsComposite as D, List as L, Menu as M, Summary as S, Toggle as T, DetailsMenu as b, detailsCss as h, index as i };
|
|
106
|
-
export type { CompositeProps as a, DetailsMenuProps as c, ListProps as d, MenuProps as e, SummaryProps as f, ToggleProps as g };
|
package/dist/index-DWibEGiF.d.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import * as table from 'govuk-frontend-react/table';
|
|
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
|
-
}, [table]);
|
|
21
|
-
|
|
22
|
-
export { index as i };
|