@moduk/frontend 0.3.5 → 0.3.6
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/radios/__examples__/default.njk +1 -1
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/inline.njk +26 -0
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/not-as-page-heading.njk +1 -1
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/small.njk +1 -1
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-divider-option.njk +6 -9
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-error-message.njk +1 -1
- package/dist/lib/nunjucks/moduk/components/radios/__examples__/with-item-hint.njk +6 -6
- package/package.json +1 -1
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{%- from "moduk/components/radios/macro.njk" import modukRadios -%}
|
|
2
|
+
|
|
3
|
+
{{ modukRadios({
|
|
4
|
+
classes: "govuk-radios--inline",
|
|
5
|
+
name: "changed-name",
|
|
6
|
+
fieldset: {
|
|
7
|
+
legend: {
|
|
8
|
+
text: "Have you changed your name?",
|
|
9
|
+
isPageHeading: true,
|
|
10
|
+
classes: "govuk-fieldset__legend--l"
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
hint: {
|
|
14
|
+
text: "This includes changing your last name or spelling your name differently."
|
|
15
|
+
},
|
|
16
|
+
items: [
|
|
17
|
+
{
|
|
18
|
+
value: "yes",
|
|
19
|
+
text: "Yes"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
value: "no",
|
|
23
|
+
text: "No"
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}) }}
|
|
@@ -1,32 +1,29 @@
|
|
|
1
1
|
{% from "moduk/components/radios/macro.njk" import modukRadios %}
|
|
2
2
|
|
|
3
3
|
{{ modukRadios({
|
|
4
|
-
name: "
|
|
4
|
+
name: "with-divider-option",
|
|
5
5
|
fieldset: {
|
|
6
6
|
legend: {
|
|
7
|
-
text: "
|
|
7
|
+
text: "How do you want to sign in?",
|
|
8
8
|
isPageHeading: true,
|
|
9
9
|
classes: "govuk-fieldset__legend--l"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
|
-
hint: {
|
|
13
|
-
text: "You need an account to use this service"
|
|
14
|
-
},
|
|
15
12
|
items: [
|
|
16
13
|
{
|
|
17
14
|
value: "biometric",
|
|
18
|
-
text: "Sign
|
|
15
|
+
text: "Sign in with a security key"
|
|
19
16
|
},
|
|
20
17
|
{
|
|
21
18
|
value: "userpass",
|
|
22
|
-
text: "Sign
|
|
19
|
+
text: "Sign in with a username and password"
|
|
23
20
|
},
|
|
24
21
|
{
|
|
25
22
|
divider: "or"
|
|
26
23
|
},
|
|
27
24
|
{
|
|
28
|
-
value: "
|
|
29
|
-
text: "
|
|
25
|
+
value: "register",
|
|
26
|
+
text: "Register for a new account"
|
|
30
27
|
}
|
|
31
28
|
]
|
|
32
29
|
}) }}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{% from "moduk/components/radios/macro.njk" import modukRadios %}
|
|
2
2
|
|
|
3
3
|
{{ modukRadios({
|
|
4
|
-
name: "sign-
|
|
4
|
+
name: "sign-in-with-hint",
|
|
5
5
|
fieldset: {
|
|
6
6
|
legend: {
|
|
7
|
-
text: "
|
|
7
|
+
text: "How do you want to sign in?",
|
|
8
8
|
isPageHeading: true,
|
|
9
9
|
classes: "govuk-fieldset__legend--l"
|
|
10
10
|
}
|
|
@@ -15,16 +15,16 @@
|
|
|
15
15
|
items: [
|
|
16
16
|
{
|
|
17
17
|
value: "biometric",
|
|
18
|
-
text: "Sign
|
|
18
|
+
text: "Sign in with a security key",
|
|
19
19
|
hint: {
|
|
20
|
-
text: "You
|
|
20
|
+
text: "You’ll need a registered USB security key."
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
value: "userpass",
|
|
25
|
-
text: "Sign
|
|
25
|
+
text: "Sign in with a username and password",
|
|
26
26
|
hint: {
|
|
27
|
-
text: "You
|
|
27
|
+
text: "You’ll need access to your two-factor authentication device."
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moduk/frontend",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.6",
|
|
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",
|