@statistikzh/leu 0.15.0 → 0.15.1

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.
Files changed (86) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +9 -0
  3. package/dist/Accordion.js +1 -1
  4. package/dist/Button.js +1 -1
  5. package/dist/ButtonGroup.js +1 -1
  6. package/dist/ChartWrapper.js +40 -29
  7. package/dist/Checkbox.js +1 -1
  8. package/dist/CheckboxGroup.js +1 -1
  9. package/dist/Chip.js +1 -1
  10. package/dist/ChipGroup.js +1 -1
  11. package/dist/ChipLink.js +1 -1
  12. package/dist/ChipRemovable.js +1 -1
  13. package/dist/ChipSelectable.js +1 -1
  14. package/dist/Dialog.js +1 -1
  15. package/dist/Dropdown.js +1 -1
  16. package/dist/Icon.js +1 -1
  17. package/dist/Input.js +1 -1
  18. package/dist/{LeuElement-BhAmogDy.js → LeuElement-B84x5CPL.js} +1 -1
  19. package/dist/Menu.js +1 -1
  20. package/dist/MenuItem.js +1 -1
  21. package/dist/Pagination.js +1 -1
  22. package/dist/Placeholder.js +1 -1
  23. package/dist/Popup.js +1 -1
  24. package/dist/Radio.js +1 -1
  25. package/dist/RadioGroup.js +1 -1
  26. package/dist/Range.js +1 -1
  27. package/dist/ScrollTop.js +1 -1
  28. package/dist/Select.js +1 -1
  29. package/dist/Spinner.js +1 -1
  30. package/dist/Table.js +1 -1
  31. package/dist/VisuallyHidden.js +1 -1
  32. package/dist/components/{visualization → chart-wrapper}/ChartWrapper.d.ts.map +1 -1
  33. package/dist/components/{visualization → chart-wrapper}/leu-chart-wrapper.d.ts.map +1 -1
  34. package/dist/components/{visualization → chart-wrapper}/stories/chart-wrapper.stories.d.ts +19 -0
  35. package/dist/components/{visualization → chart-wrapper}/stories/chart-wrapper.stories.d.ts.map +1 -1
  36. package/dist/components/chart-wrapper/test/chart-wrapper.test.d.ts.map +1 -0
  37. package/dist/index.d.ts +1 -0
  38. package/dist/index.d.ts.map +1 -1
  39. package/dist/index.js +3 -1
  40. package/dist/leu-accordion.js +1 -1
  41. package/dist/leu-button-group.js +1 -1
  42. package/dist/leu-button.js +1 -1
  43. package/dist/leu-chart-wrapper.js +1 -1
  44. package/dist/leu-checkbox-group.js +1 -1
  45. package/dist/leu-checkbox.js +1 -1
  46. package/dist/leu-chip-group.js +1 -1
  47. package/dist/leu-chip-link.js +1 -1
  48. package/dist/leu-chip-removable.js +1 -1
  49. package/dist/leu-chip-selectable.js +1 -1
  50. package/dist/leu-dialog.js +1 -1
  51. package/dist/leu-dropdown.js +1 -1
  52. package/dist/leu-icon.js +1 -1
  53. package/dist/leu-input.js +1 -1
  54. package/dist/leu-menu-item.js +1 -1
  55. package/dist/leu-menu.js +1 -1
  56. package/dist/leu-pagination.js +1 -1
  57. package/dist/leu-placeholder.js +1 -1
  58. package/dist/leu-popup.js +1 -1
  59. package/dist/leu-radio-group.js +1 -1
  60. package/dist/leu-radio.js +1 -1
  61. package/dist/leu-range.js +1 -1
  62. package/dist/leu-scroll-top.js +1 -1
  63. package/dist/leu-select.js +1 -1
  64. package/dist/leu-spinner.js +1 -1
  65. package/dist/leu-table.js +1 -1
  66. package/dist/leu-visually-hidden.js +1 -1
  67. package/dist/theme.css +18 -18
  68. package/dist/vscode.html-custom-data.json +21 -21
  69. package/dist/vue/index.d.ts +36 -36
  70. package/dist/web-types.json +60 -60
  71. package/package.json +1 -1
  72. package/release-please-config.json +1 -0
  73. package/scripts/postcss-leu-font-styles.cjs +10 -10
  74. package/src/components/{visualization → chart-wrapper}/ChartWrapper.ts +13 -10
  75. package/src/components/{visualization → chart-wrapper}/chart-wrapper.css +20 -11
  76. package/src/components/{visualization → chart-wrapper}/stories/chart-wrapper.stories.ts +7 -1
  77. package/src/components/{visualization → chart-wrapper}/test/chart-wrapper.test.ts +13 -10
  78. package/src/docs/contributing.mdx +1 -1
  79. package/src/index.ts +1 -0
  80. package/src/styles/theme.css +89 -1
  81. package/dist/components/visualization/test/chart-wrapper.test.d.ts.map +0 -1
  82. package/src/styles/custom-properties.css +0 -89
  83. /package/dist/components/{visualization → chart-wrapper}/ChartWrapper.d.ts +0 -0
  84. /package/dist/components/{visualization → chart-wrapper}/leu-chart-wrapper.d.ts +0 -0
  85. /package/dist/components/{visualization → chart-wrapper}/test/chart-wrapper.test.d.ts +0 -0
  86. /package/src/components/{visualization → chart-wrapper}/leu-chart-wrapper.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import { LeuDropdown } from './Dropdown.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/ref.js';
