@statistikzh/leu 0.21.1 → 0.22.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 +7 -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.d.ts +4 -0
  16. package/dist/Dropdown.js +4 -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-BLUQU9Eu.js → LeuElement-BooZrClI.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 +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/dropdown/Dropdown.d.ts +4 -0
  38. package/dist/components/dropdown/Dropdown.d.ts.map +1 -1
  39. package/dist/components/dropdown/stories/dropdown.stories.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 +13 -12
  73. package/dist/vue/index.d.ts +22 -20
  74. package/dist/web-types.json +33 -28
  75. package/package.json +1 -1
  76. package/src/components/dropdown/Dropdown.ts +3 -0
  77. package/src/components/dropdown/stories/dropdown.stories.ts +6 -2
  78. package/src/components/dropdown/test/dropdown.test.ts +14 -2
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.21.1"
2
+ ".": "0.22.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.22.0](https://github.com/statistikZH/leu/compare/leu-v0.21.1...leu-v0.22.0) (2025-11-18)
4
+
5
+
6
+ ### Features
7
+
8
+ * **dropdown:** add inverted property so that the dropdown can be used on a dark barkground ([a0ee49c](https://github.com/statistikZH/leu/commit/a0ee49c06518563d2ff69fa1e3dfe8781b97cc28))
9
+
3
10
  ## [0.21.1](https://github.com/statistikZH/leu/compare/leu-v0.21.0...leu-v0.21.1) (2025-11-17)
4
11
 
5
12
 
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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
7
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
2
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
1
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
2
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import { L as LeuElement } from './LeuElement-BooZrClI.js';
5
5
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
  import './_tslib-CNEFicEt.js';
@@ -29,6 +29,10 @@ declare class LeuDropdown extends LeuElement {
29
29
  type: BooleanConstructor;
30
30
  reflect: boolean;
31
31
  };
32
+ inverted: {
33
+ type: BooleanConstructor;
34
+ reflect: boolean;
35
+ };
32
36
  };
33
37
  hasSlotController: HasSlotController;
34
38
  constructor();
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-BLUQU9Eu.js';
3
+ import { L as LeuElement } from './LeuElement-BooZrClI.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';
@@ -63,6 +63,7 @@ class LeuDropdown extends LeuElement {
63
63
  };
64
64
  this.label = "";
65
65
  this.expanded = false;
66
+ this.inverted = false;
66
67
  /** @type {import("lit/directives/ref").Ref<HTMLButtonElement>} */
67
68
  this._toggleRef = createRef();
68
69
  }
