@ons/design-system 74.0.0-next.15 → 74.0.0-next.16

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.
@@ -47,14 +47,3 @@ $nbsp-width: 0.288rem;
47
47
  #{$padding-width + $chars-width + $num-chars-width + $chars-space-width + $spaces-width} + #{($input-border-width * 2) + 2px}
48
48
  );
49
49
  }
50
-
51
- $iframe-ratios: '16-9', '4-3', '21-9', '1-1', '3-2', '9-16';
52
-
53
- @mixin iframe-aspect-ratio($class-name, $ratios: $iframe-ratios) {
54
- @each $ratio in $ratios {
55
- .#{str-replace($class-name, '{x}', $ratio)} {
56
- aspect-ratio: #{str-replace($ratio, '-', '/')};
57
- width: 100%;
58
- }
59
- }
60
- }
@@ -1,8 +0,0 @@
1
- import ChartIframeResize from './chart-iframe-resize';
2
- import domready from '../../js/domready';
3
-
4
- domready(async () => {
5
- [ChartIframeResize].forEach((Component) => {
6
- document.querySelectorAll(Component.selector()).forEach((el) => new Component(el));
7
- });
8
- });
@@ -1,16 +0,0 @@
1
- import pym from 'pym.js';
2
-
3
- class ChartIframeResize {
4
- static selector() {
5
- return '.ons-chart__iframe-wrapper iframe';
6
- }
7
-
8
- constructor(node) {
9
- this.node = node;
10
- new pym.Child(this.node.getAttribute('id'), this.node.dataset.url, {
11
- title: this.node.dataset.title,
12
- });
13
- }
14
- }
15
-
16
- export default ChartIframeResize;
@@ -1,36 +0,0 @@
1
- {% from "components/chart/_macro.njk" import onsChart %}
2
-
3
- {# Important note: the example visualisation used here by the iframeUrl parameter
4
- may not be available in the future once Florence is decommissioned. #}
5
-
6
- {{
7
- onsChart({
8
- "description": "Volume sales, seasonally adjusted, Great Britain, January 2022 to January 2025",
9
- "title": "Food stores showed a strong rise on the month, while non-food stores fell",
10
- "subtitle": "Figure 6: Upward contribution from housing and household services (including energy) saw the annual CPIH inflation rate rise",
11
- "id": "uuid",
12
- "caption": "Source: Monthly Business Survey, Retail Sales Inquiry from the Office for National Statistics",
13
- "download": {
14
- 'title': 'Download Figure 1 data',
15
- 'itemsList': [
16
- {
17
- "text": "Excel spreadsheet (XLSX format, 18KB)",
18
- "url": "#",
19
- "download": "file"
20
- },
21
- {
22
- "text": "Simple text file (CSV format, 25KB)",
23
- "url": "#",
24
- "download": "file"
25
- },
26
- {
27
- "text": "Image (PNG format, 25KB)",
28
- "url": "#",
29
- "download": "file"
30
- }
31
- ]
32
- },
33
- "iframeUrl": "/iframe/index.html",
34
- "fallbackImageUrl": "/img/small/line-chart-screenshot.png"
35
- })
36
- }}