govuk_publishing_components 9.5.1 → 9.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js +11 -6
  3. data/app/assets/javascripts/govuk_publishing_components/vendor/modernizr.js +3 -0
  4. data/app/assets/stylesheets/govuk_publishing_components/admin_styles_ie8.scss +2 -0
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav.scss +2 -0
  6. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +7 -1
  7. data/app/views/govuk_publishing_components/components/_step_by_step_nav.html.erb +3 -5
  8. data/app/views/layouts/govuk_publishing_components/application.html.erb +6 -0
  9. data/config/initializers/assets.rb +2 -0
  10. data/lib/govuk_publishing_components/version.rb +1 -1
  11. data/node_modules/govuk-frontend/README.md +1 -1
  12. data/node_modules/govuk-frontend/all.js +3 -1
  13. data/node_modules/govuk-frontend/components/back-link/README.md +23 -7
  14. data/node_modules/govuk-frontend/components/breadcrumbs/README.md +26 -26
  15. data/node_modules/govuk-frontend/components/button/README.md +22 -22
  16. data/node_modules/govuk-frontend/components/checkboxes/README.md +115 -27
  17. data/node_modules/govuk-frontend/components/checkboxes/_checkboxes.scss +7 -1
  18. data/node_modules/govuk-frontend/components/date-input/README.md +141 -61
  19. data/node_modules/govuk-frontend/components/date-input/_date-input.scss +0 -5
  20. data/node_modules/govuk-frontend/components/date-input/template.njk +40 -17
  21. data/node_modules/govuk-frontend/components/details/README.md +10 -10
  22. data/node_modules/govuk-frontend/components/error-message/README.md +4 -4
  23. data/node_modules/govuk-frontend/components/error-summary/README.md +5 -5
  24. data/node_modules/govuk-frontend/components/fieldset/README.md +7 -7
  25. data/node_modules/govuk-frontend/components/file-upload/README.md +16 -16
  26. data/node_modules/govuk-frontend/components/footer/README.md +5 -5
  27. data/node_modules/govuk-frontend/components/footer/template.njk +1 -1
  28. data/node_modules/govuk-frontend/components/header/README.md +26 -18
  29. data/node_modules/govuk-frontend/components/header/_header.scss +3 -2
  30. data/node_modules/govuk-frontend/components/header/template.njk +5 -3
  31. data/node_modules/govuk-frontend/components/hint/README.md +14 -10
  32. data/node_modules/govuk-frontend/components/input/README.md +166 -30
  33. data/node_modules/govuk-frontend/components/input/_input.scss +20 -3
  34. data/node_modules/govuk-frontend/components/inset-text/README.md +6 -6
  35. data/node_modules/govuk-frontend/components/label/README.md +9 -9
  36. data/node_modules/govuk-frontend/components/panel/README.md +43 -4
  37. data/node_modules/govuk-frontend/components/panel/template.njk +4 -2
  38. data/node_modules/govuk-frontend/components/phase-banner/README.md +4 -4
  39. data/node_modules/govuk-frontend/components/phase-banner/_phase-banner.scss +3 -3
  40. data/node_modules/govuk-frontend/components/radios/README.md +100 -29
  41. data/node_modules/govuk-frontend/components/radios/_radios.scss +12 -3
  42. data/node_modules/govuk-frontend/components/select/README.md +12 -12
  43. data/node_modules/govuk-frontend/components/skip-link/README.md +4 -4
  44. data/node_modules/govuk-frontend/components/table/README.md +12 -12
  45. data/node_modules/govuk-frontend/components/table/_table.scss +2 -2
  46. data/node_modules/govuk-frontend/components/tabs/README.md +4 -4
  47. data/node_modules/govuk-frontend/components/tabs/_tabs.scss +1 -0
  48. data/node_modules/govuk-frontend/components/tag/README.md +7 -7
  49. data/node_modules/govuk-frontend/components/tag/_tag.scss +6 -0
  50. data/node_modules/govuk-frontend/components/textarea/README.md +16 -16
  51. data/node_modules/govuk-frontend/components/warning-text/README.md +4 -4
  52. data/node_modules/govuk-frontend/components/warning-text/_warning-text.scss +14 -4
  53. data/node_modules/govuk-frontend/core/_template.scss +7 -3
  54. data/node_modules/govuk-frontend/helpers/_typography.scss +44 -10
  55. data/node_modules/govuk-frontend/objects/_main-wrapper.scss +4 -0
  56. data/node_modules/govuk-frontend/package.json +18 -12
  57. data/node_modules/govuk-frontend/settings/_typography-responsive.scss +35 -0
  58. data/node_modules/govuk-frontend/tools/_all.scss +1 -0
  59. data/node_modules/govuk-frontend/tools/_px-to-rem.scss +20 -0
  60. data/node_modules/govuk-frontend/utilities/_visually-hidden.scss +6 -0
  61. metadata +5 -28
  62. data/node_modules/govuk-frontend/components/back-link/back-link.njk +0 -3
  63. data/node_modules/govuk-frontend/components/breadcrumbs/breadcrumbs.njk +0 -14
  64. data/node_modules/govuk-frontend/components/button/button.njk +0 -3
  65. data/node_modules/govuk-frontend/components/checkboxes/checkboxes.njk +0 -27
  66. data/node_modules/govuk-frontend/components/date-input/date-input.njk +0 -23
  67. data/node_modules/govuk-frontend/components/details/details.njk +0 -7
  68. data/node_modules/govuk-frontend/components/error-message/error-message.njk +0 -7
  69. data/node_modules/govuk-frontend/components/error-summary/error-summary.njk +0 -17
  70. data/node_modules/govuk-frontend/components/fieldset/fieldset.njk +0 -13
  71. data/node_modules/govuk-frontend/components/file-upload/file-upload.njk +0 -9
  72. data/node_modules/govuk-frontend/components/footer/footer.njk +0 -3
  73. data/node_modules/govuk-frontend/components/header/header.njk +0 -3
  74. data/node_modules/govuk-frontend/components/hint/hint.njk +0 -7
  75. data/node_modules/govuk-frontend/components/input/input.njk +0 -9
  76. data/node_modules/govuk-frontend/components/inset-text/inset-text.njk +0 -7
  77. data/node_modules/govuk-frontend/components/label/label.njk +0 -6
  78. data/node_modules/govuk-frontend/components/panel/panel.njk +0 -7
  79. data/node_modules/govuk-frontend/components/phase-banner/phase-banner.njk +0 -7
  80. data/node_modules/govuk-frontend/components/radios/radios.njk +0 -27
  81. data/node_modules/govuk-frontend/components/select/select.njk +0 -24
  82. data/node_modules/govuk-frontend/components/skip-link/skip-link.njk +0 -3
  83. data/node_modules/govuk-frontend/components/table/table.njk +0 -45
  84. data/node_modules/govuk-frontend/components/tabs/tabs.njk +0 -3
  85. data/node_modules/govuk-frontend/components/tag/tag.njk +0 -7
  86. data/node_modules/govuk-frontend/components/textarea/textarea.njk +0 -11
  87. data/node_modules/govuk-frontend/components/warning-text/warning-text.njk +0 -9
