@moduk/frontend 0.3.2 → 0.3.4

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.
@@ -1,7 +1,7 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies",
4
+ name: "technologies-default",
5
5
  fieldset: {
6
6
  legend: {
7
7
  text: "Which technologies do you use in your role?",
@@ -1,7 +1,7 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies",
4
+ name: "technologies-not-as-page-heading",
5
5
  fieldset: {
6
6
  legend: {
7
7
  text: "Which technologies do you use in your role?"
@@ -1,7 +1,7 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "organisation",
4
+ name: "organisation-small",
5
5
  classes: "govuk-checkboxes--small",
6
6
  fieldset: {
7
7
  legend: {
@@ -42,7 +42,7 @@
42
42
  {% endset -%}
43
43
 
44
44
  {{ modukCheckboxes({
45
- name: "contact",
45
+ name: "contact-with-conditional-reveal",
46
46
  fieldset: {
47
47
  legend: {
48
48
  text: "How would you like to be contacted?",
@@ -1,7 +1,7 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies",
4
+ name: "technologies-with-error-message",
5
5
  fieldset: {
6
6
  legend: {
7
7
  text: "Which technologies do you use in your role?",
@@ -1,7 +1,7 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies",
4
+ name: "technologies-with-item-hint",
5
5
  fieldset: {
6
6
  legend: {
7
7
  text: "Which technologies do you use in your role?",
@@ -1,7 +1,7 @@
1
1
  {% from "moduk/components/checkboxes/macro.njk" import modukCheckboxes %}
2
2
 
3
3
  {{ modukCheckboxes({
4
- name: "technologies",
4
+ name: "technologies-with-none-option",
5
5
  fieldset: {
6
6
  legend: {
7
7
  text: "Which technologies do you use in your role?",
@@ -1,8 +1,8 @@
1
1
  {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
2
2
 
3
3
  {{ modukDateInput({
4
- id: "contract-start-date",
5
- namePrefix: "contract-start-date",
4
+ id: "contract-start-date-default",
5
+ namePrefix: "contract-start-date-default",
6
6
  fieldset: {
7
7
  legend: {
8
8
  text: "When will the contract start?",
@@ -1,8 +1,8 @@
1
1
  {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
2
2
 
3
3
  {{ modukDateInput({
4
- id: "contract-start-date",
5
- namePrefix: "contract-start-date",
4
+ id: "contract-start-date-not-as-heading",
5
+ namePrefix: "contract-start-date-not-as-heading",
6
6
  fieldset: {
7
7
  legend: {
8
8
  text: "When will the contract start?"
@@ -1,8 +1,8 @@
1
1
  {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
2
2
 
3
3
  {{ modukDateInput({
4
- id: "contract-start-date",
5
- namePrefix: "contract-start-date",
4
+ id: "contract-start-date-with-part-error",
5
+ namePrefix: "contract-start-date-with-part-error",
6
6
  fieldset: {
7
7
  legend: {
8
8
  text: "When will the contract start?",
@@ -1,8 +1,8 @@
1
1
  {% from "moduk/components/date-input/macro.njk" import modukDateInput %}
2
2
 
3
3
  {{ modukDateInput({
4
- id: "contract-start-date",
5
- namePrefix: "contract-start-date",
4
+ id: "contract-start-date-with-whole-error",
5
+ namePrefix: "contract-start-date-with-whole-error",
6
6
  fieldset: {
7
7
  legend: {
8
8
  text: "When will the contract start?",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduk/frontend",
3
- "version": "0.3.2",
3
+ "version": "0.3.4",
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",
@@ -98,15 +98,15 @@
98
98
  "@typescript-eslint/parser": "^5.46.1",
99
99
  "autoprefixer": "^10.4.13",
100
100
  "babel-loader": "^9.1.2",
101
- "dprint": "^0.34.1",
101
+ "dprint": "^0.34.4",
102
102
  "eslint": "^8.32.0",
103
103
  "eslint-config-airbnb-base": "^15.0.0",
104
- "eslint-import-resolver-typescript": "^3.5.2",
105
- "eslint-plugin-import": "^2.26.0",
104
+ "eslint-import-resolver-typescript": "^3.5.3",
105
+ "eslint-plugin-import": "^2.27.5",
106
106
  "eslint-plugin-unicorn": "^45.0.1",
107
107
  "glob": "^8.1.0",
108
108
  "happy-dom": "^8.1.3",
109
- "husky": "^8.0.2",
109
+ "husky": "^8.0.3",
110
110
  "lint-staged": "^13.1.0",
111
111
  "postcss-cli": "^10.1.0",
112
112
  "postcss-fail-on-warn": "^0.2.1",
@@ -115,7 +115,7 @@
115
115
  "shx": "^0.3.4",
116
116
  "ts-node": "^10.9.1",
117
117
  "typescript": "^4.9.3",
118
- "vitest": "^0.27.2",
118
+ "vitest": "^0.28.3",
119
119
  "webpack": "^5.75.0",
120
120
  "webpack-cli": "^5.0.1"
121
121
  },
@@ -132,7 +132,8 @@
132
132
  "@axe-core/playwright": {
133
133
  "playwright": "$@playwright/test"
134
134
  },
135
- "liquidjs": "^10.4.0"
135
+ "liquidjs": "^10.4.0",
136
+ "ua-parser-js@<1.0.33": "^1.0.33"
136
137
  },
137
138
  "dependencies": {
138
139
  "lodash": "^4.17.21"