nve-designsystem 3.1.0 → 3.3.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/chunks/chunk.2PCBEMQZ.js +163 -226
- package/chunks/chunk.36O46B5H.js +15 -15
- package/chunks/chunk.4TUIT776.js +78 -96
- package/chunks/chunk.5JY5FUCG.js +965 -1245
- package/chunks/chunk.5P45LHIX.js +668 -96
- package/chunks/chunk.6CTB5ZDJ.js +107 -100
- package/chunks/chunk.B4BZKR24.js +29 -39
- package/chunks/chunk.D5YQDJ7X.js +122 -166
- package/chunks/chunk.EA437WHD.js +5 -5
- package/chunks/chunk.GI7VDIWX.js +14 -15
- package/chunks/chunk.GMYPQTFK.js +18 -20
- package/chunks/chunk.HVTXQL7M.js +191 -215
- package/chunks/chunk.IKV4VH3T.js +18 -16
- package/chunks/chunk.IVVHNXMC.js +26 -27
- package/chunks/chunk.JHOXTQXA.js +65 -74
- package/chunks/chunk.JXOKFADN.js +63 -90
- package/chunks/chunk.K7JGTRV7.js +24 -23
- package/chunks/chunk.KPLQLAWP.js +132 -147
- package/chunks/chunk.LD4M4QGE.js +61 -74
- package/chunks/chunk.MSKEYBDI.js +53 -71
- package/chunks/chunk.NYIIDP5N.js +39 -45
- package/chunks/chunk.RWUUFNUL.js +91 -114
- package/chunks/chunk.SAPQLUO4.js +249 -228
- package/chunks/chunk.SI4ACBFK.js +139 -5
- package/chunks/chunk.TP2GB2HO.js +361 -460
- package/chunks/chunk.UDWRA64J.js +185 -223
- package/chunks/chunk.URTPIBTY.js +119 -151
- package/chunks/chunk.VESXC477.js +63 -66
- package/chunks/chunk.XA43ZQPC.js +198 -313
- package/chunks/chunk.XQ2OKYYA.js +25 -26
- package/chunks/chunk.XZNBUGX7.js +6 -6
- package/chunks/chunk.YHLNUJ7P.js +93 -116
- package/chunks/chunk.ZH2AND3P.js +340 -399
- package/chunks/chunk.ZL53POKZ.js +61 -156
- package/chunks/chunk.js +20 -0
- package/chunks/class-map.js +49 -45
- package/chunks/decorate.js +105 -0
- package/chunks/directive-helpers.js +5 -7
- package/chunks/if-defined.js +5 -5
- package/chunks/lit.js +525 -0
- package/chunks/live.js +24 -24
- package/chunks/nve-alert.component.js +163 -0
- package/chunks/nve-carousel-item.component.js +36 -0
- package/chunks/nve-carousel.component.js +41 -0
- package/chunks/nve-checkbox-group.component.js +114 -0
- package/chunks/nve-checkbox.component.js +28 -0
- package/chunks/nve-dialog.component.js +39 -0
- package/chunks/nve-divider.component.js +23 -0
- package/chunks/nve-drawer.component.js +40 -0
- package/chunks/nve-dropdown.component.js +83 -0
- package/chunks/nve-input.component.js +80 -0
- package/chunks/nve-label.component.js +89 -0
- package/chunks/nve-menu-item.component.js +35 -0
- package/chunks/nve-menu.component.js +17 -0
- package/chunks/nve-option.component.js +27 -0
- package/chunks/nve-popup.component.js +15 -0
- package/chunks/nve-radio-button.component.js +20 -0
- package/chunks/nve-radio-group.component.js +78 -0
- package/chunks/nve-radio.component.js +18 -0
- package/chunks/nve-select.component.js +58 -0
- package/chunks/nve-skeleton.component.js +20 -0
- package/chunks/nve-spinner.component.js +23 -0
- package/chunks/nve-tooltip.component.js +20 -0
- package/chunks/nve-warning-level.component.js +57 -0
- package/chunks/ref.js +75 -84
- package/chunks/shoelace.js +10006 -0
- package/chunks/static-html.js +27 -0
- package/chunks/unsafe-html.js +24 -20
- package/chunks/updateInvalidProperty.js +7 -7
- package/chunks/watch.js +20 -20
- package/components/nve-accordion/nve-accordion.component.js +24 -30
- package/components/nve-accordion-item/nve-accordion-item.component.js +30 -64
- package/components/nve-accordion-item/nve-accordion-item.styles.js +5 -5
- package/components/nve-alert/nve-alert.component.js +2 -227
- package/components/nve-alert/nve-alert.styles.js +45 -27
- package/components/nve-badge/nve-badge.component.js +41 -45
- package/components/nve-badge/nve-badge.styles.js +33 -31
- package/components/nve-button/nve-button.component.d.ts +110 -10
- package/components/nve-button/nve-button.component.js +146 -39
- package/components/nve-button/nve-button.styles.js +214 -157
- package/components/nve-carousel/nve-carousel.component.js +2 -47
- package/components/nve-carousel/nve-carousel.styles.js +6 -6
- package/components/nve-carousel-item/nve-carousel-item.component.js +2 -40
- package/components/nve-carousel-item/nve-carousel-item.styles.js +5 -5
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.component.js +44 -54
- package/components/nve-carousel-thumbnail/nve-carousel-thumbnail.styles.js +5 -5
- package/components/nve-checkbox/nve-checkbox.component.js +2 -34
- package/components/nve-checkbox/nve-checkbox.styles.js +7 -7
- package/components/nve-checkbox-group/nve-checkbox-group.component.js +2 -152
- package/components/nve-checkbox-group/nve-checkbox-group.styles.js +5 -5
- package/components/nve-combobox/nve-combobox.component.js +222 -440
- package/components/nve-combobox/nve-combobox.styles.js +6 -6
- package/components/nve-darkmode-switch/nve-darkmode-switch.component.js +32 -38
- package/components/nve-dialog/nve-dialog-styles.js +6 -6
- package/components/nve-dialog/nve-dialog.component.js +2 -54
- package/components/nve-divider/nve-divider.component.js +2 -30
- package/components/nve-drawer/nve-drawer.component.js +2 -44
- package/components/nve-drawer/nve-drawer.styles.js +6 -6
- package/components/nve-dropdown/nve-dropdown.component.js +2 -79
- package/components/nve-dropdown/nve-dropdown.styles.js +5 -5
- package/components/nve-heading/nve-heading.component.d.ts +29 -0
- package/components/nve-heading/nve-heading.component.js +45 -0
- package/components/nve-heading/nve-heading.styles.d.ts +2 -0
- package/components/nve-heading/nve-heading.styles.js +41 -0
- package/components/nve-icon/nve-icon.component.js +145 -164
- package/components/nve-icon/nve-icon.styles.js +11 -6
- package/components/nve-icon/offline-icons.js +16 -13
- package/components/nve-input/nve-input.component.js +2 -100
- package/components/nve-input/nve-input.styles.js +5 -5
- package/components/nve-label/nve-label.component.js +2 -115
- package/components/nve-label/nve-label.styles.js +5 -5
- package/components/nve-link-card/nve-link-card.component.d.ts +5 -2
- package/components/nve-link-card/nve-link-card.component.js +44 -80
- package/components/nve-link-card/nve-link-card.styles.js +71 -66
- package/components/nve-menu/nve-menu.component.js +2 -22
- package/components/nve-menu/nve-menu.styles.js +5 -5
- package/components/nve-menu-item/nve-menu-item.component.js +2 -43
- package/components/nve-menu-item/nve-menu-item.styles.js +7 -7
- package/components/nve-message-card/nve-message-card.component.js +61 -91
- package/components/nve-message-card/nve-message-card.styles.js +24 -27
- package/components/nve-navigation-card/nve-navigation-card.component.d.ts +52 -0
- package/components/nve-navigation-card/nve-navigation-card.component.js +60 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.d.ts +2 -0
- package/components/nve-navigation-card/nve-navigation-card.styles.js +112 -0
- package/components/nve-option/nve-option.component.js +2 -41
- package/components/nve-option/nve-option.styles.js +5 -5
- package/components/nve-paragraph/nve-paragraph.component.d.ts +26 -0
- package/components/nve-paragraph/nve-paragraph.component.js +26 -0
- package/components/nve-paragraph/nve-paragraph.styles.d.ts +2 -0
- package/components/nve-paragraph/nve-paragraph.styles.js +105 -0
- package/components/nve-popup/nve-popup.component.js +2 -22
- package/components/nve-radio/nve-radio.component.js +2 -23
- package/components/nve-radio/nve-radio.styles.js +5 -5
- package/components/nve-radio-button/nve-radio-button.component.js +2 -25
- package/components/nve-radio-button/nve-radio-button.styles.js +5 -5
- package/components/nve-radio-group/nve-radio-group.component.js +2 -119
- package/components/nve-radio-group/nve-radio-group.styles.js +5 -5
- package/components/nve-relative-time/nve-relative-time.component.js +21 -56
- package/components/nve-relative-time/nve-relative-time.styles.js +5 -5
- package/components/nve-select/nve-select.component.js +2 -80
- package/components/nve-select/nve-select.styles.js +6 -6
- package/components/nve-skeleton/nve-skeleton.component.js +2 -27
- package/components/nve-skeleton/nve-skeleton.styles.js +5 -5
- package/components/nve-spinner/nve-spinner.component.js +2 -31
- package/components/nve-stepper/nve-step/nve-step.component.js +113 -173
- package/components/nve-stepper/nve-step/nve-step.styles.js +12 -12
- package/components/nve-stepper/nve-stepper-mobile.component.js +37 -49
- package/components/nve-stepper/nve-stepper-mobile.styles.js +7 -7
- package/components/nve-stepper/nve-stepper.component.js +94 -139
- package/components/nve-stepper/nve-stepper.styles.js +5 -5
- package/components/nve-switch/nve-switch.component.js +75 -107
- package/components/nve-switch/nve-switch.styles.js +7 -7
- package/components/nve-tab/nve-tab.component.js +30 -42
- package/components/nve-tab/nve-tab.styles.js +7 -7
- package/components/nve-tab-group/nve-tab-group.component.js +180 -260
- package/components/nve-tab-group/nve-tab-group.styles.js +5 -5
- package/components/nve-tab-panel/nve-tab-panel.component.js +21 -31
- package/components/nve-tab-panel/nve-tab-panel.styles.js +5 -5
- package/components/nve-tag/nve-tag.component.d.ts +3 -3
- package/components/nve-tag/nve-tag.component.js +71 -72
- package/components/nve-tag/nve-tag.styles.js +23 -22
- package/components/nve-textarea/nve-textarea.component.d.ts +3 -1
- package/components/nve-textarea/nve-textarea.component.js +112 -173
- package/components/nve-textarea/nve-textarea.styles.js +10 -5
- package/components/nve-tooltip/nve-tooltip.component.js +2 -30
- package/components/nve-tooltip/nve-tooltip.styles.js +5 -5
- package/components/nve-warning-level/nve-warning-level.component.js +2 -78
- package/components/nve-warning-level/nve-warning-level.styles.js +7 -7
- package/css/global.css +13 -55
- package/css/nve.css +1048 -393
- package/css/nve_dark.css +406 -305
- package/css/rme.css +1050 -395
- package/css/rme_dark.css +408 -307
- package/css/shoelace-styles.css +539 -0
- package/css/varsom.css +1046 -391
- package/css/varsom_dark.css +404 -303
- package/custom-elements.json +2905 -12389
- package/fonts/LICENSE.txt +37 -0
- package/fonts/SourceSans3-VariableFont_wght.woff2 +0 -0
- package/interfaces/NveComponent.interface.js +0 -1
- package/nve-designsystem.d.ts +5 -0
- package/nve-designsystem.js +46 -86
- package/package.json +26 -8
- package/registerIcons/systemLibraryCustomization.js +23 -91
- package/vite-env.d.js +0 -1
- package/chunks/chunk.3RPBFEDE.js +0 -162
- package/chunks/chunk.JCXLDPQF.js +0 -225
- package/chunks/chunk.JQBT7BOV.js +0 -8446
- package/chunks/chunk.MAQXLKQ7.js +0 -598
- package/chunks/lit-element.js +0 -508
- package/chunks/property.js +0 -37
- package/chunks/query.js +0 -13
- package/chunks/state.js +0 -7
- package/chunks/static.js +0 -26
- package/nve-designsystem.css +0 -1
- package/vscode.css-custom-data.json +0 -621
- package/vscode.html-custom-data.json +0 -2354
package/chunks/chunk.JHOXTQXA.js
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { a as e, u as t } from "./lit.js";
|
|
2
|
+
import { r as n } from "./decorate.js";
|
|
3
|
+
import { n as r, r as i, t as a } from "./chunk.4TUIT776.js";
|
|
4
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.VVA35HTY.js
|
|
5
|
+
var o = t`
|
|
5
6
|
:host {
|
|
6
7
|
display: block;
|
|
7
8
|
position: relative;
|
|
@@ -16,66 +17,58 @@ var f = a`
|
|
|
16
17
|
::slotted(sl-divider) {
|
|
17
18
|
--spacing: var(--sl-spacing-x-small);
|
|
18
19
|
}
|
|
19
|
-
`,
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
*/
|
|
72
|
-
setCurrentItem(e) {
|
|
73
|
-
this.getAllItems().forEach((l) => {
|
|
74
|
-
l.setAttribute("tabindex", l === e ? "0" : "-1");
|
|
75
|
-
});
|
|
76
|
-
}
|
|
77
|
-
render() {
|
|
78
|
-
return u`
|
|
20
|
+
`, s = class extends a {
|
|
21
|
+
connectedCallback() {
|
|
22
|
+
super.connectedCallback(), this.setAttribute("role", "menu");
|
|
23
|
+
}
|
|
24
|
+
handleClick(e) {
|
|
25
|
+
let t = ["menuitem", "menuitemcheckbox"], n = e.composedPath(), r = n.find((e) => t.includes((e?.getAttribute)?.call(e, "role") || ""));
|
|
26
|
+
if (!r || n.find((e) => (e?.getAttribute)?.call(e, "role") === "menu") !== this) return;
|
|
27
|
+
let i = r;
|
|
28
|
+
i.type === "checkbox" && (i.checked = !i.checked), this.emit("sl-select", { detail: { item: i } });
|
|
29
|
+
}
|
|
30
|
+
handleKeyDown(e) {
|
|
31
|
+
if (e.key === "Enter" || e.key === " ") {
|
|
32
|
+
let t = this.getCurrentItem();
|
|
33
|
+
e.preventDefault(), e.stopPropagation(), t?.click();
|
|
34
|
+
} else if ([
|
|
35
|
+
"ArrowDown",
|
|
36
|
+
"ArrowUp",
|
|
37
|
+
"Home",
|
|
38
|
+
"End"
|
|
39
|
+
].includes(e.key)) {
|
|
40
|
+
let t = this.getAllItems(), n = this.getCurrentItem(), r = n ? t.indexOf(n) : 0;
|
|
41
|
+
t.length > 0 && (e.preventDefault(), e.stopPropagation(), e.key === "ArrowDown" ? r++ : e.key === "ArrowUp" ? r-- : e.key === "Home" ? r = 0 : e.key === "End" && (r = t.length - 1), r < 0 && (r = t.length - 1), r > t.length - 1 && (r = 0), this.setCurrentItem(t[r]), t[r].focus());
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
handleMouseDown(e) {
|
|
45
|
+
let t = e.target;
|
|
46
|
+
this.isMenuItem(t) && this.setCurrentItem(t);
|
|
47
|
+
}
|
|
48
|
+
handleSlotChange() {
|
|
49
|
+
let e = this.getAllItems();
|
|
50
|
+
e.length > 0 && this.setCurrentItem(e[0]);
|
|
51
|
+
}
|
|
52
|
+
isMenuItem(e) {
|
|
53
|
+
return e.tagName.toLowerCase() === "sl-menu-item" || [
|
|
54
|
+
"menuitem",
|
|
55
|
+
"menuitemcheckbox",
|
|
56
|
+
"menuitemradio"
|
|
57
|
+
].includes(e.getAttribute("role") ?? "");
|
|
58
|
+
}
|
|
59
|
+
getAllItems() {
|
|
60
|
+
return [...this.defaultSlot.assignedElements({ flatten: !0 })].filter((e) => !(e.inert || !this.isMenuItem(e)));
|
|
61
|
+
}
|
|
62
|
+
getCurrentItem() {
|
|
63
|
+
return this.getAllItems().find((e) => e.getAttribute("tabindex") === "0");
|
|
64
|
+
}
|
|
65
|
+
setCurrentItem(e) {
|
|
66
|
+
this.getAllItems().forEach((t) => {
|
|
67
|
+
t.setAttribute("tabindex", t === e ? "0" : "-1");
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
render() {
|
|
71
|
+
return e`
|
|
79
72
|
<slot
|
|
80
73
|
@slotchange=${this.handleSlotChange}
|
|
81
74
|
@click=${this.handleClick}
|
|
@@ -83,14 +76,12 @@ var f = a`
|
|
|
83
76
|
@mousedown=${this.handleMouseDown}
|
|
84
77
|
></slot>
|
|
85
78
|
`;
|
|
86
|
-
|
|
87
|
-
};
|
|
88
|
-
i.styles = [c, f];
|
|
89
|
-
d([
|
|
90
|
-
h("slot")
|
|
91
|
-
], i.prototype, "defaultSlot", 2);
|
|
92
|
-
var I = i;
|
|
93
|
-
i.define("sl-menu");
|
|
94
|
-
export {
|
|
95
|
-
I as m
|
|
79
|
+
}
|
|
96
80
|
};
|
|
81
|
+
s.styles = [r, o], i([n("slot")], s.prototype, "defaultSlot", 2);
|
|
82
|
+
//#endregion
|
|
83
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.JHOXTQXA.js
|
|
84
|
+
var c = s;
|
|
85
|
+
s.define("sl-menu");
|
|
86
|
+
//#endregion
|
|
87
|
+
export { c as t };
|
package/chunks/chunk.JXOKFADN.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var v = r`
|
|
1
|
+
import { a as e, u as t } from "./lit.js";
|
|
2
|
+
import { a as n, o as r, r as i } from "./decorate.js";
|
|
3
|
+
import { n as a, r as o, t as s } from "./chunk.4TUIT776.js";
|
|
4
|
+
import { t as c } from "./chunk.YHLNUJ7P.js";
|
|
5
|
+
import { t as l } from "./chunk.GMYPQTFK.js";
|
|
6
|
+
import { t as u } from "./class-map.js";
|
|
7
|
+
import { t as d } from "./chunk.6CTB5ZDJ.js";
|
|
8
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.FXXKMG2P.js
|
|
9
|
+
var f = t`
|
|
11
10
|
:host {
|
|
12
11
|
display: block;
|
|
13
12
|
user-select: none;
|
|
@@ -91,53 +90,51 @@ var v = r`
|
|
|
91
90
|
outline-offset: -1px;
|
|
92
91
|
}
|
|
93
92
|
}
|
|
94
|
-
`,
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
render() {
|
|
131
|
-
return c`
|
|
93
|
+
`, p = class extends s {
|
|
94
|
+
constructor() {
|
|
95
|
+
super(...arguments), this.localize = new d(this), this.isInitialized = !1, this.current = !1, this.selected = !1, this.hasHover = !1, this.value = "", this.disabled = !1;
|
|
96
|
+
}
|
|
97
|
+
connectedCallback() {
|
|
98
|
+
super.connectedCallback(), this.setAttribute("role", "option"), this.setAttribute("aria-selected", "false");
|
|
99
|
+
}
|
|
100
|
+
handleDefaultSlotChange() {
|
|
101
|
+
this.isInitialized ? customElements.whenDefined("sl-select").then(() => {
|
|
102
|
+
let e = this.closest("sl-select");
|
|
103
|
+
e && e.handleDefaultSlotChange();
|
|
104
|
+
}) : this.isInitialized = !0;
|
|
105
|
+
}
|
|
106
|
+
handleMouseEnter() {
|
|
107
|
+
this.hasHover = !0;
|
|
108
|
+
}
|
|
109
|
+
handleMouseLeave() {
|
|
110
|
+
this.hasHover = !1;
|
|
111
|
+
}
|
|
112
|
+
handleDisabledChange() {
|
|
113
|
+
this.setAttribute("aria-disabled", this.disabled ? "true" : "false");
|
|
114
|
+
}
|
|
115
|
+
handleSelectedChange() {
|
|
116
|
+
this.setAttribute("aria-selected", this.selected ? "true" : "false");
|
|
117
|
+
}
|
|
118
|
+
handleValueChange() {
|
|
119
|
+
typeof this.value != "string" && (this.value = String(this.value)), this.value.includes(" ") && (console.error("Option values cannot include a space. All spaces have been replaced with underscores.", this), this.value = this.value.replace(/ /g, "_"));
|
|
120
|
+
}
|
|
121
|
+
getTextLabel() {
|
|
122
|
+
let e = this.childNodes, t = "";
|
|
123
|
+
return [...e].forEach((e) => {
|
|
124
|
+
e.nodeType === Node.ELEMENT_NODE && (e.hasAttribute("slot") || (t += e.textContent)), e.nodeType === Node.TEXT_NODE && (t += e.textContent);
|
|
125
|
+
}), t.trim();
|
|
126
|
+
}
|
|
127
|
+
render() {
|
|
128
|
+
return e`
|
|
132
129
|
<div
|
|
133
130
|
part="base"
|
|
134
|
-
class=${
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
131
|
+
class=${u({
|
|
132
|
+
option: !0,
|
|
133
|
+
"option--current": this.current,
|
|
134
|
+
"option--disabled": this.disabled,
|
|
135
|
+
"option--selected": this.selected,
|
|
136
|
+
"option--hover": this.hasHover
|
|
137
|
+
})}
|
|
141
138
|
@mouseenter=${this.handleMouseEnter}
|
|
142
139
|
@mouseleave=${this.handleMouseLeave}
|
|
143
140
|
>
|
|
@@ -147,39 +144,15 @@ var v = r`
|
|
|
147
144
|
<slot part="suffix" name="suffix" class="option__suffix"></slot>
|
|
148
145
|
</div>
|
|
149
146
|
`;
|
|
150
|
-
|
|
151
|
-
};
|
|
152
|
-
e.styles = [h, v];
|
|
153
|
-
e.dependencies = { "sl-icon": d };
|
|
154
|
-
t([
|
|
155
|
-
m(".option__label")
|
|
156
|
-
], e.prototype, "defaultSlot", 2);
|
|
157
|
-
t([
|
|
158
|
-
a()
|
|
159
|
-
], e.prototype, "current", 2);
|
|
160
|
-
t([
|
|
161
|
-
a()
|
|
162
|
-
], e.prototype, "selected", 2);
|
|
163
|
-
t([
|
|
164
|
-
a()
|
|
165
|
-
], e.prototype, "hasHover", 2);
|
|
166
|
-
t([
|
|
167
|
-
n({ reflect: !0 })
|
|
168
|
-
], e.prototype, "value", 2);
|
|
169
|
-
t([
|
|
170
|
-
n({ type: Boolean, reflect: !0 })
|
|
171
|
-
], e.prototype, "disabled", 2);
|
|
172
|
-
t([
|
|
173
|
-
i("disabled")
|
|
174
|
-
], e.prototype, "handleDisabledChange", 1);
|
|
175
|
-
t([
|
|
176
|
-
i("selected")
|
|
177
|
-
], e.prototype, "handleSelectedChange", 1);
|
|
178
|
-
t([
|
|
179
|
-
i("value")
|
|
180
|
-
], e.prototype, "handleValueChange", 1);
|
|
181
|
-
var w = e;
|
|
182
|
-
e.define("sl-option");
|
|
183
|
-
export {
|
|
184
|
-
w as o
|
|
147
|
+
}
|
|
185
148
|
};
|
|
149
|
+
p.styles = [a, f], p.dependencies = { "sl-icon": c }, o([i(".option__label")], p.prototype, "defaultSlot", 2), o([n()], p.prototype, "current", 2), o([n()], p.prototype, "selected", 2), o([n()], p.prototype, "hasHover", 2), o([r({ reflect: !0 })], p.prototype, "value", 2), o([r({
|
|
150
|
+
type: Boolean,
|
|
151
|
+
reflect: !0
|
|
152
|
+
})], p.prototype, "disabled", 2), o([l("disabled")], p.prototype, "handleDisabledChange", 1), o([l("selected")], p.prototype, "handleSelectedChange", 1), o([l("value")], p.prototype, "handleValueChange", 1);
|
|
153
|
+
//#endregion
|
|
154
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.JXOKFADN.js
|
|
155
|
+
var m = p;
|
|
156
|
+
p.define("sl-option");
|
|
157
|
+
//#endregion
|
|
158
|
+
export { m as t };
|
package/chunks/chunk.K7JGTRV7.js
CHANGED
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
//#region .pnpm/@shoelace-style+shoelace@2.20.1_@floating-ui+utils@0.2.11_@types+react@19.2.15/node_modules/@shoelace-style/shoelace/dist/chunks/chunk.K7JGTRV7.js
|
|
2
|
+
var e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new WeakMap();
|
|
3
|
+
function n(e) {
|
|
4
|
+
return e ?? {
|
|
5
|
+
keyframes: [],
|
|
6
|
+
options: { duration: 0 }
|
|
7
|
+
};
|
|
4
8
|
}
|
|
5
|
-
function
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
function r(e, t) {
|
|
10
|
+
return t.toLowerCase() === "rtl" ? {
|
|
11
|
+
keyframes: e.rtlKeyframes || e.keyframes,
|
|
12
|
+
options: e.options
|
|
13
|
+
} : e;
|
|
10
14
|
}
|
|
11
|
-
function
|
|
12
|
-
|
|
15
|
+
function i(t, r) {
|
|
16
|
+
e.set(t, n(r));
|
|
13
17
|
}
|
|
14
|
-
function
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
};
|
|
18
|
+
function a(n, i, a) {
|
|
19
|
+
let o = t.get(n);
|
|
20
|
+
if (o?.[i]) return r(o[i], a.dir);
|
|
21
|
+
let s = e.get(i);
|
|
22
|
+
return s ? r(s, a.dir) : {
|
|
23
|
+
keyframes: [],
|
|
24
|
+
options: { duration: 0 }
|
|
25
|
+
};
|
|
23
26
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
a as s
|
|
27
|
-
};
|
|
27
|
+
//#endregion
|
|
28
|
+
export { i as n, a as t };
|