@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
|
@@ -163,48 +163,48 @@ var SdButton = class extends SolidElement {
|
|
|
163
163
|
* */
|
|
164
164
|
{
|
|
165
165
|
/* sizes, fonts */
|
|
166
|
-
sm: `sd-6-
|
|
167
|
-
md: `sd-6-
|
|
168
|
-
lg: `sd-6-
|
|
166
|
+
sm: `sd-6-10-0-button--size-sm-font-size sd-6-10-0-button-font-weight sd-6-10-0-button--size-sm-border-radius varspacing-8 ${hasBorder ? "py-[0.281rem] px-[0.938rem]" : "sd-6-10-0-button--size-sm-padding-block px-4"}`,
|
|
167
|
+
md: `sd-6-10-0-button--size-md-font-size sd-6-10-0-button-font-weight sd-6-10-0-button--size-md-border-radius varspacing-10 ${hasBorder ? "py-[0.438rem] px-[0.938rem]" : "sd-6-10-0-button--size-md-padding-block px-4"}`,
|
|
168
|
+
lg: `sd-6-10-0-button--size-lg-font-size sd-6-10-0-button-font-weight sd-6-10-0-button--size-lg-border-radius varspacing-12 ${hasBorder ? "py-[0.688rem] px-[0.938rem]" : "sd-6-10-0-button--size-lg-padding-block px-4"}`
|
|
169
169
|
}[this.size],
|
|
170
170
|
{
|
|
171
171
|
/* variants */
|
|
172
|
-
primary: !this.inverted ? `${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 text-white" : "sd-6-
|
|
173
|
-
disabled:bg-neutral-500 disabled:text-white` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-
|
|
174
|
-
disabled:sd-6-
|
|
175
|
-
secondary: !this.inverted ? `border ${this.visuallyDisabled ? "sd-6-
|
|
176
|
-
disabled:sd-6-
|
|
177
|
-
disabled:sd-6-
|
|
178
|
-
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "sd-6-
|
|
179
|
-
disabled:sd-6-
|
|
180
|
-
disabled:sd-6-
|
|
172
|
+
primary: !this.inverted ? `${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 text-white" : "sd-6-10-0-button--primary--default-color-background border-transparent sd-6-10-0-button--primary--default-color-text hover:text-primary-100 active:sd-6-10-0-button--primary--active-color-text"}
|
|
173
|
+
disabled:bg-neutral-500 disabled:text-white` : `${this.visuallyDisabled ? "bg-neutral-500 text-white border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "sd-6-10-0-button--primary--inverted--default-color-text sd-6-10-0-button--primary--inverted--default-color-background border-white hover:sd-6-10-0-button--primary--inverted--hover-color-text active:sd-6-10-0-button--primary--inverted--active-color-text active:sd-6-10-0-button--primary--inverted--active-color-background"}
|
|
174
|
+
disabled:sd-6-10-0-button--inverted--disabled-color-background disabled:sd-6-10-0-button--inverted--disabled-color-border disabled:text-white`,
|
|
175
|
+
secondary: !this.inverted ? `border ${this.visuallyDisabled ? "sd-6-10-0-button--secondary--disabled-color-text border-neutral-500 hover:text-neutral-500 hover:border-neutral-500 active:text-neutral-500 active:border-neutral-500" : "sd-6-10-0-button--secondary--default-color-text border-primary hover:text-primary-500 hover:border-primary-500 active:text-primary-800 active:border-primary-800"}
|
|
176
|
+
disabled:sd-6-10-0-button--secondary--disabled-color-text disabled:border-neutral-500` : `border ${this.visuallyDisabled ? "text-neutral-600 border-neutral-600 hover:text-neutral-600 hover:border-neutral-600 active:text-neutral-600 active:border-neutral-600" : "text-white sd-6-10-0-button--secondary--inverted--color-border hover:sd-6-10-0-button--secondary--inverted--hover-color-text hover:border-primary-100 active:text-primary-200"}
|
|
177
|
+
disabled:sd-6-10-0-button--inverted--disabled-color-border disabled:sd-6-10-0-button--inverted--disabled-color-text`,
|
|
178
|
+
tertiary: !this.inverted ? `border-transparent ${this.visuallyDisabled ? "sd-6-10-0-button--tertiary--disabled-color-text hover:text-neutral-500 active:text-neutral-500" : "sd-6-10-0-button--tertiary--default-color-text hover:text-primary-500 active:text-primary-800"}
|
|
179
|
+
disabled:sd-6-10-0-button--tertiary--disabled-color-text` : `border-transparent ${this.visuallyDisabled ? "text-neutral-600 hover:text-neutral-600 active:text-neutral-600" : "text-white hover:sd-6-10-0-button--tertiary--inverted--hover-color-text hover:sd-6-10-0-button--tertiary--inverted--hover-color-background active:text-primary-200"}
|
|
180
|
+
disabled:sd-6-10-0-button--inverted--disabled-color-text`,
|
|
181
181
|
cta: `${this.visuallyDisabled ? "bg-neutral-500 border-neutral-500 hover:bg-neutral-500 active:bg-neutral-500" : "bg-accent border-transparent"}
|
|
182
|
-
${!this.inverted ? "text-white disabled:bg-neutral-500 disabled:border-neutral-500 disabled:text-white" : "sd-6-
|
|
182
|
+
${!this.inverted ? "text-white disabled:bg-neutral-500 disabled:border-neutral-500 disabled:text-white" : "sd-6-10-0-button--cta--inverted--default-color-background sd-6-10-0-button--cta--inverted--default-color-text hover:sd-6-10-0-button--cta--inverted--hover-color-text active:sd-6-10-0-button--cta--inverted--active-color-text disabled:sd-6-10-0-button--inverted--disabled-color-background disabled:sd-6-10-0-button--inverted--disabled-color-border disabled:text-white"}`
|
|
183
183
|
}[this.variant]
|
|
184
184
|
)}" ?disabled="${ifDefined(isLink ? void 0 : this.disabled)}" type="${ifDefined(isLink ? void 0 : this.type)}" title="${this.title}" name="${ifDefined(isLink ? void 0 : this.name)}" value="${ifDefined(isLink ? void 0 : this.value)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}" rel="${ifDefined(isLink && this.target ? "noreferrer noopener" : void 0)}" role="${ifDefined(isLink ? void 0 : "button")}" aria-disabled="${this.disabled || this.visuallyDisabled ? "true" : "false"}" aria-labelledby="content" tabindex="${this.disabled ? "-1" : "0"}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" @invalid="${this.isButton() ? this.handleInvalid : null}" @click="${this.handleClick}"><div part="motion-wrapper" class="${cx(
|
|
185
185
|
"absolute inset-0 -z-10 overflow-hidden pointer-events-none ",
|
|
186
186
|
(this.disabled || this.visuallyDisabled) && "hidden",
|
|
187
187
|
{
|
|
188
188
|
/* sizes, fonts */
|
|
189
|
-
sm: `sd-6-
|
|
190
|
-
md: `sd-6-
|
|
191
|
-
lg: `sd-6-
|
|
189
|
+
sm: `sd-6-10-0-button--size-sm-border-radius`,
|
|
190
|
+
md: `sd-6-10-0-button--size-md-border-radius`,
|
|
191
|
+
lg: `sd-6-10-0-button--size-lg-border-radius`
|
|
192
192
|
}[this.size]
|
|
193
193
|
)}"><div class="absolute inset-0 w-full h-full transition-all duration-fast translate-y-full group-hover:translate-y-0 group-hover:mt-[-22%] mt-[11%]"><div class="${cx(
|
|
194
194
|
"absolute right-0 min-w-full min-h-full aspect-square skew-y-[-11deg] mt-[11%]",
|
|
195
195
|
{
|
|
196
|
-
primary: !this.inverted ? "sd-6-
|
|
197
|
-
secondary: !this.inverted ? "sd-6-
|
|
198
|
-
tertiary: !this.inverted ? "sd-6-
|
|
199
|
-
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-
|
|
196
|
+
primary: !this.inverted ? "sd-6-10-0-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-10-0-button--primary--inverted--hover-color-background group-active:bg-primary-200",
|
|
197
|
+
secondary: !this.inverted ? "sd-6-10-0-button--secondary--hover-color-background group-active:sd-6-10-0-button--secondary--active-color-background" : "bg-primary-500 group-active:sd-6-10-0-button--secondary--inverted--active-color-background",
|
|
198
|
+
tertiary: !this.inverted ? "sd-6-10-0-button--tertiary--hover-color-background group-active:sd-6-10-0-button--tertiary--active-color-background" : "bg-primary-500 group-active:sd-6-10-0-button--tertiary--inverted--active-color-background",
|
|
199
|
+
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-10-0-button--cta--inverted--hover-color-background group-active:sd-6-10-0-button--cta--inverted--active-color-background"
|
|
200
200
|
}[this.variant]
|
|
201
201
|
)}"></div><div class="${cx(
|
|
202
202
|
"absolute w-full h-full mt-[22%]",
|
|
203
203
|
{
|
|
204
|
-
primary: !this.inverted ? "sd-6-
|
|
205
|
-
secondary: !this.inverted ? "sd-6-
|
|
206
|
-
tertiary: !this.inverted ? "sd-6-
|
|
207
|
-
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-
|
|
204
|
+
primary: !this.inverted ? "sd-6-10-0-button--primary--hover-color-background group-active:bg-primary-800" : "sd-6-10-0-button--primary--inverted--hover-color-background group-active:bg-primary-200",
|
|
205
|
+
secondary: !this.inverted ? "sd-6-10-0-button--secondary--hover-color-background group-active:sd-6-10-0-button--secondary--active-color-background" : "bg-primary-500 group-active:sd-6-10-0-button--secondary--inverted--active-color-background",
|
|
206
|
+
tertiary: !this.inverted ? "sd-6-10-0-button--tertiary--hover-color-background group-active:sd-6-10-0-button--tertiary--active-color-background" : "bg-primary-500 group-active:sd-6-10-0-button--tertiary--inverted--active-color-background",
|
|
207
|
+
cta: !this.inverted ? "bg-accent-550 group-active:bg-accent-700" : "sd-6-10-0-button--cta--inverted--hover-color-background group-active:sd-6-10-0-button--cta--inverted--active-color-background"
|
|
208
208
|
}[this.variant]
|
|
209
209
|
)}"></div></div></div><slot name="icon-left" part="icon-left" class="${cx(
|
|
210
210
|
"flex flex-auto items-center justify-end pointer-events-none",
|
|
@@ -228,7 +228,7 @@ var SdButton = class extends SolidElement {
|
|
|
228
228
|
md: "ml-2",
|
|
229
229
|
lg: "ml-2"
|
|
230
230
|
}[this.size]
|
|
231
|
-
)}"></slot>${this.loading ? html`<sd-6-
|
|
231
|
+
)}"></slot>${this.loading ? html`<sd-6-10-0-loader class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-6-10-0-loader>` : ""}</${tag}>`;
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
/**
|
|
@@ -237,13 +237,13 @@ var SdButton = class extends SolidElement {
|
|
|
237
237
|
SdButton.styles = [
|
|
238
238
|
...SolidElement.styles,
|
|
239
239
|
css`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
240
|
-
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-
|
|
240
|
+
:host{position:relative;z-index:0;display:inline-block;width:auto;cursor:pointer}::slotted(sd-6-10-0-badge){pointer-events:none;position:absolute;top:calc(var(--sd-spacing-1) * 0);right:calc(var(--sd-spacing-1) * 0);--tw-translate-x:calc(1 / 2 * 100%)!important;--tw-translate-y:calc(calc(1 / 2 * 100%) * -1)!important;translate:var(--tw-translate-x) var(--tw-translate-y)!important}::slotted(sd-6-10-0-icon),sd-6-10-0-loader{font-size:calc(var(--tw-varspacing)/ 2)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}`
|
|
241
241
|
];
|
|
242
242
|
__decorateClass([
|
|
243
243
|
query("a, button")
|
|
244
244
|
], SdButton.prototype, "button", 2);
|
|
245
245
|
__decorateClass([
|
|
246
|
-
queryAssignedElements({ selector: "sd-6-
|
|
246
|
+
queryAssignedElements({ selector: "sd-6-10-0-icon" })
|
|
247
247
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
248
248
|
__decorateClass([
|
|
249
249
|
state()
|
|
@@ -309,7 +309,7 @@ __decorateClass([
|
|
|
309
309
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
310
310
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
311
311
|
SdButton = __decorateClass([
|
|
312
|
-
customElement("sd-6-
|
|
312
|
+
customElement("sd-6-10-0-button")
|
|
313
313
|
], SdButton);
|
|
314
314
|
|
|
315
315
|
export {
|
|
@@ -64,9 +64,9 @@ var SdRadioButton = class extends SolidElement {
|
|
|
64
64
|
const hasIconSlot = this.hasSlotController.test("icon");
|
|
65
65
|
const buttonSizeClass = `${this.size}-${hasDefaultSlot ? "label" : "no-label"}`;
|
|
66
66
|
return html`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked ? " button--checked" : ""}`}" role="radio" aria-checked="${this.checked}" class="${cx(
|
|
67
|
-
"relative text-center sd-6-
|
|
67
|
+
"relative text-center sd-6-10-0-radio-button-border-radius transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline",
|
|
68
68
|
this.size === "sm" ? "text-sm" : "text-base",
|
|
69
|
-
this.checked && !this.disabled && !this.visuallyDisabled ? "sd-6-
|
|
69
|
+
this.checked && !this.disabled && !this.visuallyDisabled ? "sd-6-10-0-button--primary--default-color-background sd-6-10-0-button--primary--default-color-text hover:sd-6-10-0-button--primary--hover-color-background" : !this.checked && (this.disabled || this.visuallyDisabled) ? "text-neutral-500 hover:cursor-not-allowed" : this.checked && (this.disabled || this.visuallyDisabled) ? "bg-neutral-400 text-white hover:cursor-not-allowed " : "bg-transparent sd-6-10-0-radio-button-color-text border-primary hover:text-primary-500 cursor-pointer",
|
|
70
70
|
hasDefaultSlot && {
|
|
71
71
|
sm: "px-3",
|
|
72
72
|
md: "px-4",
|
|
@@ -89,7 +89,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
89
89
|
SdRadioButton.styles = [
|
|
90
90
|
...SolidElement.styles,
|
|
91
91
|
css`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
92
|
-
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:var(--sd-spacing-12)}.lg-no-label{height:var(--sd-spacing-12);padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:var(--sd-spacing-10)}.md-no-label{height:var(--sd-spacing-10);padding-inline:var(--sd-spacing-4)}.sm-label{height:var(--sd-spacing-8)}.sm-no-label{height:var(--sd-spacing-8);padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-
|
|
92
|
+
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:calc(var(--sd-spacing-1) * 0);z-index:calc(10 * -1);opacity:var(--sd-opacity-0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:var(--sd-color-border-error,var(--sd-color-error));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:var(--sd-spacing-12)}.lg-no-label{height:var(--sd-spacing-12);padding-inline:calc(var(--sd-spacing-1) * 5)}.md-label{height:var(--sd-spacing-10)}.md-no-label{height:var(--sd-spacing-10);padding-inline:var(--sd-spacing-4)}.sm-label{height:var(--sd-spacing-8)}.sm-no-label{height:var(--sd-spacing-8);padding-inline:var(--sd-spacing-3)}:host([size=lg].sd-6-10-0-button-group__button:not(.sd-6-10-0-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3) * -1)}:host([size=md].sd-6-10-0-button-group__button:not(.sd-6-10-0-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2) * -1)}:host([size=sm].sd-6-10-0-button-group__button:not(.sd-6-10-0-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1) * -1)}:host(.sd-6-10-0-button-group__button--hover){z-index:20}:host(.sd-6-10-0-button-group__button--focus),:host(.sd-6-10-0-button-group__button[checked]){z-index:10}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`
|
|
93
93
|
];
|
|
94
94
|
__decorateClass([
|
|
95
95
|
query(".button")
|
|
@@ -119,7 +119,7 @@ __decorateClass([
|
|
|
119
119
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
120
120
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
121
121
|
SdRadioButton = __decorateClass([
|
|
122
|
-
customElement("sd-6-
|
|
122
|
+
customElement("sd-6-10-0-radio-button")
|
|
123
123
|
], SdRadioButton);
|
|
124
124
|
|
|
125
125
|
export {
|
|
@@ -98,11 +98,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
98
98
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
99
99
|
};
|
|
100
100
|
this.getTag = (option) => {
|
|
101
|
-
return html`<sd-6-
|
|
101
|
+
return html`<sd-6-10-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
102
102
|
base:tag__base,
|
|
103
103
|
content:tag__content,
|
|
104
104
|
removable-indicator:tag__removable-indicator,
|
|
105
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-6-
|
|
105
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-6-10-0-tag>`;
|
|
106
106
|
};
|
|
107
107
|
this.handleDocumentFocusIn = (event) => {
|
|
108
108
|
const path = event.composedPath();
|
|
@@ -241,9 +241,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
241
241
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
242
242
|
};
|
|
243
243
|
return this.filteredOptions.map((item) => {
|
|
244
|
-
if (item.tagName.toLowerCase() === "sd-6-
|
|
244
|
+
if (item.tagName.toLowerCase() === "sd-6-10-0-optgroup") {
|
|
245
245
|
Array.from(item.children).forEach((option) => {
|
|
246
|
-
if (option.tagName.toLowerCase() === "sd-6-
|
|
246
|
+
if (option.tagName.toLowerCase() === "sd-6-10-0-option") {
|
|
247
247
|
renderOption(option);
|
|
248
248
|
}
|
|
249
249
|
});
|
|
@@ -263,11 +263,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
263
263
|
});
|
|
264
264
|
} else {
|
|
265
265
|
return [
|
|
266
|
-
html`<sd-6-
|
|
266
|
+
html`<sd-6-10-0-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
267
267
|
base:tag__base,
|
|
268
268
|
content:tag__content,
|
|
269
269
|
removable-indicator:tag__removable-indicator,
|
|
270
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-6-
|
|
270
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-6-10-0-tag>`
|
|
271
271
|
];
|
|
272
272
|
}
|
|
273
273
|
}
|
|
@@ -386,7 +386,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
386
386
|
}
|
|
387
387
|
handleOptionClick(event) {
|
|
388
388
|
const target = event.target;
|
|
389
|
-
const option = target.closest("sd-6-
|
|
389
|
+
const option = target.closest("sd-6-10-0-option");
|
|
390
390
|
const oldValue = this.value;
|
|
391
391
|
if (option && !option.disabled) {
|
|
392
392
|
if (this.multiple) {
|
|
@@ -438,7 +438,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
438
438
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
439
439
|
}
|
|
440
440
|
getAllFilteredOptions() {
|
|
441
|
-
return [...this.filteredWrapper.querySelectorAll("sd-6-
|
|
441
|
+
return [...this.filteredWrapper.querySelectorAll("sd-6-10-0-option")];
|
|
442
442
|
}
|
|
443
443
|
getCurrentOption() {
|
|
444
444
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -568,7 +568,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
568
568
|
clonedOption.selected = option.selected;
|
|
569
569
|
clonedOption.checkbox = option.checkbox;
|
|
570
570
|
clonedOption.size = option.size;
|
|
571
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-6-
|
|
571
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-6-10-0-optgroup";
|
|
572
572
|
if (!hasOptgroup) {
|
|
573
573
|
return clonedOption;
|
|
574
574
|
}
|
|
@@ -592,7 +592,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
592
592
|
this.formControlController.emitInvalidEvent(event);
|
|
593
593
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
594
594
|
}
|
|
595
|
-
/** Receives incoming event detail from sd-6-
|
|
595
|
+
/** Receives incoming event detail from sd-6-10-0-popup and updates local state for conditional styling. */
|
|
596
596
|
handleCurrentPlacement(e) {
|
|
597
597
|
const incomingPlacement = e.detail;
|
|
598
598
|
if (incomingPlacement) {
|
|
@@ -604,7 +604,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
604
604
|
}
|
|
605
605
|
handleUseTagsChange() {
|
|
606
606
|
const allOptions = this.getAllFilteredOptions();
|
|
607
|
-
if (customElements.get("sd-6-
|
|
607
|
+
if (customElements.get("sd-6-10-0-option")) {
|
|
608
608
|
allOptions.forEach((option) => {
|
|
609
609
|
option.checkbox = this.multiple;
|
|
610
610
|
});
|
|
@@ -733,8 +733,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
733
733
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
734
734
|
}
|
|
735
735
|
async handleDefaultSlotChange() {
|
|
736
|
-
if (!customElements.get("sd-6-
|
|
737
|
-
customElements.whenDefined("sd-6-
|
|
736
|
+
if (!customElements.get("sd-6-10-0-option")) {
|
|
737
|
+
customElements.whenDefined("sd-6-10-0-option").then(() => this.handleDefaultSlotChange());
|
|
738
738
|
return;
|
|
739
739
|
}
|
|
740
740
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -746,10 +746,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
746
746
|
if (this.multiple) {
|
|
747
747
|
option.checkbox = true;
|
|
748
748
|
}
|
|
749
|
-
option.id = option.id || `sd-6-
|
|
749
|
+
option.id = option.id || `sd-6-10-0-combobox-option-${index}`;
|
|
750
750
|
});
|
|
751
751
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
752
|
-
optgroup.id = optgroup.id || `sd-6-
|
|
752
|
+
optgroup.id = optgroup.id || `sd-6-10-0-combobox-optgroup-${index}`;
|
|
753
753
|
});
|
|
754
754
|
await this.syncSelectedOptionsAndValue();
|
|
755
755
|
if (this.multiple) {
|
|
@@ -811,7 +811,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
811
811
|
default: "form-control-color-border"
|
|
812
812
|
}[selectState],
|
|
813
813
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
814
|
-
)}"></div><sd-6-
|
|
814
|
+
)}"></div><sd-6-10-0-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
815
815
|
"inline-flex relative w-full",
|
|
816
816
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
817
817
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -837,27 +837,27 @@ var SdCombobox = class extends SolidElement {
|
|
|
837
837
|
"flex justify-center",
|
|
838
838
|
iconMarginLeft,
|
|
839
839
|
this.value.length > 0 ? "visible" : "invisible"
|
|
840
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-
|
|
840
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-6-10-0-icon class="${cx("text-neutral-700", iconSize)}" name="closing-round" library="_internal"></sd-6-10-0-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-6-10-0-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-6-10-0-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-6-10-0-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle"></sd-6-10-0-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
841
841
|
"inline-flex ml-2 leading-[0]",
|
|
842
842
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
843
843
|
iconSize
|
|
844
|
-
)}">${this.type !== "search" ? html`<sd-6-
|
|
844
|
+
)}">${this.type !== "search" ? html`<sd-6-10-0-icon class="${cx(
|
|
845
845
|
"transition-transform duration-medium ease-in-out",
|
|
846
846
|
this.open ? "rotate-180" : "rotate-0"
|
|
847
|
-
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-6-
|
|
847
|
+
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-6-10-0-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button"><sd-6-10-0-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-6-10-0-icon></button>` : html`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${ifDefined(!this.multiple ? "listbox" : void 0)}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
848
848
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
849
849
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
850
850
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
|
851
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-6-
|
|
851
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-6-10-0-popup></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage(this.size)}`;
|
|
852
852
|
}
|
|
853
853
|
};
|
|
854
854
|
SdCombobox.styles = [
|
|
855
855
|
...SolidElement.styles,
|
|
856
856
|
css`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
857
|
-
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-
|
|
857
|
+
:host{position:relative;display:block;width:100%}:host([required]) #label::after{content:' *'}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{color:rgba(var(--sd-color-text-neutral-500))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{right:var(--sd-spacing-4);height:var(--sd-spacing-4);width:var(--sd-spacing-4)}:host([size=md]) .combobox-button{right:.85rem;height:var(--sd-spacing-6);width:var(--sd-spacing-6)}:host([size=lg]) .combobox-button{right:var(--sd-spacing-3);height:var(--sd-spacing-8);width:var(--sd-spacing-8)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-6-10-0-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-6-10-0-tag::part(base){border-radius:var(--sd-radius);padding-inline:var(--sd-spacing-1)}sd-6-10-0-tag::part(content){display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:var(--tag-max-width,15ch)}sd-6-10-0-tag[size=lg]::part(base){padding-inline:var(--sd-spacing-2)}sd-6-10-0-tag[disabled=false]::part(base):hover{background-color:rgba(var(--sd-color-background-primary-100))}[part=filtered-listbox] sd-6-10-0-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold);color:inherit}@property --tw-font-weight{syntax:"*";inherits:false}`
|
|
858
858
|
];
|
|
859
859
|
__decorateClass([
|
|
860
|
-
query("sd-6-
|
|
860
|
+
query("sd-6-10-0-popup")
|
|
861
861
|
], SdCombobox.prototype, "popup", 2);
|
|
862
862
|
__decorateClass([
|
|
863
863
|
query('[part="combobox"]')
|
|
@@ -1021,7 +1021,7 @@ __decorateClass([
|
|
|
1021
1021
|
watch(["size", "floatingLabel"])
|
|
1022
1022
|
], SdCombobox.prototype, "handleSizeChange", 1);
|
|
1023
1023
|
SdCombobox = __decorateClass([
|
|
1024
|
-
customElement("sd-6-
|
|
1024
|
+
customElement("sd-6-10-0-combobox")
|
|
1025
1025
|
], SdCombobox);
|
|
1026
1026
|
setDefaultAnimation("combobox.show", {
|
|
1027
1027
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -24,7 +24,7 @@ var SdTab = class extends SolidElement {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments);
|
|
26
26
|
this.attrId = ++id;
|
|
27
|
-
this.componentId = `sd-6-
|
|
27
|
+
this.componentId = `sd-6-10-0-tab-${this.attrId}`;
|
|
28
28
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
29
29
|
this.localize = new LocalizeController(this);
|
|
30
30
|
this.variant = "default";
|
|
@@ -73,7 +73,7 @@ var SdTab = class extends SolidElement {
|
|
|
73
73
|
)}"></slot><slot class="${cx(this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary")}"></slot>${this.variant === "container" ? html`<div part="active-tab-indicator" class="${cx(
|
|
74
74
|
"absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius"
|
|
75
75
|
)}"></div>` : ""}<div part="hover-bottom-border" class="${cx(
|
|
76
|
-
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-
|
|
76
|
+
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-10-0-tab-color-border"
|
|
77
77
|
)}"></div></div></div>`;
|
|
78
78
|
}
|
|
79
79
|
};
|
|
@@ -110,7 +110,7 @@ __decorateClass([
|
|
|
110
110
|
watch(["disabled", "visually-disabled"])
|
|
111
111
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
112
112
|
SdTab = __decorateClass([
|
|
113
|
-
customElement("sd-6-
|
|
113
|
+
customElement("sd-6-10-0-tab")
|
|
114
114
|
], SdTab);
|
|
115
115
|
|
|
116
116
|
export {
|
|
@@ -60,7 +60,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
60
60
|
this.pausedAutoplay = false;
|
|
61
61
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
|
62
62
|
this.scrollController = new ScrollController(this);
|
|
63
|
-
this.slides = this.getElementsByTagName("sd-6-
|
|
63
|
+
this.slides = this.getElementsByTagName("sd-6-10-0-carousel-item");
|
|
64
64
|
// determines which slide is displayed
|
|
65
65
|
// A map containing the state of all the slides
|
|
66
66
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
|
@@ -449,7 +449,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
449
449
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${prevEnabled ? (e) => {
|
|
450
450
|
this.previous();
|
|
451
451
|
this.unblockAutoplay(e, this.previousButton);
|
|
452
|
-
} : null}"><slot name="previous-icon"><sd-6-
|
|
452
|
+
} : null}"><slot name="previous-icon"><sd-6-10-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-6-10-0-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
|
|
453
453
|
const isActive = index + 1 === currentPage;
|
|
454
454
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
|
455
455
|
"carousel__pagination-item",
|
|
@@ -460,14 +460,14 @@ var SdCarousel = class extends SolidElement {
|
|
|
460
460
|
this.goToSlide(index * slidesPerMove);
|
|
461
461
|
this.unblockAutoplay(e, this.paginationItems[index]);
|
|
462
462
|
}}" @keydown="${this.handleKeyDown}"><span class="${cx(
|
|
463
|
-
"h-4 w-4 block border sd-6-
|
|
464
|
-
this.inverted ? "sd-6-
|
|
463
|
+
"h-4 w-4 block border sd-6-10-0-carousel__pager-dot-border-width rounded-full transition-colors duration-slow hover:duration-fast ease-in-out",
|
|
464
|
+
this.inverted ? "sd-6-10-0-carousel__pager-dot--inverted-border hover:border-primary-200" : "border-primary hover:border-primary-500",
|
|
465
465
|
isActive && "border-none",
|
|
466
|
-
isActive ? this.inverted ? "sd-6-
|
|
466
|
+
isActive ? this.inverted ? "sd-6-10-0-carousel__pager-dot--inverted-background hover:sd-6-10-0-carousel__pager-dot--inverted--hovered-background" : "sd-6-10-0-carousel__pager-dot-background hover:bg-accent-550" : ""
|
|
467
467
|
)}"></span></button>`;
|
|
468
468
|
})}</div>` : html`<span part="pagination-number" class="carousel__pagination number flex gap-0.5 cursor-default select-none" aria-controls="scroll-container"><span part="pagination-item" class="${cx(
|
|
469
469
|
"w-5 text-center border-b-2",
|
|
470
|
-
this.inverted ? "text-white sd-6-
|
|
470
|
+
this.inverted ? "text-white sd-6-10-0-carousel--active--inverted-color-border" : "text-black sd-6-10-0-carousel--active-color-border"
|
|
471
471
|
)}">${currentPage}</span> <span part="pagination-divider" class="${cx("scale-y-[1.5]", "text-center", this.inverted ? "text-white" : "text-black")}">/</span> <span part="pagination-item" class="${cx("w-5 text-center", this.inverted ? "text-white" : "text-black")}">${pagesCount}</span></span>`} <button part="navigation-button navigation-button--next" id="carousel__navigation-button--next" ?disabled="${!nextEnabled ? true : false}" class="${cx(
|
|
472
472
|
"!ml-6 !rounded-sm sd-interactive transition-colors duration-fast ease-in-out",
|
|
473
473
|
!nextEnabled && "sd-interactive--disabled",
|
|
@@ -475,7 +475,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
475
475
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${nextEnabled ? (e) => {
|
|
476
476
|
this.next();
|
|
477
477
|
this.unblockAutoplay(e, this.nextButton);
|
|
478
|
-
} : null}"><slot name="next-icon"><sd-6-
|
|
478
|
+
} : null}"><slot name="next-icon"><sd-6-10-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-6-10-0-icon></slot></button></div><button class="${cx(
|
|
479
479
|
"ml-6 !rounded-sm",
|
|
480
480
|
"!absolute !right-0 sd-interactive",
|
|
481
481
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
|
@@ -485,13 +485,13 @@ var SdCarousel = class extends SolidElement {
|
|
|
485
485
|
if (e.detail) {
|
|
486
486
|
this.autoplayControls.blur();
|
|
487
487
|
}
|
|
488
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-6-
|
|
488
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-6-10-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-6-10-0-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-6-10-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-6-10-0-icon></slot></button></div></div>`;
|
|
489
489
|
}
|
|
490
490
|
};
|
|
491
491
|
SdCarousel.styles = [
|
|
492
492
|
...SolidElement.styles,
|
|
493
493
|
css`/*! tailwindcss v4.2.1 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
494
|
-
:host{--slide-gap:var(--sl-spacing-medium, 1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:'. slides .' '. pagination .'}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-6-
|
|
494
|
+
:host{--slide-gap:var(--sl-spacing-medium, 1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:'. slides .' '. pagination .'}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1) * var(--slide-gap)) / var(--slides-per-page));grid-auto-columns:var(--slide-size);-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);scroll-padding-inline:var(--scroll-hint);padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{position:relative;display:block;overflow:hidden;height:var(--carousel-height)}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-6-10-0-button::part(label){pointer-events:none;display:flex;flex:auto;align-items:center}#carousel__navigation-button--next,#carousel__navigation-button--previous{color:rgba(var(--sd-color-icon-fill-primary))}#carousel__navigation-button--next:disabled,#carousel__navigation-button--previous:disabled{color:rgba(var(--sd-color-icon-fill-neutral-500))}:host([inverted]) #carousel__navigation-button--next,:host([inverted]) #carousel__navigation-button--previous{color:rgba(var(--sd-color-icon-fill-white))}:host([inverted]) #carousel__navigation-button--next:disabled,:host([inverted]) #carousel__navigation-button--previous:disabled{color:rgba(var(--sd-color-icon-fill-neutral-600))}`
|
|
495
495
|
];
|
|
496
496
|
__decorateClass([
|
|
497
497
|
query('[part~="autoplay-controls"]')
|
|
@@ -564,7 +564,7 @@ __decorateClass([
|
|
|
564
564
|
watch("autoplay")
|
|
565
565
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
|
566
566
|
SdCarousel = __decorateClass([
|
|
567
|
-
customElement("sd-6-
|
|
567
|
+
customElement("sd-6-10-0-carousel")
|
|
568
568
|
], SdCarousel);
|
|
569
569
|
|
|
570
570
|
export {
|
|
@@ -20,7 +20,7 @@ var SdRangeTick = class extends SolidElement {
|
|
|
20
20
|
this.subtick = false;
|
|
21
21
|
}
|
|
22
22
|
render() {
|
|
23
|
-
return html`<div part="base" class="${cx(this.subtick ? "w-0.25" : "w-0.5")}"><div part="line" class="${cx(this.subtick ? "h-2" : "h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm sd-6-
|
|
23
|
+
return html`<div part="base" class="${cx(this.subtick ? "w-0.25" : "w-0.5")}"><div part="line" class="${cx(this.subtick ? "h-2" : "h-[10px]")}"></div><div part="label" class="flex items-center justify-center text-center text-nowrap text-sm sd-6-10-0-range-scale-ticks-color-text"><slot></slot></div></div>`;
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
26
|
SdRangeTick.styles = [
|
|
@@ -32,7 +32,7 @@ __decorateClass([
|
|
|
32
32
|
property({ type: Boolean, reflect: true })
|
|
33
33
|
], SdRangeTick.prototype, "subtick", 2);
|
|
34
34
|
SdRangeTick = __decorateClass([
|
|
35
|
-
customElement("sd-6-
|
|
35
|
+
customElement("sd-6-10-0-range-tick")
|
|
36
36
|
], SdRangeTick);
|
|
37
37
|
|
|
38
38
|
export {
|
|
@@ -15,7 +15,7 @@ var FormControlController = class {
|
|
|
15
15
|
const disabled = this.options.disabled(this.host);
|
|
16
16
|
const name = this.options.name(this.host);
|
|
17
17
|
const value = this.options.value(this.host);
|
|
18
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-6-
|
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-6-10-0-button";
|
|
19
19
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
20
20
|
if (Array.isArray(value)) {
|
|
21
21
|
value.forEach((val) => {
|
|
@@ -40,7 +40,7 @@ var FormControlController = class {
|
|
|
40
40
|
event.stopImmediatePropagation();
|
|
41
41
|
const invalidElements = (_b = this.form) == null ? void 0 : _b.querySelectorAll("[data-invalid]");
|
|
42
42
|
const sdRadioGroups = Array.from(invalidElements).filter(
|
|
43
|
-
(element) => element.tagName.toLowerCase() === "sd-6-
|
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-6-10-0-radio-group"
|
|
44
44
|
);
|
|
45
45
|
sdRadioGroups.forEach((radioGroup) => {
|
|
46
46
|
var _a2, _b2;
|
|
@@ -183,7 +183,7 @@ var SdDialog = class extends SolidElement {
|
|
|
183
183
|
)}"><div part="overlay" class="fixed inset-0 overlay-color-background opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
184
184
|
"panel-color-border border flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
185
185
|
this.open && "flex opacity-100"
|
|
186
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-6-
|
|
186
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-6-10-0-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-6-10-0-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-10-0-icon></sd-6-10-0-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`;
|
|
187
187
|
}
|
|
188
188
|
};
|
|
189
189
|
SdDialog.styles = [
|
|
@@ -213,7 +213,7 @@ __decorateClass([
|
|
|
213
213
|
watch("open", { waitUntilFirstUpdate: true })
|
|
214
214
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
215
215
|
SdDialog = __decorateClass([
|
|
216
|
-
customElement("sd-6-
|
|
216
|
+
customElement("sd-6-10-0-dialog")
|
|
217
217
|
], SdDialog);
|
|
218
218
|
setDefaultAnimation("dialog.show", {
|
|
219
219
|
keyframes: [
|
|
@@ -18,7 +18,7 @@ var SdTabPanel = class extends SolidElement {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.attrId = ++id;
|
|
21
|
-
this.componentId = `sd-6-
|
|
21
|
+
this.componentId = `sd-6-10-0-tab-panel-${this.attrId}`;
|
|
22
22
|
this.name = "";
|
|
23
23
|
this.active = false;
|
|
24
24
|
}
|
|
@@ -49,7 +49,7 @@ __decorateClass([
|
|
|
49
49
|
watch("active")
|
|
50
50
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
51
51
|
SdTabPanel = __decorateClass([
|
|
52
|
-
customElement("sd-6-
|
|
52
|
+
customElement("sd-6-10-0-tab-panel")
|
|
53
53
|
], SdTabPanel);
|
|
54
54
|
|
|
55
55
|
export {
|
|
@@ -97,8 +97,8 @@ var SdOption = class extends SolidElement {
|
|
|
97
97
|
md: "mt-1",
|
|
98
98
|
lg: "mt-1"
|
|
99
99
|
}[this.size],
|
|
100
|
-
this.disabled ? "sd-6-
|
|
101
|
-
)}">${this.selected ? html`<sd-6-
|
|
100
|
+
this.disabled ? "sd-6-10-0-option--disabled-color-border" : this.selected ? "bg-accent border-accent" : "bg-white form-control-color-border"
|
|
101
|
+
)}">${this.selected ? html`<sd-6-10-0-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-6-10-0-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
@@ -146,7 +146,7 @@ __decorateClass([
|
|
|
146
146
|
watch("value")
|
|
147
147
|
], SdOption.prototype, "handleValueChange", 1);
|
|
148
148
|
SdOption = __decorateClass([
|
|
149
|
-
customElement("sd-6-
|
|
149
|
+
customElement("sd-6-10-0-option")
|
|
150
150
|
], SdOption);
|
|
151
151
|
|
|
152
152
|
export {
|
|
@@ -100,7 +100,7 @@ var SdIcon = class extends SolidElement {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
render() {
|
|
103
|
-
return html`<sd-6-
|
|
103
|
+
return html`<sd-6-10-0-theme-listener></sd-6-10-0-theme-listener>${unsafeSVG(this.svg)}`;
|
|
104
104
|
}
|
|
105
105
|
};
|
|
106
106
|
SdIcon.styles = [
|
|
@@ -133,7 +133,7 @@ __decorateClass([
|
|
|
133
133
|
watch(["name", "src", "library"])
|
|
134
134
|
], SdIcon.prototype, "setIcon", 1);
|
|
135
135
|
SdIcon = __decorateClass([
|
|
136
|
-
customElement("sd-6-
|
|
136
|
+
customElement("sd-6-10-0-icon")
|
|
137
137
|
], SdIcon);
|
|
138
138
|
|
|
139
139
|
export {
|