@statistikzh/leu 0.20.0 → 0.21.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.
Files changed (78) hide show
  1. package/.release-please-manifest.json +1 -1
  2. package/CHANGELOG.md +12 -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 +1 -1
  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/FileInput.js +1 -1
  17. package/dist/Icon.d.ts +1 -0
  18. package/dist/Icon.js +2 -1
  19. package/dist/Input.js +1 -1
  20. package/dist/{LeuElement-C1c3TgrG.js → LeuElement-BFljD2fO.js} +1 -1
  21. package/dist/Menu.js +10 -2
  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 +1 -1
  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/components/icon/paths.d.ts +1 -0
  38. package/dist/components/icon/paths.d.ts.map +1 -1
  39. package/dist/components/menu/Menu.d.ts.map +1 -1
  40. package/dist/index.js +1 -1
  41. package/dist/leu-accordion.js +1 -1
  42. package/dist/leu-button-group.js +1 -1
  43. package/dist/leu-button.js +1 -1
  44. package/dist/leu-chart-wrapper.js +1 -1
  45. package/dist/leu-checkbox-group.js +1 -1
  46. package/dist/leu-checkbox.js +1 -1
  47. package/dist/leu-chip-group.js +1 -1
  48. package/dist/leu-chip-link.js +1 -1
  49. package/dist/leu-chip-removable.js +1 -1
  50. package/dist/leu-chip-selectable.js +1 -1
  51. package/dist/leu-dialog.js +1 -1
  52. package/dist/leu-dropdown.js +1 -1
  53. package/dist/leu-file-input.js +1 -1
  54. package/dist/leu-icon.js +1 -1
  55. package/dist/leu-input.js +1 -1
  56. package/dist/leu-menu-item.js +1 -1
  57. package/dist/leu-menu.js +1 -1
  58. package/dist/leu-message.js +1 -1
  59. package/dist/leu-pagination.js +1 -1
  60. package/dist/leu-placeholder.js +1 -1
  61. package/dist/leu-popup.js +1 -1
  62. package/dist/leu-progress-bar.js +1 -1
  63. package/dist/leu-radio-group.js +1 -1
  64. package/dist/leu-radio.js +1 -1
  65. package/dist/leu-range.js +1 -1
  66. package/dist/leu-scroll-top.js +1 -1
  67. package/dist/leu-select.js +1 -1
  68. package/dist/leu-spinner.js +1 -1
  69. package/dist/leu-table.js +1 -1
  70. package/dist/leu-tag.js +1 -1
  71. package/dist/leu-visually-hidden.js +1 -1
  72. package/dist/vscode.html-custom-data.json +11 -11
  73. package/dist/vue/index.d.ts +20 -20
  74. package/dist/web-types.json +28 -28
  75. package/package.json +1 -1
  76. package/src/components/icon/paths.ts +2 -0
  77. package/src/components/menu/Menu.ts +5 -1
  78. package/src/components/menu/menu.css +4 -0
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.20.0"
2
+ ".": "0.21.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.21.0](https://github.com/statistikZH/leu/compare/leu-v0.20.0...leu-v0.21.0) (2025-11-13)
4
+
5
+
6
+ ### Features
7
+
8
+ * **icon:** add ruler icon ([7eb144c](https://github.com/statistikZH/leu/commit/7eb144c0792eb0b0b7fdebbd860999e56da16536))
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **menu:** add white background color to avoid transparent area surrounding <hr> elements ([1517fc6](https://github.com/statistikZH/leu/commit/1517fc61d78ba9cfa831f5502d1a6b543789ad07))
14
+
3
15
  ## [0.20.0](https://github.com/statistikZH/leu/compare/leu-v0.19.2...leu-v0.20.0) (2025-10-24)
4
16
 
5
17
 
package/dist/Accordion.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, nothing } from 'lit';
3
3
  import { unsafeStatic, html } from 'lit/static-html.js';
4
4
  import { property } from 'lit/decorators.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
 
7
7
  var css_248z = css`:host {
8
8
  --accordion-font-regular: var(--leu-font-family-regular);
package/dist/Button.js CHANGED
@@ -4,7 +4,7 @@ import { classMap } from 'lit/directives/class-map.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import { property } from 'lit/decorators.js';
6
6
  import { LeuIcon } from './Icon.js';
7
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
7
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
8
8
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
9
9
 
10
10
  /**
@@ -1,5 +1,5 @@
1
1
  import { css, html } from 'lit';
2
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
2
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
3
3
  import { LeuButton } from './Button.js';
4
4
  import './_tslib-CNEFicEt.js';
5
5
  import 'lit/directives/class-map.js';
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, nothing, html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
4
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
5
5
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
6
6
  import { LeuSpinner } from './Spinner.js';
7
7
 
package/dist/Checkbox.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
4
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
5
5
  import { LeuIcon } from './Icon.js';
6
6
 
7
7
  var css_248z = css`:host {
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { property } from 'lit/decorators.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
  import { LeuCheckbox } from './Checkbox.js';
7
7
  import './Icon.js';
8
8
 
package/dist/Chip.js CHANGED
@@ -1,4 +1,4 @@
1
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
1
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
2
2
  import { css } from 'lit';
3
3
 
4
4
  var css_248z = css`:host *::before,
package/dist/ChipGroup.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { unsafeStatic, html } from 'lit/static-html.js';
2
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
2
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
3
3
  import { css } from 'lit';
4
4
 
5
5
  var css_248z = css`.label {
package/dist/ChipLink.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { html } from 'lit';
2
2
  import { LeuChipBase } from './Chip.js';
3
- import './LeuElement-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.js';
4
4
 
5
5
  const SIZES = {
6
6
  regular: "regular",
@@ -1,7 +1,7 @@
1
1
  import { html } from 'lit';
2
2
  import { LeuChipBase } from './Chip.js';
3
3
  import { LeuIcon } from './Icon.js';
4
- import './LeuElement-C1c3TgrG.js';
4
+ import './LeuElement-BFljD2fO.js';
5
5
  import './_tslib-CNEFicEt.js';
6
6
  import 'lit/decorators.js';
7
7
 
@@ -1,6 +1,6 @@
1
1
  import { html } from 'lit';
2
2
  import { LeuChipBase } from './Chip.js';
3
- import './LeuElement-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.js';
4
4
 
5
5
  const SIZES = {
6
6
  small: "small",
package/dist/Dialog.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { css, nothing, html } from 'lit';
2
2
  import { createRef, ref } from 'lit/directives/ref.js';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
4
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
5
5
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
  import './_tslib-CNEFicEt.js';
package/dist/Dropdown.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { css, nothing, html } from 'lit';
2
2
  import { createRef, ref } from 'lit/directives/ref.js';
3
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
3
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
4
4
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
5
5
  import { LeuButton } from './Button.js';
6
6
  import { LeuMenu } from './Menu.js';
package/dist/FileInput.js CHANGED
@@ -3,7 +3,7 @@ import { css, html, nothing } from 'lit';
3
3
  import { property, state, query } from 'lit/decorators.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import { classMap } from 'lit/directives/class-map.js';
6
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
6
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
7
7
  import './Accordion.js';
8
8
  import { LeuButton } from './Button.js';
9
9
  import './ButtonGroup.js';
package/dist/Icon.d.ts CHANGED
@@ -86,6 +86,7 @@ declare const paths: {
86
86
  remove: string;
87
87
  repost: string;
88
88
  resizeText: string;
89
+ ruler: string;
89
90
  search: string;
90
91
  securities: string;
91
92
  setting: string;
package/dist/Icon.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html, svg } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
4
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
5
5
 
6
6
  var css_248z = css`:host {
7
7
  display: contents;
@@ -100,6 +100,7 @@ const paths = {
100
100
  remove: "M12 1C5.926 1 1 5.925 1 12C1 18.075 5.926 23 12 23C18.074 23 23 18.075 23 12C23 5.925 18.074 1 12 1ZM17 13H7V11H17V13Z",
101
101
  repost: "M12.375 8.2485V3.75L22.875 11.25L12.375 18.75V14.25C8.20012 14.2515 4.39838 14.4128 1.125 20.25C1.125 16.5424 1.66875 8.35162 12.375 8.2485Z",
102
102
  resizeText: "M17 8V5H20V8H17ZM11 14H14V11H11V14ZM8 20H5V17H8V20ZM14 20H11V17H14V20ZM17 14H20V11H17V14ZM20 20H17V17H20V20Z",
103
+ ruler: "M1.5 9C1.5 8.72386 1.72386 8.5 2 8.5H22C22.2761 8.5 22.5 8.72386 22.5 9V15C22.5 15.2761 22.2761 15.5 22 15.5H2C1.72386 15.5 1.5 15.2761 1.5 15V9ZM2.5 9.5V14.5H21.5V9.5H2.5Z M4.5 11V9H5.5V11H4.5Z M8 11V9H9V11H8Z M11.5 11V9H12.5V11H11.5Z M15 11V9H16V11H15Z M18.5 11V9H19.5V11H18.5Z",
103
104
  search: "M0.75 9C0.75 4.4445 4.4445 0.75 9 0.75C13.5555 0.75 17.25 4.4445 17.25 9C17.25 13.5555 13.5555 17.25 9 17.25C4.4445 17.25 0.75 13.5555 0.75 9ZM17.25 15.25L15 17.5L21 23.2493L23.25 20.9993L17.25 15.25ZM9 15C5.692 15 3 12.308 3 9C3 5.692 5.692 3 9 3C12.308 3 15 5.692 15 9C15 12.308 12.308 15 9 15Z",
104
105
  securities: "M4 5H20V7H4V5Z M0 0V18H9V16H2V2H22V18H24V0H0Z M15 16H22V18H15V16Z M16 17.0005C16.6279 16.1647 17 15.1258 17 14C17 11.2386 14.7614 9 12 9C9.23858 9 7 11.2386 7 14C7 15.1258 7.37209 16.1647 8 17.0005V24L12 22L16 24V17.0005ZM15 14C15 15.6569 13.6569 17 12 17C10.3431 17 9 15.6569 9 14C9 12.3431 10.3431 11 12 11C13.6569 11 15 12.3431 15 14Z",
105
106
  setting: "M13.9485 22.98H10.0522V20.3467C10.0522 20.238 9.98699 20.1397 9.88649 20.0977L7.77749 19.2157C7.67774 19.1737 7.55999 19.1955 7.48274 19.2735L5.61374 21.1417L2.85899 18.387L4.72124 16.5247C4.79849 16.4475 4.82174 16.332 4.78049 16.2307L3.91274 14.1157C3.87149 14.0145 3.77249 13.9477 3.66299 13.9477H1.01999V10.0522H3.65399C3.76274 10.0522 3.86099 9.98699 3.90299 9.88649L4.78574 7.77749C4.82774 7.67624 4.80524 7.55924 4.72724 7.48199L2.85899 5.61299L5.61374 2.85899L7.47674 4.72049C7.55324 4.79774 7.66874 4.82099 7.76999 4.77974L9.88499 3.91199C9.98624 3.87074 10.0522 3.77174 10.0522 3.66224V1.01999H13.9485V3.65549C13.9485 3.76424 14.0145 3.86249 14.115 3.90449L16.224 4.78649C16.3245 4.82849 16.4415 4.80524 16.5195 4.72799L18.3877 2.85974L21.1432 5.61449L19.2802 7.47674C19.2037 7.55324 19.1805 7.66949 19.2217 7.76999L20.0895 9.88499C20.1315 9.98624 20.2297 10.0522 20.3392 10.0522H22.9807V13.9477H20.3467C20.238 13.9477 20.1397 14.0137 20.0977 14.1142L19.2157 16.2232C19.173 16.3245 19.1962 16.4407 19.2735 16.5187L21.1425 18.387L18.387 21.1417L16.5247 19.2795C16.4467 19.203 16.3312 19.1782 16.2307 19.221L14.1165 20.088C14.0152 20.13 13.9485 20.2282 13.9485 20.3377V22.98ZM12 17C14.7614 17 17 14.7614 17 12C17 9.23857 14.7614 6.99999 12 6.99999C9.23858 6.99999 7 9.23857 7 12C7 14.7614 9.23858 17 12 17Z",
package/dist/Input.js CHANGED
@@ -3,7 +3,7 @@ import { classMap } from 'lit/directives/class-map.js';
3
3
  import { ifDefined } from 'lit/directives/if-defined.js';
4
4
  import { live } from 'lit/directives/live.js';
5
5
  import { createRef, ref } from 'lit/directives/ref.js';
6
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
6
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
7
7
  import { LeuIcon } from './Icon.js';
8
8
  import './_tslib-CNEFicEt.js';
9
9
  import 'lit/decorators.js';
@@ -35,7 +35,7 @@ class LeuElement extends LitElement {
35
35
  }
36
36
  }
37
37
  }
38
- LeuElement.version = "0.20.0";
38
+ LeuElement.version = "0.21.0";
39
39
  LeuElement.dependencies = {};
40
40
  LeuElement.styles = css_248z;
41
41
 
package/dist/Menu.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { css, html } from 'lit';
2
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
2
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
3
3
  import { LeuMenuItem } from './MenuItem.js';
4
4
  import 'lit/directives/if-defined.js';
5
5
  import './Icon.js';
@@ -22,6 +22,10 @@ var css_248z = css`:host {
22
22
  padding: 0 !important;
23
23
  background: none !important;
24
24
  }
25
+
26
+ .container {
27
+ background-color: var(--leu-color-black-0);
28
+ }
25
29
  `;
26
30
 
27
31
  /**
@@ -137,7 +141,11 @@ class LeuMenu extends LeuElement {
137
141
  }
138
142
  }
139
143
  render() {
140
- return html `<slot></slot>`;
144
+ return html `
145
+ <div class="container">
146
+ <slot></slot>
147
+ </div>
148
+ `;
141
149
  }
142
150
  }
143
151
  LeuMenu.styles = [LeuElement.styles, css_248z];
package/dist/MenuItem.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { css, html, nothing } from 'lit';
2
2
  import { ifDefined } from 'lit/directives/if-defined.js';
3
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
3
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
4
4
  import { LeuIcon } from './Icon.js';
5
5
  import './_tslib-CNEFicEt.js';
6
6
  import 'lit/decorators.js';
package/dist/Message.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
8
8
 
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html } from 'lit';
3
3
  import { live } from 'lit/directives/live.js';
4
4
  import { property, state } from 'lit/decorators.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
  import { LeuButton } from './Button.js';
7
7
  import { LeuVisuallyHidden } from './VisuallyHidden.js';
8
8
  import { LeuIcon } from './Icon.js';
@@ -1,5 +1,5 @@
1
1
  import { css, html } from 'lit';
2
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
2
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
3
3
 
4
4
  var css_248z = css`:host {
5
5
  --placeholder-font-regular: var(--leu-font-family-regular);
package/dist/Popup.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
 
7
7
  var css_248z = css`:host {
8
8
  --popup-font-regular: var(--leu-font-family-regular);
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, nothing, html } from 'lit';
3
3
  import { ifDefined } from 'lit/directives/if-defined.js';
4
4
  import { property } from 'lit/decorators.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
 
7
7
  var css_248z = css`/* :host {
8
8
  --progress-bar-font-regular: var(--leu-font-family-regular);
package/dist/Radio.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
4
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
5
5
 
6
6
  var css_248z = css`:host {
7
7
  --radio-color: var(--leu-color-black-40);
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { property } from 'lit/decorators.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
  import { LeuRadio } from './Radio.js';
7
7
 
8
8
  var css_248z = css`:host {
package/dist/Range.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { css, html } from 'lit';
2
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
2
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
3
3
 
4
4
  var css_248z = css`:host {
5
5
  --range-color: var(--leu-color-black-40);
package/dist/ScrollTop.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { css, html } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
3
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
4
4
  import { LeuButton } from './Button.js';
5
5
  import { LeuIcon } from './Icon.js';
6
6
  import './_tslib-CNEFicEt.js';
package/dist/Select.js CHANGED
@@ -2,7 +2,7 @@ import { css, nothing, html } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
3
  import { createRef, ref } from 'lit/directives/ref.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
7
7
  import { LeuButton } from './Button.js';
8
8
  import { LeuMenu } from './Menu.js';
package/dist/Spinner.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { css, html } from 'lit';
2
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
2
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
3
3
 
4
4
  var css_248z = css`@keyframes leu-spinner-rotate {
5
5
  from {
package/dist/Table.js CHANGED
@@ -2,7 +2,7 @@ import { css, html, nothing } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
3
  import { styleMap } from 'lit/directives/style-map.js';
4
4
  import { createRef, ref } from 'lit/directives/ref.js';
5
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
5
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
  import { LeuPagination } from './Pagination.js';
8
8
  import './_tslib-CNEFicEt.js';
package/dist/Tag.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
4
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
5
5
 
6
6
  var css_248z = css`:host {
7
7
  /* --tag-font-regular: var(--leu-font-family-regular);
@@ -1,5 +1,5 @@
1
1
  import { css, html } from 'lit';
2
- import { L as LeuElement } from './LeuElement-C1c3TgrG.js';
2
+ import { L as LeuElement } from './LeuElement-BFljD2fO.js';
3
3
 
4
4
  var css_248z = css`:host {
5
5
  clip: rect(0 0 0 0);
@@ -82,6 +82,7 @@ export declare const paths: {
82
82
  remove: string;
83
83
  repost: string;
84
84
  resizeText: string;
85
+ ruler: string;
85
86
  search: string;
86
87
  securities: string;
87
88
  setting: string;
@@ -1 +1 @@
1
- {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/components/icon/paths.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAA;AAE7C,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsNjB,CAAA"}
1
+ {"version":3,"file":"paths.d.ts","sourceRoot":"","sources":["../../../src/components/icon/paths.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,KAAK,CAAA;AAE7C,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwNjB,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C;;GAEG;AAEH;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,MAAM,CAAC,UAAU;;;;;MAEhB;;IAWD,iBAAiB;IAUjB,oBAAoB;IAKpB,iBAAiB;IAKjB,iBAAiB;IAuBjB;;;OAGG;IACH,YAAY;IAOZ,mBAAmB;IAInB,cAAc,CAAC,KAAK,KAAA;IAqBpB,cAAc,CAAC,KAAK,KAAA;IAkBpB,SAAS,CAAC,KAAK,KAAA;IAMf,YAAY;IAIZ,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAM/C,MAAM;CAGP"}
1
+ {"version":3,"file":"Menu.d.ts","sourceRoot":"","sources":["../../../src/components/menu/Menu.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAEpD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAI3C;;GAEG;AAEH;;;GAGG;AACH,qBAAa,OAAQ,SAAQ,UAAU;IACrC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAED,MAAM,CAAC,UAAU;;;;;MAEhB;;IAWD,iBAAiB;IAUjB,oBAAoB;IAKpB,iBAAiB;IAKjB,iBAAiB;IAuBjB;;;OAGG;IACH,YAAY;IAOZ,mBAAmB;IAInB,cAAc,CAAC,KAAK,KAAA;IAqBpB,cAAc,CAAC,KAAK,KAAA;IAkBpB,SAAS,CAAC,KAAK,KAAA;IAMf,YAAY;IAIZ,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAM/C,MAAM;CAOP"}
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ export { LeuRadio } from './Radio.js';
18
18
  export { LeuRadioGroup } from './RadioGroup.js';
19
19
  export { LeuSelect } from './Select.js';
20
20
  export { LeuTable } from './Table.js';
21
- export { L as LeuElement } from './LeuElement-C1c3TgrG.js';
21
+ export { L as LeuElement } from './LeuElement-BFljD2fO.js';
22
22
  import './_tslib-CNEFicEt.js';
23
23
  import 'lit';
24
24
  import 'lit/static-html.js';
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/static-html.js';
5
5
  import 'lit/decorators.js';
6
- import './LeuElement-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.js';
7
7
 
8
8
  LeuAccordion.define("leu-accordion");
9
9
 
@@ -1,6 +1,6 @@
1
1
  import { LeuButtonGroup } from './ButtonGroup.js';
2
2
  import 'lit';
3
- import './LeuElement-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.js';
4
4
  import './Button.js';
5
5
  import './_tslib-CNEFicEt.js';
6
6
  import 'lit/directives/class-map.js';
@@ -5,7 +5,7 @@ import 'lit/directives/class-map.js';
5
5
  import 'lit/directives/if-defined.js';
6
6
  import 'lit/decorators.js';
7
7
  import './Icon.js';
8
- import './LeuElement-C1c3TgrG.js';
8
+ import './LeuElement-BFljD2fO.js';
9
9
  import './hasSlotController-Bm2tipvG.js';
10
10
 
11
11
  LeuButton.define("leu-button");
@@ -2,7 +2,7 @@ import { LeuChartWrapper } from './ChartWrapper.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-C1c3TgrG.js';
5
+ import './LeuElement-BFljD2fO.js';
6
6
  import './hasSlotController-Bm2tipvG.js';
7
7
  import './Spinner.js';
8
8
 
@@ -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-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.js';
7
7
  import './Checkbox.js';
8
8
  import './Icon.js';
9
9
 
@@ -2,7 +2,7 @@ import { LeuCheckbox } from './Checkbox.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-C1c3TgrG.js';
5
+ import './LeuElement-BFljD2fO.js';
6
6
  import './Icon.js';
7
7
 
8
8
  LeuCheckbox.define("leu-checkbox");
@@ -1,6 +1,6 @@
1
1
  import { LeuChipGroup } from './ChipGroup.js';
2
2
  import 'lit/static-html.js';
3
- import './LeuElement-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.js';
4
4
  import 'lit';
5
5
 
6
6
  LeuChipGroup.define("leu-chip-group");
@@ -1,7 +1,7 @@
1
1
  import { LeuChipLink } from './ChipLink.js';
2
2
  import 'lit';
3
3
  import './Chip.js';
4
- import './LeuElement-C1c3TgrG.js';
4
+ import './LeuElement-BFljD2fO.js';
5
5
 
6
6
  LeuChipLink.define("leu-chip-link");
7
7
 
@@ -1,7 +1,7 @@
1
1
  import { LeuChipRemovable } from './ChipRemovable.js';
2
2
  import 'lit';
3
3
  import './Chip.js';
4
- import './LeuElement-C1c3TgrG.js';
4
+ import './LeuElement-BFljD2fO.js';
5
5
  import './Icon.js';
6
6
  import './_tslib-CNEFicEt.js';
7
7
  import 'lit/decorators.js';
@@ -1,7 +1,7 @@
1
1
  import { LeuChipSelectable } from './ChipSelectable.js';
2
2
  import 'lit';
3
3
  import './Chip.js';
4
- import './LeuElement-C1c3TgrG.js';
4
+ import './LeuElement-BFljD2fO.js';
5
5
 
6
6
  LeuChipSelectable.define("leu-chip-selectable");
7
7
 
@@ -2,7 +2,7 @@ import { LeuDialog } from './Dialog.js';
2
2
  import 'lit';
3
3
  import 'lit/directives/ref.js';
4
4
  import 'lit/directives/class-map.js';
5
- import './LeuElement-C1c3TgrG.js';
5
+ import './LeuElement-BFljD2fO.js';
6
6
  import './hasSlotController-Bm2tipvG.js';
7
7
  import './Icon.js';
8
8
  import './_tslib-CNEFicEt.js';
@@ -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-C1c3TgrG.js';
4
+ import './LeuElement-BFljD2fO.js';
5
5
  import './hasSlotController-Bm2tipvG.js';
6
6
  import './Button.js';
7
7
  import './_tslib-CNEFicEt.js';
@@ -4,7 +4,7 @@ import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import 'lit/directives/if-defined.js';
6
6
  import 'lit/directives/class-map.js';
7
- import './LeuElement-C1c3TgrG.js';
7
+ import './LeuElement-BFljD2fO.js';
8
8
  import './Accordion.js';
9
9
  import 'lit/static-html.js';
10
10
  import './Button.js';
package/dist/leu-icon.js CHANGED
@@ -2,7 +2,7 @@ import { LeuIcon } from './Icon.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-C1c3TgrG.js';
5
+ import './LeuElement-BFljD2fO.js';
6
6
 
7
7
  LeuIcon.define("leu-icon");
8
8
 
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-C1c3TgrG.js';
7
+ import './LeuElement-BFljD2fO.js';
8
8
  import './Icon.js';
9
9
  import './_tslib-CNEFicEt.js';
10
10
  import 'lit/decorators.js';
@@ -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-C1c3TgrG.js';
4
+ import './LeuElement-BFljD2fO.js';
5
5
  import './Icon.js';
6
6
  import './_tslib-CNEFicEt.js';
7
7
  import 'lit/decorators.js';
package/dist/leu-menu.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { LeuMenu } from './Menu.js';
2
2
  import 'lit';
3
- import './LeuElement-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.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/decorators.js';
5
5
  import 'lit/directives/class-map.js';
6
- import './LeuElement-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.js';
7
7
  import './Icon.js';
8
8
  import './hasSlotController-Bm2tipvG.js';
9
9
 
@@ -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-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
5
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
4
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
6
+ import './LeuElement-BFljD2fO.js';
7
7
  import './Icon.js';
8
8
  import './_tslib-CNEFicEt.js';
9
9
  import 'lit/decorators.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-C1c3TgrG.js';
5
+ import './LeuElement-BFljD2fO.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-C1c3TgrG.js';
3
+ import './LeuElement-BFljD2fO.js';
4
4
 
5
5
  LeuVisuallyHidden.define("leu-visually-hidden");
6
6
 
@@ -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.",
@@ -1,8 +1,8 @@
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
7
  import type { LeuCheckbox } from "../Checkbox.js";
8
8
  import type { LeuCheckboxGroup } from "../CheckboxGroup.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. */
@@ -501,30 +501,30 @@ export type CustomElements = {
501
501
  "leu-accordion": DefineComponent<LeuAccordionProps>;
502
502
 
503
503
  /**
504
- * A radio input-like button group component.
505
- * It allows only one button to be active at a time.
506
- * ---
507
504
  *
505
+ * ---
508
506
  *
509
- * ### **Events:**
510
- * - **input** - When the value of the group changes by clicking a button
511
507
  *
512
508
  * ### **Slots:**
513
- * - _default_ - Slot for the buttons
509
+ * - **before** - The icon to display before the label
510
+ * - **after** - The icon to display after the label
511
+ * - _default_ - The label of the button or the icon if no label is set
514
512
  */
515
- "leu-button-group": DefineComponent<LeuButtonGroupProps>;
513
+ "leu-button": DefineComponent<LeuButtonProps>;
516
514
 
517
515
  /**
518
- *
516
+ * A radio input-like button group component.
517
+ * It allows only one button to be active at a time.
519
518
  * ---
520
519
  *
521
520
  *
521
+ * ### **Events:**
522
+ * - **input** - When the value of the group changes by clicking a button
523
+ *
522
524
  * ### **Slots:**
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
525
+ * - _default_ - Slot for the buttons
526
526
  */
527
- "leu-button": DefineComponent<LeuButtonProps>;
527
+ "leu-button-group": DefineComponent<LeuButtonGroupProps>;
528
528
 
529
529
  /**
530
530
  * A wrapper element for charts.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@statistikzh/leu",
4
- "version": "0.20.0",
4
+ "version": "0.21.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -65,33 +65,6 @@
65
65
  "events": []
66
66
  }
67
67
  },
68
- {
69
- "name": "leu-button-group",
70
- "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",
71
- "doc-url": "",
72
- "attributes": [],
73
- "slots": [{ "name": "", "description": "Slot for the buttons" }],
74
- "events": [
75
- {
76
- "name": "input",
77
- "description": "When the value of the group changes by clicking a button"
78
- }
79
- ],
80
- "js": {
81
- "properties": [
82
- {
83
- "name": "value",
84
- "description": "The value of the currently selected (active) button"
85
- }
86
- ],
87
- "events": [
88
- {
89
- "name": "input",
90
- "description": "When the value of the group changes by clicking a button"
91
- }
92
- ]
93
- }
94
- },
95
68
  {
96
69
  "name": "leu-button",
97
70
  "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",
@@ -238,6 +211,33 @@
238
211
  "events": []
239
212
  }
240
213
  },
214
+ {
215
+ "name": "leu-button-group",
216
+ "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",
217
+ "doc-url": "",
218
+ "attributes": [],
219
+ "slots": [{ "name": "", "description": "Slot for the buttons" }],
220
+ "events": [
221
+ {
222
+ "name": "input",
223
+ "description": "When the value of the group changes by clicking a button"
224
+ }
225
+ ],
226
+ "js": {
227
+ "properties": [
228
+ {
229
+ "name": "value",
230
+ "description": "The value of the currently selected (active) button"
231
+ }
232
+ ],
233
+ "events": [
234
+ {
235
+ "name": "input",
236
+ "description": "When the value of the group changes by clicking a button"
237
+ }
238
+ ]
239
+ }
240
+ },
241
241
  {
242
242
  "name": "leu-chart-wrapper",
243
243
  "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.",
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UI component library of the canton of zurich",
4
4
  "license": "MIT",
5
5
  "author": "statistikzh",
6
- "version": "0.20.0",
6
+ "version": "0.21.0",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -143,6 +143,8 @@ export const paths = {
143
143
  "M12.375 8.2485V3.75L22.875 11.25L12.375 18.75V14.25C8.20012 14.2515 4.39838 14.4128 1.125 20.25C1.125 16.5424 1.66875 8.35162 12.375 8.2485Z",
144
144
  resizeText:
145
145
  "M17 8V5H20V8H17ZM11 14H14V11H11V14ZM8 20H5V17H8V20ZM14 20H11V17H14V20ZM17 14H20V11H17V14ZM20 20H17V17H20V20Z",
146
+ ruler:
147
+ "M1.5 9C1.5 8.72386 1.72386 8.5 2 8.5H22C22.2761 8.5 22.5 8.72386 22.5 9V15C22.5 15.2761 22.2761 15.5 22 15.5H2C1.72386 15.5 1.5 15.2761 1.5 15V9ZM2.5 9.5V14.5H21.5V9.5H2.5Z M4.5 11V9H5.5V11H4.5Z M8 11V9H9V11H8Z M11.5 11V9H12.5V11H11.5Z M15 11V9H16V11H15Z M18.5 11V9H19.5V11H18.5Z",
146
148
  search:
147
149
  "M0.75 9C0.75 4.4445 4.4445 0.75 9 0.75C13.5555 0.75 17.25 4.4445 17.25 9C17.25 13.5555 13.5555 17.25 9 17.25C4.4445 17.25 0.75 13.5555 0.75 9ZM17.25 15.25L15 17.5L21 23.2493L23.25 20.9993L17.25 15.25ZM9 15C5.692 15 3 12.308 3 9C3 5.692 5.692 3 9 3C12.308 3 15 5.692 15 9C15 12.308 12.308 15 9 15Z",
148
150
  securities:
@@ -149,6 +149,10 @@ export class LeuMenu extends LeuElement {
149
149
  }
150
150
 
151
151
  render() {
152
- return html`<slot></slot>`
152
+ return html`
153
+ <div class="container">
154
+ <slot></slot>
155
+ </div>
156
+ `
153
157
  }
154
158
  }
@@ -13,3 +13,7 @@
13
13
  padding: 0 !important;
14
14
  background: none !important;
15
15
  }
16
+
17
+ .container {
18
+ background-color: var(--leu-color-black-0);
19
+ }