@statistikzh/leu 0.24.1 → 0.24.2

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 (75) hide show
  1. package/.github/workflows/publish.yml +1 -8
  2. package/.release-please-manifest.json +1 -1
  3. package/CHANGELOG.md +7 -0
  4. package/dist/Accordion.js +1 -1
  5. package/dist/Button.js +1 -1
  6. package/dist/ButtonGroup.js +1 -1
  7. package/dist/ChartWrapper.js +1 -1
  8. package/dist/Checkbox.js +1 -1
  9. package/dist/CheckboxGroup.js +1 -1
  10. package/dist/Chip.js +1 -1
  11. package/dist/ChipGroup.js +1 -1
  12. package/dist/ChipLink.js +1 -1
  13. package/dist/ChipRemovable.js +1 -1
  14. package/dist/ChipSelectable.js +1 -1
  15. package/dist/Dialog.js +1 -1
  16. package/dist/Dropdown.js +1 -1
  17. package/dist/FileInput.js +1 -1
  18. package/dist/Icon.js +1 -1
  19. package/dist/Input.js +1 -1
  20. package/dist/{LeuElement-jrR2M5pZ.js → LeuElement-BfXSO7MN.js} +1 -1
  21. package/dist/Menu.js +1 -1
  22. package/dist/MenuItem.js +1 -1
  23. package/dist/Message.js +1 -1
  24. package/dist/Pagination.js +1 -1
  25. package/dist/Placeholder.js +1 -1
  26. package/dist/Popup.js +1 -1
  27. package/dist/ProgressBar.js +1 -1
  28. package/dist/Radio.js +1 -1
  29. package/dist/RadioGroup.js +1 -1
  30. package/dist/Range.js +1 -1
  31. package/dist/ScrollTop.js +23 -7
  32. package/dist/Select.js +1 -1
  33. package/dist/Spinner.js +1 -1
  34. package/dist/Table.js +1 -1
  35. package/dist/Tag.js +1 -1
  36. package/dist/VisuallyHidden.js +1 -1
  37. package/dist/index.js +1 -1
  38. package/dist/leu-accordion.js +1 -1
  39. package/dist/leu-button-group.js +1 -1
  40. package/dist/leu-button.js +1 -1
  41. package/dist/leu-chart-wrapper.js +1 -1
  42. package/dist/leu-checkbox-group.js +1 -1
  43. package/dist/leu-checkbox.js +1 -1
  44. package/dist/leu-chip-group.js +1 -1
  45. package/dist/leu-chip-link.js +1 -1
  46. package/dist/leu-chip-removable.js +1 -1
  47. package/dist/leu-chip-selectable.js +1 -1
  48. package/dist/leu-dialog.js +1 -1
  49. package/dist/leu-dropdown.js +1 -1
  50. package/dist/leu-file-input.js +1 -1
  51. package/dist/leu-icon.js +1 -1
  52. package/dist/leu-input.js +1 -1
  53. package/dist/leu-menu-item.js +1 -1
  54. package/dist/leu-menu.js +1 -1
  55. package/dist/leu-message.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-progress-bar.js +1 -1
  60. package/dist/leu-radio-group.js +1 -1
  61. package/dist/leu-radio.js +1 -1
  62. package/dist/leu-range.js +1 -1
  63. package/dist/leu-scroll-top.js +1 -1
  64. package/dist/leu-select.js +1 -1
  65. package/dist/leu-spinner.js +1 -1
  66. package/dist/leu-table.js +1 -1
  67. package/dist/leu-tag.js +1 -1
  68. package/dist/leu-visually-hidden.js +1 -1
  69. package/dist/theme.css +1 -0
  70. package/dist/vscode.html-custom-data.json +44 -44
  71. package/dist/vue/index.d.ts +54 -54
  72. package/dist/web-types.json +91 -91
  73. package/package.json +2 -3
  74. package/src/components/scroll-top/scroll-top.css +20 -4
  75. package/src/styles/theme.css +1 -0
@@ -1,6 +1,6 @@
1
1
  import { LeuPlaceholder } from './Placeholder.js';
2
2
  import 'lit';
3
- import './LeuElement-jrR2M5pZ.js';
3
+ import './LeuElement-BfXSO7MN.js';
4
4
 
5
5
  LeuPlaceholder.define("leu-placeholder");
6
6
 
package/dist/leu-popup.js CHANGED
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import '@floating-ui/dom';
6
- import './LeuElement-jrR2M5pZ.js';
6
+ import './LeuElement-BfXSO7MN.js';
7
7
 
8
8
  LeuPopup.define("leu-popup");
9
9
 
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/if-defined.js';
5
5
  import 'lit/decorators.js';
6
- import './LeuElement-jrR2M5pZ.js';
6
+ import './LeuElement-BfXSO7MN.js';
7
7
 
