@moduk/frontend 1.0.1 → 1.0.3
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/dist/lib/nunjucks/moduk/components/accordion/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/accordion/__examples__/with-summary-lines.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/accordion/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/back-link/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/back-link/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/breadcrumbs/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/breadcrumbs/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/disabled.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/group-link.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/grouping.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/button/__examples__/prevent-double-click.njk +1 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/secondary.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/start.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/__examples__/warning.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/button/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/with-threshold.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/__examples__/word-count.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/character-count/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/small.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-conditional-reveal.njk +9 -9
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-item-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/__examples__/with-none-option.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/checkboxes/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/accepted.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/cookie-banner/__examples__/rejected.njk +4 -5
- package/dist/lib/nunjucks/moduk/components/cookie-banner/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-date-part-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/__examples__/with-whole-date-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/date-input/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/details/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/details/__examples__/open.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-message/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-message/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-checkbox.njk +4 -4
- package/dist/lib/nunjucks/moduk/components/error-summary/__examples__/with-error-linked-to-date-part.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/error-summary/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/fieldset/__examples__/default.njk +8 -8
- package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/file-upload/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/file-upload/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-links.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation-and-links.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/__examples__/with-secondary-navigation.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/footer/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-navigation.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name-and-no-service-url.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/__examples__/with-service-name.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/header/macro.njk +30 -31
- package/dist/lib/nunjucks/moduk/components/input/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fixed-width.njk +15 -15
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-fluid-width.njk +8 -8
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-numeric.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix-and-suffix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-prefix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/__examples__/with-suffix.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/input/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/inset-text/__examples__/default.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/inset-text/macro.njk +1 -1
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/success.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/notification-banner/__examples__/with-html.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/notification-banner/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-first-page.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/on-the-last-page.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-ellipses.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-link-labels.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/__examples__/with-next-and-previous-only.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/pagination/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/panel/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/beta.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-tag-override.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/__examples__/with-text.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/phase-banner/macro.njk +3 -4
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/inline.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/small.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-conditional-reveal.njk +9 -9
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-divider-option.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-error-message.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-item-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/radios/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/select/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/select/__examples__/with-hint.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/select/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/skip-link/__examples__/default.njk +2 -3
- package/dist/lib/nunjucks/moduk/components/skip-link/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards-with-action.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/cards.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-actions.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/__examples__/with-no-border.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/summary-list/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-comparative-numbers.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-customised-column-widths.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/__examples__/with-large-caption.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/table/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tabs/__examples__/default.njk +7 -7
- package/dist/lib/nunjucks/moduk/components/tabs/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/blue.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/green.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/grey.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/orange.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/pink.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/purple.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/red.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/turquoise.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/__examples__/yellow.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/tag/macro.njk +3 -3
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/not-as-page-heading.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-custom-height.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/__examples__/with-error.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/textarea/macro.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/warning-text/__examples__/default.njk +2 -2
- package/dist/lib/nunjucks/moduk/components/warning-text/macro.njk +2 -2
- package/package.json +12 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/textarea/macro.njk" import modukTextarea
|
|
1
|
+
{% from "moduk/components/textarea/macro.njk" import modukTextarea -%}
|
|
2
2
|
|
|
3
3
|
{{ modukTextarea({
|
|
4
4
|
name: "event-description-custom-height",
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
hint: {
|
|
13
13
|
text: "This will be shown on the public page for the event, below the event title"
|
|
14
14
|
}
|
|
15
|
-
}) }}
|
|
15
|
+
}) -}}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
{% from "moduk/components/textarea/macro.njk" import modukTextarea
|
|
1
|
+
{% from "moduk/components/textarea/macro.njk" import modukTextarea -%}
|
|
2
2
|
|
|
3
3
|
{{ modukTextarea({
|
|
4
4
|
name: "event-description-with-error",
|
|
@@ -14,4 +14,4 @@
|
|
|
14
14
|
errorMessage: {
|
|
15
15
|
text: "Enter some details about the event"
|
|
16
16
|
}
|
|
17
|
-
}) }}
|
|
17
|
+
}) -}}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
{
|
|
1
|
+
{% from "moduk/components/warning-text/macro.njk" import modukWarningText -%}
|
|
2
2
|
|
|
3
3
|
{{ modukWarningText({
|
|
4
4
|
text: "This operation cannot be undone when complete.",
|
|
5
5
|
iconFallbackText: "Warning"
|
|
6
|
-
}) }}
|
|
6
|
+
}) -}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.3",
|
|
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
5
|
"main": "dist/lib/index.js",
|
|
6
6
|
"sass": "src/css/index.scss",
|
|
@@ -79,14 +79,14 @@
|
|
|
79
79
|
"npm": ">=8.15.0"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
|
-
"@11ty/eleventy": "^
|
|
83
|
-
"@axe-core/playwright": "^4.
|
|
82
|
+
"@11ty/eleventy": "^2.0.0",
|
|
83
|
+
"@axe-core/playwright": "^4.6.0",
|
|
84
84
|
"@babel/cli": "^7.20.7",
|
|
85
|
-
"@babel/core": "^7.
|
|
85
|
+
"@babel/core": "^7.21.0",
|
|
86
86
|
"@babel/preset-env": "^7.20.2",
|
|
87
87
|
"@babel/preset-typescript": "^7.18.6",
|
|
88
|
-
"@commitlint/cli": "^17.4.
|
|
89
|
-
"@commitlint/config-conventional": "^17.4.
|
|
88
|
+
"@commitlint/cli": "^17.4.4",
|
|
89
|
+
"@commitlint/config-conventional": "^17.4.4",
|
|
90
90
|
"@playwright/test": "^1.30.0",
|
|
91
91
|
"@release-it/conventional-changelog": "^5.1.1",
|
|
92
92
|
"@testing-library/dom": "^8.20.0",
|
|
@@ -94,11 +94,11 @@
|
|
|
94
94
|
"@types/glob": "^8.0.1",
|
|
95
95
|
"@types/lodash": "^4.14.189",
|
|
96
96
|
"@types/nunjucks": "^3.2.1",
|
|
97
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
98
|
-
"@typescript-eslint/parser": "^5.
|
|
97
|
+
"@typescript-eslint/eslint-plugin": "^5.53.0",
|
|
98
|
+
"@typescript-eslint/parser": "^5.53.0",
|
|
99
99
|
"autoprefixer": "^10.4.13",
|
|
100
100
|
"babel-loader": "^9.1.2",
|
|
101
|
-
"dprint": "^0.34.
|
|
101
|
+
"dprint": "^0.34.5",
|
|
102
102
|
"eslint": "^8.34.0",
|
|
103
103
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
104
104
|
"eslint-import-resolver-typescript": "^3.5.3",
|
|
@@ -107,7 +107,7 @@
|
|
|
107
107
|
"glob": "^8.1.0",
|
|
108
108
|
"happy-dom": "^8.1.3",
|
|
109
109
|
"husky": "^8.0.3",
|
|
110
|
-
"lint-staged": "^13.1.
|
|
110
|
+
"lint-staged": "^13.1.2",
|
|
111
111
|
"postcss-cli": "^10.1.0",
|
|
112
112
|
"postcss-fail-on-warn": "^0.2.1",
|
|
113
113
|
"release-it": "^15.6.0",
|
|
@@ -115,7 +115,7 @@
|
|
|
115
115
|
"shx": "^0.3.4",
|
|
116
116
|
"ts-node": "^10.9.1",
|
|
117
117
|
"typescript": "^4.9.5",
|
|
118
|
-
"vitest": "^0.28.
|
|
118
|
+
"vitest": "^0.28.5",
|
|
119
119
|
"webpack": "^5.75.0",
|
|
120
120
|
"webpack-cli": "^5.0.1"
|
|
121
121
|
},
|
|
@@ -131,9 +131,7 @@
|
|
|
131
131
|
"overrides": {
|
|
132
132
|
"@axe-core/playwright": {
|
|
133
133
|
"playwright": "$@playwright/test"
|
|
134
|
-
}
|
|
135
|
-
"liquidjs": "^10.4.0",
|
|
136
|
-
"ua-parser-js@<1.0.33": "^1.0.33"
|
|
134
|
+
}
|
|
137
135
|
},
|
|
138
136
|
"dependencies": {
|
|
139
137
|
"lodash": "^4.17.21"
|