@statistikzh/leu 0.9.0 → 0.11.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 (127) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/dist/Accordion.d.ts +1 -1
  3. package/dist/Accordion.js +1 -1
  4. package/dist/Breadcrumb.d.ts +1 -1
  5. package/dist/Breadcrumb.js +1 -1
  6. package/dist/Button.d.ts +45 -1
  7. package/dist/Button.d.ts.map +1 -1
  8. package/dist/Button.js +473 -6
  9. package/dist/ButtonGroup.d.ts +1 -1
  10. package/dist/ButtonGroup.js +1 -1
  11. package/dist/Checkbox.d.ts +1 -1
  12. package/dist/Checkbox.js +1 -1
  13. package/dist/CheckboxGroup.d.ts +1 -1
  14. package/dist/CheckboxGroup.js +1 -1
  15. package/dist/Chip.d.ts +1 -1
  16. package/dist/Chip.js +1 -1
  17. package/dist/ChipGroup.d.ts +1 -1
  18. package/dist/ChipGroup.js +2 -2
  19. package/dist/ChipLink.js +1 -1
  20. package/dist/ChipRemovable.js +1 -1
  21. package/dist/ChipSelectable.js +1 -1
  22. package/dist/Dialog.d.ts +17 -0
  23. package/dist/Dialog.d.ts.map +1 -0
  24. package/dist/Dialog.js +255 -0
  25. package/dist/Dropdown.d.ts +1 -1
  26. package/dist/Dropdown.d.ts.map +1 -1
  27. package/dist/Dropdown.js +3 -2
  28. package/dist/Icon.d.ts +1 -1
  29. package/dist/Icon.js +1 -1
  30. package/dist/Input.d.ts +1 -1
  31. package/dist/Input.d.ts.map +1 -1
  32. package/dist/Input.js +3 -1
  33. package/dist/{LeuElement-7ab5ef5e.d.ts → LeuElement-78b4a998.d.ts} +1 -1
  34. package/dist/LeuElement-78b4a998.d.ts.map +1 -0
  35. package/dist/{LeuElement-7ab5ef5e.js → LeuElement-78b4a998.js} +1 -1
  36. package/dist/Menu.d.ts +1 -1
  37. package/dist/Menu.js +1 -1
  38. package/dist/MenuItem.d.ts +1 -1
  39. package/dist/MenuItem.js +1 -1
  40. package/dist/Pagination.d.ts +1 -1
  41. package/dist/Pagination.d.ts.map +1 -1
  42. package/dist/Pagination.js +3 -2
  43. package/dist/Popup.d.ts +1 -1
  44. package/dist/Popup.js +1 -1
  45. package/dist/Radio.d.ts +1 -1
  46. package/dist/Radio.js +1 -1
  47. package/dist/RadioGroup.d.ts +1 -1
  48. package/dist/RadioGroup.js +1 -1
  49. package/dist/Range.d.ts +60 -0
  50. package/dist/Range.d.ts.map +1 -0
  51. package/dist/Range.js +414 -0
  52. package/dist/ScrollTop.d.ts +1 -1
  53. package/dist/ScrollTop.d.ts.map +1 -1
  54. package/dist/ScrollTop.js +3 -2
  55. package/dist/Select.d.ts +1 -1
  56. package/dist/Select.d.ts.map +1 -1
  57. package/dist/Select.js +3 -2
  58. package/dist/Spinner.d.ts +1 -1
  59. package/dist/Spinner.js +1 -1
  60. package/dist/Table.d.ts +1 -1
  61. package/dist/Table.d.ts.map +1 -1
  62. package/dist/Table.js +3 -2
  63. package/dist/VisuallyHidden.d.ts +1 -1
  64. package/dist/VisuallyHidden.js +1 -1
  65. package/dist/hasSlotController-fd1950b4.d.ts +38 -0
  66. package/dist/hasSlotController-fd1950b4.d.ts.map +1 -0
  67. package/dist/hasSlotController-fd1950b4.js +75 -0
  68. package/dist/index.d.ts +1 -1
  69. package/dist/index.js +3 -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.d.ts +1 -1
  74. package/dist/leu-button.d.ts.map +1 -1
  75. package/dist/leu-button.js +3 -2
  76. package/dist/leu-checkbox-group.js +1 -1
  77. package/dist/leu-checkbox.js +1 -1
  78. package/dist/leu-chip-group.js +1 -1
  79. package/dist/leu-chip-link.js +1 -1
  80. package/dist/leu-chip-removable.js +1 -1
  81. package/dist/leu-chip-selectable.js +1 -1
  82. package/dist/leu-dialog.d.ts +3 -0
  83. package/dist/leu-dialog.d.ts.map +1 -0
  84. package/dist/leu-dialog.js +11 -0
  85. package/dist/leu-dropdown.js +3 -2
  86. package/dist/leu-icon.js +1 -1
  87. package/dist/leu-input.js +1 -1
  88. package/dist/leu-menu-item.js +1 -1
  89. package/dist/leu-menu.js +1 -1
  90. package/dist/leu-pagination.js +3 -2
  91. package/dist/leu-popup.js +1 -1
  92. package/dist/leu-radio-group.js +1 -1
  93. package/dist/leu-radio.js +1 -1
  94. package/dist/leu-range.d.ts +3 -0
  95. package/dist/leu-range.d.ts.map +1 -0
  96. package/dist/leu-range.js +7 -0
  97. package/dist/leu-scroll-top.js +3 -2
  98. package/dist/leu-select.js +3 -2
  99. package/dist/leu-spinner.js +1 -1
  100. package/dist/leu-table.js +3 -2
  101. package/dist/leu-visually-hidden.js +1 -1
  102. package/dist/theme.css +318 -192
  103. package/dist/vscode.html-custom-data.json +35 -0
  104. package/dist/vue/index.d.ts +60 -0
  105. package/dist/web-types.json +73 -1
  106. package/package.json +1 -1
  107. package/rollup.config.js +4 -1
  108. package/scripts/postcss-leu-font-styles.cjs +29 -35
  109. package/src/components/chip/chip-group.css +1 -1
  110. package/src/components/dialog/Dialog.js +100 -0
  111. package/src/components/dialog/dialog.css +162 -0
  112. package/src/components/dialog/leu-dialog.js +5 -0
  113. package/src/components/dialog/stories/dialog.stories.js +144 -0
  114. package/src/components/dialog/test/dialog.test.js +85 -0
  115. package/src/components/input/input.css +2 -0
  116. package/src/components/range/Range.js +237 -0
  117. package/src/components/range/leu-range.js +5 -0
  118. package/src/components/range/range.css +181 -0
  119. package/src/components/range/stories/range-slider.stories.js +142 -0
  120. package/src/components/range/test/range-test.js +24 -0
  121. package/src/styles/custom-properties.css +27 -0
  122. package/src/styles/font-definitions.json +27 -19
  123. package/src/styles/style.stories.js +61 -0
  124. package/dist/Button-5a8009c5.d.ts +0 -83
  125. package/dist/Button-5a8009c5.d.ts.map +0 -1
  126. package/dist/Button-5a8009c5.js +0 -544
  127. package/dist/LeuElement-7ab5ef5e.d.ts.map +0 -1
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty } from './LeuElement-7ab5ef5e.js';
1
+ import { _ as _defineProperty } from './LeuElement-78b4a998.js';
2
2
  import { html } from 'lit';