8
8
  LeuProgressBar.define("leu-progress-bar");
9
9
 
@@ -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-jrR2M5pZ.js';
6
+ import './LeuElement-BfXSO7MN.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-jrR2M5pZ.js';
5
+ import './LeuElement-BfXSO7MN.js';
6
6
 
7
7
  LeuRadio.define("leu-radio");
8
8
 
package/dist/leu-range.js CHANGED
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import 'lit/directives/if-defined.js';
6
- import './LeuElement-jrR2M5pZ.js';
6
+ import './LeuElement-BfXSO7MN.js';
7
7
  import './utils-DBGsNSJW.js';
8
8
 
9
9
  LeuRange.define("leu-range");
@@ -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-jrR2M5pZ.js';
6
+ import './LeuElement-BfXSO7MN.js';
7
7
  import './Button.js';
8
8
  import 'lit/directives/if-defined.js';
9
9
  import './Icon.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-jrR2M5pZ.js';
6
+ import './LeuElement-BfXSO7MN.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-jrR2M5pZ.js';
3
+ import './LeuElement-BfXSO7MN.js';
4
4
 
5
5
  LeuSpinner.define("leu-spinner");
6
6
 
package/dist/leu-table.js CHANGED
@@ -2,7 +2,7 @@ import { LeuTable } from './Table.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/class-map.js';
4
4
  import 'lit/directives/ref.js';
5
- import './LeuElement-jrR2M5pZ.js';
5
+ import './LeuElement-BfXSO7MN.js';
6
6
  import 'lit/directive.js';
7
7
  import './Icon.js';
8
8
  import './_tslib-CNEFicEt.js';
package/dist/leu-tag.js CHANGED
@@ -2,7 +2,7 @@ import { LeuTag } from './Tag.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-jrR2M5pZ.js';
5
+ import './LeuElement-BfXSO7MN.js';
6
6
 
7
7
  LeuTag.define("leu-tag");
8
8
 
@@ -1,6 +1,6 @@
1
1
  import { LeuVisuallyHidden } from './VisuallyHidden.js';
2
2
  import 'lit';
3
- import './LeuElement-jrR2M5pZ.js';
3
+ import './LeuElement-BfXSO7MN.js';
4
4
 
5
5
  LeuVisuallyHidden.define("leu-visually-hidden");
6
6
 
package/dist/theme.css CHANGED
@@ -55,6 +55,7 @@
55
55
  --leu-box-shadow-long: 0px 0px 80px var(--leu-color-black-transp-20);
56
56
 
57
57
  --leu-z-index-popup: 100;
58
+ --leu-z-index-scroll-top: 1099;
58
59
 
59
60
  --leu-t-tiny-regular-font-size: 0.75rem;
60
61
 
@@ -34,17 +34,6 @@
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
- },
48
37
  {
49
38
  "name": "leu-button",
50
39
  "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",
@@ -120,6 +109,17 @@
120
109
  }
121
110
  ]
122
111
  },
112
+ {
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": [],
116
+ "references": [
117
+ {
118
+ "name": "Documentation",
119
+ "url": "https://statistikzh.github.io/leu/?path=/story/button-group"
120
+ }
121
+ ]
122
+ },
123
123
  {
124
124
  "name": "leu-chart-wrapper",
125
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.",
@@ -138,17 +138,40 @@
138
138
  ]
139
139
  },
140
140
  {
141
- "name": "leu-dialog",
141
+ "name": "leu-checkbox",
142
142
  "description": "\n---\n",
143
143
  "attributes": [
144
- { "name": "label", "values": [] },
145
- { "name": "sublabel", "values": [] },
146
- { "name": "open", "values": [] }
144
+ { "name": "checked", "values": [] },
145
+ { "name": "disabled", "values": [] },
146
+ { "name": "value", "values": [] },
147
+ { "name": "name", "values": [] }
147
148
  ],
148
149
  "references": [
149
150
  {
150
151
  "name": "Documentation",
151
- "url": "https://statistikzh.github.io/leu/?path=/story/dialog"
152
+ "url": "https://statistikzh.github.io/leu/?path=/story/checkbox"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "name": "leu-checkbox-group",
158
+ "description": "\n---\n\n\n### **Slots:**\n - _default_ - Place the checkboxes inside the default slot.",
159
+ "attributes": [
160
+ {
161
+ "name": "orientation",
162
+ "description": "Defines how the checkboxes should be aligned.",
163
+ "values": [{ "name": "horizontal" }, { "name": "vertical" }]
164
+ },
165
+ {
166
+ "name": "label",
167
+ "description": "The label of the checkbox group",
168
+ "values": []
169
+ }
170
+ ],
171
+ "references": [
172
+ {
173
+ "name": "Documentation",
174
+ "url": "https://statistikzh.github.io/leu/?path=/story/checkbox-group"
152
175
  }
153
176
  ]
154
177
  },
@@ -250,40 +273,17 @@
250
273
  ]
251
274
  },
