@ons/design-system 73.6.0 → 73.8.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/cookies-banner/_macro.njk +0 -1
- package/favicons/android-chrome-192x192.png +0 -0
- package/favicons/android-chrome-512x512.png +0 -0
- package/favicons/apple-touch-icon.png +0 -0
- package/favicons/favicon-16x16.png +0 -0
- package/favicons/favicon-32x32.png +0 -0
- package/favicons/favicon.ico +0 -0
- package/favicons/maskable_icon.png +0 -0
- package/favicons/opengraph.png +0 -0
- package/favicons/x.png +0 -0
- package/img/large/alison-pritchard-featured.jpg +0 -0
- package/img/large/alison-pritchard.jpg +0 -0
- package/img/large/census-monuments-lights-featured.jpg +0 -0
- package/img/large/census-monuments-lights.jpg +0 -0
- package/img/large/mother-and-daughter-in-ireland.jpg +0 -0
- package/img/large/mum-and-child-healthcare-belfast.jpg +0 -0
- package/img/large/ons-award-winners.jpg +0 -0
- package/img/large/placeholder-card.png +0 -0
- package/img/large/placeholder-news-medium.png +0 -0
- package/img/large/placeholder-news.png +0 -0
- package/img/large/placeholder-portrait.png +0 -0
- package/img/large/students.jpg +0 -0
- package/img/large/woman-in-purple-dress-shirt.jpg +0 -0
- package/img/small/alison-pritchard-featured.jpg +0 -0
- package/img/small/alison-pritchard.jpg +0 -0
- package/img/small/area-chart-screenshot.png +0 -0
- package/img/small/census-monuments-lights-featured.jpg +0 -0
- package/img/small/census-monuments-lights.jpg +0 -0
- package/img/small/line-chart-screenshot.png +0 -0
- package/img/small/mother-and-daughter-in-ireland.jpg +0 -0
- package/img/small/mum-and-child-healthcare-belfast.jpg +0 -0
- package/img/small/ons-award-winners.jpg +0 -0
- package/img/small/placeholder-card.png +0 -0
- package/img/small/placeholder-news-medium.png +0 -0
- package/img/small/placeholder-news.png +0 -0
- package/img/small/placeholder-portrait.png +0 -0
- package/img/small/students.jpg +0 -0
- package/img/small/woman-in-purple-dress-shirt.jpg +0 -0
- package/js/chart.js +4 -0
- package/js/main.js +0 -4
- package/layout/_template.njk +5 -0
- package/package.json +11 -10
- package/scripts/chart.es5.js +5 -0
- package/scripts/chart.js +3 -0
- package/scripts/main.es5.js +3 -5
- package/scripts/main.js +2 -4
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
{% set preferencesText = beforeLinkPreferencesUrl + ' <a href="' + settingsLinkUrl + '">' + afterLinkPreferencesUrl %}
|
|
43
43
|
|
|
44
44
|
<section
|
|
45
|
-
role="banner"
|
|
46
45
|
class="ons-cookies-banner"
|
|
47
46
|
aria-label="{{ params.ariaLabel | default(ariaLabel) }}"
|
|
48
47
|
{% if params.cookieDomainPolicy %}data-ons-cookie-domain-policy="{{ params.cookieDomainPolicy }}"{% endif %}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/favicons/favicon.ico
CHANGED
|
Binary file
|
|
Binary file
|
package/favicons/opengraph.png
CHANGED
|
Binary file
|
package/favicons/x.png
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/img/large/students.jpg
CHANGED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/img/small/students.jpg
CHANGED
|
Binary file
|
|
Binary file
|
package/js/chart.js
ADDED
package/js/main.js
CHANGED
|
@@ -30,7 +30,3 @@ import '../components/modal/modal.dom';
|
|
|
30
30
|
import '../components/timeout-modal/timeout-modal.dom';
|
|
31
31
|
import '../components/timeout-panel/timeout-panel.dom';
|
|
32
32
|
import '../components/video/video.dom';
|
|
33
|
-
import '../components/chart/chart';
|
|
34
|
-
import '../components/chart/chart.dom';
|
|
35
|
-
import '../components/chart/chart-iframe-resize';
|
|
36
|
-
import '../components/chart/chart-iframe-resize.dom';
|
package/layout/_template.njk
CHANGED
|
@@ -243,6 +243,11 @@
|
|
|
243
243
|
(function() {
|
|
244
244
|
var s = [ '{{ assetsUrl }}/scripts/main.js' ],
|
|
245
245
|
c = document.createElement('script');
|
|
246
|
+
var hasCharts = !!document.querySelector('[data-highcharts-base-chart], .ons-chart__iframe-wrapper iframe');
|
|
247
|
+
|
|
248
|
+
if (hasCharts) {
|
|
249
|
+
s.push('{{ assetsUrl }}/scripts/chart.js');
|
|
250
|
+
}
|
|
246
251
|
|
|
247
252
|
if (!('noModule' in c)) {
|
|
248
253
|
for (var i = 0; i < s.length; i++) {
|
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.
|
|
4
|
+
"version": "73.8.0",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"postpack": "pinst --enable"
|
|
34
34
|
},
|
|
35
35
|
"lint-staged": {
|
|
36
|
-
"*.js": [
|
|
36
|
+
"*.{js,mjs}": [
|
|
37
37
|
"prettier --write",
|
|
38
38
|
"eslint --fix"
|
|
39
39
|
],
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
"@babel/runtime": "7.29.2",
|
|
67
67
|
"@eslint/eslintrc": "3.3.5",
|
|
68
68
|
"@eslint/js": "9.39.2",
|
|
69
|
+
"@stylistic/stylelint-plugin": "5.1.0",
|
|
69
70
|
"abortcontroller-polyfill": "1.7.8",
|
|
70
71
|
"autoprefixer": "10.4.21",
|
|
71
72
|
"babel-plugin-istanbul": "7.0.1",
|
|
@@ -90,9 +91,9 @@
|
|
|
90
91
|
"fuse.js": "7.0.0",
|
|
91
92
|
"glob": "11.1.0",
|
|
92
93
|
"globals": "17.0.0",
|
|
93
|
-
"gulp": "
|
|
94
|
+
"gulp": "5.0.1",
|
|
94
95
|
"gulp-babel": "8.0.0",
|
|
95
|
-
"gulp-cli": "
|
|
96
|
+
"gulp-cli": "3.1.0",
|
|
96
97
|
"gulp-dart-sass": "1.1.0",
|
|
97
98
|
"gulp-if": "3.0.0",
|
|
98
99
|
"gulp-postcss": "9.0.1",
|
|
@@ -121,12 +122,12 @@
|
|
|
121
122
|
"remark-cli": "12.0.0",
|
|
122
123
|
"remark-lint": "9.1.2",
|
|
123
124
|
"remark-preset-lint-recommended": "6.1.3",
|
|
124
|
-
"stylelint": "
|
|
125
|
-
"stylelint-config-recommended-scss": "
|
|
126
|
-
"stylelint-config-sass-guidelines": "
|
|
127
|
-
"stylelint-config-standard": "
|
|
128
|
-
"stylelint-order": "
|
|
129
|
-
"stylelint-scss": "
|
|
125
|
+
"stylelint": "17.11.0",
|
|
126
|
+
"stylelint-config-recommended-scss": "17.0.1",
|
|
127
|
+
"stylelint-config-sass-guidelines": "13.0.0",
|
|
128
|
+
"stylelint-config-standard": "40.0.0",
|
|
129
|
+
"stylelint-order": "8.1.1",
|
|
130
|
+
"stylelint-scss": "7.0.0",
|
|
130
131
|
"through2": "4.0.2",
|
|
131
132
|
"tick-manager": "1.0.3",
|
|
132
133
|
"util": "0.12.3",
|