@nationalarchives/frontend 0.33.2 → 0.34.0

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 (54) hide show
  1. package/nationalarchives/all+analytics.js +1 -1
  2. package/nationalarchives/all+analytics.js.map +1 -1
  3. package/nationalarchives/all.css +1 -1
  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/fa-brands-400.woff2 +0 -0
  8. package/nationalarchives/assets/fonts/fa-solid-900.woff2 +0 -0
  9. package/nationalarchives/assets/images/mask-icon.svg +3 -3
  10. package/nationalarchives/assets/images/tna-square-logo.svg +3 -3
  11. package/nationalarchives/components/footer/fixtures.json +8 -8
  12. package/nationalarchives/components/footer/footer.css +1 -1
  13. package/nationalarchives/components/footer/footer.css.map +1 -1
  14. package/nationalarchives/components/footer/footer.scss +0 -8
  15. package/nationalarchives/components/footer/template.njk +12 -17
  16. package/nationalarchives/components/gallery/fixtures.json +3 -3
  17. package/nationalarchives/components/gallery/template.njk +2 -2
  18. package/nationalarchives/components/global-header/fixtures.json +11 -11
  19. package/nationalarchives/components/global-header/global-header.css +1 -1
  20. package/nationalarchives/components/global-header/global-header.css.map +1 -1
  21. package/nationalarchives/components/global-header/global-header.scss +0 -9
  22. package/nationalarchives/components/global-header/template.njk +5 -12
  23. package/nationalarchives/components/header/fixtures.json +4 -4
  24. package/nationalarchives/components/header/header.css +1 -1
  25. package/nationalarchives/components/header/header.css.map +1 -1
  26. package/nationalarchives/components/header/header.scss +0 -10
  27. package/nationalarchives/components/header/template.njk +2 -9
  28. package/nationalarchives/components/pagination/fixtures.json +6 -6
  29. package/nationalarchives/components/pagination/template.njk +2 -2
  30. package/nationalarchives/components/search-field/fixtures.json +9 -9
  31. package/nationalarchives/components/search-field/template.njk +1 -1
  32. package/nationalarchives/components/text-input/text-input.js +1 -1
  33. package/nationalarchives/components/text-input/text-input.js.map +1 -1
  34. package/nationalarchives/components/text-input/text-input.mjs +2 -2
  35. package/nationalarchives/email.css +1 -0
  36. package/nationalarchives/email.css.map +1 -0
  37. package/nationalarchives/email.scss +143 -0
  38. package/nationalarchives/error-page.css +1 -1
  39. package/nationalarchives/error-page.css.map +1 -1
  40. package/nationalarchives/font-awesome.css +8 -8
  41. package/nationalarchives/font-awesome.css.map +1 -1
  42. package/nationalarchives/prototype-kit.css +1 -1
  43. package/nationalarchives/prototype-kit.css.map +1 -1
  44. package/nationalarchives/templates/email.njk +147 -0
  45. package/nationalarchives/templates/fixtures.json +88 -6
  46. package/nationalarchives/templates/partials/logo.njk +11 -0
  47. package/nationalarchives/templates/plain.njk +0 -58
  48. package/nationalarchives/utilities/logo.css +1 -0
  49. package/nationalarchives/utilities/logo.css.map +1 -0
  50. package/nationalarchives/utilities/logo.scss +27 -0
  51. package/nationalarchives/utilities/typography/_index.scss +11 -0
  52. package/package.json +2 -2
  53. package/nationalarchives/templates/templates.stories.js.TEMP +0 -28
  54. /package/nationalarchives/utilities/{_global.scss → global/_index.scss} +0 -0
