@statistikzh/leu 0.22.1 → 0.23.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 (80) 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.js +1 -1
  16. package/dist/FileInput.js +1 -1
  17. package/dist/Icon.js +1 -1
  18. package/dist/Input.js +1 -1
  19. package/dist/{LeuElement-DfsEye-A.js → LeuElement-CWseJvWv.js} +1 -1
  20. package/dist/Menu.js +1 -1
  21. package/dist/MenuItem.js +1 -1
  22. package/dist/Message.js +1 -1
  23. package/dist/Pagination.js +1 -1
  24. package/dist/Placeholder.js +1 -1
  25. package/dist/Popup.d.ts +16 -0
  26. package/dist/Popup.js +20 -2
  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/popup/Popup.d.ts +16 -0
  38. package/dist/components/popup/Popup.d.ts.map +1 -1
  39. package/dist/components/popup/stories/popup.stories.d.ts +2 -0
  40. package/dist/components/popup/stories/popup.stories.d.ts.map +1 -1
  41. package/dist/index.js +1 -1
  42. package/dist/leu-accordion.js +1 -1
  43. package/dist/leu-button-group.js +1 -1
  44. package/dist/leu-button.js +1 -1
  45. package/dist/leu-chart-wrapper.js +1 -1
  46. package/dist/leu-checkbox-group.js +1 -1
  47. package/dist/leu-checkbox.js +1 -1
  48. package/dist/leu-chip-group.js +1 -1
  49. package/dist/leu-chip-link.js +1 -1
  50. package/dist/leu-chip-removable.js +1 -1
  51. package/dist/leu-chip-selectable.js +1 -1
  52. package/dist/leu-dialog.js +1 -1
  53. package/dist/leu-dropdown.js +1 -1
  54. package/dist/leu-file-input.js +1 -1
  55. package/dist/leu-icon.js +1 -1
  56. package/dist/leu-input.js +1 -1
  57. package/dist/leu-menu-item.js +1 -1
  58. package/dist/leu-menu.js +1 -1
  59. package/dist/leu-message.js +1 -1
  60. package/dist/leu-pagination.js +1 -1
  61. package/dist/leu-placeholder.js +1 -1
  62. package/dist/leu-popup.js +1 -1
  63. package/dist/leu-progress-bar.js +1 -1
  64. package/dist/leu-radio-group.js +1 -1
  65. package/dist/leu-radio.js +1 -1
  66. package/dist/leu-range.js +1 -1
  67. package/dist/leu-scroll-top.js +1 -1
  68. package/dist/leu-select.js +1 -1
  69. package/dist/leu-spinner.js +1 -1
  70. package/dist/leu-table.js +1 -1
  71. package/dist/leu-tag.js +1 -1
  72. package/dist/leu-visually-hidden.js +1 -1
  73. package/dist/vscode.html-custom-data.json +87 -72
  74. package/dist/vue/index.d.ts +89 -82
  75. package/dist/web-types.json +193 -163
  76. package/package.json +1 -1
  77. package/src/components/popup/Popup.ts +37 -0
  78. package/src/components/popup/stories/popup.stories.ts +10 -0
  79. package/src/components/popup/test/popup.test.ts +27 -0
  80. package/web-test-runner.config.mjs +10 -0