4
- import './LeuElement-BhAmogDy.js';
4
+ import './LeuElement-B84x5CPL.js';
5
5
  import './hasSlotController-Bm2tipvG.js';
6
6
  import './Button.js';
7
7
  import './_tslib-CNEFicEt.js';
package/dist/leu-icon.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LeuIcon } from './Icon.js';
2
2
  import 'lit';
3
- import './LeuElement-BhAmogDy.js';
3
+ import './LeuElement-B84x5CPL.js';
4
4
 
5
5
  LeuIcon.define("leu-icon");
6
6
 
package/dist/leu-input.js CHANGED
@@ -4,7 +4,7 @@ import 'lit/directives/class-map.js';
4
4
  import 'lit/directives/if-defined.js';
5
5
  import 'lit/directives/live.js';
6
6
  import 'lit/directives/ref.js';
7
- import './LeuElement-BhAmogDy.js';
7
+ import './LeuElement-B84x5CPL.js';
8
8
  import './Icon.js';
9
9
 
10
10
  LeuInput.define("leu-input");
@@ -1,7 +1,7 @@
1
1
  import { LeuMenuItem } from './MenuItem.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/if-defined.js';
4
- import './LeuElement-BhAmogDy.js';
4
+ import './LeuElement-B84x5CPL.js';
5
5
  import './Icon.js';
6
6
 
7
7
  LeuMenuItem.define("leu-menu-item");
package/dist/leu-menu.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LeuMenu } from './Menu.js';
2
2
  import 'lit';
3
- import './LeuElement-BhAmogDy.js';
3
+ import './LeuElement-B84x5CPL.js';
4
4
  import './MenuItem.js';
5
5
  import 'lit/directives/if-defined.js';
6
6
  import './Icon.js';
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/live.js';
5
5
  import 'lit/decorators.js';
6
- import './LeuElement-BhAmogDy.js';
6
+ import './LeuElement-B84x5CPL.js';
7
7
  import './Button.js';
8
8
  import 'lit/directives/class-map.js';
9
9
  import 'lit/directives/if-defined.js';
@@ -1,6 +1,6 @@
1
1
  import { LeuPlaceholder } from './Placeholder.js';
2
2
  import 'lit';
3
- import './LeuElement-BhAmogDy.js';
3
+ import './LeuElement-B84x5CPL.js';
4
4
 
5
5
  LeuPlaceholder.define("leu-placeholder");
6
6
 
package/dist/leu-popup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { LeuPopup } from './Popup.js';
2
2
  import 'lit';
3
3
  import '@floating-ui/dom';
4
- import './LeuElement-BhAmogDy.js';
4
+ import './LeuElement-B84x5CPL.js';
5
5
 
6
6
  LeuPopup.define("leu-popup");
7
7
 
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
  import 'lit/decorators.js';
6
- import './LeuElement-BhAmogDy.js';
6
+ import './LeuElement-B84x5CPL.js';
7
7
  import './Radio.js';
8
8
 
9
9
  LeuRadioGroup.define("leu-radio-group");
