@nationalarchives/frontend 0.1.48 → 0.1.50
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/all.js +1 -1
- package/nationalarchives/all.js.map +1 -1
- package/nationalarchives/analytics.js +1 -1
- package/nationalarchives/analytics.js.map +1 -1
- package/nationalarchives/analytics.mjs +4 -4
- package/nationalarchives/components/_index.scss +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
- package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +6 -5
- package/nationalarchives/components/button/_button-group.scss +2 -2
- package/nationalarchives/components/button/button.css +1 -1
- package/nationalarchives/components/button/button.css.map +1 -1
- package/nationalarchives/components/button/button.scss +4 -3
- package/nationalarchives/components/card/card.css +1 -1
- package/nationalarchives/components/card/card.css.map +1 -1
- package/nationalarchives/components/card/card.scss +31 -23
- package/nationalarchives/components/card/card.stories.js +4 -1
- package/nationalarchives/components/card/fixtures.json +58 -3
- package/nationalarchives/components/card/macro-options.json +1 -1
- package/nationalarchives/components/card/template.njk +2 -0
- package/nationalarchives/components/checkboxes/checkboxes.css +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.css.map +1 -1
- package/nationalarchives/components/checkboxes/checkboxes.scss +6 -5
- package/nationalarchives/components/compound-filters/compound-filters.css +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.css.map +1 -1
- package/nationalarchives/components/compound-filters/compound-filters.scss +3 -3
- package/nationalarchives/components/cookie-banner/cookie-banner.css +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.css.map +1 -1
- package/nationalarchives/components/cookie-banner/cookie-banner.scss +2 -2
- package/nationalarchives/components/cookie-banner/fixtures.json +10 -10
- package/nationalarchives/components/cookie-banner/template.njk +1 -1
- package/nationalarchives/components/date-input/date-input.css +1 -1
- package/nationalarchives/components/date-input/date-input.css.map +1 -1
- package/nationalarchives/components/date-input/date-input.scss +3 -2
- package/nationalarchives/components/date-input/fixtures.json +5 -5
- package/nationalarchives/components/date-input/template.njk +1 -1
- package/nationalarchives/components/date-search/date-search.css +1 -1
- package/nationalarchives/components/date-search/date-search.css.map +1 -1
- package/nationalarchives/components/date-search/date-search.scss +2 -1
- package/nationalarchives/components/error-summary/error-summary.css +1 -1
- package/nationalarchives/components/error-summary/error-summary.css.map +1 -1
- package/nationalarchives/components/error-summary/error-summary.scss +2 -2
- package/nationalarchives/components/featured-records/featured-records.css +1 -1
- package/nationalarchives/components/featured-records/featured-records.css.map +1 -1
- package/nationalarchives/components/featured-records/featured-records.scss +6 -6
- package/nationalarchives/components/featured-records/featured-records.stories.js +3 -4
- package/nationalarchives/components/footer/fixtures.json +2 -2
- package/nationalarchives/components/footer/footer.css +1 -1
- package/nationalarchives/components/footer/footer.css.map +1 -1
- package/nationalarchives/components/footer/footer.scss +22 -21
- package/nationalarchives/components/footer/footer.stories.js +1 -1
- package/nationalarchives/components/footer/template.njk +12 -13
- package/nationalarchives/components/gallery/gallery.css +1 -1
- package/nationalarchives/components/gallery/gallery.css.map +1 -1
- package/nationalarchives/components/gallery/gallery.scss +10 -10
- package/nationalarchives/components/global-header/README.md +16 -16
- package/nationalarchives/components/global-header/fixtures.json +1 -2
- package/nationalarchives/components/global-header/global-header.css +1 -1
- package/nationalarchives/components/global-header/global-header.css.map +1 -1
- package/nationalarchives/components/global-header/global-header.js +1 -1
- package/nationalarchives/components/global-header/global-header.js.map +1 -1
- package/nationalarchives/components/global-header/global-header.mjs +1 -1
- package/nationalarchives/components/global-header/global-header.scss +41 -36
- package/nationalarchives/components/global-header/global-header.stories.js +0 -1
- package/nationalarchives/components/global-header/macro-options.json +0 -6
- package/nationalarchives/components/global-header/template.njk +3 -6
- package/nationalarchives/components/grid/grid.css +1 -1
- package/nationalarchives/components/grid/grid.css.map +1 -1
- package/nationalarchives/components/grid/grid.scss +16 -16
- package/nationalarchives/components/header/header.css +1 -1
- package/nationalarchives/components/header/header.css.map +1 -1
- package/nationalarchives/components/header/header.js +1 -1
- package/nationalarchives/components/header/header.js.map +1 -1
- package/nationalarchives/components/header/header.mjs +1 -1
- package/nationalarchives/components/header/header.scss +46 -45
- package/nationalarchives/components/hero/hero.css +1 -1
- package/nationalarchives/components/hero/hero.css.map +1 -1
- package/nationalarchives/components/hero/hero.scss +15 -9
- package/nationalarchives/components/index-grid/index-grid.css +1 -1
- package/nationalarchives/components/index-grid/index-grid.css.map +1 -1
- package/nationalarchives/components/index-grid/index-grid.scss +4 -4
- package/nationalarchives/components/pagination/pagination.css +1 -1
- package/nationalarchives/components/pagination/pagination.css.map +1 -1
- package/nationalarchives/components/pagination/pagination.scss +11 -9
- package/nationalarchives/components/phase-banner/phase-banner.css +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.css.map +1 -1
- package/nationalarchives/components/phase-banner/phase-banner.scss +3 -2
- package/nationalarchives/components/picture/picture.css +1 -1
- package/nationalarchives/components/picture/picture.css.map +1 -1
- package/nationalarchives/components/picture/picture.scss +18 -17
- package/nationalarchives/components/quick-filters/quick-filters.css +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.css.map +1 -1
- package/nationalarchives/components/quick-filters/quick-filters.scss +2 -2
- package/nationalarchives/components/radios/radios.css +1 -1
- package/nationalarchives/components/radios/radios.css.map +1 -1
- package/nationalarchives/components/radios/radios.scss +6 -5
- package/nationalarchives/components/search-field/search-field.css +1 -1
- package/nationalarchives/components/search-field/search-field.css.map +1 -1
- package/nationalarchives/components/search-field/search-field.scss +1 -1
- package/nationalarchives/components/search-filters/search-filters.css +1 -1
- package/nationalarchives/components/search-filters/search-filters.css.map +1 -1
- package/nationalarchives/components/search-filters/search-filters.scss +10 -10
- package/nationalarchives/components/select/select.css +1 -1
- package/nationalarchives/components/select/select.css.map +1 -1
- package/nationalarchives/components/select/select.scss +10 -9
- package/nationalarchives/components/sensitive-image/sensitive-image.css +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.css.map +1 -1
- package/nationalarchives/components/sensitive-image/sensitive-image.scss +3 -2
- package/nationalarchives/components/skip-link/skip-link.css +1 -1
- package/nationalarchives/components/skip-link/skip-link.css.map +1 -1
- package/nationalarchives/components/skip-link/skip-link.scss +2 -1
- package/nationalarchives/components/tabs/tabs.css +1 -1
- package/nationalarchives/components/tabs/tabs.css.map +1 -1
- package/nationalarchives/components/tabs/tabs.scss +4 -4
- package/nationalarchives/components/text-input/text-input.css +1 -1
- package/nationalarchives/components/text-input/text-input.css.map +1 -1
- package/nationalarchives/components/text-input/text-input.scss +2 -1
- package/nationalarchives/components/textarea/textarea.css +1 -1
- package/nationalarchives/components/textarea/textarea.css.map +1 -1
- package/nationalarchives/components/textarea/textarea.scss +4 -3
- package/nationalarchives/components/warning/_index.scss +1 -0
- package/nationalarchives/components/warning/fixtures.json +13 -0
- package/nationalarchives/components/{message → warning}/macro-options.json +11 -5
- package/nationalarchives/components/warning/macro.njk +3 -0
- package/nationalarchives/components/warning/template.njk +10 -0
- package/nationalarchives/components/warning/warning.css +1 -0
- package/nationalarchives/components/warning/warning.css.map +1 -0
- package/nationalarchives/components/{message/message.scss → warning/warning.scss} +6 -6
- package/nationalarchives/components/{message/phase-banner.stories.js → warning/warning.stories.js} +10 -9
- package/nationalarchives/global-header-package.css +1 -1
- package/nationalarchives/global-header-package.css.map +1 -1
- package/nationalarchives/global-header-package.scss +245 -33
- package/nationalarchives/prototype-kit.css +1 -1
- package/nationalarchives/prototype-kit.css.map +1 -1
- package/nationalarchives/stories/intro.mdx +2 -2
- package/nationalarchives/stories/utilities/colour-schemes/colour-combinations.stories.js +4 -3
- package/nationalarchives/stories/utilities/colour-schemes/colour-themes.stories.js +21 -23
- package/nationalarchives/stories/utilities/lists/lists.stories.js +30 -0
- package/nationalarchives/stories/utilities/overrides/overrides.stories.js +6 -0
- package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +9 -0
- package/nationalarchives/stories/utilities/typography/headings.stories.js +3 -0
- package/nationalarchives/stories/utilities/typography/typography.stories.js +18 -0
- package/nationalarchives/templates/fixtures.json +4 -4
- package/nationalarchives/templates/layouts/_generic.njk +2 -2
- package/nationalarchives/tools/_colour.scss +0 -43
- package/nationalarchives/tools/_grid.scss +33 -0
- package/nationalarchives/tools/_media.scss +44 -21
- package/nationalarchives/tools/_spacing.scss +14 -16
- package/nationalarchives/tools/_typography.scss +52 -4
- package/nationalarchives/utilities/_a11y.scss +6 -5
- package/nationalarchives/utilities/_areas.scss +7 -7
- package/nationalarchives/utilities/_colour.scss +46 -20
- package/nationalarchives/utilities/_columns.scss +3 -3
- package/nationalarchives/utilities/_forms.scss +3 -3
- package/nationalarchives/utilities/_lists.scss +8 -8
- package/nationalarchives/utilities/_reset.scss +5 -0
- package/nationalarchives/utilities/_tables.scss +10 -10
- package/nationalarchives/utilities/_typography.scss +61 -65
- package/nationalarchives/variables/_colour.scss +16 -16
- package/nationalarchives/variables/_grid.scss +3 -3
- package/nationalarchives/variables/_media.scss +0 -37
- package/nationalarchives/variables/_spacing.scss +14 -12
- package/nationalarchives/variables/_typography.scss +27 -4
- package/package.json +24 -23
- package/nationalarchives/components/message/_index.scss +0 -1
- package/nationalarchives/components/message/fixtures.json +0 -13
- package/nationalarchives/components/message/macro.njk +0 -3
- package/nationalarchives/components/message/message.css +0 -1
- package/nationalarchives/components/message/message.css.map +0 -1
- package/nationalarchives/components/message/template.njk +0 -9
@@ -4,8 +4,8 @@ import { Meta } from "@storybook/blocks";
|
|
4
4
|
|
5
5
|
# Welcome
|
6
6
|
|
7
|
-
TNA Frontend contains the code you need to start building user interfaces for National Archives platforms and services.
|
7
|
+
[TNA Frontend](https://github.com/nationalarchives/tna-frontend) contains the code you need to start building user interfaces for National Archives platforms and services.
|
8
8
|
|
9
|
-
This Storybook instance represents the
|
9
|
+
This Storybook instance represents the working branch (`main`) of TNA Frontend. This may contain unreleased styles and code.
|
10
10
|
|
11
11
|
To get the latest release, see the [GitHub releases page](https://github.com/nationalarchives/tna-frontend/releases).
|
@@ -31,8 +31,8 @@ const Template = () => {
|
|
31
31
|
|
32
32
|
const blocks = [
|
33
33
|
"",
|
34
|
-
"tna-background-tint",
|
35
34
|
"tna-background-accent-light",
|
35
|
+
"tna-background-tint",
|
36
36
|
"tna-background-accent",
|
37
37
|
"tna-background-contrast",
|
38
38
|
];
|
@@ -72,8 +72,9 @@ const Template = () => {
|
|
72
72
|
`${blockOutput}<div class="tna-colour-contrast-demo__example tna-template ${theme} ${accent}">
|
73
73
|
<div class="tna-template__body">
|
74
74
|
<div class="tna-colour-contrast-demo__example-content ${block}">
|
75
|
-
<
|
76
|
-
<p
|
75
|
+
<h6 class="tna-heading-s">Heading</h6>
|
76
|
+
<p>Text / <span class="dark-text">Dark</span> / <span class="light-text">Light</span> / <i class="fa-solid fa-heart" aria-hidden="true"></i> <i class="fa-solid fa-heart light-icon" aria-hidden="true"></i></p>
|
77
|
+
<p><a href="#">Link</a> / <a href="#" class="tna-colour-contrast-demo__link--visited">Link (visited)</a></p>
|
77
78
|
<ul class="tna-chip-list">
|
78
79
|
<li class="tna-chip-list__item">
|
79
80
|
<span class="tna-chip">Chip</span>
|
@@ -10,7 +10,6 @@ import Gallery from "../../../components/gallery/template.njk";
|
|
10
10
|
import GlobalHeader from "../../../components/global-header/template.njk";
|
11
11
|
import Hero from "../../../components/hero/template.njk";
|
12
12
|
import IndexGrid from "../../../components/index-grid/template.njk";
|
13
|
-
import Message from "../../../components/message/template.njk";
|
14
13
|
import Pagination from "../../../components/pagination/template.njk";
|
15
14
|
import PhaseBanner from "../../../components/phase-banner/template.njk";
|
16
15
|
import Picture from "../../../components/picture/template.njk";
|
@@ -20,6 +19,7 @@ import Select from "../../../components/select/template.njk";
|
|
20
19
|
import Tabs from "../../../components/tabs/template.njk";
|
21
20
|
import TextInput from "../../../components/text-input/template.njk";
|
22
21
|
import Textarea from "../../../components/textarea/template.njk";
|
22
|
+
import Warning from "../../../components/warning/template.njk";
|
23
23
|
|
24
24
|
const argTypes = {
|
25
25
|
theme: {
|
@@ -114,7 +114,6 @@ const Template = ({ theme, accent }) => {
|
|
114
114
|
${GlobalHeader({
|
115
115
|
params: {
|
116
116
|
logo: {
|
117
|
-
strapline: "Colours",
|
118
117
|
href: "#/",
|
119
118
|
},
|
120
119
|
topNavigation: [
|
@@ -413,7 +412,7 @@ const Template = ({ theme, accent }) => {
|
|
413
412
|
</a>
|
414
413
|
</li>
|
415
414
|
</ul>
|
416
|
-
${
|
415
|
+
${Warning({
|
417
416
|
params: {
|
418
417
|
message:
|
419
418
|
"Please note this page references hunger strikes and force feeding, which some people may find upsetting.",
|
@@ -426,10 +425,9 @@ const Template = ({ theme, accent }) => {
|
|
426
425
|
params: {
|
427
426
|
items: [
|
428
427
|
{
|
429
|
-
imageSrc:
|
430
|
-
|
431
|
-
|
432
|
-
imageHeight: 591,
|
428
|
+
imageSrc: "https://picsum.photos/id/237/400/600",
|
429
|
+
imageWidth: 400,
|
430
|
+
imageHeight: 600,
|
433
431
|
collection: "TS 11/45/167",
|
434
432
|
title: "Court records relating to Robert Wedderburn's trial",
|
435
433
|
href: "#",
|
@@ -723,9 +721,9 @@ const Template = ({ theme, accent }) => {
|
|
723
721
|
},
|
724
722
|
})}
|
725
723
|
<div class="tna-button-group">
|
726
|
-
<a href="#" class="tna-button"
|
727
|
-
<a href="#" class="tna-button tna-button--accent"
|
728
|
-
<a href="" class="tna-button tna-button--plain"
|
724
|
+
<a href="#" class="tna-button">Primary button</a>
|
725
|
+
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
726
|
+
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
729
727
|
</div>
|
730
728
|
</div>
|
731
729
|
</div>
|
@@ -807,9 +805,9 @@ const Template = ({ theme, accent }) => {
|
|
807
805
|
},
|
808
806
|
})}
|
809
807
|
<div class="tna-button-group">
|
810
|
-
<a href="#" class="tna-button"
|
811
|
-
<a href="#" class="tna-button tna-button--accent"
|
812
|
-
<a href="" class="tna-button tna-button--plain"
|
808
|
+
<a href="#" class="tna-button">Primary button</a>
|
809
|
+
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
810
|
+
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
813
811
|
</div>
|
814
812
|
</div>
|
815
813
|
</div>
|
@@ -891,9 +889,9 @@ const Template = ({ theme, accent }) => {
|
|
891
889
|
},
|
892
890
|
})}
|
893
891
|
<div class="tna-button-group">
|
894
|
-
<a href="#" class="tna-button"
|
895
|
-
<a href="#" class="tna-button tna-button--accent"
|
896
|
-
<a href="" class="tna-button tna-button--plain"
|
892
|
+
<a href="#" class="tna-button">Primary button</a>
|
893
|
+
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
894
|
+
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
897
895
|
</div>
|
898
896
|
</div>
|
899
897
|
</div>
|
@@ -975,9 +973,9 @@ const Template = ({ theme, accent }) => {
|
|
975
973
|
},
|
976
974
|
})}
|
977
975
|
<div class="tna-button-group">
|
978
|
-
<a href="#" class="tna-button"
|
979
|
-
<a href="#" class="tna-button tna-button--accent"
|
980
|
-
<a href="" class="tna-button tna-button--plain"
|
976
|
+
<a href="#" class="tna-button">Primary button</a>
|
977
|
+
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
978
|
+
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
981
979
|
</div>
|
982
980
|
</div>
|
983
981
|
</div>
|
@@ -1059,9 +1057,9 @@ const Template = ({ theme, accent }) => {
|
|
1059
1057
|
},
|
1060
1058
|
})}
|
1061
1059
|
<div class="tna-button-group">
|
1062
|
-
<a href="#" class="tna-button"
|
1063
|
-
<a href="#" class="tna-button tna-button--accent"
|
1064
|
-
<a href="" class="tna-button tna-button--plain"
|
1060
|
+
<a href="#" class="tna-button">Primary button</a>
|
1061
|
+
<a href="#" class="tna-button tna-button--accent">Accent button</a>
|
1062
|
+
<a href="" class="tna-button tna-button--plain">Plain button</a>
|
1065
1063
|
</div>
|
1066
1064
|
</div>
|
1067
1065
|
</div>
|
@@ -1283,7 +1281,7 @@ const Template = ({ theme, accent }) => {
|
|
1283
1281
|
href: "https://www.nationalarchives.gov.uk/about/press-room/",
|
1284
1282
|
},
|
1285
1283
|
{
|
1286
|
-
text: "Jobs
|
1284
|
+
text: "Jobs",
|
1287
1285
|
href: "https://www.nationalarchives.gov.uk/about/jobs/",
|
1288
1286
|
},
|
1289
1287
|
{
|
@@ -15,10 +15,16 @@ const UnorderedListTemplate = ({ items, plain, classes }) =>
|
|
15
15
|
"",
|
16
16
|
)}</ul>`;
|
17
17
|
export const UnorderedList = UnorderedListTemplate.bind({});
|
18
|
+
UnorderedList.parameters = {
|
19
|
+
chromatic: { disableSnapshot: true },
|
20
|
+
};
|
18
21
|
UnorderedList.args = {
|
19
22
|
items: ["Alpha", "Beta", "Gamma"],
|
20
23
|
};
|
21
24
|
export const UnorderedListPlain = UnorderedListTemplate.bind({});
|
25
|
+
UnorderedListPlain.parameters = {
|
26
|
+
chromatic: { disableSnapshot: true },
|
27
|
+
};
|
22
28
|
UnorderedListPlain.args = {
|
23
29
|
items: ["Alpha", "Beta", "Gamma"],
|
24
30
|
plain: true,
|
@@ -30,10 +36,16 @@ const OrderedListTemplate = ({ items, plain, classes }) =>
|
|
30
36
|
"",
|
31
37
|
)}</ol>`;
|
32
38
|
export const OrderedList = OrderedListTemplate.bind({});
|
39
|
+
OrderedList.parameters = {
|
40
|
+
chromatic: { disableSnapshot: true },
|
41
|
+
};
|
33
42
|
OrderedList.args = {
|
34
43
|
items: ["Alpha", "Beta", "Gamma"],
|
35
44
|
};
|
36
45
|
export const OrderedListPlain = OrderedListTemplate.bind({});
|
46
|
+
OrderedListPlain.parameters = {
|
47
|
+
chromatic: { disableSnapshot: true },
|
48
|
+
};
|
37
49
|
OrderedListPlain.args = {
|
38
50
|
items: ["Alpha", "Beta", "Gamma"],
|
39
51
|
plain: true,
|
@@ -66,6 +78,9 @@ const DescriptionListTemplate = ({ items, plain, classes }) =>
|
|
66
78
|
</dl>`;
|
67
79
|
|
68
80
|
export const DescriptionList = DescriptionListTemplate.bind({});
|
81
|
+
DescriptionList.parameters = {
|
82
|
+
chromatic: { disableSnapshot: true },
|
83
|
+
};
|
69
84
|
DescriptionList.args = {
|
70
85
|
items: [
|
71
86
|
{ title: "Alpha", description: "Lorem ipsum" },
|
@@ -79,6 +94,9 @@ DescriptionList.args = {
|
|
79
94
|
};
|
80
95
|
|
81
96
|
export const PlainDescriptionList = DescriptionListTemplate.bind({});
|
97
|
+
PlainDescriptionList.parameters = {
|
98
|
+
chromatic: { disableSnapshot: true },
|
99
|
+
};
|
82
100
|
PlainDescriptionList.args = {
|
83
101
|
items: [
|
84
102
|
{ title: "Alpha", description: "Lorem ipsum" },
|
@@ -90,6 +108,9 @@ PlainDescriptionList.args = {
|
|
90
108
|
};
|
91
109
|
|
92
110
|
export const DescriptionListWithIcons = DescriptionListTemplate.bind({});
|
111
|
+
DescriptionListWithIcons.parameters = {
|
112
|
+
chromatic: { disableSnapshot: true },
|
113
|
+
};
|
93
114
|
DescriptionListWithIcons.args = {
|
94
115
|
items: [
|
95
116
|
{
|
@@ -103,6 +124,9 @@ DescriptionListWithIcons.args = {
|
|
103
124
|
};
|
104
125
|
|
105
126
|
export const PlainDescriptionListWithIcons = DescriptionListTemplate.bind({});
|
127
|
+
PlainDescriptionListWithIcons.parameters = {
|
128
|
+
chromatic: { disableSnapshot: true },
|
129
|
+
};
|
106
130
|
PlainDescriptionListWithIcons.args = {
|
107
131
|
items: [
|
108
132
|
{
|
@@ -117,6 +141,9 @@ PlainDescriptionListWithIcons.args = {
|
|
117
141
|
};
|
118
142
|
|
119
143
|
export const ComplexDescriptionList = DescriptionListTemplate.bind({});
|
144
|
+
ComplexDescriptionList.parameters = {
|
145
|
+
chromatic: { disableSnapshot: true },
|
146
|
+
};
|
120
147
|
ComplexDescriptionList.args = {
|
121
148
|
items: [
|
122
149
|
{ title: "Alpha", description: "Lorem ipsum" },
|
@@ -146,6 +173,9 @@ const ChipListTemplate = ({ items, plain, classes }) =>
|
|
146
173
|
"",
|
147
174
|
)}</ul>`;
|
148
175
|
export const ChipList = ChipListTemplate.bind({});
|
176
|
+
ChipList.parameters = {
|
177
|
+
chromatic: { disableSnapshot: true },
|
178
|
+
};
|
149
179
|
ChipList.args = {
|
150
180
|
items: [
|
151
181
|
{ text: "Alpha", icon: "heart" },
|
@@ -21,9 +21,15 @@ const Template = () => {
|
|
21
21
|
};
|
22
22
|
|
23
23
|
export const Margin = Template.bind({});
|
24
|
+
Margin.parameters = {
|
25
|
+
chromatic: { disableSnapshot: true },
|
26
|
+
};
|
24
27
|
Margin.args = {};
|
25
28
|
|
26
29
|
export const MarginMobile = Template.bind({});
|
30
|
+
MarginMobile.parameters = {
|
31
|
+
chromatic: { disableSnapshot: true },
|
32
|
+
};
|
27
33
|
MarginMobile.parameters = {
|
28
34
|
viewport: {
|
29
35
|
defaultViewport: "small",
|
@@ -26,6 +26,9 @@ const HeadingGroupTemplate = ({
|
|
26
26
|
</hgroup>`;
|
27
27
|
|
28
28
|
export const HeadingGroup = HeadingGroupTemplate.bind({});
|
29
|
+
HeadingGroup.parameters = {
|
30
|
+
chromatic: { disableSnapshot: true },
|
31
|
+
};
|
29
32
|
HeadingGroup.args = {
|
30
33
|
supertitle: "Record revealed",
|
31
34
|
title: "The Monteagle Letter",
|
@@ -52,6 +55,9 @@ const HeadingGroupSingleSentenceTemplate = ({
|
|
52
55
|
|
53
56
|
export const HeadingGroupSingleSentence =
|
54
57
|
HeadingGroupSingleSentenceTemplate.bind({});
|
58
|
+
HeadingGroupSingleSentence.parameters = {
|
59
|
+
chromatic: { disableSnapshot: true },
|
60
|
+
};
|
55
61
|
HeadingGroupSingleSentence.args = {
|
56
62
|
supertitle: "The story of",
|
57
63
|
title: "Alice Hawkins",
|
@@ -76,6 +82,9 @@ const HeadingGroupPlainSupertitleTemplate = ({
|
|
76
82
|
|
77
83
|
export const HeadingGroupPlainSupertitle =
|
78
84
|
HeadingGroupPlainSupertitleTemplate.bind({});
|
85
|
+
HeadingGroupPlainSupertitle.parameters = {
|
86
|
+
chromatic: { disableSnapshot: true },
|
87
|
+
};
|
79
88
|
HeadingGroupPlainSupertitle.args = {
|
80
89
|
supertitle: "Record revealed",
|
81
90
|
title: "The Monteagle Letter",
|
@@ -10,6 +10,9 @@ export default {
|
|
10
10
|
const ParagraphTemplate = ({ paragraphs }) =>
|
11
11
|
paragraphs.map((paragraph) => `<p>${paragraph}</p>`).join("");
|
12
12
|
export const Paragraph = ParagraphTemplate.bind({});
|
13
|
+
Paragraph.parameters = {
|
14
|
+
chromatic: { disableSnapshot: true },
|
15
|
+
};
|
13
16
|
Paragraph.args = {
|
14
17
|
paragraphs: [
|
15
18
|
"This is some body text.",
|
@@ -23,6 +26,9 @@ const LargeParagraphTemplate = ({ paragraphs }) =>
|
|
23
26
|
.map((paragraph) => `<p class="tna-large-paragraph">${paragraph}</p>`)
|
24
27
|
.join("");
|
25
28
|
export const LargeParagraph = LargeParagraphTemplate.bind({});
|
29
|
+
LargeParagraph.parameters = {
|
30
|
+
chromatic: { disableSnapshot: true },
|
31
|
+
};
|
26
32
|
LargeParagraph.args = {
|
27
33
|
paragraphs: [
|
28
34
|
"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam vel tincidunt velit, a molestie turpis. Sed odio libero, sodales eleifend lorem sit amet, feugiat consequat nibh. Donec ac tellus in dui rutrum maximus. Aliquam vel euismod eros. Integer ut magna velit. Fusce sed dui sit amet metus eleifend dictum quis vitae mi. Aenean sagittis euismod purus, in accumsan metus venenatis nec. Nullam nec velit felis. Sed nec felis eu nisl varius dictum eu quis nisl. Donec dapibus est arcu, vel pellentesque risus pellentesque eget.",
|
@@ -34,6 +40,9 @@ const HeadingLinkTemplate = ({ text, href }) =>
|
|
34
40
|
<a href="${href}">${text}</a>
|
35
41
|
</h2>`;
|
36
42
|
export const HeadingLink = HeadingLinkTemplate.bind({});
|
43
|
+
HeadingLink.parameters = {
|
44
|
+
chromatic: { disableSnapshot: true },
|
45
|
+
};
|
37
46
|
HeadingLink.args = {
|
38
47
|
text: "Researching with The National Archives",
|
39
48
|
href: "#",
|
@@ -44,6 +53,9 @@ const SceneSetterTemplate = ({ text }) =>
|
|
44
53
|
${text}
|
45
54
|
</p>`;
|
46
55
|
export const SceneSetter = SceneSetterTemplate.bind({});
|
56
|
+
SceneSetter.parameters = {
|
57
|
+
chromatic: { disableSnapshot: true },
|
58
|
+
};
|
47
59
|
SceneSetter.args = {
|
48
60
|
text: `We are the official archive of England and Wales. Discover 1,000 years of history through <a href="#">fascinating stories</a> from the past or <a href="#">start your own research</a> and <a href="#">search our catalogue</a> of 32 million records. <a href="#">Plan a visit</a> to access original historic documents from our collections then enjoy the grounds, café, and <a href="#">free exhibitions</a>.`,
|
49
61
|
};
|
@@ -53,6 +65,9 @@ const SceneSetterSmallTemplate = ({ text }) =>
|
|
53
65
|
${text}
|
54
66
|
</p>`;
|
55
67
|
export const SceneSetterSmall = SceneSetterSmallTemplate.bind({});
|
68
|
+
SceneSetterSmall.parameters = {
|
69
|
+
chromatic: { disableSnapshot: true },
|
70
|
+
};
|
56
71
|
SceneSetterSmall.args = {
|
57
72
|
text: `We are the official archive of England and Wales. Discover 1,000 years of history through <a href="#">fascinating stories</a> from the past or <a href="#">start your own research</a> and <a href="#">search our catalogue</a> of 32 million records. <a href="#">Plan a visit</a> to access original historic documents from our collections then enjoy the grounds, café, and <a href="#">free exhibitions</a>.`,
|
58
73
|
};
|
@@ -67,6 +82,9 @@ const BlockquoteTemplate = ({
|
|
67
82
|
<p class="tna-blockquote__citation">${author}</p>
|
68
83
|
</blockquote>`;
|
69
84
|
export const Blockquote = BlockquoteTemplate.bind({});
|
85
|
+
Blockquote.parameters = {
|
86
|
+
chromatic: { disableSnapshot: true },
|
87
|
+
};
|
70
88
|
Blockquote.args = {
|
71
89
|
html: "<p>A common mistake that people make when trying to design something completely foolproof is to underestimate the ingenuity of complete fools.</p>",
|
72
90
|
author: "Douglas Adams, Mostly Harmless",
|