@solid-design-system/components 7.0.0-next.6 → 7.0.0-next.7
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.NB6QF25Q.js +2 -0
- package/cdn/components/header/header.d.ts +1 -0
- package/cdn/components/header/header.js +1 -1
- package/cdn/custom-elements.json +24 -4
- package/cdn/solid-components.bundle.js +33 -33
- package/cdn/solid-components.iife.js +31 -31
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +7 -2
- package/cdn/web-types.json +14 -4
- package/cdn-versioned/chunks/chunk.2G3IPD56.js +2 -2
- package/cdn-versioned/chunks/chunk.3NQGT32X.js +2 -2
- package/cdn-versioned/chunks/chunk.3TH3ZR3I.js +2 -2
- package/cdn-versioned/chunks/chunk.43BVYRG3.js +2 -2
- package/cdn-versioned/chunks/chunk.4D6X7ON2.js +2 -2
- package/cdn-versioned/chunks/chunk.4RJE4TI4.js +2 -2
- package/cdn-versioned/chunks/chunk.4SDWX3GC.js +1 -1
- package/cdn-versioned/chunks/chunk.4UZPAOHT.js +2 -2
- package/cdn-versioned/chunks/chunk.4V7ZA4G4.js +2 -2
- package/cdn-versioned/chunks/chunk.4VWHE6IJ.js +2 -2
- package/cdn-versioned/chunks/chunk.5GCVGJ23.js +2 -2
- package/cdn-versioned/chunks/chunk.626XPPWD.js +2 -2
- package/cdn-versioned/chunks/chunk.64ZBR7T2.js +2 -2
- package/cdn-versioned/chunks/chunk.7HGJUXD2.js +2 -2
- package/cdn-versioned/chunks/chunk.7X2WZGVP.js +3 -3
- package/cdn-versioned/chunks/chunk.AFIMLGBS.js +3 -3
- package/cdn-versioned/chunks/chunk.B5TIWX7C.js +2 -2
- package/cdn-versioned/chunks/chunk.C45254AN.js +2 -2
- package/cdn-versioned/chunks/chunk.C4BSOGLY.js +1 -1
- package/cdn-versioned/chunks/chunk.D6JILLMB.js +3 -3
- package/cdn-versioned/chunks/chunk.DK2NRNHC.js +2 -2
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.EDB7WM3C.js +2 -2
- package/cdn-versioned/chunks/chunk.EW3C6EAI.js +1 -1
- package/cdn-versioned/chunks/chunk.GTAM35BO.js +2 -2
- package/cdn-versioned/chunks/chunk.H6DSYZZ5.js +2 -2
- package/cdn-versioned/chunks/chunk.HPSXEVMH.js +2 -2
- package/cdn-versioned/chunks/chunk.IHNJ7SE7.js +2 -2
- package/cdn-versioned/chunks/chunk.INUOCLNI.js +1 -1
- package/cdn-versioned/chunks/chunk.IPT2IS3C.js +2 -2
- package/cdn-versioned/chunks/chunk.IUTTUDYG.js +2 -2
- package/cdn-versioned/chunks/chunk.KFO7GTE5.js +2 -2
- package/cdn-versioned/chunks/chunk.KGIRFMVB.js +2 -2
- package/cdn-versioned/chunks/chunk.KIKLU2QF.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MCV2O2DW.js +2 -2
- package/cdn-versioned/chunks/chunk.MMSVMSOT.js +1 -1
- package/cdn-versioned/chunks/chunk.NB6QF25Q.js +2 -0
- package/cdn-versioned/chunks/chunk.NIP2E7XF.js +2 -2
- package/cdn-versioned/chunks/chunk.O45L6PM3.js +5 -5
- package/cdn-versioned/chunks/chunk.ONEC2JGA.js +2 -2
- package/cdn-versioned/chunks/chunk.OR425KE3.js +2 -2
- package/cdn-versioned/chunks/chunk.PINAEP5F.js +2 -2
- package/cdn-versioned/chunks/chunk.Q235YK2W.js +2 -2
- package/cdn-versioned/chunks/chunk.Q7MQTMXO.js +2 -2
- package/cdn-versioned/chunks/chunk.RHWN47DZ.js +2 -2
- package/cdn-versioned/chunks/chunk.SDWSZX52.js +10 -10
- package/cdn-versioned/chunks/chunk.SPIJDZMD.js +2 -2
- package/cdn-versioned/chunks/chunk.SS7M4TZ3.js +2 -2
- package/cdn-versioned/chunks/chunk.SXCJQBLJ.js +2 -2
- package/cdn-versioned/chunks/chunk.TEZ5ERKR.js +5 -5
- package/cdn-versioned/chunks/chunk.TQIQNEOY.js +1 -1
- package/cdn-versioned/chunks/chunk.UQD7EJTJ.js +2 -2
- package/cdn-versioned/chunks/chunk.V65AWGU4.js +1 -1
- package/cdn-versioned/chunks/chunk.VGGACO4K.js +2 -2
- package/cdn-versioned/chunks/chunk.VUEVAYFK.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WUMIGCKG.js +2 -2
- package/cdn-versioned/chunks/chunk.X66Q6CFQ.js +2 -2
- package/cdn-versioned/chunks/chunk.XYOC42VA.js +2 -2
- package/cdn-versioned/chunks/chunk.Y22AL5IU.js +2 -2
- package/cdn-versioned/chunks/chunk.Z4LHGWSU.js +1 -1
- package/cdn-versioned/chunks/chunk.ZDVA3JMZ.js +1 -1
- package/cdn-versioned/chunks/chunk.ZHYZWUO3.js +2 -2
- 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 +2 -1
- package/cdn-versioned/components/header/header.js +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/progress-bar/progress-bar.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/skeleton/skeleton.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/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 +283 -263
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +84 -84
- package/cdn-versioned/solid-components.css +3 -3
- package/cdn-versioned/solid-components.iife.js +84 -84
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +120 -115
- package/cdn-versioned/web-types.json +182 -172
- package/dist/chunks/{chunk.4KUVWN2I.js → chunk.5HSSTHMW.js} +5 -1
- package/dist/components/header/header.d.ts +1 -0
- package/dist/components/header/header.js +1 -1
- package/dist/custom-elements.json +24 -4
- package/dist/solid-components.js +6 -6
- package/dist/vscode.html-custom-data.json +7 -2
- package/dist/web-types.json +14 -4
- package/dist-versioned/chunks/{chunk.4KUVWN2I.js → chunk.5HSSTHMW.js} +7 -3
- package/dist-versioned/chunks/chunk.6ETKGDC3.js +13 -13
- package/dist-versioned/chunks/chunk.6O4N7F3K.js +3 -3
- package/dist-versioned/chunks/chunk.6UABH73N.js +23 -23
- package/dist-versioned/chunks/chunk.742523X2.js +6 -6
- package/dist-versioned/chunks/chunk.7MHQG3BX.js +1 -1
- package/dist-versioned/chunks/chunk.7PKQECKN.js +5 -5
- package/dist-versioned/chunks/chunk.7QL6Y47O.js +3 -3
- package/dist-versioned/chunks/chunk.7WPBGXB4.js +1 -1
- package/dist-versioned/chunks/chunk.AMARMKJU.js +3 -3
- package/dist-versioned/chunks/chunk.BDDLMKAK.js +1 -1
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.D3Q6NREV.js +1 -1
- package/dist-versioned/chunks/chunk.DC2F6ZIN.js +12 -12
- package/dist-versioned/chunks/chunk.DCUIQILU.js +7 -7
- package/dist-versioned/chunks/chunk.DMQ52GO3.js +2 -2
- package/dist-versioned/chunks/chunk.DZ77XUG2.js +11 -11
- package/dist-versioned/chunks/chunk.E7RWXJJE.js +11 -11
- package/dist-versioned/chunks/chunk.EH7PG7IH.js +2 -2
- package/dist-versioned/chunks/chunk.EKH7JJ3U.js +25 -25
- package/dist-versioned/chunks/chunk.GVPPHUUS.js +5 -5
- package/dist-versioned/chunks/chunk.GWWM46XG.js +7 -7
- package/dist-versioned/chunks/chunk.HB3VBJFC.js +10 -10
- package/dist-versioned/chunks/chunk.K22CCY63.js +3 -3
- package/dist-versioned/chunks/chunk.K4ZSZPTN.js +2 -2
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KYX4HLN2.js +7 -7
- package/dist-versioned/chunks/chunk.LDTZNWTZ.js +6 -6
- package/dist-versioned/chunks/chunk.LUR5ATJB.js +6 -6
- package/dist-versioned/chunks/chunk.MEMOQ3W7.js +5 -5
- package/dist-versioned/chunks/chunk.MJ6KXGSO.js +5 -5
- package/dist-versioned/chunks/chunk.N5OTEAT2.js +6 -6
- package/dist-versioned/chunks/chunk.NPYCKWWW.js +10 -10
- package/dist-versioned/chunks/chunk.NXG4DNKU.js +12 -12
- package/dist-versioned/chunks/chunk.PUT4P7PK.js +2 -2
- package/dist-versioned/chunks/chunk.QGERTGJH.js +4 -4
- package/dist-versioned/chunks/chunk.RZXU2X5Z.js +2 -2
- package/dist-versioned/chunks/chunk.S3DD4YSN.js +4 -4
- package/dist-versioned/chunks/chunk.SCWFNFSN.js +4 -4
- package/dist-versioned/chunks/chunk.SOX43MJ5.js +4 -4
- package/dist-versioned/chunks/chunk.T2ZFQMV6.js +8 -8
- package/dist-versioned/chunks/chunk.TNLAM4ZT.js +3 -3
- package/dist-versioned/chunks/chunk.UGIF26DH.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V4ILSVMF.js +4 -4
- package/dist-versioned/chunks/chunk.V54VIV3V.js +1 -1
- package/dist-versioned/chunks/chunk.VDQBK7ZK.js +2 -2
- package/dist-versioned/chunks/chunk.VLMSLPLL.js +10 -10
- package/dist-versioned/chunks/chunk.VWGMR2Y5.js +5 -5
- package/dist-versioned/chunks/chunk.VYBHDB7F.js +11 -11
- package/dist-versioned/chunks/chunk.WIKRI7YB.js +5 -5
- package/dist-versioned/chunks/chunk.WKUNYCQZ.js +3 -3
- package/dist-versioned/chunks/chunk.X32Z3OP3.js +14 -14
- package/dist-versioned/chunks/chunk.XQBLC5E4.js +5 -5
- package/dist-versioned/chunks/chunk.Y6MMHW4A.js +1 -1
- package/dist-versioned/chunks/chunk.YAI4GVXU.js +6 -6
- package/dist-versioned/chunks/chunk.YFUYD54K.js +42 -42
- package/dist-versioned/chunks/chunk.YVAYTWVV.js +1 -1
- package/dist-versioned/chunks/chunk.Z4X2ORYU.js +5 -5
- package/dist-versioned/chunks/chunk.Z7VTXC25.js +2 -2
- package/dist-versioned/chunks/chunk.ZMCHJLGT.js +10 -10
- package/dist-versioned/chunks/chunk.ZWSPJTPP.js +5 -5
- package/dist-versioned/chunks/chunk.ZXPU2CGW.js +3 -3
- package/dist-versioned/chunks/chunk.ZXTMNMQT.js +2 -2
- 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 +2 -1
- package/dist-versioned/components/header/header.js +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/progress-bar/progress-bar.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/skeleton/skeleton.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/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 +283 -263
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +3 -3
- package/dist-versioned/solid-components.js +6 -6
- package/dist-versioned/vscode.html-custom-data.json +120 -115
- package/dist-versioned/web-types.json +182 -172
- package/package.json +1 -1
- package/cdn/chunks/chunk.YQHNJLIR.js +0 -2
- package/cdn-versioned/chunks/chunk.YQHNJLIR.js +0 -2
|
@@ -211,22 +211,22 @@ var SdNotification = class extends SolidElement {
|
|
|
211
211
|
warning: "bg-warning",
|
|
212
212
|
error: "bg-error"
|
|
213
213
|
}[this.variant]
|
|
214
|
-
)}"><sd-7-0-0-next-
|
|
214
|
+
)}"><sd-7-0-0-next-7-icon name="${{
|
|
215
215
|
info: "info-circle",
|
|
216
216
|
success: "confirm-circle",
|
|
217
217
|
warning: "exclamation-circle",
|
|
218
218
|
error: "warning"
|
|
219
|
-
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-7-0-0-next-
|
|
219
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-7-0-0-next-7-icon></slot><div part="content" class="${cx(
|
|
220
220
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
221
|
-
"border-solid border-[1px] border-l-0 sd-7-0-0-next-
|
|
221
|
+
"border-solid border-[1px] border-l-0 sd-7-0-0-next-7-notification-color-border",
|
|
222
222
|
{
|
|
223
|
-
info: "sd-7-0-0-next-
|
|
224
|
-
success: "sd-7-0-0-next-
|
|
225
|
-
warning: "sd-7-0-0-next-
|
|
226
|
-
error: "sd-7-0-0-next-
|
|
223
|
+
info: "sd-7-0-0-next-7-notification--info-color-background",
|
|
224
|
+
success: "sd-7-0-0-next-7-notification--success-color-background",
|
|
225
|
+
warning: "sd-7-0-0-next-7-notification--warning-color-background",
|
|
226
|
+
error: "sd-7-0-0-next-7-notification--error-color-background"
|
|
227
227
|
}[this.variant]
|
|
228
|
-
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-7-0-0-next-
|
|
229
|
-
`absolute w-0 h-[2px] bottom-0 sd-7-0-0-next-
|
|
228
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-7-0-0-next-7-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-7-0-0-next-7-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-7-0-0-next-7-icon></sd-7-0-0-next-7-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(
|
|
229
|
+
`absolute w-0 h-[2px] bottom-0 sd-7-0-0-next-7-notification__duration-indicator-color-background z-10 animate-grow`
|
|
230
230
|
)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>` : ""}</div></div>`;
|
|
231
231
|
}
|
|
232
232
|
};
|
|
@@ -272,7 +272,7 @@ __decorateClass([
|
|
|
272
272
|
watch("duration")
|
|
273
273
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
274
274
|
SdNotification = __decorateClass([
|
|
275
|
-
customElement("sd-7-0-0-next-
|
|
275
|
+
customElement("sd-7-0-0-next-7-notification")
|
|
276
276
|
], SdNotification);
|
|
277
277
|
setDefaultAnimation("notification.show", {
|
|
278
278
|
keyframes: [
|
|
@@ -31,12 +31,12 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
31
31
|
this.expandable && "cursor-pointer select-none"
|
|
32
32
|
)}" role="${ifDefined(this.expandable ? "button" : void 0)}" aria-expanded="${ifDefined(this.expandable ? this.open ? "true" : "false" : void 0)}" aria-controls="${ifDefined(this.expandable ? "content" : void 0)}" tabindex="${this.expandable ? "0" : "-1"}" @click="${this.expandable ? this.handleSummaryClick : null}" @keydown="${this.expandable ? this.handleSummaryKeyDown : null}"><div part="icon" class="${cx("flex flex-grow-0 flex-shrink-0 flex-auto items-center", !this.expandable && "cursor-default")}"><slot name="icon"></slot></div><slot name="summary" part="summary" class="${cx(
|
|
33
33
|
"flex flex-auto items-start text-left text-base leading-normal font-normal sm:leading-tight sm:text-3xl sm:text-center",
|
|
34
|
-
this.expandable ? "sd-7-0-0-next-
|
|
34
|
+
this.expandable ? "sd-7-0-0-next-7-quickfact--expandable-color-text" : "text-black cursor-default"
|
|
35
35
|
)}">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
36
36
|
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-transform ease-in-out duration-medium text-xl sm:mt-2",
|
|
37
37
|
this.open && "rotate-180",
|
|
38
38
|
!this.expandable && "hidden"
|
|
39
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-7-0-0-next-
|
|
39
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-7-0-0-next-7-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-7-0-0-next-7-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-7-0-0-next-7-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-7-0-0-next-7-icon></slot></span></${header}><div part="content" id="content" class="${cx("overflow-hidden", !this.expandable && "hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></${base}>`;
|
|
40
40
|
}
|
|
41
41
|
};
|
|
42
42
|
SdQuickfact.styles = [
|
|
@@ -48,7 +48,7 @@ __decorateClass([
|
|
|
48
48
|
property({ type: Boolean, reflect: true })
|
|
49
49
|
], SdQuickfact.prototype, "expandable", 2);
|
|
50
50
|
SdQuickfact = __decorateClass([
|
|
51
|
-
customElement("sd-7-0-0-next-
|
|
51
|
+
customElement("sd-7-0-0-next-7-quickfact")
|
|
52
52
|
], SdQuickfact);
|
|
53
53
|
setDefaultAnimation("quickfact.show", {
|
|
54
54
|
keyframes: [{ height: "0" }, { height: "auto" }],
|
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
SdLink.styles = [
|
|
85
85
|
...SolidElement.styles,
|
|
86
86
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
87
|
-
::slotted(sd-7-0-0-next-
|
|
87
|
+
::slotted(sd-7-0-0-next-7-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-7-0-0-next-7-icon){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=lg][standalone]) ::slotted(sd-7-0-0-next-7-icon){font-size:var(--sd-text-xl);line-height:var(--tw-leading,var(--text-xl--line-height,calc(1.75 / 1.25)))}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query("a")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
property({ reflect: true })
|
|
112
112
|
], SdLink.prototype, "download", 2);
|
|
113
113
|
SdLink = __decorateClass([
|
|
114
|
-
customElement("sd-7-0-0-next-
|
|
114
|
+
customElement("sd-7-0-0-next-7-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -48,7 +48,7 @@ var SubmenuController = class {
|
|
|
48
48
|
if (event.target === this.host) {
|
|
49
49
|
event.preventDefault();
|
|
50
50
|
event.stopPropagation();
|
|
51
|
-
} else if (event.target instanceof Element && (event.target.tagName === "sd-7-0-0-next-
|
|
51
|
+
} else if (event.target instanceof Element && (event.target.tagName === "sd-7-0-0-next-7-menu-item" || ((_a = event.target.role) == null ? void 0 : _a.startsWith("menuitem")))) {
|
|
52
52
|
const type = event.target.getAttribute("type");
|
|
53
53
|
if (type !== "checkbox") {
|
|
54
54
|
this.disableSubmenu();
|
|
@@ -69,7 +69,7 @@ var SubmenuController = class {
|
|
|
69
69
|
// Set the safe triangle values for the submenu when the position changes
|
|
70
70
|
this.handlePopupReposition = () => {
|
|
71
71
|
const submenuSlot = this.host.renderRoot.querySelector("slot[name='submenu']");
|
|
72
|
-
const menu = submenuSlot == null ? void 0 : submenuSlot.assignedElements({ flatten: true }).filter((el) => el.localName === "sd-7-0-0-next-
|
|
72
|
+
const menu = submenuSlot == null ? void 0 : submenuSlot.assignedElements({ flatten: true }).filter((el) => el.localName === "sd-7-0-0-next-7-menu")[0];
|
|
73
73
|
const isRtl = getComputedStyle(this.host).direction === "rtl";
|
|
74
74
|
if (!menu) {
|
|
75
75
|
return;
|
|
@@ -141,7 +141,7 @@ var SubmenuController = class {
|
|
|
141
141
|
}
|
|
142
142
|
let menuItems = null;
|
|
143
143
|
for (const elt of submenuSlot.assignedElements()) {
|
|
144
|
-
menuItems = elt.querySelectorAll("sd-7-0-0-next-
|
|
144
|
+
menuItems = elt.querySelectorAll("sd-7-0-0-next-7-menu-item, [role^='menuitem']");
|
|
145
145
|
if (menuItems.length !== 0) {
|
|
146
146
|
break;
|
|
147
147
|
}
|
|
@@ -220,7 +220,7 @@ var SubmenuController = class {
|
|
|
220
220
|
if (!this.isConnected) {
|
|
221
221
|
return html`<slot name="submenu" hidden></slot>`;
|
|
222
222
|
}
|
|
223
|
-
return html`<sd-7-0-0-next-
|
|
223
|
+
return html`<sd-7-0-0-next-7-popup ${ref(this.popupRef)} placement="${isRtl ? "left-start" : "right-start"}" anchor="anchor" flip flip-fallback-strategy="best-fit" skidding="${this.skidding}" strategy="fixed" auto-size="vertical" auto-size-padding="10"><slot name="submenu"></slot></sd-7-0-0-next-7-popup>`;
|
|
224
224
|
}
|
|
225
225
|
};
|
|
226
226
|
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<div class="flex flex-col"><label part="base" class="${cx(
|
|
121
|
-
"sd-7-0-0-next-
|
|
121
|
+
"sd-7-0-0-next-7-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
|
122
122
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
123
123
|
{
|
|
124
124
|
/* sizes, fonts */
|
|
@@ -127,7 +127,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
127
127
|
lg: "text-base"
|
|
128
128
|
}[this.size]
|
|
129
129
|
)}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${ifDefined(this.value)}" .indeterminate="${live(this.indeterminate)}" .checked="${live(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate ? "mixed" : this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled ? "true" : "false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked ? " control--checked" : "control--unchecked"} ${this.indeterminate ? " control--indeterminate" : ""}" class="${cx(
|
|
130
|
-
"relative flex shrink-0 items-center justify-center border sd-7-0-0-next-
|
|
130
|
+
"relative flex shrink-0 items-center justify-center border sd-7-0-0-next-7-checkbox-border-width rounded-sm h-4 w-4",
|
|
131
131
|
"transition-colors ease-in-out duration-medium group-hover:duration-fast",
|
|
132
132
|
"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary outline-transparent",
|
|
133
133
|
{
|
|
@@ -141,7 +141,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
141
141
|
disabled: "border-neutral-500",
|
|
142
142
|
visuallyDisabled: "border-neutral-500",
|
|
143
143
|
invalidIndeterminate: "border-error bg-error group-hover:bg-error-400 group-hover:border-error-400",
|
|
144
|
-
invalid: "border-error group-hover:border-error-400 sd-7-0-0-next-
|
|
144
|
+
invalid: "border-error group-hover:border-error-400 sd-7-0-0-next-7-checkbox--invalid-color-background group-hover:bg-transparent",
|
|
145
145
|
filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
|
|
146
146
|
default: "form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
147
147
|
}[checkboxState]
|
|
@@ -156,14 +156,14 @@ var SdCheckbox = class extends SolidElement {
|
|
|
156
156
|
disabled: "",
|
|
157
157
|
visuallyDisabled: "",
|
|
158
158
|
invalidIndeterminate: " bg-error group-hover:bg-error-400",
|
|
159
|
-
invalid: "sd-7-0-0-next-
|
|
159
|
+
invalid: "sd-7-0-0-next-7-checkbox--invalid-color-background",
|
|
160
160
|
filled: "bg-accent group-hover:bg-accent-550",
|
|
161
161
|
default: "hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
162
162
|
}[checkboxState]
|
|
163
|
-
)}"></div></div>${this.checked ? html`<sd-7-0-0-next-
|
|
163
|
+
)}"></div></div>${this.checked ? html`<sd-7-0-0-next-7-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-7-0-0-next-7-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-7-0-0-next-7-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-7-0-0-next-7-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
|
164
164
|
"select-none inline-block ml-2",
|
|
165
165
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-black"
|
|
166
|
-
)}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${cx("flex items-center gap-2", this.showInvalidStyle && "mt-2")}">${this.showInvalidStyle ? html`<sd-7-0-0-next-
|
|
166
|
+
)}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${cx("flex items-center gap-2", this.showInvalidStyle && "mt-2")}">${this.showInvalidStyle ? html`<sd-7-0-0-next-7-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-7-0-0-next-7-icon>` : ""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`;
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
/**
|
|
@@ -223,7 +223,7 @@ __decorateClass([
|
|
|
223
223
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
224
224
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
|
225
225
|
SdCheckbox = __decorateClass([
|
|
226
|
-
customElement("sd-7-0-0-next-
|
|
226
|
+
customElement("sd-7-0-0-next-7-checkbox")
|
|
227
227
|
], SdCheckbox);
|
|
228
228
|
|
|
229
229
|
export {
|
|
@@ -45,10 +45,10 @@ var SdTeaserMedia = class extends SolidElement {
|
|
|
45
45
|
)}"></div><div class="${cx("relative", ["primary", "gradient-dark"].includes(this.variant) && "text-white")}"><div class="${cx(
|
|
46
46
|
"absolute inset-0 pointer-events-none",
|
|
47
47
|
{
|
|
48
|
-
white: "sd-7-0-0-next-
|
|
49
|
-
"neutral-100": "sd-7-0-0-next-
|
|
48
|
+
white: "sd-7-0-0-next-7-teaser-media--white-color-background group-hover:sd-7-0-0-next-7-teaser-media--white--hover-color-background ",
|
|
49
|
+
"neutral-100": "sd-7-0-0-next-7-teaser-media--neutral-100-color-background group-hover:sd-7-0-0-next-7-teaser-media--neutral-100--hover-color-background",
|
|
50
50
|
primary: "bg-primary/80 text-white group-hover:bg-primary/90",
|
|
51
|
-
"primary-100": "sd-7-0-0-next-
|
|
51
|
+
"primary-100": "sd-7-0-0-next-7-teaser-media--primary-100-color-background group-hover:sd-7-0-0-next-7-teaser-media--primary-100--hover-color-background",
|
|
52
52
|
"gradient-light": "bg-gradient-to-t from-white/75 to-white/60",
|
|
53
53
|
"gradient-dark": "bg-gradient-to-t from-primary-800/75 to-primary-800/60"
|
|
54
54
|
}[this.variant]
|
|
@@ -58,8 +58,8 @@ var SdTeaserMedia = class extends SolidElement {
|
|
|
58
58
|
this.open ? "opacity-100" : "opacity-0"
|
|
59
59
|
)}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div>${slots["teaser-has-expandable"] ? html`<button part="toggle" class="${cx(
|
|
60
60
|
"mt-2",
|
|
61
|
-
["primary", "gradient-dark"].includes(this.variant) ? "text-white" : "sd-7-0-0-next-
|
|
62
|
-
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}" aria-label="${this.open ? "Collapse content" : "Expand content"}"><div class="h-full justify-start flex items-start"><sd-7-0-0-next-
|
|
61
|
+
["primary", "gradient-dark"].includes(this.variant) ? "text-white" : "sd-7-0-0-next-7-teaser-media-color-icon-fill"
|
|
62
|
+
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}" aria-label="${this.open ? "Collapse content" : "Expand content"}"><div class="h-full justify-start flex items-start"><sd-7-0-0-next-7-icon class="${cx("w-6 h-6 transition-transform", this.open && "rotate-180")}" library="_internal" name="chevron-down"></sd-7-0-0-next-7-icon></div></button>` : null}</div></div></div><div class="${cx("mb-4 -z-10", !slots["teaser-has-media"] && "hidden")}" part="media"><slot name="media"></slot></div></div>`;
|
|
63
63
|
}
|
|
64
64
|
};
|
|
65
65
|
SdTeaserMedia.styles = [
|
|
@@ -80,7 +80,7 @@ __decorateClass([
|
|
|
80
80
|
query('[part="base"]')
|
|
81
81
|
], SdTeaserMedia.prototype, "teaserMedia", 2);
|
|
82
82
|
SdTeaserMedia = __decorateClass([
|
|
83
|
-
customElement("sd-7-0-0-next-
|
|
83
|
+
customElement("sd-7-0-0-next-7-teaser-media")
|
|
84
84
|
], SdTeaserMedia);
|
|
85
85
|
|
|
86
86
|
export {
|
|
@@ -300,19 +300,19 @@ var SdAudio = class extends SolidElement {
|
|
|
300
300
|
)}" part="audio-controls"><button class="${cx(
|
|
301
301
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
|
302
302
|
this.inverted && "sd-interactive--inverted"
|
|
303
|
-
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-7-0-0-next-
|
|
303
|
+
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-7-0-0-next-7-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")}" title="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="mb-4">${this.isPlaying ? html`<slot name="pause-icon"><sd-7-0-0-next-7-icon class="text-xl" name="pause" library="_internal"></sd-7-0-0-next-7-icon></slot>` : html`<slot name="play-icon"><sd-7-0-0-next-7-icon class="text-xl" name="start" library="_internal"></sd-7-0-0-next-7-icon></slot>`}</sd-7-0-0-next-7-button><div class="flex items-center gap-6 justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-7-0-0-next-7-icon class="w-6 h-6" name="transcript" library="_internal"></sd-7-0-0-next-7-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.isMuted ? this.localize.term("mute") : this.localize.term("unmute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-7-0-0-next-7-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="_internal"></sd-7-0-0-next-7-icon></button></div></div>`;
|
|
304
304
|
const renderTimestamps = html`<div class="${cx(
|
|
305
305
|
"w-full flex justify-between",
|
|
306
306
|
this.reversedLayout ? "mb-0.5" : "mt-0.5",
|
|
307
307
|
this.animated && this.reversedLayout && "absolute bottom-0 left-0 !mb-4"
|
|
308
|
-
)}" part="timestamps"><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-7-0-0-next-
|
|
309
|
-
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 -mb-2"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null}<sd-7-0-0-next-
|
|
308
|
+
)}" part="timestamps"><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-7-0-0-next-7-audio__timestamp-color-text")}">${this.currentTime}</div><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-7-0-0-next-7-audio__timestamp-color-text")}">${this.duration}</div></div>`;
|
|
309
|
+
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 -mb-2"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null}<sd-7-0-0-next-7-range part="progress-slider" tooltip="hidden" min="0" max="100" step="0.001" label="${this.localize.term("seekBar")}" @mousedown="${this.handleThumbGrab}" @touchstart="${this.handleThumbGrab}" @mouseup="${this.handleThumbRelease}" @touchend="${this.handleThumbRelease}" @sd-7-0-0-next-7-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-7-0-0-next-7-range></div>${this.hasSlotController.test("transcript") ? html`<sd-7-0-0-next-7-drawer><slot name="transcript"></slot></sd-7-0-0-next-7-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div><sd-7-0-0-next-7-theme-listener></sd-7-0-0-next-7-theme-listener>`;
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
SdAudio.styles = [
|
|
313
313
|
...SolidElement.styles,
|
|
314
314
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
315
|
-
sd-7-0-0-next-
|
|
315
|
+
sd-7-0-0-next-7-button::part(base){display:flex;height:var(--sd-spacing-12);width:var(--sd-spacing-12);align-items:center;justify-content:center;border-radius:var(--sd-radius-full)}sd-7-0-0-next-7-button::part(motion-wrapper){border-radius:var(--sd-radius-full)}sd-7-0-0-next-7-button::part(label){display:flex;flex-grow:0;align-items:center}sd-7-0-0-next-7-range::part(form-control-label){display:none}:host([inverted]) sd-7-0-0-next-7-range::part(thumb){outline-color:rgba(var(--sd-color-border-white,var(--sd-color-white)));background-color:rgba(var(--sd-color-icon-fill-white,rgba(var(--sd-color-white))))}:host([animated]) sd-7-0-0-next-7-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-7-0-0-next-7-range::part(track){background-color:rgba(var(--sd-audio__slide-bar--inverted-color-background,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-7-0-0-next-7-range::part(active-track){background-color:rgba(var(--sd-audio__track-bar--inverted-color-background,rgba(var(--sd-color-white))))}.sd-7-0-0-next-7-audio__timestamp-color-text{color:rgb(var(--sd-audio__timestamp-color-text,var(--sd-color-text-neutral-700)))}`
|
|
316
316
|
];
|
|
317
317
|
__decorateClass([
|
|
318
318
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
@@ -354,13 +354,13 @@ __decorateClass([
|
|
|
354
354
|
query('[part="audio-player"]')
|
|
355
355
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
|
356
356
|
__decorateClass([
|
|
357
|
-
query("sd-7-0-0-next-
|
|
357
|
+
query("sd-7-0-0-next-7-drawer")
|
|
358
358
|
], SdAudio.prototype, "drawer", 2);
|
|
359
359
|
__decorateClass([
|
|
360
360
|
query("canvas")
|
|
361
361
|
], SdAudio.prototype, "canvas", 2);
|
|
362
362
|
SdAudio = __decorateClass([
|
|
363
|
-
customElement("sd-7-0-0-next-
|
|
363
|
+
customElement("sd-7-0-0-next-7-audio")
|
|
364
364
|
], SdAudio);
|
|
365
365
|
|
|
366
366
|
export {
|
|
@@ -84,7 +84,7 @@ var SdRange = class extends SolidElement {
|
|
|
84
84
|
var _a, _b;
|
|
85
85
|
const tooltip = thumb.parentElement;
|
|
86
86
|
await tooltip.updateComplete;
|
|
87
|
-
(_b = (_a = tooltip.shadowRoot) == null ? void 0 : _a.querySelector("sd-7-0-0-next-
|
|
87
|
+
(_b = (_a = tooltip.shadowRoot) == null ? void 0 : _a.querySelector("sd-7-0-0-next-7-popup")) == null ? void 0 : _b.setAttribute("distance", "14");
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
90
|
willUpdate(changedProperties) {
|
|
@@ -260,7 +260,7 @@ var SdRange = class extends SolidElement {
|
|
|
260
260
|
_preventTextSelection() {
|
|
261
261
|
if (!this._dragStyleElement) {
|
|
262
262
|
const style = document.createElement("style");
|
|
263
|
-
style.setAttribute("data-sd-7-0-0-next-
|
|
263
|
+
style.setAttribute("data-sd-7-0-0-next-7-range-drag", "");
|
|
264
264
|
style.textContent = "*, *::before, *::after { user-select: none !important; -webkit-user-select: none !important; }";
|
|
265
265
|
document.head.appendChild(style);
|
|
266
266
|
this._dragStyleElement = style;
|
|
@@ -445,10 +445,10 @@ var SdRange = class extends SolidElement {
|
|
|
445
445
|
ariaLabel = this.tooltipFormatter(value);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
|
-
return html`<sd-7-0-0-next-
|
|
448
|
+
return html`<sd-7-0-0-next-7-tooltip trigger="${this.tooltip === "on-interaction" ? "focus" : "manual"}" disabled="${ifDefined(this.disabled || this.visuallyDisabled || this.tooltip === "hidden" ? true : void 0)}"><div id="${id}" part="thumb" role="slider" tabindex="${this.disabled || this.visuallyDisabled ? -1 : 0}" aria-disabled="${ifDefined(this.disabled || this.visuallyDisabled ? "true" : void 0)}" aria-labelledby="${ariaLabeledBy}" aria-label="${ariaLabel}" aria-valuemax="${this.max}" aria-valuemin="${this.min}" aria-valuenow="${value}" aria-valuetext="${this.tooltipFormatter(value)}" data-range-id="${rangeId}" data-disabled="${ifDefined(this.disabled || this.visuallyDisabled || void 0)}" @pointerdown="${this.onClickThumb}" @pointermove="${this.onDragThumb}" @pointerup="${this.onReleaseThumb}" @pointercancel="${this.onReleaseThumb}" @keydown="${this.onKeyPress}" @focus="${this.onFocusThumb}" class="${cx(
|
|
449
449
|
"rounded-full absolute top-0 size-4 hover:cursor-grab after:-inset-2",
|
|
450
450
|
this.disabled || this.visuallyDisabled ? "outline-none" : "cursor-pointer focus-visible:focus-outline"
|
|
451
|
-
)}"></div></sd-7-0-0-next-
|
|
451
|
+
)}"></div></sd-7-0-0-next-7-tooltip>`;
|
|
452
452
|
});
|
|
453
453
|
}
|
|
454
454
|
render() {
|
|
@@ -518,7 +518,7 @@ __decorateClass([
|
|
|
518
518
|
property({ type: String })
|
|
519
519
|
], SdRange.prototype, "value", 1);
|
|
520
520
|
SdRange = __decorateClass([
|
|
521
|
-
customElement("sd-7-0-0-next-
|
|
521
|
+
customElement("sd-7-0-0-next-7-range")
|
|
522
522
|
], SdRange);
|
|
523
523
|
|
|
524
524
|
export {
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-7-0-0-next-
|
|
29
|
+
return [...this.querySelectorAll("sd-7-0-0-next-7-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-7-0-0-next-
|
|
42
|
+
if (customElements.get("sd-7-0-0-next-7-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-7-0-0-next-
|
|
45
|
+
customElements.whenDefined("sd-7-0-0-next-7-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -80,7 +80,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
82
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
83
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-
|
|
83
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-7-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-7-0-0-next-7-checkbox:last-of-type){margin-bottom:0}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-7-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-7-0-0-next-7-checkbox:last-of-type){margin-right:0}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-7-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-7-0-0-next-7-checkbox:last-of-type){margin-right:0}`
|
|
84
84
|
];
|
|
85
85
|
__decorateClass([
|
|
86
86
|
property({ type: String, reflect: true })
|
|
@@ -101,7 +101,7 @@ __decorateClass([
|
|
|
101
101
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
102
102
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
103
103
|
SdCheckboxGroup = __decorateClass([
|
|
104
|
-
customElement("sd-7-0-0-next-
|
|
104
|
+
customElement("sd-7-0-0-next-7-checkbox-group")
|
|
105
105
|
], SdCheckboxGroup);
|
|
106
106
|
|
|
107
107
|
export {
|
|
@@ -22,7 +22,7 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
22
22
|
this.isTruncated = false;
|
|
23
23
|
}
|
|
24
24
|
get items() {
|
|
25
|
-
return this.querySelectorAll("sd-7-0-0-next-
|
|
25
|
+
return this.querySelectorAll("sd-7-0-0-next-7-breadcrumb-item");
|
|
26
26
|
}
|
|
27
27
|
cacheItemPositions() {
|
|
28
28
|
this.items.forEach((item) => {
|
|
@@ -67,12 +67,12 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
67
67
|
}
|
|
68
68
|
handleMobileChevron() {
|
|
69
69
|
var _a, _b, _c;
|
|
70
|
-
const icon = document.createElement("sd-7-0-0-next-
|
|
70
|
+
const icon = document.createElement("sd-7-0-0-next-7-icon");
|
|
71
71
|
icon.setAttribute("slot", "icon-left");
|
|
72
72
|
icon.setAttribute("library", "_internal");
|
|
73
73
|
icon.setAttribute("name", "chevron-left");
|
|
74
74
|
icon.setAttribute("class", "text-base me-1 lg:hidden");
|
|
75
|
-
(_c = (_b = (_a = Array.from(this.items).at(-2)) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.querySelector("sd-7-0-0-next-
|
|
75
|
+
(_c = (_b = (_a = Array.from(this.items).at(-2)) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.querySelector("sd-7-0-0-next-7-link")) == null ? void 0 : _c.appendChild(icon);
|
|
76
76
|
}
|
|
77
77
|
handleSlotChange() {
|
|
78
78
|
this.handleMobileChevron();
|
|
@@ -87,13 +87,13 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
87
87
|
this.resizeObserver.unobserve(this);
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return html`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-7-0-0-next-
|
|
90
|
+
return html`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-7-0-0-next-7-dropdown part="truncated" class="${cx(!this.isTruncated && "absolute opacity-0 pointer-events-none")}"><button slot="trigger" tabindex="${this.isTruncated ? "0" : "-1"}" aria-label="${this.localize.term("truncatedBreadcrumbs")}" aria-expanded="false" aria-haspopup="true" class="flex sd-interactive">[...]</button><ol part="truncated-dropdown" class="flex flex-col gap-4 px-2 py-3 min-w-40"></ol></sd-7-0-0-next-7-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`;
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
SdBreadcrumb.styles = [
|
|
94
94
|
...SolidElement.styles,
|
|
95
95
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
96
|
-
:host{position:relative;display:block}::slotted(sd-7-0-0-next-
|
|
96
|
+
:host{position:relative;display:block}::slotted(sd-7-0-0-next-7-breadcrumb-item:not(:last-of-type))::after,sd-7-0-0-next-7-dropdown::after{margin-inline:var(--sd-spacing-2);display:none;height:var(--sd-spacing-1);width:var(--sd-spacing-1);border-radius:var(--sd-radius-full);background-color:rgba(var(--sd-breadcrumb__separator-color,rgba(var(--sd-color-neutral-400))));--tw-content:'';content:var(--tw-content)}@media (width >= 64rem){::slotted(sd-7-0-0-next-7-breadcrumb-item:not(:last-of-type))::after,sd-7-0-0-next-7-dropdown::after{display:inline-block}}::slotted(sd-7-0-0-next-7-breadcrumb-item:nth-last-child(2)){display:flex}@media (width >= 64rem){::slotted(sd-7-0-0-next-7-breadcrumb-item:nth-last-child(2))::after{background-color:rgba(var(--sd-breadcrumb__separator--current-color,rgba(var(--sd-color-accent))))}}::slotted(sd-7-0-0-next-7-breadcrumb-item),sd-7-0-0-next-7-dropdown{display:none;align-items:center;font-size:var(--sd-text-sm);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}@media (width >= 64rem){::slotted(sd-7-0-0-next-7-breadcrumb-item),sd-7-0-0-next-7-dropdown{display:flex}}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`
|
|
97
97
|
];
|
|
98
98
|
__decorateClass([
|
|
99
99
|
query('[part="base"]')
|
|
@@ -117,7 +117,7 @@ __decorateClass([
|
|
|
117
117
|
state()
|
|
118
118
|
], SdBreadcrumb.prototype, "isTruncated", 2);
|
|
119
119
|
SdBreadcrumb = __decorateClass([
|
|
120
|
-
customElement("sd-7-0-0-next-
|
|
120
|
+
customElement("sd-7-0-0-next-7-breadcrumb")
|
|
121
121
|
], SdBreadcrumb);
|
|
122
122
|
|
|
123
123
|
export {
|
|
@@ -54,7 +54,7 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
54
54
|
}
|
|
55
55
|
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
56
56
|
const element = node;
|
|
57
|
-
return element.tagName.toLowerCase() === "sd-7-0-0-next-
|
|
57
|
+
return element.tagName.toLowerCase() === "sd-7-0-0-next-7-icon";
|
|
58
58
|
}
|
|
59
59
|
return false;
|
|
60
60
|
});
|
|
@@ -130,8 +130,8 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
130
130
|
const root = html`<${tag} part="base" class="${cx(
|
|
131
131
|
"flex items-center cursor-pointer relative focus-visible:focus-outline group hover:bg-neutral-200 transition-colors duration-fast ease-in-out min-h-[48px] navigable-border-radius",
|
|
132
132
|
this.isStackedHorizontal ? "text-xs leading-4.5" : { md: "navigable-font-size", lg: "text-lg", sm: "text-[14px]" }[this.size],
|
|
133
|
-
this.disabled ? "text-neutral-500 pointer-events-none" : "sd-7-0-0-next-
|
|
134
|
-
this.current && !this.disabled && "sd-7-0-0-next-
|
|
133
|
+
this.disabled ? "text-neutral-500 pointer-events-none" : "sd-7-0-0-next-7-navigation-item--default-color-text",
|
|
134
|
+
this.current && !this.disabled && "sd-7-0-0-next-7-navigation-item--current-color-text",
|
|
135
135
|
this.current && !this.isStackedHorizontal && "font-bold",
|
|
136
136
|
!this.current && !this.isStackedHorizontal && "choice-control-font-weight",
|
|
137
137
|
!isAccordion && "w-full",
|
|
@@ -154,7 +154,7 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
154
154
|
slots["description"] && "pt-3",
|
|
155
155
|
!slots["description"] && !this.separated && horizontalPadding,
|
|
156
156
|
this.calculatePaddingX
|
|
157
|
-
)}">${this.divider && this.vertical ? html`<sd-7-0-0-next-
|
|
157
|
+
)}">${this.divider && this.vertical ? html`<sd-7-0-0-next-7-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-7-0-0-next-7-divider>` : ""} <span id="content" part="content-container" class="${cx(
|
|
158
158
|
"inline-flex items-center",
|
|
159
159
|
this.vertical ? "flex-auto gap-2" : this.isStackedHorizontal ? "relative text-center pb-1" : "flex-auto flex-col justify-center gap-1 text-center"
|
|
160
160
|
)}"><slot part="content" class="${cx(
|
|
@@ -163,19 +163,19 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
163
163
|
)}"></slot>${this.isStackedHorizontal ? html`<span part="current-indicator" aria-hidden="true" class="${cx(
|
|
164
164
|
"absolute left-0 right-0 bottom-0 h-[2px] pointer-events-none bg-accent navigable__current-indicator-border-radius",
|
|
165
165
|
this.disabled && "bg-neutral-500"
|
|
166
|
-
)}"></span>` : ""} </span>${this.chevron || slots["children"] && this.vertical && !this.separated ? html`<sd-7-0-0-next-
|
|
166
|
+
)}"></span>` : ""} </span>${this.chevron || slots["children"] && this.vertical && !this.separated ? html`<sd-7-0-0-next-7-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${cx(
|
|
167
167
|
"h-6 w-6 ml-2 transition-all",
|
|
168
168
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
169
|
-
)}"></sd-7-0-0-next-
|
|
169
|
+
)}"></sd-7-0-0-next-7-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot id="description" name="description" part="description" class="${cx(
|
|
170
170
|
"inline-block text-sm text-left font-normal text-black pb-3",
|
|
171
171
|
isAccordion || this.separated ? "grow" : "w-full",
|
|
172
172
|
this.calculatePaddingX
|
|
173
173
|
)}"></slot>` : ""}</div></${tag}>`;
|
|
174
174
|
if (this.separated) {
|
|
175
|
-
return html`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${root} ${slots["children"] && this.vertical ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-7-0-0-next-
|
|
175
|
+
return html`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${root} ${slots["children"] && this.vertical ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-7-0-0-next-7-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${cx(
|
|
176
176
|
"m-4 h-6 w-6 transition-all",
|
|
177
177
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
178
|
-
)}"></sd-7-0-0-next-
|
|
178
|
+
)}"></sd-7-0-0-next-7-icon></button>` : ""}</div>${this.open ? html`<slot name="children"></slot>` : ""}</div>`;
|
|
179
179
|
}
|
|
180
180
|
if (isAccordion) {
|
|
181
181
|
return html`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${root}<slot name="children"></slot></details>`;
|
|
@@ -189,7 +189,7 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
189
189
|
SdNavigationItem.styles = [
|
|
190
190
|
...SolidElement.styles,
|
|
191
191
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
192
|
-
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}:host([stacked]:not([vertical])) ::slotted(sd-7-0-0-next-
|
|
192
|
+
:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}:host([stacked]:not([vertical])) ::slotted(sd-7-0-0-next-7-icon){height:var(--sd-spacing-6);width:var(--sd-spacing-6)}.sd-7-0-0-next-7-navigation-item--current-color-text{color:rgb(var(--sd-navigation-item--current-color-text,var(--sd-navigation-item-color-text)))}details summary::-webkit-details-marker{display:none}[part=current-indicator]{--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-0);--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,opacity var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out var(--sd-duration-fast)}:host([current]) [part=current-indicator]{--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x) var(--tw-scale-y);opacity:var(--sd-opacity-100);transition:width var(--sd-duration-fast) ease-in-out,height var(--sd-duration-fast) ease-in-out,left var(--sd-duration-fast) ease-in-out,top var(--sd-duration-fast) ease-in-out,transform var(--sd-duration-fast) ease-in-out}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-duration{syntax:"*";inherits:false}`
|
|
193
193
|
];
|
|
194
194
|
__decorateClass([
|
|
195
195
|
query('[part="base"]')
|
|
@@ -240,7 +240,7 @@ __decorateClass([
|
|
|
240
240
|
property({ type: Boolean, reflect: true })
|
|
241
241
|
], SdNavigationItem.prototype, "separated", 2);
|
|
242
242
|
SdNavigationItem = __decorateClass([
|
|
243
|
-
customElement("sd-7-0-0-next-
|
|
243
|
+
customElement("sd-7-0-0-next-7-navigation-item")
|
|
244
244
|
], SdNavigationItem);
|
|
245
245
|
|
|
246
246
|
export {
|
|
@@ -64,33 +64,33 @@ var SdTag = class extends SolidElement {
|
|
|
64
64
|
const tag = isLink ? literal`a` : isRemovable ? literal`div` : literal`button`;
|
|
65
65
|
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 || isRemovable ? "-1" : "0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" class="${cx(
|
|
66
66
|
/* basic styles of the wrapper */
|
|
67
|
-
"flex border box-border sd-7-0-0-next-
|
|
67
|
+
"flex border box-border sd-7-0-0-next-7-tag-border-radius items-center leading-none whitespace-nowrap transition-colors duration-fast ease-in-out focus-visible:focus-outline",
|
|
68
68
|
{
|
|
69
69
|
/* sizes, fonts */
|
|
70
|
-
lg: "h-8 sd-7-0-0-next-
|
|
71
|
-
sm: "h-6 sd-7-0-0-next-
|
|
70
|
+
lg: "h-8 sd-7-0-0-next-7-tag-font-weight sd-7-0-0-next-7-tag--size-lg-font-size gap-2",
|
|
71
|
+
sm: "h-6 sd-7-0-0-next-7-tag-font-weight sd-7-0-0-next-7-tag--size-sm-font-size gap-1"
|
|
72
72
|
}[this.size],
|
|
73
73
|
{
|
|
74
74
|
/* padding */
|
|
75
|
-
lg: !isRemovable ? "py-2 sd-7-0-0-next-
|
|
76
|
-
sm: !isRemovable ? "py-1 sd-7-0-0-next-
|
|
75
|
+
lg: !isRemovable ? "py-2 sd-7-0-0-next-7-tag--size-lg-padding-inline" : "sd-7-0-0-next-7-tag--removable--size-lg-padding-right sd-7-0-0-next-7-tag--removable--size-lg-padding-left py-3",
|
|
76
|
+
sm: !isRemovable ? "py-1 sd-7-0-0-next-7-tag--size-sm-padding-inline" : "sd-7-0-0-next-7-tag--removable--size-sm-padding-right sd-7-0-0-next-7-tag--removable--size-sm-padding-left py-2"
|
|
77
77
|
}[this.size],
|
|
78
78
|
/* colors */
|
|
79
79
|
!this.disabled ? !this.selected ? cx(
|
|
80
|
-
"sd-7-0-0-next-
|
|
81
|
-
!isRemovable ? "sd-7-0-0-next-
|
|
82
|
-
) : "sd-7-0-0-next-
|
|
80
|
+
"sd-7-0-0-next-7-tag--default-color-border sd-7-0-0-next-7-tag--default-color-text",
|
|
81
|
+
!isRemovable ? "sd-7-0-0-next-7-tag--default-color-background hover:border-primary-500 hover:text-primary-500 hover:sd-7-0-0-next-7-tag--default--hover-color-background" : "sd-7-0-0-next-7-tag--default-color-background has-[button:hover]:border-primary-500 has-[button:hover]:text-primary-500"
|
|
82
|
+
) : "sd-7-0-0-next-7-tag--selected-border-width sd-7-0-0-next-7-tag--selected--default-color-background sd-7-0-0-next-7-tag--selected--default-color-border sd-7-0-0-next-7-tag--selected--default-color-text hover:sd-7-0-0-next-7-tag--selected--hover-color-background hover:sd-7-0-0-next-7-tag--selected--hover-color-border hover:sd-7-0-0-next-7-tag--selected--hover-color-text" : cx(
|
|
83
83
|
!isLink && "cursor-not-allowed",
|
|
84
84
|
this.selected && "bg-neutral-500 text-white",
|
|
85
|
-
"sd-7-0-0-next-
|
|
85
|
+
"sd-7-0-0-next-7-tag--disabled-color-border sd-7-0-0-next-7-tag--disabled-color-text"
|
|
86
86
|
)
|
|
87
|
-
)}"><slot name="icon-left" class="${cx("flex-shrink-0", this.size === "lg" ? "text-base" : "text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${isRemovable && !isLink ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}" ?disabled="${ifDefined(isLink ? void 0 : this.disabled)}"><slot part="removable-indicator" name="removable-indicator" class="${cx(this.disabled && "sd-7-0-0-next-
|
|
87
|
+
)}"><slot name="icon-left" class="${cx("flex-shrink-0", this.size === "lg" ? "text-base" : "text-[0.75rem]")}"></slot><slot id="content" part="content"></slot>${isRemovable && !isLink ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}" ?disabled="${ifDefined(isLink ? void 0 : this.disabled)}"><slot part="removable-indicator" name="removable-indicator" class="${cx(this.disabled && "sd-7-0-0-next-7-tag--disabled-color-text")}"><sd-7-0-0-next-7-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-7-0-0-next-7-icon></slot></button>` : ""}</${tag}>`;
|
|
88
88
|
}
|
|
89
89
|
};
|
|
90
90
|
SdTag.styles = [
|
|
91
91
|
...SolidElement.styles,
|
|
92
92
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
93
|
-
:host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}.sd-7-0-0-next-
|
|
93
|
+
:host{display:inline-block;transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms));--tw-duration:var(--sd-duration-fast, 150ms);transition-duration:var(--sd-duration-fast,150ms);--tw-ease:var(--ease-in-out, cubic-bezier(0.4, 0, 0.2, 1));transition-timing-function:var(--ease-in-out,cubic-bezier(.4,0,.2,1))}:host([size=lg])::part(removable-indicator){font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)))}:host([size=sm])::part(removable-indicator){font-size:.75rem}.sd-7-0-0-next-7-tag--disabled-color-border{border-color:rgb(var(--sd-tag--disabled-color-border))}.sd-7-0-0-next-7-tag-font-weight{font-weight:var(--sd-tag-font-weight)}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}`
|
|
94
94
|
];
|
|
95
95
|
__decorateClass([
|
|
96
96
|
query("a, button, div")
|
|
@@ -120,7 +120,7 @@ __decorateClass([
|
|
|
120
120
|
property({ reflect: true })
|
|
121
121
|
], SdTag.prototype, "download", 2);
|
|
122
122
|
SdTag = __decorateClass([
|
|
123
|
-
customElement("sd-7-0-0-next-
|
|
123
|
+
customElement("sd-7-0-0-next-7-tag")
|
|
124
124
|
], SdTag);
|
|
125
125
|
|
|
126
126
|
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-7-0-0-next-
|
|
101
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-7-0-0-next-7-icon id="default-play-icon" library="_internal" name="start"></sd-7-0-0-next-7-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-7-0-0-next-
|
|
119
|
+
customElement("sd-7-0-0-next-7-video")
|
|
120
120
|
], SdVideo);
|
|
121
121
|
|
|
122
122
|
export {
|