@solid-design-system/components 6.0.0-next.13 → 6.0.0-next.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{chunk.SOZMBJQS.js → chunk.PNNFETDE.js} +2 -2
- package/cdn/components/step/step.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2YVFFSZ2.js +2 -2
- package/cdn-versioned/chunks/chunk.44VVOUNS.js +2 -2
- package/cdn-versioned/chunks/chunk.47MRK77Q.js +2 -2
- package/cdn-versioned/chunks/chunk.4B2UGI4Q.js +2 -2
- package/cdn-versioned/chunks/chunk.4BA5ZOGJ.js +2 -2
- package/cdn-versioned/chunks/chunk.4XOGRPML.js +2 -2
- package/cdn-versioned/chunks/chunk.4YIPRD2R.js +2 -2
- package/cdn-versioned/chunks/chunk.56CEBIDO.js +2 -2
- package/cdn-versioned/chunks/chunk.6K6UAUJB.js +2 -2
- package/cdn-versioned/chunks/chunk.6NT553UW.js +3 -3
- package/cdn-versioned/chunks/chunk.6YG52QHB.js +2 -2
- package/cdn-versioned/chunks/chunk.7CPADVOB.js +8 -8
- package/cdn-versioned/chunks/chunk.7FOCBEJX.js +2 -2
- package/cdn-versioned/chunks/chunk.AJWY5KT4.js +1 -1
- package/cdn-versioned/chunks/chunk.AQPYT3YS.js +2 -2
- package/cdn-versioned/chunks/chunk.BM3H7EWP.js +1 -1
- package/cdn-versioned/chunks/chunk.BNUZ66HV.js +2 -2
- package/cdn-versioned/chunks/chunk.CCBHAIEN.js +2 -2
- package/cdn-versioned/chunks/chunk.CDP46OS4.js +1 -1
- package/cdn-versioned/chunks/chunk.CMUYA4JA.js +2 -2
- package/cdn-versioned/chunks/chunk.CUX2GVLG.js +2 -2
- package/cdn-versioned/chunks/chunk.E2IHOEZ2.js +2 -2
- package/cdn-versioned/chunks/chunk.EPZHTJOD.js +2 -2
- package/cdn-versioned/chunks/chunk.FDIETORH.js +1 -1
- package/cdn-versioned/chunks/chunk.FGIDTNRY.js +2 -2
- package/cdn-versioned/chunks/chunk.FUFYA576.js +2 -2
- package/cdn-versioned/chunks/chunk.FZDWRR4M.js +2 -2
- package/cdn-versioned/chunks/chunk.H5OTIIDM.js +1 -1
- package/cdn-versioned/chunks/chunk.HW2XROMU.js +1 -1
- package/cdn-versioned/chunks/chunk.HXH2R7SD.js +2 -2
- package/cdn-versioned/chunks/chunk.JLPSMSYV.js +2 -2
- package/cdn-versioned/chunks/chunk.JS2HQ2N4.js +1 -1
- package/cdn-versioned/chunks/chunk.JV3CZSIV.js +2 -2
- package/cdn-versioned/chunks/chunk.K4PQBCFA.js +2 -2
- package/cdn-versioned/chunks/chunk.K5JMQ4UD.js +2 -2
- package/cdn-versioned/chunks/chunk.K647VAIN.js +2 -2
- package/cdn-versioned/chunks/chunk.KMYA4EDE.js +1 -1
- package/cdn-versioned/chunks/chunk.KOCOMSSL.js +2 -2
- package/cdn-versioned/chunks/chunk.N2D2FFWH.js +2 -2
- package/cdn-versioned/chunks/{chunk.SOZMBJQS.js → chunk.PNNFETDE.js} +2 -2
- package/cdn-versioned/chunks/chunk.PQLUBSLH.js +2 -2
- package/cdn-versioned/chunks/chunk.RY2KL7E3.js +1 -1
- package/cdn-versioned/chunks/chunk.SPW5M7X6.js +2 -2
- package/cdn-versioned/chunks/chunk.SQ7Q6ATD.js +2 -2
- package/cdn-versioned/chunks/chunk.T527FME4.js +2 -2
- package/cdn-versioned/chunks/chunk.TNXNTP3E.js +1 -1
- package/cdn-versioned/chunks/chunk.TQKGKW36.js +2 -2
- package/cdn-versioned/chunks/chunk.UHDNXYVU.js +1 -1
- package/cdn-versioned/chunks/chunk.V2RD6VHQ.js +3 -3
- package/cdn-versioned/chunks/chunk.V6OZYBBZ.js +2 -2
- package/cdn-versioned/chunks/chunk.VRBKTE6L.js +2 -2
- package/cdn-versioned/chunks/chunk.VVX7QSXX.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WDWBQF3Q.js +1 -1
- package/cdn-versioned/chunks/chunk.XM7DA5LT.js +5 -5
- package/cdn-versioned/chunks/chunk.XUSHLNK2.js +2 -2
- package/cdn-versioned/chunks/chunk.XVIS3URC.js +5 -5
- package/cdn-versioned/chunks/chunk.YFRDMK6W.js +2 -2
- package/cdn-versioned/chunks/chunk.YH3VRHVM.js +2 -2
- package/cdn-versioned/chunks/chunk.YYVAO5XU.js +2 -2
- package/cdn-versioned/chunks/chunk.ZRYG64PN.js +2 -2
- package/cdn-versioned/chunks/chunk.ZSTABGTZ.js +2 -2
- package/cdn-versioned/chunks/chunk.ZT3DQGPM.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/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +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/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.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 +1 -1
- 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 +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +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/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/theme-listener/theme-listener.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 +248 -248
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +78 -78
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +78 -78
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +94 -94
- package/cdn-versioned/web-types.json +163 -163
- package/dist/chunks/{chunk.264U7CMA.js → chunk.TQFVQIUF.js} +1 -1
- package/dist/components/step/step.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.2NCOG3MU.js +2 -2
- package/dist-versioned/chunks/chunk.342A5SCB.js +1 -1
- package/dist-versioned/chunks/chunk.36MFTGER.js +3 -3
- package/dist-versioned/chunks/chunk.3FNTXOOI.js +4 -4
- package/dist-versioned/chunks/chunk.52VGL2RV.js +2 -2
- package/dist-versioned/chunks/chunk.6AAIPQYI.js +3 -3
- package/dist-versioned/chunks/chunk.6E6VJJCZ.js +4 -4
- package/dist-versioned/chunks/chunk.723WXRZK.js +12 -12
- package/dist-versioned/chunks/chunk.7PCENRTO.js +12 -12
- package/dist-versioned/chunks/chunk.A7UPZVBX.js +4 -4
- package/dist-versioned/chunks/chunk.BPFUHSE6.js +4 -4
- package/dist-versioned/chunks/chunk.CCVS6SCT.js +4 -4
- package/dist-versioned/chunks/chunk.CREFZXWR.js +5 -5
- package/dist-versioned/chunks/chunk.CSMEO2UQ.js +8 -8
- package/dist-versioned/chunks/chunk.CSQ6UNT7.js +2 -2
- package/dist-versioned/chunks/chunk.DXTBP2P6.js +2 -2
- package/dist-versioned/chunks/chunk.DZS26LXZ.js +3 -3
- package/dist-versioned/chunks/chunk.ECSSDS7T.js +14 -14
- package/dist-versioned/chunks/chunk.EERHCK7O.js +6 -6
- package/dist-versioned/chunks/chunk.EMU4ZNFB.js +5 -5
- package/dist-versioned/chunks/chunk.GDO3P6PZ.js +1 -1
- package/dist-versioned/chunks/chunk.GP6R4ZF6.js +1 -1
- package/dist-versioned/chunks/chunk.HEU4LDJX.js +3 -3
- package/dist-versioned/chunks/chunk.HHTYBBNM.js +2 -2
- package/dist-versioned/chunks/chunk.HSMUS45Y.js +24 -24
- package/dist-versioned/chunks/chunk.HYD6CWKB.js +3 -3
- package/dist-versioned/chunks/chunk.ISASQGOE.js +11 -11
- package/dist-versioned/chunks/chunk.IUD4JFEG.js +24 -24
- package/dist-versioned/chunks/chunk.IXLKTULT.js +3 -3
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KR3X7M5B.js +5 -5
- package/dist-versioned/chunks/chunk.KS4PRECL.js +4 -4
- package/dist-versioned/chunks/chunk.LGBFWOCJ.js +4 -4
- package/dist-versioned/chunks/chunk.LJIVAP6V.js +1 -1
- package/dist-versioned/chunks/chunk.LOVLLOYE.js +7 -7
- package/dist-versioned/chunks/chunk.MASJX3XP.js +1 -1
- package/dist-versioned/chunks/chunk.OC76JBYD.js +2 -2
- package/dist-versioned/chunks/chunk.OILA72IM.js +1 -1
- package/dist-versioned/chunks/chunk.Q57H4HOI.js +7 -7
- package/dist-versioned/chunks/chunk.QH2KLXTB.js +3 -3
- package/dist-versioned/chunks/chunk.QQX5RCHL.js +8 -8
- package/dist-versioned/chunks/chunk.QYZE4ARE.js +3 -3
- package/dist-versioned/chunks/chunk.SF447PE7.js +2 -2
- package/dist-versioned/chunks/chunk.SGCOHQSI.js +26 -26
- package/dist-versioned/chunks/chunk.SWXSBRRQ.js +2 -2
- package/dist-versioned/chunks/chunk.SYXN6E4T.js +1 -1
- package/dist-versioned/chunks/chunk.SZ7IRQY4.js +3 -3
- package/dist-versioned/chunks/{chunk.264U7CMA.js → chunk.TQFVQIUF.js} +4 -4
- package/dist-versioned/chunks/chunk.U2RRRJY3.js +4 -4
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.VBJNVPBU.js +1 -1
- package/dist-versioned/chunks/chunk.VLIPMAVX.js +6 -6
- package/dist-versioned/chunks/chunk.WLZ64OXQ.js +6 -6
- package/dist-versioned/chunks/chunk.WN5EV4N3.js +4 -4
- package/dist-versioned/chunks/chunk.WTA5BTJL.js +5 -5
- package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
- package/dist-versioned/chunks/chunk.XTHUPXCS.js +8 -8
- package/dist-versioned/chunks/chunk.XTNHNEFI.js +2 -2
- package/dist-versioned/chunks/chunk.YHJOW7S3.js +2 -2
- package/dist-versioned/chunks/chunk.YIIMAPVO.js +2 -2
- package/dist-versioned/chunks/chunk.YSE5ZECP.js +1 -1
- package/dist-versioned/chunks/chunk.Z32LVC6A.js +5 -5
- package/dist-versioned/chunks/chunk.ZHEFFMES.js +3 -3
- 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/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +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/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.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 +1 -1
- 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 +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +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/step.js +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/theme-listener/theme-listener.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 +248 -248
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +94 -94
- package/dist-versioned/web-types.json +163 -163
- package/package.json +1 -1
|
@@ -55,7 +55,7 @@ var SdStepGroup = class extends SolidElement {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getAllSteps() {
|
|
58
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-0-0-next-
|
|
58
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-0-0-next-14-step");
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Sets the active step.
|
|
@@ -121,7 +121,7 @@ __decorateClass([
|
|
|
121
121
|
watch("notInteractive")
|
|
122
122
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
|
123
123
|
SdStepGroup = __decorateClass([
|
|
124
|
-
customElement("sd-6-0-0-next-
|
|
124
|
+
customElement("sd-6-0-0-next-14-step-group")
|
|
125
125
|
], SdStepGroup);
|
|
126
126
|
|
|
127
127
|
export {
|
|
@@ -98,7 +98,7 @@ var SdVideo = class extends SolidElement {
|
|
|
98
98
|
this.playing ? "opacity-0" : "opacity-100",
|
|
99
99
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
|
100
100
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2"
|
|
101
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-6-0-0-next-
|
|
101
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-6-0-0-next-14-icon id="default-play-icon" library="_internal" name="start"></sd-6-0-0-next-14-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>` : null}<slot></slot></div>`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
SdVideo.styles = [
|
|
@@ -116,7 +116,7 @@ __decorateClass([
|
|
|
116
116
|
property({ type: Boolean })
|
|
117
117
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
|
118
118
|
SdVideo = __decorateClass([
|
|
119
|
-
customElement("sd-6-0-0-next-
|
|
119
|
+
customElement("sd-6-0-0-next-14-video")
|
|
120
120
|
], SdVideo);
|
|
121
121
|
|
|
122
122
|
export {
|
|
@@ -209,7 +209,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
209
209
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "form-control-color-text",
|
|
210
210
|
["invalid", "activeInvalid"].includes(textareaState) && "form-control--invalid-color-background"
|
|
211
211
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
212
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-6-0-0-next-
|
|
212
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-6-0-0-next-14-icon]:pe-8",
|
|
213
213
|
{
|
|
214
214
|
sm: "py-1",
|
|
215
215
|
md: "py-1",
|
|
@@ -217,7 +217,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
217
217
|
}[this.size],
|
|
218
218
|
this.disabled && "cursor-not-allowed",
|
|
219
219
|
textSize
|
|
220
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-6-0-0-next-
|
|
220
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-6-0-0-next-14-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-6-0-0-next-14-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-6-0-0-next-14-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-6-0-0-next-14-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
221
221
|
}
|
|
222
222
|
};
|
|
223
223
|
/**
|
|
@@ -332,7 +332,7 @@ __decorateClass([
|
|
|
332
332
|
watch("value", { waitUntilFirstUpdate: true })
|
|
333
333
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
334
334
|
SdTextarea = __decorateClass([
|
|
335
|
-
customElement("sd-6-0-0-next-
|
|
335
|
+
customElement("sd-6-0-0-next-14-textarea")
|
|
336
336
|
], SdTextarea);
|
|
337
337
|
|
|
338
338
|
export {
|
|
@@ -37,8 +37,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
37
37
|
}
|
|
38
38
|
connectedCallback() {
|
|
39
39
|
const whenAllDefined = Promise.all([
|
|
40
|
-
customElements.whenDefined("sd-6-0-0-next-
|
|
41
|
-
customElements.whenDefined("sd-6-0-0-next-
|
|
40
|
+
customElements.whenDefined("sd-6-0-0-next-14-tab"),
|
|
41
|
+
customElements.whenDefined("sd-6-0-0-next-14-tab-panel")
|
|
42
42
|
]);
|
|
43
43
|
super.connectedCallback();
|
|
44
44
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -86,20 +86,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
86
86
|
}
|
|
87
87
|
getAllTabs(options = { includeDisabled: true }) {
|
|
88
88
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
89
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-6-0-0-next-
|
|
90
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-6-0-0-next-
|
|
89
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-6-0-0-next-14-tab" ? el : el.querySelector("sd-6-0-0-next-14-tab")).filter((el) => {
|
|
90
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-6-0-0-next-14-tab" : el.tagName.toLowerCase() === "sd-6-0-0-next-14-tab" && !el.disabled;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getAllPanels() {
|
|
94
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-0-0-next-
|
|
94
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-0-0-next-14-tab-panel");
|
|
95
95
|
}
|
|
96
96
|
getActiveTab() {
|
|
97
97
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
98
98
|
}
|
|
99
99
|
handleClick(event) {
|
|
100
100
|
const target = event.target;
|
|
101
|
-
const tab = target.closest("sd-6-0-0-next-
|
|
102
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-0-0-next-
|
|
101
|
+
const tab = target.closest("sd-6-0-0-next-14-tab");
|
|
102
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-0-0-next-14-tab-group");
|
|
103
103
|
if (tabGroup !== this) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -109,8 +109,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
109
109
|
}
|
|
110
110
|
handleKeyDown(event) {
|
|
111
111
|
const target = event.target;
|
|
112
|
-
const tab = target.closest("sd-6-0-0-next-
|
|
113
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-0-0-next-
|
|
112
|
+
const tab = target.closest("sd-6-0-0-next-14-tab");
|
|
113
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-0-0-next-14-tab-group");
|
|
114
114
|
if (tabGroup !== this) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
137
137
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
138
138
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
139
139
|
const isRtl = this.localize.dir() === "rtl";
|
|
140
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-6-0-0-next-
|
|
140
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-6-0-0-next-14-tab") {
|
|
141
141
|
let index = this.tabs.indexOf(activeEl);
|
|
142
142
|
if (event.key === "Home") {
|
|
143
143
|
index = 0;
|
|
@@ -258,16 +258,16 @@ var SdTabGroup = class extends SolidElement {
|
|
|
258
258
|
return html`<div part="base" class="${cx("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${cx(this.hasScrollControls && "relative py-0 px-12")}">${this.hasScrollControls ? html`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.left || void 0)}" class="${cx(
|
|
259
259
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
260
260
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
261
|
-
)}" @click="${this.handleScrollToStart}"><sd-6-0-0-next-
|
|
261
|
+
)}" @click="${this.handleScrollToStart}"><sd-6-0-0-next-14-icon library="_internal" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-0-0-next-14-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist">${((_a = this.activeTab) == null ? void 0 : _a.variant) !== "container" ? html`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30 navigable__current-indicator-height navigable__current-indicator-border-radius"></div>` : ""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.right || void 0)}" class="${cx(
|
|
262
262
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
263
263
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
264
|
-
)}" @click="${this.handleScrollToEnd}"><sd-6-0-0-next-
|
|
264
|
+
)}" @click="${this.handleScrollToEnd}"><sd-6-0-0-next-14-icon library="_internal" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-0-0-next-14-icon></button>` : ""}</div><slot part="body" class="${cx("block auto py-8 px-6", this.variant === "container" && "border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`;
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
SdTabGroup.styles = [
|
|
268
268
|
...SolidElement.styles,
|
|
269
269
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
270
|
-
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-0-0-next-
|
|
270
|
+
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-0-0-next-14-tab-panel){--padding:1rem 0}::slotted(sd-6-0-0-next-14-tab-panel:focus-visible){outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:rgba(var(--outline-color-primary))}`
|
|
271
271
|
];
|
|
272
272
|
__decorateClass([
|
|
273
273
|
query("[part=base]")
|
|
@@ -300,7 +300,7 @@ __decorateClass([
|
|
|
300
300
|
debounce(20)
|
|
301
301
|
], SdTabGroup.prototype, "handleScroll", 1);
|
|
302
302
|
SdTabGroup = __decorateClass([
|
|
303
|
-
customElement("sd-6-0-0-next-
|
|
303
|
+
customElement("sd-6-0-0-next-14-tab-group")
|
|
304
304
|
], SdTabGroup);
|
|
305
305
|
|
|
306
306
|
export {
|
|
@@ -63,7 +63,7 @@ var SdTag = class extends SolidElement {
|
|
|
63
63
|
const tag = isLink ? literal`a` : this.removable ? literal`div` : literal`button`;
|
|
64
64
|
return html`<${tag} part="base" type="${ifDefined(isLink ? void 0 : "button")}" href="${ifDefined(isLink ? this.href : void 0)}" rel="${ifDefined(isLink && this.target ? "noreferrer noopener" : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}" ?disabled="${ifDefined(isLink ? void 0 : this.disabled)}" aria-labelledby="content" aria-disabled="${this.disabled ? "true" : "false"}" aria-pressed="${ifDefined(this.toggleable ? this.selected : void 0)}" tabindex="${this.disabled || this.removable ? "-1" : "0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${cx(
|
|
65
65
|
/* basic styles of the wrapper */
|
|
66
|
-
"inline-flex border box-border sd-6-0-0-next-
|
|
66
|
+
"inline-flex border box-border sd-6-0-0-next-14-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",
|
|
67
67
|
{
|
|
68
68
|
/* sizes, fonts */
|
|
69
69
|
lg: "h-8 text-base gap-2",
|
|
@@ -76,11 +76,11 @@ var SdTag = class extends SolidElement {
|
|
|
76
76
|
}[this.size],
|
|
77
77
|
/* colors */
|
|
78
78
|
!this.selected ? cx(
|
|
79
|
-
"border-primary sd-6-0-0-next-
|
|
80
|
-
!this.removable ? "hover:border-primary-500 hover:text-primary-500 hover:sd-6-0-0-next-
|
|
81
|
-
) : "sd-6-0-0-next-
|
|
79
|
+
"border-primary sd-6-0-0-next-14-tag--default--default-color-text disabled:border-neutral-500 disabled:text-neutral-500",
|
|
80
|
+
!this.removable ? "hover:border-primary-500 hover:text-primary-500 hover:sd-6-0-0-next-14-tag--default--hover-color-background" : "has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500"
|
|
81
|
+
) : "sd-6-0-0-next-14-tag--selected-border-width sd-6-0-0-next-14-tag--selected--default-color-background sd-6-0-0-next-14-tag--selected--default-color-border sd-6-0-0-next-14-tag--selected--default-color-text hover:sd-6-0-0-next-14-tag--selected--hover-color-background hover:sd-6-0-0-next-14-tag--selected--hover-color-border hover:sd-6-0-0-next-14-tag--selected--hover-color-text disabled:bg-neutral-500 disabled:border-neutral-500",
|
|
82
82
|
this.disabled && !isLink && "cursor-not-allowed"
|
|
83
|
-
)}"><slot id="content" part="content"></slot>${this.removable && !isLink ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-6-0-0-next-
|
|
83
|
+
)}"><slot id="content" part="content"></slot>${this.removable && !isLink ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-6-0-0-next-14-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-6-0-0-next-14-icon></slot></button>` : ""}</${tag}>`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTag.styles = [
|
|
@@ -116,7 +116,7 @@ __decorateClass([
|
|
|
116
116
|
property({ reflect: true })
|
|
117
117
|
], SdTag.prototype, "download", 2);
|
|
118
118
|
SdTag = __decorateClass([
|
|
119
|
-
customElement("sd-6-0-0-next-
|
|
119
|
+
customElement("sd-6-0-0-next-14-tag")
|
|
120
120
|
], SdTag);
|
|
121
121
|
|
|
122
122
|
export {
|
|
@@ -206,16 +206,16 @@ var SdTooltip = class extends SolidElement {
|
|
|
206
206
|
render() {
|
|
207
207
|
const isStart = this.placement.endsWith("-start");
|
|
208
208
|
const isEnd = this.placement.endsWith("-end");
|
|
209
|
-
return html`<sd-6-0-0-next-
|
|
209
|
+
return html`<sd-6-0-0-next-14-popup part="base" exportparts="
|
|
210
210
|
popup:base__popup,
|
|
211
211
|
arrow:base__arrow
|
|
212
|
-
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-6-0-0-next-
|
|
212
|
+
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-6-0-0-next-14-icon library="_internal" name="info-circle" label="Tooltip" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-6-0-0-next-14-icon></button>`}<slot name="content" part="body" id="tooltip" class="sd-6-0-0-next-14-tooltip-color-background sd-6-0-0-next-14-tooltip-color-text py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="${this.content}" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-6-0-0-next-14-popup>`;
|
|
213
213
|
}
|
|
214
214
|
};
|
|
215
215
|
SdTooltip.styles = [
|
|
216
216
|
...SolidElement.styles,
|
|
217
217
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
218
|
-
:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-6-0-0-next-
|
|
218
|
+
:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-6-0-0-next-14-popup{--arrow-color:rgba(var(--sd-tooltip-color-background));--arrow-size:10px}sd-6-0-0-next-14-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-6-0-0-next-14-popup::part(arrow){--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgb(81 81 81 / 75%));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-6-0-0-next-14-popup[placement^=top]::part(popup){transform-origin:bottom}sd-6-0-0-next-14-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}:host [slot=anchor]{color:rgba(var(--sd-form-control__tooltip-color-icon))}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`
|
|
219
219
|
];
|
|
220
220
|
__decorateClass([
|
|
221
221
|
query("slot:not([name])")
|
|
@@ -224,7 +224,7 @@ __decorateClass([
|
|
|
224
224
|
query("#tooltip")
|
|
225
225
|
], SdTooltip.prototype, "body", 2);
|
|
226
226
|
__decorateClass([
|
|
227
|
-
query("sd-6-0-0-next-
|
|
227
|
+
query("sd-6-0-0-next-14-popup")
|
|
228
228
|
], SdTooltip.prototype, "popup", 2);
|
|
229
229
|
__decorateClass([
|
|
230
230
|
property({ type: String, reflect: true })
|
|
@@ -257,7 +257,7 @@ __decorateClass([
|
|
|
257
257
|
watch("disabled")
|
|
258
258
|
], SdTooltip.prototype, "handleDisabledChange", 1);
|
|
259
259
|
SdTooltip = __decorateClass([
|
|
260
|
-
customElement("sd-6-0-0-next-
|
|
260
|
+
customElement("sd-6-0-0-next-14-tooltip")
|
|
261
261
|
], SdTooltip);
|
|
262
262
|
setDefaultAnimation("tooltip.show", {
|
|
263
263
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -130,7 +130,7 @@ __decorateClass([
|
|
|
130
130
|
state()
|
|
131
131
|
], SdBrandshape.prototype, "componentBreakpoint", 2);
|
|
132
132
|
SdBrandshape = __decorateClass([
|
|
133
|
-
customElement("sd-6-0-0-next-
|
|
133
|
+
customElement("sd-6-0-0-next-14-brandshape")
|
|
134
134
|
], SdBrandshape);
|
|
135
135
|
|
|
136
136
|
export {
|
|
@@ -26,7 +26,7 @@ SdCarouselItem.styles = [
|
|
|
26
26
|
:host{aspect-ratio:var(--aspect-ratio);scroll-snap-align:start;scroll-snap-stop:always;display:flex;height:100%;width:100%;flex-direction:column;align-items:center;justify-content:center}::slotted(img){height:100%;width:100%;-o-object-fit:cover;object-fit:cover}`
|
|
27
27
|
];
|
|
28
28
|
SdCarouselItem = __decorateClass([
|
|
29
|
-
customElement("sd-6-0-0-next-
|
|
29
|
+
customElement("sd-6-0-0-next-14-carousel-item")
|
|
30
30
|
], SdCarouselItem);
|
|
31
31
|
|
|
32
32
|
export {
|
|
@@ -42,9 +42,9 @@ var SdTeaserMedia = class extends SolidElement {
|
|
|
42
42
|
"absolute inset-0",
|
|
43
43
|
{
|
|
44
44
|
white: "bg-white/[.8] group-hover:bg-white/90",
|
|
45
|
-
"neutral-100": "sd-6-0-0-next-
|
|
45
|
+
"neutral-100": "sd-6-0-0-next-14-teaser-media--neutral-100-color-background group-hover:sd-6-0-0-next-14-teaser-media--neutral-100--hover-color-background",
|
|
46
46
|
primary: "bg-primary/[.8] text-white group-hover:bg-primary/90",
|
|
47
|
-
"primary-100": "sd-6-0-0-next-
|
|
47
|
+
"primary-100": "sd-6-0-0-next-14-teaser-media--primary-100-color-background group-hover:sd-6-0-0-next-14-teaser-media--primary-100--hover-color-background",
|
|
48
48
|
"gradient-light": "bg-gradient-to-t from-white/90 to-white/[.8]",
|
|
49
49
|
"gradient-dark": "bg-gradient-to-t from-primary-800/90 to-primary-800/[.8]"
|
|
50
50
|
}[this.variant]
|
|
@@ -69,7 +69,7 @@ __decorateClass([
|
|
|
69
69
|
query('[part="base"]')
|
|
70
70
|
], SdTeaserMedia.prototype, "teaserMedia", 2);
|
|
71
71
|
SdTeaserMedia = __decorateClass([
|
|
72
|
-
customElement("sd-6-0-0-next-
|
|
72
|
+
customElement("sd-6-0-0-next-14-teaser-media")
|
|
73
73
|
], SdTeaserMedia);
|
|
74
74
|
|
|
75
75
|
export {
|
|
@@ -183,7 +183,7 @@ var SdDialog = class extends SolidElement {
|
|
|
183
183
|
)}"><div part="overlay" class="fixed inset-0 overlay-color-background opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
184
184
|
"panel-color-border border flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
185
185
|
this.open && "flex opacity-100"
|
|
186
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-6-0-0-next-
|
|
186
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-6-0-0-next-14-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-6-0-0-next-14-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-0-0-next-14-icon></sd-6-0-0-next-14-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`;
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
SdDialog.styles = [
|
|
@@ -213,7 +213,7 @@ __decorateClass([
|
|
|
213
213
|
watch("open", { waitUntilFirstUpdate: true })
|
|
214
214
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
215
215
|
SdDialog = __decorateClass([
|
|
216
|
-
customElement("sd-6-0-0-next-
|
|
216
|
+
customElement("sd-6-0-0-next-14-dialog")
|
|
217
217
|
], SdDialog);
|
|
218
218
|
setDefaultAnimation("dialog.show", {
|
|
219
219
|
keyframes: [
|
|
@@ -164,22 +164,22 @@ var SdButton = class extends SolidElement {
|
|
|
164
164
|
{
|
|
165
165
|
/* sizes, fonts */
|
|
166
166
|
sm: `text-sm varspacing-8 rounded-default ${hasBorder ? "py-[0.281rem] px-[0.938rem]" : "py-[0.344rem] px-4"}`,
|
|
167
|
-
md: `sd-6-0-0-next-
|
|
168
|
-
lg: `sd-6-0-0-next-
|
|
167
|
+
md: `sd-6-0-0-next-14-button--size-md-font-size sd-6-0-0-next-14-button--size-md-border-radius varspacing-10 ${hasBorder ? "py-[0.438rem] px-[0.938rem]" : "sd-6-0-0-next-14-button--size-md-padding-block px-4"}`,
|
|
168
|
+
lg: `sd-6-0-0-next-14-button--size-lg-font-size sd-6-0-0-next-14-button--size-lg-border-radius varspacing-12 ${hasBorder ? "py-[0.688rem] px-[0.938rem]" : "sd-6-0-0-next-14-button--size-lg-padding-block px-4"}`
|
|
169
169
|
}[this.size],
|
|
170
170
|
{
|
|
171
171
|
/* variants */
|
|
172
|
-
primary: !this.inverted ? `sd-6-0-0-next-
|
|
173
|
-
disabled:bg-neutral-500` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-0-0-next-
|
|
174
|
-
disabled:sd-6-0-0-next-
|
|
172
|
+
primary: !this.inverted ? `sd-6-0-0-next-14-button--primary--default-color-text ${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500" : "sd-6-0-0-next-14-button--primary--default-color-background border-transparent hover:text-primary-100 active:sd-6-0-0-next-14-button--primary--active-color-text"}
|
|
173
|
+
disabled:bg-neutral-500` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-0-0-next-14-button--primary--inverted--default-color-text sd-6-0-0-next-14-button--primary--inverted--default-color-background border-white hover:sd-6-0-0-next-14-button--primary--inverted--hover-color-text active:sd-6-0-0-next-14-button--primary--inverted--active-color-text"}
|
|
174
|
+
disabled:sd-6-0-0-next-14-button--inverted--disabled-color-background disabled:sd-6-0-0-next-14-button--inverted--disabled-color-border disabled:sd-6-0-0-next-14-button--inverted--disabled-color-text`,
|
|
175
175
|
secondary: !this.inverted ? `border ${this.visuallyDisabled ? "text-neutral-500 border-neutral-500 hover:text-neutral-500 hover:border-neutral-500 active:text-neutral-500 active:border-neutral-500" : "text-primary border-primary hover:text-primary-500 hover:border-primary-500 active:text-primary-800 active:border-primary-800"}
|
|
176
|
-
disabled:text-neutral-500 disabled:border-neutral-500` : `border ${this.visuallyDisabled ? "text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600" : "text-white border-white hover:sd-6-0-0-next-
|
|
177
|
-
disabled:sd-6-0-0-next-
|
|
176
|
+
disabled:text-neutral-500 disabled:border-neutral-500` : `border ${this.visuallyDisabled ? "text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600" : "text-white border-white hover:sd-6-0-0-next-14-button--secondary--inverted--hover-color-text hover:border-primary-100 active:text-primary-200"}
|
|
177
|
+
disabled:sd-6-0-0-next-14-button--inverted--disabled-color-border disabled:sd-6-0-0-next-14-button--inverted--disabled-color-text`,
|
|
178
178
|
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "text-neutral-500 hover:text-neutral-500 active:text-neutral-500" : "text-primary hover:text-primary-500 active:text-primary-800"}
|
|
179
|
-
disabled:text-neutral-500` : `border-transparent ${this.visuallyDisabled ? "text-neutral-600 hover:text-neutral-600 active:text-neutral-600" : "text-white hover:sd-6-0-0-next-
|
|
180
|
-
disabled:sd-6-0-0-next-
|
|
179
|
+
disabled:text-neutral-500` : `border-transparent ${this.visuallyDisabled ? "text-neutral-600 hover:text-neutral-600 active:text-neutral-600" : "text-white hover:sd-6-0-0-next-14-button--tertiary--inverted--hover-color-text active:text-primary-200"}
|
|
180
|
+
disabled:sd-6-0-0-next-14-button--inverted--disabled-color-text`,
|
|
181
181
|
cta: `${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "bg-accent-500 border-transparent"}
|
|
182
|
-
${!this.inverted ? "text-white disabled:bg-neutral-500 disabled:border-neutral-500 disabled:text-white" : "sd-6-0-0-next-
|
|
182
|
+
${!this.inverted ? "text-white disabled:bg-neutral-500 disabled:border-neutral-500 disabled:text-white" : "sd-6-0-0-next-14-button--cta--inverted--default-color-background sd-6-0-0-next-14-button--cta--inverted--default-color-text hover:sd-6-0-0-next-14-button--cta--inverted--hover-color-text active:sd-6-0-0-next-14-button--cta--inverted--active-color-text disabled:sd-6-0-0-next-14-button--inverted--disabled-color-background disabled:sd-6-0-0-next-14-button--inverted--disabled-color-border disabled:sd-6-0-0-next-14-button--inverted--disabled-color-text"}`
|
|
183
183
|
}[this.variant]
|
|
184
184
|
)}" ?disabled="${ifDefined(isLink ? void 0 : this.disabled)}" type="${ifDefined(isLink ? void 0 : this.type)}" title="${this.title}" name="${ifDefined(isLink ? void 0 : this.name)}" value="${ifDefined(isLink ? void 0 : this.value)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}" rel="${ifDefined(isLink && this.target ? "noreferrer noopener" : void 0)}" role="${ifDefined(isLink ? void 0 : "button")}" aria-disabled="${this.disabled || this.visuallyDisabled ? "true" : "false"}" aria-labelledby="content" tabindex="${this.disabled ? "-1" : "0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton() ? this.handleInvalid : null}" @click="${this.handleClick}"><div part="motion-wrapper" class="${cx(
|
|
185
185
|
"absolute inset-0 -z-10 overflow-hidden pointer-events-none ",
|
|
@@ -187,24 +187,24 @@ var SdButton = class extends SolidElement {
|
|
|
187
187
|
{
|
|
188
188
|
/* sizes, fonts */
|
|
189
189
|
sm: `rounded-default`,
|
|
190
|
-
md: `sd-6-0-0-next-
|
|
191
|
-
lg: `sd-6-0-0-next-
|
|
190
|
+
md: `sd-6-0-0-next-14-button--size-md-border-radius`,
|
|
191
|
+
lg: `sd-6-0-0-next-14-button--size-lg-border-radius`
|
|
192
192
|
}[this.size]
|
|
193
193
|
)}"><div class="absolute inset-0 w-full h-full transition-all duration-fast translate-y-full group-hover:translate-y-0 group-hover:mt-[-22%] mt-[11%]"><div class="${cx(
|
|
194
194
|
"absolute right-0 min-w-full min-h-full aspect-square skew-y-[-11deg] mt-[11%]",
|
|
195
195
|
{
|
|
196
|
-
primary: !this.inverted ? "sd-6-0-0-next-
|
|
197
|
-
secondary: !this.inverted ? "sd-6-0-0-next-
|
|
198
|
-
tertiary: !this.inverted ? "sd-6-0-0-next-
|
|
199
|
-
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-0-0-next-
|
|
196
|
+
primary: !this.inverted ? "sd-6-0-0-next-14-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-0-0-next-14-button--primary--inverted--hover-color-background group-active:bg-primary-200",
|
|
197
|
+
secondary: !this.inverted ? "sd-6-0-0-next-14-button--secondary--hover-color-background group-active:sd-6-0-0-next-14-button--secondary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-14-button--secondary--inverted--active-color-background",
|
|
198
|
+
tertiary: !this.inverted ? "sd-6-0-0-next-14-button--tertiary--hover-color-background group-active:sd-6-0-0-next-14-button--tertiary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-14-button--tertiary--inverted--active-color-background",
|
|
199
|
+
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-0-0-next-14-button--cta--inverted--hover-color-background group-active:sd-6-0-0-next-14-button--cta--inverted--active-color-background"
|
|
200
200
|
}[this.variant]
|
|
201
201
|
)}"></div><div class="${cx(
|
|
202
202
|
"absolute w-full h-full mt-[22%]",
|
|
203
203
|
{
|
|
204
|
-
primary: !this.inverted ? "sd-6-0-0-next-
|
|
205
|
-
secondary: !this.inverted ? "sd-6-0-0-next-
|
|
206
|
-
tertiary: !this.inverted ? "sd-6-0-0-next-
|
|
207
|
-
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-0-0-next-
|
|
204
|
+
primary: !this.inverted ? "sd-6-0-0-next-14-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-0-0-next-14-button--primary--inverted--hover-color-background group-active:bg-primary-200",
|
|
205
|
+
secondary: !this.inverted ? "sd-6-0-0-next-14-button--secondary--hover-color-background group-active:sd-6-0-0-next-14-button--secondary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-14-button--secondary--inverted--active-color-background",
|
|
206
|
+
tertiary: !this.inverted ? "sd-6-0-0-next-14-button--tertiary--hover-color-background group-active:sd-6-0-0-next-14-button--tertiary--active-color-background" : "bg-primary-500 group-active:sd-6-0-0-next-14-button--tertiary--inverted--active-color-background",
|
|
207
|
+
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-0-0-next-14-button--cta--inverted--hover-color-background group-active:sd-6-0-0-next-14-button--cta--inverted--active-color-background"
|
|
208
208
|
}[this.variant]
|
|
209
209
|
)}"></div></div></div><slot name="icon-left" part="icon-left" class="${cx(
|
|
210
210
|
"flex flex-auto items-center justify-end pointer-events-none",
|
|
@@ -228,7 +228,7 @@ var SdButton = class extends SolidElement {
|
|
|
228
228
|
md: "ml-2",
|
|
229
229
|
lg: "ml-2"
|
|
230
230
|
}[this.size]
|
|
231
|
-
)}"></slot>${this.loading ? html`<sd-6-0-0-next-
|
|
231
|
+
)}"></slot>${this.loading ? html`<sd-6-0-0-next-14-loader class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-6-0-0-next-14-loader>` : ""}</${tag}>`;
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
/**
|
|
@@ -237,13 +237,13 @@ var SdButton = class extends SolidElement {
|
|
|
237
237
|
SdButton.styles = [
|
|
238
238
|
...SolidElement.styles,
|
|
239
239
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
240
|
-
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-0-0-next-
|
|
240
|
+
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-0-0-next-14-badge){pointer-events:none;position:absolute;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);--tw-translate-x:calc(1/2 * 100%)!important;--tw-translate-y:calc(calc(1/2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}::slotted(sd-6-0-0-next-14-icon),sd-6-0-0-next-14-loader{font-size:calc(var(--tw-varspacing)/ 2)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}`
|
|
241
241
|
];
|
|
242
242
|
__decorateClass([
|
|
243
243
|
query("a, button")
|
|
244
244
|
], SdButton.prototype, "button", 2);
|
|
245
245
|
__decorateClass([
|
|
246
|
-
queryAssignedElements({ selector: "sd-6-0-0-next-
|
|
246
|
+
queryAssignedElements({ selector: "sd-6-0-0-next-14-icon" })
|
|
247
247
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
248
248
|
__decorateClass([
|
|
249
249
|
state()
|
|
@@ -309,7 +309,7 @@ __decorateClass([
|
|
|
309
309
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
310
310
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
311
311
|
SdButton = __decorateClass([
|
|
312
|
-
customElement("sd-6-0-0-next-
|
|
312
|
+
customElement("sd-6-0-0-next-14-button")
|
|
313
313
|
], SdButton);
|
|
314
314
|
|
|
315
315
|
export {
|
|
@@ -97,7 +97,7 @@ var SdMenu = class extends SolidElement {
|
|
|
97
97
|
}
|
|
98
98
|
isMenuItem(item) {
|
|
99
99
|
var _a;
|
|
100
|
-
return item.tagName.toLowerCase() === "sd-6-0-0-next-
|
|
100
|
+
return item.tagName.toLowerCase() === "sd-6-0-0-next-14-menu-item" || ["menuitem", "menuitemcheckbox", "menuitemradio"].includes((_a = item.getAttribute("role")) != null ? _a : "");
|
|
101
101
|
}
|
|
102
102
|
/** @internal Gets all slotted menu items, ignoring dividers, headers, and other elements. */
|
|
103
103
|
getAllItems() {
|
|
@@ -132,13 +132,13 @@ var SdMenu = class extends SolidElement {
|
|
|
132
132
|
SdMenu.styles = [
|
|
133
133
|
...SolidElement.styles,
|
|
134
134
|
css`/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
135
|
-
:host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-6-0-0-next-
|
|
135
|
+
:host{position:relative;display:block;overflow:auto;overscroll-behavior:auto;border-radius:var(--sd-radius-md);padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--tw-shadow:var(--sd-shadow)!important;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)!important}::slotted(sd-6-0-0-next-14-divider){padding-block:var(--sd-spacing-3)}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}`
|
|
136
136
|
];
|
|
137
137
|
__decorateClass([
|
|
138
138
|
query("slot")
|
|
139
139
|
], SdMenu.prototype, "defaultSlot", 2);
|
|
140
140
|
SdMenu = __decorateClass([
|
|
141
|
-
customElement("sd-6-0-0-next-
|
|
141
|
+
customElement("sd-6-0-0-next-14-menu")
|
|
142
142
|
], SdMenu);
|
|
143
143
|
|
|
144
144
|
export {
|
|
@@ -17,19 +17,19 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
handleFocus(event) {
|
|
19
19
|
const button = findButton(event.target);
|
|
20
|
-
button == null ? void 0 : button.classList.add("sd-6-0-0-next-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-6-0-0-next-14-button-group__button--focus");
|
|
21
21
|
}
|
|
22
22
|
handleBlur(event) {
|
|
23
23
|
const button = findButton(event.target);
|
|
24
|
-
button == null ? void 0 : button.classList.remove("sd-6-0-0-next-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-6-0-0-next-14-button-group__button--focus");
|
|
25
25
|
}
|
|
26
26
|
handleMouseOver(event) {
|
|
27
27
|
const button = findButton(event.target);
|
|
28
|
-
button == null ? void 0 : button.classList.add("sd-6-0-0-next-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-6-0-0-next-14-button-group__button--hover");
|
|
29
29
|
}
|
|
30
30
|
handleMouseOut(event) {
|
|
31
31
|
const button = findButton(event.target);
|
|
32
|
-
button == null ? void 0 : button.classList.remove("sd-6-0-0-next-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-6-0-0-next-14-button-group__button--hover");
|
|
33
33
|
}
|
|
34
34
|
handleSlotChange() {
|
|
35
35
|
const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
|
|
@@ -37,11 +37,11 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
37
37
|
const index = slottedElements.indexOf(el);
|
|
38
38
|
const button = findButton(el);
|
|
39
39
|
if (button !== null) {
|
|
40
|
-
button.classList.add("sd-6-0-0-next-
|
|
41
|
-
button.classList.toggle("sd-6-0-0-next-
|
|
42
|
-
button.classList.toggle("sd-6-0-0-next-
|
|
43
|
-
button.classList.toggle("sd-6-0-0-next-
|
|
44
|
-
button.classList.toggle("sd-6-0-0-next-
|
|
40
|
+
button.classList.add("sd-6-0-0-next-14-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-6-0-0-next-14-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-6-0-0-next-14-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-6-0-0-next-14-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-6-0-0-next-14-button-group__button--radio", button.tagName.toLowerCase() === "sd-6-0-0-next-14-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -64,11 +64,11 @@ __decorateClass([
|
|
|
64
64
|
property({ type: String, reflect: true })
|
|
65
65
|
], SdButtonGroup.prototype, "label", 2);
|
|
66
66
|
SdButtonGroup = __decorateClass([
|
|
67
|
-
customElement("sd-6-0-0-next-
|
|
67
|
+
customElement("sd-6-0-0-next-14-button-group")
|
|
68
68
|
], SdButtonGroup);
|
|
69
69
|
function findButton(el) {
|
|
70
70
|
var _a;
|
|
71
|
-
const selector = "sd-6-0-0-next-
|
|
71
|
+
const selector = "sd-6-0-0-next-14-button, sd-6-0-0-next-14-radio-button";
|
|
72
72
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
73
73
|
}
|
|
74
74
|
|