252
275
  {
253
- "name": "leu-checkbox",
276
+ "name": "leu-dialog",
254
277
  "description": "\n---\n",
255
278
  "attributes": [
256
- { "name": "checked", "values": [] },
257
- { "name": "disabled", "values": [] },
258
- { "name": "value", "values": [] },
259
- { "name": "name", "values": [] }
260
- ],
261
- "references": [
262
- {
263
- "name": "Documentation",
264
- "url": "https://statistikzh.github.io/leu/?path=/story/checkbox"
265
- }
266
- ]
267
- },
268
- {
269
- "name": "leu-checkbox-group",
270
- "description": "\n---\n\n\n### **Slots:**\n - _default_ - Place the checkboxes inside the default slot.",
271
- "attributes": [
272
- {
273
- "name": "orientation",
274
- "description": "Defines how the checkboxes should be aligned.",
275
- "values": [{ "name": "horizontal" }, { "name": "vertical" }]
276
- },
277
- {
278
- "name": "label",
279
- "description": "The label of the checkbox group",
280
- "values": []
281
- }
279
+ { "name": "label", "values": [] },
280
+ { "name": "sublabel", "values": [] },
281
+ { "name": "open", "values": [] }
282
282
  ],
283
283
  "references": [
284
284
  {
285
285
  "name": "Documentation",
286
- "url": "https://statistikzh.github.io/leu/?path=/story/checkbox-group"
286
+ "url": "https://statistikzh.github.io/leu/?path=/story/dialog"
287
287
  }
288
288
  ]
289
289
  },
@@ -1,16 +1,16 @@
1
1
  import type { DefineComponent } from "vue";
2
2
 
3
3
  import type { LeuAccordion } from "../Accordion.js";
4
- import type { LeuButtonGroup } from "../ButtonGroup.js";
5
4
  import type { LeuButton } from "../Button.js";
5
+ import type { LeuButtonGroup } from "../ButtonGroup.js";
6
6
  import type { LeuChartWrapper } from "../ChartWrapper.js";
7
- import type { LeuDialog } from "../Dialog.js";
7
+ import type { LeuCheckbox } from "../Checkbox.js";
8
+ import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
8
9
  import type { LeuChipGroup } from "../ChipGroup.js";
9
10
  import type { LeuChipLink } from "../ChipLink.js";
10
11
  import type { LeuChipRemovable } from "../ChipRemovable.js";
11
12
  import type { LeuChipSelectable, CustomEvent } from "../ChipSelectable.js";
12
- import type { LeuCheckbox } from "../Checkbox.js";
13
- import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
13
+ import type { LeuDialog } from "../Dialog.js";
14
14
  import type { LeuDropdown } from "../Dropdown.js";
15
15
  import type { LeuFileInput, CustomEvent } from "../FileInput.js";
16
16
  import type { LeuIcon } from "../Icon.js";
@@ -43,13 +43,6 @@ type LeuAccordionProps = {
43
43
  label?: LeuAccordion["label"];
44
44
  };
45
45
 
46
- type LeuButtonGroupProps = {
47
- /** The value of the currently selected (active) button */
48
- value?: LeuButtonGroup["value"];
49
- /** When the value of the group changes by clicking a button */
50
- oninput?: (e: CustomEvent<never>) => void;
51
- };
52
-
53
46
  type LeuButtonProps = {
54
47
  /** `aria-label` of the underlying button elements.
55
48
  Use it to provide a label when only an icon is visible. */
@@ -81,6 +74,13 @@ If it is set, the icon will either show an expanded or collapsed state. */
81
74
  fluid?: LeuButton["fluid"];
82
75
  };
83
76
 
77
+ type LeuButtonGroupProps = {
78
+ /** The value of the currently selected (active) button */
79
+ value?: LeuButtonGroup["value"];
80
+ /** When the value of the group changes by clicking a button */
81
+ oninput?: (e: CustomEvent<never>) => void;
82
+ };
83
+
84
84
  type LeuChartWrapperProps = {
85
85
  /** Whether the chart is currently loading or not.
86
86
  When set to `true`, a spinner will be shown in the chart container. */
@@ -89,13 +89,24 @@ When set to `true`, a spinner will be shown in the chart container. */
89
89
  hasSlotController?: LeuChartWrapper["hasSlotController"];
90
90
  };
91
91
 
