@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,83 @@
|
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
|
+
|
|
3
|
+
<div>
|
|
4
|
+
{{ modukSummaryList({
|
|
5
|
+
card: {
|
|
6
|
+
title: {
|
|
7
|
+
text: "University of Gloucestershire"
|
|
8
|
+
},
|
|
9
|
+
actions: {
|
|
10
|
+
items: [
|
|
11
|
+
{
|
|
12
|
+
href: "#",
|
|
13
|
+
text: "Delete choice",
|
|
14
|
+
visuallyHiddenText: "of University of Gloucestershire"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
href: "#",
|
|
18
|
+
text: "Withdraw",
|
|
19
|
+
visuallyHiddenText: "from University of Gloucestershire"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
rows: [
|
|
25
|
+
{
|
|
26
|
+
key: {
|
|
27
|
+
text: "Course"
|
|
28
|
+
},
|
|
29
|
+
value: {
|
|
30
|
+
html: "English (3DMD)<br>PGCE with QTS full time"
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
key: {
|
|
35
|
+
text: "Location"
|
|
36
|
+
},
|
|
37
|
+
value: {
|
|
38
|
+
html: "School name<br>Road, City, SW1 1AA"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
]
|
|
42
|
+
}) -}}
|
|
43
|
+
|
|
44
|
+
{{ modukSummaryList({
|
|
45
|
+
card: {
|
|
46
|
+
title: {
|
|
47
|
+
text: "University of Bristol"
|
|
48
|
+
},
|
|
49
|
+
actions: {
|
|
50
|
+
items: [
|
|
51
|
+
{
|
|
52
|
+
href: "#",
|
|
53
|
+
text: "Delete choice",
|
|
54
|
+
visuallyHiddenText: "of University of Bristol"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
href: "#",
|
|
58
|
+
text: "Withdraw",
|
|
59
|
+
visuallyHiddenText: "from University of Bristol"
|
|
60
|
+
}
|
|
61
|
+
]
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
rows: [
|
|
65
|
+
{
|
|
66
|
+
key: {
|
|
67
|
+
text: "Course"
|
|
68
|
+
},
|
|
69
|
+
value: {
|
|
70
|
+
html: "English (Q3X1)<br>PGCE with QTS full time"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
key: {
|
|
75
|
+
text: "Location"
|
|
76
|
+
},
|
|
77
|
+
value: {
|
|
78
|
+
html: "School name<br>Road, City, SW2 1AA"
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}) -}}
|
|
83
|
+
</div>
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
|
+
|
|
3
|
+
<div>
|
|
4
|
+
|
|
5
|
+
{{ modukSummaryList({
|
|
6
|
+
card: {
|
|
7
|
+
title: {
|
|
8
|
+
text: "Lead tenant"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
rows: [
|
|
12
|
+
{
|
|
13
|
+
key: {
|
|
14
|
+
text: "Age"
|
|
15
|
+
},
|
|
16
|
+
value: {
|
|
17
|
+
html: "38"
|
|
18
|
+
},
|
|
19
|
+
actions: {
|
|
20
|
+
items: [
|
|
21
|
+
{
|
|
22
|
+
href: "#",
|
|
23
|
+
text: "Change",
|
|
24
|
+
visuallyHiddenText: "age"
|
|
25
|
+
}
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: {
|
|
31
|
+
text: "Nationality"
|
|
32
|
+
},
|
|
33
|
+
value: {
|
|
34
|
+
html: "UK national resident in UK"
|
|
35
|
+
},
|
|
36
|
+
actions: {
|
|
37
|
+
items: [
|
|
38
|
+
{
|
|
39
|
+
href: "#",
|
|
40
|
+
text: "Change",
|
|
41
|
+
visuallyHiddenText: "nationality"
|
|
42
|
+
}
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
key: {
|
|
48
|
+
text: "Working situation"
|
|
49
|
+
},
|
|
50
|
+
value: {
|
|
51
|
+
html: "Part time – less than 30 hours a week"
|
|
52
|
+
},
|
|
53
|
+
actions: {
|
|
54
|
+
items: [
|
|
55
|
+
{
|
|
56
|
+
href: "#",
|
|
57
|
+
text: "Change",
|
|
58
|
+
visuallyHiddenText: "working situation"
|
|
59
|
+
}
|
|
60
|
+
]
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
}) -}}
|
|
65
|
+
|
|
66
|
+
{{ modukSummaryList({
|
|
67
|
+
card: {
|
|
68
|
+
title: {
|
|
69
|
+
text: "Person 2"
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
rows: [
|
|
73
|
+
{
|
|
74
|
+
key: {
|
|
75
|
+
text: "Details known"
|
|
76
|
+
},
|
|
77
|
+
value: {
|
|
78
|
+
html: "Yes"
|
|
79
|
+
},
|
|
80
|
+
actions: {
|
|
81
|
+
items: [
|
|
82
|
+
{
|
|
83
|
+
href: "#",
|
|
84
|
+
text: "Change",
|
|
85
|
+
visuallyHiddenText: "whether details are known"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
key: {
|
|
92
|
+
text: "Relationship to lead tenant"
|
|
93
|
+
},
|
|
94
|
+
value: {
|
|
95
|
+
html: "Partner"
|
|
96
|
+
},
|
|
97
|
+
actions: {
|
|
98
|
+
items: [
|
|
99
|
+
{
|
|
100
|
+
href: "#",
|
|
101
|
+
text: "Change",
|
|
102
|
+
visuallyHiddenText: "relationship to lead tenant"
|
|
103
|
+
}
|
|
104
|
+
]
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
key: {
|
|
109
|
+
text: "Age"
|
|
110
|
+
},
|
|
111
|
+
value: {
|
|
112
|
+
html: "42"
|
|
113
|
+
},
|
|
114
|
+
actions: {
|
|
115
|
+
items: [
|
|
116
|
+
{
|
|
117
|
+
href: "#",
|
|
118
|
+
text: "Change",
|
|
119
|
+
visuallyHiddenText: "age"
|
|
120
|
+
}
|
|
121
|
+
]
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
key: {
|
|
126
|
+
text: "Working situation"
|
|
127
|
+
},
|
|
128
|
+
value: {
|
|
129
|
+
html: "Unable to work because of long-term sickness or disability"
|
|
130
|
+
},
|
|
131
|
+
actions: {
|
|
132
|
+
items: [
|
|
133
|
+
{
|
|
134
|
+
href: "#",
|
|
135
|
+
text: "Change",
|
|
136
|
+
visuallyHiddenText: "working situation"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
]
|
|
142
|
+
}) -}}
|
|
143
|
+
|
|
144
|
+
{{ modukSummaryList({
|
|
145
|
+
card: {
|
|
146
|
+
title: {
|
|
147
|
+
text: "Person 3"
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
rows: [
|
|
151
|
+
{
|
|
152
|
+
key: {
|
|
153
|
+
text: "Details known"
|
|
154
|
+
},
|
|
155
|
+
value: {
|
|
156
|
+
html: "Yes"
|
|
157
|
+
},
|
|
158
|
+
actions: {
|
|
159
|
+
items: [
|
|
160
|
+
{
|
|
161
|
+
href: "#",
|
|
162
|
+
text: "Change",
|
|
163
|
+
visuallyHiddenText: "whether details are known"
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
}
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
key: {
|
|
170
|
+
text: "Relationship to lead tenant"
|
|
171
|
+
},
|
|
172
|
+
value: {
|
|
173
|
+
html: "Child"
|
|
174
|
+
},
|
|
175
|
+
actions: {
|
|
176
|
+
items: [
|
|
177
|
+
{
|
|
178
|
+
href: "#",
|
|
179
|
+
text: "Change",
|
|
180
|
+
visuallyHiddenText: "relationship to lead tenant"
|
|
181
|
+
}
|
|
182
|
+
]
|
|
183
|
+
}
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
key: {
|
|
187
|
+
text: "Age"
|
|
188
|
+
},
|
|
189
|
+
value: {
|
|
190
|
+
html: "7"
|
|
191
|
+
},
|
|
192
|
+
actions: {
|
|
193
|
+
items: [
|
|
194
|
+
{
|
|
195
|
+
href: "#",
|
|
196
|
+
text: "Change",
|
|
197
|
+
visuallyHiddenText: "age"
|
|
198
|
+
}
|
|
199
|
+
]
|
|
200
|
+
}
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
key: {
|
|
204
|
+
text: "Working situation"
|
|
205
|
+
},
|
|
206
|
+
value: {
|
|
207
|
+
html: "Child under 16"
|
|
208
|
+
},
|
|
209
|
+
actions: {
|
|
210
|
+
items: [
|
|
211
|
+
{
|
|
212
|
+
href: "#",
|
|
213
|
+
text: "Change",
|
|
214
|
+
visuallyHiddenText: "working situation"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
]
|
|
220
|
+
}) -}}
|
|
221
|
+
</div>
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
|
+
|
|
3
|
+
{{ modukSummaryList({
|
|
4
|
+
rows: [
|
|
5
|
+
{
|
|
6
|
+
key: {
|
|
7
|
+
text: "Name"
|
|
8
|
+
},
|
|
9
|
+
value: {
|
|
10
|
+
text: "Sarah Philips"
|
|
11
|
+
},
|
|
12
|
+
actions: {
|
|
13
|
+
items: [
|
|
14
|
+
{
|
|
15
|
+
href: "#",
|
|
16
|
+
text: "Change",
|
|
17
|
+
visuallyHiddenText: "name"
|
|
18
|
+
}
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: {
|
|
24
|
+
text: "Date of birth"
|
|
25
|
+
},
|
|
26
|
+
value: {
|
|
27
|
+
text: "5 January 1978"
|
|
28
|
+
},
|
|
29
|
+
actions: {
|
|
30
|
+
items: [
|
|
31
|
+
{
|
|
32
|
+
href: "#",
|
|
33
|
+
text: "Change",
|
|
34
|
+
visuallyHiddenText: "date of birth"
|
|
35
|
+
}
|
|
36
|
+
]
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
key: {
|
|
41
|
+
text: "Address"
|
|
42
|
+
},
|
|
43
|
+
value: {
|
|
44
|
+
html: "72 Guild Street<br>London<br>SE23 6FH"
|
|
45
|
+
},
|
|
46
|
+
actions: {
|
|
47
|
+
items: [
|
|
48
|
+
{
|
|
49
|
+
href: "#",
|
|
50
|
+
text: "Change",
|
|
51
|
+
visuallyHiddenText: "address"
|
|
52
|
+
}
|
|
53
|
+
]
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
key: {
|
|
58
|
+
text: "Contact details"
|
|
59
|
+
},
|
|
60
|
+
value: {
|
|
61
|
+
html: '<p class="govuk-body">07700 900457</p><p class="govuk-body">sarah.phillips@example.com</p>'
|
|
62
|
+
},
|
|
63
|
+
actions: {
|
|
64
|
+
items: [
|
|
65
|
+
{
|
|
66
|
+
href: "#",
|
|
67
|
+
text: "Change",
|
|
68
|
+
visuallyHiddenText: "contact details"
|
|
69
|
+
}
|
|
70
|
+
]
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}) -}}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
|
+
|
|
3
|
+
{{ modukSummaryList({
|
|
4
|
+
rows: [
|
|
5
|
+
{
|
|
6
|
+
key: {
|
|
7
|
+
text: "Name"
|
|
8
|
+
},
|
|
9
|
+
value: {
|
|
10
|
+
text: "Sarah Philips"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
key: {
|
|
15
|
+
text: "Date of birth"
|
|
16
|
+
},
|
|
17
|
+
value: {
|
|
18
|
+
text: "5 January 1978"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
key: {
|
|
23
|
+
text: "Address"
|
|
24
|
+
},
|
|
25
|
+
value: {
|
|
26
|
+
html: "72 Guild Street<br>London<br>SE23 6FH"
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
key: {
|
|
31
|
+
text: "Contact details"
|
|
32
|
+
},
|
|
33
|
+
value: {
|
|
34
|
+
html: '<p class="govuk-body">07700 900457</p><p class="govuk-body">sarah.phillips@example.com</p>'
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
]
|
|
38
|
+
}) -}}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
{% from "moduk/components/summary-list/macro.njk" import modukSummaryList -%}
|
|
2
|
+
|
|
3
|
+
{{ modukSummaryList({
|
|
4
|
+
classes: 'govuk-summary-list--no-border',
|
|
5
|
+
rows: [
|
|
6
|
+
{
|
|
7
|
+
key: {
|
|
8
|
+
text: "Name"
|
|
9
|
+
},
|
|
10
|
+
value: {
|
|
11
|
+
text: "Sarah Philips"
|
|
12
|
+
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
key: {
|
|
16
|
+
text: "Date of birth"
|
|
17
|
+
},
|
|
18
|
+
value: {
|
|
19
|
+
text: "5 January 1978"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
key: {
|
|
24
|
+
text: "Address"
|
|
25
|
+
},
|
|
26
|
+
value: {
|
|
27
|
+
html: "72 Guild Street<br>London<br>SE23 6FH"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
key: {
|
|
32
|
+
text: "Contact details"
|
|
33
|
+
},
|
|
34
|
+
value: {
|
|
35
|
+
html: '<p class="govuk-body">07700 900457</p><p class="govuk-body">sarah.phillips@example.com</p>'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
]
|
|
39
|
+
}) -}}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{% from "moduk/components/table/macro.njk" import modukTable -%}
|
|
2
|
+
|
|
3
|
+
{{ modukTable({
|
|
4
|
+
caption: "Dates and amounts",
|
|
5
|
+
captionClasses: "govuk-table__caption--m",
|
|
6
|
+
firstCellIsHeader: true,
|
|
7
|
+
head: [
|
|
8
|
+
{
|
|
9
|
+
text: "Date"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
text: "Amount"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
rows: [
|
|
16
|
+
[
|
|
17
|
+
{
|
|
18
|
+
text: "First 6 weeks"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
text: "£109.80 per week"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
{
|
|
26
|
+
text: "Next 33 weeks"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: "£109.80 per week"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
{
|
|
34
|
+
text: "Total estimated pay"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
text: "£4,282.20"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
}) -}}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{% from "moduk/components/table/macro.njk" import modukTable -%}
|
|
2
|
+
|
|
3
|
+
{{ modukTable({
|
|
4
|
+
caption: "Users by role",
|
|
5
|
+
captionClasses: "govuk-table__caption--m",
|
|
6
|
+
firstCellIsHeader: true,
|
|
7
|
+
head: [
|
|
8
|
+
{
|
|
9
|
+
text: "Role"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
text: "Application A",
|
|
13
|
+
format: "numeric"
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
text: "Application B",
|
|
17
|
+
format: "numeric"
|
|
18
|
+
}
|
|
19
|
+
],
|
|
20
|
+
rows: [
|
|
21
|
+
[
|
|
22
|
+
{
|
|
23
|
+
text: "Developer"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
text: "10",
|
|
27
|
+
format: "numeric"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
text: "25",
|
|
31
|
+
format: "numeric"
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
[
|
|
35
|
+
{
|
|
36
|
+
text: "User researcher"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
text: "25",
|
|
40
|
+
format: "numeric"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
text: "10",
|
|
44
|
+
format: "numeric"
|
|
45
|
+
}
|
|
46
|
+
],
|
|
47
|
+
[
|
|
48
|
+
{
|
|
49
|
+
text: "Delivery manager"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
text: "5",
|
|
53
|
+
format: "numeric"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
text: "10",
|
|
57
|
+
format: "numeric"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
]
|
|
61
|
+
}) -}}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
{% from "moduk/components/table/macro.njk" import modukTable -%}
|
|
2
|
+
|
|
3
|
+
{{ modukTable({
|
|
4
|
+
caption: "Active users by role",
|
|
5
|
+
captionClasses: "govuk-table__caption--m",
|
|
6
|
+
firstCellIsHeader: true,
|
|
7
|
+
head: [
|
|
8
|
+
{
|
|
9
|
+
text: "Role",
|
|
10
|
+
classes: 'govuk-!-width-one-half'
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
text: "Application A",
|
|
14
|
+
classes: 'govuk-!-width-one-quarter'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
text: "Application B",
|
|
18
|
+
classes: 'govuk-!-width-one-quarter'
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
rows: [
|
|
22
|
+
[
|
|
23
|
+
{
|
|
24
|
+
text: "Developer"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
text: "10 per day"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
text: "25 per day"
|
|
31
|
+
}
|
|
32
|
+
],
|
|
33
|
+
[
|
|
34
|
+
{
|
|
35
|
+
text: "User researcher"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
text: "25 per day"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
text: "10 per day"
|
|
42
|
+
}
|
|
43
|
+
],
|
|
44
|
+
[
|
|
45
|
+
{
|
|
46
|
+
text: "Delivery manager"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
text: "5 per day"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
text: "10 per day"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
55
|
+
]
|
|
56
|
+
}) -}}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{% from "moduk/components/table/macro.njk" import modukTable -%}
|
|
2
|
+
|
|
3
|
+
{{ modukTable({
|
|
4
|
+
caption: "Dates and amounts",
|
|
5
|
+
captionClasses: "govuk-table__caption--l",
|
|
6
|
+
firstCellIsHeader: true,
|
|
7
|
+
head: [
|
|
8
|
+
{
|
|
9
|
+
text: "Date"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
text: "Amount"
|
|
13
|
+
}
|
|
14
|
+
],
|
|
15
|
+
rows: [
|
|
16
|
+
[
|
|
17
|
+
{
|
|
18
|
+
text: "First 6 weeks"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
text: "£109.80 per week"
|
|
22
|
+
}
|
|
23
|
+
],
|
|
24
|
+
[
|
|
25
|
+
{
|
|
26
|
+
text: "Next 33 weeks"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
text: "£109.80 per week"
|
|
30
|
+
}
|
|
31
|
+
],
|
|
32
|
+
[
|
|
33
|
+
{
|
|
34
|
+
text: "Total estimated pay"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
text: "£4,282.20"
|
|
38
|
+
}
|
|
39
|
+
]
|
|
40
|
+
]
|
|
41
|
+
}) -}}
|