@nationalarchives/frontend 0.1.52 → 0.1.53

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 (137) hide show
  1. package/nationalarchives/all.css +1 -1
  2. package/nationalarchives/all.css.map +1 -1
  3. package/nationalarchives/all.js +1 -1
  4. package/nationalarchives/all.js.map +1 -1
  5. package/nationalarchives/all.mjs +7 -0
  6. package/nationalarchives/analytics.js +1 -1
  7. package/nationalarchives/analytics.js.map +1 -1
  8. package/nationalarchives/analytics.mjs +4 -4
  9. package/nationalarchives/assets/fonts/OpenSans-SemiBold.ttf +0 -0
  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.scss +9 -8
  13. package/nationalarchives/components/button/button-group.stories.js +0 -8
  14. package/nationalarchives/components/button/button.css +1 -1
  15. package/nationalarchives/components/button/button.css.map +1 -1
  16. package/nationalarchives/components/button/button.scss +12 -6
  17. package/nationalarchives/components/button/fixtures.json +76 -0
  18. package/nationalarchives/components/card/card.css +1 -1
  19. package/nationalarchives/components/card/card.css.map +1 -1
  20. package/nationalarchives/components/card/card.scss +1 -1
  21. package/nationalarchives/components/card/macro-options.json +1 -1
  22. package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
  23. package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
  24. package/nationalarchives/components/checkboxes/checkboxes.scss +3 -2
  25. package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
  26. package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
  27. package/nationalarchives/components/compound-filters/compound-filters.scss +10 -6
  28. package/nationalarchives/components/cookie-banner/README.md +6 -2
  29. package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
  30. package/nationalarchives/components/cookie-banner/cookie-banner.js +1 -1
  31. package/nationalarchives/components/cookie-banner/cookie-banner.js.map +1 -1
  32. package/nationalarchives/components/cookie-banner/cookie-banner.mjs +2 -1
  33. package/nationalarchives/components/cookie-banner/cookie-banner.stories.js +7 -8
  34. package/nationalarchives/components/date-input/date-input.css +1 -1
  35. package/nationalarchives/components/date-input/date-input.css.map +1 -1
  36. package/nationalarchives/components/date-search/date-search.css +1 -1
  37. package/nationalarchives/components/date-search/date-search.css.map +1 -1
  38. package/nationalarchives/components/date-search/date-search.scss +2 -0
  39. package/nationalarchives/components/error-summary/error-summary.css +1 -1
  40. package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
  41. package/nationalarchives/components/featured-records/featured-records.css +1 -1
  42. package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
  43. package/nationalarchives/components/featured-records/featured-records.scss +5 -3
  44. package/nationalarchives/components/footer/analytics.js +8 -0
  45. package/nationalarchives/components/footer/fixtures.json +2 -2
  46. package/nationalarchives/components/footer/footer.css +1 -1
  47. package/nationalarchives/components/footer/footer.css.map +1 -1
  48. package/nationalarchives/components/footer/footer.js +2 -0
  49. package/nationalarchives/components/footer/footer.js.map +1 -0
  50. package/nationalarchives/components/footer/footer.mjs +87 -0
  51. package/nationalarchives/components/footer/footer.scss +28 -8
  52. package/nationalarchives/components/footer/footer.stories.js +62 -3
  53. package/nationalarchives/components/footer/template.njk +168 -120
  54. package/nationalarchives/components/gallery/gallery.css +1 -1
  55. package/nationalarchives/components/gallery/gallery.css.map +1 -1
  56. package/nationalarchives/components/gallery/gallery.scss +2 -1
  57. package/nationalarchives/components/global-header/global-header.css +1 -1
  58. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  59. package/nationalarchives/components/global-header/global-header.scss +13 -10
  60. package/nationalarchives/components/grid/grid.css +1 -1
  61. package/nationalarchives/components/grid/grid.css.map +1 -1
  62. package/nationalarchives/components/grid/grid.scss +3 -3
  63. package/nationalarchives/components/header/header.css +1 -1
  64. package/nationalarchives/components/header/header.css.map +1 -1
  65. package/nationalarchives/components/header/header.scss +17 -15
  66. package/nationalarchives/components/hero/fixtures.json +106 -18
  67. package/nationalarchives/components/hero/hero.css +1 -1
  68. package/nationalarchives/components/hero/hero.css.map +1 -1
  69. package/nationalarchives/components/hero/hero.scss +78 -19
  70. package/nationalarchives/components/hero/hero.stories.js +60 -32
  71. package/nationalarchives/components/hero/macro-options.json +34 -3
  72. package/nationalarchives/components/hero/template.njk +27 -6
  73. package/nationalarchives/components/index-grid/index-grid.css +1 -1
  74. package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
  75. package/nationalarchives/components/index-grid/macro-options.json +1 -1
  76. package/nationalarchives/components/pagination/pagination.css +1 -1
  77. package/nationalarchives/components/pagination/pagination.css.map +1 -1
  78. package/nationalarchives/components/pagination/pagination.scss +2 -2
  79. package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
  80. package/nationalarchives/components/picture/picture.css +1 -1
  81. package/nationalarchives/components/picture/picture.css.map +1 -1
  82. package/nationalarchives/components/picture/picture.scss +5 -1
  83. package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
  84. package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
  85. package/nationalarchives/components/quick-filters/quick-filters.scss +4 -2
  86. package/nationalarchives/components/radios/radios.css +1 -1
  87. package/nationalarchives/components/radios/radios.css.map +1 -1
  88. package/nationalarchives/components/radios/radios.scss +3 -2
  89. package/nationalarchives/components/search-field/search-field.css +1 -1
  90. package/nationalarchives/components/search-field/search-field.css.map +1 -1
  91. package/nationalarchives/components/search-filters/search-filters.css +1 -1
  92. package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
  93. package/nationalarchives/components/search-filters/search-filters.scss +7 -6
  94. package/nationalarchives/components/select/select.css +1 -1
  95. package/nationalarchives/components/select/select.css.map +1 -1
  96. package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
  97. package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
  98. package/nationalarchives/components/sensitive-image/sensitive-image.scss +7 -6
  99. package/nationalarchives/components/skip-link/skip-link.css +1 -1
  100. package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
  101. package/nationalarchives/components/skip-link/skip-link.scss +4 -4
  102. package/nationalarchives/components/tabs/tabs.css +1 -1
  103. package/nationalarchives/components/tabs/tabs.css.map +1 -1
  104. package/nationalarchives/components/tabs/tabs.scss +8 -6
  105. package/nationalarchives/components/text-input/text-input.css +1 -1
  106. package/nationalarchives/components/text-input/text-input.css.map +1 -1
  107. package/nationalarchives/components/textarea/textarea.css +1 -1
  108. package/nationalarchives/components/textarea/textarea.css.map +1 -1
  109. package/nationalarchives/components/textarea/textarea.scss +7 -4
  110. package/nationalarchives/components/warning/warning.css +1 -1
  111. package/nationalarchives/components/warning/warning.css.map +1 -1
  112. package/nationalarchives/components/warning/warning.scss +7 -5
  113. package/nationalarchives/global-header-package.css +1 -1
  114. package/nationalarchives/global-header-package.css.map +1 -1
  115. package/nationalarchives/lib/cookies.mjs +21 -4
  116. package/nationalarchives/lib/functions.css +1 -0
  117. package/nationalarchives/lib/functions.css.map +1 -0
  118. package/nationalarchives/lib/functions.scss +16 -0
  119. package/nationalarchives/prototype-kit.css +1 -1
  120. package/nationalarchives/prototype-kit.css.map +1 -1
  121. package/nationalarchives/stories/utilities/colour-schemes/colour-combinations.stories.js +6 -2
  122. package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +2 -1
  123. package/nationalarchives/templates/fixtures.json +4 -4
  124. package/nationalarchives/tools/_colour.scss +3 -3
  125. package/nationalarchives/tools/_typography.scss +8 -9
  126. package/nationalarchives/utilities/_a11y.scss +4 -4
  127. package/nationalarchives/utilities/_debug.scss +2 -2
  128. package/nationalarchives/utilities/_global.scss +8 -0
  129. package/nationalarchives/utilities/_imports.scss +57 -0
  130. package/nationalarchives/utilities/_index.scss +1 -0
  131. package/nationalarchives/utilities/_lists.scss +36 -19
  132. package/nationalarchives/utilities/_tables.scss +8 -8
  133. package/nationalarchives/utilities/_typography.scss +6 -42
  134. package/nationalarchives/variables/_colour.scss +7 -2
  135. package/nationalarchives/variables/_typography.scss +55 -4
  136. package/package.json +21 -20
  137. package/nationalarchives/assets/fonts/OpenSans-Italic.ttf +0 -0