package/dist/leu-radio.js CHANGED
@@ -2,7 +2,7 @@ import { LeuRadio } from './Radio.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-BhAmogDy.js';
5
+ import './LeuElement-B84x5CPL.js';
6
6
 
7
7
  LeuRadio.define("leu-radio");
8
8
 
package/dist/leu-range.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LeuRange } from './Range.js';
2
2
  import 'lit';
3
- import './LeuElement-BhAmogDy.js';
3
+ import './LeuElement-B84x5CPL.js';
4
4
 
5
5
  LeuRange.define("leu-range");
6
6
 
@@ -1,7 +1,7 @@
1
1
  import { LeuScrollTop } from './ScrollTop.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/class-map.js';
4
- import './LeuElement-BhAmogDy.js';
4
+ import './LeuElement-B84x5CPL.js';
5
5
  import './Button.js';
6
6
  import './_tslib-CNEFicEt.js';
7
7
  import 'lit/directives/if-defined.js';
@@ -3,7 +3,7 @@ import 'lit';
3
3
  import 'lit/directives/class-map.js';
4
4
  import 'lit/directives/ref.js';
5
5
  import 'lit/directives/if-defined.js';
6
- import './LeuElement-BhAmogDy.js';
6
+ import './LeuElement-B84x5CPL.js';
7
7
  import './hasSlotController-Bm2tipvG.js';
8
8
  import './Button.js';
9
9
  import './_tslib-CNEFicEt.js';
@@ -1,6 +1,6 @@
1
1
  import { LeuSpinner } from './Spinner.js';
2
2
  import 'lit';
3
- import './LeuElement-BhAmogDy.js';
3
+ import './LeuElement-B84x5CPL.js';
4
4
 
5
5
  LeuSpinner.define("leu-spinner");
6
6
 
package/dist/leu-table.js CHANGED
@@ -3,7 +3,7 @@ import 'lit';
3
3
  import 'lit/directives/class-map.js';
4
4
  import 'lit/directives/style-map.js';
5
5
  import 'lit/directives/ref.js';
6
- import './LeuElement-BhAmogDy.js';
6
+ import './LeuElement-B84x5CPL.js';
7
7
  import './Icon.js';
8
8
  import './Pagination.js';
9
9
  import './_tslib-CNEFicEt.js';
@@ -1,6 +1,6 @@
1
1
  import { LeuVisuallyHidden } from './VisuallyHidden.js';
2
2
  import 'lit';
3
- import './LeuElement-BhAmogDy.js';
3
+ import './LeuElement-B84x5CPL.js';
4
4
 
5
5
  LeuVisuallyHidden.define("leu-visually-hidden");
6
6
 
package/dist/theme.css CHANGED
@@ -62,7 +62,7 @@
62
62
 
63
63
  --leu-t-tiny-regular-spacing: 0.5625rem;
64
64
 
65
- --leu-t-tiny-regular-font: var(--leu-t-tiny-regular-font-size) / var(--leu-t-tiny-regular-line-height) var(--leu-font-family-regular);
65
+ --leu-t-tiny-regular-font: normal var(--leu-t-tiny-regular-font-size) / var(--leu-t-tiny-regular-line-height) var(--leu-font-family-regular);
66
66
 
67
67
  --leu-t-tiny-black-font-size: 0.75rem;
68
68
 
@@ -70,7 +70,7 @@
70
70
 
71
71
  --leu-t-tiny-black-spacing: 0.5625rem;
72
72
 
73
- --leu-t-tiny-black-font: var(--leu-t-tiny-black-font-size) / var(--leu-t-tiny-black-line-height) var(--leu-font-family-black);
73
+ --leu-t-tiny-black-font: normal var(--leu-t-tiny-black-font-size) / var(--leu-t-tiny-black-line-height) var(--leu-font-family-black);
74
74
 
75
75
  --leu-t-small-regular-font-size: 0.875rem;
76
76
 
@@ -78,7 +78,7 @@
78
78
 
79
79
  --leu-t-small-regular-spacing: 0.625rem;
80
80
 
81
- --leu-t-small-regular-font: var(--leu-t-small-regular-font-size) / var(--leu-t-small-regular-line-height) var(--leu-font-family-regular);
81
+ --leu-t-small-regular-font: normal var(--leu-t-small-regular-font-size) / var(--leu-t-small-regular-line-height) var(--leu-font-family-regular);
82
82
 
