@moduk/frontend 0.3.6 → 0.3.8

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.
@@ -7,5 +7,5 @@
7
7
  isPageHeading: true
8
8
  },
9
9
  id: "default",
10
- name: "event-name"
10
+ name: "event-name-default"
11
11
  }) }}
@@ -5,5 +5,5 @@
5
5
  text: "What is the name of the event?"
6
6
  },
7
7
  id: "with-not-as-page-heading",
8
- name: "event-name"
8
+ name: "event-name-with-not-as-page-heading"
9
9
  }) }}
@@ -7,7 +7,7 @@
7
7
  isPageHeading: true
8
8
  },
9
9
  id: "with-error",
10
- name: "event-name",
10
+ name: "event-name-with-error",
11
11
  hint: {
12
12
  text: "The name you’ll use on promotional material"
13
13
  },
@@ -10,5 +10,5 @@
10
10
  text: "The name you’ll use on promotional material"
11
11
  },
12
12
  id: "with-hint",
13
- name: "event-name"
13
+ name: "event-name-with-hint"
14
14
  }) }}
@@ -11,7 +11,7 @@
11
11
  text: "Must be between 6 and 8 digits long"
12
12
  },
13
13
  id: "with-numeric",
14
- name: "account-number",
14
+ name: "account-number-with-numeric",
15
15
  inputmode: "numeric",
16
16
  spellcheck: false
17
17
  }) }}
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{ modukInput({
4
4
  id: "with-prefix-and-suffix-error",
5
- name: "cost-per-item",
5
+ name: "cost-per-item-with-prefix-and-suffix-error",
6
6
  label: {
7
7
  text: "What is the cost per item, in pounds?",
8
8
  classes: "govuk-label--l",
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{ modukInput({
4
4
  id: "with-prefix-and-suffix",
5
- name: "cost-per-item",
5
+ name: "cost-per-item-with-prefix-and-suffix",
6
6
  label: {
7
7
  text: "What is the cost per item, in pounds?",
8
8
  classes: "govuk-label--l",
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{ modukInput({
4
4
  id: "with-prefix",
5
- name: "cost",
5
+ name: "cost-with-prefix",
6
6
  label: {
7
7
  text: "What is the cost in pounds?",
8
8
  classes: "govuk-label--l",
@@ -2,7 +2,7 @@
2
2
 
3
3
  {{ modukInput({
4
4
  id: "with-suffix",
5
- name: "weight",
5
+ name: "weight-with-suffix",
6
6
  label: {
7
7
  text: "What is the weight in kilograms?",
8
8
  classes: "govuk-label--l",
@@ -1,14 +1,12 @@
1
- {% from "moduk/components/skip-link/macro.njk" import modukSkipLink %}
1
+ {%- from "moduk/components/skip-link/macro.njk" import modukSkipLink -%}
2
2
 
3
3
  {# Wrapped in a <div> so there is one root element, for visual regression tests to use #}
4
4
 
5
5
  <div>
6
+ <p class="govuk-body" id="content">To view the skip link component tab to this example, or click inside this example and press tab.</p>
6
7
 
7
8
  {{ modukSkipLink({
8
9
  text: "Skip to main content",
9
10
  href: "#content"
10
11
  }) }}
11
-
12
- <p class="govuk-body" id="content">Press tab to view the skip link component.</p>
13
-
14
12
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@moduk/frontend",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
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",
@@ -86,12 +86,12 @@
86
86
  "@babel/preset-env": "^7.20.2",
87
87
  "@babel/preset-typescript": "^7.18.6",
88
88
  "@commitlint/cli": "^17.4.2",
89
- "@commitlint/config-conventional": "^17.3.0",
89
+ "@commitlint/config-conventional": "^17.4.2",
90
90
  "@playwright/test": "^1.29.2",
91
91
  "@release-it/conventional-changelog": "^5.1.1",
92
- "@testing-library/dom": "^8.19.1",
92
+ "@testing-library/dom": "^8.20.0",
93
93
  "@testing-library/jest-dom": "^5.16.5",
94
- "@types/glob": "^8.0.0",
94
+ "@types/glob": "^8.0.1",
95
95
  "@types/lodash": "^4.14.189",
96
96
  "@types/nunjucks": "^3.2.1",
97
97
  "@typescript-eslint/eslint-plugin": "^5.48.2",
@@ -110,11 +110,11 @@
110
110
  "lint-staged": "^13.1.0",
111
111
  "postcss-cli": "^10.1.0",
112
112
  "postcss-fail-on-warn": "^0.2.1",
113
- "release-it": "^15.5.0",
113
+ "release-it": "^15.6.0",
114
114
  "sass": "^1.57.1",
115
115
  "shx": "^0.3.4",
116
116
  "ts-node": "^10.9.1",
117
- "typescript": "^4.9.3",
117
+ "typescript": "^4.9.5",
118
118
  "vitest": "^0.28.3",
119
119
  "webpack": "^5.75.0",
120
120
  "webpack-cli": "^5.0.1"