@statistikzh/leu 0.13.0 → 0.13.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/.storybook/preview-head.html +1 -4
  2. package/.storybook/static/fonts/Inter-Black.woff2 +0 -0
  3. package/.storybook/static/fonts/Inter-Regular.woff2 +0 -0
  4. package/.storybook/static/fonts.css +11 -0
  5. package/CHANGELOG.md +11 -0
  6. package/dist/Accordion.d.ts +1 -1
  7. package/dist/Accordion.js +1 -1
  8. package/dist/Breadcrumb.d.ts +1 -1
  9. package/dist/Breadcrumb.js +1 -1
  10. package/dist/Button.d.ts +1 -1
  11. package/dist/Button.d.ts.map +1 -1
  12. package/dist/Button.js +64 -34
  13. package/dist/ButtonGroup.d.ts +1 -1
  14. package/dist/ButtonGroup.js +1 -1
  15. package/dist/Checkbox.d.ts +1 -1
  16. package/dist/Checkbox.js +1 -1
  17. package/dist/CheckboxGroup.d.ts +1 -1
  18. package/dist/CheckboxGroup.js +1 -1
  19. package/dist/Chip.d.ts +1 -1
  20. package/dist/Chip.d.ts.map +1 -1
  21. package/dist/Chip.js +5 -4
  22. package/dist/ChipGroup.d.ts +1 -1
  23. package/dist/ChipGroup.js +1 -1
  24. package/dist/ChipLink.js +1 -1
  25. package/dist/ChipRemovable.js +1 -1
  26. package/dist/ChipSelectable.js +1 -1
  27. package/dist/Dialog.d.ts +1 -1
  28. package/dist/Dialog.js +2 -2
  29. package/dist/Dropdown.d.ts +1 -1
  30. package/dist/Dropdown.d.ts.map +1 -1
  31. package/dist/Dropdown.js +3 -2
  32. package/dist/Icon.d.ts +1 -1
  33. package/dist/Icon.d.ts.map +1 -1
  34. package/dist/Icon.js +6 -2
  35. package/dist/Input.d.ts +1 -1
  36. package/dist/Input.js +1 -1
  37. package/dist/{LeuElement-874a297c.d.ts → LeuElement-b670d77c.d.ts} +1 -1
  38. package/dist/LeuElement-b670d77c.d.ts.map +1 -0
  39. package/dist/{LeuElement-874a297c.js → LeuElement-b670d77c.js} +11 -1
  40. package/dist/Menu.d.ts +1 -1
  41. package/dist/Menu.js +1 -1
  42. package/dist/MenuItem.d.ts +1 -1
  43. package/dist/MenuItem.js +1 -1
  44. package/dist/Pagination.d.ts +1 -1
  45. package/dist/Pagination.js +2 -2
  46. package/dist/Popup.d.ts +1 -1
  47. package/dist/Popup.d.ts.map +1 -1
  48. package/dist/Popup.js +2 -1
  49. package/dist/Radio.d.ts +1 -1
  50. package/dist/Radio.js +1 -1
  51. package/dist/RadioGroup.d.ts +1 -1
  52. package/dist/RadioGroup.js +1 -1
  53. package/dist/Range.d.ts +1 -1
  54. package/dist/Range.js +1 -1
  55. package/dist/ScrollTop.d.ts +1 -1
  56. package/dist/ScrollTop.js +2 -2
  57. package/dist/Select.d.ts +1 -1
  58. package/dist/Select.js +3 -3
  59. package/dist/Spinner.d.ts +1 -1
  60. package/dist/Spinner.js +1 -1
  61. package/dist/Table.d.ts +1 -1
  62. package/dist/Table.js +2 -2
  63. package/dist/VisuallyHidden.d.ts +1 -1
  64. package/dist/VisuallyHidden.js +1 -1
  65. package/dist/{hasSlotController-dbcac394.d.ts → hasSlotController-c09741c5.d.ts} +1 -1
  66. package/dist/{hasSlotController-dbcac394.d.ts.map → hasSlotController-c09741c5.d.ts.map} +1 -1
  67. package/dist/{hasSlotController-dbcac394.js → hasSlotController-c09741c5.js} +1 -1
  68. package/dist/index.d.ts +1 -0
  69. package/dist/index.js +2 -2
  70. package/dist/leu-accordion.js +1 -1
  71. package/dist/leu-breadcrumb.js +1 -1
  72. package/dist/leu-button-group.js +1 -1
  73. package/dist/leu-button.js +2 -2
  74. package/dist/leu-checkbox-group.js +1 -1
  75. package/dist/leu-checkbox.js +1 -1
  76. package/dist/leu-chip-group.js +1 -1
  77. package/dist/leu-chip-link.js +1 -1
  78. package/dist/leu-chip-removable.js +1 -1
  79. package/dist/leu-chip-selectable.js +1 -1
  80. package/dist/leu-dialog.js +2 -2
  81. package/dist/leu-dropdown.js +2 -2
  82. package/dist/leu-icon.js +1 -1
  83. package/dist/leu-input.js +1 -1
  84. package/dist/leu-menu-item.js +1 -1
  85. package/dist/leu-menu.js +1 -1
  86. package/dist/leu-pagination.js +2 -2
  87. package/dist/leu-popup.js +1 -1
  88. package/dist/leu-radio-group.js +1 -1
  89. package/dist/leu-radio.js +1 -1
  90. package/dist/leu-range.js +1 -1
  91. package/dist/leu-scroll-top.js +2 -2
  92. package/dist/leu-select.js +2 -2
  93. package/dist/leu-spinner.js +1 -1
  94. package/dist/leu-table.js +2 -2
  95. package/dist/leu-visually-hidden.js +1 -1
  96. package/dist/web-types.json +1 -1
  97. package/index.js +1 -0
  98. package/package.json +1 -1
  99. package/src/components/button/Button.js +8 -3
  100. package/src/components/button/button.css +56 -22
  101. package/src/components/button/stories/button.stories.js +1 -0
  102. package/src/components/button/test/button.test.js +3 -3
  103. package/src/components/chip/chip.css +4 -3
  104. package/src/components/chip/stories/chip-selectable.stories.js +1 -1
  105. package/src/components/dropdown/dropdown.css +1 -0
  106. package/src/components/icon/icon.css +4 -0
  107. package/src/components/popup/popup.css +1 -0
  108. package/src/components/select/select.css +1 -1
  109. package/src/components/select/test/select.test.js +1 -0
  110. package/src/styles/common-styles.css +9 -0
  111. package/web-test-runner.config.mjs +1 -0
  112. package/dist/LeuElement-874a297c.d.ts.map +0 -1
