@solid-design-system/components 4.6.15 → 4.6.16
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.AB2Z3UF6.js +1 -0
- package/cdn/chunks/chunk.DN5VIEHM.js +1 -0
- package/cdn/chunks/chunk.HJLFQHZZ.js +1 -0
- package/cdn/chunks/chunk.ISPLUZVP.js +1 -0
- package/cdn/chunks/chunk.PADJKHD3.js +10 -0
- package/cdn/chunks/{chunk.6427UDY6.js → chunk.QLMZZFO4.js} +2 -2
- package/cdn/chunks/{chunk.MY4GEBIJ.js → chunk.QPKOIQOV.js} +1 -1
- package/cdn/chunks/{chunk.65DXNL7N.js → chunk.RJNADZVI.js} +1 -1
- package/cdn/chunks/{chunk.JOHRW6PF.js → chunk.S7QIH5VA.js} +1 -1
- package/cdn/chunks/{chunk.YCMURSTJ.js → chunk.XWZBJX3N.js} +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/link/link.js +1 -1
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-button/radio-button.js +1 -1
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +6 -6
- package/cdn/solid-components.iife.js +6 -6
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.4NXRLTYY.js +1 -1
- package/cdn-versioned/chunks/chunk.5BMNZDCI.js +1 -1
- package/cdn-versioned/chunks/chunk.5ZVICUJO.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.66TMRNEU.js +1 -1
- package/cdn-versioned/chunks/chunk.7ZWYQWXX.js +1 -1
- package/cdn-versioned/chunks/chunk.A23ZM23Y.js +1 -1
- package/cdn-versioned/chunks/chunk.A4V2UKYZ.js +1 -1
- package/cdn-versioned/chunks/chunk.AB2Z3UF6.js +1 -0
- package/cdn-versioned/chunks/chunk.ACNQ2BXU.js +1 -1
- package/cdn-versioned/chunks/chunk.ANNWSGWM.js +1 -1
- package/cdn-versioned/chunks/chunk.BOSQGI5N.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DN5VIEHM.js +1 -0
- package/cdn-versioned/chunks/chunk.DOZJUXUU.js +1 -1
- package/cdn-versioned/chunks/chunk.EHWAIMQI.js +1 -1
- package/cdn-versioned/chunks/chunk.GQQMOVIU.js +1 -1
- package/cdn-versioned/chunks/chunk.HJ6ZYL4L.js +1 -1
- package/cdn-versioned/chunks/chunk.HJLFQHZZ.js +1 -0
- package/cdn-versioned/chunks/chunk.HVR3CO32.js +1 -1
- package/cdn-versioned/chunks/chunk.I2AYZC5K.js +1 -1
- package/cdn-versioned/chunks/chunk.IBKLA3AW.js +1 -1
- package/cdn-versioned/chunks/chunk.ISPLUZVP.js +1 -0
- package/cdn-versioned/chunks/chunk.J3ULJE7I.js +1 -1
- package/cdn-versioned/chunks/chunk.J6HCSJ26.js +2 -2
- package/cdn-versioned/chunks/chunk.JEB7TZCJ.js +1 -1
- package/cdn-versioned/chunks/chunk.JVWAS6I6.js +1 -1
- package/cdn-versioned/chunks/chunk.K3J7U2QY.js +1 -1
- package/cdn-versioned/chunks/chunk.KH26D22B.js +1 -1
- package/cdn-versioned/chunks/chunk.LHFENBCR.js +1 -1
- package/cdn-versioned/chunks/chunk.NJL52GXP.js +1 -1
- package/cdn-versioned/chunks/chunk.NV252BS6.js +1 -1
- package/cdn-versioned/chunks/chunk.OJGGSVKV.js +1 -1
- package/cdn-versioned/chunks/chunk.PADJKHD3.js +10 -0
- package/cdn-versioned/chunks/chunk.PBKA4YLW.js +1 -1
- package/cdn-versioned/chunks/chunk.PMOW5NET.js +1 -1
- package/cdn-versioned/chunks/chunk.Q5DLWGRN.js +1 -1
- package/cdn-versioned/chunks/{chunk.6427UDY6.js → chunk.QLMZZFO4.js} +4 -4
- package/cdn-versioned/chunks/{chunk.MY4GEBIJ.js → chunk.QPKOIQOV.js} +4 -4
- package/cdn-versioned/chunks/chunk.R4JE3MM2.js +1 -1
- package/cdn-versioned/chunks/{chunk.65DXNL7N.js → chunk.RJNADZVI.js} +1 -1
- package/cdn-versioned/chunks/chunk.RU73RME6.js +1 -1
- package/cdn-versioned/chunks/{chunk.JOHRW6PF.js → chunk.S7QIH5VA.js} +1 -1
- package/cdn-versioned/chunks/chunk.V5FMSNBW.js +2 -2
- package/cdn-versioned/chunks/chunk.VERXHJU5.js +1 -1
- package/cdn-versioned/chunks/chunk.VUDF6PNR.js +1 -1
- package/cdn-versioned/chunks/chunk.W76SY6CV.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WTHTRQKQ.js +1 -1
- package/cdn-versioned/chunks/chunk.X2WMWDVE.js +3 -3
- package/cdn-versioned/chunks/{chunk.YCMURSTJ.js → chunk.XWZBJX3N.js} +1 -1
- package/cdn-versioned/chunks/chunk.YU4NECYC.js +1 -1
- package/cdn-versioned/chunks/chunk.ZOASUJTK.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/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/checkbox.js +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/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/input/input.js +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/link/link.js +1 -1
- package/cdn-versioned/components/map-marker/map-marker.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 +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/option/option.js +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.js +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.js +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/radio-group/radio-group.js +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/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/textarea/textarea.js +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +211 -211
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +16 -16
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +16 -16
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.W7EMD64H.js → chunk.27RJNSY6.js} +1 -1
- package/dist/chunks/{chunk.MAHRGYFG.js → chunk.5IG4TM33.js} +1 -1
- package/dist/chunks/{chunk.RPVPT3AZ.js → chunk.64OVTGZG.js} +2 -2
- package/dist/chunks/{chunk.RXJBEWFC.js → chunk.CJ4WYDUV.js} +1 -1
- package/dist/chunks/{chunk.VBO5UCVM.js → chunk.MXKUHOD6.js} +0 -1
- package/dist/chunks/{chunk.LNAF5CEF.js → chunk.PM6PUJVF.js} +1 -1
- package/dist/chunks/{chunk.N4DLX7CI.js → chunk.TYVLLSJL.js} +1 -1
- package/dist/chunks/{chunk.W4FP3L5S.js → chunk.VPLS37MP.js} +1 -1
- package/dist/chunks/{chunk.NEOGXWHS.js → chunk.VSDSY6TD.js} +8 -5
- package/dist/chunks/{chunk.JV5YIM4X.js → chunk.YP6DKEUN.js} +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/link/link.js +1 -1
- package/dist/components/option/option.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-button/radio-button.js +1 -1
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/select/select.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +13 -13
- package/dist/web-types.json +1 -1
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/{chunk.W7EMD64H.js → chunk.27RJNSY6.js} +3 -3
- package/dist-versioned/chunks/chunk.2A3BDUSF.js +6 -6
- package/dist-versioned/chunks/chunk.2CQBUBXE.js +1 -1
- package/dist-versioned/chunks/chunk.32OYTF23.js +8 -8
- package/dist-versioned/chunks/chunk.3TYIEBZZ.js +2 -2
- package/dist-versioned/chunks/chunk.45FVZ6XJ.js +2 -2
- package/dist-versioned/chunks/chunk.4YLFAOXI.js +2 -2
- package/dist-versioned/chunks/chunk.4ZXREC6Z.js +11 -11
- package/dist-versioned/chunks/{chunk.MAHRGYFG.js → chunk.5IG4TM33.js} +3 -3
- package/dist-versioned/chunks/chunk.63XS65LQ.js +1 -1
- package/dist-versioned/chunks/{chunk.RPVPT3AZ.js → chunk.64OVTGZG.js} +24 -24
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6DPDPTTQ.js +2 -2
- package/dist-versioned/chunks/chunk.74CY6CLD.js +3 -3
- package/dist-versioned/chunks/chunk.BP6TATWD.js +2 -2
- package/dist-versioned/chunks/chunk.BSCYCJVQ.js +5 -5
- package/dist-versioned/chunks/chunk.CBB3P3NX.js +2 -2
- package/dist-versioned/chunks/chunk.CFJLB3HN.js +4 -4
- package/dist-versioned/chunks/{chunk.RXJBEWFC.js → chunk.CJ4WYDUV.js} +3 -3
- package/dist-versioned/chunks/chunk.DVFLNKVT.js +1 -1
- package/dist-versioned/chunks/chunk.DXFYMLRT.js +1 -1
- package/dist-versioned/chunks/chunk.G5NNLJSH.js +2 -2
- package/dist-versioned/chunks/chunk.GG5P2ME5.js +1 -1
- package/dist-versioned/chunks/chunk.HHUBCDJ6.js +1 -1
- package/dist-versioned/chunks/chunk.HOJQ3I25.js +2 -2
- package/dist-versioned/chunks/chunk.J24KLWJY.js +9 -9
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L62PLKYH.js +2 -2
- package/dist-versioned/chunks/chunk.M3L4O32M.js +6 -6
- package/dist-versioned/chunks/{chunk.VBO5UCVM.js → chunk.MXKUHOD6.js} +2 -3
- package/dist-versioned/chunks/chunk.NODZGXB7.js +1 -1
- package/dist-versioned/chunks/chunk.NOZJYEWZ.js +5 -5
- package/dist-versioned/chunks/chunk.NXP37WVQ.js +1 -1
- package/dist-versioned/chunks/chunk.P77O564Q.js +5 -5
- package/dist-versioned/chunks/{chunk.LNAF5CEF.js → chunk.PM6PUJVF.js} +4 -4
- package/dist-versioned/chunks/chunk.PTSJHOIB.js +1 -1
- package/dist-versioned/chunks/chunk.QTG4NS6F.js +1 -1
- package/dist-versioned/chunks/chunk.SML76IW6.js +1 -1
- package/dist-versioned/chunks/chunk.SYCJWHFY.js +1 -1
- package/dist-versioned/chunks/chunk.SZP6EUOZ.js +1 -1
- package/dist-versioned/chunks/chunk.TJBZYHFX.js +14 -14
- package/dist-versioned/chunks/{chunk.N4DLX7CI.js → chunk.TYVLLSJL.js} +14 -14
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V2ON3YL6.js +1 -1
- package/dist-versioned/chunks/chunk.VCSJOZI4.js +4 -4
- package/dist-versioned/chunks/{chunk.W4FP3L5S.js → chunk.VPLS37MP.js} +3 -3
- package/dist-versioned/chunks/{chunk.NEOGXWHS.js → chunk.VSDSY6TD.js} +11 -8
- package/dist-versioned/chunks/chunk.XKASXMF7.js +3 -3
- package/dist-versioned/chunks/{chunk.JV5YIM4X.js → chunk.YP6DKEUN.js} +27 -27
- package/dist-versioned/chunks/chunk.YS5DNYIN.js +2 -2
- package/dist-versioned/chunks/chunk.YU4DZT3T.js +5 -5
- package/dist-versioned/chunks/chunk.Z6IS4T3X.js +5 -5
- package/dist-versioned/chunks/chunk.ZO5RJB5Z.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/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/checkbox.js +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/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/input/input.js +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/link/link.js +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/option/option.js +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio/radio.js +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.js +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/radio-group/radio-group.js +2 -2
- 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/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/textarea/textarea.js +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +211 -211
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +13 -13
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +1 -1
- package/cdn/chunks/chunk.F2NEB6WX.js +0 -1
- package/cdn/chunks/chunk.LPPVUSZH.js +0 -1
- package/cdn/chunks/chunk.N3TOTAZO.js +0 -1
- package/cdn/chunks/chunk.VWBRHGZ5.js +0 -10
- package/cdn/chunks/chunk.WVEXC674.js +0 -1
- package/cdn-versioned/chunks/chunk.F2NEB6WX.js +0 -1
- package/cdn-versioned/chunks/chunk.LPPVUSZH.js +0 -1
- package/cdn-versioned/chunks/chunk.N3TOTAZO.js +0 -1
- package/cdn-versioned/chunks/chunk.VWBRHGZ5.js +0 -10
- package/cdn-versioned/chunks/chunk.WVEXC674.js +0 -1
|
@@ -53,7 +53,7 @@ var SdLink = class extends SolidElement {
|
|
|
53
53
|
return html`<a part="base" class="${cx(
|
|
54
54
|
"inline",
|
|
55
55
|
this.href && !this.visuallyDisabled ? "cursor-pointer" : "",
|
|
56
|
-
this.visuallyDisabled ? "cursor-not-allowed focus-visible:outline
|
|
56
|
+
this.visuallyDisabled ? "cursor-not-allowed focus-visible:focus-outline" : "",
|
|
57
57
|
{
|
|
58
58
|
sm: "text-sm",
|
|
59
59
|
lg: "text-base",
|
|
@@ -81,7 +81,7 @@ var SdOption = class extends SolidElement {
|
|
|
81
81
|
md: "text-base py-2",
|
|
82
82
|
lg: "text-base py-3"
|
|
83
83
|
}[this.size],
|
|
84
|
-
this.disabled ? "text-neutral-
|
|
84
|
+
this.disabled ? "text-neutral-700 cursor-not-allowed" : "cursor-pointer",
|
|
85
85
|
this.hasHover && !this.disabled ? "bg-neutral-200" : "",
|
|
86
86
|
this.isKeyboardFocus ? "focus-outline focus-outline-offset" : "",
|
|
87
87
|
this.current && "bg-neutral-200"
|
|
@@ -760,7 +760,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
760
760
|
const hasLabel = this.label ? true : !!hasLabelSlot;
|
|
761
761
|
const hasHelpText = this.helpText ? true : !!hasHelpTextSlot;
|
|
762
762
|
const hasClearIcon = this.clearable && !this.disabled && !this.visuallyDisabled;
|
|
763
|
-
const selectState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
763
|
+
const selectState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
764
764
|
const cursorStyles = this.disabled || this.visuallyDisabled ? "cursor-not-allowed" : "cursor-pointer";
|
|
765
765
|
const iconColor = this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary";
|
|
766
766
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
@@ -824,7 +824,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
824
824
|
};
|
|
825
825
|
SdCombobox.styles = [
|
|
826
826
|
...SolidElement.styles,
|
|
827
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
827
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}:host([disabled]) ::-moz-placeholder,:host([visually-disabled]) ::-moz-placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([disabled]) ::placeholder,:host([visually-disabled]) ::placeholder{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}:host([visually-disabled]) input{caret-color:transparent}:host([size=sm]) .combobox-button{height:var(--sd-spacing-4,1rem);right:var(--sd-spacing-4,1rem);width:var(--sd-spacing-4,1rem)}:host([size=md]) .combobox-button{height:var(--sd-spacing-6,1.5rem);right:.85rem;width:var(--sd-spacing-6,1.5rem)}:host([size=lg]) .combobox-button{height:var(--sd-spacing-8,2rem);right:var(--sd-spacing-3,.75rem);width:var(--sd-spacing-8,2rem)}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
828
828
|
];
|
|
829
829
|
__decorateClass([
|
|
830
830
|
query("sd-popup")
|
|
@@ -96,7 +96,7 @@ var SdRadio = class extends SolidElement {
|
|
|
96
96
|
*/
|
|
97
97
|
SdRadio.styles = [
|
|
98
98
|
...SolidElement.styles,
|
|
99
|
-
css`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible)
|
|
99
|
+
css`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}`
|
|
100
100
|
];
|
|
101
101
|
__decorateClass([
|
|
102
102
|
state()
|
|
@@ -66,7 +66,6 @@ var SdRadioButton = class extends SolidElement {
|
|
|
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
67
|
"relative text-center border rounded-default 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.visuallyDisabled && "focus-visible:outline-none",
|
|
70
69
|
this.checked && !this.disabled && !this.visuallyDisabled ? "bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500" : (this.disabled || this.visuallyDisabled) && !this.checked ? "border-neutral-500 text-neutral-500 hover:cursor-not-allowed" : (this.disabled || this.visuallyDisabled) && this.checked ? "text-neutral-500 border-neutral-500 hover:cursor-not-allowed " : "bg-transparent text-primary border-primary hover:bg-primary-100 hover:border-primary-500 hover:text-primary-500 cursor-pointer",
|
|
71
70
|
hasDefaultSlot && "px-4",
|
|
72
71
|
this.hasFocus && "focused-class",
|
|
@@ -128,7 +128,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
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
130
|
`relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4`,
|
|
131
|
-
|
|
131
|
+
"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary",
|
|
132
132
|
{
|
|
133
133
|
sm: "mt-[2px]",
|
|
134
134
|
md: "mt-[3px]",
|
|
@@ -177,7 +177,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
177
177
|
const hasLabel = this.label ? true : !!slots["label"];
|
|
178
178
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
|
179
179
|
const hasTooltip = !!slots["tooltip"];
|
|
180
|
-
const textareaState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus
|
|
180
|
+
const textareaState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
181
181
|
const textSize = this.size === "sm" ? "text-sm" : "text-base";
|
|
182
182
|
const iconSizeMarginLeft = {
|
|
183
183
|
sm: "text-base ml-1",
|
|
@@ -344,7 +344,7 @@ var SdInput = class extends SolidElement {
|
|
|
344
344
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
|
345
345
|
const hasClearIcon = this.clearable && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
346
346
|
const hasTooltip = !!slots["tooltip"];
|
|
347
|
-
const inputState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
347
|
+
const inputState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
348
348
|
const textSize = this.size === "sm" ? "text-sm" : "text-base";
|
|
349
349
|
const borderColor = {
|
|
350
350
|
disabled: "border-neutral-500",
|
|
@@ -364,7 +364,11 @@ var SdInput = class extends SolidElement {
|
|
|
364
364
|
md: "text-lg",
|
|
365
365
|
lg: "text-xl"
|
|
366
366
|
}[this.size];
|
|
367
|
-
return html`<div part="form-control" class="${cx(this.disabled
|
|
367
|
+
return html`<div part="form-control" class="${cx((this.disabled || this.visuallyDisabled) && "cursor-not-allowed")}">${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${cx(hasLabel ? "inline-block" : "hidden", textSize)}" for="input" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></label> ${slots["tooltip"] ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx(
|
|
368
|
+
"relative w-full",
|
|
369
|
+
this.disabled && "pointer-events-none",
|
|
370
|
+
this.visuallyDisabled && "cursor-not-allowed"
|
|
371
|
+
)}"><div part="border" class="${cx("absolute w-full h-full pointer-events-none border rounded-default", borderColor)}"></div><div part="base" class="${cx(
|
|
368
372
|
"px-4 flex flex-row items-center rounded-default transition-all",
|
|
369
373
|
// Vertical Padding
|
|
370
374
|
this.size === "lg" ? "py-2" : "py-1",
|
|
@@ -374,10 +378,9 @@ var SdInput = class extends SolidElement {
|
|
|
374
378
|
inputState === "disabled" || inputState === "visuallyDisabled" ? "text-neutral-500" : "text-black"
|
|
375
379
|
)}">${slots["left"] ? html`<slot name="left" part="left" class="${cx("inline-flex", this.size === "sm" ? "mr-1" : "mr-2", iconColor, iconSize)}"></slot>` : ""} <input part="input" id="input" class="${cx(
|
|
376
380
|
"min-w-0 flex-grow focus:outline-none bg-transparent",
|
|
377
|
-
this.visuallyDisabled || this.disabled ? "placeholder-neutral-500" : "placeholder-neutral-700",
|
|
381
|
+
this.visuallyDisabled || this.disabled ? "placeholder-neutral-500 cursor-not-allowed" : "placeholder-neutral-700",
|
|
378
382
|
this.size === "sm" ? "h-6" : "h-8",
|
|
379
|
-
textSize
|
|
380
|
-
this.visuallyDisabled && "cursor-not-allowed"
|
|
383
|
+
textSize
|
|
381
384
|
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
382
385
|
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-icon class="${cx(iconColor, iconSize)}" library="system" name="eye"></sd-icon></slot>` : html`<slot name="hide-password-icon"><sd-icon class="${cx(iconColor, iconSize)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-icon>` : ""} ${this.type === "time" ? html`<sd-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${cx(iconColor, iconSize)}" library="system" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-icon></slot></button></div>` : ""}</div></div><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>${this.formControlController.renderInvalidMessage()}`;
|
|
383
386
|
}
|
|
@@ -571,7 +571,7 @@ var SdSelect = class extends SolidElement {
|
|
|
571
571
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
|
572
572
|
const hasClearIcon = this.clearable && !this.disabled;
|
|
573
573
|
const hasTooltip = !!slots["tooltip"];
|
|
574
|
-
const selectState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
574
|
+
const selectState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
575
575
|
const cursorStyles = this.disabled || this.visuallyDisabled ? "cursor-not-allowed" : "cursor-pointer";
|
|
576
576
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
577
577
|
const iconSize = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SdRadioGroup
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.TYVLLSJL.js";
|
|
4
|
+
import "../../chunks/chunk.CJ4WYDUV.js";
|
|
5
5
|
import "../../chunks/chunk.4ZXREC6Z.js";
|
|
6
6
|
import "../../chunks/chunk.KVKRZJS7.js";
|
|
7
7
|
import "../../chunks/chunk.YEZS5ZR2.js";
|
|
@@ -17188,7 +17188,7 @@
|
|
|
17188
17188
|
"package": {
|
|
17189
17189
|
"name": "@solid-design-system/components",
|
|
17190
17190
|
"description": "Solid Design System: Components",
|
|
17191
|
-
"version": "4.6.
|
|
17191
|
+
"version": "4.6.16",
|
|
17192
17192
|
"author": "Union Investment",
|
|
17193
17193
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
17194
17194
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
} from "./chunks/chunk.DXFYMLRT.js";
|
|
14
14
|
import {
|
|
15
15
|
SdTextarea
|
|
16
|
-
} from "./chunks/chunk.
|
|
16
|
+
} from "./chunks/chunk.VPLS37MP.js";
|
|
17
17
|
import {
|
|
18
18
|
SdTooltip
|
|
19
19
|
} from "./chunks/chunk.NOZJYEWZ.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunks/chunk.32OYTF23.js";
|
|
26
26
|
import {
|
|
27
27
|
SdSelect
|
|
28
|
-
} from "./chunks/chunk.
|
|
28
|
+
} from "./chunks/chunk.YP6DKEUN.js";
|
|
29
29
|
import {
|
|
30
30
|
SdStep
|
|
31
31
|
} from "./chunks/chunk.BP6TATWD.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
} from "./chunks/chunk.BSCYCJVQ.js";
|
|
50
50
|
import {
|
|
51
51
|
SdOption
|
|
52
|
-
} from "./chunks/chunk.
|
|
52
|
+
} from "./chunks/chunk.5IG4TM33.js";
|
|
53
53
|
import {
|
|
54
54
|
SdPopup
|
|
55
55
|
} from "./chunks/chunk.DVFLNKVT.js";
|
|
@@ -58,22 +58,22 @@ import {
|
|
|
58
58
|
} from "./chunks/chunk.XKASXMF7.js";
|
|
59
59
|
import {
|
|
60
60
|
SdRadioButton
|
|
61
|
-
} from "./chunks/chunk.
|
|
61
|
+
} from "./chunks/chunk.MXKUHOD6.js";
|
|
62
62
|
import {
|
|
63
63
|
SdRadioGroup
|
|
64
|
-
} from "./chunks/chunk.
|
|
64
|
+
} from "./chunks/chunk.TYVLLSJL.js";
|
|
65
65
|
import {
|
|
66
66
|
SdRadio
|
|
67
|
-
} from "./chunks/chunk.
|
|
67
|
+
} from "./chunks/chunk.CJ4WYDUV.js";
|
|
68
68
|
import {
|
|
69
69
|
SdInclude
|
|
70
70
|
} from "./chunks/chunk.2CQBUBXE.js";
|
|
71
71
|
import {
|
|
72
72
|
SdInput
|
|
73
|
-
} from "./chunks/chunk.
|
|
73
|
+
} from "./chunks/chunk.VSDSY6TD.js";
|
|
74
74
|
import {
|
|
75
75
|
SdLink
|
|
76
|
-
} from "./chunks/chunk.
|
|
76
|
+
} from "./chunks/chunk.27RJNSY6.js";
|
|
77
77
|
import {
|
|
78
78
|
SdMapMarker
|
|
79
79
|
} from "./chunks/chunk.NODZGXB7.js";
|
|
@@ -94,25 +94,25 @@ import {
|
|
|
94
94
|
} from "./chunks/chunk.SYCJWHFY.js";
|
|
95
95
|
import {
|
|
96
96
|
SdCheckbox
|
|
97
|
-
} from "./chunks/chunk.
|
|
97
|
+
} from "./chunks/chunk.PM6PUJVF.js";
|
|
98
98
|
import {
|
|
99
99
|
SdCheckboxGroup
|
|
100
100
|
} from "./chunks/chunk.Z6IS4T3X.js";
|
|
101
101
|
import {
|
|
102
102
|
SdCombobox
|
|
103
|
-
} from "./chunks/chunk.
|
|
103
|
+
} from "./chunks/chunk.64OVTGZG.js";
|
|
104
104
|
import {
|
|
105
105
|
SdTag
|
|
106
106
|
} from "./chunks/chunk.6DPDPTTQ.js";
|
|
107
107
|
import "./chunks/chunk.GI7VDIWX.js";
|
|
108
108
|
import "./chunks/chunk.WBJBQ4QI.js";
|
|
109
109
|
import "./chunks/chunk.UIQBHPD3.js";
|
|
110
|
-
import {
|
|
111
|
-
SdDivider
|
|
112
|
-
} from "./chunks/chunk.CBB3P3NX.js";
|
|
113
110
|
import {
|
|
114
111
|
SdDialog
|
|
115
112
|
} from "./chunks/chunk.3TYIEBZZ.js";
|
|
113
|
+
import {
|
|
114
|
+
SdDivider
|
|
115
|
+
} from "./chunks/chunk.CBB3P3NX.js";
|
|
116
116
|
import {
|
|
117
117
|
SdDrawer
|
|
118
118
|
} from "./chunks/chunk.4YLFAOXI.js";
|
package/dist/web-types.json
CHANGED
|
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
|
|
|
32
32
|
if (item.type === 'checkbox') {
|
|
33
33
|
item.checked = !item.checked;
|
|
34
34
|
}
|
|
35
|
-
this.emit('sd-4-6-
|
|
35
|
+
this.emit('sd-4-6-16-select', { detail: { item } });
|
|
36
36
|
}
|
|
37
37
|
handleKeyDown(event) {
|
|
38
38
|
if (event.key === 'Enter') {
|
|
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
74
74
|
})}
|
|
75
75
|
>
|
|
76
76
|
<span part="checked-icon" class="menu-item__check">
|
|
77
|
-
<sd-4-6-
|
|
77
|
+
<sd-4-6-16-icon name="check" library="system" aria-hidden="true"></sd-4-6-16-icon>
|
|
78
78
|
</span>
|
|
79
79
|
|
|
80
80
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
84
84
|
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
85
85
|
|
|
86
86
|
<span class="menu-item__chevron">
|
|
87
|
-
<sd-4-6-
|
|
87
|
+
<sd-4-6-16-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-6-16-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -53,7 +53,7 @@ var SdLink = class extends SolidElement {
|
|
|
53
53
|
return html`<a part="base" class="${cx(
|
|
54
54
|
"inline",
|
|
55
55
|
this.href && !this.visuallyDisabled ? "cursor-pointer" : "",
|
|
56
|
-
this.visuallyDisabled ? "cursor-not-allowed focus-visible:outline
|
|
56
|
+
this.visuallyDisabled ? "cursor-not-allowed focus-visible:focus-outline" : "",
|
|
57
57
|
{
|
|
58
58
|
sm: "text-sm",
|
|
59
59
|
lg: "text-base",
|
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdLink.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
css`::slotted(sd-4-6-
|
|
87
|
+
css`::slotted(sd-4-6-16-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-6-16-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-6-16-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query("a")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
property({ reflect: true })
|
|
112
112
|
], SdLink.prototype, "download", 2);
|
|
113
113
|
SdLink = __decorateClass([
|
|
114
|
-
customElement("sd-4-6-
|
|
114
|
+
customElement("sd-4-6-16-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -56,7 +56,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
56
56
|
this.pausedAutoplay = false;
|
|
57
57
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
|
58
58
|
this.scrollController = new ScrollController(this);
|
|
59
|
-
this.slides = this.getElementsByTagName("sd-4-6-
|
|
59
|
+
this.slides = this.getElementsByTagName("sd-4-6-16-carousel-item");
|
|
60
60
|
// determines which slide is displayed
|
|
61
61
|
// A map containing the state of all the slides
|
|
62
62
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
|
@@ -380,7 +380,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
380
380
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${prevEnabled ? (e) => {
|
|
381
381
|
this.previous();
|
|
382
382
|
this.unblockAutoplay(e, this.previousButton);
|
|
383
|
-
} : null}"><slot name="previous-icon"><sd-4-6-
|
|
383
|
+
} : null}"><slot name="previous-icon"><sd-4-6-16-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-4-6-16-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) => {
|
|
384
384
|
const isActive = index + 1 === currentPage;
|
|
385
385
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
|
386
386
|
"carousel__pagination-item",
|
|
@@ -403,7 +403,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
403
403
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${nextEnabled ? (e) => {
|
|
404
404
|
this.next();
|
|
405
405
|
this.unblockAutoplay(e, this.nextButton);
|
|
406
|
-
} : null}"><slot name="next-icon"><sd-4-6-
|
|
406
|
+
} : null}"><slot name="next-icon"><sd-4-6-16-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="system" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-4-6-16-icon></slot></button></div><button class="${cx(
|
|
407
407
|
"ml-6 !rounded-sm",
|
|
408
408
|
"!absolute !right-0 sd-interactive",
|
|
409
409
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
|
@@ -413,12 +413,12 @@ var SdCarousel = class extends SolidElement {
|
|
|
413
413
|
if (e.detail) {
|
|
414
414
|
this.autoplayControls.blur();
|
|
415
415
|
}
|
|
416
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-6-
|
|
416
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-4-6-16-icon class="h-6 w-6 grid place-items-center" library="system" name="start"></sd-4-6-16-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-4-6-16-icon class="h-6 w-6 grid place-items-center" library="system" name="pause"></sd-4-6-16-icon></slot></button></div></div>`;
|
|
417
417
|
}
|
|
418
418
|
};
|
|
419
419
|
SdCarousel.styles = [
|
|
420
420
|
...SolidElement.styles,
|
|
421
|
-
css`: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));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-6-
|
|
421
|
+
css`: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));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-4-6-16-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`
|
|
422
422
|
];
|
|
423
423
|
__decorateClass([
|
|
424
424
|
query('[part~="autoplay-controls"]')
|
|
@@ -485,7 +485,7 @@ __decorateClass([
|
|
|
485
485
|
watch("autoplay")
|
|
486
486
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
|
487
487
|
SdCarousel = __decorateClass([
|
|
488
|
-
customElement("sd-4-6-
|
|
488
|
+
customElement("sd-4-6-16-carousel")
|
|
489
489
|
], SdCarousel);
|
|
490
490
|
|
|
491
491
|
export {
|
|
@@ -125,7 +125,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
125
125
|
down: this.upButton
|
|
126
126
|
}[direction];
|
|
127
127
|
const label = reachedStart ? `${this.localize.term("scrolled")}. ${this.localize.term("scrollToEnd")}` : `${this.localize.term("scrolled")}. ${this.localize.term("scrollToStart")}`;
|
|
128
|
-
(_c = oppositeButton == null ? void 0 : oppositeButton.querySelector("sd-4-6-
|
|
128
|
+
(_c = oppositeButton == null ? void 0 : oppositeButton.querySelector("sd-4-6-16-icon")) == null ? void 0 : _c.setAttribute("label", label);
|
|
129
129
|
if (isKeyboardTriggered) {
|
|
130
130
|
oppositeButton == null ? void 0 : oppositeButton.focus();
|
|
131
131
|
} else {
|
|
@@ -137,7 +137,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
137
137
|
const scrollTo = ["left", "up"].includes(direction) ? "start" : "end";
|
|
138
138
|
const label = scrollTo === "start" ? this.localize.term("scrollToStart") : this.localize.term("scrollToEnd");
|
|
139
139
|
const button = e.target;
|
|
140
|
-
(_a = button.querySelector("sd-4-6-
|
|
140
|
+
(_a = button.querySelector("sd-4-6-16-icon")) == null ? void 0 : _a.setAttribute("label", label);
|
|
141
141
|
}
|
|
142
142
|
render() {
|
|
143
143
|
const scrollButtonClasses = "relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg";
|
|
@@ -154,21 +154,21 @@ var SdScrollable = class extends SolidElement {
|
|
|
154
154
|
)}" @scroll="${this.handleContainerScroll}" tabindex="0"><div id="announcement-container" role="status" class="sr-only"></div><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`<div part="button-left" class="${cx(
|
|
155
155
|
"absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8",
|
|
156
156
|
!this.canScroll.left && "opacity-0 pointer-events-none"
|
|
157
|
-
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.left || void 0)}" tabindex="${ifDefined(!this.canScroll.left ? -1 : void 0)}" @click="${(e) => this.handleScroll("left", e)}" @blur="${(e) => this.handleButtonBlur("left", e)}"><slot name="icon-start"><sd-4-6-
|
|
157
|
+
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.left || void 0)}" tabindex="${ifDefined(!this.canScroll.left ? -1 : void 0)}" @click="${(e) => this.handleScroll("left", e)}" @blur="${(e) => this.handleButtonBlur("left", e)}"><slot name="icon-start"><sd-4-6-16-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-6-16-icon></slot></button></div><div part="button-right" class="${cx(
|
|
158
158
|
"absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8",
|
|
159
159
|
!this.canScroll.right && "opacity-0 pointer-events-none"
|
|
160
|
-
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.right || void 0)}" tabindex="${ifDefined(!this.canScroll.right ? -1 : void 0)}" @click="${(e) => this.handleScroll("right", e)}" @blur="${(e) => this.handleButtonBlur("right", e)}"><slot name="icon-end"><sd-4-6-
|
|
160
|
+
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.right || void 0)}" tabindex="${ifDefined(!this.canScroll.right ? -1 : void 0)}" @click="${(e) => this.handleScroll("right", e)}" @blur="${(e) => this.handleButtonBlur("right", e)}"><slot name="icon-end"><sd-4-6-16-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-6-16-icon></slot></button></div>` : null} ${this.isScrollVerticalEnabled ? html`<div part="button-top" class="${cx(
|
|
161
161
|
"absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8",
|
|
162
162
|
!this.canScroll.up && "opacity-0 pointer-events-none"
|
|
163
|
-
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.up || void 0)}" tabindex="${ifDefined(!this.canScroll.up ? -1 : void 0)}" @click="${(e) => this.handleScroll("up", e)}" @blur="${(e) => this.handleButtonBlur("up", e)}"><slot name="icon-start"><sd-4-6-
|
|
163
|
+
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.up || void 0)}" tabindex="${ifDefined(!this.canScroll.up ? -1 : void 0)}" @click="${(e) => this.handleScroll("up", e)}" @blur="${(e) => this.handleButtonBlur("up", e)}"><slot name="icon-start"><sd-4-6-16-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-6-16-icon></slot></button></div><div part="button-bottom" class="${cx(
|
|
164
164
|
"absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8",
|
|
165
165
|
!this.canScroll.down && "opacity-0 pointer-events-none"
|
|
166
|
-
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.down || void 0)}" tabindex="${ifDefined(!this.canScroll.down ? -1 : void 0)}" @click="${(e) => this.handleScroll("down", e)}" @blur="${(e) => this.handleButtonBlur("down", e)}"><slot name="icon-end"><sd-4-6-
|
|
166
|
+
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.down || void 0)}" tabindex="${ifDefined(!this.canScroll.down ? -1 : void 0)}" @click="${(e) => this.handleScroll("down", e)}" @blur="${(e) => this.handleButtonBlur("down", e)}"><slot name="icon-end"><sd-4-6-16-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-6-16-icon></slot></button></div>` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="shadow-left" class="${scrollShadowClasses} left top-0 left-0 w-[6px] h-full"></div>` : null} ${this.canScroll.right ? html`<div part="shadow-right" class="${scrollShadowClasses} right top-0 right-0 w-[6px] h-full"></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="shadow-top" class="${scrollShadowClasses} top top-0 left-0 w-full h-[6px]"></div>` : null} ${this.canScroll.down ? html`<div part="shadow-bottom" class="${scrollShadowClasses} bottom bottom-0 left-0 w-full h-[6px]"></div>` : null}` : null}` : null}`;
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
SdScrollable.styles = [
|
|
170
170
|
...SolidElement.styles,
|
|
171
|
-
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-6-
|
|
171
|
+
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-6-16-icon--top{align-self:flex-start}.sd-4-6-16-icon--down{align-self:flex-end}`
|
|
172
172
|
];
|
|
173
173
|
__decorateClass([
|
|
174
174
|
query('[part="button-right"] button')
|
|
@@ -216,7 +216,7 @@ __decorateClass([
|
|
|
216
216
|
state()
|
|
217
217
|
], SdScrollable.prototype, "isScrollVerticalEnabled", 2);
|
|
218
218
|
SdScrollable = __decorateClass([
|
|
219
|
-
customElement("sd-4-6-
|
|
219
|
+
customElement("sd-4-6-16-scrollable")
|
|
220
220
|
], SdScrollable);
|
|
221
221
|
|
|
222
222
|
export {
|
|
@@ -171,7 +171,7 @@ var SdDialog = class extends SolidElement {
|
|
|
171
171
|
)}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
172
172
|
"flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
173
173
|
this.open && "flex opacity-100"
|
|
174
|
-
)}" 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-4-6-
|
|
174
|
+
)}" 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-4-6-16-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-4-6-16-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-6-16-icon></sd-4-6-16-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>`;
|
|
175
175
|
}
|
|
176
176
|
};
|
|
177
177
|
SdDialog.styles = [
|
|
@@ -200,7 +200,7 @@ __decorateClass([
|
|
|
200
200
|
watch("open", { waitUntilFirstUpdate: true })
|
|
201
201
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
202
202
|
SdDialog = __decorateClass([
|
|
203
|
-
customElement("sd-4-6-
|
|
203
|
+
customElement("sd-4-6-16-dialog")
|
|
204
204
|
], SdDialog);
|
|
205
205
|
setDefaultAnimation("dialog.show", {
|
|
206
206
|
keyframes: [
|