83
83
  --leu-t-small-black-font-size: 0.875rem;
84
84
 
@@ -86,7 +86,7 @@
86
86
 
87
87
  --leu-t-small-black-spacing: 0.625rem;
88
88
 
89
- --leu-t-small-black-font: var(--leu-t-small-black-font-size) / var(--leu-t-small-black-line-height) var(--leu-font-family-black);
89
+ --leu-t-small-black-font: normal var(--leu-t-small-black-font-size) / var(--leu-t-small-black-line-height) var(--leu-font-family-black);
90
90
 
91
91
  --leu-t-regular-regular-font-size: 1rem;
92
92
 
@@ -94,7 +94,7 @@
94
94
 
95
95
  --leu-t-regular-regular-spacing: 0.75rem;
96
96
 
97
- --leu-t-regular-regular-font: var(--leu-t-regular-regular-font-size) / var(--leu-t-regular-regular-line-height) var(--leu-font-family-regular);
97
+ --leu-t-regular-regular-font: normal var(--leu-t-regular-regular-font-size) / var(--leu-t-regular-regular-line-height) var(--leu-font-family-regular);
98
98
 
99
99
  --leu-t-regular-black-font-size: 1rem;
100
100
 
@@ -102,7 +102,7 @@
102
102
 
103
103
  --leu-t-regular-black-spacing: 0.75rem;
104
104
 
105
- --leu-t-regular-black-font: var(--leu-t-regular-black-font-size) / var(--leu-t-regular-black-line-height) var(--leu-font-family-black);
105
+ --leu-t-regular-black-font: normal var(--leu-t-regular-black-font-size) / var(--leu-t-regular-black-line-height) var(--leu-font-family-black);
106
106
 
107
107
  --leu-t-bigger-regular-regular-font-size: 1.125rem;
108
108
 
@@ -110,7 +110,7 @@
110
110
 
111
111
  --leu-t-bigger-regular-regular-spacing: 0.8125rem;
112
112
 
113
- --leu-t-bigger-regular-regular-font: var(--leu-t-bigger-regular-regular-font-size) / var(--leu-t-bigger-regular-regular-line-height) var(--leu-font-family-regular);
113
+ --leu-t-bigger-regular-regular-font: normal var(--leu-t-bigger-regular-regular-font-size) / var(--leu-t-bigger-regular-regular-line-height) var(--leu-font-family-regular);
114
114
 
115
115
  --leu-t-bigger-regular-black-font-size: 1.125rem;
116
116
 
@@ -118,7 +118,7 @@
118
118
 
119
119
  --leu-t-bigger-regular-black-spacing: 0.75rem;
120
120
 
121
- --leu-t-bigger-regular-black-font: var(--leu-t-bigger-regular-black-font-size) / var(--leu-t-bigger-regular-black-line-height) var(--leu-font-family-black);
121
+ --leu-t-bigger-regular-black-font: normal var(--leu-t-bigger-regular-black-font-size) / var(--leu-t-bigger-regular-black-line-height) var(--leu-font-family-black);
122
122
 
123
123
  --leu-t-medium-regular-font-size: 1.25rem;
124
124
 
@@ -126,7 +126,7 @@
126
126
 
127
127
  --leu-t-medium-regular-spacing: 0.9375rem;
128
128
 
129
- --leu-t-medium-regular-font: var(--leu-t-medium-regular-font-size) / var(--leu-t-medium-regular-line-height) var(--leu-font-family-regular);
129
+ --leu-t-medium-regular-font: normal var(--leu-t-medium-regular-font-size) / var(--leu-t-medium-regular-line-height) var(--leu-font-family-regular);
130
130
 
131
131
  --leu-t-medium-black-font-size: 1.25rem;
132
132
 
@@ -134,7 +134,7 @@
134
134
 
135
135
  --leu-t-medium-black-spacing: 0.8125rem;
136
136
 
137
- --leu-t-medium-black-font: var(--leu-t-medium-black-font-size) / var(--leu-t-medium-black-line-height) var(--leu-font-family-black);
137
+ --leu-t-medium-black-font: normal var(--leu-t-medium-black-font-size) / var(--leu-t-medium-black-line-height) var(--leu-font-family-black);
138
138
 
139
139
  --leu-t-large-regular-font-size: 1.5rem;
140
140
 