92
- type LeuDialogProps = {
92
+ type LeuCheckboxProps = {
93
93
  /** */
94
- label?: LeuDialog["label"];
94
+ checked?: LeuCheckbox["checked"];
95
95
  /** */
96
- sublabel?: LeuDialog["sublabel"];
96
+ disabled?: LeuCheckbox["disabled"];
97
97
  /** */
98
- open?: LeuDialog["open"];
98
+ value?: LeuCheckbox["value"];
99
+ /** */
100
+ name?: LeuCheckbox["name"];
101
+ };
102
+
103
+ type LeuCheckboxGroupProps = {
104
+ /** Defines how the checkboxes should be aligned. */
105
+ orientation?: LeuCheckboxGroup["orientation"];
106
+ /** The label of the checkbox group */
107
+ label?: LeuCheckboxGroup["label"];
108
+ /** */
109
+ value?: LeuCheckboxGroup["value"];
99
110
  };
100
111
 
101
112
  type LeuChipGroupProps = {
@@ -147,24 +158,13 @@ type LeuChipSelectableProps = {
147
158
  oninput?: (e: CustomEvent<CustomEvent>) => void;
148
159
  };
149
160
 
150
- type LeuCheckboxProps = {
151
- /** */
152
- checked?: LeuCheckbox["checked"];
153
- /** */
154
- disabled?: LeuCheckbox["disabled"];
161
+ type LeuDialogProps = {
155
162
  /** */
156
- value?: LeuCheckbox["value"];
163
+ label?: LeuDialog["label"];
157
164
  /** */
158
- name?: LeuCheckbox["name"];
159
- };
160
-
161
- type LeuCheckboxGroupProps = {
162
- /** Defines how the checkboxes should be aligned. */
163
- orientation?: LeuCheckboxGroup["orientation"];
164
- /** The label of the checkbox group */
165
- label?: LeuCheckboxGroup["label"];
165
+ sublabel?: LeuDialog["sublabel"];
166
166
  /** */
167
- value?: LeuCheckboxGroup["value"];
167
+ open?: LeuDialog["open"];
168
168
  };
169
169
 
170
170
  type LeuDropdownProps = {
@@ -515,30 +515,30 @@ export type CustomElements = {
515
515
  "leu-accordion": DefineComponent<LeuAccordionProps>;
516
516
 
517
517
  /**
518
- * A radio input-like button group component.
519
- * It allows only one button to be active at a time.
518
+ *
520
519
  * ---
521
520
  *
522
521
  *
523
- * ### **Events:**
524
- * - **input** - When the value of the group changes by clicking a button
525
- *
526
522
  * ### **Slots:**
527
- * - _default_ - Slot for the buttons
523
+ * - **before** - The icon to display before the label
524
+ * - **after** - The icon to display after the label
525
+ * - _default_ - The label of the button or the icon if no label is set
528
526
  */
529
- "leu-button-group": DefineComponent<LeuButtonGroupProps>;
527
+ "leu-button": DefineComponent<LeuButtonProps>;
530
528
 
531
529
  /**
532
- *
530
+ * A radio input-like button group component.
531
+ * It allows only one button to be active at a time.
533
532
  * ---
534
533
  *
535
534
  *
535
+ * ### **Events:**
536
+ * - **input** - When the value of the group changes by clicking a button
537
+ *
536
538
  * ### **Slots:**
537
- * - **before** - The icon to display before the label
538
- * - **after** - The icon to display after the label
539
- * - _default_ - The label of the button or the icon if no label is set
539
+ * - _default_ - Slot for the buttons
540
540
  */
541
- "leu-button": DefineComponent<LeuButtonProps>;
541
+ "leu-button-group": DefineComponent<LeuButtonGroupProps>;
542
542
 
543
543
  /**
544
544
  * A wrapper element for charts.
@@ -559,7 +559,17 @@ export type CustomElements = {
559
559
  * ---
560
560
  *
561
561
  */
562
- "leu-dialog": DefineComponent<LeuDialogProps>;
562
+ "leu-checkbox": DefineComponent<LeuCheckboxProps>;
563
+
564
+ /**
565
+ *
566
+ * ---
567
+ *
568
+ *
569
+ * ### **Slots:**
570
+ * - _default_ - Place the checkboxes inside the default slot.
571
+ */
572
+ "leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
563
573
 
564
574
  /**
565
575
  *
@@ -621,17 +631,7 @@ export type CustomElements = {
621
631
  * ---
622
632
  *
623
633
  */
624
- "leu-checkbox": DefineComponent<LeuCheckboxProps>;
625
-
626
- /**
627
- *
628
- * ---
629
- *
630
- *
631
- * ### **Slots:**
632
- * - _default_ - Place the checkboxes inside the default slot.
633
- */
634
- "leu-checkbox-group": DefineComponent<LeuCheckboxGroupProps>;
634
+ "leu-dialog": DefineComponent<LeuDialogProps>;
635
635
 
636
636
  /**
637
637
  *