@@ -0,0 +1,11 @@
1
+ {% macro tnaLogo(params) %}
2
+ <span class="tna-logo{% if params.solid %} tna-logo--solid{% endif %}{% if params.adornable %} tna-logo--adornable{% endif %}">
3
+ <svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 160 160" width="{{ params.size or '96' }}" height="{{ params.size or '96' }}" aria-hidden="true" focusable="false">
4
+ <path class="tna-logo__background" fill="transparent" d="M0 0h160v160H0z" />
5
+ <g class="tna-logo__foreground" fill="currentColor">
6
+ <path d="M1.9 107.2h156.3V158H1.9v-50.8zm0-52.7h156.3v50.8H1.9V54.5zm0-52.6h77.2v50.8H1.9V1.9zm79 0h77.2v50.8H80.9V1.9zm0-1.9H0v160h160V0H80.9z" />
7
+ <path d="M21.3 19.5h-5.4v-3h14.3v3h-5.4v18.4h-3.5zM31.6 16.5H35v9h8.4v-9h3.4v21.4h-3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span>
11
+ {% endmacro %}
@@ -29,64 +29,6 @@
29
29
  </h1>
30
30
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris at magna est. Sed vel fermentum arcu. Suspendisse viverra est nec interdum tincidunt. Phasellus dictum, turpis eget iaculis tincidunt, ex metus porttitor turpis, ut pulvinar risus erat quis dui. Nam semper sapien a ipsum congue pharetra.</p>
31
31
  <p>Donec cursus, eros eu egestas aliquam, ipsum ligula suscipit metus, eget maximus turpis nisl vitae ex. Etiam ornare convallis quam a consequat. Etiam sodales aliquet nulla, id rutrum justo accumsan sed.</p>
32
- <ul class="tna-ul">
33
- <li>Alpha</li>
34
- <li>Beta</li>
35
- <li>Gamma</li>
36
- </ul>
37
- <ol class="tna-ol">
38
- <li>Alpha</li>
39
- <li>Beta</li>
40
- <li>Gamma</li>
41
- </ol>
42
- <dl class="tna-dl">
43
- <dt>Alpha</dt>
44
- <dd>Lorem ipsum</dd>
45
- <dt>Beta</dt>
46
- <dd>Lorem ipsum</dd>
47
- <dt>Gamma</dt>
48
- <dd>Lorem ipsum</dd>
49
- <dt>Delta</dt>
50
- <dd>Lorem ipsum</dd>
51
- <dt>Epsilon</dt>
52
- <dd>Lorem ipsum</dd>
53
- </dl>
54
- <table class="tna-table">
55
- <caption class="tna-table__caption">
56
- Records added and removed between 2020 and 2022.
57
- </caption>
58
- <thead class="tna-table__head">
59
- <tr class="tna-table__row">
60
- <th class="tna-table__header">Year</th>
61
- <th class="tna-table__header tna-table__header--numeric">Records added</th>
62
- <th class="tna-table__header tna-table__header--numeric">Records removed</th>
63
- </tr>
64
- </thead>
65
- <tbody class="tna-table__body">
66
- <tr>
67
- <th class="tna-table__header">2020</th>
68
- <td class="tna-table__cell tna-table__cell--numeric">123,456</td>
69
- <td class="tna-table__cell tna-table__cell--numeric">789</td>
70
- </tr>
71
- <tr>
72
- <th class="tna-table__header">2021</th>
73
- <td class="tna-table__cell tna-table__cell--numeric">456,789</td>
74
- <td class="tna-table__cell tna-table__cell--numeric">123</td>
75
- </tr>
76
- <tr>
77
- <th class="tna-table__header">2022</th>
78
- <td class="tna-table__cell tna-table__cell--numeric">42,424</td>
79
- <td class="tna-table__cell tna-table__cell--numeric">1,337</td>
80
- </tr>
81
- </tbody>
82
- <tfoot class="tna-table__foot">
83
- <tr>
84
- <th class="tna-table__header">Total</th>
85
- <td class="tna-table__cell tna-table__cell--numeric">622,669</td>
86
- <td class="tna-table__cell tna-table__cell--numeric">2,249</td>
87
- </tr>
88
- </tfoot>
89
- </table>
90
32
  </div>
91
33
  </div>
92
34
  </div>