@@ -1,4 +1,12 @@
1
1
  .tna-template {
2
+ /*
3
+ * ------------------------------------------
4
+ * A minimum page width of 320px is needed in
5
+ * order to meet the WCAG AA success criteria
6
+ * for 1.4.10 (Reflow)
7
+ * https://www.w3.org/WAI/WCAG21/Understanding/reflow.html
8
+ * ------------------------------------------
9
+ */
2
10
  min-width: 320px;
3
11
  width: 100%;
4
12
  height: 100%;
@@ -0,0 +1,57 @@
1
+ @use "../variables/assets";
2
+ @use "../variables/typography";
3
+ @use "../lib/functions";
4
+
5
+ @if typography.$use-local-fonts {
6
+ @font-face {
7
+ font-family: typography.$main-font-family-name;
8
+ src: url("#{assets.$tna-font-path}/#{typography.$main-font-file}");
9
+ font-weight: typography.$main-font-weight;
10
+ font-style: normal;
11
+ font-display: swap;
12
+ }
13
+
14
+ @font-face {
15
+ font-family: typography.$main-font-family-name;
16
+ src: url("#{assets.$tna-font-path}/#{typography.$main-font-file-medium}");
17
+ font-weight: typography.$main-font-weight-medium;
18
+ font-style: normal;
19
+ font-display: swap;
20
+ }
21
+
22
+ @font-face {
23
+ font-family: typography.$main-font-family-name;
24
+ src: url("#{assets.$tna-font-path}/#{typography.$main-font-file-bold}");
25
+ font-weight: typography.$main-font-weight-bold;
26
+ font-style: normal;
27
+ font-display: swap;
28
+ }
29
+
30
+ @font-face {
31
+ font-family: typography.$detail-font-family-name;
32
+ src: url("#{assets.$tna-font-path}/#{typography.$detail-font-file}");
33
+ font-weight: typography.$detail-font-weight;
34
+ font-style: normal;
35
+ font-display: swap;
36
+ }
37
+
38
+ @font-face {
39
+ font-family: typography.$detail-font-family-name;
40
+ src: url("#{assets.$tna-font-path}/#{typography.$detail-font-file-bold}");
41
+ font-weight: typography.$detail-font-weight-bold;
42
+ font-style: normal;
43
+ font-display: swap;
44
+ }
45
+ } @else {
46
+ $main-font-family-name: functions.str-replace(
47
+ typography.$main-font-family-name,
48
+ " ",
49
+ "+"
50
+ );
51
+ $detail-font-family-name: functions.str-replace(
52
+ typography.$detail-font-family-name,
53
+ " ",
54
+ "+"
55
+ );
56
+ @import url("https://fonts.googleapis.com/css2?family=#{$main-font-family-name}:wght@#{typography.$main-font-weight}..#{typography.$main-font-weight-bold}&family=#{$detail-font-family-name}:wght@#{typography.$detail-font-weight}..#{typography.$detail-font-weight-bold}&display=swap"); /* stylelint-disable-line */
57
+ }
@@ -5,6 +5,7 @@
5
5
  @use "debug";
6
6
  @use "forms";
7
7
  @use "global";
8
+ @use "imports";
8
9
  @use "lists";
9
10
  @use "overrides";
10
11
  @use "reset";
@@ -4,28 +4,45 @@
4
4
  @use "../tools/typography";
5
5
 
6
6
  .tna-ul,
7
- .tna-ol {
8
- margin: spacing.space(1) 0 0;
9
- padding: 0 0 0 spacing.space(2);
7
+ .tna-ul ul {
8
+ list-style-type: disc;
9
+ }
10
10
 
11
- &:first-child {
11
+ .tna-ul,
12
+ .tna-ol {
13
+ ul,
14
+ ol {
12
15
  margin-top: 0;
13
16
  }
14
17
 
15
- li::marker {
16
- @include colour.colour-font("accent-background");
17
- font-weight: 700;
18
- }
18
+ &,
19
+ & ul,
20
+ & ol {
21
+ margin: spacing.space(1) 0 0;
22
+ padding: 0 0 0 spacing.space(2);
19
23
 
20
- &--plain {
21
- padding-left: 0;
24
+ &--plain {
25
+ padding-left: 0;
22
26
 
23
- list-style: none;
24
- }
27
+ &,
28
+ & ul,
29
+ & ol {
30
+ list-style: none;
31
+ }
32
+ }
25
33
 
26
- .tna-ul,
27
- .tna-ol {
28
- margin-top: 0;
34
+ &:first-child {
35
+ margin-top: 0;
36
+ }
37
+
38
+ li::marker {
39
+ @include colour.colour-font("accent-background");
40
+ font-weight: 700;
41
+
42
+ .tna-background-accent & {
43
+ @include colour.colour-font("font-dark");
44
+ }
45
+ }
29
46
  }
30
47
  }
31
48
 
@@ -64,9 +81,9 @@
64
81
  }
65
82
 
66
83
  dd {
67
- background: transparent !important;
68
-
69
84
  margin-left: 0;
85
+
86
+ background: transparent !important;
70
87
  }
71
88
  }
72
89
  }
@@ -86,10 +103,10 @@
86
103
  margin: 0;
87
104
  padding: spacing.space(0.5) spacing.space(1);
88
105
 
89
- position: relative;
90
-
91
106
  box-sizing: border-box;
92
107
 
108
+ position: relative;
109
+
93
110
  word-wrap: break-word;
94
111
  }