3
3
  import { LeuChipBase } from './Chip.js';
4
4
 
@@ -0,0 +1,17 @@
1
+ /**
2
+ * @tagname leu-dialog
3
+ */
4
+ export class LeuDialog extends LeuElement {
5
+ _dialogRef: import("lit-html/directives/ref.js").Ref<Element>;
6
+ /** @type {string} */
7
+ label: string;
8
+ /** @type {string} */
9
+ sublabel: string;
10
+ /** @type {boolean} */
11
+ open: boolean;
12
+ show(): void;
13
+ close(): void;
14
+ render(): import("lit-html").TemplateResult<1>;
15
+ }
16
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
17
+ //# sourceMappingURL=Dialog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Dialog.d.ts","sourceRoot":"","sources":["Dialog.js"],"names":[],"mappings":"AA2KA;;GAEG;AACH;IASI,8DAA6B;IAE7B,qBAAqB;IACrB,OADW,MAAM,CACF;IACf,qBAAqB;IACrB,UADW,MAAM,CACC;IAClB,sBAAsB;IACtB,MADW,OAAO,CACD;IAEnB,aAEC;IACD,cAEC;IACD,+CAiCC;CACF;gCAxOqD,0BAA0B"}
package/dist/Dialog.js ADDED
@@ -0,0 +1,255 @@
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.js';
2
+ import { css, html, nothing } from 'lit';
3
+ import { createRef, ref } from 'lit/directives/ref.js';
4
+ import { classMap } from 'lit/directives/class-map.js';
5
+ import { H as HasSlotController } from './hasSlotController-fd1950b4.js';
6
+ import { LeuIcon } from './Icon.js';
7
+
8
+ var css_248z = css`/* figma https://www.figma.com/design/d6Pv21UVUbnBs3AdcZijHmbN/KTZH-Design-System?node-id=21161-186812&t=8VgDy9avMRG5aL7s-0 */
9
+ :host,
10
+ :host * {
11
+ box-sizing: border-box;
12
+ }
13
+ :host {
14
+ --dialog-font-regular: var(--leu-font-family-regular);
15
+ --dialog-font-black: var(--leu-font-family-black);
16
+
17
+ font-family: var(--leu-font-family-regular);
18
+
19
+ font-family: var(--dialog-font-regular);
20
+ }
21
+ .dialog {
22
+ background: #fff;
23
+ border: 0;
24
+ padding: 0;
25
+
26
+ overflow: hidden;
27
+ background-color: var(--leu-color-black-0);
28
+
29
+ flex-direction: column;
30
+
31
+ margin: 0 auto;
32
+ height: 100vh;
33
+ width: 100vw;
34
+ max-height: 100vh;
35
+ max-width: 100vw;
36
+ }
37
+ @media (min-width: 600px) {
38
+ .dialog {
39
+ margin: 80px auto;
40
+ height: -moz-fit-content;
41
+ height: fit-content;
42
+ width: -moz-fit-content;
43
+ width: fit-content;
44
+ max-width: min(100% - 4.5rem, 60.5rem);
45
+ max-height: calc(100vh - 5rem);
46
+ }
47
+ }
48
+ .dialog[open] {
49
+ display: flex;
50
+ }
51
+ .dialog::backdrop {
52
+ background-color: var(--leu-color-black-transp-40);
53
+ }
54
+ .content {
55
+ --padding: 2rem;
56
+ padding: 2rem;
57
+ padding: var(--padding);
58
+ padding-bottom: 0;
59
+ margin-bottom: 1.5rem;
60
+ overflow-y: auto;
61
+ }
62
+ @media (min-width: 600px) {
63
+ .content {
64
+ --padding: 2.5rem;
65
+ }
66
+ }
67
+ @media (min-width: 840px) {
68
+ .content {
69
+ margin-bottom: 2rem;
70
+ }
71
+ }
72
+ @media (min-width: 1024px) {
73
+ .content {
74
+ --padding: 3.5rem;
75
+ }
76
+ }
77
+ @media (min-width: 1280px) {
78
+ .content {
79
+ margin-bottom: 2.5rem;
80
+ }
81
+ }
82
+ .title-wrapper {
83
+ display: flex;
84
+ flex-flow: column wrap;
85
+ }
86
+ .header {
87
+ display: flex;
88
+ align-items: flex-start;
89
+ justify-content: space-between;
90
+ }
91
+ .title {
92
+ font: var(--leu-t-curve-big-black-font);
93
+ margin: 0 0 0.75rem;
94
+ order: 2;
95
+ }
96
+ @media (min-width: 600px) {
97
+ .title {
98
+ margin-bottom: 1rem;
99
+ }
100
+ }
101
+ @media (min-width: 840px) {
102
+ .title {
103
+ margin-bottom: 1.25rem;
104
+ }
105
+ }
106
+ @media (min-width: 1280px) {
107
+ .title {
108
+ margin-bottom: 1.5rem;
109
+ font: var(--leu-t-bigger-big-black-font);
110
+ }
111
+ }
112
+ .subtitle {
113
+ color: var(--leu-color-black-transp-60);
114
+ font-size: var(--leu-t-tiny-regular-font-size);
115
+ line-height: var(--leu-t-tiny-regular-line-height);
116
+
117
+ order: 1;
118
+
119
+ margin: 0 0 4px;
120
+ }
121
+ .close-button {
122
+ cursor: pointer;
123
+ display: flex;
124
+ gap: 0.5rem;
125
+
126
+ padding: 0.25rem 0;
127
+ margin-left: 0.75rem;
128
+ border: 0;
129
+ border-radius: 0.125rem;
130
+
131
+ color: var(--leu-color-black-transp-60);
132
+ background: transparent;
133
+ }
134
+ @media (min-width: 600px) {
135
+ .close-button {
136
+ margin-left: 1rem;
137
+ }
138
+ }
139
+ @media (min-width: 840px) {
140
+ .close-button {
141
+ margin-left: 1.25rem;
142
+ }
143
+ }
144
+ @media (min-width: 1280px) {
145
+ .close-button {
146
+ margin-left: 1.5rem;
147
+ }
148
+ }
149
+ .close-button:focus-visible {
150
+ outline: 2px solid var(--leu-color-func-cyan);
151
+ outline-offset: 2px;
152
+ }
153
+ .close-button__label {
154
+ display: none;
155
+ font: var(--leu-t-regular-regular-font);
156
+ }
157
+ @media (min-width: 840px) {
158
+ .close-button__label {
159
+ display: inline;
160
+ }
161
+ }
162
+ .close-button__label--hidden {
163
+ display: none;
164
+ }
165
+ .actionbar {
166
+ display: flex;
167
+ justify-content: flex-end;
168
+ min-height: 3rem;
169
+ }
170
+ `;
171
+
172
+ /**
173
+ * @tagname leu-dialog
174
+ */
175
+ class LeuDialog extends LeuElement {
176
+ constructor() {
177
+ super();
178
+
179
+ /** @type {import("lit/directives/ref").Ref<HTMLDialogElement>} */
180
+ /**
181
+ * @internal
182
+ */
183
+ _defineProperty(this, "hasSlotController", new HasSlotController(this, ["toolbar"]));
184
+ this._dialogRef = createRef();
185
+
186
+ /** @type {string} */
187
+ this.label = "";
188
+ /** @type {string} */
189
+ this.sublabel = "";
190
+ /** @type {boolean} */
191
+ this.open = false;
192
+ }
193
+ show() {
194
+ this._dialogRef.value.showModal();
195
+ }
196
+ close() {
197
+ this._dialogRef.value.close();
198
+ }
199
+ render() {
200
+ const hasActionbar = this.hasSlotController.test("actionbar");
201
+ const closeButtonLabelClasses = {
202
+ "close-button__label": true,
203
+ "close-button__label--hidden": hasActionbar
204
+ };
205
+ return html`
206
+ <dialog class="dialog" ref=${ref(this._dialogRef)} ?open=${this.open}>
207
+ <div class="content">
208
+ <div class="header">
209
+ <div class="title-wrapper">
210
+ <h1 class="title">${this.label}</h1>
211
+ ${this.sublabel ? html`<p class="subtitle">${this.sublabel}</p>` : nothing}
212
+ </div>
213
+ <button
214
+ class="close-button"
215
+ @click=${this.close}
216
+ aria-label="Schliessen"
217
+ >
218
+ <span
219
+ class=${classMap(closeButtonLabelClasses)}
220
+ aria-hidden="true"
221
+ >Schliessen</span
222
+ ><leu-icon name="close"> </leu-icon>
223
+ </button>
224
+ </div>
225
+ <slot></slot>
226
+ </div>
227
+ <div class="actionbar">
228
+ <slot name="actionbar"></slot>
229
+ </div>
230
+ </dialog>
231
+ `;
232
+ }
233
+ }
234
+ _defineProperty(LeuDialog, "dependencies", {
235
+ "leu-icon": LeuIcon
236
+ });
237
+ _defineProperty(LeuDialog, "styles", css_248z);
238
+ _defineProperty(LeuDialog, "shadowRootOptions", {
239
+ ...LeuElement.shadowRootOptions,
240
+ delegatesFocus: true
241
+ });
242
+ _defineProperty(LeuDialog, "properties", {
243
+ label: {
244
+ type: String
245
+ },
246
+ sublabel: {
247
+ type: String
248
+ },
249
+ open: {
250
+ type: Boolean,
251
+ open: true
252
+ }
253
+ });
254
+
255
+ export { LeuDialog };
@@ -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-7ab5ef5e.js';
18
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
19
19
  //# sourceMappingURL=Dropdown.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["Dropdown.js"],"names":[],"mappings":"AAkCA;;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;gCAhJqD,0BAA0B"}
