@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,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/Range.d.ts CHANGED
@@ -56,5 +56,5 @@ export class LeuRange extends LeuElement {
56
56
  }): void;
57
57
  render(): import("lit-html").TemplateResult<1>;
58
58
  }
59
- import { L as LeuElement } from './LeuElement-874a297c.js';
59
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
60
60
  //# sourceMappingURL=Range.d.ts.map
package/dist/Range.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 {
@@ -15,5 +15,5 @@ export class LeuScrollTop extends LeuElement {
15
15
  _scrollListener: Function;
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=ScrollTop.d.ts.map
package/dist/ScrollTop.js CHANGED
@@ -1,11 +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 } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { LeuButton } from './Button.js';
5
5
  import { LeuIcon } from './Icon.js';
6
6
  import { t as throttle } from './utils-65469421.js';
7
7
  import 'lit/directives/if-defined.js';
8
- import './hasSlotController-dbcac394.js';
8
+ import './hasSlotController-c09741c5.js';
9
9
 
10
10
  var css_248z = css`.scroll-top {
11
11
  overflow: hidden;
package/dist/Select.d.ts CHANGED
@@ -131,6 +131,6 @@ export class LeuSelect extends LeuElement {
131
131
  _renderToggleButton(): import("lit-html").TemplateResult<1>;
132
132
  render(): import("lit-html").TemplateResult<1>;
133
133
  }
134
- import { L as LeuElement } from './LeuElement-874a297c.js';
134
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
135
135
  import { nothing } from 'lit';
136
136
  //# sourceMappingURL=Select.d.ts.map
package/dist/Select.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, nothing, html } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
  import { createRef, ref } from 'lit/directives/ref.js';
5
5
  import { ifDefined } from 'lit/directives/if-defined.js';
6
- import { H as HasSlotController } from './hasSlotController-dbcac394.js';
6
+ import { H as HasSlotController } from './hasSlotController-c09741c5.js';
7
7
  import { LeuButton } from './Button.js';
8
8
  import { LeuMenu } from './Menu.js';
9
9
  import { LeuMenuItem } from './MenuItem.js';
@@ -79,7 +79,7 @@ var css_248z = css`:host {
79
79
  line-height: 1.5;
80
80
  padding: 1.375rem 3rem 1.375rem 1rem;
81
81
 
82
- background: none;
82
+ background: var(--leu-color-black-0);
83
83
  overflow: hidden;
84
84
  text-overflow: ellipsis;
85
85
  white-space: nowrap;
package/dist/Spinner.d.ts CHANGED
@@ -5,5 +5,5 @@
5
5
  export class LeuSpinner extends LeuElement {
6
6
  render(): import("lit-html").TemplateResult<1>;
7
7
  }
8
- import { L as LeuElement } from './LeuElement-874a297c.js';
8
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
9
9
  //# sourceMappingURL=Spinner.d.ts.map
package/dist/Spinner.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`@keyframes leu-spinner-rotate {
package/dist/Table.d.ts CHANGED
@@ -38,5 +38,5 @@ export class LeuTable extends LeuElement {
38
38
  get _data(): any[];
39
39
  render(): import("lit-html").TemplateResult<1>;
40
40
  }
41
- import { L as LeuElement } from './LeuElement-874a297c.js';
41
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
42
42
  //# sourceMappingURL=Table.d.ts.map
package/dist/Table.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 { classMap } from 'lit/directives/class-map.js';
4
4
  import { styleMap } from 'lit/directives/style-map.js';
@@ -8,7 +8,7 @@ import { LeuPagination } from './Pagination.js';
8
8
  import 'lit/directives/live.js';
9
9
  import './Button.js';
10
10
  import 'lit/directives/if-defined.js';
11
- import './hasSlotController-dbcac394.js';
11
+ import './hasSlotController-c09741c5.js';
12
12
  import './VisuallyHidden.js';
13
13
 
14
14
  var css_248z = css`:host {
@@ -4,5 +4,5 @@
4
4
  export class LeuVisuallyHidden extends LeuElement {
5
5
  render(): import("lit-html").TemplateResult<1>;
6
6
  }
7
- import { L as LeuElement } from './LeuElement-874a297c.js';
7
+ import { L as LeuElement } from './LeuElement-b670d77c.js';
8
8
  //# sourceMappingURL=VisuallyHidden.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`:host {
@@ -35,4 +35,4 @@ declare class HasSlotController implements ReactiveController {
35
35
  hostConnected(): void;
36
36
  hostDisconnected(): void;
37
37
  }
38
- //# sourceMappingURL=hasSlotController-dbcac394.d.ts.map
38
+ //# sourceMappingURL=hasSlotController-c09741c5.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"hasSlotController-dbcac394.d.ts","sourceRoot":"","sources":["hasSlotController-dbcac394.js"],"names":[],"mappings":";;;;iCASa,OAAO,KAAK,EAAE,kBAAkB;AAP7C;;;GAGG;AAEH;;;;GAIG;AACH;IACE,uCAcC;IAHC,UAAgB;IAEhB,eAA0B;IAG5B;;;OAGG;IACH,uBAeC;IAED;;;;OAIG;IACH,qBAEC;IAED;;;OAGG;IACH,gCAEC;IACD,sBAEC;IACD,yBAEC;CACF"}
1
+ {"version":3,"file":"hasSlotController-c09741c5.d.ts","sourceRoot":"","sources":["hasSlotController-c09741c5.js"],"names":[],"mappings":";;;;iCASa,OAAO,KAAK,EAAE,kBAAkB;AAP7C;;;GAGG;AAEH;;;;GAIG;AACH;IACE,uCAcC;IAHC,UAAgB;IAEhB,eAA0B;IAG5B;;;OAGG;IACH,uBAeC;IAED;;;;OAIG;IACH,qBAEC;IAED;;;OAGG;IACH,gCAEC;IACD,sBAEC;IACD,yBAEC;CACF"}
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from './LeuElement-874a297c.js';
1
+ import { _ as _defineProperty } from './LeuElement-b670d77c.js';
2
2
 
3
3
  /**
4
4
  * Thanks Shoelace!
package/dist/index.d.ts CHANGED
@@ -16,6 +16,7 @@ export { LeuRadio } from "./Radio.js";
16
16
  export { LeuRadioGroup } from "./RadioGroup.js";
17
17
  export { LeuSelect } from "./Select.js";
18
18
  export { LeuTable } from "./Table.js";
19
+ export { L as LeuElement } from "./LeuElement-b670d77c.js";
19
20
  export { BUTTON_EXPANDED_OPTIONS, BUTTON_SIZES, BUTTON_TYPES, BUTTON_VARIANTS, LeuButton } from "./Button.js";
20
21
  export { LeuInput, SIZES } from "./Input.js";
21
22
  //# sourceMappingURL=index.d.ts.map
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
- import './LeuElement-874a297c.js';
21
+ export { L as LeuElement } from './LeuElement-b670d77c.js';
22
22
  import 'lit';
23
23
  import 'lit/static-html.js';
24
24
  import 'lit/directives/ref.js';
@@ -27,7 +27,7 @@ import './utils-65469421.js';
27
27
  import './Icon.js';
28
28
  import './VisuallyHidden.js';
29
29
  import 'lit/directives/if-defined.js';
30
- import './hasSlotController-dbcac394.js';
30
+ import './hasSlotController-c09741c5.js';
31
31
  import './Chip.js';
32
32
  import 'lit/directives/live.js';
33
33
  import '@floating-ui/dom';
@@ -1,5 +1,5 @@
1
1
  import { LeuAccordion } from './Accordion.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/static-html.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { LeuBreadcrumb } from './Breadcrumb.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/ref.js';
5
5
  import 'lit/directives/class-map.js';
@@ -1,5 +1,5 @@
1
1
  import { LeuButtonGroup } from './ButtonGroup.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
 
5
5
  LeuButtonGroup.define("leu-button-group");
@@ -1,10 +1,10 @@
1
1
  import { LeuButton } from './Button.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
  import 'lit/directives/if-defined.js';
6
6
  import './Icon.js';
7
- import './hasSlotController-dbcac394.js';
7
+ import './hasSlotController-c09741c5.js';
8
8
 
9
9
  LeuButton.define("leu-button");
10
10
 
@@ -1,5 +1,5 @@
1
1
  import { LeuCheckboxGroup } from './CheckboxGroup.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { LeuCheckbox } from './Checkbox.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import './Icon.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { LeuChipGroup } from './ChipGroup.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/static-html.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { LeuChipLink } from './ChipLink.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import './Chip.js';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { LeuChipRemovable } from './ChipRemovable.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import './Chip.js';
5
5
  import './Icon.js';
@@ -1,5 +1,5 @@
1
1
  import { LeuChipSelectable } from './ChipSelectable.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import './Chip.js';
5
5
 
@@ -1,9 +1,9 @@
1
1
  import { LeuDialog } from './Dialog.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/ref.js';
5
5
  import 'lit/directives/class-map.js';
6
- import './hasSlotController-dbcac394.js';
6
+ import './hasSlotController-c09741c5.js';
7
7
  import './Icon.js';
8
8
 
9
9
  LeuDialog.define("leu-dialog");
@@ -1,8 +1,8 @@
1
1
  import { LeuDropdown } from './Dropdown.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/ref.js';
5
- import './hasSlotController-dbcac394.js';
5
+ import './hasSlotController-c09741c5.js';
6
6
  import './Button.js';
7
7
  import 'lit/directives/class-map.js';
8
8
  import 'lit/directives/if-defined.js';
package/dist/leu-icon.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LeuIcon } from './Icon.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
 
5
5
  LeuIcon.define("leu-icon");
package/dist/leu-input.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LeuInput } from './Input.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
  import 'lit/directives/if-defined.js';
@@ -1,5 +1,5 @@
1
1
  import { LeuMenuItem } from './MenuItem.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/if-defined.js';
5
5
  import './Icon.js';
package/dist/leu-menu.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LeuMenu } from './Menu.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import './MenuItem.js';
5
5
  import 'lit/directives/if-defined.js';
@@ -1,12 +1,12 @@
1
1
  import { LeuPagination } from './Pagination.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/live.js';
5
5
  import './Button.js';
6
6
  import 'lit/directives/class-map.js';
7
7
  import 'lit/directives/if-defined.js';
8
8
  import './Icon.js';
9
- import './hasSlotController-dbcac394.js';
9
+ import './hasSlotController-c09741c5.js';
10
10
  import './VisuallyHidden.js';
11
11
 
12
12
  LeuPagination.define("leu-pagination");
package/dist/leu-popup.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LeuPopup } from './Popup.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import '@floating-ui/dom';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { LeuRadioGroup } from './RadioGroup.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
 
package/dist/leu-radio.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LeuRadio } from './Radio.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
 
5
5
  LeuRadio.define("leu-radio");
package/dist/leu-range.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LeuRange } from './Range.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
 
5
5
  LeuRange.define("leu-range");
@@ -1,11 +1,11 @@
1
1
  import { LeuScrollTop } from './ScrollTop.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
  import './Button.js';
6
6
  import 'lit/directives/if-defined.js';
7
7
  import './Icon.js';
8
- import './hasSlotController-dbcac394.js';
8
+ import './hasSlotController-c09741c5.js';
9
9
  import './utils-65469421.js';
10
10
 
11
11
  LeuScrollTop.define("leu-scroll-top");
@@ -1,10 +1,10 @@
1
1
  import { LeuSelect } from './Select.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
  import 'lit/directives/ref.js';
6
6
  import 'lit/directives/if-defined.js';
7
- import './hasSlotController-dbcac394.js';
7
+ import './hasSlotController-c09741c5.js';
8
8
  import './Button.js';
9
9
  import './Icon.js';
10
10
  import './Menu.js';
@@ -1,5 +1,5 @@
1
1
  import { LeuSpinner } from './Spinner.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
 
5
5
  LeuSpinner.define("leu-spinner");
package/dist/leu-table.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { LeuTable } from './Table.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
  import 'lit/directives/class-map.js';
5
5
  import 'lit/directives/style-map.js';
@@ -9,7 +9,7 @@ import './Pagination.js';
9
9
  import 'lit/directives/live.js';
10
10
  import './Button.js';
11
11
  import 'lit/directives/if-defined.js';
12
- import './hasSlotController-dbcac394.js';
12
+ import './hasSlotController-c09741c5.js';
13
13
  import './VisuallyHidden.js';
14
14
 
15
15
  LeuTable.define("leu-table");
@@ -1,5 +1,5 @@
1
1
  import { LeuVisuallyHidden } from './VisuallyHidden.js';
2
- import './LeuElement-874a297c.js';
2
+ import './LeuElement-b670d77c.js';
3
3
  import 'lit';
4
4
 
5
5
  LeuVisuallyHidden.define("leu-visually-hidden");
@@ -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.13.0",
4
+ "version": "0.13.1",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
package/index.js CHANGED
@@ -15,3 +15,4 @@ export * from "./src/components/radio/Radio.js"
15
15
  export * from "./src/components/radio/RadioGroup.js"
16
16
  export * from "./src/components/select/Select.js"
17
17
  export * from "./src/components/table/Table.js"
18
+ export * from "./src/lib/LeuElement.js"
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.13.0",
6
+ "version": "0.13.1",
7
7
  "type": "module",
8
8
  "main": "dist/index.js",
9
9
  "module": "dist/index.js",
@@ -110,7 +110,7 @@ export class LeuButton extends LeuElement {
110
110
 
111
111
  renderExpandingIcon() {
112
112
  if (typeof this.expanded !== "undefined" && this.variant === "ghost") {
113
- return html`<div class="icon-wrapper icon-wrapper--expanded">
113
+ return html`<div class="icon-expanded">
114
114
  <leu-icon name="angleDropDown" size="24"></leu-icon>
115
115
  </div>`
116
116
  }
@@ -170,9 +170,14 @@ export class LeuButton extends LeuElement {
170
170
  ?disabled=${this.disabled}
171
171
  type=${this.type}
172
172
  >
173
- <slot name="before" class="icon-wrapper icon-wrapper--before"></slot>
173
+ <div class="icon-wrapper icon-wrapper--before">
174
+ <slot name="before" class="icon-wrapper__slot"></slot>
175
+ </div>
174
176
  <span class="content"><slot></slot></span>
175
- <slot name="after" class="icon-wrapper icon-wrapper--after"></slot>
177
+ <div class="icon-wrapper icon-wrapper--after">
178
+ <slot name="after" class="icon-wrapper__slot"></slot>
179
+ </div>
180
+
176
181
  ${this.renderExpandingIcon()}
177
182
  </button>
178
183
  `
@@ -128,6 +128,7 @@ button.ghost {
128
128
  padding: 0 0.5rem;
129
129
  color: var(--leu-color-black-60);
130
130
  font-family: var(--leu-font-family-regular);
131
+ height: 2rem;
131
132
  }
132
133
 
133
134
  button.ghost:hover {
@@ -206,49 +207,82 @@ button.ghost.inverted:disabled {
206
207
  display: block;
207
208
  }
208
209
 
209
- .ghost.icon-before .icon-wrapper--before,
210
- .ghost.icon-after .icon-wrapper--after {
210
+ .icon-wrapper {
211
+ display: none;
212
+ }
213
+
214
+ .icon-before .icon-wrapper--before,
215
+ .icon-after .icon-wrapper--after {
211
216
  display: block;
212
- padding: 0.5rem;
217
+ }
218
+
219
+ .ghost .icon-wrapper {
220
+ position: relative;
221
+ width: 2rem;
222
+ padding: 0 0.5rem;
223
+ --_bg: var(--leu-color-black-transp-10);
224
+ --_color: currentcolor;
225
+ }
226
+
227
+ .ghost .icon-wrapper__slot {
228
+ display: block;
229
+ position: relative;
230
+ z-index: 1;
231
+ color: var(--_color);
232
+ }
233
+
234
+ .ghost .icon-wrapper::before {
235
+ content: "";
236
+ position: absolute;
237
+ z-index: 0;
238
+ left: 0;
239
+ top: -0.5rem;
240
+
241
+ width: 2rem;
242
+ aspect-ratio: 1;
213
243
  border-radius: 50%;
214
- background: var(--leu-color-black-transp-10);
244
+ background: var(--_bg);
215
245
  }
216
246
 
217
- .ghost.active :is(.icon-wrapper--before, .icon-wrapper--after) {
218
- background: var(--leu-color-black-100);
219
- color: var(--leu-color-black-0);
247
+ .ghost.active .icon-wrapper {
248
+ --_bg: var(--leu-color-black-100);
249
+ --_color: var(--leu-color-black-0);
220
250
  }
221
251
 
222
- .ghost:disabled :is(.icon-wrapper--before, .icon-wrapper--after) {
223
- background: var(--leu-color-black-transp-5);
252
+ .ghost:disabled .icon-wrapper {
253
+ --_bg: var(--leu-color-black-transp-5);
224
254
  }
225
255
 
226
256
  /* inverted */
227
257
 
228
- .ghost.inverted :is(.icon-wrapper--before, .icon-wrapper--after) {
229
- background: var(--leu-color-black-transp-20);
258
+ .ghost.inverted .icon-wrapper {
259
+ --_bg: var(--leu-color-black-transp-20);
230
260
  }
231
261
 
232
- .ghost.inverted:hover :is(.icon-wrapper--before, .icon-wrapper--after) {
233
- background: var(--leu-color-black-transp-40);
234
- color: var(--leu-color-black-0);
262
+ .ghost.inverted:hover .icon-wrapper {
263
+ --_bg: var(--leu-color-black-transp-40);
264
+ --_color: var(--leu-color-black-0);
235
265
  }
236
266
 
237
- .ghost.inverted:disabled :is(.icon-wrapper--before, .icon-wrapper--after) {
238
- background: var(--leu-color-black-transp-20);
239
- color: var(--leu-color-white-transp-70);
267
+ .ghost.inverted:disabled .icon-wrapper {
268
+ --_bg: var(--leu-color-black-transp-20);
269
+ --_color: var(--leu-color-white-transp-70);
240
270
  }
241
271
 
242
- .ghost.active.inverted :is(.icon-wrapper--before, .icon-wrapper--after) {
243
- background: var(--leu-color-black-0);
244
- color: var(--leu-color-black-100);
272
+ .ghost.active.inverted .icon-wrapper {
273
+ --_bg: var(--leu-color-black-0);
274
+ --_color: var(--leu-color-black-100);
245
275
  }
246
276
 
247
277
  /* Expanded icon */
248
- .icon-wrapper--expanded {
278
+ .icon-expanded leu-icon {
279
+ display: block;
280
+ }
281
+
282
+ .icon-expanded {
249
283
  transition: transform 0.1s ease;
250
284
  }
251
285
 
252
- :host([expanded="open"]) .icon-wrapper--expanded {
286
+ :host([expanded="true"]) .icon-expanded {
253
287
  transform: rotate(180deg);
254
288
  }
@@ -87,6 +87,7 @@ Regular.argTypes = {
87
87
  expanded: { control: "radio", options: BUTTON_EXPANDED_OPTIONS },
88
88
  disabled: { control: "boolean" },
89
89
  round: { control: "boolean" },
90
+ active: { control: "boolean" },
90
91
  }
91
92
  Regular.args = {
92
93
  content: "Click Mich...",