@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.
- package/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +7 -3
- package/nationalarchives/components/checkboxes/checkboxes.njk +3 -1
- package/nationalarchives/components/checkboxes/fixtures.json +108 -0
- package/nationalarchives/components/checkboxes/macro-options.json +1 -1
- package/nationalarchives/components/checkboxes/template.njk +1 -1
- package/nationalarchives/components/date-input/fixtures.json +52 -0
- package/nationalarchives/components/date-input/macro-options.json +12 -0
- package/nationalarchives/components/date-input/template.njk +9 -5
- package/nationalarchives/components/date-search/fixtures.json +52 -0
- package/nationalarchives/components/date-search/macro-options.json +1 -1
- package/nationalarchives/components/footer/fixtures.json +1 -1
- package/nationalarchives/components/footer/template.njk +1 -1
- package/nationalarchives/components/pagination/fixtures.json +5 -3
- package/nationalarchives/components/pagination/macro-options.json +12 -0
- package/nationalarchives/components/quick-filters/fixtures.json +2 -1
- package/nationalarchives/components/radios/fixtures.json +108 -0
- package/nationalarchives/components/radios/macro-options.json +1 -1
- package/nationalarchives/components/radios/radios.njk +3 -1
- package/nationalarchives/components/radios/template.njk +1 -1
- package/nationalarchives/components/search-field/fixtures.json +52 -0
- package/nationalarchives/components/search-field/macro-options.json +1 -1
- package/nationalarchives/components/search-field/template.njk +1 -1
- package/nationalarchives/components/select/fixtures.json +108 -0
- package/nationalarchives/components/select/macro-options.json +1 -1
- package/nationalarchives/components/text-input/fixtures.json +52 -0
- package/nationalarchives/components/text-input/macro-options.json +1 -1
- package/nationalarchives/components/textarea/fixtures.json +52 -0
- package/nationalarchives/components/textarea/macro-options.json +1 -1
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/package.json +1 -1
@@ -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
|
}
|