@@ -142,7 +142,7 @@
142
142
 
143
143
  --leu-t-large-regular-spacing: 1.125rem;
144
144
 
145
- --leu-t-large-regular-font: var(--leu-t-large-regular-font-size) / var(--leu-t-large-regular-line-height) var(--leu-font-family-regular);
145
+ --leu-t-large-regular-font: normal var(--leu-t-large-regular-font-size) / var(--leu-t-large-regular-line-height) var(--leu-font-family-regular);
146
146
 
147
147
  --leu-t-large-black-font-size: 1.5rem;
148
148
 
@@ -150,7 +150,7 @@
150
150
 
151
151
  --leu-t-large-black-spacing: 0.9375rem;
152
152
 
153
- --leu-t-large-black-font: var(--leu-t-large-black-font-size) / var(--leu-t-large-black-line-height) var(--leu-font-family-black);
153
+ --leu-t-large-black-font: normal var(--leu-t-large-black-font-size) / var(--leu-t-large-black-line-height) var(--leu-font-family-black);
154
154
 
155
155
  --leu-t-small-big-black-font-size: 1.75rem;
156
156
 
@@ -158,7 +158,7 @@
158
158
 
159
159
  --leu-t-small-big-black-spacing: 1.0625rem;
160
160
 
161
- --leu-t-small-big-black-font: var(--leu-t-small-big-black-font-size) / var(--leu-t-small-big-black-line-height) var(--leu-font-family-black);
161
+ --leu-t-small-big-black-font: normal var(--leu-t-small-big-black-font-size) / var(--leu-t-small-big-black-line-height) var(--leu-font-family-black);
162
162
 
163
163
  --leu-t-big-black-font-size: 2rem;
164
164
 
@@ -166,7 +166,7 @@
166
166
 
167
167
  --leu-t-big-black-spacing: 1.1875rem;
168
168
 
169
- --leu-t-big-black-font: var(--leu-t-big-black-font-size) / var(--leu-t-big-black-line-height) var(--leu-font-family-black);
169
+ --leu-t-big-black-font: normal var(--leu-t-big-black-font-size) / var(--leu-t-big-black-line-height) var(--leu-font-family-black);
170
170
 
171
171
  --leu-t-bigger-big-black-font-size: 2.5rem;
172
172
 
@@ -174,7 +174,7 @@
174
174
 
175
175
  --leu-t-bigger-big-black-spacing: 1.5rem;
176
176
 
177
- --leu-t-bigger-big-black-font: var(--leu-t-bigger-big-black-font-size) / var(--leu-t-bigger-big-black-line-height) var(--leu-font-family-black);
177
+ --leu-t-bigger-big-black-font: normal var(--leu-t-bigger-big-black-font-size) / var(--leu-t-bigger-big-black-line-height) var(--leu-font-family-black);
178
178
 
179
179
  --leu-t-small-huge-black-font-size: 3rem;
180
180
 
@@ -182,7 +182,7 @@
182
182
 
183
183
  --leu-t-small-huge-black-spacing: 1.5rem;
184
184
 
185
- --leu-t-small-huge-black-font: var(--leu-t-small-huge-black-font-size) / var(--leu-t-small-huge-black-line-height) var(--leu-font-family-black);
185
+ --leu-t-small-huge-black-font: normal var(--leu-t-small-huge-black-font-size) / var(--leu-t-small-huge-black-line-height) var(--leu-font-family-black);
186
186
 
187
187
  --leu-t-huge-black-font-size: 3.5rem;
188
188
 
@@ -190,7 +190,7 @@
190
190
 
191
191
  --leu-t-huge-black-spacing: 1.75rem;
192
192
 
193
- --leu-t-huge-black-font: var(--leu-t-huge-black-font-size) / var(--leu-t-huge-black-line-height) var(--leu-font-family-black);
193
+ --leu-t-huge-black-font: normal var(--leu-t-huge-black-font-size) / var(--leu-t-huge-black-line-height) var(--leu-font-family-black);
194
194
 
195
195
  --leu-t-giant-black-font-size: 4.5rem;
196
196
 
@@ -198,7 +198,7 @@
198
198
 
199
199
  --leu-t-giant-black-spacing: 2.25rem;
200
200
 