@@ -1,5 +1,2 @@
1
1
  <link rel="stylesheet" href="theme.css" />
2
- <link
3
- rel="stylesheet"
4
- href="https://www.web.statistik.zh.ch/leu/styles/fonts.css"
5
- />
2
+ <link rel="stylesheet" href="fonts.css" />
@@ -0,0 +1,11 @@
1
+ @font-face {
2
+ font-family: InterRegular;
3
+ font-display: swap;
4
+ src: url("fonts/Inter-Regular.woff2") format("woff2");
5
+ }
6
+
7
+ @font-face {
8
+ font-family: InterBlack;
9
+ font-display: swap;
10
+ src: url("fonts/Inter-Black.woff2") format("woff2");
11
+ }
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.13.1](https://github.com/statistikZH/leu/compare/v0.13.0...v0.13.1) (2025-01-16)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **button:** set fixed height to the ghost variant so it doesn't change when adding an icon ([c2d94cb](https://github.com/statistikZH/leu/commit/c2d94cb282687770ab477893a0731f1fcbf8ebdf))
9
+ * **chip:** prevent cut of the descender of the lables of small sized chips ([#259](https://github.com/statistikZH/leu/issues/259)) ([08f5365](https://github.com/statistikZH/leu/commit/08f5365f82c80227613a09ebe287c5e40d63027d))
10
+ * **dropdown,icon,popup:** don't create a inline or a block box ([c2d94cb](https://github.com/statistikZH/leu/commit/c2d94cb282687770ab477893a0731f1fcbf8ebdf))
11
+ * export LeuElement ([68603d4](https://github.com/statistikZH/leu/commit/68603d42e4c169df8772b803bafb6e88d9dfe441))
12
+ * **select:** add missing background color ([c4d5117](https://github.com/statistikZH/leu/commit/c4d5117a7c2ba9748a2e123a1dcf47dee619f3b0))
13
+
3
14
  ## [0.13.0](https://github.com/statistikZH/leu/compare/v0.12.2...v0.13.0) (2025-01-08)
4
15
 
5
16
 
@@ -28,5 +28,5 @@ export class LeuAccordion extends LeuElement {
28
28
  _handleToggleClick(): void;
29
29
  render(): import("lit-html").TemplateResult;
30
30
  }
31
- import { L as LeuElement } from './LeuElement-874a297c.js';
31
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
32
32
  //# sourceMappingURL=Accordion.d.ts.map
package/dist/Accordion.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, nothing } from 'lit';
3
3
  import { html, unsafeStatic } from 'lit/static-html.js';
4
4
 
@@ -64,6 +64,6 @@ export class LeuBreadcrumb extends LeuElement {
64
64
  renderDropdown(): import("lit-html").TemplateResult<1> | typeof nothing;
65
65
  render(): import("lit-html").TemplateResult<1> | typeof nothing;
66
66
  }
67
- import { L as LeuElement } from './LeuElement-874a297c.js';
67
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
68
68
  import { nothing } from 'lit';
69
69
  //# sourceMappingURL=Breadcrumb.d.ts.map
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  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';
package/dist/Button.d.ts CHANGED
@@ -41,6 +41,6 @@ export class LeuButton extends LeuElement {
41
41
  hasTextContent(): boolean;
42
42
  render(): import("lit-html").TemplateResult<1>;
43
43
  }
44
- import { L as LeuElement } from './LeuElement-874a297c.js';
44
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
45
45
  import { nothing } from 'lit';
46
46
  //# sourceMappingURL=Button.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["Button.js"],"names":[],"mappings":"AAoTA,+CAAkD;AAJlD,oCAA0C;AAE1C,oCAAmD;AAJnD,uCAA0D;AAS1D;;;;;GAKG;AACH;IAQI,WAAiB;IACjB,qBAAqB;IACrB,MADW,MAAM,CACI;IACrB,qBAAqB;IACrB,SADW,MAAM,CACO;IACxB,4CAA4C;IAC5C,MADW,QAAQ,GAAG,QAAQ,GAAG,OAAO,CACpB;IAEpB,qBAAqB;IACrB,eADW,MAAM,CACa;IAE9B,sBAAsB;IACtB,UADW,OAAO,CACG;IACrB,+EAA+E;IAC/E,OADW,OAAO,CACA;IAClB,sBAAsB;IACtB,QADW,OAAO,CACC;IACnB,wDAAwD;IACxD,UADW,OAAO,CACG;IAErB,gGAAgG;IAChG,OADW,OAAO,CACA;IAElB;;;OAGG;IACH,UAFU,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAEf;IAE3B,6EAOC;IACD;;;MAaC;IACD,0BAEC;IACD,+CAiCC;CACF;gCA7ZqD,0BAA0B;wBAC7C,KAAK"}
1
+ {"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["Button.js"],"names":[],"mappings":"AA6UA,+CAAkD;AAJlD,oCAA0C;AAE1C,oCAAmD;AAJnD,uCAA0D;AAS1D;;;;;GAKG;AACH;IAQI,WAAiB;IACjB,qBAAqB;IACrB,MADW,MAAM,CACI;IACrB,qBAAqB;IACrB,SADW,MAAM,CACO;IACxB,4CAA4C;IAC5C,MADW,QAAQ,GAAG,QAAQ,GAAG,OAAO,CACpB;IAEpB,qBAAqB;IACrB,eADW,MAAM,CACa;IAE9B,sBAAsB;IACtB,UADW,OAAO,CACG;IACrB,+EAA+E;IAC/E,OADW,OAAO,CACA;IAClB,sBAAsB;IACtB,QADW,OAAO,CACC;IACnB,wDAAwD;IACxD,UADW,OAAO,CACG;IAErB,gGAAgG;IAChG,OADW,OAAO,CACA;IAElB;;;OAGG;IACH,UAFU,CAAC,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC,CAEf;IAE3B,6EAOC;IACD;;;MAaC;IACD,0BAEC;IACD,+CAsCC;CACF;gCA3bqD,0BAA0B;wBAC7C,KAAK"}
package/dist/Button.js CHANGED
@@ -1,9 +1,9 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
5
5
  import { LeuIcon } from './Icon.js';
6
- import { H as HasSlotController } from './hasSlotController-dbcac394.js';
6
+ import { H as HasSlotController } from './hasSlotController-c09741c5.js';
7
7
 
8
8
  /**
9
9
  * All roles that are associated with a aria-checked attribute
@@ -155,6 +155,7 @@ button.ghost {
155
155
  padding: 0 0.5rem;
156
156
  color: var(--leu-color-black-60);
157
157
  font-family: var(--leu-font-family-regular);
158
+ height: 2rem;
158
159
  }
159
160
 
160
161
  button.ghost:hover {
@@ -237,60 +238,84 @@ button.ghost.inverted:disabled {
237
238
  display: block;
238
239
  }
239
240
 
240
- .ghost.icon-before .icon-wrapper--before,
241
- .ghost.icon-after .icon-wrapper--after {
241
+ .icon-wrapper {
242
+ display: none;
243
+ }
244
+
245
+ .icon-before .icon-wrapper--before,
246
+ .icon-after .icon-wrapper--after {
242
247
  display: block;
243
- padding: 0.5rem;
244
- border-radius: 50%;
245
- background: var(--leu-color-black-transp-10);
246
248
  }
247
249
 
248
- .ghost.active .icon-wrapper--before, .ghost.active .icon-wrapper--after {
249
- background: var(--leu-color-black-100);
250
- color: var(--leu-color-black-0);
250
+ .ghost .icon-wrapper {
251
+ position: relative;
252
+ width: 2rem;
253
+ padding: 0 0.5rem;
254
+ --_bg: var(--leu-color-black-transp-10);
255
+ --_color: currentcolor;
251
256
  }
252
257
 
253
- .ghost:disabled .icon-wrapper--before {
254
- background: var(--leu-color-black-transp-5);
258
+ .ghost .icon-wrapper__slot {
259
+ display: block;
260
+ position: relative;
261
+ z-index: 1;
262
+ color: var(--_color);
255
263
  }
256
264
 
257
- .ghost:disabled .icon-wrapper--after {
258
- background: var(--leu-color-black-transp-5);
265
+ .ghost .icon-wrapper::before {
266
+ content: "";
267
+ position: absolute;
268
+ z-index: 0;
269
+ left: 0;
270
+ top: -0.5rem;
271
+
272
+ width: 2rem;
273
+ aspect-ratio: 1;
274
+ border-radius: 50%;
275
+ background: var(--_bg);
259
276
  }
260
277
 
261
- /* inverted */
278
+ .ghost.active .icon-wrapper {
279
+ --_bg: var(--leu-color-black-100);
280
+ --_color: var(--leu-color-black-0);
281
+ }
262
282
 
263
- .ghost.inverted .icon-wrapper--before, .ghost.inverted .icon-wrapper--after {
264
- background: var(--leu-color-black-transp-20);
283
+ .ghost:disabled .icon-wrapper {
284
+ --_bg: var(--leu-color-black-transp-5);
265
285
  }
266
286
 
267
- .ghost.inverted:hover .icon-wrapper--before, .ghost.inverted:hover .icon-wrapper--after {
268
- background: var(--leu-color-black-transp-40);
269
- color: var(--leu-color-black-0);
287
+ /* inverted */
288
+
289
+ .ghost.inverted .icon-wrapper {
290
+ --_bg: var(--leu-color-black-transp-20);
270
291
  }
271
292
 
272
- .ghost.inverted:disabled .icon-wrapper--before {
273
- background: var(--leu-color-black-transp-20);
274
- color: var(--leu-color-white-transp-70);
293
+ .ghost.inverted:hover .icon-wrapper {
294
+ --_bg: var(--leu-color-black-transp-40);
295
+ --_color: var(--leu-color-black-0);
275
296
  }
276
297
 
277
- .ghost.inverted:disabled .icon-wrapper--after {
278
- background: var(--leu-color-black-transp-20);
279
- color: var(--leu-color-white-transp-70);
298
+ .ghost.inverted:disabled .icon-wrapper {
299
+ --_bg: var(--leu-color-black-transp-20);
300
+ --_color: var(--leu-color-white-transp-70);
280
301
  }
281
302
 
282
- .ghost.active.inverted .icon-wrapper--before, .ghost.active.inverted .icon-wrapper--after {
283
- background: var(--leu-color-black-0);
284
- color: var(--leu-color-black-100);
303
+ .ghost.active.inverted .icon-wrapper {
304
+ --_bg: var(--leu-color-black-0);
305
+ --_color: var(--leu-color-black-100);
285
306
  }
286
307
 
287
308
  /* Expanded icon */
288
309
 
289
- .icon-wrapper--expanded {
310
+ .icon-expanded leu-icon {
311
+ display: block;
312
+ }
313
+
314
+ .icon-expanded {
290
315
  transition: transform 0.1s ease;
291
316
  }
292
317
 
293
- :host([expanded="open"]) .icon-wrapper--expanded {
318
+ :host([expanded="true"]) .icon-expanded {
294
319
  transform: rotate(180deg);
295
320
  }
296
321
  `;
@@ -354,7 +379,7 @@ class LeuButton extends LeuElement {
354
379
  }
355
380
  renderExpandingIcon() {
356
381
  if (typeof this.expanded !== "undefined" && this.variant === "ghost") {
357
- return html`<div class="icon-wrapper icon-wrapper--expanded">
382
+ return html`<div class="icon-expanded">
358
383
  <leu-icon name="angleDropDown" size="24"></leu-icon>
359
384
  </div>`;
360
385
  }
@@ -404,9 +429,14 @@ class LeuButton extends LeuElement {
404
429
  ?disabled=${this.disabled}
405
430
  type=${this.type}
406
431
  >
407
- <slot name="before" class="icon-wrapper icon-wrapper--before"></slot>
432
+ <div class="icon-wrapper icon-wrapper--before">
433
+ <slot name="before" class="icon-wrapper__slot"></slot>
434
+ </div>
408
435
  <span class="content"><slot></slot></span>
409
- <slot name="after" class="icon-wrapper icon-wrapper--after"></slot>
436
+ <div class="icon-wrapper icon-wrapper--after">
437
+ <slot name="after" class="icon-wrapper__slot"></slot>
438
+ </div>
439
+
410
440
  ${this.renderExpandingIcon()}
411
441
  </button>
412
442
  `;
@@ -20,5 +20,5 @@ export class LeuButtonGroup extends LeuElement {
20
20
  _handleButtonClick(button: any): void;
21
21
  render(): import("lit-html").TemplateResult<1>;
22
22
  }
23
- import { L as LeuElement } from './LeuElement-874a297c.js';
23
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
24
24
  //# sourceMappingURL=ButtonGroup.d.ts.map
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html } from 'lit';
3
3
 
4
4
  var css_248z = css`.group {
@@ -10,5 +10,5 @@ export class LeuCheckbox extends LeuElement {
10
10
  handleInput(event: any): void;
11
11
  render(): import("lit-html").TemplateResult<1>;
12
12
  }
13
- import { L as LeuElement } from './LeuElement-874a297c.js';
13
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
14
14
  //# sourceMappingURL=Checkbox.d.ts.map
package/dist/Checkbox.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html } from 'lit';
3
3
  import { LeuIcon } from './Icon.js';
4
4
 
@@ -10,5 +10,5 @@ export class LeuCheckboxGroup extends LeuElement {
10
10
  handleItems(): void;
11
11
  render(): import("lit-html").TemplateResult<1>;
12
12
  }
13
- import { L as LeuElement } from './LeuElement-874a297c.js';
13
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
14
14
  //# sourceMappingURL=CheckboxGroup.d.ts.map
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
 
package/dist/Chip.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export class LeuChipBase extends LeuElement {
2
2
  inverted: boolean;
3
3
  }
4
- import { L as LeuElement } from './LeuElement-874a297c.js';
4
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
5
5
  //# sourceMappingURL=Chip.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["Chip.js"],"names":[],"mappings":"AAsJA;IAGI,kBAAqB;CAExB;gCA3JqD,0BAA0B"}
1
+ {"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["Chip.js"],"names":[],"mappings":"AAuJA;IAGI,kBAAqB;CAExB;gCA5JqD,0BAA0B"}
package/dist/Chip.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css } from 'lit';
3
3
 
4
4
  var css_248z = css`:host *::before,
@@ -62,7 +62,7 @@ var css_248z = css`:host *::before,
62
62
  border: none;
63
63
  border-radius: 1rem;
64
64
  background-color: var(--chip-background-color);
65
- padding: 0.5rem 1rem;
65
+ padding: 8px 1rem;
66
66
 
67
67
  color: var(--chip-color);
68
68
  font-family: inherit;
@@ -73,6 +73,7 @@ var css_248z = css`:host *::before,
73
73
 
74
74
  display: inline-flex;
75
75
  gap: 0.5rem;
76
+ align-items: center;
76
77
 
77
78
  /* Allow shrinking to achieve text truncation (ellipsis) */
78
79
  min-width: 0;
@@ -116,10 +117,10 @@ var css_248z = css`:host *::before,
116
117
  }
117
118
 
118
119
  :host([size="small"]:not([variant="radio"])) .button {
119
- padding: 0.5625rem 0.75rem 0.4375rem;
120
+ padding: 0.3125rem 0.75rem;
120
121
 
121
122
  font-size: 0.75rem;
122
- line-height: 1;
123
+ line-height: 1.25rem;
123
124
  }
124
125
 
125
126
  :host([variant="radio"]) .button::before {
@@ -32,5 +32,5 @@ export const SELECTION_MODES: Readonly<{
32
32
  multiple: "multiple";
33
33
  none: "none";
34
34
  }>;
35
- import { L as LeuElement } from './LeuElement-874a297c.js';
35
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
36
36
  //# sourceMappingURL=ChipGroup.d.ts.map
package/dist/ChipGroup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { html, unsafeStatic } from 'lit/static-html.js';
3
3
  import { css } from 'lit';
4
4
 
package/dist/ChipLink.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty } from './LeuElement-b670d77c.js';
2
2
  import { html } from 'lit';
3
3
  import { LeuChipBase } from './Chip.js';
4
4
 
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty } from './LeuElement-b670d77c.js';
2
2
  import { html } from 'lit';
3
3
  import { LeuChipBase } from './Chip.js';
4
4
  import { LeuIcon } from './Icon.js';
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty } from './LeuElement-b670d77c.js';
2
2
  import { html } from 'lit';
3
3
  import { LeuChipBase } from './Chip.js';
4
4
 
package/dist/Dialog.d.ts CHANGED
@@ -13,5 +13,5 @@ export class LeuDialog extends LeuElement {
13
13
  close(): void;
14
14
  render(): import("lit-html").TemplateResult<1>;
15
15
  }
16
- import { L as LeuElement } from './LeuElement-874a297c.js';
16
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
17
17
  //# sourceMappingURL=Dialog.d.ts.map
package/dist/Dialog.js CHANGED
@@ -1,8 +1,8 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { createRef, ref } from 'lit/directives/ref.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
5
- import { H as HasSlotController } from './hasSlotController-dbcac394.js';
5
+ import { H as HasSlotController } from './hasSlotController-c09741c5.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
 
8
8
  var css_248z = css`/* figma https://www.figma.com/design/d6Pv21UVUbnBs3AdcZijHmbN/KTZH-Design-System?node-id=21161-186812&t=8VgDy9avMRG5aL7s-0 */
@@ -15,5 +15,5 @@ export class LeuDropdown extends LeuElement {
15
15
  _getMenu(): any;
16
16
  render(): import("lit-html").TemplateResult<1>;
17
17
  }
18
- import { L as LeuElement } from './LeuElement-874a297c.js';
18
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
19
19
  //# sourceMappingURL=Dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["Dropdown.js"],"names":[],"mappings":"AA8BA;;GAEG;AACH;IAMQ,kBAAqB;IAqBzB,cAAe;IAGf,kEAAkE;IAClE,YADW,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CACjC;IAkB/B,gCAIC;IACD,iDAYC;IACD,2BAEC;IAED;;OAEG;IACH,gBAEC;IACD,+CA6BC;CACF;gCA5IqD,0BAA0B"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["Dropdown.js"],"names":[],"mappings":"AA+BA;;GAEG;AACH;IAMQ,kBAAqB;IAqBzB,cAAe;IAGf,kEAAkE;IAClE,YADW,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CACjC;IAkB/B,gCAIC;IACD,iDAYC;IACD,2BAEC;IAED;;OAEG;IACH,gBAEC;IACD,+CA6BC;CACF;gCA7IqD,0BAA0B"}
package/dist/Dropdown.js CHANGED
@@ -1,7 +1,7 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { createRef, ref } from 'lit/directives/ref.js';
4
- import { H as HasSlotController } from './hasSlotController-dbcac394.js';
4
+ import { H as HasSlotController } from './hasSlotController-c09741c5.js';
5
5
  import { LeuButton } from './Button.js';
6
6
  import { LeuMenu } from './Menu.js';
7
7
  import { LeuMenuItem } from './MenuItem.js';
@@ -13,6 +13,7 @@ import '@floating-ui/dom';
13
13
 
14
14
  var css_248z = css`:host {
15
15
  position: relative;
16
+ display: contents;
16
17
  }
17
18
 
18
19
  .content {
package/dist/Icon.d.ts CHANGED
@@ -112,5 +112,5 @@ export class LeuIcon extends LeuElement {
112
112
  name: any | "";
113
113
  render(): import("lit-html").TemplateResult<1>;
114
114
  }
115
- import { L as LeuElement } from './LeuElement-874a297c.js';
115
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
116
116
  //# sourceMappingURL=Icon.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"2BAca;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAW;AAwGxB;;;;;;;;;GASG;AACH;IAII;;OAEG;IACH,MAFU,MAAiC,EAAE,CAE/B;IAEhB,+CAiBC;CACF;gCA3JqD,0BAA0B"}
1
+ {"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"2BAkBa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAW;AAwGxB;;;;;;;;;GASG;AACH;IAII;;OAEG;IACH,MAFU,MAAiC,EAAE,CAE/B;IAEhB,+CAiBC;CACF;gCA/JqD,0BAA0B"}
package/dist/Icon.js CHANGED
@@ -1,7 +1,11 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html, svg } from 'lit';
3
3
 
4
- var css_248z = css`svg,
4
+ var css_248z = css`:host {
5
+ display: contents;
6
+ }
7
+
8
+ svg,
5
9
  .placeholder {
6
10
  display: block;
7
11
  width: 1.5rem;
package/dist/Input.d.ts CHANGED
@@ -145,6 +145,6 @@ export const SIZES: Readonly<{
145
145
  SMALL: "small";
146
146
  REGULAR: "regular";
147
147
  }>;
148
- import { L as LeuElement } from './LeuElement-874a297c.js';
148
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
149
149
  import { nothing } from 'lit';
150
150
  //# sourceMappingURL=Input.d.ts.map
package/dist/Input.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, nothing, html } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { ifDefined } from 'lit/directives/if-defined.js';
@@ -4,4 +4,4 @@ declare class LeuElement extends LitElement {
4
4
  declare function _defineProperty(obj: any, key: any, value: any): any;
5
5
  import { LitElement } from 'lit';
6
6
  export { LeuElement as L, _defineProperty as _ };
7
- //# sourceMappingURL=LeuElement-874a297c.d.ts.map
7
+ //# sourceMappingURL=LeuElement-b670d77c.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LeuElement-b670d77c.d.ts","sourceRoot":"","sources":["LeuElement-b670d77c.js"],"names":[],"mappings":"AAgDA;IACE,8EAcC;CACF;AA9DD,sEAaC;2BAf+B,KAAK"}
@@ -34,6 +34,16 @@ var css_248z = css`:host,
34
34
  box-sizing: border-box;
35
35
  font-feature-settings: var(--leu-t-font-feature-settings);
36
36
  }
37
+
38
+ /**
39
+ * If a custom element sets the display property to any value
40
+ * it will not be hidden by the [hidden] attribute.
41
+ * That's why we need to specify this rule.
42
+ */
43
+
44
+ :host([hidden]) {
45
+ display: none;
46
+ }
37
47
  `;
38
48
 
39
49
  class LeuElement extends LitElement {
@@ -53,7 +63,7 @@ class LeuElement extends LitElement {
53
63
  }
54
64
  }
55
65
  }
56
- _defineProperty(LeuElement, "version", "0.13.0");
66
+ _defineProperty(LeuElement, "version", "0.13.1");
57
67
  _defineProperty(LeuElement, "dependencies", {});
58
68
  _defineProperty(LeuElement, "styles", css_248z);
59
69
 
package/dist/Menu.d.ts CHANGED
@@ -25,6 +25,6 @@ export class LeuMenu extends LeuElement {
25
25
  updated(changedProperties: any): void;
26
26
  render(): import("lit-html").TemplateResult<1>;
27
27
  }
28
- import { L as LeuElement } from './LeuElement-874a297c.js';
28
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
29
29
  import { LeuMenuItem } from './MenuItem.js';
30
30
  //# sourceMappingURL=Menu.d.ts.map
package/dist/Menu.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html } from 'lit';
3
3
  import { LeuMenuItem } from './MenuItem.js';
4
4
  import 'lit/directives/if-defined.js';
@@ -37,6 +37,6 @@ export class LeuMenuItem extends LeuElement {
37
37
  _renderBeforeSlotDefault(): import("lit-html").TemplateResult<1> | typeof nothing;
38
38
  render(): import("lit-html").TemplateResult<1>;
39
39
  }
40
- import { L as LeuElement } from './LeuElement-874a297c.js';
40
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
41
41
  import { nothing } from 'lit';
42
42
  //# sourceMappingURL=MenuItem.d.ts.map
package/dist/MenuItem.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { ifDefined } from 'lit/directives/if-defined.js';
4
4
  import { LeuIcon } from './Icon.js';
@@ -30,5 +30,5 @@ export class LeuPagination extends LeuElement {
30
30
  _handleKeyDown(event: any): void;
31
31
  render(): import("lit-html").TemplateResult<1>;
32
32
  }
33
- import { L as LeuElement } from './LeuElement-874a297c.js';
33
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
34
34
  //# sourceMappingURL=Pagination.d.ts.map
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html } from 'lit';
3
3
  import { live } from 'lit/directives/live.js';
4
4
  import { LeuButton } from './Button.js';
@@ -6,7 +6,7 @@ import { LeuVisuallyHidden } from './VisuallyHidden.js';
6
6
  import { LeuIcon } from './Icon.js';
7
7
  import 'lit/directives/class-map.js';
8
8
  import 'lit/directives/if-defined.js';
9
- import './hasSlotController-dbcac394.js';
9
+ import './hasSlotController-c09741c5.js';
10
10
 
11
11
  var css_248z = css`:host {
12
12
  margin-top: 16px;
package/dist/Popup.d.ts CHANGED
@@ -32,5 +32,5 @@ export class LeuPopup extends LeuElement {
32
32
  handleAnchorChange(): void;
33
33
  render(): import("lit-html").TemplateResult<1>;
34
34
  }
35
- import { L as LeuElement } from './LeuElement-874a297c.js';
35
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
36
36
  //# sourceMappingURL=Popup.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["Popup.js"],"names":[],"mappings":"wBAoCa,KAAK,GAAC,WAAW,GAAC,SAAS,GAAC,QAAQ,GAAC,cAAc,GAAC,YAAY,GAAC,MAAM,GAAC,YAAY,GAAC,UAAU,GAAC,OAAO,GAAC,aAAa,GAAC,WAAW;AAD9I;;GAEG;AAEH;;GAEG;AACH;IAGI,cAAoB;IACpB,oBAAwB;IACxB,cAAiB;IACjB,eAAkB;IAClB,gBAAmB;IAEnB,wBAAwB;IACxB,WADW,SAAS,CACM;IAE1B,0CAA0C;IAC1C,WADW,OAAO,GAAG,QAAQ,GAAG,MAAM,CACZ;IAE1B,0CAA0C;IAC1C,UADW,OAAO,GAAG,QAAQ,GAAG,MAAM,CACb;IACzB,qBAAqB;IACrB,wBAAwB;IAExB,mCAAmC;IACnC,QADW,MAAM,GAAG,WAAW,CACR;IAMzB,sCAcC;IAED;;OAEG;IACH,2BAEC;IACD,cAKC;IACD,aAIC;IACD,mBAiEC;IACD,2BAiBC;IACD,+CAOC;CACF;gCAlMqD,0BAA0B"}
1
+ {"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["Popup.js"],"names":[],"mappings":"wBAqCa,KAAK,GAAC,WAAW,GAAC,SAAS,GAAC,QAAQ,GAAC,cAAc,GAAC,YAAY,GAAC,MAAM,GAAC,YAAY,GAAC,UAAU,GAAC,OAAO,GAAC,aAAa,GAAC,WAAW;AAD9I;;GAEG;AAEH;;GAEG;AACH;IAGI,cAAoB;IACpB,oBAAwB;IACxB,cAAiB;IACjB,eAAkB;IAClB,gBAAmB;IAEnB,wBAAwB;IACxB,WADW,SAAS,CACM;IAE1B,0CAA0C;IAC1C,WADW,OAAO,GAAG,QAAQ,GAAG,MAAM,CACZ;IAE1B,0CAA0C;IAC1C,UADW,OAAO,GAAG,QAAQ,GAAG,MAAM,CACb;IACzB,qBAAqB;IACrB,wBAAwB;IAExB,mCAAmC;IACnC,QADW,MAAM,GAAG,WAAW,CACR;IAMzB,sCAcC;IAED;;OAEG;IACH,2BAEC;IACD,cAKC;IACD,aAIC;IACD,mBAiEC;IACD,2BAiBC;IACD,+CAOC;CACF;gCAnMqD,0BAA0B"}
package/dist/Popup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html } from 'lit';
3
3
  import { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
4
4
 
@@ -9,6 +9,7 @@ var css_248z = css`:host {
9
9
  font-family: var(--leu-font-family-regular);
10
10
 
11
11
  font-family: var(--popup-font-regular);
12
+ display: contents;
12
13
  }
13
14
 
14
15
  .popup {
package/dist/Radio.d.ts CHANGED
@@ -10,5 +10,5 @@ export class LeuRadio extends LeuElement {
10
10
  handleInput(event: any): void;
11
11
  render(): import("lit-html").TemplateResult<1>;
12
12
  }
13
- import { L as LeuElement } from './LeuElement-874a297c.js';
13
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
14
14
  //# sourceMappingURL=Radio.d.ts.map
package/dist/Radio.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-b670d77c.js';
2
2
  import { css, html } from 'lit';
3
3
 
4
4
  var css_248z = css`:host {
@@ -16,5 +16,5 @@ export class LeuRadioGroup extends LeuElement {
16
16
  initializeIndex(): void;
17
17
  render(): import("lit-html").TemplateResult<1>;
18
18
  }
19
- import { L as LeuElement } from './LeuElement-874a297c.js';
19
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
20
20
  //# sourceMappingURL=RadioGroup.d.ts.map