@solid-design-system/components 4.0.0-next.6 → 4.0.0-next.8
Sign up to get free protection for your applications and to get access to all the features.
- package/cdn/chunks/chunk.AA7WA27A.js +11 -0
- package/cdn/chunks/chunk.OVVNTNS7.js +11 -0
- package/cdn/components/combobox/combobox.d.ts +1 -0
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/select/select.d.ts +1 -0
- package/cdn/components/select/select.js +1 -1
- package/cdn/custom-elements.json +45 -1
- package/cdn/solid-components.bundle.js +8 -8
- package/cdn/solid-components.iife.js +9 -9
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +58 -48
- package/cdn/web-types.json +166 -146
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.24SF73MY.js +1 -1
- package/cdn-versioned/chunks/chunk.2IZXJHH7.js +1 -1
- package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -1
- package/cdn-versioned/chunks/chunk.4HIKTDIM.js +3 -3
- package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
- package/cdn-versioned/chunks/chunk.5FM4F3Y4.js +1 -1
- package/cdn-versioned/chunks/chunk.5ZDWEJDB.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6JBTCFHE.js +2 -2
- package/cdn-versioned/chunks/chunk.7M7VCE7R.js +1 -1
- package/cdn-versioned/chunks/chunk.7RJ3O2FV.js +1 -1
- package/cdn-versioned/chunks/chunk.AA7WA27A.js +11 -0
- package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DMLGBWCL.js +1 -1
- package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
- package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
- package/cdn-versioned/chunks/chunk.F7J6HN76.js +1 -1
- package/cdn-versioned/chunks/chunk.FD54463O.js +1 -1
- package/cdn-versioned/chunks/chunk.FFNTXFC3.js +1 -1
- package/cdn-versioned/chunks/chunk.FX3ED655.js +1 -1
- package/cdn-versioned/chunks/chunk.GOVNZSCO.js +1 -1
- package/cdn-versioned/chunks/chunk.GQSLHWQC.js +1 -1
- package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
- package/cdn-versioned/chunks/chunk.ITRQVXFY.js +1 -1
- package/cdn-versioned/chunks/chunk.IZKUI5WK.js +1 -1
- package/cdn-versioned/chunks/chunk.KMLMMBY4.js +1 -1
- package/cdn-versioned/chunks/chunk.LLXTYJXF.js +1 -1
- package/cdn-versioned/chunks/chunk.LZEFLOSA.js +1 -1
- package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/chunk.MX22EZXK.js +1 -1
- package/cdn-versioned/chunks/chunk.ND7BT52X.js +1 -1
- package/cdn-versioned/chunks/chunk.NUB5WHGD.js +1 -1
- package/cdn-versioned/chunks/chunk.O4UXOQEI.js +1 -1
- package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
- package/cdn-versioned/chunks/chunk.OVVNTNS7.js +11 -0
- package/cdn-versioned/chunks/chunk.PBPFKJKV.js +1 -1
- package/cdn-versioned/chunks/chunk.QFNCQQ6S.js +1 -1
- package/cdn-versioned/chunks/chunk.QNZWJACC.js +2 -2
- package/cdn-versioned/chunks/chunk.R354E6ZD.js +1 -1
- package/cdn-versioned/chunks/chunk.TA7CZCP3.js +1 -1
- package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -1
- package/cdn-versioned/chunks/chunk.UBFU6D5B.js +1 -1
- package/cdn-versioned/chunks/chunk.URB2K7JQ.js +1 -1
- package/cdn-versioned/chunks/chunk.VNKUGTKM.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WENTMXB2.js +1 -1
- package/cdn-versioned/chunks/chunk.WQAPHFVM.js +1 -1
- package/cdn-versioned/chunks/chunk.YF5WEC4R.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFA2VPUT.js +1 -1
- package/cdn-versioned/chunks/chunk.ZRIABVVM.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +5 -4
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +5 -4
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +246 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +17 -17
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +18 -18
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +135 -125
- package/cdn-versioned/web-types.json +296 -276
- package/dist/chunks/{chunk.EFEBQQHC.js → chunk.4XDHTC3C.js} +29 -18
- package/dist/chunks/{chunk.I3PY3VYP.js → chunk.O3ZFWYJW.js} +15 -5
- package/dist/components/combobox/combobox.d.ts +1 -0
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/select/select.d.ts +1 -0
- package/dist/components/select/select.js +1 -1
- package/dist/custom-elements.json +45 -1
- package/dist/solid-components.js +2 -2
- package/dist/vscode.html-custom-data.json +58 -48
- package/dist/web-types.json +166 -146
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.2IBVAXOX.js +1 -1
- package/dist-versioned/chunks/chunk.3IT4HBTI.js +1 -1
- package/dist-versioned/chunks/chunk.3LGDUVS4.js +2 -2
- package/dist-versioned/chunks/chunk.4JZQQD4L.js +3 -3
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
- package/dist-versioned/chunks/{chunk.EFEBQQHC.js → chunk.4XDHTC3C.js} +53 -42
- package/dist-versioned/chunks/chunk.65BWRJEA.js +5 -5
- package/dist-versioned/chunks/chunk.6CUAQSFA.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.727ERQ4F.js +2 -2
- package/dist-versioned/chunks/chunk.743FPQRN.js +2 -2
- package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- package/dist-versioned/chunks/chunk.BG3M5FUP.js +13 -13
- package/dist-versioned/chunks/chunk.BVC5FY4L.js +13 -13
- package/dist-versioned/chunks/chunk.BXB5WF23.js +5 -5
- package/dist-versioned/chunks/chunk.D6JZ4IKM.js +1 -1
- package/dist-versioned/chunks/chunk.DQPVSTUQ.js +3 -3
- package/dist-versioned/chunks/chunk.EKFRFDTB.js +5 -5
- package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
- package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
- package/dist-versioned/chunks/chunk.IN3GJ5QL.js +3 -3
- package/dist-versioned/chunks/chunk.J2XBUIBC.js +2 -2
- package/dist-versioned/chunks/chunk.J7MMF6WJ.js +2 -2
- package/dist-versioned/chunks/chunk.KTJRTRDJ.js +5 -5
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.MTSAWJLV.js +2 -2
- package/dist-versioned/chunks/chunk.NM6QP6RJ.js +2 -2
- package/dist-versioned/chunks/{chunk.I3PY3VYP.js → chunk.O3ZFWYJW.js} +41 -31
- package/dist-versioned/chunks/chunk.PDRECIYA.js +1 -1
- package/dist-versioned/chunks/chunk.PGZ5AWZ2.js +9 -9
- package/dist-versioned/chunks/chunk.PIR4YJUS.js +2 -2
- package/dist-versioned/chunks/chunk.QAZYUCBK.js +6 -6
- package/dist-versioned/chunks/chunk.QCICV36Z.js +6 -6
- package/dist-versioned/chunks/chunk.QP3SM2LZ.js +3 -3
- package/dist-versioned/chunks/chunk.R4BETATX.js +1 -1
- package/dist-versioned/chunks/chunk.RNSJAVQE.js +1 -1
- package/dist-versioned/chunks/chunk.RZRTIYXA.js +1 -1
- package/dist-versioned/chunks/chunk.SPBPHTSS.js +2 -2
- package/dist-versioned/chunks/chunk.SSH6ATRK.js +2 -2
- package/dist-versioned/chunks/chunk.TWXYFPBS.js +2 -2
- package/dist-versioned/chunks/chunk.U5NFPAOX.js +2 -2
- package/dist-versioned/chunks/chunk.U6RY25TF.js +2 -2
- package/dist-versioned/chunks/chunk.UC5E3AEF.js +1 -1
- package/dist-versioned/chunks/chunk.UDZYWRPT.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V7TQ6VJU.js +1 -1
- package/dist-versioned/chunks/chunk.VHGHICFG.js +2 -2
- package/dist-versioned/chunks/chunk.XVFJS7VS.js +5 -5
- package/dist-versioned/chunks/chunk.Z2UY62T2.js +1 -1
- package/dist-versioned/chunks/chunk.ZGPGFEVP.js +5 -5
- package/dist-versioned/chunks/chunk.ZWJI7SLE.js +11 -11
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +5 -4
- package/dist-versioned/components/combobox/combobox.js +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +5 -4
- package/dist-versioned/components/select/select.js +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +246 -202
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +135 -125
- package/dist-versioned/web-types.json +296 -276
- package/package.json +2 -2
- package/cdn/chunks/chunk.DEX5VJGX.js +0 -11
- package/cdn/chunks/chunk.ROBLMI7Q.js +0 -11
- package/cdn-versioned/chunks/chunk.DEX5VJGX.js +0 -11
- package/cdn-versioned/chunks/chunk.ROBLMI7Q.js +0 -11
@@ -53,7 +53,7 @@ var SdSelect = class extends SolidElement {
|
|
53
53
|
constructor() {
|
54
54
|
super(...arguments);
|
55
55
|
this.formControlController = new FormControlController(this, {
|
56
|
-
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-
|
56
|
+
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-8-input"]
|
57
57
|
});
|
58
58
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
59
59
|
this.localize = new LocalizeController(this);
|
@@ -70,7 +70,8 @@ var SdSelect = class extends SolidElement {
|
|
70
70
|
this.size = "lg";
|
71
71
|
this.placement = "bottom";
|
72
72
|
this.label = "";
|
73
|
-
this.placeholder =
|
73
|
+
this.placeholder = "";
|
74
|
+
this.maxOptionsTagLabel = this.localize.term("tagsSelected");
|
74
75
|
this.disabled = false;
|
75
76
|
this.helpText = "";
|
76
77
|
this.currentPlacement = this.placement;
|
@@ -85,11 +86,11 @@ var SdSelect = class extends SolidElement {
|
|
85
86
|
this.styleOnValid = false;
|
86
87
|
this.hoist = false;
|
87
88
|
this.getTag = (option) => {
|
88
|
-
return html`<sd-4-0-0-next-
|
89
|
+
return html`<sd-4-0-0-next-8-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
89
90
|
base:tag__base,
|
90
91
|
content:tag__content,
|
91
92
|
removable-indicator:tag__removable-indicator,
|
92
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-
|
93
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-8-tag>`;
|
93
94
|
};
|
94
95
|
this.handleDocumentFocusIn = (event) => {
|
95
96
|
const path = event.composedPath();
|
@@ -100,7 +101,7 @@ var SdSelect = class extends SolidElement {
|
|
100
101
|
this.handleDocumentKeyDown = (event) => {
|
101
102
|
const target = event.target;
|
102
103
|
const isClearButton = target.closest(".select__clear") !== null;
|
103
|
-
const isIconButton = target.closest("sd-4-0-0-next-
|
104
|
+
const isIconButton = target.closest("sd-4-0-0-next-8-icon-button") !== null;
|
104
105
|
if (isClearButton || isIconButton) {
|
105
106
|
return;
|
106
107
|
}
|
@@ -231,10 +232,11 @@ var SdSelect = class extends SolidElement {
|
|
231
232
|
handleTagKeyDown(event, option) {
|
232
233
|
var _a, _b, _c;
|
233
234
|
if (event.key === "Backspace" && this.multiple) {
|
235
|
+
event.preventDefault();
|
234
236
|
event.stopPropagation();
|
235
237
|
const tagParent = (_a = event.currentTarget) == null ? void 0 : _a.parentElement;
|
236
|
-
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-0-0-next-
|
237
|
-
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-0-0-next-
|
238
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-0-0-next-8-tag");
|
239
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-0-0-next-8-tag");
|
238
240
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
239
241
|
this.updateComplete.then(() => {
|
240
242
|
if (nextTag) {
|
@@ -249,11 +251,12 @@ var SdSelect = class extends SolidElement {
|
|
249
251
|
}
|
250
252
|
handleTagMaxOptionsKeyDown(event) {
|
251
253
|
if (event.key === "Backspace" && this.multiple) {
|
254
|
+
event.preventDefault();
|
252
255
|
event.stopPropagation();
|
253
256
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
254
257
|
this.updateComplete.then(() => {
|
255
258
|
var _a;
|
256
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-0-0-next-
|
259
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-0-0-next-8-tag");
|
257
260
|
if (tags && tags.length > 0) {
|
258
261
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
259
262
|
} else {
|
@@ -298,7 +301,7 @@ var SdSelect = class extends SolidElement {
|
|
298
301
|
}
|
299
302
|
handleOptionClick(event) {
|
300
303
|
const target = event.target;
|
301
|
-
const option = target.closest("sd-4-0-0-next-
|
304
|
+
const option = target.closest("sd-4-0-0-next-8-option");
|
302
305
|
const oldValue = this.value;
|
303
306
|
if (option && !option.disabled) {
|
304
307
|
if (this.multiple) {
|
@@ -323,7 +326,7 @@ var SdSelect = class extends SolidElement {
|
|
323
326
|
const allOptions = this.getAllOptions();
|
324
327
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
325
328
|
const values = [];
|
326
|
-
if (customElements.get("sd-4-0-0-next-
|
329
|
+
if (customElements.get("sd-4-0-0-next-8-option")) {
|
327
330
|
allOptions.forEach((option) => {
|
328
331
|
if (this.multiple) {
|
329
332
|
option.checkbox = true;
|
@@ -332,7 +335,7 @@ var SdSelect = class extends SolidElement {
|
|
332
335
|
});
|
333
336
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
334
337
|
} else {
|
335
|
-
customElements.whenDefined("sd-4-0-0-next-
|
338
|
+
customElements.whenDefined("sd-4-0-0-next-8-option").then(() => this.handleDefaultSlotChange());
|
336
339
|
}
|
337
340
|
}
|
338
341
|
handleTagRemove(event, option) {
|
@@ -349,13 +352,13 @@ var SdSelect = class extends SolidElement {
|
|
349
352
|
});
|
350
353
|
}
|
351
354
|
}
|
352
|
-
// Gets an array of all <sd-4-0-0-next-
|
355
|
+
// Gets an array of all <sd-4-0-0-next-8-option> elements
|
353
356
|
getAllOptions() {
|
354
|
-
return [...this.querySelectorAll("sd-4-0-0-next-
|
357
|
+
return [...this.querySelectorAll("sd-4-0-0-next-8-option")];
|
355
358
|
}
|
356
|
-
// Gets the first <sd-4-0-0-next-
|
359
|
+
// Gets the first <sd-4-0-0-next-8-option> element
|
357
360
|
getFirstOption() {
|
358
|
-
return this.querySelector("sd-4-0-0-next-
|
361
|
+
return this.querySelector("sd-4-0-0-next-8-option");
|
359
362
|
}
|
360
363
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
361
364
|
// option may be "current" at a time.
|
@@ -438,11 +441,11 @@ var SdSelect = class extends SolidElement {
|
|
438
441
|
});
|
439
442
|
} else {
|
440
443
|
return [
|
441
|
-
html`<sd-4-0-0-next-
|
444
|
+
html`<sd-4-0-0-next-8-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
442
445
|
base:tag__base,
|
443
446
|
content:tag__content,
|
444
447
|
removable-indicator:tag__removable-indicator,
|
445
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.
|
448
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.maxOptionsTagLabel}</sd-4-0-0-next-8-tag>`
|
446
449
|
];
|
447
450
|
}
|
448
451
|
}
|
@@ -457,7 +460,7 @@ var SdSelect = class extends SolidElement {
|
|
457
460
|
handleMouseLeave() {
|
458
461
|
this.hasHover = false;
|
459
462
|
}
|
460
|
-
/** Receives incoming event detail from sd-4-0-0-next-
|
463
|
+
/** Receives incoming event detail from sd-4-0-0-next-8-popup and updates local state for conditional styling. */
|
461
464
|
handleCurrentPlacement(e) {
|
462
465
|
const incomingPlacement = e.detail;
|
463
466
|
if (incomingPlacement) {
|
@@ -466,7 +469,7 @@ var SdSelect = class extends SolidElement {
|
|
466
469
|
}
|
467
470
|
handleUseTagsChange() {
|
468
471
|
const allOptions = this.getAllOptions();
|
469
|
-
if (customElements.get("sd-4-0-0-next-
|
472
|
+
if (customElements.get("sd-4-0-0-next-8-option")) {
|
470
473
|
allOptions.forEach((option) => {
|
471
474
|
option.checkbox = this.multiple;
|
472
475
|
});
|
@@ -572,7 +575,7 @@ var SdSelect = class extends SolidElement {
|
|
572
575
|
};
|
573
576
|
const hasLabel = this.label ? true : !!slots["label"];
|
574
577
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
575
|
-
const hasClearIcon = this.clearable && !this.disabled
|
578
|
+
const hasClearIcon = this.clearable && !this.disabled;
|
576
579
|
const selectState = this.disabled ? "disabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
577
580
|
const cursorStyles = this.disabled ? "cursor-not-allowed" : "cursor-pointer";
|
578
581
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
@@ -600,7 +603,7 @@ var SdSelect = class extends SolidElement {
|
|
600
603
|
default: "border-neutral-800"
|
601
604
|
}[selectState],
|
602
605
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
603
|
-
)}"></div><sd-4-0-0-next-
|
606
|
+
)}"></div><sd-4-0-0-next-8-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
604
607
|
"inline-flex relative w-full",
|
605
608
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
606
609
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
@@ -617,35 +620,39 @@ var SdSelect = class extends SolidElement {
|
|
617
620
|
"appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",
|
618
621
|
cursorStyles,
|
619
622
|
this.multiple && this.useTags && this.value.length > 0 ? "hidden" : ""
|
620
|
-
)}" type="text"
|
623
|
+
)}" type="text" .disabled="${this.disabled}" placeholder="${this.placeholder || this.localize.term("selectDefaultPlaceholder")}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="help-text invalid-message" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""}<div aria-live="polite" id="control-value" class="absolute top-0 left-0 opacity-0 -z-10">${this.selectedOptions.map((option) => option == null ? void 0 : option.getTextLabel()).join(", ")}</div><input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-controls="control-value" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx(
|
624
|
+
"select__clear flex justify-center",
|
625
|
+
iconMarginLeft,
|
626
|
+
this.value.length > 0 ? "visible" : "invisible"
|
627
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-8-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-0-0-next-8-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-8-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-8-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-8-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-8-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
621
628
|
"inline-flex ml-2 transition-all",
|
622
629
|
this.open ? "rotate-180" : "rotate-0",
|
623
630
|
this.disabled ? "text-neutral-500" : "text-primary",
|
624
631
|
iconSize
|
625
|
-
)}"><sd-4-0-0-next-
|
632
|
+
)}"><sd-4-0-0-next-8-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-8-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-multiselectable="${this.multiple ? "true" : "false"}" aria-labelledby="label" part="listbox" class="${cx(
|
626
633
|
"bg-white px-2 py-3 relative border-primary overflow-y-scroll",
|
627
634
|
this.open && "shadow",
|
628
635
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
629
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-0-0-next-
|
636
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-0-0-next-8-popup></div><div class="text-sm text-neutral-700" part="form-control-help-text" id="help-text" aria-hidden="${hasHelpText ? "false" : "true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
630
637
|
}
|
631
638
|
};
|
632
639
|
SdSelect.dependencies = {
|
633
|
-
"sd-4-0-0-next-
|
634
|
-
"sd-4-0-0-next-
|
635
|
-
"sd-4-0-0-next-
|
640
|
+
"sd-4-0-0-next-8-icon": SdIcon,
|
641
|
+
"sd-4-0-0-next-8-popup": SdPopup,
|
642
|
+
"sd-4-0-0-next-8-tag": SdTag
|
636
643
|
};
|
637
644
|
/**
|
638
645
|
* Inherits global stylesheet including TailwindCSS
|
639
646
|
*/
|
640
647
|
SdSelect.styles = [
|
641
648
|
...SolidElement.styles,
|
642
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-
|
649
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-8-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-8-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-8-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-0-next-8-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-8-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}`
|
643
650
|
];
|
644
651
|
__decorateClass([
|
645
|
-
queryAssignedElements({ selector: "sd-4-0-0-next-
|
652
|
+
queryAssignedElements({ selector: "sd-4-0-0-next-8-option" })
|
646
653
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
647
654
|
__decorateClass([
|
648
|
-
query("sd-4-0-0-next-
|
655
|
+
query("sd-4-0-0-next-8-popup")
|
649
656
|
], SdSelect.prototype, "popup", 2);
|
650
657
|
__decorateClass([
|
651
658
|
query('[part="combobox"]')
|
@@ -704,6 +711,9 @@ __decorateClass([
|
|
704
711
|
__decorateClass([
|
705
712
|
property()
|
706
713
|
], SdSelect.prototype, "placeholder", 2);
|
714
|
+
__decorateClass([
|
715
|
+
property({ attribute: "max-options-tag-label" })
|
716
|
+
], SdSelect.prototype, "maxOptionsTagLabel", 2);
|
707
717
|
__decorateClass([
|
708
718
|
property({ type: Boolean, reflect: true })
|
709
719
|
], SdSelect.prototype, "disabled", 2);
|
@@ -767,7 +777,7 @@ __decorateClass([
|
|
767
777
|
watch("value", { waitUntilFirstUpdate: true })
|
768
778
|
], SdSelect.prototype, "handleValueChange", 1);
|
769
779
|
SdSelect = __decorateClass([
|
770
|
-
customElement("sd-4-0-0-next-
|
780
|
+
customElement("sd-4-0-0-next-8-select")
|
771
781
|
], SdSelect);
|
772
782
|
setDefaultAnimation("select.show", {
|
773
783
|
keyframes: [
|
@@ -76,7 +76,7 @@ var SdDropdown = class extends SolidElement {
|
|
76
76
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
77
77
|
* or an element within the slotted elements shadow root.
|
78
78
|
*
|
79
|
-
* e.g. the accessible trigger of an <sd-4-0-0-next-
|
79
|
+
* e.g. the accessible trigger of an <sd-4-0-0-next-8-button> is a <button> located inside its shadow root.
|
80
80
|
*
|
81
81
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
82
82
|
* */
|
@@ -87,11 +87,11 @@ var SdDropdown = class extends SolidElement {
|
|
87
87
|
if (accessibleTrigger) {
|
88
88
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
89
89
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
90
|
-
case "sd-4-0-0-next-
|
91
|
-
case "sd-4-0-0-next-
|
90
|
+
case "sd-4-0-0-next-8-button":
|
91
|
+
case "sd-4-0-0-next-8-icon-button":
|
92
92
|
target = accessibleTrigger.button;
|
93
93
|
break;
|
94
|
-
case "sd-4-0-0-next-
|
94
|
+
case "sd-4-0-0-next-8-navigation-item":
|
95
95
|
target = accessibleTrigger.button;
|
96
96
|
break;
|
97
97
|
default:
|
@@ -236,7 +236,7 @@ var SdDropdown = class extends SolidElement {
|
|
236
236
|
}
|
237
237
|
addOpenListeners() {
|
238
238
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
239
|
-
this.panel.addEventListener("sd-4-0-0-next-
|
239
|
+
this.panel.addEventListener("sd-4-0-0-next-8-select", this.handlePanelSelect);
|
240
240
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
241
241
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
242
242
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
@@ -244,7 +244,7 @@ var SdDropdown = class extends SolidElement {
|
|
244
244
|
removeOpenListeners() {
|
245
245
|
if (this.panel) {
|
246
246
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
247
|
-
this.panel.removeEventListener("sd-4-0-0-next-
|
247
|
+
this.panel.removeEventListener("sd-4-0-0-next-8-select", this.handlePanelSelect);
|
248
248
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
249
249
|
}
|
250
250
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
@@ -277,11 +277,11 @@ var SdDropdown = class extends SolidElement {
|
|
277
277
|
}
|
278
278
|
}
|
279
279
|
render() {
|
280
|
-
return html`<sd-4-0-0-next-
|
280
|
+
return html`<sd-4-0-0-next-8-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
|
281
281
|
"shadow bg-white",
|
282
282
|
this.open ? "block pointer-events-auto" : "pointer-events-none",
|
283
283
|
this.rounded && "rounded-md"
|
284
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-4-0-0-next-
|
284
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-4-0-0-next-8-popup>`;
|
285
285
|
}
|
286
286
|
};
|
287
287
|
SdDropdown.styles = [
|
@@ -334,7 +334,7 @@ __decorateClass([
|
|
334
334
|
watch("open", { waitUntilFirstUpdate: true })
|
335
335
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
336
336
|
SdDropdown = __decorateClass([
|
337
|
-
customElement("sd-4-0-0-next-
|
337
|
+
customElement("sd-4-0-0-next-8-dropdown")
|
338
338
|
], SdDropdown);
|
339
339
|
setDefaultAnimation("dropdown.show", {
|
340
340
|
keyframes: [
|
@@ -54,7 +54,7 @@ var SdStepGroup = class extends SolidElement {
|
|
54
54
|
});
|
55
55
|
}
|
56
56
|
getAllSteps() {
|
57
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-0-0-next-
|
57
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-0-0-next-8-step");
|
58
58
|
}
|
59
59
|
/**
|
60
60
|
* Sets the active step.
|
@@ -116,7 +116,7 @@ __decorateClass([
|
|
116
116
|
watch("notInteractive")
|
117
117
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
118
118
|
SdStepGroup = __decorateClass([
|
119
|
-
customElement("sd-4-0-0-next-
|
119
|
+
customElement("sd-4-0-0-next-8-step-group")
|
120
120
|
], SdStepGroup);
|
121
121
|
|
122
122
|
export {
|
@@ -284,10 +284,10 @@ var SdAudio = class extends SolidElement {
|
|
284
284
|
)}" part="audio-controls"><button class="${cx(
|
285
285
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
286
286
|
this.inverted && "sd-interactive--inverted"
|
287
|
-
)}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-0-0-next-
|
287
|
+
)}" aria-label="${this.localize.term("playbackSpeed")}" tabindex="0" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-0-0-next-8-button ?inverted="${this.inverted ? true : false}" part="play-button" size="lg" @click="${!this.isPlaying ? this.playAudio : this.pauseAudio}" aria-label="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying ? html`<slot name="pause-icon"><sd-4-0-0-next-8-icon class="text-3xl" name="pause" library="system"></sd-4-0-0-next-8-icon></slot>` : html`<slot name="play-icon"><sd-4-0-0-next-8-icon class="text-3xl" name="start" library="system"></sd-4-0-0-next-8-icon></slot>`}</sd-4-0-0-next-8-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx(
|
288
288
|
"mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",
|
289
289
|
this.inverted && "sd-interactive--inverted"
|
290
|
-
)}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0"><sd-4-0-0-next-
|
290
|
+
)}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" tab-index="0"><sd-4-0-0-next-8-icon class="w-6 h-6" name="transcript" library="system" label="${this.isMuted ? this.localize.term("unmute") : this.localize.term("mute")}"></sd-4-0-0-next-8-icon></button>` : null} <button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" part="volume" aria-label="${this.localize.term("mute")}" tabindex="0" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-4-0-0-next-8-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="system"></sd-4-0-0-next-8-icon></button></div></div>`;
|
291
291
|
const renderTimestamps = html`<div class="${cx(
|
292
292
|
"w-full flex justify-between",
|
293
293
|
this.reversedLayout ? "mb-2" : "mt-2",
|
@@ -297,12 +297,12 @@ var SdAudio = class extends SolidElement {
|
|
297
297
|
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null} <input class="${cx(
|
298
298
|
"progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",
|
299
299
|
this.inverted && "sd-interactive--inverted"
|
300
|
-
)}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-4-0-0-next-
|
300
|
+
)}" type="range" max="100" step="0.001" value="${this.progress}" tabindex="0" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-4-0-0-next-8-drawer><slot name="transcript"></slot></sd-4-0-0-next-8-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div>`;
|
301
301
|
}
|
302
302
|
};
|
303
303
|
SdAudio.styles = [
|
304
304
|
...SolidElement.styles,
|
305
|
-
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-0-0-next-
|
305
|
+
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-0-0-next-8-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-16,4rem);justify-content:center;width:var(--sd-spacing-16,4rem)}sd-4-0-0-next-8-button::part(label){align-items:center;display:flex;flex-grow:0}`
|
306
306
|
];
|
307
307
|
__decorateClass([
|
308
308
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
@@ -341,13 +341,13 @@ __decorateClass([
|
|
341
341
|
query('[part="audio-player"]')
|
342
342
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
343
343
|
__decorateClass([
|
344
|
-
query("sd-4-0-0-next-
|
344
|
+
query("sd-4-0-0-next-8-drawer")
|
345
345
|
], SdAudio.prototype, "drawer", 2);
|
346
346
|
__decorateClass([
|
347
347
|
query("canvas")
|
348
348
|
], SdAudio.prototype, "canvas", 2);
|
349
349
|
SdAudio = __decorateClass([
|
350
|
-
customElement("sd-4-0-0-next-
|
350
|
+
customElement("sd-4-0-0-next-8-audio")
|
351
351
|
], SdAudio);
|
352
352
|
|
353
353
|
export {
|
@@ -56,7 +56,7 @@ var SdCarousel = class extends SolidElement {
|
|
56
56
|
this.pausedAutoplay = false;
|
57
57
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
58
58
|
this.scrollController = new ScrollController(this);
|
59
|
-
this.slides = this.getElementsByTagName("sd-4-0-0-next-
|
59
|
+
this.slides = this.getElementsByTagName("sd-4-0-0-next-8-carousel-item");
|
60
60
|
// determines which slide is displayed
|
61
61
|
// A map containing the state of all the slides
|
62
62
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
@@ -362,7 +362,7 @@ var SdCarousel = class extends SolidElement {
|
|
362
362
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @click="${prevEnabled ? (e) => {
|
363
363
|
this.previous();
|
364
364
|
this.unblockAutoplay(e, this.previousButton);
|
365
|
-
} : null}"><slot name="previous-icon"><sd-4-0-0-next-
|
365
|
+
} : null}"><slot name="previous-icon"><sd-4-0-0-next-8-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-4-0-0-next-8-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
|
366
366
|
const isActive = index + 1 === currentPage;
|
367
367
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
368
368
|
"carousel__pagination-item",
|
@@ -385,7 +385,7 @@ var SdCarousel = class extends SolidElement {
|
|
385
385
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @click="${nextEnabled ? (e) => {
|
386
386
|
this.next();
|
387
387
|
this.unblockAutoplay(e, this.nextButton);
|
388
|
-
} : null}"><slot name="next-icon"><sd-4-0-0-next-
|
388
|
+
} : null}"><slot name="next-icon"><sd-4-0-0-next-8-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-4-0-0-next-8-icon></slot></button></div><button class="${cx(
|
389
389
|
"ml-6 !rounded-sm",
|
390
390
|
"!absolute !right-0 sd-interactive",
|
391
391
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
@@ -395,12 +395,12 @@ var SdCarousel = class extends SolidElement {
|
|
395
395
|
if (e.detail) {
|
396
396
|
this.autoplayControls.blur();
|
397
397
|
}
|
398
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-0-0-next-
|
398
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-0-0-next-8-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-0-0-next-8-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-4-0-0-next-8-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-0-0-next-8-icon></slot></button></div></div>`;
|
399
399
|
}
|
400
400
|
};
|
401
401
|
SdCarousel.styles = [
|
402
402
|
...SolidElement.styles,
|
403
|
-
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-0-0-next-
|
403
|
+
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-0-0-next-8-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`
|
404
404
|
];
|
405
405
|
__decorateClass([
|
406
406
|
query('[part~="autoplay-controls"]')
|
@@ -467,7 +467,7 @@ __decorateClass([
|
|
467
467
|
watch("autoplay")
|
468
468
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
469
469
|
SdCarousel = __decorateClass([
|
470
|
-
customElement("sd-4-0-0-next-
|
470
|
+
customElement("sd-4-0-0-next-8-carousel")
|
471
471
|
], SdCarousel);
|
472
472
|
|
473
473
|
export {
|
@@ -364,7 +364,7 @@ var SdInput = class extends SolidElement {
|
|
364
364
|
"min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
|
365
365
|
this.size === "sm" ? "h-6" : "h-8",
|
366
366
|
textSize
|
367
|
-
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center ", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-
|
367
|
+
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center ", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-8-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-0-0-next-8-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-4-0-0-next-8-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-4-0-0-next-8-icon></slot>` : html`<slot name="hide-password-icon"><sd-4-0-0-next-8-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-4-0-0-next-8-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-4-0-0-next-8-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-4-0-0-next-8-icon>` : ""} ${this.type === "time" ? html`<sd-4-0-0-next-8-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-4-0-0-next-8-icon>` : ""} ${this.type === "search" ? html`<button class="flex items-center" type="button" tabindex="-1"><sd-4-0-0-next-8-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="magnifying-glass"></sd-4-0-0-next-8-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-8-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-4-0-0-next-8-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-4-0-0-next-8-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-4-0-0-next-8-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-4-0-0-next-8-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-0-0-next-8-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-4-0-0-next-8-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-0-0-next-8-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
368
368
|
}
|
369
369
|
};
|
370
370
|
/**
|
@@ -372,7 +372,7 @@ var SdInput = class extends SolidElement {
|
|
372
372
|
*/
|
373
373
|
SdInput.styles = [
|
374
374
|
...SolidElement.styles,
|
375
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-0-0-next-
|
375
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-4-0-0-next-8-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
376
376
|
];
|
377
377
|
__decorateClass([
|
378
378
|
query("#input")
|
@@ -499,7 +499,7 @@ __decorateClass([
|
|
499
499
|
watch("value", { waitUntilFirstUpdate: true })
|
500
500
|
], SdInput.prototype, "handleValueChange", 1);
|
501
501
|
SdInput = __decorateClass([
|
502
|
-
customElement("sd-4-0-0-next-
|
502
|
+
customElement("sd-4-0-0-next-8-input")
|
503
503
|
], SdInput);
|
504
504
|
|
505
505
|
export {
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
26
26
|
];
|
27
27
|
SdCarouselItem = __decorateClass([
|
28
|
-
customElement("sd-4-0-0-next-
|
28
|
+
customElement("sd-4-0-0-next-8-carousel-item")
|
29
29
|
], SdCarouselItem);
|
30
30
|
|
31
31
|
export {
|
@@ -100,7 +100,7 @@ var SdVideo = class extends SolidElement {
|
|
100
100
|
this.playing ? "opacity-0" : "opacity-100",
|
101
101
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
102
102
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline"
|
103
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-0-0-next-
|
103
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-0-0-next-8-icon id="default-play-icon" library="system" name="start"></sd-4-0-0-next-8-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>` : null}<div part="overlay" id="overlay" role="presentation" class="${cx(
|
104
104
|
this.overlay && !this.playing ? "opacity-100" : "opacity-0",
|
105
105
|
"bg-[black] bg-opacity-60 w-full h-full absolute top-0 left-0 pointer-events-none z-20 play-pause-transition"
|
106
106
|
)}"></div><slot></slot></div>`;
|
@@ -123,7 +123,7 @@ __decorateClass([
|
|
123
123
|
property({ type: Boolean })
|
124
124
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
125
125
|
SdVideo = __decorateClass([
|
126
|
-
customElement("sd-4-0-0-next-
|
126
|
+
customElement("sd-4-0-0-next-8-video")
|
127
127
|
], SdVideo);
|
128
128
|
|
129
129
|
export {
|
@@ -91,7 +91,7 @@ var SdOption = class extends SolidElement {
|
|
91
91
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
92
92
|
"relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",
|
93
93
|
this.disabled ? "border-neutral-500" : this.selected ? "bg-accent border-accent" : "border-neutral-800"
|
94
|
-
)}">${this.selected ? html`<sd-4-0-0-next-
|
94
|
+
)}">${this.selected ? html`<sd-4-0-0-next-8-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-8-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
95
95
|
}
|
96
96
|
};
|
97
97
|
/**
|
@@ -135,7 +135,7 @@ __decorateClass([
|
|
135
135
|
watch("value")
|
136
136
|
], SdOption.prototype, "handleValueChange", 1);
|
137
137
|
SdOption = __decorateClass([
|
138
|
-
customElement("sd-4-0-0-next-
|
138
|
+
customElement("sd-4-0-0-next-8-option")
|
139
139
|
], SdOption);
|
140
140
|
|
141
141
|
export {
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",
|
144
144
|
this.open && "rotate-180"
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-8-icon library="system" name="chevron-down"></sd-4-0-0-next-8-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-4-0-0-next-8-icon library="system" name="chevron-down"></sd-4-0-0-next-8-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
146
146
|
}
|
147
147
|
};
|
148
148
|
SdAccordion.styles = [
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
168
168
|
watch("open", { waitUntilFirstUpdate: true })
|
169
169
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
170
170
|
SdAccordion = __decorateClass([
|
171
|
-
customElement("sd-4-0-0-next-
|
171
|
+
customElement("sd-4-0-0-next-8-accordion")
|
172
172
|
], SdAccordion);
|
173
173
|
setDefaultAnimation("accordion.show", {
|
174
174
|
keyframes: [
|