@@ -128,6 +129,7 @@ class LeuDropdown extends LeuElement {
128
129
  variant="ghost"
129
130
  expanded=${this.expanded ? "true" : "false"}
130
131
  ?active=${this.expanded}
132
+ ?inverted=${this.inverted}
131
133
  @click=${this._handleToggleClick}
132
134
  @keydown=${this._keyDownToggleHandler}
133
135
  >
@@ -151,6 +153,7 @@ LeuDropdown.styles = [LeuElement.styles, css_248z];
151
153
  LeuDropdown.properties = {
152
154
  label: { type: String, reflect: true },
153
155
  expanded: { type: Boolean, reflect: true },
156
+ inverted: { type: Boolean, reflect: true },
154
157
  };
155
158
 
156
159
  export { LeuDropdown };
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-BLUQU9Eu.js';
6
+ import { L as LeuElement } from './LeuElement-BooZrClI.js';
7
7
  import './Accordion.js';
8
8
  import { LeuButton } from './Button.js';
9
9
  import './ButtonGroup.js';
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-BLUQU9Eu.js';
4
+ import { L as LeuElement } from './LeuElement-BooZrClI.js';
5
5
 
6
6
  var css_248z = css`:host {
7
7
  display: contents;
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-BLUQU9Eu.js';
6
+ import { L as LeuElement } from './LeuElement-BooZrClI.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.21.1";
38
+ LeuElement.version = "0.22.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-BLUQU9Eu.js';
2
+ import { L as LeuElement } from './LeuElement-BooZrClI.js';
3
3
  import { LeuMenuItem } from './MenuItem.js';
4
4
  import 'lit/directives/if-defined.js';
5
5
  import './Icon.js';
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-BLUQU9Eu.js';
3
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
2
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
2
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
2
+ import { L as LeuElement } from './LeuElement-BooZrClI.js';
3
3
 
4
4
  var css_248z = css`@keyframes leu-spinner-rotate {
5
5
  from {
package/dist/Table.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { nothing, noChange, css, html } from 'lit';
2
2
  import { classMap } from 'lit/directives/class-map.js';
3
3
  import { createRef, ref } from 'lit/directives/ref.js';
4
- import { L as LeuElement } from './LeuElement-BLUQU9Eu.js';
4
+ import { L as LeuElement } from './LeuElement-BooZrClI.js';
5
5
  import { directive, Directive, PartType } from 'lit/directive.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
  import { LeuPagination } from './Pagination.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-BLUQU9Eu.js';
4
+ import { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
2
+ import { L as LeuElement } from './LeuElement-BooZrClI.js';
3
3
 
4
4
  var css_248z = css`:host {
5
5
  clip: rect(0 0 0 0);
@@ -24,6 +24,10 @@ export declare class LeuDropdown extends LeuElement {
24
24
  type: BooleanConstructor;
25
25
  reflect: boolean;
26
26
  };
27
+ inverted: {
28
+ type: BooleanConstructor;
29
+ reflect: boolean;
30
+ };
27
31
  };
28
32
  hasSlotController: HasSlotController;
29
33
  constructor();
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/Dropdown.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAI5C;;GAEG;AACH,qBAAa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,YAAY;;;;;MAKlB;IAED,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,UAAU;;;;;;;;;MAGhB;IAED,iBAAiB,oBAAwC;;IAYzD,iBAAiB;IAWjB,oBAAoB;IAWpB,qBAAqB,uBAIpB;IAED,aAAa,CAAC,KAAK,KAAA;IAMb,qBAAqB,CAAC,KAAK,KAAA;IAiBjC,qBAAqB,mBAKpB;IAED;;;;OAIG;IACH,mBAAmB,mBAMlB;IAED,kBAAkB;IAIlB;;OAEG;IACH,QAAQ;IAIR,MAAM;CA8BP"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/Dropdown.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAA;AAElE,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AACzC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAI5C;;GAEG;AACH,qBAAa,WAAY,SAAQ,UAAU;IACzC,MAAM,CAAC,YAAY;;;;;MAKlB;IAED,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,UAAU;;;;;;;;;;;;;MAIhB;IAED,iBAAiB,oBAAwC;;IAazD,iBAAiB;IAWjB,oBAAoB;IAWpB,qBAAqB,uBAIpB;IAED,aAAa,CAAC,KAAK,KAAA;IAMb,qBAAqB,CAAC,KAAK,KAAA;IAiBjC,qBAAqB,mBAKpB;IAED;;;;OAIG;IACH,mBAAmB,mBAMlB;IAED,kBAAkB;IAIlB;;OAEG;IACH,QAAQ;IAIR,MAAM;CA+BP"}
@@ -1 +1 @@
1
- {"version":3,"file":"dropdown.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/stories/dropdown.stories.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAA;AAC3B,OAAO,wBAAwB,CAAA;AAI/B;;GAEG;;;;;;;;;;;;;;;;;AACH,wBAeC;AAoBD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAMxC,eAAO,MAAM,WAAW,KAAoB,CAAA"}
1
+ {"version":3,"file":"dropdown.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/dropdown/stories/dropdown.stories.ts"],"names":[],"mappings":"AACA,OAAO,oBAAoB,CAAA;AAC3B,OAAO,wBAAwB,CAAA;AAI/B;;GAEG;;;;;;;;;;;;;;;;;AACH,wBAeC;AAwBD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAMxC,eAAO,MAAM,WAAW,KAAoB,CAAA"}
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-BLUQU9Eu.js';
21
+ export { L as LeuElement } from './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
8
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
7
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
7
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
4
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
6
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
5
+ import './LeuElement-BooZrClI.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-BLUQU9Eu.js';
3
+ import './LeuElement-BooZrClI.js';
4
4
 
5
5
  LeuVisuallyHidden.define("leu-visually-hidden");
6
6
 
@@ -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",
@@ -109,17 +120,6 @@
109
120
  }
110
121
  ]
111
122
  },
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.",
@@ -288,7 +288,8 @@
288
288
  "description": "\n---\n",
289
289
  "attributes": [
290
290
  { "name": "label", "values": [] },
291
- { "name": "expanded", "values": [] }
291
+ { "name": "expanded", "values": [] },
292
+ { "name": "inverted", "values": [] }
292
293
  ],
293
294
  "references": [
294
295
  {
@@ -1,8 +1,8 @@
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
6
  import type { LeuChartWrapper } from "../ChartWrapper.js";
7
7
  import type { LeuCheckbox } from "../Checkbox.js";
8
8
  import type { LeuCheckboxGroup } from "../CheckboxGroup.js";
@@ -43,6 +43,13 @@ 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
+
46
53
  type LeuButtonProps = {
47
54
  /** `aria-label` of the underlying button elements.
48
55
  Use it to provide a label when only an icon is visible. */
@@ -74,13 +81,6 @@ If it is set, the icon will either show an expanded or collapsed state. */
74
81
  fluid?: LeuButton["fluid"];
75
82
  };
76
83
 
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. */
@@ -175,6 +175,8 @@ type LeuDropdownProps = {
175
175
  /** */
176
176
  expanded?: LeuDropdown["expanded"];
177
177
  /** */
178
+ inverted?: LeuDropdown["inverted"];
179
+ /** */
178
180
  hasSlotController?: LeuDropdown["hasSlotController"];
179
181
  /** */
180
182
  _documentClickHandler?: LeuDropdown["_documentClickHandler"];
@@ -500,18 +502,6 @@ export type CustomElements = {
500
502
  */
501
503
  "leu-accordion": DefineComponent<LeuAccordionProps>;
502
504
 
503
- /**
504
- *
505
- * ---
506
- *
507
- *
508
- * ### **Slots:**
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
512
- */
513
- "leu-button": DefineComponent<LeuButtonProps>;
514
-
515
505
  /**
516
506
  * A radio input-like button group component.
517
507
  * It allows only one button to be active at a time.
@@ -526,6 +516,18 @@ export type CustomElements = {
526
516
  */
527
517
  "leu-button-group": DefineComponent<LeuButtonGroupProps>;
528
518
 
519
+ /**
520
+ *
521
+ * ---
522
+ *
523
+ *
524
+ * ### **Slots:**
525
+ * - **before** - The icon to display before the label
526
+ * - **after** - The icon to display after the label
527
+ * - _default_ - The label of the button or the icon if no label is set
528
+ */
529
+ "leu-button": DefineComponent<LeuButtonProps>;
530
+
529
531
  /**
530
532
  * A wrapper element for charts.
531
533
  * ---
@@ -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.21.1",
4
+ "version": "0.22.0",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -65,6 +65,33 @@
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
+ },
68
95
  {
69
96
  "name": "leu-button",
70
97
  "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",
@@ -211,33 +238,6 @@
211
238
  "events": []
212
239
  }
213
240
  },
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.",
@@ -576,6 +576,10 @@
576
576
  {
577
577
  "name": "expanded",
578
578
  "value": { "type": "boolean", "default": "false" }
579
+ },
580
+ {
581
+ "name": "inverted",
582
+ "value": { "type": "boolean", "default": "false" }
579
583
  }
580
584
  ],
581
585
  "events": [],
@@ -590,6 +594,7 @@
590
594
  },
591
595
  { "name": "label", "type": "string" },
592
596
  { "name": "expanded", "type": "boolean" },
597
+ { "name": "inverted", "type": "boolean" },
593
598
  { "name": "_toggleRef", "type": "Ref<HTMLButtonElement>" }
594
599
  ],
595
600
  "events": []
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.21.1",
6
+ "version": "0.22.0",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -27,6 +27,7 @@ export class LeuDropdown extends LeuElement {
27
27
  static properties = {
28
28
  label: { type: String, reflect: true },
29
29
  expanded: { type: Boolean, reflect: true },
30
+ inverted: { type: Boolean, reflect: true },
30
31
  }
31
32
 
32
33
  hasSlotController = new HasSlotController(this, ["icon"])
@@ -36,6 +37,7 @@ export class LeuDropdown extends LeuElement {
36
37
 
37
38
  this.label = ""
38
39
  this.expanded = false
40
+ this.inverted = false
39
41
 
40
42
  /** @type {import("lit/directives/ref").Ref<HTMLButtonElement>} */
41
43
  this._toggleRef = createRef()
@@ -141,6 +143,7 @@ export class LeuDropdown extends LeuElement {
141
143
  variant="ghost"
142
144
  expanded=${this.expanded ? "true" : "false"}
143
145
  ?active=${this.expanded}
146
+ ?inverted=${this.inverted}
144
147
  @click=${this._handleToggleClick}
145
148
  @keydown=${this._keyDownToggleHandler}
146
149
  >
@@ -24,8 +24,12 @@ export default {
24
24
  },
25
25
  }
26
26
 
27
- function Template({ label, expanded, icon }) {
28
- return html` <leu-dropdown label=${label} ?expanded=${expanded}>
27
+ function Template({ label, expanded, icon, inverted }) {
28
+ return html` <leu-dropdown
29
+ label=${label}
30
+ ?expanded=${expanded}
31
+ ?inverted=${inverted}
32
+ >
29
33
  ${icon ? html`<leu-icon name=${icon} slot="icon"></leu-icon>` : nothing}
30
34
  <leu-menu>
31
35
  <leu-menu-item
@@ -3,9 +3,13 @@ import { fixture, expect, elementUpdated } from "@open-wc/testing"
3
3
 
4
4
  import "../leu-dropdown.js"
5
5
 
6
- async function defaultFixture(args = { expanded: false }) {
6
+ async function defaultFixture(args = { expanded: false, inverted: false }) {
7
7
  return fixture(
8
- html` <leu-dropdown label="Download" ?expanded=${args.expanded}>
8
+ html` <leu-dropdown
9
+ label="Download"
10
+ ?expanded=${args.expanded}
11
+ ?inverted=${args.inverted}
12
+ >
9
13
  <leu-menu>
10
14
  <leu-menu-item>Als CSV Tabelle</leu-menu-item>
11
15
  <leu-menu-item>Als XLS Tabelle</leu-menu-item>
@@ -44,4 +48,12 @@ describe("LeuDropdown", () => {
44
48
 
45
49
  expect(el.expanded).to.be.false
46
50
  })
51
+
52
+ it("reflects the inverted property to the internal button", async () => {
53
+ const el = await defaultFixture({ inverted: true })
54
+ await elementUpdated(el)
55
+
56
+ const toggleButton = el.shadowRoot.querySelector("leu-button")
57
+ expect(toggleButton.inverted).to.be.true
58
+ })
47
59
  })