@nationalarchives/frontend 0.1.23-prerelease → 0.1.25-prerelease

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 (159) hide show
  1. package/README.md +22 -0
  2. package/govuk-prototype-kit.config.json +4 -12
  3. package/nationalarchives/all.css +2 -2
  4. package/nationalarchives/all.css.map +1 -1
  5. package/nationalarchives/all.js +1 -1
  6. package/nationalarchives/all.js.map +1 -1
  7. package/nationalarchives/assets/fonts/OpenSans-Regular.ttf +0 -0
  8. package/nationalarchives/assets/fonts/RobotoMono-Medium.ttf +0 -0
  9. package/nationalarchives/components/_index.scss +1 -1
  10. package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
  11. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  12. package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +1 -1
  13. package/nationalarchives/components/button/button.css +1 -1
  14. package/nationalarchives/components/button/button.css.map +1 -1
  15. package/nationalarchives/components/button/button.scss +12 -12
  16. package/nationalarchives/components/button/template.njk +2 -2
  17. package/nationalarchives/components/card/card.css +1 -1
  18. package/nationalarchives/components/card/card.css.map +1 -1
  19. package/nationalarchives/components/card/card.scss +9 -4
  20. package/nationalarchives/components/card/card.stories.js +27 -78
  21. package/nationalarchives/components/card/fixtures.json +17 -17
  22. package/nationalarchives/components/card/macro-options.json +47 -17
  23. package/nationalarchives/components/card/template.njk +47 -46
  24. package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
  25. package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
  26. package/nationalarchives/components/cookie-banner/cookie-banner.js +1 -1
  27. package/nationalarchives/components/cookie-banner/cookie-banner.js.map +1 -1
  28. package/nationalarchives/components/cookie-banner/cookie-banner.mjs +17 -16
  29. package/nationalarchives/components/cookie-banner/cookie-banner.scss +1 -1
  30. package/nationalarchives/components/cookie-banner/cookie-banner.stories.js +95 -45
  31. package/nationalarchives/components/cookie-banner/fixtures.json +84 -1
  32. package/nationalarchives/components/cookie-banner/macro-options.json +7 -1
  33. package/nationalarchives/components/cookie-banner/template.njk +4 -4
  34. package/nationalarchives/components/featured-records/_index.scss +1 -0
  35. package/nationalarchives/components/featured-records/featured-records.css +1 -0
  36. package/nationalarchives/components/featured-records/featured-records.css.map +1 -0
  37. package/nationalarchives/components/featured-records/featured-records.scss +95 -0
  38. package/nationalarchives/components/featured-records/featured-records.stories.js +51 -0
  39. package/nationalarchives/components/featured-records/fixtures.json +4 -0
  40. package/nationalarchives/components/featured-records/macro-options.json +70 -0
  41. package/nationalarchives/components/featured-records/macro.njk +3 -0
  42. package/nationalarchives/components/featured-records/template.njk +20 -0
  43. package/nationalarchives/components/filters/filters.css +1 -1
  44. package/nationalarchives/components/filters/filters.css.map +1 -1
  45. package/nationalarchives/components/filters/filters.scss +6 -6
  46. package/nationalarchives/components/filters/template.njk +1 -1
  47. package/nationalarchives/components/footer/footer.css +1 -1
  48. package/nationalarchives/components/footer/footer.css.map +1 -1
  49. package/nationalarchives/components/footer/footer.scss +2 -5
  50. package/nationalarchives/components/footer/footer.stories.js +1 -1
  51. package/nationalarchives/components/footer/template.njk +4 -4
  52. package/nationalarchives/components/gallery/gallery.css +1 -1
  53. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  54. package/nationalarchives/components/gallery/gallery.scss +2 -2
  55. package/nationalarchives/components/gallery/gallery.stories.js +2 -2
  56. package/nationalarchives/components/grid/grid.css +1 -1
  57. package/nationalarchives/components/grid/grid.css.map +1 -1
  58. package/nationalarchives/components/grid/grid.scss +12 -0
  59. package/nationalarchives/components/grid/grid.stories.js +12 -0
  60. package/nationalarchives/components/header/header.css +1 -1
  61. package/nationalarchives/components/header/header.css.map +1 -1
  62. package/nationalarchives/components/header/header.scss +59 -27
  63. package/nationalarchives/components/header/header.stories.js +4 -6
  64. package/nationalarchives/components/header/macro-options.json +2 -2
  65. package/nationalarchives/components/header/template.njk +4 -4
  66. package/nationalarchives/components/hero/hero.css +1 -1
  67. package/nationalarchives/components/hero/hero.css.map +1 -1
  68. package/nationalarchives/components/hero/hero.scss +6 -6
  69. package/nationalarchives/components/hero/hero.stories.js +6 -0
  70. package/nationalarchives/components/index-grid/index-grid.css +1 -1
  71. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  72. package/nationalarchives/components/index-grid/index-grid.scss +1 -1
  73. package/nationalarchives/components/index-grid/index-grid.stories.js +3 -1
  74. package/nationalarchives/components/message/message.css +1 -1
  75. package/nationalarchives/components/message/message.css.map +1 -1
  76. package/nationalarchives/components/pagination/macro-options.json +6 -0
  77. package/nationalarchives/components/pagination/pagination.css +1 -1
  78. package/nationalarchives/components/pagination/pagination.css.map +1 -1
  79. package/nationalarchives/components/pagination/pagination.scss +5 -1
  80. package/nationalarchives/components/pagination/pagination.stories.js +417 -2
  81. package/nationalarchives/components/pagination/template.njk +10 -3
  82. package/nationalarchives/components/phase-banner/fixtures.json +5 -41
  83. package/nationalarchives/components/phase-banner/macro-options.json +6 -0
  84. package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
  85. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  86. package/nationalarchives/components/phase-banner/phase-banner.scss +1 -1
  87. package/nationalarchives/components/phase-banner/phase-banner.stories.js +4 -28
  88. package/nationalarchives/components/phase-banner/template.njk +3 -1
  89. package/nationalarchives/components/picture/picture.css +1 -1
  90. package/nationalarchives/components/picture/picture.css.map +1 -1
  91. package/nationalarchives/components/picture/picture.scss +5 -4
  92. package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
  93. package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
  94. package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +3 -0
  95. package/nationalarchives/components/skip-link/skip-link.css +1 -1
  96. package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
  97. package/nationalarchives/components/skip-link/skip-link.stories.js +4 -1
  98. package/nationalarchives/components/tabs/tabs.css +1 -1
  99. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  100. package/nationalarchives/components/tabs/tabs.js +1 -1
  101. package/nationalarchives/components/tabs/tabs.js.map +1 -1
  102. package/nationalarchives/components/tabs/tabs.mjs +0 -4
  103. package/nationalarchives/components/tabs/tabs.stories.js +6 -3
  104. package/nationalarchives/lib/cookies.mjs +165 -62
  105. package/nationalarchives/prototype-kit.css +23 -0
  106. package/nationalarchives/prototype-kit.css.map +1 -0
  107. package/nationalarchives/{_prototype-kit.scss → prototype-kit.scss} +3 -3
  108. package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +189 -74
  109. package/nationalarchives/stories/utilities/lists/lists.mdx +18 -0
  110. package/nationalarchives/stories/utilities/{typography → lists}/lists.stories.js +1 -1
  111. package/nationalarchives/stories/utilities/overrides/overrides.mdx +27 -20
  112. package/nationalarchives/stories/utilities/overrides/overrides.stories.js +19 -2
  113. package/nationalarchives/stories/utilities/tables/tables.mdx +8 -0
  114. package/nationalarchives/stories/utilities/tables/tables.stories.js +45 -0
  115. package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +59 -19
  116. package/nationalarchives/stories/utilities/typography/typography.mdx +3 -25
  117. package/nationalarchives/stories/utilities/typography/typography.stories.js +28 -2
  118. package/nationalarchives/templates/layouts/_generic.njk +1 -0
  119. package/nationalarchives/templates/layouts/_prototype-kit.njk +4 -1
  120. package/nationalarchives/tests/cookies.test.js +427 -0
  121. package/nationalarchives/tests/uuid.test.js +17 -0
  122. package/nationalarchives/tools/_colour.scss +15 -20
  123. package/nationalarchives/tools/_spacing.scss +91 -2
  124. package/nationalarchives/tools/_typography.scss +15 -8
  125. package/nationalarchives/utilities/_a11y.scss +2 -1
  126. package/nationalarchives/utilities/_colour.scss +100 -0
  127. package/nationalarchives/utilities/_global.scss +2 -98
  128. package/nationalarchives/utilities/_index.scss +2 -0
  129. package/nationalarchives/utilities/_lists.scss +5 -0
  130. package/nationalarchives/utilities/_overrides.scss +16 -36
  131. package/nationalarchives/utilities/_tables.scss +86 -0
  132. package/nationalarchives/utilities/_typography.scss +150 -71
  133. package/nationalarchives/variables/_colour.scss +10 -8
  134. package/nationalarchives/variables/_spacing.scss +14 -9
  135. package/nationalarchives/variables/_typography.scss +10 -7
  136. package/package.json +14 -14
  137. package/nationalarchives/assets/fonts/OpenSans-Medium.ttf +0 -0
  138. package/nationalarchives/assets/fonts/fa-regular-400.ttf +0 -0
  139. package/nationalarchives/assets/fonts/fa-regular-400.woff2 +0 -0
  140. package/nationalarchives/components/profile/_index.scss +0 -1
  141. package/nationalarchives/components/profile/fixtures.json +0 -4
  142. package/nationalarchives/components/profile/macro-options.json +0 -14
  143. package/nationalarchives/components/profile/macro.njk +0 -3
  144. package/nationalarchives/components/profile/profile.css +0 -1
  145. package/nationalarchives/components/profile/profile.css.map +0 -1
  146. package/nationalarchives/components/profile/profile.scss +0 -5
  147. package/nationalarchives/components/profile/profile.stories.js +0 -31
  148. package/nationalarchives/components/profile/template.njk +0 -15
  149. package/nationalarchives/lib/font-awesome/regular.css +0 -5
  150. package/nationalarchives/lib/font-awesome/regular.css.map +0 -1
  151. package/nationalarchives/lib/font-awesome/regular.scss +0 -28
  152. package/nationalarchives/stories/development/about.mdx +0 -122
  153. package/nationalarchives/stories/development/contributing.mdx +0 -32
  154. package/nationalarchives/stories/development/cookies.mdx +0 -82
  155. package/nationalarchives/stories/development/publishing.mdx +0 -15
  156. package/nationalarchives/stories/development/structure.mdx +0 -88
  157. package/nationalarchives/stories/development/using/compiled.mdx +0 -9
  158. package/nationalarchives/stories/development/using/hosted.mdx +0 -53
  159. package/nationalarchives/stories/development/using/npm.mdx +0 -59
