@ons/design-system 72.10.9 → 72.11.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 (39) hide show
  1. package/README.md +9 -5
  2. package/components/announcement-banner/_announcement-banner.scss +24 -0
  3. package/components/announcement-banner/_macro.njk +33 -0
  4. package/components/announcement-banner/_macro.spec.js +106 -0
  5. package/components/announcement-banner/_test_examples.js +22 -0
  6. package/components/announcement-banner/example-banner-black.njk +12 -0
  7. package/components/announcement-banner/example-banner-red.njk +13 -0
  8. package/components/announcement-banner/example-banner-teal.njk +13 -0
  9. package/components/button/_button.scss +29 -1
  10. package/components/chart/_chart.scss +3 -0
  11. package/components/chart/_macro.njk +10 -4
  12. package/components/chart/_macro.spec.js +1150 -642
  13. package/components/chart/chart-iframe-resize.js +2 -2
  14. package/components/chart/example-iframe-chart.njk +1 -1
  15. package/components/duration/example-duration-error-for-single-field.njk +0 -1
  16. package/components/duration/example-duration-error.njk +0 -1
  17. package/components/footer/_macro.spec.js +2 -2
  18. package/components/header/_macro.njk +5 -16
  19. package/components/header/example-header-button-and-navigation.njk +133 -0
  20. package/components/header/example-header-external-with-navigation-and-search.njk +1 -1
  21. package/components/navigation/_macro.njk +11 -16
  22. package/components/navigation/_navigation.scss +24 -0
  23. package/components/table/_macro.njk +107 -112
  24. package/components/table/_macro.spec.js +35 -44
  25. package/components/table/_table.scss +0 -12
  26. package/components/table/example-table-sortable.njk +1 -1
  27. package/components/tabs/example-tabs-details.njk +1 -1
  28. package/components/textarea/_macro.njk +1 -0
  29. package/components/textarea/_macro.spec.js +1 -0
  30. package/components/timeout-panel/timeout-panel.spec.js +1 -1
  31. package/css/main.css +1 -1
  32. package/layout/_template.njk +13 -0
  33. package/package.json +3 -3
  34. package/scripts/main.es5.js +1 -1
  35. package/scripts/main.js +1 -1
  36. package/scss/main.scss +1 -0
  37. package/scss/vars/_colors.scss +3 -0
  38. package/scss/vars/_forms.scss +11 -0
  39. package/components/table/example-table-scrollable.njk +0 -158
@@ -146,6 +146,19 @@
146
146
  })
147
147
  }}
148
148
  {% endblock %}
149
+ {% block announcementBanner %}
150
+ {% if pageConfig.announcementBanner %}
151
+ {% from "components/announcement-banner/_macro.njk" import onsAnnouncementBanner %}
152
+ {{
153
+ onsAnnouncementBanner({
154
+ "variants": pageConfig.announcementBanner.variants,
155
+ "title": pageConfig.announcementBanner.title,
156
+ "description": pageConfig.announcementBanner.description,
157
+ "link": pageConfig.announcementBanner.link
158
+ })
159
+ }}
160
+ {% endif %}
161
+ {% endblock %}
149
162
  {% block header %}
150
163
  {{
151
164
  onsHeader({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ons/design-system",
3
3
  "description": "ONS Design System built CSS, JS, and Nunjucks templates",
4
- "version": "72.10.9",
4
+ "version": "72.11.0",
5
5
  "main": "index.js",
6
6
  "license": "MIT",
7
7
  "author": {
@@ -68,7 +68,7 @@
68
68
  "autoprefixer": "^10.4.21",
69
69
  "babel-plugin-istanbul": "^7.0.0",
70
70
  "babelify": "^10.0.0",
71
- "backstopjs": "^6.1.4",
71
+ "backstopjs": "^6.3.25",
72
72
  "browser-sync": "^3.0.4",
73
73
  "browserify": "^17.0.1",
74
74
  "chalk": "^4.1.2",
@@ -102,7 +102,7 @@
102
102
  "jest-environment-jsdom": "^29.6.1",
103
103
  "jest-puppeteer": "^11.0.0",
104
104
  "jsdom": "^26.1.0",
105
- "lighthouse": "^11.0.0",
105
+ "lighthouse": "^12.0.0",
106
106
  "lint-staged": "^15.2.0",
107
107
  "lodash": "^4.17.21",
108
108
  "mdn-polyfills": "^5.14.0",