@@ -1,3 +0,0 @@
1
- {% from "back-link/macro.njk" import govukBackLink %}
2
-
3
- {{ govukBackLink({href: '#', text: 'Back'}) }}
@@ -1,14 +0,0 @@
1
- {% from "breadcrumbs/macro.njk" import govukBreadcrumbs %}
2
-
3
- {{ govukBreadcrumbs({
4
- "items": [
5
- {
6
- "text": "Section 1",
7
- "href": "/section"
8
- },
9
- {
10
- "text": "Sub-section",
11
- "href": "/section/sub-section"
12
- }
13
- ]
14
- }) }}
@@ -1,3 +0,0 @@
1
- {% from "button/macro.njk" import govukButton %}
2
-
3
- {{ govukButton({ text:'Save and continue', href: '/' }) }}
@@ -1,27 +0,0 @@
1
- {% from 'checkboxes/macro.njk' import govukCheckboxes %}
2
-
3
- {{ govukCheckboxes({
4
- "idPrefix": "waste-types",
5
- "name": "waste-types",
6
- "items": [
7
- {
8
- "value": "waste-animal",
9
- "text": "Waste from animal carcasses"
10
- },
11
- {
12
- "id": "custom-id",
13
- "value": "waste-mines",
14
- "text": "Waste from mines or quarries"
15
- },
16
- {
17
- "value": "waste-farm",
18
- "text": "Farm or agricultural waste",
19
- "checked": true
20
- },
21
- {
22
- "value": "waste-disabled",
23
- "text": "Disabled checkbox option",
24
- "disabled": true
25
- }
26
- ]
27
- }) }}
@@ -1,23 +0,0 @@
1
- {% from "date-input/macro.njk" import govukDateInput %}
2
-
3
- {{- govukDateInput({
4
- fieldset: {
5
- legend: {
6
- text: 'What is your date of birth?'
7
- }
8
- },
9
- id: 'dob',
10
- name: 'dob',
11
- items:[
12
- {
13
- name: 'day'
14
- },
15
- {
16
- name: 'month'
17
- },
18
- {
19
- name: 'year'
20
- }
21
- ]
22
- })
23
- -}}
@@ -1,7 +0,0 @@
1
- {% from "details/macro.njk" import govukDetails %}
2
-
3
- {{- govukDetails({
4
- "summaryText": "Help with nationality",
5
- "text": "If you’re not sure about your nationality, try to find out from an official document like a passport or national ID card."
6
- })
7
- -}}
@@ -1,7 +0,0 @@
1
- {% from "error-message/macro.njk" import govukErrorMessage %}
2
-
3
- {{- govukErrorMessage(
4
- {
5
- "text": "Error message about full name goes here"
6
- })
7
- -}}
@@ -1,17 +0,0 @@
1
- {% from "error-summary/macro.njk" import govukErrorSummary %}
2
-
3
- {{ govukErrorSummary({
4
- "titleText": "Message to alert the user to a problem goes here",
5
- "descriptionText": "Optional description of the errors and how to correct them",
6
- "classes": "optional-extra-class",
7
- "errorList": [
8
- {
9
- "text": "Descriptive link to the question with an error",
10
- "href": "#example-error-1"
11
- },
12
- {
13
- "text": "Descriptive link to the question with an error",
14
- "href": "#example-error-1"
15
- }
16
- ]
17
- }) }}
@@ -1,13 +0,0 @@
1
- {% from "fieldset/macro.njk" import govukFieldset %}
2
-
3
- {{ govukFieldset({
4
- "legend": {
5
- "text": "Legend text goes here"
6
- },
7
- "hint": {
8
- "text": "Legend hint text goes here"
9
- },
10
- "errorMessage": {
11
- "text": "Error message goes here"
12
- }
13
- }) }}
@@ -1,9 +0,0 @@
1
- {% from "file-upload/macro.njk" import govukFileUpload %}
2
-
3
- {{- govukFileUpload({
4
- id: 'file-upload-1',
5
- name: 'file-upload-1',
6
- label: {
7
- text: 'Upload a file'
8
- }
9
- }) -}}
@@ -1,3 +0,0 @@
1
- {% from "footer/macro.njk" import govukFooter %}
2
-
3
- {{ govukFooter() }}
@@ -1,3 +0,0 @@
1
- {% from "header/macro.njk" import govukHeader %}
2
-
3
- {{ govukHeader() }}
@@ -1,7 +0,0 @@
1
- {% from "hint/macro.njk" import govukHint %}
2
-
3
- {{ govukHint({
4
- text: "It’s on your National Insurance card, benefit letter, payslip or P60.
5
- For example, ‘QQ 12 34 56 C’.",
6
- id: "hint-id"
7
- }) }}
@@ -1,9 +0,0 @@
1
- {% from "input/macro.njk" import govukInput %}
2
-
3
- {{ govukInput({
4
- label: {
5
- "text": "National Insurance Number"
6
- },
7
- id: "input-1",
8
- name: "test-name"
9
- }) }}
@@ -1,7 +0,0 @@
1
- {% from "inset-text/macro.njk" import govukInsetText %}
2
-
3
- {{ govukInsetText({
4
- classes: '',
5
- html: 'It can take up to 8 weeks <a href="#">to register</a> a lasting power of attorney if there are no mistakes in the application.'
6
- })
7
- }}
@@ -1,6 +0,0 @@
1
- {% from "label/macro.njk" import govukLabel %}
2
-
3
- {{ govukLabel({
4
- "text": "National Insurance number"
5
- }
6
- ) }}
@@ -1,7 +0,0 @@
1
- {% from "panel/macro.njk" import govukPanel %}
2
-
3
- {{ govukPanel({
4
- "titleText": "Application complete",
5
- "html": "Your reference number<br><strong>HDJ2123F</strong>"
6
- })
7
- }}
@@ -1,7 +0,0 @@
1
- {% from "phase-banner/macro.njk" import govukPhaseBanner %}
2
- {{ govukPhaseBanner({
3
- "tag": {
4
- "text": "alpha"
5
- },
6
- "html": 'This is a new service – your <a href="#" class="govuk-link">feedback</a> will help us to improve it.'
7
- }) }}
@@ -1,27 +0,0 @@
1
- {% from 'radios/macro.njk' import govukRadios %}
2
-
3
- {{ govukRadios({
4
- "idPrefix": "radio",
5
- "name": "radio-group",
6
- "items": [
7
- {
8
- "value": "waste-animal",
9
- "text": "Waste from animal carcasses"
10
- },
11
- {
12
- "id": "custom-id",
13
- "value": "waste-mines",
14
- "text": "Waste from mines or quarries"
15
- },
16
- {
17
- "value": "waste-farm",
18
- "text": "Farm or agricultural waste",
19
- "checked": true
20
- },
21
- {
22
- "value": "waste-disabled",
23
- "text": "Disabled radio option",
24
- "disabled": true
25
- }
26
- ]
27
- }) }}
@@ -1,24 +0,0 @@
1
- {% from "select/macro.njk" import govukSelect %}
2
-
3
- {{ govukSelect({
4
- "id": "select-1",
5
- "name": "select-1",
6
- "label": {
7
- "html": "Label text goes here"
8
- },
9
- "items": [
10
- {
11
- "value": 1,
12
- "text": "GOV.UK frontend option 1"
13
- },
14
- {
15
- "value": 2,
16
- "text": "GOV.UK frontend option 2",
17
- "selected": true
18
- },
19
- {
20
- "value": 3,
21
- "text": "GOV.UK frontend option 3"
22
- }
23
- ]
24
- }) }}
@@ -1,3 +0,0 @@
1
- {% from "skip-link/macro.njk" import govukSkipLink %}
2
-
3
- {{ govukSkipLink({href: '#content', text: 'Skip to main content'}) }}
@@ -1,45 +0,0 @@
1
- {% from 'table/macro.njk' import govukTable %}
2
-
3
- {{ govukTable({
4
- "rows": [
5
- [
6
- {
7
- "text": "January"
8
- },
9
- {
10
- "text": "£85",
11
- "format": "numeric"
12
- },
13
- {
14
- "text": "£95",
15
- "format": "numeric"
16
- }
17
- ],
18
- [
19
- {
20
- "text": "February"
21
- },
22
- {
23
- "text": "£75",
24
- "format": "numeric"
25
- },
26
- {
27
- "text": "£55",
28
- "format": "numeric"
29
- }
30
- ],
31
- [
32
- {
33
- "text": "March"
34
- },
35
- {
36
- "text": "£165",
37
- "format": "numeric"
38
- },
39
- {
40
- "text": "£125",
41
- "format": "numeric"
42
- }
43
- ]
44
- ]
45
- }) }}
@@ -1,3 +0,0 @@
1
- {% from "tabs/macro.njk" import govukTabs %}
2
-
3
- {{- govukTabs() -}}
@@ -1,7 +0,0 @@
1
- {%- from "tag/macro.njk" import govukTag -%}
2
-
3
- {{- govukTag(
4
- {
5
- "text": "alpha"
6
- })
7
- -}}
@@ -1,11 +0,0 @@
1
- {% from "textarea/macro.njk" import govukTextarea %}
2
-
3
- {{ govukTextarea({
4
- id: "more-detail",
5
- name: "more-detail",
6
- label: {
7
- text: "Can you provide more detail?",
8
- hintText: "Don't include personal or financial information, eg your National Insurance number or credit card details."
9
- }
10
- })
11
- }}
@@ -1,9 +0,0 @@
1
- {% from "warning-text/macro.njk" import govukWarningText %}
2
-
3
- {{- govukWarningText(
4
- {
5
- "classes": "",
6
- "text": "You can be fined up to £5,000 if you don’t register.",
7
- "iconFallbackText": "Warning"
8
- })
9
- -}}