@solid-design-system/components 6.9.2 → 6.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{chunk.W34AMMB5.js → chunk.62QW3E3X.js} +1 -1
- package/cdn/chunks/{chunk.CJIGOFUV.js → chunk.6SXKCQA5.js} +1 -1
- package/cdn/components/breadcrumb/breadcrumb.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/datepicker/datepicker.js +1 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/popup/popup.js +1 -1
- package/cdn/components/range/range.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +2 -2
- package/cdn/solid-components.iife.js +2 -2
- package/cdn/solid-components.js +1 -1
- package/cdn/utilities/autocomplete-config.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.23WHB4QP.js +2 -2
- package/cdn-versioned/chunks/chunk.2MIX3O75.js +2 -2
- package/cdn-versioned/chunks/chunk.2PFSV4UH.js +2 -2
- package/cdn-versioned/chunks/chunk.2SMHQXPB.js +2 -2
- package/cdn-versioned/chunks/chunk.3JJMR6UW.js +2 -2
- package/cdn-versioned/chunks/chunk.3QIJXAQA.js +2 -2
- package/cdn-versioned/chunks/chunk.3R2FJ7GP.js +2 -2
- package/cdn-versioned/chunks/chunk.5KUK2VJM.js +1 -1
- package/cdn-versioned/chunks/{chunk.W34AMMB5.js → chunk.62QW3E3X.js} +2 -2
- package/cdn-versioned/chunks/chunk.6H45UF7X.js +1 -1
- package/cdn-versioned/chunks/chunk.6P7SZLGS.js +1 -1
- package/cdn-versioned/chunks/chunk.6RPVUY7L.js +2 -2
- package/cdn-versioned/chunks/{chunk.CJIGOFUV.js → chunk.6SXKCQA5.js} +2 -2
- package/cdn-versioned/chunks/chunk.A6VWEUXI.js +2 -2
- package/cdn-versioned/chunks/chunk.ABEZTKXZ.js +3 -3
- package/cdn-versioned/chunks/chunk.AK6QMGJL.js +2 -2
- package/cdn-versioned/chunks/chunk.AZILYRH5.js +2 -2
- package/cdn-versioned/chunks/chunk.BJYMUYXU.js +2 -2
- package/cdn-versioned/chunks/chunk.CSUL5FAA.js +2 -2
- package/cdn-versioned/chunks/chunk.CZH4RZUA.js +2 -2
- package/cdn-versioned/chunks/chunk.DOFLMPNA.js +2 -2
- package/cdn-versioned/chunks/chunk.EE6DZSAZ.js +2 -2
- package/cdn-versioned/chunks/chunk.ETYTBHYS.js +1 -1
- package/cdn-versioned/chunks/chunk.F6GLDWSF.js +1 -1
- package/cdn-versioned/chunks/chunk.FWVEGMDU.js +2 -2
- package/cdn-versioned/chunks/chunk.GB4BLTBN.js +5 -5
- package/cdn-versioned/chunks/chunk.GYLDD7OO.js +2 -2
- package/cdn-versioned/chunks/chunk.IHPCVJQP.js +1 -1
- package/cdn-versioned/chunks/chunk.JE443GSD.js +9 -9
- package/cdn-versioned/chunks/chunk.JWST2JU2.js +2 -2
- package/cdn-versioned/chunks/chunk.KU24TV3E.js +2 -2
- package/cdn-versioned/chunks/chunk.LCDK6JMB.js +2 -2
- package/cdn-versioned/chunks/chunk.LCRJHN7X.js +2 -2
- package/cdn-versioned/chunks/chunk.LJGKR57E.js +2 -2
- package/cdn-versioned/chunks/chunk.LJUXIWVE.js +2 -2
- package/cdn-versioned/chunks/chunk.LPAOJ3UT.js +2 -2
- package/cdn-versioned/chunks/chunk.LROVOQK7.js +2 -2
- package/cdn-versioned/chunks/chunk.LZ22HXBZ.js +1 -1
- package/cdn-versioned/chunks/chunk.M7IOABFW.js +2 -2
- package/cdn-versioned/chunks/chunk.MBTTKYXS.js +2 -2
- package/cdn-versioned/chunks/chunk.MGVXL2HX.js +2 -2
- package/cdn-versioned/chunks/chunk.MND77BIP.js +2 -2
- package/cdn-versioned/chunks/chunk.MOVV5SGH.js +2 -2
- package/cdn-versioned/chunks/chunk.NK5ADMN2.js +1 -1
- package/cdn-versioned/chunks/chunk.OVMB2HQ7.js +2 -2
- package/cdn-versioned/chunks/chunk.PBG7SX5G.js +2 -2
- package/cdn-versioned/chunks/chunk.PO3YG7QM.js +2 -2
- package/cdn-versioned/chunks/chunk.RAP66B6O.js +1 -1
- package/cdn-versioned/chunks/chunk.RHXXKUAP.js +1 -1
- package/cdn-versioned/chunks/chunk.RLMMTFRP.js +2 -2
- package/cdn-versioned/chunks/chunk.S6YZ73C6.js +2 -2
- package/cdn-versioned/chunks/chunk.SN3JKNRR.js +2 -2
- package/cdn-versioned/chunks/chunk.SYKS2NVL.js +2 -2
- package/cdn-versioned/chunks/chunk.TIT73LW6.js +1 -1
- package/cdn-versioned/chunks/chunk.UH6HUCWL.js +2 -2
- package/cdn-versioned/chunks/chunk.VBVSO7CX.js +2 -2
- package/cdn-versioned/chunks/chunk.VJWJIXNG.js +5 -5
- package/cdn-versioned/chunks/chunk.VNKXLA5X.js +2 -2
- package/cdn-versioned/chunks/chunk.VZU6YWNK.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.X7Z2PXUI.js +1 -1
- package/cdn-versioned/chunks/chunk.XQGK5AD7.js +3 -3
- package/cdn-versioned/chunks/chunk.YBVSFGIY.js +2 -2
- package/cdn-versioned/chunks/chunk.YPTZDABK.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/breadcrumb.js +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/combobox/combobox.js +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.js +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/popup/popup.js +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/range.js +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/select/select.js +1 -1
- package/cdn-versioned/components/skeleton/skeleton.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-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/tooltip/tooltip.js +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +246 -246
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +80 -80
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +80 -80
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/utilities/autocomplete-config.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +107 -107
- package/cdn-versioned/web-types.json +157 -157
- package/dist/chunks/{chunk.WYVFRQ5Z.js → chunk.EV6PNOJR.js} +1 -1
- package/dist/chunks/{chunk.VWA3OZPN.js → chunk.KXWU6HY5.js} +1 -1
- package/dist/components/breadcrumb/breadcrumb.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/datepicker/datepicker.js +2 -2
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/popup/popup.js +1 -1
- package/dist/components/range/range.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +2 -2
- package/dist/utilities/autocomplete-config.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.2NECRQLL.js +3 -3
- package/dist-versioned/chunks/chunk.2VYY4TEV.js +2 -2
- package/dist-versioned/chunks/chunk.2YKSAZET.js +12 -12
- package/dist-versioned/chunks/chunk.36CGUI4G.js +3 -3
- package/dist-versioned/chunks/chunk.3LJCVKT5.js +3 -3
- package/dist-versioned/chunks/chunk.5L6ITCDK.js +14 -14
- package/dist-versioned/chunks/chunk.6C4JDHQE.js +5 -5
- package/dist-versioned/chunks/chunk.6VZHBOMA.js +11 -11
- package/dist-versioned/chunks/chunk.7JJXTME6.js +4 -4
- package/dist-versioned/chunks/chunk.AGALXK7Q.js +2 -2
- package/dist-versioned/chunks/chunk.ALSMMO52.js +28 -28
- package/dist-versioned/chunks/chunk.AODPVXHS.js +4 -4
- package/dist-versioned/chunks/chunk.B2RTBZFX.js +23 -23
- package/dist-versioned/chunks/chunk.BNNE7OYM.js +3 -3
- package/dist-versioned/chunks/chunk.BVDPZZWU.js +10 -10
- package/dist-versioned/chunks/chunk.BXKAF4FA.js +2 -2
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.C7TYKE3H.js +2 -2
- package/dist-versioned/chunks/chunk.CCAOZTZT.js +2 -2
- package/dist-versioned/chunks/chunk.DQQZ3P2Q.js +1 -1
- package/dist-versioned/chunks/chunk.E5PND36Z.js +3 -3
- package/dist-versioned/chunks/chunk.EHRCG4D4.js +2 -2
- package/dist-versioned/chunks/chunk.EMTQ3SYF.js +1 -1
- package/dist-versioned/chunks/chunk.ENPYKZSE.js +1 -1
- package/dist-versioned/chunks/{chunk.WYVFRQ5Z.js → chunk.EV6PNOJR.js} +6 -6
- package/dist-versioned/chunks/chunk.FBFFDE7W.js +4 -4
- package/dist-versioned/chunks/chunk.FWFNUTMW.js +5 -5
- package/dist-versioned/chunks/chunk.J6URFAAT.js +1 -1
- package/dist-versioned/chunks/chunk.JBLVT4GJ.js +4 -4
- package/dist-versioned/chunks/chunk.JGH47TIO.js +8 -8
- package/dist-versioned/chunks/chunk.JSOT2AUN.js +8 -8
- package/dist-versioned/chunks/chunk.K3XAZCMW.js +8 -8
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KU6IGPYI.js +4 -4
- package/dist-versioned/chunks/chunk.KXDIIYXU.js +1 -1
- package/dist-versioned/chunks/{chunk.VWA3OZPN.js → chunk.KXWU6HY5.js} +2 -2
- package/dist-versioned/chunks/chunk.L4VSO6PJ.js +6 -6
- package/dist-versioned/chunks/chunk.LEHN7AAI.js +3 -3
- package/dist-versioned/chunks/chunk.N5IXQ55P.js +25 -25
- package/dist-versioned/chunks/chunk.O5FDQ7G3.js +1 -1
- package/dist-versioned/chunks/chunk.OGTB6P4O.js +3 -3
- package/dist-versioned/chunks/chunk.OS5UP6YI.js +5 -5
- package/dist-versioned/chunks/chunk.PMRFHLOS.js +4 -4
- package/dist-versioned/chunks/chunk.Q3NYSE4V.js +1 -1
- package/dist-versioned/chunks/chunk.Q7RGLPOU.js +4 -4
- package/dist-versioned/chunks/chunk.RUNLTRYQ.js +2 -2
- package/dist-versioned/chunks/chunk.S6R3YTS2.js +9 -9
- package/dist-versioned/chunks/chunk.TBWMHZMA.js +5 -5
- package/dist-versioned/chunks/chunk.TNJNDHY7.js +3 -3
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UPU7QMDY.js +2 -2
- package/dist-versioned/chunks/chunk.V4YLR2QP.js +2 -2
- package/dist-versioned/chunks/chunk.VTOWPUO4.js +3 -3
- package/dist-versioned/chunks/chunk.W5R3Q2AL.js +12 -12
- package/dist-versioned/chunks/chunk.W7QA5BDD.js +5 -5
- package/dist-versioned/chunks/chunk.WPIZ42LA.js +4 -4
- package/dist-versioned/chunks/chunk.WXPUTX2S.js +5 -5
- package/dist-versioned/chunks/chunk.X3ZIYVJC.js +7 -7
- package/dist-versioned/chunks/chunk.XIMHYPRX.js +6 -6
- package/dist-versioned/chunks/chunk.XWVML7WY.js +5 -5
- package/dist-versioned/chunks/chunk.YR42X3WU.js +1 -1
- package/dist-versioned/chunks/chunk.Z36ZVOCO.js +1 -1
- package/dist-versioned/chunks/chunk.Z7C6DHQC.js +5 -5
- package/dist-versioned/chunks/chunk.ZR5VFTTA.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/breadcrumb.js +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/combobox/combobox.js +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.js +2 -2
- 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/dropdown/dropdown.js +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/popup/popup.js +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/range.js +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/select/select.js +1 -1
- package/dist-versioned/components/skeleton/skeleton.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-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/tooltip/tooltip.js +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +246 -246
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/utilities/autocomplete-config.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +107 -107
- package/dist-versioned/web-types.json +157 -157
- package/package.json +1 -1
|
@@ -73,14 +73,14 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
73
73
|
this.formControlController.updateValidity();
|
|
74
74
|
}
|
|
75
75
|
getAllRadios() {
|
|
76
|
-
const radios = [...this.querySelectorAll("sd-6-
|
|
76
|
+
const radios = [...this.querySelectorAll("sd-6-10-0-radio, sd-6-10-0-radio-button")];
|
|
77
77
|
if (radios.length === 0) {
|
|
78
78
|
console.warn("No radios found in the radio group.");
|
|
79
79
|
}
|
|
80
80
|
return radios;
|
|
81
81
|
}
|
|
82
82
|
handleRadioClick(event) {
|
|
83
|
-
const target = event.target.closest("sd-6-
|
|
83
|
+
const target = event.target.closest("sd-6-10-0-radio, sd-6-10-0-radio-button");
|
|
84
84
|
const oldValue = this.value;
|
|
85
85
|
const radios = this.getAllRadios();
|
|
86
86
|
if (radios.length === 0) {
|
|
@@ -170,7 +170,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
170
170
|
}
|
|
171
171
|
})
|
|
172
172
|
);
|
|
173
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-6-
|
|
173
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-6-10-0-radio-button");
|
|
174
174
|
if (!radios.some((radio) => radio.checked)) {
|
|
175
175
|
if (this.hasButtonGroup) {
|
|
176
176
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -182,26 +182,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
182
182
|
}
|
|
183
183
|
}
|
|
184
184
|
if (this.hasButtonGroup) {
|
|
185
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-6-
|
|
185
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-6-10-0-button-group");
|
|
186
186
|
if (buttonGroup) {
|
|
187
187
|
buttonGroup.disableRole = true;
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
syncRadios() {
|
|
192
|
-
if (customElements.get("sd-6-
|
|
192
|
+
if (customElements.get("sd-6-10-0-radio") && customElements.get("sd-6-10-0-radio-button")) {
|
|
193
193
|
this.syncRadioElements();
|
|
194
194
|
return;
|
|
195
195
|
}
|
|
196
|
-
if (customElements.get("sd-6-
|
|
196
|
+
if (customElements.get("sd-6-10-0-radio")) {
|
|
197
197
|
this.syncRadioElements();
|
|
198
198
|
} else {
|
|
199
|
-
customElements.whenDefined("sd-6-
|
|
199
|
+
customElements.whenDefined("sd-6-10-0-radio").then(() => this.syncRadios());
|
|
200
200
|
}
|
|
201
|
-
if (customElements.get("sd-6-
|
|
201
|
+
if (customElements.get("sd-6-10-0-radio-button")) {
|
|
202
202
|
this.syncRadioElements();
|
|
203
203
|
} else {
|
|
204
|
-
customElements.whenDefined("sd-6-
|
|
204
|
+
customElements.whenDefined("sd-6-10-0-radio-button").then(() => this.syncRadios());
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
updateCheckedRadio() {
|
|
@@ -279,7 +279,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
279
279
|
vertical: "flex-col",
|
|
280
280
|
horizontal: "flex-row"
|
|
281
281
|
}[this.orientation]
|
|
282
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-6-
|
|
282
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-6-10-0-button-group class="border border-primary sd-6-10-0-radio-button-group-border-radius sd-6-10-0-radio-button-group-border-width sd-6-10-0-radio-button-group-padding" part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-6-10-0-button-group>` : defaultSlot}</div></fieldset><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle ? html`<sd-6-10-0-icon part="invalid-icon" class="${cx("text-error")}" library="_internal" name="risk"></sd-6-10-0-icon>` : ""} ${this.formControlController.renderInvalidMessage(this.size)}</div>`;
|
|
283
283
|
}
|
|
284
284
|
};
|
|
285
285
|
/**
|
|
@@ -288,7 +288,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
288
288
|
SdRadioGroup.styles = [
|
|
289
289
|
...SolidElement.styles,
|
|
290
290
|
css`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
291
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-
|
|
291
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-10-0-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-10-0-radio:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-10-0-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-10-0-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-10-0-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-10-0-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([required]) #label::after{content:' *'}:host:has(sd-6-10-0-button-group){display:inline-flex}`
|
|
292
292
|
];
|
|
293
293
|
__decorateClass([
|
|
294
294
|
query("slot:not([name])")
|
|
@@ -342,7 +342,7 @@ __decorateClass([
|
|
|
342
342
|
watch("value")
|
|
343
343
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
344
344
|
SdRadioGroup = __decorateClass([
|
|
345
|
-
customElement("sd-6-
|
|
345
|
+
customElement("sd-6-10-0-radio-group")
|
|
346
346
|
], SdRadioGroup);
|
|
347
347
|
|
|
348
348
|
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-6-
|
|
87
|
+
(_b = (_a = tooltip.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-10-0-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-6-
|
|
263
|
+
style.setAttribute("data-sd-6-10-0-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-6-
|
|
448
|
+
return html`<sd-6-10-0-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-6-
|
|
451
|
+
)}"></div></sd-6-10-0-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-6-
|
|
521
|
+
customElement("sd-6-10-0-range")
|
|
522
522
|
], SdRange);
|
|
523
523
|
|
|
524
524
|
export {
|
|
@@ -22,9 +22,9 @@ var SdBadge = class extends SolidElement {
|
|
|
22
22
|
"inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",
|
|
23
23
|
{
|
|
24
24
|
/* variants */
|
|
25
|
-
blue: !this.inverted ? "text-white bg-primary-500 border-white" : "sd-6-
|
|
26
|
-
green: !this.inverted ? "text-white sd-6-
|
|
27
|
-
red: !this.inverted ? "text-white sd-6-
|
|
25
|
+
blue: !this.inverted ? "text-white bg-primary-500 border-white" : "sd-6-10-0-badge--blue--inverted-color-text sd-6-10-0-badge--blue--inverted-color-background sd-6-10-0-badge--inverted-color-border",
|
|
26
|
+
green: !this.inverted ? "text-white sd-6-10-0-badge--green-color-background border-white" : "sd-6-10-0-badge--green-color--inverted-text sd-6-10-0-badge--green-color--inverted-background sd-6-10-0-badge--inverted-color-border",
|
|
27
|
+
red: !this.inverted ? "text-white sd-6-10-0-badge--red-color-background border-white" : "sd-6-10-0-badge--red--inverted-text sd-6-10-0-badge--red--inverted-background sd-6-10-0-badge--inverted-color-border"
|
|
28
28
|
}[this.variant]
|
|
29
29
|
)}"><span id="content" part="content" class="${cx(this.size === "sm" && "sr-only")}"><slot></slot></span></span>`;
|
|
30
30
|
}
|
|
@@ -44,7 +44,7 @@ __decorateClass([
|
|
|
44
44
|
property({ type: Boolean, reflect: true })
|
|
45
45
|
], SdBadge.prototype, "inverted", 2);
|
|
46
46
|
SdBadge = __decorateClass([
|
|
47
|
-
customElement("sd-6-
|
|
47
|
+
customElement("sd-6-10-0-badge")
|
|
48
48
|
], SdBadge);
|
|
49
49
|
|
|
50
50
|
export {
|
|
@@ -87,7 +87,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
87
87
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
88
88
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
89
89
|
}[this.frontVariant]
|
|
90
|
-
)}"></div><sd-6-
|
|
90
|
+
)}"></div><sd-6-10-0-button part="front-button" size="md" variant="${{
|
|
91
91
|
primary: "tertiary",
|
|
92
92
|
"primary-100": "tertiary",
|
|
93
93
|
"gradient-light": "primary",
|
|
@@ -97,7 +97,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
97
97
|
"primary-100": false,
|
|
98
98
|
"gradient-light": true,
|
|
99
99
|
"gradient-dark": true
|
|
100
|
-
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-6-
|
|
100
|
+
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-6-10-0-icon library="_internal" name="reload" label="Flip to Back"></sd-6-10-0-icon></sd-6-10-0-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide === "front"}" inert="${ifDefined(this.activeSide === "front" || void 0)}" class="${cx(
|
|
101
101
|
"flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out",
|
|
102
102
|
"flex focus-visible:focus-outline",
|
|
103
103
|
"absolute top-0 left-0 w-full h-full justify-end text-left",
|
|
@@ -130,7 +130,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
130
130
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
131
131
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
132
132
|
}[this.backVariant]
|
|
133
|
-
)}"></div><sd-6-
|
|
133
|
+
)}"></div><sd-6-10-0-button size="md" part="back-button" variant="${{
|
|
134
134
|
primary: "tertiary",
|
|
135
135
|
"primary-100": "tertiary",
|
|
136
136
|
"gradient-light": "primary",
|
|
@@ -140,7 +140,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
140
140
|
"primary-100": false,
|
|
141
141
|
"gradient-light": true,
|
|
142
142
|
"gradient-dark": true
|
|
143
|
-
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-6-
|
|
143
|
+
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-6-10-0-icon library="_internal" name="reload" label="Flip to Front"></sd-6-10-0-icon></sd-6-10-0-button></div></div>`;
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
/**
|
|
@@ -177,7 +177,7 @@ __decorateClass([
|
|
|
177
177
|
state()
|
|
178
178
|
], SdFlipcard.prototype, "activeSide", 2);
|
|
179
179
|
SdFlipcard = __decorateClass([
|
|
180
|
-
customElement("sd-6-
|
|
180
|
+
customElement("sd-6-10-0-flipcard")
|
|
181
181
|
], SdFlipcard);
|
|
182
182
|
|
|
183
183
|
export {
|
|
@@ -71,7 +71,7 @@ var SdRadio = class extends SolidElement {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
return html`<span part="base" class="${cx(
|
|
74
|
-
"sd-6-
|
|
74
|
+
"sd-6-10-0-radio group flex items-center text-base leading-normal text-black cursor-pointer",
|
|
75
75
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
76
76
|
{
|
|
77
77
|
/* sizes, fonts */
|
|
@@ -80,15 +80,15 @@ var SdRadio = class extends SolidElement {
|
|
|
80
80
|
lg: "text-base"
|
|
81
81
|
}[this.size]
|
|
82
82
|
)}"><span part="${`${this.checked ? "control--checked" : "control--unchecked"}`}" class="${cx(
|
|
83
|
-
"flex-initial shrink-0 relative inline-flex items-center justify-center border sd-6-
|
|
83
|
+
"flex-initial shrink-0 relative inline-flex items-center justify-center border sd-6-10-0-radio-border-width rounded-full bg-white h-4 w-4 duration-fast ease-in-out",
|
|
84
84
|
this.disabled || this.visuallyDisabled ? "border-neutral-500" : this.invalid ? cx(
|
|
85
85
|
"border-error hover:border-error-400 group-hover:border-error-400",
|
|
86
|
-
this.checked ? "sd-6-
|
|
87
|
-
) : this.checked ? "sd-6-
|
|
86
|
+
this.checked ? "sd-6-10-0-radio--checked--invalid--default-color-background" : "sd-6-10-0-radio--default--invalid-color-background"
|
|
87
|
+
) : this.checked ? "sd-6-10-0-radio--checked--default-color-background hover:sd-6-10-0-radio--checked--hover-color-background group-hover:sd-6-10-0-radio--checked--hover-color-background border-accent hover:border-accent-550 group-hover:border-accent-550" : "form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200"
|
|
88
88
|
)}"><span part="checked" class="${cx(
|
|
89
|
-
"rounded-full inline-flex text-white sd-6-
|
|
89
|
+
"rounded-full inline-flex text-white sd-6-10-0-radio--checked--default__icon-color-background h-2.5 w-2.5 transition-[transform, colors] duration-medium ease-in-out",
|
|
90
90
|
this.checked ? "scale-100" : "scale-0",
|
|
91
|
-
this.disabled ? "bg-neutral-500" : this.visuallyDisabled ? "bg-white" : this.invalid ? "sd-6-
|
|
91
|
+
this.disabled ? "bg-neutral-500" : this.visuallyDisabled ? "bg-white" : this.invalid ? "sd-6-10-0-radio--checked--invalid--default__icon-color-background hover:sd-6-10-0-radio--checked--invalid--hover__icon-color-background group-hover:sd-6-10-0-radio--checked--invalid--hover__icon-color-background" : this.checked ? "sd-6-10-0-radio--checked--default__icon-color-background hover:sd-6-10-0-radio--checked--hover__icon-color-background group-hover:sd-6-10-0-radio--checked--hover__icon-color-background" : "bg-neutral-800"
|
|
92
92
|
)}"></span></span><slot part="label" class="${cx(
|
|
93
93
|
"ml-2 select-none inline-block",
|
|
94
94
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.invalid ? "text-error" : "text-black"
|
|
@@ -131,7 +131,7 @@ __decorateClass([
|
|
|
131
131
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
132
132
|
], SdRadio.prototype, "handleDisabledChange", 1);
|
|
133
133
|
SdRadio = __decorateClass([
|
|
134
|
-
customElement("sd-6-
|
|
134
|
+
customElement("sd-6-10-0-radio")
|
|
135
135
|
], SdRadio);
|
|
136
136
|
|
|
137
137
|
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-6-
|
|
303
|
+
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-6-10-0-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-6-10-0-icon class="text-xl" name="pause" library="_internal"></sd-6-10-0-icon></slot>` : html`<slot name="play-icon"><sd-6-10-0-icon class="text-xl" name="start" library="_internal"></sd-6-10-0-icon></slot>`}</sd-6-10-0-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-6-10-0-icon class="w-6 h-6" name="transcript" library="_internal"></sd-6-10-0-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-6-10-0-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="_internal"></sd-6-10-0-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-6-
|
|
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-6-
|
|
308
|
+
)}" part="timestamps"><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-6-10-0-audio__timestamp-color-text")}">${this.currentTime}</div><div class="${cx("current-time text-sm", this.inverted ? "text-primary-400" : "sd-6-10-0-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-6-10-0-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-6-10-0-input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}"></sd-6-10-0-range></div>${this.hasSlotController.test("transcript") ? html`<sd-6-10-0-drawer><slot name="transcript"></slot></sd-6-10-0-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div><sd-6-10-0-theme-listener></sd-6-10-0-theme-listener>`;
|
|
310
310
|
}
|
|
311
311
|
};
|
|
312
312
|
SdAudio.styles = [
|
|
313
313
|
...SolidElement.styles,
|
|
314
314
|
css`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
315
|
-
sd-6-
|
|
315
|
+
sd-6-10-0-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-6-10-0-button::part(motion-wrapper){border-radius:var(--sd-radius-full)}sd-6-10-0-button::part(label){display:flex;flex-grow:0;align-items:center}sd-6-10-0-range::part(form-control-label){display:none}:host([inverted]) sd-6-10-0-range::part(thumb){outline-color:var(--color-white,#fff);background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}:host([animated]) sd-6-10-0-range::part(track){background-color:transparent}:host([inverted]:not([animated])) sd-6-10-0-range::part(track){background-color:rgba(var(--sd-color-border-primary-400,rgba(var(--sd-color-primary-400))))}:host([inverted]:not([animated])) sd-6-10-0-range::part(active-track){background-color:rgba(var(--sd-color-border-white,rgba(var(--sd-color-white))))}`
|
|
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-6-
|
|
357
|
+
query("sd-6-10-0-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-6-
|
|
363
|
+
customElement("sd-6-10-0-audio")
|
|
364
364
|
], SdAudio);
|
|
365
365
|
|
|
366
366
|
export {
|
|
@@ -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-6-
|
|
121
|
+
"sd-6-10-0-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 flex-shrink-0 items-center justify-center border sd-6-
|
|
130
|
+
"relative flex flex-shrink-0 items-center justify-center border sd-6-10-0-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",
|
|
133
133
|
{
|
|
@@ -160,10 +160,10 @@ var SdCheckbox = class extends SolidElement {
|
|
|
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-6-
|
|
163
|
+
)}"></div></div>${this.checked ? html`<sd-6-10-0-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-6-10-0-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-6-10-0-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-6-10-0-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" : this.showInvalidStyle ? "text-error" : "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-6-
|
|
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-6-10-0-icon id="invalid-icon" part="invalid-icon" class="${cx("text-error")}" library="_internal" name="risk"></sd-6-10-0-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-6-
|
|
226
|
+
customElement("sd-6-10-0-checkbox")
|
|
227
227
|
], SdCheckbox);
|
|
228
228
|
|
|
229
229
|
export {
|