@nationalarchives/frontend 0.1.16-prerelease → 0.1.17-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 (87) hide show
  1. package/nationalarchives/all.css +13 -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.scss +2 -3
  6. package/nationalarchives/assets/fonts/fa-brands-400.ttf +0 -0
  7. package/nationalarchives/assets/fonts/fa-brands-400.woff2 +0 -0
  8. package/nationalarchives/assets/fonts/fa-regular-400.ttf +0 -0
  9. package/nationalarchives/assets/fonts/fa-regular-400.woff2 +0 -0
  10. package/nationalarchives/assets/fonts/fa-solid-900.ttf +0 -0
  11. package/nationalarchives/assets/fonts/fa-solid-900.woff2 +0 -0
  12. package/nationalarchives/components/breadcrumbs/_index.scss +2 -2
  13. package/nationalarchives/components/button/_button-group.scss +18 -0
  14. package/nationalarchives/components/button/_index.scss +24 -7
  15. package/nationalarchives/components/button/button.stories.js +63 -6
  16. package/nationalarchives/components/button/fixtures.json +3 -3
  17. package/nationalarchives/components/button/macro-options.json +13 -1
  18. package/nationalarchives/components/button/template.njk +7 -2
  19. package/nationalarchives/components/card/_index.scss +62 -47
  20. package/nationalarchives/components/card/card.stories.js +59 -8
  21. package/nationalarchives/components/card/fixtures.json +59 -20
  22. package/nationalarchives/components/card/macro-options.json +14 -2
  23. package/nationalarchives/components/card/template.njk +12 -8
  24. package/nationalarchives/components/filters/_index.scss +19 -14
  25. package/nationalarchives/components/footer/_index.scss +194 -60
  26. package/nationalarchives/components/footer/fixtures.json +1 -1
  27. package/nationalarchives/components/footer/footer.stories.js +80 -71
  28. package/nationalarchives/components/footer/macro-options.json +34 -8
  29. package/nationalarchives/components/footer/template.njk +110 -53
  30. package/nationalarchives/components/header/_index.scss +40 -4
  31. package/nationalarchives/components/hero/_index.scss +1 -1
  32. package/nationalarchives/components/index-grid/_index.scss +27 -5
  33. package/nationalarchives/components/index-grid/index-grid.stories.js +25 -1
  34. package/nationalarchives/components/index-grid/macro-options.json +12 -0
  35. package/nationalarchives/components/index-grid/template.njk +9 -11
  36. package/nationalarchives/components/message/_index.scss +8 -0
  37. package/nationalarchives/components/picture/_index.scss +2 -0
  38. package/nationalarchives/components/picture/picture.js +1 -1
  39. package/nationalarchives/components/picture/picture.js.map +1 -1
  40. package/nationalarchives/components/picture/picture.mjs +2 -0
  41. package/nationalarchives/components/skip-link/skip-link.stories.js +3 -2
  42. package/nationalarchives/components/tabs/_index.scss +6 -3
  43. package/nationalarchives/components/tabs/tabs.stories.js +6 -6
  44. package/nationalarchives/lib/font-awesome/_animated.scss +276 -0
  45. package/nationalarchives/lib/font-awesome/_bordered-pulled.scss +20 -0
  46. package/nationalarchives/lib/font-awesome/_core.scss +42 -0
  47. package/nationalarchives/lib/font-awesome/_fixed-width.scss +7 -0
  48. package/nationalarchives/lib/font-awesome/_functions.scss +57 -0
  49. package/nationalarchives/lib/font-awesome/_icons.scss +11 -0
  50. package/nationalarchives/lib/font-awesome/_list.scss +20 -0
  51. package/nationalarchives/lib/font-awesome/_mixins.scss +74 -0
  52. package/nationalarchives/lib/font-awesome/_rotated-flipped.scss +31 -0
  53. package/nationalarchives/lib/font-awesome/_screen-reader.scss +14 -0
  54. package/nationalarchives/lib/font-awesome/_shims.scss +2653 -0
  55. package/nationalarchives/lib/font-awesome/_sizing.scss +16 -0
  56. package/nationalarchives/lib/font-awesome/_stacked.scss +32 -0
  57. package/nationalarchives/lib/font-awesome/_variables.scss +4976 -0
  58. package/nationalarchives/lib/font-awesome/brands.scss +34 -0
  59. package/nationalarchives/lib/font-awesome/fontawesome.scss +21 -0
  60. package/nationalarchives/lib/font-awesome/regular.scss +28 -0
  61. package/nationalarchives/lib/font-awesome/solid.scss +28 -0
  62. package/nationalarchives/lib/font-awesome/v4-shims.scss +11 -0
  63. package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.mdx +22 -0
  64. package/nationalarchives/stories/utilities/colour-schemes/colour-schemes.stories.js +483 -97
  65. package/nationalarchives/stories/utilities/overrides/overrides.mdx +37 -57
  66. package/nationalarchives/stories/utilities/typography/heading-groups.stories.js +1 -1
  67. package/nationalarchives/stories/utilities/typography/typography.mdx +2 -0
  68. package/nationalarchives/stories/utilities/typography/typography.stories.js +20 -1
  69. package/nationalarchives/tools/_colour.scss +86 -41
  70. package/nationalarchives/tools/_typography.scss +13 -0
  71. package/nationalarchives/utilities/_font-awesome.scss +5 -0
  72. package/nationalarchives/utilities/_global.scss +70 -26
  73. package/nationalarchives/utilities/_index.scss +1 -0
  74. package/nationalarchives/utilities/_overrides.scss +42 -10
  75. package/nationalarchives/utilities/_typography.scss +198 -59
  76. package/nationalarchives/variables/_assets.scss +1 -0
  77. package/nationalarchives/variables/_colour.scss +29 -23
  78. package/nationalarchives/variables/_index.scss +1 -0
  79. package/nationalarchives/variables/_spacing.scss +3 -1
  80. package/nationalarchives/variables/_typography.scss +4 -1
  81. package/package.json +13 -13
  82. package/nationalarchives/patterns/_index.scss +0 -1
  83. package/nationalarchives/patterns/featured-collection/_index.scss +0 -13
  84. package/nationalarchives/patterns/featured-collection/featured-collection.stories.js +0 -34
  85. package/nationalarchives/patterns/featured-collection/macro-options.json +0 -20
  86. package/nationalarchives/patterns/featured-collection/macro.njk +0 -3
  87. package/nationalarchives/patterns/featured-collection/template.njk +0 -96
