@nationalarchives/frontend 0.42.0 → 0.43.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 (25) hide show
  1. package/govuk-prototype-kit.config.json +4 -4
  2. package/nationalarchives/all.css +1 -1
  3. package/nationalarchives/all.css.map +1 -1
  4. package/nationalarchives/assets/images/nationalarchives-opengraph-image-dark.png +0 -0
  5. package/nationalarchives/assets/images/nationalarchives-opengraph-image.png +0 -0
  6. package/nationalarchives/components/breadcrumbs/breadcrumbs.css +1 -1
  7. package/nationalarchives/components/breadcrumbs/breadcrumbs.css.map +1 -1
  8. package/nationalarchives/components/breadcrumbs/breadcrumbs.scss +3 -0
  9. package/nationalarchives/components/card/fixtures.json +10 -0
  10. package/nationalarchives/components/card/macro-options.json +1 -1
  11. package/nationalarchives/components/card/template.njk +2 -0
  12. package/nationalarchives/components/hero/fixtures.json +26 -26
  13. package/nationalarchives/components/hero/hero.css +1 -1
  14. package/nationalarchives/components/hero/hero.css.map +1 -1
  15. package/nationalarchives/components/hero/hero.scss +130 -176
  16. package/nationalarchives/components/hero/macro-options.json +2 -2
  17. package/nationalarchives/components/hero/template.njk +13 -10
  18. package/nationalarchives/prototype-kit.css +1 -1
  19. package/nationalarchives/prototype-kit.css.map +1 -1
  20. package/nationalarchives/templates/prototype-kit/_base.njk +2 -0
  21. package/nationalarchives/templates/prototype-kit/error-page-not-found.njk +0 -2
  22. package/nationalarchives/templates/prototype-kit/list.njk +0 -2
  23. package/nationalarchives/templates/prototype-kit/plain-with-sidebar.njk +0 -2
  24. package/nationalarchives/templates/prototype-kit/plain.njk +0 -2
  25. package/package.json +2 -2
@@ -1,5 +1,7 @@
1
1
  {%- extends "nationalarchives/templates/layouts/_generic.njk" -%}
2
2
 
3
+ {% set theme = theme or 'light' %}
4
+ {% set themeAccent = themeAccent or 'green' %}
3
5
  {% set assetPath = '/plugin-assets/%40nationalarchives%2Ffrontend/nationalarchives/assets/' %}
4
6
 
5
7
  {% block stylesheets %}
@@ -1,8 +1,6 @@
1
1
  {%- extends "nationalarchives/templates/prototype-kit/_base.njk" -%}
2
2
 
3
3
  {% set pageTitle = 'Page not found' %}
4
- {% set theme = 'light' %}
5
- {% set themeAccent = 'blue' %}
6
4
 
7
5
  {% block content %}
8
6
  <div class="tna-section">
@@ -4,8 +4,6 @@
4
4
  {%- from "nationalarchives/components/card/macro.njk" import tnaCard -%}
5
5
 
6
6
  {% set pageTitle = 'List page' %}
7
- {% set theme = 'light' %}
8
- {% set themeAccent = 'blue' %}
9
7
 
10
8
  {% block beforeContent %}
11
9
  <div class="tna-background-accent">
@@ -4,8 +4,6 @@
4
4
  {%- from "nationalarchives/components/sidebar/macro.njk" import tnaSidebar -%}
5
5
 
6
6
  {% set pageTitle = 'Plain page with sidebar' %}
7
- {% set theme = 'light' %}
8
- {% set themeAccent = 'blue' %}
9
7
 
10
8
  {% block beforeContent %}
11
9
  <div class="tna-container">
@@ -3,8 +3,6 @@
3
3
  {%- from "nationalarchives/components/breadcrumbs/macro.njk" import tnaBreadcrumbs -%}
4
4
 
5
5
  {% set pageTitle = 'Plain page' %}
6
- {% set theme = 'light' %}
7
- {% set themeAccent = 'blue' %}
8
6
 
9
7
  {% block beforeContent %}
10
8
  <div class="tna-container">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nationalarchives/frontend",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "The National Archives frontend styles",
5
5
  "scripts": {
6
6
  "start": "storybook dev -p 6006",
@@ -65,7 +65,7 @@
65
65
  "axe-playwright": "^2.0.3",
66
66
  "babel-jest": "^30.1.1",
67
67
  "babel-loader": "^10.0.0",
68
- "chromatic": "^16.0.0",
68
+ "chromatic": "^17.0.0",
69
69
  "copy-webpack-plugin": "^14.0.0",
70
70
  "css-loader": "^7.1.2",
71
71
  "diff": "^9.0.0",