@nationalarchives/frontend 0.1.9-prerelease → 0.1.10-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.
- package/README.md +2 -2
- package/nationalarchives/_features.scss +1 -0
- package/nationalarchives/all.css +1 -1
- package/nationalarchives/all.css.map +1 -1
- package/nationalarchives/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/all.mjs +37 -2
- package/nationalarchives/assets/images/footer/facebook.svg +11 -0
- package/nationalarchives/assets/images/footer/flickr.svg +11 -0
- package/nationalarchives/assets/images/footer/instagram.svg +17 -0
- package/nationalarchives/assets/images/footer/rss.svg +13 -0
- package/nationalarchives/assets/images/footer/twitter.svg +14 -0
- package/nationalarchives/assets/images/footer/youtube.svg +12 -0
- package/nationalarchives/components/_all.scss +3 -0
- package/nationalarchives/components/breadcrumbs/_index.scss +2 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.stories.js +1 -2
- package/nationalarchives/components/button/button.stories.js +1 -2
- package/nationalarchives/components/card/card.stories.js +1 -2
- package/nationalarchives/components/filters/filters.stories.js +1 -2
- package/nationalarchives/components/footer/_index.scss +46 -3
- package/nationalarchives/components/footer/fixtures.json +1 -1
- package/nationalarchives/components/footer/footer.stories.js +21 -24
- package/nationalarchives/components/footer/macro-options.json +12 -6
- package/nationalarchives/components/footer/template.njk +23 -13
- package/nationalarchives/components/grid/grid.stories.js +2 -3
- package/nationalarchives/components/header/_index.scss +180 -36
- package/nationalarchives/components/header/header.js +1 -1
- package/nationalarchives/components/header/header.js.map +1 -1
- package/nationalarchives/components/header/header.mjs +6 -0
- package/nationalarchives/components/header/header.stories.js +14 -5
- package/nationalarchives/components/header/macro-options.json +57 -5
- package/nationalarchives/components/header/template.njk +20 -8
- package/nationalarchives/components/hero/_index.scss +3 -0
- package/nationalarchives/components/hero/hero.stories.js +15 -13
- package/nationalarchives/components/hero/macro-options.json +1 -1
- package/nationalarchives/components/phase-banner/_index.scss +43 -0
- package/nationalarchives/components/phase-banner/fixtures.json +14 -0
- package/nationalarchives/components/phase-banner/macro-options.json +26 -0
- package/nationalarchives/components/phase-banner/macro.njk +3 -0
- package/nationalarchives/components/phase-banner/phase-banner.stories.js +38 -0
- package/nationalarchives/components/phase-banner/template.njk +16 -0
- package/nationalarchives/components/sensitive-image/sensitive-image.stories.js +1 -2
- package/nationalarchives/stories/development/contributing.mdx +38 -0
- package/nationalarchives/stories/development/dependencies.mdx +2 -0
- package/nationalarchives/stories/development/technologies.mdx +65 -0
- package/nationalarchives/templates/layouts/_generic.njk +1 -1
- package/nationalarchives/tools/_all.scss +1 -0
- package/nationalarchives/tools/_assets.scss +5 -0
- package/nationalarchives/tools/_media.scss +12 -11
- package/nationalarchives/utilities/_global.scss +95 -2
- package/nationalarchives/utilities/_typography.scss +109 -97
- package/nationalarchives/variables/_all.scss +1 -0
- package/nationalarchives/variables/_assets.scss +1 -0
- package/nationalarchives/variables/_colour.scss +88 -4
- package/nationalarchives/variables/_media.scss +39 -11
- package/package.json +15 -13
- package/nationalarchives/stories/development/structure.mdx +0 -7
@@ -1,6 +1,29 @@
|
|
1
|
+
@use "../features";
|
1
2
|
@use "../variables/colour";
|
2
3
|
@use "../variables/typography";
|
3
4
|
|
5
|
+
:root {
|
6
|
+
@include colour.colour-css-vars;
|
7
|
+
|
8
|
+
@if features.$support-colour-schemes {
|
9
|
+
@media (prefers-color-scheme: dark) {
|
10
|
+
@include colour.colour-css-vars-dark;
|
11
|
+
}
|
12
|
+
|
13
|
+
@media (prefers-contrast: more) {
|
14
|
+
@include colour.colour-css-vars-high-contrast;
|
15
|
+
|
16
|
+
* {
|
17
|
+
background-image: none !important;
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
|
22
|
+
@include colour.colour-css-vars-high-contrast-dark;
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
4
27
|
.tna-template {
|
5
28
|
min-width: 320px;
|
6
29
|
width: 100%;
|
@@ -12,6 +35,54 @@
|
|
12
35
|
|
13
36
|
font-size: #{typography.$base-font-size-px}px;
|
14
37
|
|
38
|
+
@include colour.colour-background("page-background");
|
39
|
+
|
40
|
+
&--back-accent {
|
41
|
+
accent-color: colour.$tna-black;
|
42
|
+
}
|
43
|
+
|
44
|
+
&--yellow-accent {
|
45
|
+
accent-color: colour.$tna-yellow;
|
46
|
+
}
|
47
|
+
|
48
|
+
&--pink-accent {
|
49
|
+
accent-color: colour.$tna-pink;
|
50
|
+
}
|
51
|
+
|
52
|
+
&--orange-accent {
|
53
|
+
accent-color: colour.$tna-orange;
|
54
|
+
}
|
55
|
+
|
56
|
+
&--green-accent {
|
57
|
+
accent-color: colour.$tna-green;
|
58
|
+
}
|
59
|
+
|
60
|
+
&--blue-accent {
|
61
|
+
accent-color: colour.$tna-blue;
|
62
|
+
}
|
63
|
+
|
64
|
+
@if features.$support-colour-schemes {
|
65
|
+
&--light-theme {
|
66
|
+
@include colour.colour-css-vars;
|
67
|
+
}
|
68
|
+
|
69
|
+
&--dark-theme {
|
70
|
+
@include colour.colour-css-vars-dark;
|
71
|
+
}
|
72
|
+
|
73
|
+
&--high-contrast-theme {
|
74
|
+
@include colour.colour-css-vars-high-contrast;
|
75
|
+
|
76
|
+
* {
|
77
|
+
background-image: none !important;
|
78
|
+
}
|
79
|
+
|
80
|
+
&.tna-template--dark-theme {
|
81
|
+
@include colour.colour-css-vars-high-contrast-dark;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
|
15
86
|
@media (prefers-reduced-motion) {
|
16
87
|
* {
|
17
88
|
animation: none !important;
|
@@ -25,7 +96,7 @@
|
|
25
96
|
margin: 0;
|
26
97
|
padding: 0;
|
27
98
|
|
28
|
-
background-color: #fff;
|
99
|
+
// background-color: #fff;
|
29
100
|
|
30
101
|
overflow: auto;
|
31
102
|
}
|
@@ -49,6 +120,28 @@ canvas {
|
|
49
120
|
}
|
50
121
|
|
51
122
|
*:focus {
|
52
|
-
outline: 0.3125rem colour.$focus-colour solid;
|
123
|
+
// outline: 0.3125rem colour.$focus-colour solid;
|
124
|
+
outline: 0.3125rem solid;
|
125
|
+
@include colour.colour-outline("focus-outline");
|
53
126
|
outline-offset: 0.125rem;
|
54
127
|
}
|
128
|
+
|
129
|
+
.tna-visually-hidden {
|
130
|
+
width: 1px !important;
|
131
|
+
height: 1px !important;
|
132
|
+
margin: 0 !important;
|
133
|
+
padding: 0 !important;
|
134
|
+
|
135
|
+
position: absolute !important;
|
136
|
+
top: -9999px !important;
|
137
|
+
left: -9999px !important;
|
138
|
+
z-index: -1 !important;
|
139
|
+
|
140
|
+
overflow: hidden !important;
|
141
|
+
|
142
|
+
clip: rect(0, 0, 0, 0) !important;
|
143
|
+
|
144
|
+
border: 0 !important;
|
145
|
+
|
146
|
+
background-color: transparent !important;
|
147
|
+
}
|
@@ -10,15 +10,27 @@
|
|
10
10
|
.tna-template {
|
11
11
|
font-family: typography.$font-family-main;
|
12
12
|
font-weight: typography.$font-weight-main;
|
13
|
-
color: colour.$base-font-colour;
|
13
|
+
// color: colour.$base-font-colour;
|
14
|
+
@include colour.colour-font("base-font");
|
14
15
|
-moz-osx-font-smoothing: grayscale;
|
15
16
|
-webkit-font-smoothing: antialiased;
|
16
17
|
text-rendering: optimizeLegibility;
|
17
18
|
-webkit-text-size-adjust: none;
|
18
19
|
direction: ltr;
|
19
20
|
|
21
|
+
h1,
|
22
|
+
h2,
|
23
|
+
h3,
|
24
|
+
h4,
|
25
|
+
h5,
|
26
|
+
h6,
|
27
|
+
ul,
|
28
|
+
ol {
|
29
|
+
margin-top: 0;
|
30
|
+
}
|
31
|
+
|
20
32
|
p {
|
21
|
-
margin: 0 0
|
33
|
+
margin: 0 0 1.5rem;
|
22
34
|
|
23
35
|
&:last-child {
|
24
36
|
margin-bottom: 0;
|
@@ -34,145 +46,145 @@
|
|
34
46
|
text-decoration-thickness: 3px;
|
35
47
|
}
|
36
48
|
}
|
49
|
+
}
|
37
50
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
51
|
+
.tna-template__body {
|
52
|
+
@include tools.relative-font-size(16);
|
53
|
+
line-height: 1.6;
|
54
|
+
}
|
42
55
|
|
43
|
-
|
44
|
-
|
45
|
-
|
56
|
+
.tna-ul,
|
57
|
+
.tna-ol {
|
58
|
+
padding-left: 2rem;
|
46
59
|
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
}
|
60
|
+
li::marker {
|
61
|
+
color: #f0a;
|
62
|
+
font-weight: 700;
|
51
63
|
}
|
52
64
|
|
53
|
-
|
54
|
-
.tna-ol--plain {
|
65
|
+
&--plain {
|
55
66
|
padding-left: 0;
|
56
67
|
|
57
68
|
list-style: none;
|
58
69
|
}
|
70
|
+
}
|
59
71
|
|
60
|
-
|
61
|
-
|
62
|
-
margin-bottom: 1.5rem;
|
63
|
-
|
64
|
-
color: colour.$tna-black;
|
65
|
-
font-family: typography.$font-family-heading;
|
66
|
-
font-weight: typography.$font-weight-heading;
|
72
|
+
.tna-heading {
|
73
|
+
margin-bottom: 1.5rem;
|
67
74
|
|
68
|
-
|
69
|
-
|
70
|
-
|
75
|
+
color: colour.$tna-black;
|
76
|
+
font-family: typography.$font-family-heading;
|
77
|
+
font-weight: typography.$font-weight-heading;
|
71
78
|
|
72
|
-
|
73
|
-
|
74
|
-
|
79
|
+
&:last-child {
|
80
|
+
margin-bottom: 0;
|
81
|
+
}
|
75
82
|
|
76
|
-
|
77
|
-
|
78
|
-
|
83
|
+
&--xl {
|
84
|
+
@include tools.relative-font-size(64);
|
85
|
+
line-height: 1;
|
79
86
|
|
80
|
-
|
81
|
-
|
82
|
-
}
|
87
|
+
@include media.on-medium {
|
88
|
+
@include tools.relative-font-size(42);
|
83
89
|
}
|
84
90
|
|
85
|
-
|
86
|
-
@include tools.relative-font-size(
|
87
|
-
|
91
|
+
@include media.on-mobile {
|
92
|
+
@include tools.relative-font-size(36);
|
93
|
+
}
|
94
|
+
}
|
88
95
|
|
89
|
-
|
90
|
-
|
91
|
-
|
96
|
+
&--l {
|
97
|
+
@include tools.relative-font-size(32);
|
98
|
+
line-height: 1.2;
|
92
99
|
|
93
|
-
|
94
|
-
|
95
|
-
}
|
100
|
+
@include media.on-medium {
|
101
|
+
@include tools.relative-font-size(26);
|
96
102
|
}
|
97
103
|
|
98
|
-
|
99
|
-
@include tools.relative-font-size(
|
100
|
-
line-height: 1.4;
|
104
|
+
@include media.on-mobile {
|
105
|
+
@include tools.relative-font-size(24);
|
101
106
|
}
|
107
|
+
}
|
102
108
|
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
}
|
109
|
+
&--m {
|
110
|
+
@include tools.relative-font-size(20);
|
111
|
+
line-height: 1.4;
|
107
112
|
}
|
108
113
|
|
109
|
-
|
110
|
-
|
114
|
+
&--s {
|
115
|
+
@include tools.relative-font-size(18);
|
116
|
+
line-height: 1.6;
|
117
|
+
}
|
118
|
+
}
|
111
119
|
|
112
|
-
|
113
|
-
|
114
|
-
}
|
120
|
+
.tna-hgroup {
|
121
|
+
margin-bottom: 2rem;
|
115
122
|
|
116
|
-
|
117
|
-
|
123
|
+
&:last-child {
|
124
|
+
margin-bottom: 0;
|
125
|
+
}
|
118
126
|
|
119
|
-
|
120
|
-
|
121
|
-
font-family: typography.$font-family-detail;
|
122
|
-
font-weight: typography.$font-weight-detail;
|
123
|
-
text-transform: uppercase;
|
127
|
+
&__supertitle {
|
128
|
+
margin: 0;
|
124
129
|
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
130
|
+
// color: colour.$base-font-colour;
|
131
|
+
@include colour.colour-font("base-font");
|
132
|
+
@include tools.relative-font-size(14);
|
133
|
+
font-family: typography.$font-family-detail;
|
134
|
+
font-weight: typography.$font-weight-detail;
|
135
|
+
text-transform: uppercase;
|
136
|
+
|
137
|
+
// .tna-hgroup & {
|
138
|
+
// margin: 0;
|
139
|
+
// }
|
140
|
+
}
|
129
141
|
|
130
|
-
|
131
|
-
|
142
|
+
&__title {
|
143
|
+
margin: 0;
|
132
144
|
|
133
|
-
|
145
|
+
color: colour.$tna-black;
|
134
146
|
|
135
|
-
|
136
|
-
|
147
|
+
.tna-hgroup__supertitle {
|
148
|
+
display: block;
|
137
149
|
|
138
|
-
|
139
|
-
|
150
|
+
// color: colour.$base-font-colour;
|
151
|
+
@include colour.colour-font("base-font");
|
140
152
|
}
|
153
|
+
}
|
141
154
|
|
142
|
-
|
143
|
-
|
144
|
-
|
155
|
+
&--xl {
|
156
|
+
.tna-hgroup__supertitle {
|
157
|
+
}
|
145
158
|
|
146
|
-
|
147
|
-
|
148
|
-
}
|
159
|
+
.tna-hgroup__title {
|
160
|
+
@include tools.relative-font-size(64);
|
149
161
|
}
|
162
|
+
}
|
150
163
|
|
151
|
-
|
152
|
-
|
153
|
-
|
164
|
+
&--l {
|
165
|
+
.tna-hgroup__supertitle {
|
166
|
+
}
|
154
167
|
|
155
|
-
|
156
|
-
|
157
|
-
}
|
168
|
+
.tna-hgroup__title {
|
169
|
+
@include tools.relative-font-size(32);
|
158
170
|
}
|
171
|
+
}
|
159
172
|
|
160
|
-
|
161
|
-
|
162
|
-
|
173
|
+
&--m {
|
174
|
+
.tna-hgroup__supertitle {
|
175
|
+
}
|
163
176
|
|
164
|
-
|
165
|
-
|
166
|
-
}
|
177
|
+
.tna-hgroup__title {
|
178
|
+
@include tools.relative-font-size(20);
|
167
179
|
}
|
180
|
+
}
|
168
181
|
|
169
|
-
|
170
|
-
|
171
|
-
|
182
|
+
&--s {
|
183
|
+
.tna-hgroup__supertitle {
|
184
|
+
}
|
172
185
|
|
173
|
-
|
174
|
-
|
175
|
-
}
|
186
|
+
.tna-hgroup__title {
|
187
|
+
@include tools.relative-font-size(18);
|
176
188
|
}
|
177
189
|
}
|
178
190
|
}
|
@@ -0,0 +1 @@
|
|
1
|
+
$tna-assets-path: "/assets" !default;
|
@@ -1,11 +1,95 @@
|
|
1
|
+
@use "sass:map";
|
2
|
+
|
1
3
|
$tna-black: #000;
|
2
4
|
$tna-yellow: #fc0;
|
3
5
|
$tna-pink: #fe1d57;
|
4
6
|
$tna-orange: #fd3f03;
|
5
7
|
$tna-green: #86bc25;
|
6
8
|
$tna-blue: #00b0ff;
|
9
|
+
$dark: #26262a;
|
10
|
+
|
11
|
+
$page-background: #fff;
|
12
|
+
$base-font: #343338;
|
13
|
+
$focus-outline: #004c7e;
|
14
|
+
$keyline: #ccc;
|
15
|
+
|
16
|
+
$colour-palette-default: (
|
17
|
+
"page-background": $page-background,
|
18
|
+
"base-font": $base-font,
|
19
|
+
"dark-font": $tna-black,
|
20
|
+
"focus-outline": $focus-outline,
|
21
|
+
"keyline": $keyline,
|
22
|
+
);
|
23
|
+
|
24
|
+
$colour-palette-dark: map.merge(
|
25
|
+
$colour-palette-default,
|
26
|
+
(
|
27
|
+
"page-background": $dark,
|
28
|
+
"base-font": #eee,
|
29
|
+
"dark-font": #fff,
|
30
|
+
"focus-outline": $tna-yellow,
|
31
|
+
"keyline": #444,
|
32
|
+
)
|
33
|
+
);
|
34
|
+
|
35
|
+
$colour-palette-high-contrast: map.merge(
|
36
|
+
$colour-palette-default,
|
37
|
+
(
|
38
|
+
"base-font": $tna-black,
|
39
|
+
"focus-outline": #f0a,
|
40
|
+
"keyline": $tna-black,
|
41
|
+
)
|
42
|
+
);
|
43
|
+
|
44
|
+
$colour-palette-high-contrast-dark: map.merge(
|
45
|
+
$colour-palette-dark,
|
46
|
+
(
|
47
|
+
"page-background": $tna-black,
|
48
|
+
"base-font": #fff,
|
49
|
+
"keyline": #fff,
|
50
|
+
)
|
51
|
+
);
|
52
|
+
|
53
|
+
@mixin colour-css-vars() {
|
54
|
+
@each $name, $value in $colour-palette-default {
|
55
|
+
--#{$name}: #{$value};
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@mixin colour-css-vars-dark() {
|
60
|
+
@each $name, $value in $colour-palette-dark {
|
61
|
+
--#{$name}: #{$value};
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
@mixin colour-css-vars-high-contrast() {
|
66
|
+
@each $name, $value in $colour-palette-high-contrast {
|
67
|
+
--#{$name}: #{$value};
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
@mixin colour-css-vars-high-contrast-dark() {
|
72
|
+
@each $name, $value in $colour-palette-high-contrast-dark {
|
73
|
+
--#{$name}: #{$value};
|
74
|
+
}
|
75
|
+
}
|
76
|
+
|
77
|
+
@mixin colour-font($colour) {
|
78
|
+
color: map.get($colour-palette-default, $colour);
|
79
|
+
color: var(--#{$colour});
|
80
|
+
}
|
81
|
+
|
82
|
+
@mixin colour-background($colour) {
|
83
|
+
background-color: map.get($colour-palette-default, $colour);
|
84
|
+
background-color: var(--#{$colour});
|
85
|
+
}
|
86
|
+
|
87
|
+
@mixin colour-border($colour) {
|
88
|
+
border-color: map.get($colour-palette-default, $colour);
|
89
|
+
border-color: var(--#{$colour});
|
90
|
+
}
|
7
91
|
|
8
|
-
$
|
9
|
-
$
|
10
|
-
|
11
|
-
|
92
|
+
@mixin colour-outline($colour) {
|
93
|
+
outline-color: map.get($colour-palette-default, $colour);
|
94
|
+
outline-color: var(--#{$colour});
|
95
|
+
}
|
@@ -1,12 +1,40 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
$largest-tiny-device: 480px !default;
|
1
|
+
@use "sass:math";
|
2
|
+
@use "./typography";
|
4
3
|
|
5
|
-
$
|
6
|
-
$
|
7
|
-
$
|
8
|
-
|
9
|
-
$
|
10
|
-
$
|
11
|
-
|
12
|
-
|
4
|
+
$largest-medium-device-px: 1024 !default;
|
5
|
+
$largest-small-device-px: 768 !default;
|
6
|
+
$largest-tiny-device-px: 480 !default;
|
7
|
+
|
8
|
+
$smallest-large-device-em: #{math.div(
|
9
|
+
$largest-medium-device-px + 1,
|
10
|
+
typography.$base-font-size-px
|
11
|
+
)}em;
|
12
|
+
$largest-medium-device-em: #{math.div(
|
13
|
+
$largest-medium-device-px,
|
14
|
+
typography.$base-font-size-px
|
15
|
+
)}em;
|
16
|
+
$smallest-medium-device-em: #{math.div(
|
17
|
+
$largest-small-device-px + 1,
|
18
|
+
typography.$base-font-size-px
|
19
|
+
)}em;
|
20
|
+
$largest-small-device-em: #{math.div(
|
21
|
+
$largest-small-device-px,
|
22
|
+
typography.$base-font-size-px
|
23
|
+
)}em;
|
24
|
+
$smallest-small-device-em: #{math.div(
|
25
|
+
$largest-tiny-device-px + 1,
|
26
|
+
typography.$base-font-size-px
|
27
|
+
)}em;
|
28
|
+
$largest-tiny-device-em: #{math.div(
|
29
|
+
$largest-tiny-device-px,
|
30
|
+
typography.$base-font-size-px
|
31
|
+
)}em;
|
32
|
+
|
33
|
+
$media-large: "(min-width: #{$smallest-large-device-em})";
|
34
|
+
$media-lt-large: "(max-width: #{$largest-medium-device-em})";
|
35
|
+
$media-medium: "(min-width: #{$smallest-medium-device-em}) and (max-width: #{$largest-medium-device-em})";
|
36
|
+
$media-gt-mobile: "(min-width: #{$smallest-medium-device-em})";
|
37
|
+
$media-mobile: "(max-width: #{$largest-small-device-em})";
|
38
|
+
$media-small: "(min-width: #{$smallest-small-device-em}) and (max-width: #{$largest-small-device-em})";
|
39
|
+
$media-gt-tiny: "(min-width: #{$smallest-small-device-em})";
|
40
|
+
$media-tiny: "(max-width: #{$largest-tiny-device-em})";
|
package/package.json
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
{
|
2
2
|
"name": "@nationalarchives/frontend",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.10-prerelease",
|
4
4
|
"description": "The National Archives frontend styles",
|
5
5
|
"scripts": {
|
6
6
|
"start": "storybook dev -p 6006",
|
7
7
|
"build": "storybook build -o storybook",
|
8
|
-
"test": "test-storybook --stories-json && node tasks/test-fixtures.js",
|
9
|
-
"lint": "prettier --check '{src,.storybook,tasks}/**/*.{js,mjs,scss,json}' && stylelint 'src/**/*.scss' && eslint 'src/**/*.mjs'",
|
10
|
-
"lint:fix": "prettier --write '{src,.storybook,tasks}/**/*.{js,mjs,scss,json}' && stylelint --fix 'src/**/*.scss' && eslint --fix 'src/**/*.mjs'",
|
8
|
+
"test": "test-storybook --verbose --stories-json && node tasks/test-fixtures.js",
|
9
|
+
"lint": "prettier --check '{src,.storybook,tasks}/**/*.{js,mjs,scss,json,html}' && stylelint 'src/**/*.scss' && eslint 'src/**/*.mjs'",
|
10
|
+
"lint:fix": "prettier --write '{src,.storybook,tasks}/**/*.{js,mjs,scss,json,html}' && stylelint --fix 'src/**/*.scss' && eslint --fix 'src/**/*.mjs'",
|
11
11
|
"package:sass": "sass --style=compressed --quiet-deps src/nationalarchives/all.scss package/nationalarchives/all.css",
|
12
12
|
"package:scripts": "webpack"
|
13
13
|
},
|
@@ -42,22 +42,24 @@
|
|
42
42
|
"@babel/core": "^7.19.1",
|
43
43
|
"@babel/preset-env": "^7.22.5",
|
44
44
|
"@mdx-js/react": "^2.1.3",
|
45
|
-
"@storybook/addon-a11y": "^7.0.
|
46
|
-
"@storybook/addon-docs": "^7.0.
|
47
|
-
"@storybook/addon-essentials": "^7.0.
|
48
|
-
"@storybook/addon-interactions": "^7.0.
|
49
|
-
"@storybook/addon-links": "^7.0.
|
50
|
-
"@storybook/addon-mdx-gfm": "^7.0.
|
51
|
-
"@storybook/html": "^7.0.
|
52
|
-
"@storybook/html-webpack5": "^7.0.
|
45
|
+
"@storybook/addon-a11y": "^7.0.27",
|
46
|
+
"@storybook/addon-docs": "^7.0.27",
|
47
|
+
"@storybook/addon-essentials": "^7.0.27",
|
48
|
+
"@storybook/addon-interactions": "^7.0.27",
|
49
|
+
"@storybook/addon-links": "^7.0.27",
|
50
|
+
"@storybook/addon-mdx-gfm": "^7.0.27",
|
51
|
+
"@storybook/html": "^7.0.27",
|
52
|
+
"@storybook/html-webpack5": "^7.0.27",
|
53
53
|
"@storybook/jest": "^0.1.0",
|
54
54
|
"@storybook/test-runner": "^0.11.0",
|
55
55
|
"@storybook/testing-library": "^0.2.0",
|
56
56
|
"babel-loader": "^9.0.1",
|
57
|
+
"chromatic": "^6.19.9",
|
57
58
|
"copy-webpack-plugin": "^11.0.0",
|
58
59
|
"css-loader": "^6.7.1",
|
59
60
|
"diff": "^5.1.0",
|
60
61
|
"eslint": "^8.43.0",
|
62
|
+
"eslint-plugin-storybook": "^0.6.12",
|
61
63
|
"glob": "^10.2.7",
|
62
64
|
"jest-image-snapshot": "^6.1.0",
|
63
65
|
"nunjucks": "^3.2.3",
|
@@ -67,7 +69,7 @@
|
|
67
69
|
"sass": "^1.54.9",
|
68
70
|
"sass-loader": "^13.0.2",
|
69
71
|
"simple-nunjucks-loader": "^3.2.0",
|
70
|
-
"storybook": "^7.0.
|
72
|
+
"storybook": "^7.0.27",
|
71
73
|
"style-loader": "^3.3.1",
|
72
74
|
"stylelint": "^15.9.0",
|
73
75
|
"stylelint-config-standard-scss": "^10.0.0",
|