201
- --leu-t-giant-black-font: var(--leu-t-giant-black-font-size) / var(--leu-t-giant-black-line-height) var(--leu-font-family-black);
201
+ --leu-t-giant-black-font: normal var(--leu-t-giant-black-font-size) / var(--leu-t-giant-black-line-height) var(--leu-font-family-black);
202
202
 
203
203
  --leu-t-curve-tiny-regular-font-size: var(--leu-t-tiny-regular-font-size);
204
204
 
@@ -34,6 +34,17 @@
34
34
  }
35
35
  ]
36
36
  },
37
+ {
38
+ "name": "leu-button-group",
39
+ "description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
40
+ "attributes": [],
41
+ "references": [
42
+ {
43
+ "name": "Documentation",
44
+ "url": "https://statistikzh.github.io/leu/?path=/story/button-group"
45
+ }
46
+ ]
47
+ },
37
48
  {
38
49
  "name": "leu-button",
39
50
  "description": "\n---\n\n\n### **Slots:**\n - **before** - The icon to display before the label\n- **after** - The icon to display after the label\n- _default_ - The label of the button or the icon if no label is set",
@@ -110,13 +121,19 @@
110
121
  ]
111
122
  },
112
123
  {
113
- "name": "leu-button-group",
114
- "description": "A radio input-like button group component.\nIt allows only one button to be active at a time.\n---\n\n\n### **Events:**\n - **input** - When the value of the group changes by clicking a button\n\n### **Slots:**\n - _default_ - Slot for the buttons",
115
- "attributes": [],
124
+ "name": "leu-chart-wrapper",
125
+ "description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
126
+ "attributes": [
127
+ {
128
+ "name": "pending",
129
+ "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
130
+ "values": []
131
+ }
132
+ ],
116
133
  "references": [
117
134
  {
118
135
  "name": "Documentation",
119
- "url": "https://statistikzh.github.io/leu/?path=/story/button-group"
136
+ "url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
120
137
  }
121
138
  ]
122
139
  },
@@ -700,23 +717,6 @@
700
717
  }
701
718
  ]
702
719
  },
