@nationalarchives/frontend 0.14.0 → 0.15.0

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.
Files changed (35) hide show
  1. package/nationalarchives/all.css +1 -1
  2. package/nationalarchives/all.css.map +1 -1
  3. package/nationalarchives/components/card/card.css +1 -1
  4. package/nationalarchives/components/card/card.css.map +1 -1
  5. package/nationalarchives/components/card/card.scss +7 -3
  6. package/nationalarchives/components/checkboxes/checkboxes.njk +3 -1
  7. package/nationalarchives/components/checkboxes/fixtures.json +108 -0
  8. package/nationalarchives/components/checkboxes/macro-options.json +1 -1
  9. package/nationalarchives/components/checkboxes/template.njk +1 -1
  10. package/nationalarchives/components/date-input/fixtures.json +52 -0
  11. package/nationalarchives/components/date-input/macro-options.json +12 -0
  12. package/nationalarchives/components/date-input/template.njk +9 -5
  13. package/nationalarchives/components/date-search/fixtures.json +52 -0
  14. package/nationalarchives/components/date-search/macro-options.json +1 -1
  15. package/nationalarchives/components/footer/fixtures.json +1 -1
  16. package/nationalarchives/components/footer/template.njk +1 -1
  17. package/nationalarchives/components/pagination/fixtures.json +5 -3
  18. package/nationalarchives/components/pagination/macro-options.json +12 -0
  19. package/nationalarchives/components/quick-filters/fixtures.json +2 -1
  20. package/nationalarchives/components/radios/fixtures.json +108 -0
  21. package/nationalarchives/components/radios/macro-options.json +1 -1
  22. package/nationalarchives/components/radios/radios.njk +3 -1
  23. package/nationalarchives/components/radios/template.njk +1 -1
  24. package/nationalarchives/components/search-field/fixtures.json +52 -0
  25. package/nationalarchives/components/search-field/macro-options.json +1 -1
  26. package/nationalarchives/components/search-field/template.njk +1 -1
  27. package/nationalarchives/components/select/fixtures.json +108 -0
  28. package/nationalarchives/components/select/macro-options.json +1 -1
  29. package/nationalarchives/components/text-input/fixtures.json +52 -0
  30. package/nationalarchives/components/text-input/macro-options.json +1 -1
  31. package/nationalarchives/components/textarea/fixtures.json +52 -0
  32. package/nationalarchives/components/textarea/macro-options.json +1 -1
  33. package/nationalarchives/prototype-kit.css +1 -1
  34. package/nationalarchives/prototype-kit.css.map +1 -1
  35. package/package.json +1 -1
@@ -105,7 +105,7 @@
105
105
  },
106
106
  {
107
107
  "name": "formGroupAttributes",
108
- "type": "string",
108
+ "type": "object",
109
109
  "required": false,
110
110
  "description": "HTML attributes (for example data attributes) to add to the text input form group."
111
111
  },
@@ -73,6 +73,58 @@
73
73
  "size": "m"
74
74
  },
75
75
  "html": "<div class=\"tna-form__group\"><div class=\"tna-form__group-contents\"><h4 class=\"tna-form__heading tna-form__heading--m\"><label class=\"tna-form__label\" for=\"feedback\">Enter your feedback</label></h4></div><textarea id=\"feedback\" class=\"tna-textarea tna-textarea--m \" name=\"feedback\" spellcheck=\"false\" rows=\"5\"></textarea></div>"
76
+ },
77
+ {
78
+ "name": "with classes",
79
+ "options": {
80
+ "label": "Enter your feedback",
81
+ "headingLevel": 4,
82
+ "headingSize": "m",
83
+ "id": "feedback",
84
+ "name": "name",
85
+ "classes": "test-class"
86
+ },
87
+ "html": "<div class=\"tna-form__group\"><div class=\"tna-form__group-contents\"><h4 class=\"tna-form__heading tna-form__heading--m\"><label class=\"tna-form__label\" for=\"feedback\">Enter your feedback</label></h4></div><textarea id=\"feedback\" class=\"tna-textarea test-class\" name=\"name\" spellcheck=\"false\" rows=\"5\"></textarea></div>"
88
+ },
89
+ {
90
+ "name": "with attributes",
91
+ "options": {
92
+ "label": "Enter your feedback",
93
+ "headingLevel": 4,
94
+ "headingSize": "m",
95
+ "id": "feedback",
96
+ "name": "name",
97
+ "attributes": {
98
+ "data-testattribute": "foobar"
99
+ }
100
+ },
101
+ "html": "<div class=\"tna-form__group\"><div class=\"tna-form__group-contents\"><h4 class=\"tna-form__heading tna-form__heading--m\"><label class=\"tna-form__label\" for=\"feedback\">Enter your feedback</label></h4></div><textarea id=\"feedback\" class=\"tna-textarea \" name=\"name\" spellcheck=\"false\" rows=\"5\" data-testattribute=\"foobar\"></textarea></div>"
102
+ },
103
+ {
104
+ "name": "with form group classes",
105
+ "options": {
106
+ "label": "Enter your feedback",
107
+ "headingLevel": 4,
108
+ "headingSize": "m",
109
+ "id": "feedback",
110
+ "name": "name",
111
+ "formGroupClasses": "test-class"
112
+ },
113
+ "html": "<div class=\"tna-form__group test-class\"><div class=\"tna-form__group-contents\"><h4 class=\"tna-form__heading tna-form__heading--m\"><label class=\"tna-form__label\" for=\"feedback\">Enter your feedback</label></h4></div><textarea id=\"feedback\" class=\"tna-textarea \" name=\"name\" spellcheck=\"false\" rows=\"5\"></textarea></div>"
114
+ },
115
+ {
116
+ "name": "with form group attributes",
117
+ "options": {
118
+ "label": "Enter your feedback",
119
+ "headingLevel": 4,
120
+ "headingSize": "m",
121
+ "id": "feedback",
122
+ "name": "name",
123
+ "formGroupAttributes": {
124
+ "data-testattribute": "foobar"
125
+ }
126
+ },
127
+ "html": "<div class=\"tna-form__group\" data-testattribute=\"foobar\"><div class=\"tna-form__group-contents\"><h4 class=\"tna-form__heading tna-form__heading--m\"><label class=\"tna-form__label\" for=\"feedback\">Enter your feedback</label></h4></div><textarea id=\"feedback\" class=\"tna-textarea \" name=\"name\" spellcheck=\"false\" rows=\"5\"></textarea></div>"
76
128
  }
77
129
  ]
78
130
  }
@@ -87,7 +87,7 @@
87
87
  },
88
88
  {
89
89
  "name": "formGroupAttributes",
90
- "type": "string",
90
+ "type": "object",
91
91
  "required": false,
92
92
  "description": "HTML attributes (for example data attributes) to add to the textarea form group."
93
93
  },