@@ -0,0 +1 @@
1
+ .tna-logo{width:6rem;aspect-ratio:1;display:block}.tna-logo svg{width:100%;height:100%}.tna-logo__background{fill:rgba(0,0,0,0)}.tna-logo__foreground{fill:currentColor}.tna-logo--solid .tna-logo__background{fill:#fff}.tna-logo--solid .tna-logo__foreground{fill:#010101}/*# sourceMappingURL=logo.css.map */
@@ -0,0 +1 @@
1
+ {"version":3,"sourceRoot":"","sources":["../../../src/nationalarchives/utilities/logo.scss"],"names":[],"mappings":"AAAA,UACE,WACA,eAEA,cAEA,cACE,WACA,YAGF,sBACE,mBAGF,sBACE,kBAGF,uCACE,UAGF,uCACE","file":"logo.css","sourcesContent":[".tna-logo {\n width: 6rem;\n aspect-ratio: 1;\n\n display: block;\n\n svg {\n width: 100%;\n height: 100%;\n }\n\n &__background {\n fill: transparent;\n }\n\n &__foreground {\n fill: currentColor;\n }\n\n &--solid &__background {\n fill: #fff;\n }\n\n &--solid &__foreground {\n fill: #010101;\n }\n}\n"]}
@@ -0,0 +1,27 @@
1
+ .tna-logo {
2
+ width: 6rem;
3
+ aspect-ratio: 1;
4
+
5
+ display: block;
6
+
7
+ svg {
8
+ width: 100%;
9
+ height: 100%;
10
+ }
11
+
12
+ &__background {
13
+ fill: transparent;
14
+ }
15
+
16
+ &__foreground {
17
+ fill: currentColor;
18
+ }
19
+
20
+ &--solid &__background {
21
+ fill: #fff;
22
+ }
23
+
24
+ &--solid &__foreground {
25
+ fill: #010101;
26
+ }
27
+ }
@@ -442,6 +442,17 @@ small {
442
442
 
443
443
  @include colour.thick-keyline-accent(left);
444
444
 
445
+ // &::before {
446
+ // content: "\201C";
447
+
448
+ // display: block;
449
+
450
+ // font-family: Georgia, "Times New Roman", Times, serif;
451
+ // font-size: 3em;
452
+ // line-height: 1;
453
+ // @include colour.colour-font("font-light");
454
+ // }
455
+
445
456
  &__quote {
446
457
  @include typography.main-font-weight-medium;
447
458
  quotes: auto;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/frontend",
3
- "version": "0.33.2",
3
+ "version": "0.34.0",
4
4
  "description": "The National Archives frontend styles",
5
5
  "scripts": {
6
6
  "start": "storybook dev -p 6006",
@@ -45,7 +45,7 @@
45
45
  "sass": "nationalarchives/all.scss",
46
46
  "homepage": "https://github.com/nationalarchives/tna-frontend#readme",
47
47
  "dependencies": {
48
- "@fortawesome/fontawesome-free": "^7.0.1"
48
+ "@fortawesome/fontawesome-free": "^7.2.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "@babel/core": "^7.25.8",
@@ -1,28 +0,0 @@
1
- import PlainTemplate from "./plain.njk";
2
- import ListTemplate from "./list.njk";
3
- import IndexGridTemplate from "./index-grid.njk";
4
- import ErrorPageNotFoundTemplate from "./error-page-not-found.njk";
5
-
6
- export default {
7
- title: "Templates/Prototype kit",
8
- };
9
-
10
- export const Plain = () =>
11
- PlainTemplate({
12
- params: {},
13
- });
14
-
15
- export const List = () =>
16
- ListTemplate({
17
- params: {},
18
- });
19
-
20
- export const IndexGrid = () =>
21
- IndexGridTemplate({
22
- params: {},
23
- });
24
-
25
- export const ErrorPageNotFound = () =>
26
- ErrorPageNotFoundTemplate({
27
- params: {},
28
- });