@@ -1,3 +1,3 @@
1
1
  {
2
- ".": "0.22.1"
2
+ ".": "0.23.0"
3
3
  }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.23.0](https://github.com/statistikZH/leu/compare/leu-v0.22.1...leu-v0.23.0) (2026-01-20)
4
+
5
+
6
+ ### Features
7
+
8
+ * **popup:** add offset properties to translate the popup content ([#324](https://github.com/statistikZH/leu/issues/324)) ([1e71bf0](https://github.com/statistikZH/leu/commit/1e71bf061bb940156dd0a24a71243db093d7bd49))
9
+
3
10
  ## [0.22.1](https://github.com/statistikZH/leu/compare/leu-v0.22.0...leu-v0.22.1) (2025-12-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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
7
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
2
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
6
6
  import { LeuCheckbox } from './Checkbox.js';
7
7
  import './Icon.js';
8
8
 
package/dist/Chip.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { property } from 'lit/decorators.js';
3
- import { L as LeuElement } from './LeuElement-DfsEye-A.js';
3
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
4
4
  import { css } from 'lit';
5
5
 
6
6
  var css_248z = css`:host *::before,
package/dist/ChipGroup.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { unsafeStatic, html } from 'lit/static-html.js';
3
3
  import { property } from 'lit/decorators.js';
4
- import { L as LeuElement } from './LeuElement-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
5
5
  import { css } from 'lit';
6
6
  import { LeuChipSelectable } from './ChipSelectable.js';
7
7
  import './Chip.js';
package/dist/ChipLink.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { LeuChipBase } from './Chip.js';
5
- import './LeuElement-DfsEye-A.js';
5
+ import './LeuElement-CWseJvWv.js';
6
6
 
7
7
  /**
8
8
  * @tagname leu-chip-link
@@ -3,7 +3,7 @@ import { html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { LeuChipBase } from './Chip.js';
5
5
  import { LeuIcon } from './Icon.js';
6
- import './LeuElement-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.js';
7
7
 
8
8
  /**
9
9
  * @slot - The content of the chip
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { html } from 'lit';
3
3
  import { property } from 'lit/decorators.js';
4
4
  import { LeuChipBase } from './Chip.js';
5
- import './LeuElement-DfsEye-A.js';
5
+ import './LeuElement-CWseJvWv.js';
6
6
 
7
7
  /**
8
8
  * A chip component that can be selected.
package/dist/Dialog.js CHANGED
@@ -3,7 +3,7 @@ import { css, nothing, html } from 'lit';
3
3
  import { createRef, ref } from 'lit/directives/ref.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
5
  import { property } from 'lit/decorators.js';
6
- import { L as LeuElement } from './LeuElement-DfsEye-A.js';
6
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
7
7
  import { H as HasSlotController } from './hasSlotController-Bm2tipvG.js';
8
8
  import { LeuIcon } from './Icon.js';
9
9
 
package/dist/Dropdown.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, nothing, html } from 'lit';
3
3
  import { createRef, ref } from 'lit/directives/ref.js';
4
4
  import { property } from 'lit/decorators.js';
5
- import { L as LeuElement } from './LeuElement-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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/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-DfsEye-A.js';
6
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
5
5
 
6
6
  var css_248z = css`:host {
7
7
  display: contents;
package/dist/Input.js CHANGED
@@ -5,7 +5,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import { live } from 'lit/directives/live.js';
6
6
  import { createRef, ref } from 'lit/directives/ref.js';
7
7
  import { property, state } from 'lit/decorators.js';
8
- import { L as LeuElement } from './LeuElement-DfsEye-A.js';
8
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
9
9
  import { LeuIcon } from './Icon.js';
10
10
 
11
11
  var css_248z = css`:host {
@@ -35,7 +35,7 @@ class LeuElement extends LitElement {
35
35
  }
36
36
  }
37
37
  }
38
- LeuElement.version = "0.22.1";
38
+ LeuElement.version = "0.23.0";
39
39
  LeuElement.dependencies = {};
40
40
  LeuElement.styles = css_248z;
41
41
 
package/dist/Menu.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
5
5
  import { LeuMenuItem } from './MenuItem.js';
6
6
  import 'lit/directives/if-defined.js';
7
7
  import './Icon.js';
package/dist/MenuItem.js CHANGED
@@ -2,7 +2,7 @@ import { _ as __decorate } from './_tslib-CNEFicEt.js';
2
2
  import { css, html, nothing } 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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
 
8
8
  var css_248z = css`:host {
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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
2
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
3
3
 
4
4
  var css_248z = css`:host {
5
5
  --placeholder-font-regular: var(--leu-font-family-regular);
package/dist/Popup.d.ts CHANGED
@@ -28,6 +28,22 @@ declare class LeuPopup extends LeuElement {
28
28
  shift: boolean;
29
29
  shiftPadding: number;
30
30
  matchSize?: "width" | "height" | "both";
31
+ /**
32
+ * Offsets the popup along the main axis.
33
+ * @link https://floating-ui.com/docs/offset#mainaxis
34
+ */
35
+ offsetMainAxis?: number;
36
+ /**
37
+ * Offsets the popup along the cross axis.
38
+ * @link https://floating-ui.com/docs/offset#crossaxis
39
+ */
40
+ offsetCrossAxis?: number;
41
+ /**
42
+ * Offsets the popup along the alignment axis.
43
+ * Overrides the `offsetCrossAxis` value.
44
+ * @link https://floating-ui.com/docs/offset#alignmentaxis
45
+ */
46
+ offsetAlignmentAxis?: number;
31
47
  autoSize?: "width" | "height" | "both";
32
48
  autoSizePadding: number;
33
49
  private anchorEl;
package/dist/Popup.js CHANGED
@@ -1,8 +1,8 @@
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 { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
5
- import { L as LeuElement } from './LeuElement-DfsEye-A.js';
4
+ import { autoUpdate, offset, size, flip, shift, computePosition } from '@floating-ui/dom';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
6
6
 
7
7
  var css_248z = css`:host {
8
8
  --popup-font-regular: var(--leu-font-family-regular);
@@ -91,6 +91,15 @@ class LeuPopup extends LeuElement {
91
91
  if (!this.anchorEl || !this.popupEl || !this.active)
92
92
  return;
93
93
  const middleware = [];
94
+ if (this.offsetAlignmentAxis ||
95
+ this.offsetMainAxis ||
96
+ this.offsetCrossAxis) {
97
+ middleware.push(offset({
98
+ mainAxis: this.offsetMainAxis,
99
+ crossAxis: this.offsetCrossAxis,
100
+ alignmentAxis: this.offsetAlignmentAxis,
101
+ }));
102
+ }
94
103
  if (this.matchSize) {
95
104
  middleware.push(size({
96
105
  apply: ({ rects }) => {
@@ -206,6 +215,15 @@ __decorate([
206
215
  __decorate([
207
216
  property({ type: String, reflect: true })
208
217
  ], LeuPopup.prototype, "matchSize", void 0);
218
+ __decorate([
219
+ property({ type: Number, reflect: true, attribute: "offset-main-axis" })
220
+ ], LeuPopup.prototype, "offsetMainAxis", void 0);
221
+ __decorate([
222
+ property({ type: Number, reflect: true, attribute: "offset-cross-axis" })
223
+ ], LeuPopup.prototype, "offsetCrossAxis", void 0);
224
+ __decorate([
225
+ property({ type: Number, reflect: true, attribute: "offset-alignment-axis" })
226
+ ], LeuPopup.prototype, "offsetAlignmentAxis", void 0);
209
227
  __decorate([
210
228
  property({ type: String, reflect: true })
211
229
  ], LeuPopup.prototype, "autoSize", void 0);
@@ -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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
6
6
  import { LeuRadio } from './Radio.js';
7
7
 
8
8
  var css_248z = css`:host {
package/dist/Range.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
5
5
 
6
6
  var css_248z = css`:host {
7
7
  --range-color: var(--leu-color-black-40);
package/dist/ScrollTop.js CHANGED
@@ -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 { state } from 'lit/decorators.js';
5
- import { L as LeuElement } from './LeuElement-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
6
6
  import { LeuButton } from './Button.js';
7
7
  import { LeuIcon } from './Icon.js';
8
8
  import 'lit/directives/if-defined.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-DfsEye-A.js';
5
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
2
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
4
+ import { L as LeuElement } from './LeuElement-CWseJvWv.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-DfsEye-A.js';
2
+ import { L as LeuElement } from './LeuElement-CWseJvWv.js';
3
3
 
4
4
  var css_248z = css`:host {
5
5
  clip: rect(0 0 0 0);
@@ -25,6 +25,22 @@ export declare class LeuPopup extends LeuElement {
25
25
  shift: boolean;
26
26
  shiftPadding: number;
27
27
  matchSize?: "width" | "height" | "both";
28
+ /**
29
+ * Offsets the popup along the main axis.
30
+ * @link https://floating-ui.com/docs/offset#mainaxis
31
+ */
32
+ offsetMainAxis?: number;
33
+ /**
34
+ * Offsets the popup along the cross axis.
35
+ * @link https://floating-ui.com/docs/offset#crossaxis
36
+ */
37
+ offsetCrossAxis?: number;
38
+ /**
39
+ * Offsets the popup along the alignment axis.
40
+ * Overrides the `offsetCrossAxis` value.
41
+ * @link https://floating-ui.com/docs/offset#alignmentaxis
42
+ */
43
+ offsetAlignmentAxis?: number;
28
44
  autoSize?: "width" | "height" | "both";
29
45
  autoSizePadding: number;
30
46
  private anchorEl;
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/popup/Popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAIL,SAAS,EAGV,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD,MAAM,WAAW,cAAc;IAC7B,qBAAqB,EAAE,MAAM,OAAO,CAAA;IACpC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAWD;;GAEG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAEW,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,cAAc,CAAA;IAGrD,MAAM,EAAE,OAAO,CAAQ;IAGvB,SAAS,CAAC,EAAE,SAAS,CAAA;IAGrB,IAAI,EAAE,OAAO,CAAQ;IAGrB,KAAK,EAAE,OAAO,CAAQ;IAGtB,YAAY,EAAE,MAAM,CAAI;IAGxB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAEI,QAAQ,CAAC,EAChD,OAAO,GACP,QAAQ,GACR,MAAM,CAAA;IAEiC,eAAe,EAAE,MAAM,CAAI;IAEtE,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,OAAO,CAA2C;IAE1D,oBAAoB;IAKpB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAkB/C,SAAS,KAAK,OAAO,mBAEpB;IAED,SAAS,CAAC,KAAK;IAQf,SAAS,CAAC,IAAI;IAOP,UAAU;IAmFjB,kBAAkB;IAsBlB,MAAM;CAQP"}
1
+ {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["../../../src/components/popup/Popup.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,cAAc,EAAE,MAAM,KAAK,CAAA;AAE1C,OAAO,EAIL,SAAS,EAIV,MAAM,kBAAkB,CAAA;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AAIpD,MAAM,WAAW,cAAc;IAC7B,qBAAqB,EAAE,MAAM,OAAO,CAAA;IACpC,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAWD;;GAEG;AACH,qBAAa,QAAS,SAAQ,UAAU;IACtC,MAAM,CAAC,MAAM,iCAA8B;IAE3C,MAAM,CAAC,iBAAiB;;;;;;;MAGvB;IAEW,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,cAAc,CAAA;IAGrD,MAAM,EAAE,OAAO,CAAQ;IAGvB,SAAS,CAAC,EAAE,SAAS,CAAA;IAGrB,IAAI,EAAE,OAAO,CAAQ;IAGrB,KAAK,EAAE,OAAO,CAAQ;IAGtB,YAAY,EAAE,MAAM,CAAI;IAGxB,SAAS,CAAC,EAAE,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAA;IAEvC;;;OAGG;IAEH,cAAc,CAAC,EAAE,MAAM,CAAA;IAEvB;;;OAGG;IAEH,eAAe,CAAC,EAAE,MAAM,CAAA;IAExB;;;;OAIG;IAEH,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAEe,QAAQ,CAAC,EAChD,OAAO,GACP,QAAQ,GACR,MAAM,CAAA;IAEiC,eAAe,EAAE,MAAM,CAAI;IAEtE,OAAO,CAAC,QAAQ,CAAgB;IAEhC,OAAO,CAAC,OAAO,CAA2C;IAE1D,oBAAoB;IAKpB,OAAO,CAAC,iBAAiB,EAAE,cAAc,CAAC,IAAI,CAAC;IAkB/C,SAAS,KAAK,OAAO,mBAEpB;IAED,SAAS,CAAC,KAAK;IAQf,SAAS,CAAC,IAAI;IAOP,UAAU;IAiGjB,kBAAkB;IAsBlB,MAAM;CAQP"}
@@ -21,6 +21,8 @@ export declare const VirtualElement: {
21
21
  placement: string;
22
22
  flip: boolean;
23
23
  shift: boolean;
24
+ offsetMainAxis: number;
25
+ offsetAlignmentAxis: number;
24
26
  };
25
27
  };
26
28
  //# sourceMappingURL=popup.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"popup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/popup/stories/popup.stories.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAA;AACxB,OAAO,4BAA4B,CAAA;;;;;;;;;;;;;AAEnC,wBAwBC;AAqBD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAQxC,eAAO,MAAM,cAAc;;;;;;;;CA+C1B,CAAA"}
1
+ {"version":3,"file":"popup.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/popup/stories/popup.stories.ts"],"names":[],"mappings":"AAGA,OAAO,iBAAiB,CAAA;AACxB,OAAO,4BAA4B,CAAA;;;;;;;;;;;;;AAEnC,wBAwBC;AAwBD,eAAO,MAAM,OAAO,KAAoB,CAAA;AAUxC,eAAO,MAAM,cAAc;;;;;;;;;;CAoD1B,CAAA"}
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ export { LeuSpinner } from './Spinner.js';
29
29
  export { LeuTable } from './Table.js';
30
30
  export { LeuTag } from './Tag.js';
31
31
  export { LeuVisuallyHidden } from './VisuallyHidden.js';
32
- export { L as LeuElement } from './LeuElement-DfsEye-A.js';
32
+ export { L as LeuElement } from './LeuElement-CWseJvWv.js';
33
33
  import './_tslib-CNEFicEt.js';
34
34
  import 'lit';
35
35
  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-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.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-DfsEye-A.js';
3
+ import './LeuElement-CWseJvWv.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-DfsEye-A.js';
8
+ import './LeuElement-CWseJvWv.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-DfsEye-A.js';
5
+ import './LeuElement-CWseJvWv.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-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.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-DfsEye-A.js';
5
+ import './LeuElement-CWseJvWv.js';
6
6
  import './Icon.js';
7
7
 
8
8
  LeuCheckbox.define("leu-checkbox");
@@ -2,7 +2,7 @@ import { LeuChipGroup } from './ChipGroup.js';
2
2
  import './_tslib-CNEFicEt.js';
3
3
  import 'lit/static-html.js';
4
4
  import 'lit/decorators.js';
5
- import './LeuElement-DfsEye-A.js';
5
+ import './LeuElement-CWseJvWv.js';
6
6
  import 'lit';
7
7
  import './ChipSelectable.js';
8
8
  import './Chip.js';
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import './Chip.js';
6
- import './LeuElement-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.js';
7
7
 
8
8
  LeuChipLink.define("leu-chip-link");
9
9
 
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import './Chip.js';
6
- import './LeuElement-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.js';
7
7
  import './Icon.js';
8
8
 
9
9
  LeuChipRemovable.define("leu-chip-removable");
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/decorators.js';
5
5
  import './Chip.js';
6
- import './LeuElement-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.js';
7
7
 
8
8
  LeuChipSelectable.define("leu-chip-selectable");
9
9
 
@@ -4,7 +4,7 @@ import 'lit';
4
4
  import 'lit/directives/ref.js';
5
5
  import 'lit/directives/class-map.js';
6
6
  import 'lit/decorators.js';
7
- import './LeuElement-DfsEye-A.js';
7
+ import './LeuElement-CWseJvWv.js';
8
8
  import './hasSlotController-Bm2tipvG.js';
9
9
  import './Icon.js';
10
10
 
@@ -3,7 +3,7 @@ import './_tslib-CNEFicEt.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/ref.js';
5
5
  import 'lit/decorators.js';
6
- import './LeuElement-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.js';
7
7
  import './hasSlotController-Bm2tipvG.js';
8
8
  import './Button.js';
9
9
  import 'lit/directives/class-map.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-DfsEye-A.js';
7
+ import './LeuElement-CWseJvWv.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-DfsEye-A.js';
5
+ import './LeuElement-CWseJvWv.js';
6
6
 
7
7
  LeuIcon.define("leu-icon");
8
8
 
package/dist/leu-input.js CHANGED
@@ -6,7 +6,7 @@ import 'lit/directives/if-defined.js';
6
6
  import 'lit/directives/live.js';
7
7
  import 'lit/directives/ref.js';
8
8
  import 'lit/decorators.js';
9
- import './LeuElement-DfsEye-A.js';
9
+ import './LeuElement-CWseJvWv.js';
10
10
  import './Icon.js';
11
11
 
12
12
  LeuInput.define("leu-input");
@@ -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-DfsEye-A.js';
6
+ import './LeuElement-CWseJvWv.js';
7
7
  import './Icon.js';
8
8
 
9
9
  LeuMenuItem.define("leu-menu-item");