703
- {
704
- "name": "leu-chart-wrapper",
705
- "description": "A wrapper element for charts.\n---\n\n\n### **Slots:**\n - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.\n- **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.\n- **chart** - The actual chart\n- **caption** - A caption for the chart, e.g. a source or explanation of the data.\n- **download** - A download button or dropdown to export the chart in different formats.",
706
- "attributes": [
707
- {
708
- "name": "pending",
709
- "description": "Whether the chart is currently loading or not.\nWhen set to `true`, a spinner will be shown in the chart container.",
710
- "values": []
711
- }
712
- ],
713
- "references": [
714
- {
715
- "name": "Documentation",
716
- "url": "https://statistikzh.github.io/leu/?path=/story/chart-wrapper"
717
- }
718
- ]
719
- },
720
720
  {
721
721
  "name": "leu-visually-hidden",
722
722
  "description": "\n---\n",
@@ -1,8 +1,9 @@
1
1
  import type { DefineComponent } from "vue";
2
2
 
3
3
  import type { LeuAccordion } from "../Accordion.js";
4
- import type { LeuButton } from "../Button.js";
5
4
  import type { LeuButtonGroup } from "../ButtonGroup.js";
5
+ import type { LeuButton } from "../Button.js";
6
+ import type { LeuChartWrapper } from "../ChartWrapper.js";
6
7
  import type { LeuCheckbox } from "../Checkbox.js";
7
8
  import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
8
9
  import type { LeuChipGroup } from "../ChipGroup.js";
@@ -25,7 +26,6 @@ import type { LeuScrollTop } from "../ScrollTop.js";
25
26
  import type { LeuSelect } from "../Select.js";
26
27
  import type { LeuSpinner } from "../Spinner.js";
27
28
  import type { LeuTable } from "../Table.js";
28
- import type { LeuChartWrapper } from "../ChartWrapper.js";
29
29
  import type { LeuVisuallyHidden } from "../VisuallyHidden.js";
30
30
 
31
31
  type LeuAccordionProps = {
@@ -39,6 +39,13 @@ type LeuAccordionProps = {
39
39
  label?: LeuAccordion["label"];
40
40
  };
41
41
 
42
+ type LeuButtonGroupProps = {
43
+ /** The value of the currently selected (active) button */
44
+ value?: LeuButtonGroup["value"];
45
+ /** When the value of the group changes by clicking a button */
46
+ oninput?: (e: CustomEvent<never>) => void;
47
+ };
48
+
42
49
  type LeuButtonProps = {
43
50
  /** `aria-label` of the underlying button elements.
44
51
  Use it to provide a label when only an icon is visible. */
@@ -70,11 +77,12 @@ If it is set, the icon will either show an expanded or collapsed state. */
70
77
  fluid?: LeuButton["fluid"];
71
78
  };
72
79
 
73
- type LeuButtonGroupProps = {
74
- /** The value of the currently selected (active) button */
75
- value?: LeuButtonGroup["value"];
76
- /** When the value of the group changes by clicking a button */
77
- oninput?: (e: CustomEvent<never>) => void;
80
+ type LeuChartWrapperProps = {
81
+ /** Whether the chart is currently loading or not.
82
+ When set to `true`, a spinner will be shown in the chart container. */
83
+ pending?: LeuChartWrapper["pending"];
84
+ /** */
85
+ hasSlotController?: LeuChartWrapper["hasSlotController"];
78
86
  };
79
87
 
80
88
  type LeuCheckboxProps = {
@@ -426,14 +434,6 @@ type LeuTableProps = {
426
434
  _resizeObserver?: LeuTable["_resizeObserver"];
427
435
  };
428
436
 
429
- type LeuChartWrapperProps = {
430
- /** Whether the chart is currently loading or not.
431
- When set to `true`, a spinner will be shown in the chart container. */
432
- pending?: LeuChartWrapper["pending"];
433
- /** */
434
- hasSlotController?: LeuChartWrapper["hasSlotController"];
435
- };
436
-
437
437
  type LeuVisuallyHiddenProps = {};
438
438
 
439
439
  export type CustomElements = {
@@ -447,6 +447,20 @@ export type CustomElements = {
447
447
  */
448
448
  "leu-accordion": DefineComponent<LeuAccordionProps>;
449
449
 
450
+ /**
451
+ * A radio input-like button group component.
452
+ * It allows only one button to be active at a time.
453
+ * ---
454
+ *
455
+ *
456
+ * ### **Events:**
457
+ * - **input** - When the value of the group changes by clicking a button
458
+ *
459
+ * ### **Slots:**
460
+ * - _default_ - Slot for the buttons
461
+ */
462
+ "leu-button-group": DefineComponent<LeuButtonGroupProps>;
463
+
450
464
  /**
451
465
  *
452
466
  * ---
@@ -460,18 +474,18 @@ export type CustomElements = {
460
474
  "leu-button": DefineComponent<LeuButtonProps>;
461
475
 
462
476
  /**
463
- * A radio input-like button group component.
464
- * It allows only one button to be active at a time.
477
+ * A wrapper element for charts.
465
478
  * ---
466
479
  *
467
480
  *
468
- * ### **Events:**
469
- * - **input** - When the value of the group changes by clicking a button
470
- *
471
481
  * ### **Slots:**
472
- * - _default_ - Slot for the buttons
482
+ * - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
483
+ * - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
484
+ * - **chart** - The actual chart
485
+ * - **caption** - A caption for the chart, e.g. a source or explanation of the data.
486
+ * - **download** - A download button or dropdown to export the chart in different formats.
473
487
  */
474
- "leu-button-group": DefineComponent<LeuButtonGroupProps>;
488
+ "leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
475
489
 
476
490
  /**
477
491
  *
@@ -713,20 +727,6 @@ export type CustomElements = {
713
727
  */
714
728
  "leu-table": DefineComponent<LeuTableProps>;
715
729
 
716
- /**
717
- * A wrapper element for charts.
718
- * ---
719
- *
720
- *
721
- * ### **Slots:**
722
- * - **title** - The title of the chart. Use a heading tag (h2-4) depending on your context.
723
- * - **description** - A description of the chart. Content is wrapped in a `<p>` tag by the component.
724
- * - **chart** - The actual chart
725
- * - **caption** - A caption for the chart, e.g. a source or explanation of the data.
726
- * - **download** - A download button or dropdown to export the chart in different formats.
727
- */
728
- "leu-chart-wrapper": DefineComponent<LeuChartWrapperProps>;
729
-
730
730
  /**
731
731
  *
732
732
  * ---