@ons/design-system 72.0.0 → 72.1.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/autosuggest/_macro.njk +1 -0
- package/components/autosuggest/_macro.spec.js +7 -1
- package/components/autosuggest/autosuggest.spec.js +3 -1
- package/components/autosuggest/autosuggest.ui.js +39 -10
- package/components/autosuggest/example-autosuggest-country.njk +2 -1
- package/components/autosuggest/fuse-config.js +7 -2
- package/components/checkboxes/_checkbox-macro.njk +20 -0
- package/components/checkboxes/_macro.njk +5 -0
- package/components/checkboxes/_macro.spec.js +35 -0
- package/components/checkboxes/example-checkboxes-with-revealed-text-area-expanded.njk +68 -0
- package/components/checkboxes/example-checkboxes-with-revealed-text-area.njk +67 -0
- package/components/section-navigation/_section-navigation.scss +1 -2
- package/components/summary/_macro.njk +73 -78
- package/components/summary/_macro.spec.js +5 -15
- package/components/summary/_summary.scss +16 -11
- package/css/main.css +1 -1
- package/js/analytics.js +1 -1
- package/package.json +5 -6
- package/scripts/main.es5.js +1 -1
- package/scripts/main.js +1 -1
- package/scss/objects/_page.scss +1 -1
package/js/analytics.js
CHANGED
|
@@ -44,7 +44,7 @@ export default function initAnalytics() {
|
|
|
44
44
|
document.body.addEventListener('click', ({ target }) => {
|
|
45
45
|
if (target.getAttribute('data-ga') === 'click') {
|
|
46
46
|
return trackElement(target, 'click');
|
|
47
|
-
} else if (target.parentElement
|
|
47
|
+
} else if (target.parentElement?.getAttribute('data-ga') === 'click') {
|
|
48
48
|
return trackElement(target.parentElement, 'click');
|
|
49
49
|
}
|
|
50
50
|
});
|
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.
|
|
4
|
+
"version": "72.1.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -54,18 +54,18 @@
|
|
|
54
54
|
"not dead"
|
|
55
55
|
],
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@babel/core": "^7.
|
|
57
|
+
"@babel/core": "^7.25.2",
|
|
58
58
|
"@babel/eslint-parser": "^7.22.9",
|
|
59
59
|
"@babel/node": "^7.14.7",
|
|
60
60
|
"@babel/plugin-proposal-class-properties": "^7.14.5",
|
|
61
61
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
62
62
|
"@babel/plugin-transform-modules-commonjs": "^7.14.5",
|
|
63
63
|
"@babel/plugin-transform-runtime": "^7.14.5",
|
|
64
|
-
"@babel/preset-env": "^7.
|
|
64
|
+
"@babel/preset-env": "^7.25.4",
|
|
65
65
|
"@babel/register": "^7.14.5",
|
|
66
66
|
"@babel/runtime": "^7.14.6",
|
|
67
67
|
"abortcontroller-polyfill": "^1.2.3",
|
|
68
|
-
"autoprefixer": "10.4.
|
|
68
|
+
"autoprefixer": "^10.4.20",
|
|
69
69
|
"babel-plugin-istanbul": "^6.0.0",
|
|
70
70
|
"babelify": "^10.0.0",
|
|
71
71
|
"backstopjs": "^6.1.4",
|
|
@@ -73,7 +73,6 @@
|
|
|
73
73
|
"browserify": "^17.0.0",
|
|
74
74
|
"chalk": "^4.1.2",
|
|
75
75
|
"cheerio": "^1.0.0-rc.10",
|
|
76
|
-
"codecov": "^3.8.3",
|
|
77
76
|
"core-js": "^3.21.1",
|
|
78
77
|
"cors": "^2.8.5",
|
|
79
78
|
"dialog-polyfill": "^0.5.6",
|
|
@@ -85,7 +84,7 @@
|
|
|
85
84
|
"express": "^4.17.1",
|
|
86
85
|
"front-matter": "^4.0.2",
|
|
87
86
|
"fs-extra": "^11.1.1",
|
|
88
|
-
"fuse.js": "^
|
|
87
|
+
"fuse.js": "^7.0.0",
|
|
89
88
|
"glob": "^10.2.3",
|
|
90
89
|
"gulp": "^4.0.2",
|
|
91
90
|
"gulp-babel": "^8.0.0",
|