@@ -0,0 +1,34 @@
1
+ /*!
2
+ * Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ * Copyright 2023 Fonticons, Inc.
5
+ */
6
+ @import "functions";
7
+ @import "variables";
8
+
9
+ :root,
10
+ :host {
11
+ --#{$fa-css-prefix}-style-family-brands: "Font Awesome 6 Brands";
12
+ --#{$fa-css-prefix}-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
13
+ }
14
+
15
+ @font-face {
16
+ font-family: "Font Awesome 6 Brands";
17
+ font-style: normal;
18
+ font-weight: 400;
19
+ font-display: $fa-font-display;
20
+ src:
21
+ url("#{$fa-font-path}/fa-brands-400.woff2") format("woff2"),
22
+ url("#{$fa-font-path}/fa-brands-400.ttf") format("truetype");
23
+ }
24
+
25
+ .fab,
26
+ .#{$fa-css-prefix}-brands {
27
+ font-weight: 400;
28
+ }
29
+
30
+ @each $name, $icon in $fa-brand-icons {
31
+ .#{$fa-css-prefix}-#{$name}:before {
32
+ content: unquote('"#{ $icon }"');
33
+ }
34
+ }
@@ -0,0 +1,21 @@
1
+ /*!
2
+ * Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ * Copyright 2023 Fonticons, Inc.
5
+ */
6
+ // Font Awesome core compile (Web Fonts-based)
7
+ // -------------------------
8
+
9
+ @import "functions";
10
+ @import "variables";
11
+ @import "mixins";
12
+ @import "core";
13
+ @import "sizing";
14
+ @import "fixed-width";
15
+ @import "list";
16
+ @import "bordered-pulled";
17
+ @import "animated";
18
+ @import "rotated-flipped";
19
+ @import "stacked";
20
+ @import "icons";
21
+ @import "screen-reader";
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ * Copyright 2023 Fonticons, Inc.
5
+ */
6
+ @import "functions";
7
+ @import "variables";
8
+
9
+ :root,
10
+ :host {
11
+ --#{$fa-css-prefix}-style-family-classic: "#{ $fa-style-family }";
12
+ --#{$fa-css-prefix}-font-regular: normal 400 1em/1 "#{ $fa-style-family }";
13
+ }
14
+
15
+ @font-face {
16
+ font-family: "Font Awesome 6 Free";
17
+ font-style: normal;
18
+ font-weight: 400;
19
+ font-display: $fa-font-display;
20
+ src:
21
+ url("#{$fa-font-path}/fa-regular-400.woff2") format("woff2"),
22
+ url("#{$fa-font-path}/fa-regular-400.ttf") format("truetype");
23
+ }
24
+
25
+ .far,
26
+ .#{$fa-css-prefix}-regular {
27
+ font-weight: 400;
28
+ }
@@ -0,0 +1,28 @@
1
+ /*!
2
+ * Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ * Copyright 2023 Fonticons, Inc.
5
+ */
6
+ @import "functions";
7
+ @import "variables";
8
+
9
+ :root,
10
+ :host {
11
+ --#{$fa-css-prefix}-style-family-classic: "#{ $fa-style-family }";
12
+ --#{$fa-css-prefix}-font-solid: normal 900 1em/1 "#{ $fa-style-family }";
13
+ }
14
+
15
+ @font-face {
16
+ font-family: "Font Awesome 6 Free";
17
+ font-style: normal;
18
+ font-weight: 900;
19
+ font-display: $fa-font-display;
20
+ src:
21
+ url("#{$fa-font-path}/fa-solid-900.woff2") format("woff2"),
22
+ url("#{$fa-font-path}/fa-solid-900.ttf") format("truetype");
23
+ }
24
+
25
+ .fas,
26
+ .#{$fa-css-prefix}-solid {
27
+ font-weight: 900;
28
+ }
@@ -0,0 +1,11 @@
1
+ /*!
2
+ * Font Awesome Free 6.4.2 by @fontawesome - https://fontawesome.com
3
+ * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
4
+ * Copyright 2023 Fonticons, Inc.
5
+ */
6
+ // V4 shims compile (Web Fonts-based)
7
+ // -------------------------
8
+
9
+ @import "functions";
10
+ @import "variables";
11
+ @import "shims";
@@ -83,3 +83,25 @@ The high contrast themes are applied on top of the existing light and dark theme
83
83
  The colours are defined in `src/nationalarchives/variables/_colour.scss` as a separate map for each theme.
84
84
 
85
85
  This allows you to reference a colour, such as `font-base` without having to worry about which theme is currently in use.
86
+
87
+ ## Accent colours
88
+
89
+ To add accent colours to the page, add one of the following classes to the `<html>` element:
90
+
91
+ - `tna-template--yellow-accent`
92
+ - `tna-template--pink-accent`
93
+ - `tna-template--orange-accent`
94
+ - `tna-template--green-accent`
95
+ - `tna-template--blue-accent`
96
+
97
+ ```html
98
+ <html class="tna-template tna-template--system-theme tna-template--yellow-accent">
99
+ <head>
100
+ <title>System theme with yellow accents</title>
101
+ </head>
102
+ <body class="tna-template__body">
103
+ </body>
104
+ </html>
105
+ ```
106
+
107
+