1
+ {"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["Dropdown.js"],"names":[],"mappings":"AAmCA;;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;gCAjJqD,0BAA0B"}
package/dist/Dropdown.js CHANGED
@@ -1,7 +1,8 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.js';
2
2
  import { css, html, nothing } from 'lit';
3
3
  import { createRef, ref } from 'lit/directives/ref.js';
4
- import { H as HasSlotController, L as LeuButton } from './Button-5a8009c5.js';
4
+ import { H as HasSlotController } from './hasSlotController-fd1950b4.js';
5
+ import { LeuButton } from './Button.js';
5
6
  import { LeuMenu } from './Menu.js';
6
7
  import { LeuMenuItem } from './MenuItem.js';
7
8
  import { LeuPopup } from './Popup.js';
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-7ab5ef5e.js';
115
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
116
116
  //# sourceMappingURL=Icon.d.ts.map
package/dist/Icon.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.js';
2
2
  import { css, html, svg } from 'lit';
3
3
 
4
4
  var css_248z = css`svg,
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-7ab5ef5e.js';
148
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
149
149
  import { nothing } from 'lit';
150
150
  //# sourceMappingURL=Input.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["Input.js"],"names":[],"mappings":"AA+SA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH;IACE,kEAKC;IAGC,kBAAqB;IACrB,kBAAqB;IACrB,mBAAsB;IAEtB,kCAAkC;IAClC,MADW,OAAO,GAAG,SAAS,CACL;IACzB,aAAkB;IAClB,eAAqB;IACrB,uBAA4B;IAC5B,oBAAuB;IACvB,cAAe;IAEf,gBAAgB;IAChB,oBAAqB;IAErB;;;OAGG;IACH,WAFU,OAAO,uBAAuB,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAEnC;IAE9B,4BAKC;IAED;;;;;;;;;;OAUG;IACH,2BAIC;IAED;;;;;;OAMG;IACH,mBAKC;IAED;;;;;;OAMG;IACH,sBAEC;IAED;;;;;;;;OAQG;IACH,qBAMC;IAED;;;;;;;OAOG;IACH,oBAOC;IAED;;;;;;;;OAQG;IACH,cAWC;IAED;;;;;;;OAOG;IACH,cAUC;IAED;;;;;;;;;;OAUG;IACH,6BAgBC;IAED;;;OAGG;IACH,uBAFa,OAAO,KAAK,EAAE,cAAc,iBAAU,CAgBlD;IAED;;;;;;OAMG;IACH,2BAsBC;IACD,qBAKC;IACD,+CA2CC;CACF;AAjVD;;;GAGG;gCA1RmD,0BAA0B;wBAC7C,KAAK"}
1
+ {"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["Input.js"],"names":[],"mappings":"AAiTA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH;IACE,kEAKC;IAGC,kBAAqB;IACrB,kBAAqB;IACrB,mBAAsB;IAEtB,kCAAkC;IAClC,MADW,OAAO,GAAG,SAAS,CACL;IACzB,aAAkB;IAClB,eAAqB;IACrB,uBAA4B;IAC5B,oBAAuB;IACvB,cAAe;IAEf,gBAAgB;IAChB,oBAAqB;IAErB;;;OAGG;IACH,WAFU,OAAO,uBAAuB,EAAE,GAAG,CAAC,gBAAgB,CAAC,CAEnC;IAE9B,4BAKC;IAED;;;;;;;;;;OAUG;IACH,2BAIC;IAED;;;;;;OAMG;IACH,mBAKC;IAED;;;;;;OAMG;IACH,sBAEC;IAED;;;;;;;;OAQG;IACH,qBAMC;IAED;;;;;;;OAOG;IACH,oBAOC;IAED;;;;;;;;OAQG;IACH,cAWC;IAED;;;;;;;OAOG;IACH,cAUC;IAED;;;;;;;;;;OAUG;IACH,6BAgBC;IAED;;;OAGG;IACH,uBAFa,OAAO,KAAK,EAAE,cAAc,iBAAU,CAgBlD;IAED;;;;;;OAMG;IACH,2BAsBC;IACD,qBAKC;IACD,+CA2CC;CACF;AAjVD;;;GAGG;gCA5RmD,0BAA0B;wBAC7C,KAAK"}
package/dist/Input.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.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';
@@ -64,6 +64,7 @@ var css_248z = css`:host,
64
64
 
65
65
  border: var(--input-border-width) solid var(--input-border-color);
66
66
  border-radius: 2px;
67
+ background: var(--leu-color-black-0);
67
68
 
68
69
  line-height: 1;
69
70
  }
