@moduk/frontend 1.2.0 → 1.3.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/assets/images/govuk-crest-2x.png +0 -0
- package/assets/images/govuk-crest.png +0 -0
- package/assets/svg/moduk-header-logo.svg +7 -0
- package/client/index.d.ts +2 -0
- package/client/index.d.ts.map +1 -0
- package/client/moduk-frontend.mjs +1 -0
- package/client/moduk-frontend.umd.js +2 -0
- package/client/moduk-frontend.umd.js.map +1 -0
- package/css/index.css +1 -0
- package/dist/nunjucks/moduk/components/table/__examples__/with-large-caption.njk +9 -9
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +18 -0
- package/lib/index.js.map +1 -0
- package/lib/utils.d.ts +25 -0
- package/lib/utils.d.ts.map +1 -0
- package/lib/utils.js +111 -0
- package/lib/utils.js.map +1 -0
- package/nunjucks/moduk/components/accordion/__examples__/default.njk +39 -0
- package/nunjucks/moduk/components/accordion/__examples__/with-custom-text.njk +45 -0
- package/nunjucks/moduk/components/accordion/__examples__/with-expanded-items.njk +41 -0
- package/nunjucks/moduk/components/accordion/__examples__/with-h3-headings.njk +40 -0
- package/nunjucks/moduk/components/accordion/__examples__/with-remember-expanded-off.njk +40 -0
- package/nunjucks/moduk/components/accordion/__examples__/with-summary-lines.njk +122 -0
- package/nunjucks/moduk/components/accordion/__examples__/with-text-items.njk +41 -0
- package/nunjucks/moduk/components/accordion/macro.njk +5 -0
- package/nunjucks/moduk/components/back-link/__examples__/default.njk +6 -0
- package/nunjucks/moduk/components/back-link/macro.njk +5 -0
- package/nunjucks/moduk/components/breadcrumbs/__examples__/default.njk +18 -0
- package/nunjucks/moduk/components/breadcrumbs/macro.njk +5 -0
- package/nunjucks/moduk/components/button/__examples__/default.njk +5 -0
- package/nunjucks/moduk/components/button/__examples__/disabled.njk +6 -0
- package/nunjucks/moduk/components/button/__examples__/group-link.njk +9 -0
- package/nunjucks/moduk/components/button/__examples__/grouping.njk +12 -0
- package/nunjucks/moduk/components/button/__examples__/prevent-double-click.njk +30 -0
- package/nunjucks/moduk/components/button/__examples__/secondary.njk +6 -0
- package/nunjucks/moduk/components/button/__examples__/start.njk +7 -0
- package/nunjucks/moduk/components/button/__examples__/warning.njk +6 -0
- package/nunjucks/moduk/components/button/macro.njk +5 -0
- package/nunjucks/moduk/components/character-count/__examples__/default.njk +15 -0
- package/nunjucks/moduk/components/character-count/__examples__/not-as-page-heading.njk +10 -0
- package/nunjucks/moduk/components/character-count/__examples__/with-error-message.njk +19 -0
- package/nunjucks/moduk/components/character-count/__examples__/with-threshold.njk +14 -0
- package/nunjucks/moduk/components/character-count/__examples__/word-count.njk +12 -0
- package/nunjucks/moduk/components/character-count/macro.njk +5 -0
- package/nunjucks/moduk/components/checkboxes/__examples__/default.njk +37 -0
- package/nunjucks/moduk/components/checkboxes/__examples__/not-as-page-heading.njk +35 -0
- package/nunjucks/moduk/components/checkboxes/__examples__/small.njk +31 -0
- package/nunjucks/moduk/components/checkboxes/__examples__/with-conditional-reveal.njk +80 -0
- package/nunjucks/moduk/components/checkboxes/__examples__/with-error-message.njk +40 -0
- package/nunjucks/moduk/components/checkboxes/__examples__/with-item-hint.njk +32 -0
- package/nunjucks/moduk/components/checkboxes/__examples__/with-none-option.njk +45 -0
- package/nunjucks/moduk/components/checkboxes/macro.njk +5 -0
- package/nunjucks/moduk/components/cookie-banner/__examples__/accepted.njk +47 -0
- package/nunjucks/moduk/components/cookie-banner/__examples__/default.njk +34 -0
- package/nunjucks/moduk/components/cookie-banner/__examples__/rejected.njk +47 -0
- package/nunjucks/moduk/components/cookie-banner/macro.njk +5 -0
- package/nunjucks/moduk/components/date-input/__examples__/default.njk +16 -0
- package/nunjucks/moduk/components/date-input/__examples__/not-as-page-heading.njk +14 -0
- package/nunjucks/moduk/components/date-input/__examples__/with-date-part-error.njk +35 -0
- package/nunjucks/moduk/components/date-input/__examples__/with-whole-date-error.njk +36 -0
- package/nunjucks/moduk/components/date-input/macro.njk +5 -0
- package/nunjucks/moduk/components/details/__examples__/default.njk +6 -0
- package/nunjucks/moduk/components/details/__examples__/open.njk +7 -0
- package/nunjucks/moduk/components/details/macro.njk +11 -0
- package/nunjucks/moduk/components/error-message/__examples__/default.njk +5 -0
- package/nunjucks/moduk/components/error-message/macro.njk +5 -0
- package/nunjucks/moduk/components/error-summary/__examples__/default.njk +15 -0
- package/nunjucks/moduk/components/error-summary/__examples__/with-description-and-error-list.njk +16 -0
- package/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-checkbox.njk +54 -0
- package/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-date-part.njk +45 -0
- package/nunjucks/moduk/components/error-summary/macro.njk +11 -0
- package/nunjucks/moduk/components/fieldset/__examples__/default.njk +45 -0
- package/nunjucks/moduk/components/fieldset/macro.njk +11 -0
- package/nunjucks/moduk/components/file-upload/__examples__/default.njk +9 -0
- package/nunjucks/moduk/components/file-upload/__examples__/with-error.njk +12 -0
- package/nunjucks/moduk/components/file-upload/macro.njk +5 -0
- package/nunjucks/moduk/components/footer/__examples__/default.njk +3 -0
- package/nunjucks/moduk/components/footer/__examples__/with-links.njk +20 -0
- package/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation-and-links.njk +72 -0
- package/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation.njk +55 -0
- package/nunjucks/moduk/components/footer/macro.njk +5 -0
- package/nunjucks/moduk/components/header/__examples__/default.njk +3 -0
- package/nunjucks/moduk/components/header/__examples__/with-service-name-and-navigation.njk +26 -0
- package/nunjucks/moduk/components/header/__examples__/with-service-name-and-no-service-url.njk +6 -0
- package/nunjucks/moduk/components/header/__examples__/with-service-name.njk +7 -0
- package/nunjucks/moduk/components/header/macro.njk +62 -0
- package/nunjucks/moduk/components/input/__examples__/default.njk +11 -0
- package/nunjucks/moduk/components/input/__examples__/not-as-page-heading.njk +9 -0
- package/nunjucks/moduk/components/input/__examples__/with-error.njk +17 -0
- package/nunjucks/moduk/components/input/__examples__/with-fixed-width.njk +57 -0
- package/nunjucks/moduk/components/input/__examples__/with-fluid-width.njk +57 -0
- package/nunjucks/moduk/components/input/__examples__/with-hint.njk +14 -0
- package/nunjucks/moduk/components/input/__examples__/with-numeric.njk +17 -0
- package/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix-error.njk +22 -0
- package/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix.njk +19 -0
- package/nunjucks/moduk/components/input/__examples__/with-prefix.njk +16 -0
- package/nunjucks/moduk/components/input/__examples__/with-suffix.njk +16 -0
- package/nunjucks/moduk/components/input/macro.njk +5 -0
- package/nunjucks/moduk/components/inset-text/__examples__/default.njk +5 -0
- package/nunjucks/moduk/components/inset-text/macro.njk +11 -0
- package/nunjucks/moduk/components/notification-banner/__examples__/default.njk +5 -0
- package/nunjucks/moduk/components/notification-banner/__examples__/success.njk +13 -0
- package/nunjucks/moduk/components/notification-banner/__examples__/with-html.njk +12 -0
- package/nunjucks/moduk/components/notification-banner/macro.njk +11 -0
- package/nunjucks/moduk/components/pagination/__examples__/default.njk +25 -0
- package/nunjucks/moduk/components/pagination/__examples__/on-the-first-page.njk +22 -0
- package/nunjucks/moduk/components/pagination/__examples__/on-the-last-page.njk +22 -0
- package/nunjucks/moduk/components/pagination/__examples__/with-ellipses.njk +39 -0
- package/nunjucks/moduk/components/pagination/__examples__/with-link-labels.njk +12 -0
- package/nunjucks/moduk/components/pagination/__examples__/with-next-and-previous-only.njk +12 -0
- package/nunjucks/moduk/components/pagination/macro.njk +5 -0
- package/nunjucks/moduk/components/panel/__examples__/default.njk +6 -0
- package/nunjucks/moduk/components/panel/macro.njk +11 -0
- package/nunjucks/moduk/components/phase-banner/__examples__/beta.njk +8 -0
- package/nunjucks/moduk/components/phase-banner/__examples__/default.njk +12 -0
- package/nunjucks/moduk/components/phase-banner/__examples__/with-tag-override.njk +9 -0
- package/nunjucks/moduk/components/phase-banner/__examples__/with-text.njk +8 -0
- package/nunjucks/moduk/components/phase-banner/macro.njk +5 -0
- package/nunjucks/moduk/components/radios/__examples__/default.njk +30 -0
- package/nunjucks/moduk/components/radios/__examples__/inline.njk +26 -0
- package/nunjucks/moduk/components/radios/__examples__/not-as-page-heading.njk +29 -0
- package/nunjucks/moduk/components/radios/__examples__/small.njk +31 -0
- package/nunjucks/moduk/components/radios/__examples__/with-conditional-reveal.njk +80 -0
- package/nunjucks/moduk/components/radios/__examples__/with-divider-option.njk +29 -0
- package/nunjucks/moduk/components/radios/__examples__/with-error-message.njk +33 -0
- package/nunjucks/moduk/components/radios/__examples__/with-item-hint.njk +31 -0
- package/nunjucks/moduk/components/radios/macro.njk +5 -0
- package/nunjucks/moduk/components/select/__examples__/default.njk +28 -0
- package/nunjucks/moduk/components/select/__examples__/with-hint.njk +55 -0
- package/nunjucks/moduk/components/select/macro.njk +5 -0
- package/nunjucks/moduk/components/skip-link/__examples__/default.njk +11 -0
- package/nunjucks/moduk/components/skip-link/macro.njk +5 -0
- package/nunjucks/moduk/components/summary-list/__examples__/cards-with-action.njk +83 -0
- package/nunjucks/moduk/components/summary-list/__examples__/cards.njk +221 -0
- package/nunjucks/moduk/components/summary-list/__examples__/default.njk +74 -0
- package/nunjucks/moduk/components/summary-list/__examples__/with-no-actions.njk +38 -0
- package/nunjucks/moduk/components/summary-list/__examples__/with-no-border.njk +39 -0
- package/nunjucks/moduk/components/summary-list/macro.njk +5 -0
- package/nunjucks/moduk/components/table/__examples__/default.njk +41 -0
- package/nunjucks/moduk/components/table/__examples__/with-comparative-numbers.njk +61 -0
- package/nunjucks/moduk/components/table/__examples__/with-customised-column-widths.njk +56 -0
- package/nunjucks/moduk/components/table/__examples__/with-large-caption.njk +41 -0
- package/nunjucks/moduk/components/table/macro.njk +5 -0
- package/nunjucks/moduk/components/tabs/__examples__/default.njk +243 -0
- package/nunjucks/moduk/components/tabs/macro.njk +5 -0
- package/nunjucks/moduk/components/tag/__examples__/blue.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/default.njk +5 -0
- package/nunjucks/moduk/components/tag/__examples__/green.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/grey.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/orange.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/pink.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/purple.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/red.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/turquoise.njk +6 -0
- package/nunjucks/moduk/components/tag/__examples__/yellow.njk +6 -0
- package/nunjucks/moduk/components/tag/macro.njk +5 -0
- package/nunjucks/moduk/components/textarea/__examples__/default.njk +14 -0
- package/nunjucks/moduk/components/textarea/__examples__/not-as-page-heading.njk +9 -0
- package/nunjucks/moduk/components/textarea/__examples__/with-custom-height.njk +15 -0
- package/nunjucks/moduk/components/textarea/__examples__/with-error.njk +17 -0
- package/nunjucks/moduk/components/textarea/macro.njk +5 -0
- package/nunjucks/moduk/components/warning-text/__examples__/default.njk +6 -0
- package/nunjucks/moduk/components/warning-text/macro.njk +5 -0
- package/package.json +44 -35
- package/react/MODUKBody/MODUKBody.d.ts +6 -0
- package/react/MODUKBody/MODUKBody.d.ts.map +1 -0
- package/react/accordion/Accordion.d.ts +22 -0
- package/react/accordion/Accordion.d.ts.map +1 -0
- package/react/accordion/AccordionContext.d.ts +7 -0
- package/react/accordion/AccordionContext.d.ts.map +1 -0
- package/react/accordion/AccordionHeadingTag.d.ts +2 -0
- package/react/accordion/AccordionHeadingTag.d.ts.map +1 -0
- package/react/accordion/AccordionItem.d.ts +12 -0
- package/react/accordion/AccordionItem.d.ts.map +1 -0
- package/react/accordion/AccordionItemIndexContext.d.ts +2 -0
- package/react/accordion/AccordionItemIndexContext.d.ts.map +1 -0
- package/react/accordion/index.d.ts +4 -0
- package/react/accordion/index.d.ts.map +1 -0
- package/react/back-link/BackLink.d.ts +13 -0
- package/react/back-link/BackLink.d.ts.map +1 -0
- package/react/esm/MODUKBody/MODUKBody.js +37 -0
- package/react/esm/accordion/Accordion.js +81 -0
- package/react/esm/accordion/AccordionContext.js +5 -0
- package/react/esm/accordion/AccordionHeadingTag.js +1 -0
- package/react/esm/accordion/AccordionItem.js +45 -0
- package/react/esm/accordion/AccordionItemIndexContext.js +2 -0
- package/react/esm/accordion/index.js +5 -0
- package/react/esm/back-link/BackLink.js +25 -0
- package/react/esm/header/Header.js +124 -0
- package/react/esm/header/HeaderNavigationItem.js +29 -0
- package/react/esm/header/HeaderNavigationLink.js +25 -0
- package/react/esm/header/index.js +3 -0
- package/react/esm/index.js +7 -0
- package/react/esm/internal/Link/Link.js +23 -0
- package/react/esm/internal/hooks/useMODUKComponent/index.js +1 -0
- package/react/esm/internal/hooks/useMODUKComponent/useMODUKComponent.js +39 -0
- package/react/esm/internal/hooks/usePrevious/index.js +1 -0
- package/react/esm/internal/hooks/usePrevious/usePrevious.js +8 -0
- package/react/esm/internal/test-utils/Root.js +33 -0
- package/react/esm/table/Table.js +13 -0
- package/react/esm/table/TableBody.js +24 -0
- package/react/esm/table/TableCaption.js +24 -0
- package/react/esm/table/TableCell.js +25 -0
- package/react/esm/table/TableColumnHeader.js +26 -0
- package/react/esm/table/TableHead.js +24 -0
- package/react/esm/table/TableRow.js +24 -0
- package/react/esm/table/TableRowHeader.js +25 -0
- package/react/esm/table/index.js +8 -0
- package/react/header/Header.d.ts +20 -0
- package/react/header/Header.d.ts.map +1 -0
- package/react/header/HeaderNavigationItem.d.ts +11 -0
- package/react/header/HeaderNavigationItem.d.ts.map +1 -0
- package/react/header/HeaderNavigationLink.d.ts +11 -0
- package/react/header/HeaderNavigationLink.d.ts.map +1 -0
- package/react/header/index.d.ts +4 -0
- package/react/header/index.d.ts.map +1 -0
- package/react/index.d.ts +6 -0
- package/react/index.d.ts.map +1 -0
- package/react/index.js +3 -0
- package/react/index.js.LICENSE.txt +28 -0
- package/react/index.js.map +1 -0
- package/react/internal/Link/Link.d.ts +14 -0
- package/react/internal/Link/Link.d.ts.map +1 -0
- package/react/internal/hooks/useMODUKComponent/index.d.ts +2 -0
- package/react/internal/hooks/useMODUKComponent/index.d.ts.map +1 -0
- package/react/internal/hooks/useMODUKComponent/useMODUKComponent.d.ts +10 -0
- package/react/internal/hooks/useMODUKComponent/useMODUKComponent.d.ts.map +1 -0
- package/react/internal/hooks/usePrevious/index.d.ts +2 -0
- package/react/internal/hooks/usePrevious/index.d.ts.map +1 -0
- package/react/internal/hooks/usePrevious/usePrevious.d.ts +2 -0
- package/react/internal/hooks/usePrevious/usePrevious.d.ts.map +1 -0
- package/react/internal/test-utils/Root.d.ts +8 -0
- package/react/internal/test-utils/Root.d.ts.map +1 -0
- package/react/table/Table.d.ts +41 -0
- package/react/table/Table.d.ts.map +1 -0
- package/react/table/TableBody.d.ts +9 -0
- package/react/table/TableBody.d.ts.map +1 -0
- package/react/table/TableCaption.d.ts +9 -0
- package/react/table/TableCaption.d.ts.map +1 -0
- package/react/table/TableCell.d.ts +11 -0
- package/react/table/TableCell.d.ts.map +1 -0
- package/react/table/TableColumnHeader.d.ts +11 -0
- package/react/table/TableColumnHeader.d.ts.map +1 -0
- package/react/table/TableHead.d.ts +9 -0
- package/react/table/TableHead.d.ts.map +1 -0
- package/react/table/TableRow.d.ts +9 -0
- package/react/table/TableRow.d.ts.map +1 -0
- package/react/table/TableRowHeader.d.ts +9 -0
- package/react/table/TableRowHeader.d.ts.map +1 -0
- package/react/table/index.d.ts +9 -0
- package/react/table/index.d.ts.map +1 -0
- package/src/react/header/__examples__/with-service-name-and-navigation.tsx +13 -5
- package/src/react/table/__examples__/default.tsx +38 -0
- package/src/react/table/__examples__/with-comparative-numbers.tsx +42 -0
- package/src/react/table/__examples__/with-customised-column-widths.tsx +42 -0
- package/src/react/table/__examples__/with-large-caption.tsx +38 -0
- package/dist/nunjucks/moduk/components/accordion/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/back-link/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/breadcrumbs/__tests__/macro.test.ts +0 -31
- package/dist/nunjucks/moduk/components/button/__tests__/macro.test.ts +0 -25
- package/dist/nunjucks/moduk/components/character-count/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/checkboxes/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/cookie-banner/__tests__/macro.test.ts +0 -10
- package/dist/nunjucks/moduk/components/date-input/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/details/__tests__/macro.test.ts +0 -35
- package/dist/nunjucks/moduk/components/error-message/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/error-summary/__tests__/macro.test.ts +0 -55
- package/dist/nunjucks/moduk/components/fieldset/__tests__/macro.test.ts +0 -41
- package/dist/nunjucks/moduk/components/file-upload/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/footer/__tests__/macro.test.ts +0 -15
- package/dist/nunjucks/moduk/components/header/__tests__/macro.test.ts +0 -25
- package/dist/nunjucks/moduk/components/input/__tests__/macro.test.ts +0 -22
- package/dist/nunjucks/moduk/components/inset-text/__tests__/macro.test.ts +0 -35
- package/dist/nunjucks/moduk/components/notification-banner/__tests__/macro.test.ts +0 -32
- package/dist/nunjucks/moduk/components/pagination/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/panel/__tests__/macro.test.ts +0 -35
- package/dist/nunjucks/moduk/components/phase-banner/__tests__/macro.test.ts +0 -24
- package/dist/nunjucks/moduk/components/radios/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/select/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/skip-link/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/summary-list/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/table/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/tabs/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/tag/__tests__/macro.test.ts +0 -32
- package/dist/nunjucks/moduk/components/textarea/__tests__/macro.test.ts +0 -9
- package/dist/nunjucks/moduk/components/warning-text/__tests__/macro.test.ts +0 -9
- package/src/css/__tests__/_colour-palette.test.scss +0 -42
- package/src/css/__tests__/index.test.ts +0 -17
|
@@ -0,0 +1,243 @@
|
|
|
1
|
+
{% from "moduk/components/tabs/macro.njk" import modukTabs -%}
|
|
2
|
+
{% from "moduk/components/table/macro.njk" import modukTable -%}
|
|
3
|
+
|
|
4
|
+
{% set pastDayHtml %}
|
|
5
|
+
<h2 class="govuk-heading-l">Past day</h2>
|
|
6
|
+
{{ modukTable({
|
|
7
|
+
head: [
|
|
8
|
+
{
|
|
9
|
+
text: "Case manager"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
text: "Cases opened"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
text: "Cases closed"
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
rows: [
|
|
19
|
+
[
|
|
20
|
+
{
|
|
21
|
+
text: "David Francis"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
text: "3"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
text: "0"
|
|
28
|
+
}
|
|
29
|
+
],
|
|
30
|
+
[
|
|
31
|
+
{
|
|
32
|
+
text: "Paul Farmer"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
text: "1"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
text: "0"
|
|
39
|
+
}
|
|
40
|
+
],
|
|
41
|
+
[
|
|
42
|
+
{
|
|
43
|
+
text: "Rita Patel"
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
text: "2"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
text: "0"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
]
|
|
53
|
+
}) -}}
|
|
54
|
+
{% endset -%}
|
|
55
|
+
|
|
56
|
+
{% set pastWeekHtml %}
|
|
57
|
+
<h2 class="govuk-heading-l">Past week</h2>
|
|
58
|
+
{{ modukTable({
|
|
59
|
+
head: [
|
|
60
|
+
{
|
|
61
|
+
text: "Case manager"
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
text: "Cases opened"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
text: "Cases closed"
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
rows: [
|
|
71
|
+
[
|
|
72
|
+
{
|
|
73
|
+
text: "David Francis"
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
text: "24"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
text: "18"
|
|
80
|
+
}
|
|
81
|
+
],
|
|
82
|
+
[
|
|
83
|
+
{
|
|
84
|
+
text: "Paul Farmer"
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
text: "16"
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
text: "20"
|
|
91
|
+
}
|
|
92
|
+
],
|
|
93
|
+
[
|
|
94
|
+
{
|
|
95
|
+
text: "Rita Patel"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
text: "24"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
text: "27"
|
|
102
|
+
}
|
|
103
|
+
]
|
|
104
|
+
]
|
|
105
|
+
}) -}}
|
|
106
|
+
{% endset -%}
|
|
107
|
+
|
|
108
|
+
{% set pastMonthHtml %}
|
|
109
|
+
<h2 class="govuk-heading-l">Past month</h2>
|
|
110
|
+
{{ modukTable({
|
|
111
|
+
head: [
|
|
112
|
+
{
|
|
113
|
+
text: "Case manager"
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
text: "Cases opened"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
text: "Cases closed"
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
rows: [
|
|
123
|
+
[
|
|
124
|
+
{
|
|
125
|
+
text: "David Francis"
|
|
126
|
+
},
|
|
127
|
+
{
|
|
128
|
+
text: "98"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
text: "95"
|
|
132
|
+
}
|
|
133
|
+
],
|
|
134
|
+
[
|
|
135
|
+
{
|
|
136
|
+
text: "Paul Farmer"
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
text: "122"
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
text: "131"
|
|
143
|
+
}
|
|
144
|
+
],
|
|
145
|
+
[
|
|
146
|
+
{
|
|
147
|
+
text: "Rita Patel"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
text: "126"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
text: "142"
|
|
154
|
+
}
|
|
155
|
+
]
|
|
156
|
+
]
|
|
157
|
+
}) -}}
|
|
158
|
+
{% endset -%}
|
|
159
|
+
|
|
160
|
+
{% set pastYearHtml %}
|
|
161
|
+
<h2 class="govuk-heading-l">Past year</h2>
|
|
162
|
+
{{ modukTable({
|
|
163
|
+
head: [
|
|
164
|
+
{
|
|
165
|
+
text: "Case manager"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
text: "Cases opened"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
text: "Cases closed"
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
rows: [
|
|
175
|
+
[
|
|
176
|
+
{
|
|
177
|
+
text: "David Francis"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
text: "1380"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
text: "1472"
|
|
184
|
+
}
|
|
185
|
+
],
|
|
186
|
+
[
|
|
187
|
+
{
|
|
188
|
+
text: "Paul Farmer"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
text: "1129"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
text: "1083"
|
|
195
|
+
}
|
|
196
|
+
],
|
|
197
|
+
[
|
|
198
|
+
{
|
|
199
|
+
text: "Rita Patel"
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
text: "1539"
|
|
203
|
+
},
|
|
204
|
+
{
|
|
205
|
+
text: "1265"
|
|
206
|
+
}
|
|
207
|
+
]
|
|
208
|
+
]
|
|
209
|
+
}) -}}
|
|
210
|
+
{% endset -%}
|
|
211
|
+
|
|
212
|
+
{{ modukTabs({
|
|
213
|
+
items: [
|
|
214
|
+
{
|
|
215
|
+
label: "Past day",
|
|
216
|
+
id: "past-day",
|
|
217
|
+
panel: {
|
|
218
|
+
html: pastDayHtml
|
|
219
|
+
}
|
|
220
|
+
},
|
|
221
|
+
{
|
|
222
|
+
label: "Past week",
|
|
223
|
+
id: "past-week",
|
|
224
|
+
panel: {
|
|
225
|
+
html: pastWeekHtml
|
|
226
|
+
}
|
|
227
|
+
},
|
|
228
|
+
{
|
|
229
|
+
label: "Past month",
|
|
230
|
+
id: "past-month",
|
|
231
|
+
panel: {
|
|
232
|
+
html: pastMonthHtml
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
label: "Past year",
|
|
237
|
+
id: "past-year",
|
|
238
|
+
panel: {
|
|
239
|
+
html: pastYearHtml
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
]
|
|
243
|
+
}) -}}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{% from "moduk/components/textarea/macro.njk" import modukTextarea -%}
|
|
2
|
+
|
|
3
|
+
{{ modukTextarea({
|
|
4
|
+
name: "event-description",
|
|
5
|
+
id: "event-description",
|
|
6
|
+
label: {
|
|
7
|
+
text: "What is the event about?",
|
|
8
|
+
classes: "govuk-label--l",
|
|
9
|
+
isPageHeading: true
|
|
10
|
+
},
|
|
11
|
+
hint: {
|
|
12
|
+
text: "This will be shown on the public page for the event, below the event title"
|
|
13
|
+
}
|
|
14
|
+
}) -}}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
{% from "moduk/components/textarea/macro.njk" import modukTextarea -%}
|
|
2
|
+
|
|
3
|
+
{{ modukTextarea({
|
|
4
|
+
name: "event-description-custom-height",
|
|
5
|
+
id: "event-description-custom-height",
|
|
6
|
+
rows: "8",
|
|
7
|
+
label: {
|
|
8
|
+
text: "What is the event about?",
|
|
9
|
+
classes: "govuk-label--l",
|
|
10
|
+
isPageHeading: true
|
|
11
|
+
},
|
|
12
|
+
hint: {
|
|
13
|
+
text: "This will be shown on the public page for the event, below the event title"
|
|
14
|
+
}
|
|
15
|
+
}) -}}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{% from "moduk/components/textarea/macro.njk" import modukTextarea -%}
|
|
2
|
+
|
|
3
|
+
{{ modukTextarea({
|
|
4
|
+
name: "event-description-with-error",
|
|
5
|
+
id: "event-description-with-error",
|
|
6
|
+
label: {
|
|
7
|
+
text: "What is the event about?",
|
|
8
|
+
classes: "govuk-label--l",
|
|
9
|
+
isPageHeading: true
|
|
10
|
+
},
|
|
11
|
+
hint: {
|
|
12
|
+
text: "This will be shown on the public page for the event, below the event title"
|
|
13
|
+
},
|
|
14
|
+
errorMessage: {
|
|
15
|
+
text: "Enter some details about the event"
|
|
16
|
+
}
|
|
17
|
+
}) -}}
|
package/package.json
CHANGED
|
@@ -1,47 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "The MOD.UK Frontend contains the code you need to start building a user interface for Ministry of Defence platforms and services.",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "lib/index.js",
|
|
6
6
|
"sass": "src/css/index.scss",
|
|
7
|
-
"style": "
|
|
7
|
+
"style": "css/index.css",
|
|
8
8
|
"files": [
|
|
9
|
-
"
|
|
10
|
-
"src/css",
|
|
11
|
-
"src/react
|
|
9
|
+
"**",
|
|
10
|
+
"src/css/",
|
|
11
|
+
"!src/react/",
|
|
12
|
+
"src/react/**/__examples__/**",
|
|
13
|
+
"!**/*.tgz",
|
|
14
|
+
"!**/__tests__/**"
|
|
12
15
|
],
|
|
13
16
|
"exports": {
|
|
14
17
|
".": {
|
|
15
|
-
"types": "./
|
|
16
|
-
"require": "./
|
|
18
|
+
"types": "./lib/index.d.ts",
|
|
19
|
+
"require": "./lib/index.js",
|
|
17
20
|
"sass": "./src/css/index.scss",
|
|
18
|
-
"style": "./
|
|
21
|
+
"style": "./css/index.css"
|
|
19
22
|
},
|
|
20
23
|
"./client": {
|
|
21
|
-
"import": "./
|
|
22
|
-
"require": "./
|
|
24
|
+
"import": "./client/moduk-frontend.mjs",
|
|
25
|
+
"require": "./client/moduk-frontend.umd.js"
|
|
23
26
|
},
|
|
24
|
-
"./
|
|
25
|
-
|
|
27
|
+
"./react": {
|
|
28
|
+
"types": "./react/index.d.ts",
|
|
29
|
+
"import": "./react/esm/index.js",
|
|
30
|
+
"require": "./react/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./*": "./*"
|
|
26
33
|
},
|
|
27
|
-
"types": "
|
|
34
|
+
"types": "lib/index.d.ts",
|
|
28
35
|
"scripts": {
|
|
29
36
|
"build": "npm run build:assets && npm run build:css && npm run build:lib && npm run build:client",
|
|
30
|
-
"prebuild:assets": "shx rm -rf
|
|
37
|
+
"prebuild:assets": "shx rm -rf assets",
|
|
31
38
|
"build:assets": "ts-node scripts/copy-govuk-static-assets.ts && npm run build:assets:svg",
|
|
32
|
-
"build:assets:svg": "shx mkdir -p
|
|
33
|
-
"prebuild:client": "shx rm -rf
|
|
34
|
-
"build:client": "npm run build:client:umd && npm run build:client:es && tsc --project src/client",
|
|
39
|
+
"build:assets:svg": "shx mkdir -p assets/svg && cp src/assets/svg/* assets/svg",
|
|
40
|
+
"prebuild:client": "shx rm -rf client",
|
|
41
|
+
"build:client": "npm run build:client:umd && npm run build:client:es && npm run build:client:react && tsc --project src/client",
|
|
35
42
|
"build:client:umd": "webpack --config webpack.config.ts",
|
|
36
|
-
"build:client:es": "babel src/client/index.ts --extensions .ts,.tsx --out-file
|
|
37
|
-
"prebuild:client:react": "shx rm -rf
|
|
43
|
+
"build:client:es": "babel src/client/index.ts --extensions .ts,.tsx --out-file client/moduk-frontend.mjs",
|
|
44
|
+
"prebuild:client:react": "shx rm -rf react",
|
|
38
45
|
"build:client:react": "npm run build:client:react:es && npm urn build:client:react:cjs && npm run build:client:react:types",
|
|
39
|
-
"build:client:react:es": "BABEL_ENV=es babel src/react/ --ignore 'src/react/**/__examples__' --ignore 'src/react/**/__tests__' --extensions .ts,.tsx --out-dir
|
|
46
|
+
"build:client:react:es": "BABEL_ENV=es babel src/react/ --ignore 'src/react/**/__examples__' --ignore 'src/react/**/__tests__' --extensions .ts,.tsx --out-dir react/esm --out-file-extension .js",
|
|
40
47
|
"build:client:react:cjs": "webpack --config webpack-react-prod.config.ts",
|
|
41
48
|
"build:client:react:types": "tsc --project tsconfig.react.json",
|
|
42
|
-
"prebuild:css": "shx rm -rf
|
|
43
|
-
"build:css": "sass --load-path=node_modules --quiet-deps --style compressed src/css/index.scss | postcss -o
|
|
44
|
-
"prebuild:lib": "shx rm -rf
|
|
49
|
+
"prebuild:css": "shx rm -rf css",
|
|
50
|
+
"build:css": "sass --load-path=node_modules --quiet-deps --style compressed src/css/index.scss | postcss -o css/index.css",
|
|
51
|
+
"prebuild:lib": "shx rm -rf nunjucks lib",
|
|
45
52
|
"build:lib": "tsc --project tsconfig.build.json && shx cp -r src/nunjucks dist",
|
|
46
53
|
"examples:dev:react": "webpack --config webpack-react-example.config.ts --node-env development --watch",
|
|
47
54
|
"examples:build:react": "webpack --config webpack-react-example.config.ts --node-env production",
|
|
@@ -51,8 +58,9 @@
|
|
|
51
58
|
"format": "dprint fmt",
|
|
52
59
|
"format:check": "dprint check",
|
|
53
60
|
"lint": "eslint --ext .js --ext .ts --ext .tsx --ext .mjs --ext .mts --max-warnings 0 .",
|
|
61
|
+
"dist:build": "npm run build && ts-node scripts/prepare-dist-package.ts",
|
|
62
|
+
"dist:pack": "npm run dist:build && cd dist && npm pack",
|
|
54
63
|
"playwright-install": "playwright install --with-deps",
|
|
55
|
-
"prepack": "npm run build",
|
|
56
64
|
"start": "concurrently npm:examples:serve npm:examples:dev:react",
|
|
57
65
|
"test": "vitest run && npm run test:types",
|
|
58
66
|
"test:e2e": "npm run build && playwright test --grep-invert @visual-regression",
|
|
@@ -64,7 +72,6 @@
|
|
|
64
72
|
"test:visual:native": "npm run build && playwright test --grep @visual-regression",
|
|
65
73
|
"test:visual:refresh": "scripts/run-playwright-container.sh bash -c 'npm install && npm run test:visual:native -- --update-snapshots'",
|
|
66
74
|
"test:watch": "vitest",
|
|
67
|
-
"prepare": "husky install",
|
|
68
75
|
"release": "release-it"
|
|
69
76
|
},
|
|
70
77
|
"repository": {
|
|
@@ -91,26 +98,26 @@
|
|
|
91
98
|
"devDependencies": {
|
|
92
99
|
"@11ty/eleventy": "^2.0.1",
|
|
93
100
|
"@axe-core/playwright": "^4.7.3",
|
|
94
|
-
"@babel/cli": "^7.22.
|
|
95
|
-
"@babel/core": "^7.22.
|
|
96
|
-
"@babel/preset-env": "^7.22.
|
|
101
|
+
"@babel/cli": "^7.22.10",
|
|
102
|
+
"@babel/core": "^7.22.10",
|
|
103
|
+
"@babel/preset-env": "^7.22.10",
|
|
97
104
|
"@babel/preset-react": "^7.22.5",
|
|
98
105
|
"@babel/preset-typescript": "^7.22.5",
|
|
99
106
|
"@babel/register": "^7.22.5",
|
|
100
|
-
"@commitlint/cli": "^17.
|
|
101
|
-
"@commitlint/config-conventional": "^17.
|
|
102
|
-
"@playwright/test": "^1.
|
|
107
|
+
"@commitlint/cli": "^17.7.1",
|
|
108
|
+
"@commitlint/config-conventional": "^17.7.0",
|
|
109
|
+
"@playwright/test": "^1.37.0",
|
|
103
110
|
"@release-it/conventional-changelog": "^6.0.0",
|
|
104
111
|
"@testing-library/dom": "^9.3.1",
|
|
105
|
-
"@testing-library/jest-dom": "^
|
|
112
|
+
"@testing-library/jest-dom": "^6.0.0",
|
|
106
113
|
"@testing-library/react": "^14.0.0",
|
|
107
114
|
"@types/lodash": "^4.14.195",
|
|
108
115
|
"@types/node": "^18.16.19",
|
|
109
116
|
"@types/nunjucks": "^3.2.3",
|
|
110
117
|
"@types/react": "^18.2.7",
|
|
111
118
|
"@types/react-dom": "^18.2.7",
|
|
112
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
113
|
-
"@typescript-eslint/parser": "^6.
|
|
119
|
+
"@typescript-eslint/eslint-plugin": "^6.3.0",
|
|
120
|
+
"@typescript-eslint/parser": "^6.3.0",
|
|
114
121
|
"babel-loader": "^9.1.3",
|
|
115
122
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
116
123
|
"babel-plugin-module-resolver": "^5.0.0",
|
|
@@ -135,6 +142,7 @@
|
|
|
135
142
|
"release-it": "^15.11.0",
|
|
136
143
|
"sass": "^1.63.4",
|
|
137
144
|
"sass-true": "^7.0.0",
|
|
145
|
+
"shelljs": "^0.8.5",
|
|
138
146
|
"shx": "^0.3.4",
|
|
139
147
|
"ts-node": "^10.9.1",
|
|
140
148
|
"tsconfig-paths": "^4.2.0",
|
|
@@ -153,6 +161,7 @@
|
|
|
153
161
|
]
|
|
154
162
|
},
|
|
155
163
|
"dependencies": {
|
|
164
|
+
"@types/shelljs": "^0.8.12",
|
|
156
165
|
"clsx": "^2.0.0",
|
|
157
166
|
"lodash": "^4.17.21",
|
|
158
167
|
"react-keyed-flatten-children": "^2.2.1",
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* @experimental React components are in alpha and subject to change.
|
|
4
|
+
*/
|
|
5
|
+
export declare const MODUKBody: ({ children, className, ...rest }: ComponentPropsWithoutRef<'body'>) => import("react/jsx-runtime").JSX.Element;
|
|
6
|
+
//# sourceMappingURL=MODUKBody.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MODUKBody.d.ts","sourceRoot":"","sources":["../../../src/react/MODUKBody/MODUKBody.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAA;AAGrD;;GAEG;AACH,eAAO,MAAM,SAAS,qCAAsC,yBAAyB,MAAM,CAAC,4CAO3F,CAAA"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef, ReactElement } from 'react';
|
|
2
|
+
import type { AccordionHeadingTag } from './AccordionHeadingTag';
|
|
3
|
+
import type { AccordionItemProps } from './AccordionItem';
|
|
4
|
+
type AccordionChild = ReactElement<AccordionItemProps> | boolean | null | Iterable<AccordionChild>;
|
|
5
|
+
export interface AccordionProps extends ComponentPropsWithoutRef<'div'> {
|
|
6
|
+
children: AccordionChild;
|
|
7
|
+
headingTag?: AccordionHeadingTag;
|
|
8
|
+
hideAllSectionsText?: string;
|
|
9
|
+
hideSectionText?: string;
|
|
10
|
+
hideSectionAriaLabelText?: string;
|
|
11
|
+
id: string;
|
|
12
|
+
rememberExpanded?: boolean;
|
|
13
|
+
showAllSectionsText?: string;
|
|
14
|
+
showSectionAriaLabelText?: string;
|
|
15
|
+
showSectionText?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @experimental React components are in alpha and subject to change.
|
|
19
|
+
*/
|
|
20
|
+
export declare const Accordion: import("react").ForwardRefExoticComponent<AccordionProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=Accordion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Accordion.d.ts","sourceRoot":"","sources":["../../../src/react/accordion/Accordion.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AAQnE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGzD,KAAK,cAAc,GAAG,YAAY,CAAC,kBAAkB,CAAC,GAAG,OAAO,GAAG,IAAI,GAAG,QAAQ,CAAC,cAAc,CAAC,CAAA;AAElG,MAAM,WAAW,cAAe,SAAQ,wBAAwB,CAAC,KAAK,CAAC;IACrE,QAAQ,EAAE,cAAc,CAAA;IACxB,UAAU,CAAC,EAAE,mBAAmB,CAAA;IAChC,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,EAAE,EAAE,MAAM,CAAA;IACV,gBAAgB,CAAC,EAAE,OAAO,CAAA;IAC1B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,wBAAwB,CAAC,EAAE,MAAM,CAAA;IACjC,eAAe,CAAC,EAAE,MAAM,CAAA;CACzB;AAoBD;;GAEG;AACH,eAAO,MAAM,SAAS,2GAyDrB,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AccordionHeadingTag } from './AccordionHeadingTag';
|
|
2
|
+
export interface AccordionContextProps {
|
|
3
|
+
headingTag: AccordionHeadingTag;
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export declare const AccordionContext: import("react").Context<AccordionContextProps>;
|
|
7
|
+
//# sourceMappingURL=AccordionContext.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionContext.d.ts","sourceRoot":"","sources":["../../../src/react/accordion/AccordionContext.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAEhE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,mBAAmB,CAAA;IAC/B,EAAE,EAAE,MAAM,CAAA;CACX;AAED,eAAO,MAAM,gBAAgB,gDAAqE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionHeadingTag.d.ts","sourceRoot":"","sources":["../../../src/react/accordion/AccordionHeadingTag.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,mBAAmB,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { ReactNode, ReactPortal } from 'react';
|
|
2
|
+
export interface AccordionItemProps {
|
|
3
|
+
children: Exclude<ReactNode, ReactPortal | null | undefined>;
|
|
4
|
+
expanded?: boolean;
|
|
5
|
+
heading: Exclude<ReactNode, ReactPortal | null | undefined>;
|
|
6
|
+
summary?: Exclude<ReactNode, ReactPortal>;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* @experimental React components are in alpha and subject to change.
|
|
10
|
+
*/
|
|
11
|
+
export declare function AccordionItem({ children, expanded, heading, summary, }: AccordionItemProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=AccordionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItem.d.ts","sourceRoot":"","sources":["../../../src/react/accordion/AccordionItem.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,OAAO,CAAA;AAKnD,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,OAAO,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,EAAE,OAAO,CAAC,SAAS,EAAE,WAAW,GAAG,IAAI,GAAG,SAAS,CAAC,CAAA;IAC3D,OAAO,CAAC,EAAE,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,CAAA;CAC1C;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,OAAO,GACR,EAAE,kBAAkB,2CAiCpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccordionItemIndexContext.d.ts","sourceRoot":"","sources":["../../../src/react/accordion/AccordionItemIndexContext.tsx"],"names":[],"mappings":"AAEA,eAAO,MAAM,yBAAyB,iCAA2B,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/react/accordion/index.ts"],"names":[],"mappings":"AAEA,cAAc,aAAa,CAAA;AAC3B,cAAc,uBAAuB,CAAA;AACrC,cAAc,iBAAiB,CAAA"}
|