@ons/design-system 72.10.9 → 72.10.10
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/README.md +9 -5
- package/components/announcement-banner/_announcement-banner.scss +24 -0
- package/components/announcement-banner/_macro.njk +33 -0
- package/components/announcement-banner/_macro.spec.js +106 -0
- package/components/announcement-banner/_test_examples.js +22 -0
- package/components/announcement-banner/example-banner-black.njk +12 -0
- package/components/announcement-banner/example-banner-red.njk +13 -0
- package/components/announcement-banner/example-banner-teal.njk +13 -0
- package/components/button/_button.scss +29 -1
- package/components/chart/_chart.scss +3 -0
- package/components/chart/_macro.njk +10 -4
- package/components/chart/_macro.spec.js +1150 -642
- package/components/chart/chart-iframe-resize.js +2 -2
- package/components/chart/example-iframe-chart.njk +1 -1
- package/components/duration/example-duration-error-for-single-field.njk +0 -1
- package/components/duration/example-duration-error.njk +0 -1
- package/components/footer/_macro.spec.js +2 -2
- package/components/header/_macro.njk +5 -16
- package/components/header/example-header-button-and-navigation.njk +133 -0
- package/components/header/example-header-external-with-navigation-and-search.njk +1 -1
- package/components/navigation/_macro.njk +11 -16
- package/components/navigation/_navigation.scss +24 -0
- package/components/table/_macro.njk +107 -112
- package/components/table/_macro.spec.js +35 -44
- package/components/table/_table.scss +0 -12
- package/components/table/example-table-sortable.njk +1 -1
- package/components/tabs/example-tabs-details.njk +1 -1
- package/components/textarea/_macro.njk +1 -0
- package/components/textarea/_macro.spec.js +1 -0
- package/components/timeout-panel/timeout-panel.spec.js +1 -1
- package/css/main.css +1 -1
- package/layout/_template.njk +13 -0
- package/package.json +3 -3
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/main.scss +1 -0
- package/scss/vars/_colors.scss +3 -0
- package/scss/vars/_forms.scss +11 -0
- package/components/table/example-table-scrollable.njk +0 -158
package/layout/_template.njk
CHANGED
|
@@ -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.
|
|
4
|
+
"version": "72.10.10",
|
|
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.
|
|
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": "^
|
|
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",
|