@ons/design-system 73.0.4 → 73.3.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.
- package/components/chart/_chart.scss +2 -2
- package/components/chart/_macro.spec.js +32 -0
- package/components/chart/annotations-options.js +1 -0
- package/components/chart/area-chart.js +3 -0
- package/components/chart/bar-chart.js +1 -0
- package/components/chart/chart.js +6 -4
- package/components/chart/column-chart.js +3 -0
- package/components/chart/example-area-chart.njk +2 -2
- package/components/chart/example-line-chart-with-label-format.njk +89 -0
- package/components/chart/reference-line-annotations-options.js +1 -0
- package/components/chart/specific-chart-options.js +8 -1
- package/components/details-panel/_macro.njk +6 -6
- package/components/header/_header.scss +3 -3
- package/components/header/_macro.njk +153 -143
- package/components/header/_macro.spec.js +223 -0
- package/components/header/example-header-basic-with-search-and-language-DEPRECATED.njk +207 -0
- package/components/header/example-header-basic-with-search-and-language.njk +36 -27
- package/components/header/example-header-basic-with-search-button.njk +35 -27
- package/components/hero/_macro.njk +4 -1
- package/components/hero/_macro.spec.js +26 -0
- package/components/list/_list.scss +0 -3
- package/components/panel/_panel.scss +5 -0
- package/components/phase-banner/_macro.njk +10 -1
- package/components/phase-banner/_macro.spec.js +27 -0
- package/components/phase-banner/example-phase-banner-beta-with-feedback-link.njk +18 -0
- package/components/phase-banner/example-phase-banner-beta-without-feedback-link.njk +7 -0
- package/components/question/_question.scss +1 -0
- package/components/radios/_macro.njk +1 -1
- package/components/skip-to-content/_macro.njk +1 -1
- package/components/skip-to-content/_skip.scss +0 -2
- package/components/table/_macro.njk +6 -3
- package/components/table/_macro.spec.js +58 -0
- package/components/table/_table.scss +9 -1
- package/components/table/example-table-with-valign-property.njk +142 -0
- package/components/table-of-contents/example-table-of-contents-grouped-with-single-list-item.njk +34 -0
- package/css/main.css +1 -1
- package/js/cookies-settings.js +5 -5
- package/package.json +18 -12
- package/scripts/main.es5.js +5 -3
- package/scripts/main.js +2 -2
- package/scss/utilities/_highlight.scss +1 -1
package/js/cookies-settings.js
CHANGED
|
@@ -10,7 +10,11 @@ export default class CookiesSettings {
|
|
|
10
10
|
this.cookiesBanner = document.querySelector('.ons-cookies-banner');
|
|
11
11
|
|
|
12
12
|
this.component.addEventListener('submit', this.submitSettingsForm.bind(this));
|
|
13
|
-
|
|
13
|
+
|
|
14
|
+
if (this.returnLink) {
|
|
15
|
+
const href = document.referrer || '/';
|
|
16
|
+
this.returnLink.setAttribute('href', href);
|
|
17
|
+
}
|
|
14
18
|
|
|
15
19
|
this.setInitialFormValues();
|
|
16
20
|
}
|
|
@@ -100,8 +104,4 @@ export default class CookiesSettings {
|
|
|
100
104
|
this.returnLink.style.display = 'none';
|
|
101
105
|
}
|
|
102
106
|
}
|
|
103
|
-
|
|
104
|
-
goBackToPrevPage() {
|
|
105
|
-
window.history.back();
|
|
106
|
-
}
|
|
107
107
|
}
|
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": "73.0
|
|
4
|
+
"version": "73.3.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -54,19 +54,21 @@
|
|
|
54
54
|
"not dead"
|
|
55
55
|
],
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/core": "7.
|
|
57
|
+
"@babel/core": "7.28.5",
|
|
58
58
|
"@babel/eslint-parser": "7.27.1",
|
|
59
59
|
"@babel/node": "7.27.1",
|
|
60
60
|
"@babel/plugin-proposal-class-properties": "7.18.6",
|
|
61
61
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
62
62
|
"@babel/plugin-transform-modules-commonjs": "7.27.1",
|
|
63
|
-
"@babel/plugin-transform-runtime": "7.
|
|
64
|
-
"@babel/preset-env": "7.
|
|
63
|
+
"@babel/plugin-transform-runtime": "7.28.5",
|
|
64
|
+
"@babel/preset-env": "7.28.5",
|
|
65
65
|
"@babel/register": "7.27.1",
|
|
66
|
-
"@babel/runtime": "7.
|
|
66
|
+
"@babel/runtime": "7.28.4",
|
|
67
|
+
"@eslint/eslintrc": "3.3.3",
|
|
68
|
+
"@eslint/js": "9.39.2",
|
|
67
69
|
"abortcontroller-polyfill": "1.7.8",
|
|
68
70
|
"autoprefixer": "10.4.21",
|
|
69
|
-
"babel-plugin-istanbul": "7.0.
|
|
71
|
+
"babel-plugin-istanbul": "7.0.1",
|
|
70
72
|
"babelify": "10.0.0",
|
|
71
73
|
"backstopjs": "6.3.25",
|
|
72
74
|
"browser-sync": "3.0.4",
|
|
@@ -77,16 +79,17 @@
|
|
|
77
79
|
"cors": "2.8.5",
|
|
78
80
|
"dialog-polyfill": "0.5.6",
|
|
79
81
|
"dompurify": "3.2.6",
|
|
80
|
-
"eslint": "
|
|
82
|
+
"eslint": "9.39.0",
|
|
81
83
|
"eslint-cli": "1.1.1",
|
|
82
84
|
"eslint-config-prettier": "9.0.0",
|
|
83
85
|
"eslint-plugin-prettier": "5.0.1",
|
|
84
|
-
"eslint-plugin-unused-imports": "3.
|
|
86
|
+
"eslint-plugin-unused-imports": "4.3.0",
|
|
85
87
|
"express": "5.1.0",
|
|
86
88
|
"front-matter": "4.0.2",
|
|
87
89
|
"fs-extra": "11.1.1",
|
|
88
90
|
"fuse.js": "7.0.0",
|
|
89
|
-
"glob": "
|
|
91
|
+
"glob": "11.1.0",
|
|
92
|
+
"globals": "17.0.0",
|
|
90
93
|
"gulp": "4.0.2",
|
|
91
94
|
"gulp-babel": "8.0.0",
|
|
92
95
|
"gulp-cli": "2.3.0",
|
|
@@ -97,7 +100,7 @@
|
|
|
97
100
|
"gulp-terser": "2.1.0",
|
|
98
101
|
"http-server": "14.1.1",
|
|
99
102
|
"husky": "9.1.6",
|
|
100
|
-
"jest": "
|
|
103
|
+
"jest": "30.2.0",
|
|
101
104
|
"jest-axe": "8.0.0",
|
|
102
105
|
"jest-environment-jsdom": "29.7.0",
|
|
103
106
|
"jest-puppeteer": "11.0.0",
|
|
@@ -114,11 +117,11 @@
|
|
|
114
117
|
"prepend-file": "2.0.1",
|
|
115
118
|
"prettier": "3.3.0",
|
|
116
119
|
"prettier-plugin-jinja-template": "1.4.0",
|
|
117
|
-
"puppeteer": "24.16.
|
|
120
|
+
"puppeteer": "24.16.0",
|
|
118
121
|
"remark-cli": "12.0.0",
|
|
119
122
|
"remark-lint": "9.1.2",
|
|
120
123
|
"remark-preset-lint-recommended": "6.1.3",
|
|
121
|
-
"stylelint": "16.
|
|
124
|
+
"stylelint": "16.26.0",
|
|
122
125
|
"stylelint-config-recommended-scss": "14.0.0",
|
|
123
126
|
"stylelint-config-sass-guidelines": "11.1.0",
|
|
124
127
|
"stylelint-config-standard": "36.0.0",
|
|
@@ -138,5 +141,8 @@
|
|
|
138
141
|
"dependencies": {
|
|
139
142
|
"highcharts": "12.1.2",
|
|
140
143
|
"pym.js": "1.3.2"
|
|
144
|
+
},
|
|
145
|
+
"resolutions": {
|
|
146
|
+
"basic-ftp": "5.2.0"
|
|
141
147
|
}
|
|
142
148
|
}
|