@@ -2,10 +2,12 @@ import Pagination from "./template.njk";
2
2
  import macroOptions from "./macro-options.json";
3
3
 
4
4
  const argTypes = {
5
- landmarkLabel: { control: "text" },
6
5
  previous: { control: "object" },
7
6
  items: { control: "object" },
8
7
  next: { control: "object" },
8
+ currentItemText: { control: "text" },
9
+ spaced: { control: "boolean" },
10
+ landmarkLabel: { control: "text" },
9
11
  classes: { control: "text" },
10
12
  attributes: { control: "object" },
11
13
  };
@@ -21,12 +23,24 @@ export default {
21
23
  argTypes,
22
24
  };
23
25
 
24
- const Template = ({ previous, items, next, classes, attributes }) =>
26
+ const Template = ({
27
+ previous,
28
+ items,
29
+ next,
30
+ currentItemText,
31
+ spaced,
32
+ landmarkLabel,
33
+ classes,
34
+ attributes,
35
+ }) =>
25
36
  Pagination({
26
37
  params: {
27
38
  previous,
28
39
  items,
29
40
  next,
41
+ currentItemText,
42
+ spaced,
43
+ landmarkLabel,
30
44
  classes,
31
45
  attributes,
32
46
  },
@@ -71,3 +85,404 @@ Standard.args = {
71
85
  },
72
86
  classes: "tna-pagination--demo",
73
87
  };
88
+
89
+ export const First = Template.bind({});
90
+ First.parameters = {
91
+ chromatic: { disableSnapshot: true },
92
+ };
93
+ First.args = {
94
+ items: [
95
+ {
96
+ number: 1,
97
+ current: true,
98
+ href: "#",
99
+ },
100
+ {
101
+ number: 2,
102
+ href: "#",
103
+ },
104
+ {
105
+ ellipsis: true,
106
+ },
107
+ {
108
+ number: 42,
109
+ href: "#",
110
+ },
111
+ ],
112
+ next: {
113
+ href: "#",
114
+ },
115
+ classes: "tna-pagination--demo",
116
+ };
117
+
118
+ export const Second = Template.bind({});
119
+ Second.parameters = {
120
+ chromatic: { disableSnapshot: true },
121
+ };
122
+ Second.args = {
123
+ previous: {
124
+ href: "#",
125
+ },
126
+ items: [
127
+ {
128
+ number: 1,
129
+ href: "#",
130
+ },
131
+ {
132
+ number: 2,
133
+ current: true,
134
+ href: "#",
135
+ },
136
+ {
137
+ number: 3,
138
+ href: "#",
139
+ },
140
+ {
141
+ ellipsis: true,
142
+ },
143
+ {
144
+ number: 42,
145
+ href: "#",
146
+ },
147
+ ],
148
+ next: {
149
+ href: "#",
150
+ },
151
+ classes: "tna-pagination--demo",
152
+ };
153
+
154
+ export const Third = Template.bind({});
155
+ Third.parameters = {
156
+ chromatic: { disableSnapshot: true },
157
+ };
158
+ Third.args = {
159
+ previous: {
160
+ href: "#",
161
+ },
162
+ items: [
163
+ {
164
+ number: 1,
165
+ href: "#",
166
+ },
167
+ {
168
+ number: 2,
169
+ href: "#",
170
+ },
171
+ {
172
+ number: 3,
173
+ current: true,
174
+ href: "#",
175
+ },
176
+ {
177
+ number: 4,
178
+ href: "#",
179
+ },
180
+ {
181
+ ellipsis: true,
182
+ },
183
+ {
184
+ number: 42,
185
+ href: "#",
186
+ },
187
+ ],
188
+ next: {
189
+ href: "#",
190
+ },
191
+ classes: "tna-pagination--demo",
192
+ };
193
+
194
+ export const Forth = Template.bind({});
195
+ Forth.parameters = {
196
+ chromatic: { disableSnapshot: true },
197
+ };
198
+ Forth.args = {
199
+ previous: {
200
+ href: "#",
201
+ },
202
+ items: [
203
+ {
204
+ number: 1,
205
+ href: "#",
206
+ },
207
+ {
208
+ number: 2,
209
+ href: "#",
210
+ },
211
+ {
212
+ number: 3,
213
+ href: "#",
214
+ },
215
+ {
216
+ number: 4,
217
+ current: true,
218
+ href: "#",
219
+ },
220
+ {
221
+ number: 5,
222
+ href: "#",
223
+ },
224
+ {
225
+ ellipsis: true,
226
+ },
227
+ {
228
+ number: 42,
229
+ href: "#",
230
+ },
231
+ ],
232
+ next: {
233
+ href: "#",
234
+ },
235
+ classes: "tna-pagination--demo",
236
+ };
237
+
238
+ export const Fifth = Template.bind({});
239
+ Fifth.parameters = {
240
+ chromatic: { disableSnapshot: true },
241
+ };
242
+ Fifth.args = {
243
+ previous: {
244
+ href: "#",
245
+ },
246
+ items: [
247
+ {
248
+ number: 1,
249
+ href: "#",
250
+ },
251
+ {
252
+ ellipsis: true,
253
+ },
254
+ {
255
+ number: 4,
256
+ href: "#",
257
+ },
258
+ {
259
+ number: 5,
260
+ current: true,
261
+ href: "#",
262
+ },
263
+ {
264
+ number: 6,
265
+ href: "#",
266
+ },
267
+ {
268
+ ellipsis: true,
269
+ },
270
+ {
271
+ number: 42,
272
+ href: "#",
273
+ },
274
+ ],
275
+ next: {
276
+ href: "#",
277
+ },
278
+ classes: "tna-pagination--demo",
279
+ };
280
+
281
+ export const LastMinus4 = Template.bind({});
282
+ LastMinus4.parameters = {
283
+ chromatic: { disableSnapshot: true },
284
+ };
285
+ LastMinus4.args = {
286
+ previous: {
287
+ href: "#",
288
+ },
289
+ items: [
290
+ {
291
+ number: 1,
292
+ href: "#",
293
+ },
294
+ {
295
+ ellipsis: true,
296
+ },
297
+ {
298
+ number: 37,
299
+ href: "#",
300
+ },
301
+ {
302
+ number: 38,
303
+ current: true,
304
+ href: "#",
305
+ },
306
+ {
307
+ number: 39,
308
+ href: "#",
309
+ },
310
+ {
311
+ ellipsis: true,
312
+ },
313
+ {
314
+ number: 42,
315
+ href: "#",
316
+ },
317
+ ],
318
+ next: {
319
+ href: "#",
320
+ },
321
+ classes: "tna-pagination--demo",
322
+ };
323
+
324
+ export const LastMinus3 = Template.bind({});
325
+ LastMinus3.parameters = {
326
+ chromatic: { disableSnapshot: true },
327
+ };
328
+ LastMinus3.args = {
329
+ previous: {
330
+ href: "#",
331
+ },
332
+ items: [
333
+ {
334
+ number: 1,
335
+ href: "#",
336
+ },
337
+ {
338
+ ellipsis: true,
339
+ },
340
+ {
341
+ number: 38,
342
+ href: "#",
343
+ },
344
+ {
345
+ number: 39,
346
+ current: true,
347
+ href: "#",
348
+ },
349
+ {
350
+ number: 40,
351
+ href: "#",
352
+ },
353
+ {
354
+ number: 41,
355
+ href: "#",
356
+ },
357
+ {
358
+ number: 42,
359
+ href: "#",
360
+ },
361
+ ],
362
+ next: {
363
+ href: "#",
364
+ },
365
+ classes: "tna-pagination--demo",
366
+ };
367
+
368
+ export const LastMinus2 = Template.bind({});
369
+ LastMinus2.parameters = {
370
+ chromatic: { disableSnapshot: true },
371
+ };
372
+ LastMinus2.args = {
373
+ previous: {
374
+ href: "#",
375
+ },
376
+ items: [
377
+ {
378
+ number: 1,
379
+ href: "#",
380
+ },
381
+ {
382
+ ellipsis: true,
383
+ },
384
+ {
385
+ number: 39,
386
+ href: "#",
387
+ },
388
+ {
389
+ number: 40,
390
+ current: true,
391
+ href: "#",
392
+ },
393
+ {
394
+ number: 41,
395
+ href: "#",
396
+ },
397
+ {
398
+ number: 42,
399
+ href: "#",
400
+ },
401
+ ],
402
+ next: {
403
+ href: "#",
404
+ },
405
+ classes: "tna-pagination--demo",
406
+ };
407
+
408
+ export const LastMinus1 = Template.bind({});
409
+ LastMinus1.parameters = {
410
+ chromatic: { disableSnapshot: true },
411
+ };
412
+ LastMinus1.args = {
413
+ previous: {
414
+ href: "#",
415
+ },
416
+ items: [
417
+ {
418
+ number: 1,
419
+ href: "#",
420
+ },
421
+ {
422
+ ellipsis: true,
423
+ },
424
+ {
425
+ number: 40,
426
+ href: "#",
427
+ },
428
+ {
429
+ number: 41,
430
+ current: true,
431
+ href: "#",
432
+ },
433
+ {
434
+ number: 42,
435
+ href: "#",
436
+ },
437
+ ],
438
+ next: {
439
+ href: "#",
440
+ },
441
+ classes: "tna-pagination--demo",
442
+ };
443
+
444
+ export const Last = Template.bind({});
445
+ Last.parameters = {
446
+ chromatic: { disableSnapshot: true },
447
+ };
448
+ Last.args = {
449
+ previous: {
450
+ href: "#",
451
+ },
452
+ items: [
453
+ {
454
+ number: 1,
455
+ href: "#",
456
+ },
457
+ {
458
+ ellipsis: true,
459
+ },
460
+ {
461
+ number: 41,
462
+ href: "#",
463
+ },
464
+ {
465
+ number: 42,
466
+ current: true,
467
+ href: "#",
468
+ },
469
+ ],
470
+ classes: "tna-pagination--demo",
471
+ };
472
+
473
+ export const NoNumbers = Template.bind({});
474
+ NoNumbers.args = {
475
+ previous: {
476
+ href: "#",
477
+ text: "TS 11/45/166",
478
+ title: "From the catalogue: TS 11/45/166",
479
+ },
480
+ currentItemText: "From the catalogue: TS 11/45/167",
481
+ next: {
482
+ href: "#",
483
+ text: "TS 11/45/168",
484
+ title: "From the catalogue: TS 11/45/168",
485
+ },
486
+ spaced: true,
487
+ classes: "tna-pagination--demo",
488
+ };
@@ -1,8 +1,11 @@
1
1
  {%- set containerClasses = [params.classes] if params.classes else [] -%}
2
- <nav class="tna-pagination {{ containerClasses | join(' ') }}" role="navigation" aria-label="{{ params.landmarkLabel if params.landmarkLabel else 'Results' }}" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
2
+ {%- if params.spaced -%}
3
+ {%- set containerClasses = containerClasses.concat('tna-pagination--spaced') -%}
4
+ {%- endif -%}
5
+ <nav class="tna-pagination {{ containerClasses | join(' ') }}" role="navigation" aria-label="{{ params.landmarkLabel if params.landmarkLabel else 'Pagination' }}" {%- for attribute, value in params.attributes %} {{ attribute }}="{{ value }}"{% endfor %}>
3
6
  {% if params.previous -%}
4
7
  <div class="tna-pagination__prev">
5
- <a class="tna-button tna-pagination__link" href="{{ params.previous.href }}" role="button" rel="prev">
8
+ <a class="tna-button tna-pagination__link" href="{{ params.previous.href }}" role="button" rel="prev" {%- if params.previous.title %} title="{{ params.previous.title }}"{% endif %}>
6
9
  <svg class="tna-pagination__icon tna-pagination__icon--prev" xmlns="http://www.w3.org/2000/svg" height="13" width="15" aria-hidden="true" focusable="false" viewBox="0 0 15 13">
7
10
  <path d="m6.5938-0.0078125-6.7266 6.7266 6.7441 6.4062 1.377-1.449-4.1856-3.9768h12.896v-2h-12.984l4.2931-4.293-1.414-1.414z"></path>
8
11
  </svg>
@@ -12,6 +15,7 @@
12
15
  </a>
13
16
  </div>
14
17
  {% endif -%}
18
+ {% if params.items -%}
15
19
  <ul class="tna-pagination__list">
16
20
  {% for item in params.items -%}
17
21
  {% if item.ellipsis -%}
@@ -25,9 +29,12 @@
25
29
  {% endif -%}
26
30
  {% endfor -%}
27
31
  </ul>
32
+ {% elif params.currentItemText -%}
33
+ <p class="tna-pagination__current-item-text">{{ params.currentItemText }}</p>
34
+ {% endif -%}
28
35
  {% if params.next -%}
29
36
  <div class="tna-pagination__next">
30
- <a class="tna-button tna-pagination__link" href="{{ params.next.href }}" role="button" rel="next">
37
+ <a class="tna-button tna-pagination__link" href="{{ params.next.href }}" role="button" rel="next" {%- if params.next.title %} title="{{ params.next.title }}"{% endif %}>
31
38
  <span class="tna-pagination__link-title">{{ params.next.text if params.next.text else 'Next' }}</span>
32
39
  <svg class="tna-pagination__icon tna-pagination__icon--next" xmlns="http://www.w3.org/2000/svg" height="13" width="15" aria-hidden="true" focusable="false" viewBox="0 0 15 13">
33
40
  <path d="m8.107-0.0078125-1.4136 1.414 4.2926 4.293h-12.986v2h12.896l-4.1855 3.9766 1.377 1.4492 6.7441-6.4062-6.7246-6.7266z"></path>
@@ -2,39 +2,12 @@
2
2
  "component": "phase-banner",
3
3
  "fixtures": [
4
4
  {
5
- "name": "discovery",
6
- "options": {
7
- "phase": "discovery",
8
- "message": "This is a new service – <a href='#'>give us your feedback</a> to help improve it."
9
- },
10
- "html": "<div class=\"tna-phase-banner tna-phase-banner--discovery\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Discovery</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">This is a new service – <a href='#'>give us your feedback</a> to help improve it.</p></div></div></div>",
11
- "hidden": false
12
- },
13
- {
14
- "name": "alpha",
15
- "options": {
16
- "phase": "alpha",
17
- "message": "This is a new service – <a href='#'>give us your feedback</a> to help improve it."
18
- },
19
- "html": "<div class=\"tna-phase-banner tna-phase-banner--alpha\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Alpha</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">This is a new service – <a href='#'>give us your feedback</a> to help improve it.</p></div></div></div>",
20
- "hidden": false
21
- },
22
- {
23
- "name": "beta",
5
+ "name": "simple",
24
6
  "options": {
25
7
  "phase": "beta",
26
8
  "message": "This is a new service – <a href='#'>give us your feedback</a> to help improve it."
27
9
  },
28
- "html": "<div class=\"tna-phase-banner tna-phase-banner--beta\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Beta</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">This is a new service – <a href='#'>give us your feedback</a> to help improve it.</p></div></div></div>",
29
- "hidden": false
30
- },
31
- {
32
- "name": "live",
33
- "options": {
34
- "phase": "live",
35
- "message": "This is a new service – <a href='#'>give us your feedback</a> to help improve it."
36
- },
37
- "html": "<div class=\"tna-phase-banner tna-phase-banner--live\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Live</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">This is a new service – <a href='#'>give us your feedback</a> to help improve it.</p></div></div></div>",
10
+ "html": "<div class=\"tna-phase-banner \"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Beta</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">This is a new service – <a href='#'>give us your feedback</a> to help improve it.</p></div></div></div>",
38
11
  "hidden": false
39
12
  },
40
13
  {
@@ -43,16 +16,7 @@
43
16
  "phase": "BETA",
44
17
  "message": "Message"
45
18
  },
46
- "html": "<div class=\"tna-phase-banner tna-phase-banner--beta\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Beta</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">Message</p></div></div></div>",
47
- "hidden": false
48
- },
49
- {
50
- "name": "unknown phase",
51
- "options": {
52
- "phase": "unknown",
53
- "message": "Message"
54
- },
55
- "html": "<div class=\"tna-phase-banner tna-phase-banner--unknown\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Unknown</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">Message</p></div></div></div>",
19
+ "html": "<div class=\"tna-phase-banner \"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Beta</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">Message</p></div></div></div>",
56
20
  "hidden": false
57
21
  },
58
22
  {
@@ -62,7 +26,7 @@
62
26
  "message": "Message",
63
27
  "classes": "tna-phase-banner--fixture"
64
28
  },
65
- "html": "<div class=\"tna-phase-banner tna-phase-banner--fixture tna-phase-banner--live\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Live</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">Message</p></div></div></div>",
29
+ "html": "<div class=\"tna-phase-banner tna-phase-banner--fixture\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Live</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">Message</p></div></div></div>",
66
30
  "hidden": false
67
31
  },
68
32
  {
@@ -74,7 +38,7 @@
74
38
  "data-fixturetest": "pass"
75
39
  }
76
40
  },
77
- "html": "<div class=\"tna-phase-banner tna-phase-banner--live\" data-fixturetest=\"pass\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Live</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">Message</p></div></div></div>",
41
+ "html": "<div class=\"tna-phase-banner \" data-fixturetest=\"pass\"><div class=\"tna-container\"><div class=\"tna-column tna-column--full-tiny\"><span class=\"tna-phase-banner__phase\">Live</span></div><div class=\"tna-column tna-column--flex-1 tna-column--full-tiny\"><p class=\"tna-phase-banner__message\">Message</p></div></div></div>",
78
42
  "hidden": false
79
43
  }
80
44
  ]
@@ -11,6 +11,12 @@
11
11
  "required": true,
12
12
  "description": ""
13
13
  },
14
+ {
15
+ "name": "accent",
16
+ "type": "boolean",
17
+ "required": false,
18
+ "description": ""
19
+ },
14
20
  {
15
21
  "name": "classes",
16
22
  "type": "string",