@ons/design-system 72.10.6 → 72.10.8
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/char-check-limit/_macro.njk +5 -4
- package/components/char-check-limit/_macro.spec.js +167 -7
- package/components/char-check-limit/character-check.js +23 -17
- package/components/char-check-limit/character-check.spec.js +106 -1
- package/components/chart/_chart.scss +39 -5
- package/components/chart/_macro.njk +190 -152
- package/components/chart/_macro.spec.js +274 -21
- package/components/chart/annotations-options.js +1 -1
- package/components/chart/bar-chart.js +2 -0
- package/components/chart/chart-iframe-resize.dom.js +8 -0
- package/components/chart/chart-iframe-resize.js +16 -0
- package/components/chart/chart.dom.js +5 -3
- package/components/chart/chart.js +13 -2
- package/components/chart/example-area-chart.njk +2 -1
- package/components/chart/example-bar-chart.njk +4 -0
- package/components/chart/example-iframe-chart.njk +33 -0
- package/components/chart/example-line-chart-with-annotations.njk +3 -1
- package/components/chart/example-line-chart.njk +6 -1
- package/components/chart/example-scatter-chart.njk +4 -0
- package/components/chart/range-annotations-options.js +1 -1
- package/components/chart/reference-line-annotations-options.js +1 -1
- package/components/checkboxes/_macro.spec.js +3 -3
- package/components/input/_macro.njk +1 -2
- package/components/input/_macro.spec.js +2 -22
- package/components/input/example-input-search-with-character-check.njk +0 -1
- package/components/tabs/tabs.js +2 -2
- package/components/textarea/_macro.njk +19 -3
- package/components/textarea/_macro.spec.js +76 -3
- package/components/textarea/example-textarea-with-word-limit.njk +20 -0
- package/css/main.css +1 -1
- package/img/small/area-chart-screenshot.png +0 -0
- package/img/small/line-chart-screenshot.png +0 -0
- package/js/main.js +2 -0
- package/layout/_template.njk +4 -1
- package/package.json +6 -3
- package/scripts/main.es5.js +3 -1
- package/scripts/main.js +3 -1
- package/scss/objects/_page.scss +1 -1
|
Binary file
|
|
Binary file
|
package/js/main.js
CHANGED
|
@@ -32,3 +32,5 @@ import '../components/timeout-panel/timeout-panel.dom';
|
|
|
32
32
|
import '../components/video/video.dom';
|
|
33
33
|
import '../components/chart/chart';
|
|
34
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
|
@@ -167,7 +167,10 @@
|
|
|
167
167
|
"title": pageConfig.header.title | default(pageConfig.title),
|
|
168
168
|
"description": pageConfig.header.description,
|
|
169
169
|
"titleAsH1": pageConfig.header.titleAsH1,
|
|
170
|
-
"titleLogo": pageConfig.header.titleLogo
|
|
170
|
+
"titleLogo": pageConfig.header.titleLogo,
|
|
171
|
+
"mastheadLogoAltText": pageConfig.header.mastheadLogoAltText,
|
|
172
|
+
"menuLinks": pageConfig.header.menuLinks,
|
|
173
|
+
"searchLinks": pageConfig.header.searchLinks
|
|
171
174
|
})
|
|
172
175
|
}}
|
|
173
176
|
{% endblock %}
|
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.8",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": {
|
|
@@ -69,13 +69,14 @@
|
|
|
69
69
|
"babel-plugin-istanbul": "^7.0.0",
|
|
70
70
|
"babelify": "^10.0.0",
|
|
71
71
|
"backstopjs": "^6.1.4",
|
|
72
|
-
"browser-sync": "^
|
|
72
|
+
"browser-sync": "^3.0.4",
|
|
73
73
|
"browserify": "^17.0.1",
|
|
74
74
|
"chalk": "^4.1.2",
|
|
75
75
|
"cheerio": "^1.0.0-rc.10",
|
|
76
76
|
"core-js": "^3.21.1",
|
|
77
77
|
"cors": "^2.8.5",
|
|
78
78
|
"dialog-polyfill": "^0.5.6",
|
|
79
|
+
"dompurify": "^3.2.6",
|
|
79
80
|
"eslint": "^8.45.0",
|
|
80
81
|
"eslint-cli": "^1.1.1",
|
|
81
82
|
"eslint-config-prettier": "^9.0.0",
|
|
@@ -100,6 +101,7 @@
|
|
|
100
101
|
"jest-axe": "^8.0.0",
|
|
101
102
|
"jest-environment-jsdom": "^29.6.1",
|
|
102
103
|
"jest-puppeteer": "^10.0.0",
|
|
104
|
+
"jsdom": "^26.1.0",
|
|
103
105
|
"lighthouse": "^11.0.0",
|
|
104
106
|
"lint-staged": "^15.2.0",
|
|
105
107
|
"lodash": "^4.17.21",
|
|
@@ -134,6 +136,7 @@
|
|
|
134
136
|
"access": "public"
|
|
135
137
|
},
|
|
136
138
|
"dependencies": {
|
|
137
|
-
"highcharts": "^12.1.2"
|
|
139
|
+
"highcharts": "^12.1.2",
|
|
140
|
+
"pym.js": "^1.3.2"
|
|
138
141
|
}
|
|
139
142
|
}
|