@statistikzh/leu 0.9.0 → 0.10.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.
- package/CHANGELOG.md +15 -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 +45 -1
- package/dist/Button.d.ts.map +1 -1
- package/dist/Button.js +473 -6
- 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.js +1 -1
- package/dist/ChipGroup.d.ts +1 -1
- package/dist/ChipGroup.js +2 -2
- package/dist/ChipLink.js +1 -1
- package/dist/ChipRemovable.js +1 -1
- package/dist/ChipSelectable.js +1 -1
- package/dist/Dialog.d.ts +17 -0
- package/dist/Dialog.d.ts.map +1 -0
- package/dist/Dialog.js +255 -0
- 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.js +1 -1
- package/dist/Input.d.ts +1 -1
- package/dist/Input.d.ts.map +1 -1
- package/dist/Input.js +3 -1
- package/dist/{LeuElement-7ab5ef5e.d.ts → LeuElement-6fbc0dee.d.ts} +1 -1
- package/dist/LeuElement-6fbc0dee.d.ts.map +1 -0
- package/dist/{LeuElement-7ab5ef5e.js → LeuElement-6fbc0dee.js} +1 -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.d.ts.map +1 -1
- package/dist/Pagination.js +3 -2
- package/dist/Popup.d.ts +1 -1
- package/dist/Popup.js +1 -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/ScrollTop.d.ts +1 -1
- package/dist/ScrollTop.d.ts.map +1 -1
- package/dist/ScrollTop.js +3 -2
- package/dist/Select.d.ts +1 -1
- package/dist/Select.d.ts.map +1 -1
- package/dist/Select.js +3 -2
- package/dist/Spinner.d.ts +1 -1
- package/dist/Spinner.js +1 -1
- package/dist/Table.d.ts +1 -1
- package/dist/Table.d.ts.map +1 -1
- package/dist/Table.js +3 -2
- package/dist/VisuallyHidden.d.ts +1 -1
- package/dist/VisuallyHidden.js +1 -1
- package/dist/hasSlotController-04d0dfa2.d.ts +38 -0
- package/dist/hasSlotController-04d0dfa2.d.ts.map +1 -0
- package/dist/hasSlotController-04d0dfa2.js +75 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +3 -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.d.ts +1 -1
- package/dist/leu-button.d.ts.map +1 -1
- package/dist/leu-button.js +3 -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.d.ts +3 -0
- package/dist/leu-dialog.d.ts.map +1 -0
- package/dist/leu-dialog.js +11 -0
- package/dist/leu-dropdown.js +3 -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 +3 -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-scroll-top.js +3 -2
- package/dist/leu-select.js +3 -2
- package/dist/leu-spinner.js +1 -1
- package/dist/leu-table.js +3 -2
- package/dist/leu-visually-hidden.js +1 -1
- package/dist/theme.css +318 -192
- package/dist/vscode.html-custom-data.json +15 -0
- package/dist/vue/index.d.ts +19 -0
- package/dist/web-types.json +29 -1
- package/package.json +1 -1
- package/rollup.config.js +4 -1
- package/scripts/postcss-leu-font-styles.cjs +29 -35
- package/src/components/chip/chip-group.css +1 -1
- package/src/components/dialog/Dialog.js +100 -0
- package/src/components/dialog/dialog.css +162 -0
- package/src/components/dialog/leu-dialog.js +5 -0
- package/src/components/dialog/stories/dialog.stories.js +144 -0
- package/src/components/dialog/test/dialog.test.js +85 -0
- package/src/components/input/input.css +2 -0
- package/src/styles/custom-properties.css +27 -0
- package/src/styles/font-definitions.json +27 -19
- package/src/styles/style.stories.js +61 -0
- package/dist/Button-5a8009c5.d.ts +0 -83
- package/dist/Button-5a8009c5.d.ts.map +0 -1
- package/dist/Button-5a8009c5.js +0 -544
- package/dist/LeuElement-7ab5ef5e.d.ts.map +0 -1
package/dist/Dialog.d.ts
ADDED
|
@@ -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-6fbc0dee.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-6fbc0dee.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-04d0dfa2.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 };
|
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-6fbc0dee.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":"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-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { createRef, ref } from 'lit/directives/ref.js';
|
|
4
|
-
import { H as HasSlotController
|
|
4
|
+
import { H as HasSlotController } from './hasSlotController-04d0dfa2.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-
|
|
115
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
116
116
|
//# sourceMappingURL=Icon.d.ts.map
|
package/dist/Icon.js
CHANGED
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-6fbc0dee.js';
|
|
149
149
|
import { nothing } from 'lit';
|
|
150
150
|
//# sourceMappingURL=Input.d.ts.map
|
package/dist/Input.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["Input.js"],"names":[],"mappings":"
|
|
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-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-6fbc0dee.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-
|
|
7
|
+
//# sourceMappingURL=LeuElement-6fbc0dee.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LeuElement-6fbc0dee.d.ts","sourceRoot":"","sources":["LeuElement-6fbc0dee.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.
|
|
49
|
+
_defineProperty(LeuElement, "version", "0.10.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-
|
|
28
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.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-6fbc0dee.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-6fbc0dee.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-6fbc0dee.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-6fbc0dee.js';
|
|
34
34
|
//# sourceMappingURL=Pagination.d.ts.map
|
package/dist/Pagination.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["Pagination.js"],"names":[],"mappings":"
|
|
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"}
|
package/dist/Pagination.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { live } from 'lit/directives/live.js';
|
|
4
|
-
import {
|
|
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-04d0dfa2.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-
|
|
35
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.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-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-6fbc0dee.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-
|
|
13
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.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-6fbc0dee.js';
|
|
20
20
|
//# sourceMappingURL=RadioGroup.d.ts.map
|
package/dist/RadioGroup.js
CHANGED
package/dist/ScrollTop.d.ts
CHANGED
|
@@ -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-
|
|
18
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
19
19
|
//# sourceMappingURL=ScrollTop.d.ts.map
|
package/dist/ScrollTop.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollTop.d.ts","sourceRoot":"","sources":["ScrollTop.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ScrollTop.d.ts","sourceRoot":"","sources":["ScrollTop.js"],"names":[],"mappings":"AA6CA;;GAEG;AACH;IAwCE,2BAMC;IAtCO,qBAAwB;IAM5B;;;;OAIG;IACH,qBAA2E;IAC3E,kBAA+B;IAQjC,gBAAgB;IAChB,0BAAgC;IAkBlC,+CAgBC;CACF;gCAhHqD,0BAA0B"}
|
package/dist/ScrollTop.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { classMap } from 'lit/directives/class-map.js';
|
|
4
|
-
import {
|
|
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-04d0dfa2.js';
|
|
8
9
|
|
|
9
10
|
var css_248z = css`.scroll-top {
|
|
10
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-
|
|
134
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
135
135
|
import { nothing } from 'lit';
|
|
136
136
|
//# sourceMappingURL=Select.d.ts.map
|
package/dist/Select.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["Select.js"],"names":[],"mappings":"AA8PA;;;;;;;;;;;;;GAaG;AACH;IACE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmDC;IACD,wCAKC;IA4BC,cAAiB;IACjB,kBAAqB;IAErB,kBAAqB;IACrB,mBAAsB;IACtB,oBAAuB;IACvB,aAAe;IACf,cAAe;IACf,aAAc;IAEd,gBAAgB;IAChB,sBAAuB;IAEvB,gBAAgB;IAChB,2BAA6B;IAE7B,gBAAgB;IAChB,6BAAgC;IAEhC,gBAAgB;IAChB,sBAAuB;IAEvB;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,KAAmC,CAE1C;IACnC;;OAEG;IACH,kBAFU,OAAO,oBAAoB,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAE1B;IAEnC;;OAEG;IACH,UAFU,OAAO,oBAAoB,EAAE,GAAG,KAAgC,CAE/C;IAU7B,sCAqBC;IAED;;;;OAIG;IACH,8CA6BC;IACD;;;OAGG;IACH,4BAFW,aAAa,iBAcvB;IAED;;;OAGG;IACH,iCAFW,aAAa,QAQvB;IAED;;;OAGG;IACH,oBAFa,uBAAgB,CAO5B;IACD,wBAMC;IACD,yBAMC;IACD,8BAOC;IACD,wBAIC;IACD,uBAMC;IACD,qCAEC;IAED;;;;OAIG;IACH,4CAEC;IACD,uCAoBC;IAED;;OAEG;IACH,uCAIC;IACD,4EAaC;IACD,4EAeC;IACD,4DAmCC;IACD,+CAmDC;CACF;gCAlrBqD,0BAA0B;wBAC7C,KAAK"}
|
package/dist/Select.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-6fbc0dee.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
|
|
6
|
+
import { H as HasSlotController } from './hasSlotController-04d0dfa2.js';
|
|
7
|
+
import { LeuButton } from './Button.js';
|
|
7
8
|
import { LeuMenu } from './Menu.js';
|
|
8
9
|
import { LeuMenuItem } from './MenuItem.js';
|
|
9
10
|
import { LeuIcon } from './Icon.js';
|
package/dist/Spinner.d.ts
CHANGED
package/dist/Spinner.js
CHANGED
package/dist/Table.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export class LeuTable extends LeuElement {
|
|
|
40
40
|
get _data(): any[];
|
|
41
41
|
render(): import("lit-html").TemplateResult<1>;
|
|
42
42
|
}
|
|
43
|
-
import { L as LeuElement } from './LeuElement-
|
|
43
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
44
44
|
//# sourceMappingURL=Table.d.ts.map
|
package/dist/Table.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["Table.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Table.d.ts","sourceRoot":"","sources":["Table.js"],"names":[],"mappings":"AAqHA;;GAEG;AACH;IAGI,oBAAoB;IACpB,eAAiB;IACjB,oBAAoB;IACpB,YAAc;IACd,sBAAsB;IACtB,mBADW,OAAO,CACY;IAC9B,qBAAqB;IACrB,cADW,MAAM,CACO;IACxB,qBAAqB;IACrB,WADW,MAAM,CACI;IACrB,sBAAsB;IACtB,cADW,OAAO,CACO;IACzB,qBAAqB;IACrB,OADW,MAAM,CACA;IAEjB,gBAAgB;IAChB,qBAAwB;IACxB,gBAAgB;IAChB,sBAAyB;IACzB,gBAAgB;IAChB,8DAA6B;IAE7B,gBAAgB;IAChB,cAAc;IACd,gCAEE;IAKJ,oEAKC;IACD,qBAGC;IACD,gCAGC;IACD,8BAEC;IACD,8GAQC;IACD,4BAEC;IACD,0BAQC;IAFG,kBAAsB;IAG1B,sDAIC;IACD,0DAEC;IACD,sBAEC;IACD,yBAMC;IACD,mBAEC;IACD,+CA6DC;CACF;gCAnRqD,0BAA0B"}
|
package/dist/Table.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _defineProperty, L as LeuElement } from './LeuElement-
|
|
1
|
+
import { _ as _defineProperty, L as LeuElement } from './LeuElement-6fbc0dee.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';
|
|
@@ -6,8 +6,9 @@ import { createRef, ref } from 'lit/directives/ref.js';
|
|
|
6
6
|
import { LeuIcon } from './Icon.js';
|
|
7
7
|
import { LeuPagination } from './Pagination.js';
|
|
8
8
|
import 'lit/directives/live.js';
|
|
9
|
-
import './Button
|
|
9
|
+
import './Button.js';
|
|
10
10
|
import 'lit/directives/if-defined.js';
|
|
11
|
+
import './hasSlotController-04d0dfa2.js';
|
|
11
12
|
import './VisuallyHidden.js';
|
|
12
13
|
|
|
13
14
|
var css_248z = css`:host {
|
package/dist/VisuallyHidden.d.ts
CHANGED
|
@@ -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-
|
|
7
|
+
import { L as LeuElement } from './LeuElement-6fbc0dee.js';
|
|
8
8
|
//# sourceMappingURL=VisuallyHidden.d.ts.map
|
package/dist/VisuallyHidden.js
CHANGED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
export { HasSlotController as H };
|
|
2
|
+
/**
|
|
3
|
+
* A reactive controller that determines when slots exist.
|
|
4
|
+
*/
|
|
5
|
+
export type ReactiveController = import("lit").ReactiveController;
|
|
6
|
+
/**
|
|
7
|
+
* Thanks Shoelace!
|
|
8
|
+
* Source: https://github.com/shoelace-style/shoelace/blob/next/src/internal/slot.ts
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* A reactive controller that determines when slots exist.
|
|
12
|
+
* @typedef {import("lit").ReactiveController} ReactiveController
|
|
13
|
+
* @implements {ReactiveController}
|
|
14
|
+
*/
|
|
15
|
+
declare class HasSlotController implements ReactiveController {
|
|
16
|
+
constructor(host: any, slotNames: any);
|
|
17
|
+
host: any;
|
|
18
|
+
slotNames: any;
|
|
19
|
+
/**
|
|
20
|
+
* @private
|
|
21
|
+
* @returns {Boolean}
|
|
22
|
+
*/
|
|
23
|
+
private hasDefaultSlot;
|
|
24
|
+
/**
|
|
25
|
+
* @private
|
|
26
|
+
* @param {String} name
|
|
27
|
+
* @returns {Boolean}
|
|
28
|
+
*/
|
|
29
|
+
private hasNamedSlot;
|
|
30
|
+
/**
|
|
31
|
+
* @param {String} slotName
|
|
32
|
+
* @returns {Boolean}
|
|
33
|
+
*/
|
|
34
|
+
test(slotName: string): boolean;
|
|
35
|
+
hostConnected(): void;
|
|
36
|
+
hostDisconnected(): void;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=hasSlotController-04d0dfa2.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hasSlotController-04d0dfa2.d.ts","sourceRoot":"","sources":["hasSlotController-04d0dfa2.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"}
|