@@ -96,6 +97,7 @@ var css_248z = css`:host,
96
97
  color: var(--input-color);
97
98
 
98
99
  border: 0;
100
+ background: var(--leu-color-black-0);
99
101
 
100
102
  padding-top: 2rem;
101
103
 
@@ -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-7ab5ef5e.d.ts.map
7
+ //# sourceMappingURL=LeuElement-78b4a998.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LeuElement-78b4a998.d.ts","sourceRoot":"","sources":["LeuElement-78b4a998.js"],"names":[],"mappings":"AA+BA;IACE,8EAcC;CACF;AA7CD,sEAaC;2BAf0B,KAAK"}
@@ -46,7 +46,7 @@ class LeuElement extends LitElement {
46
46
  }
47
47
  }
48
48
  }
49
- _defineProperty(LeuElement, "version", "0.9.0");
49
+ _defineProperty(LeuElement, "version", "0.11.0");
50
50
  _defineProperty(LeuElement, "dependencies", {});
51
51
 
52
52
  export { LeuElement as L, _defineProperty as _ };
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-7ab5ef5e.js';
28
+ import { L as LeuElement } from './LeuElement-78b4a998.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-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.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-7ab5ef5e.js';
40
+ import { L as LeuElement } from './LeuElement-78b4a998.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-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.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-7ab5ef5e.js';
33
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
34
34
  //# sourceMappingURL=Pagination.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["Pagination.js"],"names":[],"mappings":"AAwEA;;GAEG;AACH;IAII,qBAAqB;IACrB,mBAAmB;IAEnB,qBAAqB;IACrB,qBAAqB;IAErB;;;;;;;OAOG;IACH,cAAc;IAEhB,oEAKC;IAID,uBAEC;IALD,mBAEC;IAID,yBAEC;IACD,uBAEC;IACD,uBAEC;IACD,wBAEC;IACD,uBAEC;IACD,8BAEC;IACD,6BAaC;IACD,gCAEC;IACD,+BAKC;IACD,iCASC;IACD,+CAsCC;CACF;gCArMqD,0BAA0B"}
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["Pagination.js"],"names":[],"mappings":"AAyEA;;GAEG;AACH;IAII,qBAAqB;IACrB,mBAAmB;IAEnB,qBAAqB;IACrB,qBAAqB;IAErB;;;;;;;OAOG;IACH,cAAc;IAEhB,oEAKC;IAID,uBAEC;IALD,mBAEC;IAID,yBAEC;IACD,uBAEC;IACD,uBAEC;IACD,wBAEC;IACD,uBAEC;IACD,8BAEC;IACD,6BAaC;IACD,gCAEC;IACD,+BAKC;IACD,iCASC;IACD,+CAsCC;CACF;gCAtMqD,0BAA0B"}
@@ -1,11 +1,12 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.js';
2
2
  import { css, html } from 'lit';
3
3
  import { live } from 'lit/directives/live.js';
4
- import { L as LeuButton } from './Button-5a8009c5.js';
4
+ import { LeuButton } from './Button.js';
5
5
  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-fd1950b4.js';
9
10
 
10
11
  var css_248z = css`:host {
11
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-7ab5ef5e.js';
35
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
36
36
  //# sourceMappingURL=Popup.d.ts.map
package/dist/Popup.js CHANGED
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.js';
2
2
  import { css, html } from 'lit';
3
3
  import { autoUpdate, size, flip, shift, computePosition } from '@floating-ui/dom';
4
4
 
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-7ab5ef5e.js';
13
+ import { L as LeuElement } from './LeuElement-78b4a998.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-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.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-7ab5ef5e.js';
19
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
20
20
  //# sourceMappingURL=RadioGroup.d.ts.map
@@ -1,4 +1,4 @@
1
- import { _ as _defineProperty, L as LeuElement } from './LeuElement-7ab5ef5e.js';
1
+ import { _ as _defineProperty, L as LeuElement } from './LeuElement-78b4a998.js';
2
2
  import { css, html } from 'lit';
3
3
  import { classMap } from 'lit/directives/class-map.js';
4
4
 
@@ -0,0 +1,60 @@
1
+ /**
2
+ * @tagname leu-range
3
+ */
4
+ export class LeuRange extends LeuElement {
5
+ defaultValue: number[];
6
+ min: number;
7
+ max: number;
8
+ step: number;
9
+ name: string;
10
+ label: string;
11
+ disabled: boolean;
12
+ multiple: boolean;
13
+ updated(): void;
14
+ _updateStyles(): void;
15
+ /**
16
+ * Sets the value of the underlying input element(s).
17
+ * The value has to be an array if "multiple" range is used.
18
+ * Otherwise it has to be a string.
19
+ * @param {string | Array} value
20
+ */
21
+ set value(value: string | any[]);
22
+ get value(): string | any[];
23
+ get valueAsArray(): number[];
24
+ get valueLow(): string | number;
25
+ get valueHigh(): string | number;
26
+ /**
27
+ * @returns {HTMLInputElement | null}
28
+ */
29
+ _getBaseInput(): HTMLInputElement | null;
30
+ /**
31
+ * @returns {HTMLInputElement | null}
32
+ */
33
+ _getGhostInput(): HTMLInputElement | null;
34
+ /**
35
+ *
36
+ * @param {number} _index
37
+ * @param {InputEvent & {target: HTMLInputElement}} _e
38
+ */
39
+ _handleInput(_index: number, _e: InputEvent & {
40
+ target: HTMLInputElement;
41
+ }): void;
42
+ /**
43
+ *
44
+ * @param {number} value
45
+ * @returns {number}
46
+ */
47
+ _getNormalizedValue(value: number): number;
48
+ _getNormalizedRange(): number[];
49
+ /**
50
+ * Determine if the "click" (pointer event) is closer the
51
+ * the value of the other input element. Swap the values if this is the case.
52
+ * @param {PointerEvent & {target: HTMLInputElement}} e
53
+ */
54
+ _handlePointerDown(e: PointerEvent & {
55
+ target: HTMLInputElement;
56
+ }): void;
57
+ render(): import("lit-html").TemplateResult<1>;
58
+ }
59
+ import { L as LeuElement } from './LeuElement-78b4a998.js';
60
+ //# sourceMappingURL=Range.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Range.d.ts","sourceRoot":"","sources":["Range.js"],"names":[],"mappings":"AA2MA;;GAEG;AACH;IAGI,uBAAwB;IACxB,YAAY;IACZ,YAAc;IACd,aAAa;IACb,aAAc;IACd,cAAe;IACf,kBAAqB;IACrB,kBAAqB;IAEvB,gBAEC;IACD,sBAYC;IAMD;;;;;OAKG;IACH,iCAWC;IAtBD,4BAGC;IAoBD,6BAEC;IACD,gCAMC;IACD,iCAMC;IAED;;OAEG;IACH,iBAFa,gBAAgB,GAAG,IAAI,CAInC;IAED;;OAEG;IACH,kBAFa,gBAAgB,GAAG,IAAI,CAInC;IAED;;;;OAIG;IACH,qBAHW,MAAM,MACN,UAAU,GAAG;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAC,QAIjD;IAED;;;;OAIG;IACH,2BAHW,MAAM,GACJ,MAAM,CAIlB;IACD,gCAKC;IAED;;;;OAIG;IACH,sBAFW,YAAY,GAAG;QAAC,MAAM,EAAE,gBAAgB,CAAA;KAAC,QAanD;IACD,+CAyCC;CACF;gCApXqD,0BAA0B"}