95
112
 
@@ -8,12 +8,12 @@
8
8
 
9
9
  .tna-table {
10
10
  width: 100%;
11
- @include spacing.space-above;
12
-
13
- border-collapse: collapse;
14
11
 
15
12
  text-align: left;
16
13
 
14
+ border-collapse: collapse;
15
+ @include spacing.space-above;
16
+
17
17
  &:first-child {
18
18
  margin-top: 0;
19
19
  }
@@ -85,18 +85,18 @@
85
85
 
86
86
  .tna-table-wrapper {
87
87
  width: 100%;
88
- @include spacing.space-above;
89
- padding-left: grid.gutter-width();
90
88
  padding-right: grid.gutter-width();
89
+ padding-left: grid.gutter-width();
90
+
91
+ overflow: auto;
91
92
 
92
93
  position: relative;
93
94
  left: -#{grid.gutter-width()};
94
-
95
- overflow: auto;
95
+ @include spacing.space-above;
96
96
 
97
97
  @include media.on-tiny {
98
- padding-left: grid.gutter-width-tiny();
99
98
  padding-right: grid.gutter-width-tiny();
99
+ padding-left: grid.gutter-width-tiny();
100
100
 
101
101
  left: -#{grid.gutter-width-tiny()};
102
102
  }
@@ -1,57 +1,20 @@
1
1
  @use "sass:math";
2
2
  @use "sass:selector";
3
- @use "../variables/assets";
4
3
  @use "../variables/typography" as typographyVars;
5
4
  @use "../tools/colour";
6
5
  @use "../tools/media";
7
6
  @use "../tools/spacing";
8
7
  @use "../tools/typography";
9
8
 
10
- @if typographyVars.$use-local-fonts {
11
- @font-face {
12
- font-family: "Open Sans";
13
- src: url("#{assets.$tna-font-path}/OpenSans-Regular.ttf");
14
- font-weight: typographyVars.$main-font-weight;
15
- font-style: normal;
16
- font-display: swap;
17
- }
18
-
19
- @font-face {
20
- font-family: "Open Sans";
21
- src: url("#{assets.$tna-font-path}/OpenSans-Bold.ttf");
22
- font-weight: typographyVars.$main-font-weight-bold;
23
- font-style: normal;
24
- font-display: swap;
25
- }
26
-
27
- @font-face {
28
- font-family: "Roboto Mono";
29
- src: url("#{assets.$tna-font-path}/RobotoMono-Regular.ttf");
30
- font-weight: typographyVars.$detail-font-weight;
31
- font-style: normal;
32
- font-display: swap;
33
- }
34
-
35
- @font-face {
36
- font-family: "Roboto Mono";
37
- src: url("#{assets.$tna-font-path}/RobotoMono-Medium.ttf");
38
- font-weight: typographyVars.$detail-font-weight-bold;
39
- font-style: normal;
40
- font-display: swap;
41
- }
42
- } @else {
43
- @import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300..800&family=Roboto+Mono:wght@100..700&display=swap"); /* stylelint-disable-line */
44
- }
45
-
46
9
  .tna-template {
47
10
  @include colour.colour-font("font-base");
48
11
  @include typography.main-font;
49
- -moz-osx-font-smoothing: grayscale;
50
- -webkit-font-smoothing: antialiased;
12
+ direction: ltr;
51
13
  text-rendering: optimizeLegibility;
52
14
  -webkit-text-size-adjust: none;
53
15
  text-size-adjust: none;
54
- direction: ltr;
16
+ -moz-osx-font-smoothing: grayscale;
17
+ -webkit-font-smoothing: antialiased;
55
18
  }
56
19
 
57
20
  .tna-template__body {
@@ -121,6 +84,7 @@ small {
121
84
  @include colour.colour-font("font-base");
122
85
  @include typography.detail-font-small;
123
86
  line-height: 1;
87
+ text-align: center;
124
88
  }
125
89
 
126
90
  %chip-plain {
@@ -227,13 +191,13 @@ small {
227
191
  display: inline-block;
228
192
 
229
193
  &::after {
194
+ content: "\203A";
195
+
230
196
  padding-left: spacing.space(0.5);
231
197
 
232
198
  display: inline-block;
233
199
 
234
200
  font-weight: 700;
235
-
236
- content: "\203A";
237
201
  }
238
202
 
239
203
  &:hover {
@@ -1,3 +1,4 @@
1
+ @use "sass:color";
1
2
  @use "sass:map";
2
3
 
3
4
  $colour-palette-brand: (
@@ -27,9 +28,11 @@ $colour-palette-brand: (
27
28
 
28
29
  @function hex-to-rgb($hex, $opacity: 1) {
29
30
  @if $opacity == 1 {
30
- @return rgb(red($hex) green($hex) blue($hex));
31
+ @return rgb(color.red($hex) color.green($hex) color.blue($hex));
31
32
  } @else {
32
- @return rgb(red($hex) green($hex) blue($hex) / #{$opacity});
33
+ @return rgb(
34
+ color.red($hex) color.green($hex) color.blue($hex) / #{$opacity}
35
+ );
33
36
  }
34
37
  }
35
38
 
@@ -136,6 +139,7 @@ $colour-palette-high-contrast: map.merge(
136
139
  $colour-palette-default,
137
140
  (
138
141
  "background": brand-colour("white"),
142
+ "background-tint": #f4f4f4,
139
143
  "font-base": brand-colour("black"),
140
144
  "font-light": brand-colour("black"),
141
145
  "icon-light": brand-colour("black", 0.75),
@@ -148,6 +152,7 @@ $colour-palette-high-contrast: map.merge(
148
152
  "contrast-font-base": brand-colour("black"),
149
153
  "contrast-font-dark": brand-colour("black"),
150
154
  "contrast-font-light": brand-colour("black"),
155
+ "contrast-icon-light": brand-colour("black", 0.45),
151
156
  "contrast-link": #34d,
152
157
  "contrast-link-visited": #848,
153
158
  "contrast-keyline": brand-colour("black"),
@@ -1,5 +1,24 @@
1
+ /*
2
+ * ------------------------------------------
3
+ * The typefaces, sizes and spacings that are
4
+ * defined in this file have been selected to
5
+ * ensure 100% match with the latest National
6
+ * Archives brand guidelines - avoid changing
7
+ * or overwriting any of these values without
8
+ * signing off with the Digital Services team
9
+ * first
10
+ * ------------------------------------------
11
+ */
12
+
1
13
  $relative-1rem-px: 16; // 16px = 1rem
2
14
 
15
+ /*
16
+ * ------------------------------------------
17
+ * When true, use the included font files for
18
+ * Open Sans and Roboto Mono, rather than the
19
+ * versions hosted by Google Fonts
20
+ * ------------------------------------------
21
+ */
3
22
  $use-local-fonts: false !default;
4
23
 
5
24
  $body-font-size-px: 18 !default;
@@ -8,18 +27,50 @@ $body-line-height: 1.75 !default;
8
27
 
9
28
  $interactive-text-decoration-thickness: 3.5px !default;
10
29
 
11
- $main-font: "Open Sans" !default;
12
- $main-font-family: $main-font, sans-serif !default;
30
+ $main-font-family-name: "Open Sans" !default;
31
+ $main-font-family:
32
+ #{$main-font-family-name},
33
+ sans-serif;
13
34
  $main-font-weight: 400 !default;
14
35
  $main-font-weight-medium: 600 !default;
15
36
  $main-font-weight-bold: 700 !default;
37
+ $main-font-file: "OpenSans-Regular.ttf" !default;
38
+ $main-font-file-medium: "OpenSans-SemiBold.ttf" !default;
39
+ $main-font-file-bold: "OpenSans-Bold.ttf" !default;
16
40
 
17
- $heading-font-family: supria-sans-condensed, "Arial Narrow", sans-serif !default;
41
+ /*
42
+ * ------------------------------------------
43
+ * To use Supria Sans Condensed (which is the
44
+ * approved heading typeface for The National
45
+ * Archives), you need to obtain a licence to
46
+ * properly embed the CSS files with the font
47
+ * definitions in your service - check with a
48
+ * member of the Digital Services team on how
49
+ * to get a licence
50
+ * ------------------------------------------
51
+ */
52
+ $heading-font-family-name: "supria-sans-condensed" !default;
53
+ $heading-font-family:
54
+ #{$heading-font-family-name},
55
+ "Arial Narrow",
56
+ sans-serif;
18
57
  $heading-font-weight: 500 !default;
19
58
 
20
- $detail-font-family: "Roboto Mono", monospace !default;
59
+ /*
60
+ * ------------------------------------------
61
+ * The detail font should be a monospace font
62
+ * and is used for chips, supertitles as well
63
+ * as the date search component
64
+ * ------------------------------------------
65
+ */
66
+ $detail-font-family-name: "Roboto Mono" !default;
67
+ $detail-font-family:
68
+ #{$detail-font-family-name},
69
+ monospace;
21
70
  $detail-font-weight: 400 !default;
22
71
  $detail-font-weight-bold: 500 !default;
72
+ $detail-font-file: "RobotoMono-Regular.ttf" !default;
73
+ $detail-font-file-bold: "RobotoMono-Medium.ttf" !default;
23
74
 
24
75
  $heading-xl-font-size-default: 64 !default;
25
76
  $heading-xl-font-size-medium: 48 !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/frontend",
3
- "version": "0.1.52",
3
+ "version": "0.1.53",
4
4
  "description": "The National Archives frontend styles",
5
5
  "scripts": {
6
6
  "start": "storybook dev -p 6006",
@@ -44,42 +44,43 @@
44
44
  "sass": "nationalarchives/all.scss",
45
45
  "homepage": "https://github.com/nationalarchives/tna-frontend#readme",
46
46
  "devDependencies": {
47
- "@babel/core": "^7.23.2",
48
- "@babel/preset-env": "^7.23.2",
47
+ "@babel/core": "^7.24.5",
48
+ "@babel/preset-env": "^7.24.5",
49
49
  "@mdx-js/react": "^3.0.0",
50
- "@storybook/addon-a11y": "^8.0.5",
51
- "@storybook/addon-docs": "^8.0.5",
52
- "@storybook/addon-essentials": "^8.0.5",
53
- "@storybook/addon-interactions": "^8.0.5",
54
- "@storybook/addon-links": "^8.0.5",
55
- "@storybook/addon-mdx-gfm": "^8.0.5",
56
- "@storybook/html": "^8.0.5",
57
- "@storybook/html-webpack5": "^8.0.5",
58
- "@storybook/test": "^8.0.5",
50
+ "@storybook/addon-a11y": "^8.0.10",
51
+ "@storybook/addon-docs": "^8.0.10",
52
+ "@storybook/addon-essentials": "^8.0.10",
53
+ "@storybook/addon-interactions": "^8.0.10",
54
+ "@storybook/addon-links": "^8.0.10",
55
+ "@storybook/addon-mdx-gfm": "^8.0.10",
56
+ "@storybook/html": "^8.0.10",
57
+ "@storybook/html-webpack5": "^8.0.10",
58
+ "@storybook/test": "^8.0.10",
59
59
  "@storybook/test-runner": "^0.17.0",
60
60
  "axe-playwright": "^2.0.1",
61
61
  "babel-jest": "^29.7.0",
62
62
  "babel-loader": "^9.0.1",
63
- "chromatic": "^10.1.0",
63
+ "chromatic": "^11.3.1",
64
64
  "copy-webpack-plugin": "^12.0.2",
65
- "css-loader": "^6.7.1",
65
+ "css-loader": "^7.1.1",
66
66
  "diff": "^5.1.0",
67
67
  "eslint": "^8.52.0",
68
68
  "eslint-plugin-storybook": "^0.8.0",
69
69
  "glob": "^10.3.10",
70
- "html-validate": "^8.7.3",
70
+ "html-validate": "^8.18.2",
71
71
  "jest-environment-jsdom": "^29.7.0",
72
72
  "mdx-mermaid": "^2.0.0",
73
73
  "node-self": "^1.0.2",
74
74
  "nunjucks": "^3.2.3",
75
75
  "prettier": "^3.0.1",
76
- "sass": "^1.69.4",
77
- "sass-loader": "^14.1.0",
76
+ "sass": "^1.77.0",
77
+ "sass-loader": "^14.2.1",
78
78
  "simple-nunjucks-loader": "^3.2.0",
79
- "storybook": "^8.0.5",
80
- "style-loader": "^3.3.1",
81
- "stylelint": "^16.0.2",
79
+ "storybook": "^8.0.10",
80
+ "style-loader": "^4.0.0",
81
+ "stylelint": "^16.5.0",
82
82
  "stylelint-config-standard-scss": "^13.0.0",
83
+ "stylelint-order": "^6.0.4",
83
84
  "stylelint-selector-bem-pattern": "^4.0.0",
84
85
  "webpack": "^5.89.0",
85
86
  "webpack-cli": "^5.1.4"