@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.
- package/.storybook/preview-head.html +1 -4
- package/.storybook/static/fonts/Inter-Black.woff2 +0 -0
- package/.storybook/static/fonts/Inter-Regular.woff2 +0 -0
- package/.storybook/static/fonts.css +11 -0
- package/CHANGELOG.md +11 -0
- package/dist/Accordion.d.ts +1 -1
- package/dist/Accordion.js +1 -1
- package/dist/Breadcrumb.d.ts +1 -1
- package/dist/Breadcrumb.js +1 -1
- package/dist/Button.d.ts +1 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/Button.js +64 -34
- package/dist/ButtonGroup.d.ts +1 -1
- package/dist/ButtonGroup.js +1 -1
- package/dist/Checkbox.d.ts +1 -1
- package/dist/Checkbox.js +1 -1
- package/dist/CheckboxGroup.d.ts +1 -1
- package/dist/CheckboxGroup.js +1 -1
- package/dist/Chip.d.ts +1 -1
- package/dist/Chip.d.ts.map +1 -1
- package/dist/Chip.js +5 -4
- package/dist/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup.js +1 -1
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.d.ts +1 -1
- package/dist/Dialog.js +2 -2
- package/dist/Dropdown.d.ts +1 -1
- package/dist/Dropdown.d.ts.map +1 -1
- package/dist/Dropdown.js +3 -2
- package/dist/Icon.d.ts +1 -1
- package/dist/Icon.d.ts.map +1 -1
- package/dist/Icon.js +6 -2
- package/dist/Input.d.ts +1 -1
- package/dist/Input.js +1 -1
- package/dist/{LeuElement-874a297c.d.ts → LeuElement-b670d77c.d.ts} +1 -1
- package/dist/LeuElement-b670d77c.d.ts.map +1 -0
- package/dist/{LeuElement-874a297c.js → LeuElement-b670d77c.js} +11 -1
- package/dist/Menu.d.ts +1 -1
- package/dist/Menu.js +1 -1
- package/dist/MenuItem.d.ts +1 -1
- package/dist/MenuItem.js +1 -1
- package/dist/Pagination.d.ts +1 -1
- package/dist/Pagination.js +2 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.d.ts.map +1 -1
- package/dist/Popup.js +2 -1
- package/dist/Radio.d.ts +1 -1
- package/dist/Radio.js +1 -1
- package/dist/RadioGroup.d.ts +1 -1
- package/dist/RadioGroup.js +1 -1
- package/dist/Range.d.ts +1 -1
- package/dist/Range.js +1 -1
- package/dist/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.js +2 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.js +3 -3
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -1
- package/dist/Table.js +2 -2
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/{hasSlotController-dbcac394.d.ts → hasSlotController-c09741c5.d.ts} +1 -1
- package/dist/{hasSlotController-dbcac394.d.ts.map → hasSlotController-c09741c5.d.ts.map} +1 -1
- package/dist/{hasSlotController-dbcac394.js → hasSlotController-c09741c5.js} +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -2
- package/dist/leu-accordion.js +1 -1
- package/dist/leu-breadcrumb.js +1 -1
- package/dist/leu-button-group.js +1 -1
- package/dist/leu-button.js +2 -2
- package/dist/leu-checkbox-group.js +1 -1
- package/dist/leu-checkbox.js +1 -1
- package/dist/leu-chip-group.js +1 -1
- package/dist/leu-chip-link.js +1 -1
- package/dist/leu-chip-removable.js +1 -1
- package/dist/leu-chip-selectable.js +1 -1
- package/dist/leu-dialog.js +2 -2
- package/dist/leu-dropdown.js +2 -2
- package/dist/leu-icon.js +1 -1
- package/dist/leu-input.js +1 -1
- package/dist/leu-menu-item.js +1 -1
- package/dist/leu-menu.js +1 -1
- package/dist/leu-pagination.js +2 -2
- package/dist/leu-popup.js +1 -1
- package/dist/leu-radio-group.js +1 -1
- package/dist/leu-radio.js +1 -1
- package/dist/leu-range.js +1 -1
- package/dist/leu-scroll-top.js +2 -2
- package/dist/leu-select.js +2 -2
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +2 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/web-types.json +1 -1
- package/index.js +1 -0
- package/package.json +1 -1
- package/src/components/button/Button.js +8 -3
- package/src/components/button/button.css +56 -22
- package/src/components/button/stories/button.stories.js +1 -0
- package/src/components/button/test/button.test.js +3 -3
- package/src/components/chip/chip.css +4 -3
- package/src/components/chip/stories/chip-selectable.stories.js +1 -1
- package/src/components/dropdown/dropdown.css +1 -0
- package/src/components/icon/icon.css +4 -0
- package/src/components/popup/popup.css +1 -0
- package/src/components/select/select.css +1 -1
- package/src/components/select/test/select.test.js +1 -0
- package/src/styles/common-styles.css +9 -0
- package/web-test-runner.config.mjs +1 -0
- package/dist/LeuElement-874a297c.d.ts.map +0 -1
|
Binary file
|
|
Binary file
|
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
|
|
package/dist/Accordion.d.ts
CHANGED
|
@@ -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-
|
|
31
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
32
32
|
//# sourceMappingURL=Accordion.d.ts.map
|
package/dist/Accordion.js
CHANGED
package/dist/Breadcrumb.d.ts
CHANGED
|
@@ -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-
|
|
67
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
68
68
|
import { nothing } from 'lit';
|
|
69
69
|
//# sourceMappingURL=Breadcrumb.d.ts.map
|
package/dist/Breadcrumb.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
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-
|
|
44
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
45
45
|
import { nothing } from 'lit';
|
|
46
46
|
//# sourceMappingURL=Button.d.ts.map
|
package/dist/Button.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["Button.js"],"names":[],"mappings":"
|
|
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-
|
|
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-
|
|
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
|
-
.
|
|
241
|
-
|
|
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
|
|
249
|
-
|
|
250
|
-
|
|
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
|
|
254
|
-
|
|
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
|
|
258
|
-
|
|
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
|
-
|
|
278
|
+
.ghost.active .icon-wrapper {
|
|
279
|
+
--_bg: var(--leu-color-black-100);
|
|
280
|
+
--_color: var(--leu-color-black-0);
|
|
281
|
+
}
|
|
262
282
|
|
|
263
|
-
.ghost
|
|
264
|
-
|
|
283
|
+
.ghost:disabled .icon-wrapper {
|
|
284
|
+
--_bg: var(--leu-color-black-transp-5);
|
|
265
285
|
}
|
|
266
286
|
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
287
|
+
/* inverted */
|
|
288
|
+
|
|
289
|
+
.ghost.inverted .icon-wrapper {
|
|
290
|
+
--_bg: var(--leu-color-black-transp-20);
|
|
270
291
|
}
|
|
271
292
|
|
|
272
|
-
.ghost.inverted:
|
|
273
|
-
|
|
274
|
-
|
|
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
|
|
278
|
-
|
|
279
|
-
|
|
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
|
|
283
|
-
|
|
284
|
-
|
|
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-
|
|
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="
|
|
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-
|
|
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
|
-
<
|
|
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
|
-
<
|
|
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
|
`;
|
package/dist/ButtonGroup.d.ts
CHANGED
|
@@ -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-
|
|
23
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
24
24
|
//# sourceMappingURL=ButtonGroup.d.ts.map
|
package/dist/ButtonGroup.js
CHANGED
package/dist/Checkbox.d.ts
CHANGED
|
@@ -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-
|
|
13
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
14
14
|
//# sourceMappingURL=Checkbox.d.ts.map
|
package/dist/Checkbox.js
CHANGED
package/dist/CheckboxGroup.d.ts
CHANGED
|
@@ -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-
|
|
13
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
14
14
|
//# sourceMappingURL=CheckboxGroup.d.ts.map
|
package/dist/CheckboxGroup.js
CHANGED
package/dist/Chip.d.ts
CHANGED
package/dist/Chip.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Chip.d.ts","sourceRoot":"","sources":["Chip.js"],"names":[],"mappings":"
|
|
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-
|
|
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:
|
|
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.
|
|
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 {
|
package/dist/ChipGroup.d.ts
CHANGED
package/dist/ChipGroup.js
CHANGED
package/dist/ChipLink.js
CHANGED
package/dist/ChipRemovable.js
CHANGED
package/dist/ChipSelectable.js
CHANGED
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-
|
|
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-
|
|
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-
|
|
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 */
|
package/dist/Dropdown.d.ts
CHANGED
|
@@ -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-
|
|
18
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
19
19
|
//# sourceMappingURL=Dropdown.d.ts.map
|
package/dist/Dropdown.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Dropdown.d.ts","sourceRoot":"","sources":["Dropdown.js"],"names":[],"mappings":"
|
|
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-
|
|
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-
|
|
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-
|
|
115
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
116
116
|
//# sourceMappingURL=Icon.d.ts.map
|
package/dist/Icon.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon.d.ts","sourceRoot":"","sources":["Icon.js"],"names":[],"mappings":"
|
|
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-
|
|
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
|
|
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-
|
|
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-
|
|
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-
|
|
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.
|
|
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-
|
|
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-
|
|
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';
|
package/dist/MenuItem.d.ts
CHANGED
|
@@ -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-
|
|
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-
|
|
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';
|
package/dist/Pagination.d.ts
CHANGED
|
@@ -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-
|
|
33
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
34
34
|
//# sourceMappingURL=Pagination.d.ts.map
|
package/dist/Pagination.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
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-
|
|
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-
|
|
35
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
36
36
|
//# sourceMappingURL=Popup.d.ts.map
|
package/dist/Popup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Popup.d.ts","sourceRoot":"","sources":["Popup.js"],"names":[],"mappings":"
|
|
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-
|
|
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-
|
|
13
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
14
14
|
//# sourceMappingURL=Radio.d.ts.map
|
package/dist/Radio.js
CHANGED
package/dist/RadioGroup.d.ts
CHANGED
|
@@ -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-
|
|
19
|
+
import { L as LeuElement } from './LeuElement-b670d77c.js';
|
|
20
20
|
//# sourceMappingURL=RadioGroup.d.ts.map
|