@solid-design-system/components 4.0.0-next.2 → 4.0.0-next.3
Sign up to get free protection for your applications and to get access to all the features.
- package/cdn/chunks/chunk.3ATYVOO4.js +1 -0
- package/cdn/chunks/chunk.4HIKTDIM.js +40 -0
- package/cdn/chunks/chunk.C2PA7CKF.js +1 -0
- package/cdn/chunks/{chunk.IVXFAQNG.js → chunk.DEX5VJGX.js} +1 -1
- package/cdn/chunks/{chunk.BTRVMAGL.js → chunk.DMLGBWCL.js} +1 -1
- package/cdn/chunks/{chunk.GUOHZTA7.js → chunk.F7J6HN76.js} +1 -1
- package/cdn/chunks/{chunk.E7HNNYP6.js → chunk.MX22EZXK.js} +1 -1
- package/cdn/chunks/{chunk.5BROLR6V.js → chunk.ROBLMI7Q.js} +1 -1
- package/cdn/chunks/{chunk.WMRFVNYU.js → chunk.ZRIABVVM.js} +1 -1
- package/cdn/components/accordion/accordion.d.ts +5 -3
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/flipcard/flipcard.js +1 -1
- package/cdn/components/map-marker/map-marker.js +1 -1
- package/cdn/components/navigation-item/navigation-item.js +1 -1
- package/cdn/components/quickfact/quickfact.d.ts +1 -1
- package/cdn/components/quickfact/quickfact.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/step/step.js +1 -1
- package/cdn/components/tag/tag.js +1 -1
- package/cdn/custom-elements.json +19 -1
- package/cdn/solid-components.bundle.js +52 -13
- package/cdn/solid-components.iife.js +52 -13
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +3 -1
- 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.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -0
- package/cdn-versioned/chunks/chunk.4HIKTDIM.js +40 -0
- package/cdn-versioned/chunks/chunk.4W3WLVGR.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.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -0
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/{chunk.IVXFAQNG.js → chunk.DEX5VJGX.js} +4 -4
- package/cdn-versioned/chunks/{chunk.BTRVMAGL.js → 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.GUOHZTA7.js → 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.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.MMRILMYU.js +1 -1
- package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/{chunk.E7HNNYP6.js → 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.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.5BROLR6V.js → chunk.ROBLMI7Q.js} +4 -4
- package/cdn-versioned/chunks/chunk.SNUMAAEG.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.WGNXYONB.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.WMRFVNYU.js → chunk.ZRIABVVM.js} +2 -2
- package/cdn-versioned/components/accordion/accordion.d.ts +6 -4
- package/cdn-versioned/components/accordion/accordion.js +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.js +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/button.js +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 +4 -4
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.js +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/drawer/drawer.js +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/flipcard/flipcard.js +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/map-marker/map-marker.js +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.js +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 +2 -2
- package/cdn-versioned/components/quickfact/quickfact.js +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 +4 -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/step.js +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/tag/tag.js +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 +220 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +54 -15
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +54 -15
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +139 -137
- package/dist/chunks/{chunk.6JI7NL3E.js → chunk.4JZQQD4L.js} +48 -6
- package/dist/chunks/{chunk.DAM3ICHP.js → chunk.TWXYFPBS.js} +31 -5
- package/dist/components/accordion/accordion.d.ts +5 -3
- package/dist/components/accordion/accordion.js +1 -1
- package/dist/components/accordion-group/accordion-group.js +1 -1
- package/dist/components/quickfact/quickfact.d.ts +1 -1
- package/dist/components/quickfact/quickfact.js +2 -2
- package/dist/custom-elements.json +19 -1
- package/dist/solid-components.js +2 -2
- package/dist/web-types.json +3 -1
- 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 +107 -0
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
- package/dist-versioned/chunks/chunk.56SNEGI4.js +13 -13
- 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.76ZNNLGN.js +1 -1
- package/dist-versioned/chunks/chunk.7BEDTYS7.js +2 -2
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- 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.EFEBQQHC.js +26 -26
- 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.I3PY3VYP.js +29 -29
- 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.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.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.DAM3ICHP.js → chunk.TWXYFPBS.js} +32 -6
- 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.WWS3CQ2Z.js +5 -5
- 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 +6 -4
- package/dist-versioned/components/accordion/accordion.js +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.js +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 +4 -4
- 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 +2 -2
- package/dist-versioned/components/quickfact/quickfact.js +2 -2
- 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 +4 -4
- 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 +220 -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 +80 -80
- package/dist-versioned/web-types.json +139 -137
- package/package.json +2 -2
- package/cdn/chunks/chunk.2UHPWLJE.js +0 -1
- package/cdn/chunks/chunk.FREYGZDJ.js +0 -1
- package/cdn/chunks/chunk.KFW32Q4Q.js +0 -1
- package/cdn-versioned/chunks/chunk.2UHPWLJE.js +0 -1
- package/cdn-versioned/chunks/chunk.FREYGZDJ.js +0 -1
- package/cdn-versioned/chunks/chunk.KFW32Q4Q.js +0 -1
- package/dist-versioned/chunks/chunk.6JI7NL3E.js +0 -65
@@ -24,11 +24,11 @@ var SdOptgroup = class extends SolidElement {
|
|
24
24
|
this.label = "";
|
25
25
|
}
|
26
26
|
/**
|
27
|
-
* Syncs the disabled prop for all slotted sd-4-0-0-next-
|
27
|
+
* Syncs the disabled prop for all slotted sd-4-0-0-next-3-options when it is triggered
|
28
28
|
*/
|
29
29
|
handleDisableOptions() {
|
30
30
|
const { disabled } = this;
|
31
|
-
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-0-0-next-
|
31
|
+
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-0-0-next-3-option").forEach((opt) => {
|
32
32
|
opt.disabled = disabled;
|
33
33
|
});
|
34
34
|
}
|
@@ -37,11 +37,11 @@ var SdOptgroup = class extends SolidElement {
|
|
37
37
|
}
|
38
38
|
render() {
|
39
39
|
const { disabled } = this;
|
40
|
-
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-
|
40
|
+
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-0-0-next-3-divider id="divider" class="pt-2 pb-4" part="divider"></sd-4-0-0-next-3-divider><div part="label-container" class="${cx(this.disabled ? "text-neutral-500" : "text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="group" part="options"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`;
|
41
41
|
}
|
42
42
|
};
|
43
43
|
SdOptgroup.dependencies = {
|
44
|
-
"sd-4-0-0-next-
|
44
|
+
"sd-4-0-0-next-3-divider": SdDivider
|
45
45
|
};
|
46
46
|
SdOptgroup.styles = [
|
47
47
|
...SolidElement.styles,
|
@@ -60,7 +60,7 @@ __decorateClass([
|
|
60
60
|
watch("disabled", { waitUntilFirstUpdate: true })
|
61
61
|
], SdOptgroup.prototype, "handleDisabledChange", 1);
|
62
62
|
SdOptgroup = __decorateClass([
|
63
|
-
customElement("sd-4-0-0-next-
|
63
|
+
customElement("sd-4-0-0-next-3-optgroup")
|
64
64
|
], SdOptgroup);
|
65
65
|
|
66
66
|
export {
|
@@ -137,7 +137,7 @@ __decorateClass([
|
|
137
137
|
state()
|
138
138
|
], SdBrandshape.prototype, "componentBreakpoint", 2);
|
139
139
|
SdBrandshape = __decorateClass([
|
140
|
-
customElement("sd-4-0-0-next-
|
140
|
+
customElement("sd-4-0-0-next-3-brandshape")
|
141
141
|
], SdBrandshape);
|
142
142
|
|
143
143
|
export {
|
@@ -111,7 +111,7 @@ var SdCheckbox = class extends SolidElement {
|
|
111
111
|
render() {
|
112
112
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
113
113
|
return html`<label part="base" class="${cx(
|
114
|
-
"sd-4-0-0-next-
|
114
|
+
"sd-4-0-0-next-3-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
115
115
|
this.disabled && "hover:cursor-not-allowed",
|
116
116
|
{
|
117
117
|
/* sizes, fonts */
|
@@ -137,7 +137,7 @@ var SdCheckbox = class extends SolidElement {
|
|
137
137
|
filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
|
138
138
|
default: "border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
139
139
|
}[checkboxState]
|
140
|
-
)}">${this.checked ? html`<sd-4-0-0-next-
|
140
|
+
)}">${this.checked ? html`<sd-4-0-0-next-3-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-0-0-next-3-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-4-0-0-next-3-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-0-0-next-3-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
141
141
|
"select-none inline-block ml-2",
|
142
142
|
this.disabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
|
143
143
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
@@ -196,7 +196,7 @@ __decorateClass([
|
|
196
196
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
197
197
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
198
198
|
SdCheckbox = __decorateClass([
|
199
|
-
customElement("sd-4-0-0-next-
|
199
|
+
customElement("sd-4-0-0-next-3-checkbox")
|
200
200
|
], SdCheckbox);
|
201
201
|
|
202
202
|
export {
|
@@ -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-3-input"]
|
57
57
|
});
|
58
58
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
59
59
|
this.localize = new LocalizeController(this);
|
@@ -85,11 +85,11 @@ var SdSelect = class extends SolidElement {
|
|
85
85
|
this.styleOnValid = false;
|
86
86
|
this.hoist = false;
|
87
87
|
this.getTag = (option) => {
|
88
|
-
return html`<sd-4-0-0-next-
|
88
|
+
return html`<sd-4-0-0-next-3-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
89
89
|
base:tag__base,
|
90
90
|
content:tag__content,
|
91
91
|
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-
|
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-3-tag>`;
|
93
93
|
};
|
94
94
|
this.handleDocumentFocusIn = (event) => {
|
95
95
|
const path = event.composedPath();
|
@@ -100,7 +100,7 @@ var SdSelect = class extends SolidElement {
|
|
100
100
|
this.handleDocumentKeyDown = (event) => {
|
101
101
|
const target = event.target;
|
102
102
|
const isClearButton = target.closest(".select__clear") !== null;
|
103
|
-
const isIconButton = target.closest("sd-4-0-0-next-
|
103
|
+
const isIconButton = target.closest("sd-4-0-0-next-3-icon-button") !== null;
|
104
104
|
if (isClearButton || isIconButton) {
|
105
105
|
return;
|
106
106
|
}
|
@@ -233,8 +233,8 @@ var SdSelect = class extends SolidElement {
|
|
233
233
|
if (event.key === "Backspace" && this.multiple) {
|
234
234
|
event.stopPropagation();
|
235
235
|
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-
|
236
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-0-0-next-3-tag");
|
237
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-0-0-next-3-tag");
|
238
238
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
239
239
|
this.updateComplete.then(() => {
|
240
240
|
if (nextTag) {
|
@@ -253,7 +253,7 @@ var SdSelect = class extends SolidElement {
|
|
253
253
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
254
254
|
this.updateComplete.then(() => {
|
255
255
|
var _a;
|
256
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-0-0-next-
|
256
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-0-0-next-3-tag");
|
257
257
|
if (tags && tags.length > 0) {
|
258
258
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
259
259
|
} else {
|
@@ -298,7 +298,7 @@ var SdSelect = class extends SolidElement {
|
|
298
298
|
}
|
299
299
|
handleOptionClick(event) {
|
300
300
|
const target = event.target;
|
301
|
-
const option = target.closest("sd-4-0-0-next-
|
301
|
+
const option = target.closest("sd-4-0-0-next-3-option");
|
302
302
|
const oldValue = this.value;
|
303
303
|
if (option && !option.disabled) {
|
304
304
|
if (this.multiple) {
|
@@ -323,7 +323,7 @@ var SdSelect = class extends SolidElement {
|
|
323
323
|
const allOptions = this.getAllOptions();
|
324
324
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
325
325
|
const values = [];
|
326
|
-
if (customElements.get("sd-4-0-0-next-
|
326
|
+
if (customElements.get("sd-4-0-0-next-3-option")) {
|
327
327
|
allOptions.forEach((option) => {
|
328
328
|
if (this.multiple) {
|
329
329
|
option.checkbox = true;
|
@@ -332,7 +332,7 @@ var SdSelect = class extends SolidElement {
|
|
332
332
|
});
|
333
333
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
334
334
|
} else {
|
335
|
-
customElements.whenDefined("sd-4-0-0-next-
|
335
|
+
customElements.whenDefined("sd-4-0-0-next-3-option").then(() => this.handleDefaultSlotChange());
|
336
336
|
}
|
337
337
|
}
|
338
338
|
handleTagRemove(event, option) {
|
@@ -349,13 +349,13 @@ var SdSelect = class extends SolidElement {
|
|
349
349
|
});
|
350
350
|
}
|
351
351
|
}
|
352
|
-
// Gets an array of all <sd-4-0-0-next-
|
352
|
+
// Gets an array of all <sd-4-0-0-next-3-option> elements
|
353
353
|
getAllOptions() {
|
354
|
-
return [...this.querySelectorAll("sd-4-0-0-next-
|
354
|
+
return [...this.querySelectorAll("sd-4-0-0-next-3-option")];
|
355
355
|
}
|
356
|
-
// Gets the first <sd-4-0-0-next-
|
356
|
+
// Gets the first <sd-4-0-0-next-3-option> element
|
357
357
|
getFirstOption() {
|
358
|
-
return this.querySelector("sd-4-0-0-next-
|
358
|
+
return this.querySelector("sd-4-0-0-next-3-option");
|
359
359
|
}
|
360
360
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
361
361
|
// option may be "current" at a time.
|
@@ -438,11 +438,11 @@ var SdSelect = class extends SolidElement {
|
|
438
438
|
});
|
439
439
|
} else {
|
440
440
|
return [
|
441
|
-
html`<sd-4-0-0-next-
|
441
|
+
html`<sd-4-0-0-next-3-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
442
442
|
base:tag__base,
|
443
443
|
content:tag__content,
|
444
444
|
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.localize.term("tagsSelected")}</sd-4-0-0-next-
|
445
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-4-0-0-next-3-tag>`
|
446
446
|
];
|
447
447
|
}
|
448
448
|
}
|
@@ -457,7 +457,7 @@ var SdSelect = class extends SolidElement {
|
|
457
457
|
handleMouseLeave() {
|
458
458
|
this.hasHover = false;
|
459
459
|
}
|
460
|
-
/** Receives incoming event detail from sd-4-0-0-next-
|
460
|
+
/** Receives incoming event detail from sd-4-0-0-next-3-popup and updates local state for conditional styling. */
|
461
461
|
handleCurrentPlacement(e) {
|
462
462
|
const incomingPlacement = e.detail;
|
463
463
|
if (incomingPlacement) {
|
@@ -466,7 +466,7 @@ var SdSelect = class extends SolidElement {
|
|
466
466
|
}
|
467
467
|
handleUseTagsChange() {
|
468
468
|
const allOptions = this.getAllOptions();
|
469
|
-
if (customElements.get("sd-4-0-0-next-
|
469
|
+
if (customElements.get("sd-4-0-0-next-3-option")) {
|
470
470
|
allOptions.forEach((option) => {
|
471
471
|
option.checkbox = this.multiple;
|
472
472
|
});
|
@@ -600,7 +600,7 @@ var SdSelect = class extends SolidElement {
|
|
600
600
|
default: "border-neutral-800"
|
601
601
|
}[selectState],
|
602
602
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
603
|
-
)}"></div><sd-4-0-0-next-
|
603
|
+
)}"></div><sd-4-0-0-next-3-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
604
604
|
"inline-flex relative w-full",
|
605
605
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
606
606
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
@@ -617,35 +617,35 @@ var SdSelect = class extends SolidElement {
|
|
617
617
|
"appearance-none outline-none flex-grow bg-transparent w-full placeholder-neutral-700",
|
618
618
|
cursorStyles,
|
619
619
|
this.multiple && this.useTags && this.value.length > 0 ? "hidden" : ""
|
620
|
-
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .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("select__clear flex justify-center", iconMarginLeft)}" 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-
|
620
|
+
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .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("select__clear flex justify-center", iconMarginLeft)}" 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-3-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-0-0-next-3-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-3-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-3-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-3-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-3-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
621
621
|
"inline-flex ml-2 transition-all",
|
622
622
|
this.open ? "rotate-180" : "rotate-0",
|
623
623
|
this.disabled ? "text-neutral-500" : "text-primary",
|
624
624
|
iconSize
|
625
|
-
)}"><sd-4-0-0-next-
|
625
|
+
)}"><sd-4-0-0-next-3-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-3-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
626
|
"bg-white px-2 py-3 relative border-primary overflow-y-scroll",
|
627
627
|
this.open && "shadow",
|
628
628
|
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-
|
629
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-0-0-next-3-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
630
|
}
|
631
631
|
};
|
632
632
|
SdSelect.dependencies = {
|
633
|
-
"sd-4-0-0-next-
|
634
|
-
"sd-4-0-0-next-
|
635
|
-
"sd-4-0-0-next-
|
633
|
+
"sd-4-0-0-next-3-icon": SdIcon,
|
634
|
+
"sd-4-0-0-next-3-popup": SdPopup,
|
635
|
+
"sd-4-0-0-next-3-tag": SdTag
|
636
636
|
};
|
637
637
|
/**
|
638
638
|
* Inherits global stylesheet including TailwindCSS
|
639
639
|
*/
|
640
640
|
SdSelect.styles = [
|
641
641
|
...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-
|
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-3-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-3-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-3-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-3-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
643
|
];
|
644
644
|
__decorateClass([
|
645
|
-
queryAssignedElements({ selector: "sd-4-0-0-next-
|
645
|
+
queryAssignedElements({ selector: "sd-4-0-0-next-3-option" })
|
646
646
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
647
647
|
__decorateClass([
|
648
|
-
query("sd-4-0-0-next-
|
648
|
+
query("sd-4-0-0-next-3-popup")
|
649
649
|
], SdSelect.prototype, "popup", 2);
|
650
650
|
__decorateClass([
|
651
651
|
query('[part="combobox"]')
|
@@ -767,7 +767,7 @@ __decorateClass([
|
|
767
767
|
watch("value", { waitUntilFirstUpdate: true })
|
768
768
|
], SdSelect.prototype, "handleValueChange", 1);
|
769
769
|
SdSelect = __decorateClass([
|
770
|
-
customElement("sd-4-0-0-next-
|
770
|
+
customElement("sd-4-0-0-next-3-select")
|
771
771
|
], SdSelect);
|
772
772
|
setDefaultAnimation("select.show", {
|
773
773
|
keyframes: [
|
@@ -41,16 +41,16 @@ var SdAccordionGroup = class extends SolidElement {
|
|
41
41
|
};
|
42
42
|
SdAccordionGroup.styles = [
|
43
43
|
...SolidElement.styles,
|
44
|
-
css`:host{display:block}::slotted(sd-4-0-0-next-
|
44
|
+
css`:host{display:block}::slotted(sd-4-0-0-next-3-accordion:not(:first-of-type)){margin-top:-1px}`
|
45
45
|
];
|
46
46
|
__decorateClass([
|
47
|
-
queryAssignedElements({ selector: "sd-4-0-0-next-
|
47
|
+
queryAssignedElements({ selector: "sd-4-0-0-next-3-accordion" })
|
48
48
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
49
49
|
__decorateClass([
|
50
50
|
property({ attribute: "close-others", type: Boolean })
|
51
51
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
52
52
|
SdAccordionGroup = __decorateClass([
|
53
|
-
customElement("sd-4-0-0-next-
|
53
|
+
customElement("sd-4-0-0-next-3-accordion-group")
|
54
54
|
], SdAccordionGroup);
|
55
55
|
|
56
56
|
export {
|
@@ -71,7 +71,7 @@ var SdExpandable = class extends SolidElement {
|
|
71
71
|
"sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",
|
72
72
|
this.inverted && "sd-interactive--inverted",
|
73
73
|
!this.inverted ? "!focus-visible:focus-outline" : "!focus-visible:focus-outline-inverted"
|
74
|
-
)}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-4-0-0-next-
|
74
|
+
)}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-4-0-0-next-3-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-4-0-0-next-3-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-4-0-0-next-3-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-4-0-0-next-3-icon>${this.localize.term("showMore")}</slot>`}</button>`;
|
75
75
|
}
|
76
76
|
firstUpdated() {
|
77
77
|
this.cloneContentToLightDOM();
|
@@ -108,7 +108,7 @@ __decorateClass([
|
|
108
108
|
watch("open", { waitUntilFirstUpdate: true })
|
109
109
|
], SdExpandable.prototype, "onOpenChange", 1);
|
110
110
|
SdExpandable = __decorateClass([
|
111
|
-
customElement("sd-4-0-0-next-
|
111
|
+
customElement("sd-4-0-0-next-3-expandable")
|
112
112
|
], SdExpandable);
|
113
113
|
|
114
114
|
export {
|
@@ -70,7 +70,7 @@ var SdRadio = class extends SolidElement {
|
|
70
70
|
}
|
71
71
|
render() {
|
72
72
|
return html`<span part="base" class="${cx(
|
73
|
-
"sd-4-0-0-next-
|
73
|
+
"sd-4-0-0-next-3-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",
|
74
74
|
this.disabled && "hover:cursor-not-allowed",
|
75
75
|
{
|
76
76
|
/* sizes, fonts */
|
@@ -122,7 +122,7 @@ __decorateClass([
|
|
122
122
|
watch("disabled", { waitUntilFirstUpdate: true })
|
123
123
|
], SdRadio.prototype, "handleDisabledChange", 1);
|
124
124
|
SdRadio = __decorateClass([
|
125
|
-
customElement("sd-4-0-0-next-
|
125
|
+
customElement("sd-4-0-0-next-3-radio")
|
126
126
|
], SdRadio);
|
127
127
|
|
128
128
|
export {
|
@@ -15,7 +15,7 @@ var FormControlController = class {
|
|
15
15
|
const disabled = this.options.disabled(this.host);
|
16
16
|
const name = this.options.name(this.host);
|
17
17
|
const value = this.options.value(this.host);
|
18
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-4-0-0-next-
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-4-0-0-next-3-button";
|
19
19
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
20
20
|
if (Array.isArray(value)) {
|
21
21
|
value.forEach((val) => {
|
@@ -40,7 +40,7 @@ var FormControlController = class {
|
|
40
40
|
event.stopImmediatePropagation();
|
41
41
|
const invalidElements = (_b = this.form) == null ? void 0 : _b.querySelectorAll("[data-invalid]");
|
42
42
|
const sdRadioGroups = Array.from(invalidElements).filter(
|
43
|
-
(element) => element.tagName.toLowerCase() === "sd-4-0-0-next-
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-4-0-0-next-3-radio-group"
|
44
44
|
);
|
45
45
|
sdRadioGroups.forEach((radioGroup) => {
|
46
46
|
var _a2, _b2;
|
@@ -88,7 +88,7 @@ var FormControlController = class {
|
|
88
88
|
},
|
89
89
|
reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
|
90
90
|
setValue: (input, value) => input.value = value,
|
91
|
-
assumeInteractionOn: ["sd-4-0-0-next-
|
91
|
+
assumeInteractionOn: ["sd-4-0-0-next-3-input"]
|
92
92
|
}, options);
|
93
93
|
}
|
94
94
|
hostConnected() {
|
@@ -82,7 +82,7 @@ var SdRadioButton = class extends SolidElement {
|
|
82
82
|
};
|
83
83
|
SdRadioButton.styles = [
|
84
84
|
...SolidElement.styles,
|
85
|
-
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-0-0-next-
|
85
|
+
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-0-0-next-3-button-group__button--first:not(.sd-4-0-0-next-3-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-3-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-3-button-group__button--last:not(.sd-4-0-0-next-3-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-4-0-0-next-3-button-group__button:not(.sd-4-0-0-next-3-button-group__button--first)){margin-inline-start:-1px}:host(.sd-4-0-0-next-3-button-group__button--hover){z-index:10}:host(.sd-4-0-0-next-3-button-group__button--focus),:host(.sd-4-0-0-next-3-button-group__button[checked]){z-index:20}`
|
86
86
|
];
|
87
87
|
__decorateClass([
|
88
88
|
query(".button")
|
@@ -109,7 +109,7 @@ __decorateClass([
|
|
109
109
|
watch("disabled", { waitUntilFirstUpdate: true })
|
110
110
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
111
111
|
SdRadioButton = __decorateClass([
|
112
|
-
customElement("sd-4-0-0-next-
|
112
|
+
customElement("sd-4-0-0-next-3-radio-button")
|
113
113
|
], SdRadioButton);
|
114
114
|
|
115
115
|
export {
|
@@ -71,7 +71,7 @@ var SdTag = class extends SolidElement {
|
|
71
71
|
lg: "text-base",
|
72
72
|
sm: "text-[12px]"
|
73
73
|
}[this.size]
|
74
|
-
)}"><sd-4-0-0-next-
|
74
|
+
)}"><sd-4-0-0-next-3-icon library="system" name="close" label="remove"></sd-4-0-0-next-3-icon></slot>` : ""}</${tag}>`;
|
75
75
|
}
|
76
76
|
};
|
77
77
|
SdTag.styles = [
|
@@ -106,7 +106,7 @@ __decorateClass([
|
|
106
106
|
property()
|
107
107
|
], SdTag.prototype, "download", 2);
|
108
108
|
SdTag = __decorateClass([
|
109
|
-
customElement("sd-4-0-0-next-
|
109
|
+
customElement("sd-4-0-0-next-3-tag")
|
110
110
|
], SdTag);
|
111
111
|
|
112
112
|
export {
|
@@ -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-3-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-3-button":
|
91
|
+
case "sd-4-0-0-next-3-icon-button":
|
92
92
|
target = accessibleTrigger.button;
|
93
93
|
break;
|
94
|
-
case "sd-4-0-0-next-
|
94
|
+
case "sd-4-0-0-next-3-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-3-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-3-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-3-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-3-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-3-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-3-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-3-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-3-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-3-icon class="text-3xl" name="pause" library="system"></sd-4-0-0-next-3-icon></slot>` : html`<slot name="play-icon"><sd-4-0-0-next-3-icon class="text-3xl" name="start" library="system"></sd-4-0-0-next-3-icon></slot>`}</sd-4-0-0-next-3-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-3-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-3-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-3-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="system"></sd-4-0-0-next-3-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-3-drawer><slot name="transcript"></slot></sd-4-0-0-next-3-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-3-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-3-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-3-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-3-audio")
|
351
351
|
], SdAudio);
|
352
352
|
|
353
353
|
export {
|