@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
|
@@ -72,7 +72,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
72
72
|
"sd-interactive sd-interactive--reset",
|
|
73
73
|
this.inverted && "sd-interactive--inverted",
|
|
74
74
|
!this.inverted ? "!focus-visible:focus-outline" : "!focus-visible:focus-outline-inverted"
|
|
75
|
-
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}">${this.open ? html`<slot name="toggle-open"><sd-4-6-
|
|
75
|
+
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}">${this.open ? html`<slot name="toggle-open"><sd-4-6-16-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-4-6-16-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-4-6-16-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-4-6-16-icon>${this.localize.term("showMore")}</slot>`}</div></button><details part="details" ?inert="${ifDefined(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`;
|
|
76
76
|
}
|
|
77
77
|
firstUpdated() {
|
|
78
78
|
this.cloneContentToLightDOM();
|
|
@@ -109,7 +109,7 @@ __decorateClass([
|
|
|
109
109
|
watch("open", { waitUntilFirstUpdate: true })
|
|
110
110
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
111
111
|
SdExpandable = __decorateClass([
|
|
112
|
-
customElement("sd-4-6-
|
|
112
|
+
customElement("sd-4-6-16-expandable")
|
|
113
113
|
], SdExpandable);
|
|
114
114
|
|
|
115
115
|
export {
|
|
@@ -76,7 +76,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
76
76
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
|
77
77
|
* or an element within the slotted elements shadow root.
|
|
78
78
|
*
|
|
79
|
-
* e.g. the accessible trigger of an <sd-4-6-
|
|
79
|
+
* e.g. the accessible trigger of an <sd-4-6-16-button> is a <button> located inside its shadow root.
|
|
80
80
|
*
|
|
81
81
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
82
82
|
* */
|
|
@@ -87,11 +87,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
87
87
|
if (accessibleTrigger) {
|
|
88
88
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
89
89
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
|
90
|
-
case "sd-4-6-
|
|
91
|
-
case "sd-4-6-
|
|
90
|
+
case "sd-4-6-16-button":
|
|
91
|
+
case "sd-4-6-16-icon-button":
|
|
92
92
|
target = accessibleTrigger.button;
|
|
93
93
|
break;
|
|
94
|
-
case "sd-4-6-
|
|
94
|
+
case "sd-4-6-16-navigation-item":
|
|
95
95
|
target = accessibleTrigger.button;
|
|
96
96
|
break;
|
|
97
97
|
default:
|
|
@@ -236,7 +236,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
236
236
|
}
|
|
237
237
|
addOpenListeners() {
|
|
238
238
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
239
|
-
this.panel.addEventListener("sd-4-6-
|
|
239
|
+
this.panel.addEventListener("sd-4-6-16-select", this.handlePanelSelect);
|
|
240
240
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
241
241
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
242
242
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -244,7 +244,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
244
244
|
removeOpenListeners() {
|
|
245
245
|
if (this.panel) {
|
|
246
246
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
247
|
-
this.panel.removeEventListener("sd-4-6-
|
|
247
|
+
this.panel.removeEventListener("sd-4-6-16-select", this.handlePanelSelect);
|
|
248
248
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
249
249
|
}
|
|
250
250
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -277,11 +277,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
render() {
|
|
280
|
-
return html`<sd-4-6-
|
|
280
|
+
return html`<sd-4-6-16-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10" ?active="${this.open}"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
|
|
281
281
|
"shadow bg-white",
|
|
282
282
|
this.open ? "block pointer-events-auto" : "pointer-events-none",
|
|
283
283
|
this.rounded && "rounded-md"
|
|
284
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-4-6-
|
|
284
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-4-6-16-popup>`;
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
SdDropdown.styles = [
|
|
@@ -334,7 +334,7 @@ __decorateClass([
|
|
|
334
334
|
watch("open", { waitUntilFirstUpdate: true })
|
|
335
335
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
336
336
|
SdDropdown = __decorateClass([
|
|
337
|
-
customElement("sd-4-6-
|
|
337
|
+
customElement("sd-4-6-16-dropdown")
|
|
338
338
|
], SdDropdown);
|
|
339
339
|
setDefaultAnimation("dropdown.show", {
|
|
340
340
|
keyframes: [
|
|
@@ -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-4-6-
|
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-4-6-16-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-4-6-
|
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-4-6-16-radio-group"
|
|
44
44
|
);
|
|
45
45
|
sdRadioGroups.forEach((radioGroup) => {
|
|
46
46
|
var _a2, _b2;
|
|
@@ -88,7 +88,7 @@ var FormControlController = class {
|
|
|
88
88
|
},
|
|
89
89
|
reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
|
|
90
90
|
setValue: (input, value) => input.value = value,
|
|
91
|
-
assumeInteractionOn: ["sd-4-6-
|
|
91
|
+
assumeInteractionOn: ["sd-4-6-16-input"]
|
|
92
92
|
}, options);
|
|
93
93
|
}
|
|
94
94
|
hostConnected() {
|
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",
|
|
144
144
|
this.open && "rotate-180"
|
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-6-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-6-16-icon library="system" name="chevron-down"></sd-4-6-16-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-4-6-16-icon library="system" name="chevron-down"></sd-4-6-16-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
SdAccordion.styles = [
|
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch("open", { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
170
170
|
SdAccordion = __decorateClass([
|
|
171
|
-
customElement("sd-4-6-
|
|
171
|
+
customElement("sd-4-6-16-accordion")
|
|
172
172
|
], SdAccordion);
|
|
173
173
|
setDefaultAnimation("accordion.show", {
|
|
174
174
|
keyframes: [
|
|
@@ -288,10 +288,10 @@ var SdAudio = class extends SolidElement {
|
|
|
288
288
|
)}" part="audio-controls"><button class="${cx(
|
|
289
289
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
|
290
290
|
this.inverted && "sd-interactive--inverted"
|
|
291
|
-
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-6-
|
|
291
|
+
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-4-6-16-button ?inverted="${this.inverted ? true : false}" part="play-button" size="lg" @click="${!this.isPlaying ? this.playAudio : this.pauseAudio}" aria-label="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" title="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying ? html`<slot name="pause-icon"><sd-4-6-16-icon class="text-3xl" name="pause" library="system"></sd-4-6-16-icon></slot>` : html`<slot name="play-icon"><sd-4-6-16-icon class="text-3xl" name="start" library="system"></sd-4-6-16-icon></slot>`}</sd-4-6-16-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx(
|
|
292
292
|
"mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",
|
|
293
293
|
this.inverted && "sd-interactive--inverted"
|
|
294
|
-
)}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-4-6-
|
|
294
|
+
)}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-4-6-16-icon class="w-6 h-6" name="transcript" library="system"></sd-4-6-16-icon></button>` : null} <button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" part="volume" aria-label="${!this.isMuted ? this.localize.term("mute") : this.localize.term("unmute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-4-6-16-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="system"></sd-4-6-16-icon></button></div></div>`;
|
|
295
295
|
const renderTimestamps = html`<div class="${cx(
|
|
296
296
|
"w-full flex justify-between",
|
|
297
297
|
this.reversedLayout ? "mb-2" : "mt-2",
|
|
@@ -301,12 +301,12 @@ var SdAudio = class extends SolidElement {
|
|
|
301
301
|
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null} <input class="${cx(
|
|
302
302
|
"progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",
|
|
303
303
|
this.inverted && "sd-interactive--inverted"
|
|
304
|
-
)}" type="range" max="100" step="0.001" value="${this.progress}" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" aria-label="${this.localize.term("seekBar")}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-4-6-
|
|
304
|
+
)}" type="range" max="100" step="0.001" value="${this.progress}" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" aria-label="${this.localize.term("seekBar")}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-4-6-16-drawer><slot name="transcript"></slot></sd-4-6-16-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div>`;
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
SdAudio.styles = [
|
|
308
308
|
...SolidElement.styles,
|
|
309
|
-
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-6-
|
|
309
|
+
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-4-6-16-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-16,4rem);justify-content:center;width:var(--sd-spacing-16,4rem)}sd-4-6-16-button::part(label){align-items:center;display:flex;flex-grow:0}`
|
|
310
310
|
];
|
|
311
311
|
__decorateClass([
|
|
312
312
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
@@ -348,13 +348,13 @@ __decorateClass([
|
|
|
348
348
|
query('[part="audio-player"]')
|
|
349
349
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
|
350
350
|
__decorateClass([
|
|
351
|
-
query("sd-4-6-
|
|
351
|
+
query("sd-4-6-16-drawer")
|
|
352
352
|
], SdAudio.prototype, "drawer", 2);
|
|
353
353
|
__decorateClass([
|
|
354
354
|
query("canvas")
|
|
355
355
|
], SdAudio.prototype, "canvas", 2);
|
|
356
356
|
SdAudio = __decorateClass([
|
|
357
|
-
customElement("sd-4-6-
|
|
357
|
+
customElement("sd-4-6-16-audio")
|
|
358
358
|
], SdAudio);
|
|
359
359
|
|
|
360
360
|
export {
|
|
@@ -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",
|
|
@@ -85,7 +84,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
85
84
|
};
|
|
86
85
|
SdRadioButton.styles = [
|
|
87
86
|
...SolidElement.styles,
|
|
88
|
-
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-6-
|
|
87
|
+
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-6-16-button-group__button--first:not(.sd-4-6-16-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-4-6-16-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-4-6-16-button-group__button--last:not(.sd-4-6-16-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-4-6-16-button-group__button:not(.sd-4-6-16-button-group__button--first)){margin-inline-start:-1px}:host(.sd-4-6-16-button-group__button--hover){z-index:10}:host(.sd-4-6-16-button-group__button--focus),:host(.sd-4-6-16-button-group__button[checked]){z-index:20}`
|
|
89
88
|
];
|
|
90
89
|
__decorateClass([
|
|
91
90
|
query(".button")
|
|
@@ -115,7 +114,7 @@ __decorateClass([
|
|
|
115
114
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
116
115
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
117
116
|
SdRadioButton = __decorateClass([
|
|
118
|
-
customElement("sd-4-6-
|
|
117
|
+
customElement("sd-4-6-16-radio-button")
|
|
119
118
|
], SdRadioButton);
|
|
120
119
|
|
|
121
120
|
export {
|
|
@@ -202,15 +202,15 @@ var SdTooltip = class extends SolidElement {
|
|
|
202
202
|
render() {
|
|
203
203
|
const isStart = this.placement.endsWith("-start");
|
|
204
204
|
const isEnd = this.placement.endsWith("-end");
|
|
205
|
-
return html`<sd-4-6-
|
|
205
|
+
return html`<sd-4-6-16-popup part="base" exportparts="
|
|
206
206
|
popup:base__popup,
|
|
207
207
|
arrow:base__arrow
|
|
208
|
-
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-4-6-
|
|
208
|
+
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-4-6-16-icon library="system" name="info-circle" label="Tooltip" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-4-6-16-icon></button>`}<slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="${this.content}" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-4-6-16-popup>`;
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
SdTooltip.styles = [
|
|
212
212
|
...SolidElement.styles,
|
|
213
|
-
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-6-
|
|
213
|
+
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-6-16-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-6-16-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-6-16-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-6-16-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-6-16-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`
|
|
214
214
|
];
|
|
215
215
|
__decorateClass([
|
|
216
216
|
query("slot:not([name])")
|
|
@@ -219,7 +219,7 @@ __decorateClass([
|
|
|
219
219
|
query("#tooltip")
|
|
220
220
|
], SdTooltip.prototype, "body", 2);
|
|
221
221
|
__decorateClass([
|
|
222
|
-
query("sd-4-6-
|
|
222
|
+
query("sd-4-6-16-popup")
|
|
223
223
|
], SdTooltip.prototype, "popup", 2);
|
|
224
224
|
__decorateClass([
|
|
225
225
|
property({ type: String, reflect: true })
|
|
@@ -252,7 +252,7 @@ __decorateClass([
|
|
|
252
252
|
watch("disabled")
|
|
253
253
|
], SdTooltip.prototype, "handleDisabledChange", 1);
|
|
254
254
|
SdTooltip = __decorateClass([
|
|
255
|
-
customElement("sd-4-6-
|
|
255
|
+
customElement("sd-4-6-16-tooltip")
|
|
256
256
|
], SdTooltip);
|
|
257
257
|
setDefaultAnimation("tooltip.show", {
|
|
258
258
|
keyframes: [
|
|
@@ -85,7 +85,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
85
85
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
86
86
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
87
87
|
}[this.frontVariant]
|
|
88
|
-
)}"></div><sd-4-6-
|
|
88
|
+
)}"></div><sd-4-6-16-button part="front-button" size="md" variant="${{
|
|
89
89
|
primary: "tertiary",
|
|
90
90
|
"primary-100": "tertiary",
|
|
91
91
|
"gradient-light": "primary",
|
|
@@ -95,7 +95,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
95
95
|
"primary-100": false,
|
|
96
96
|
"gradient-light": true,
|
|
97
97
|
"gradient-dark": true
|
|
98
|
-
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-4-6-
|
|
98
|
+
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-4-6-16-icon library="system" name="reload" label="Flip to Back"></sd-4-6-16-icon></sd-4-6-16-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide === "front"}" inert="${ifDefined(this.activeSide === "front" || void 0)}" class="${cx(
|
|
99
99
|
"flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out",
|
|
100
100
|
"flex focus-visible:focus-outline",
|
|
101
101
|
"absolute top-0 left-0 w-full h-full justify-end text-left",
|
|
@@ -128,7 +128,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
128
128
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
129
129
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
130
130
|
}[this.backVariant]
|
|
131
|
-
)}"></div><sd-4-6-
|
|
131
|
+
)}"></div><sd-4-6-16-button size="md" part="back-button" variant="${{
|
|
132
132
|
primary: "tertiary",
|
|
133
133
|
"primary-100": "tertiary",
|
|
134
134
|
"gradient-light": "primary",
|
|
@@ -138,7 +138,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
138
138
|
"primary-100": false,
|
|
139
139
|
"gradient-light": true,
|
|
140
140
|
"gradient-dark": true
|
|
141
|
-
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-4-6-
|
|
141
|
+
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-4-6-16-icon library="system" name="reload" label="Flip to Front"></sd-4-6-16-icon></sd-4-6-16-button></div></div>`;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
/**
|
|
@@ -170,7 +170,7 @@ __decorateClass([
|
|
|
170
170
|
state()
|
|
171
171
|
], SdFlipcard.prototype, "activeSide", 2);
|
|
172
172
|
SdFlipcard = __decorateClass([
|
|
173
|
-
customElement("sd-4-6-
|
|
173
|
+
customElement("sd-4-6-16-flipcard")
|
|
174
174
|
], SdFlipcard);
|
|
175
175
|
|
|
176
176
|
export {
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<label part="base" class="${cx(
|
|
121
|
-
"sd-4-6-
|
|
121
|
+
"sd-4-6-16-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
|
122
122
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
123
123
|
{
|
|
124
124
|
/* sizes, fonts */
|
|
@@ -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]",
|
|
@@ -144,7 +144,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
144
144
|
filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
|
|
145
145
|
default: "border-neutral-800 hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
146
146
|
}[checkboxState]
|
|
147
|
-
)}">${this.checked ? html`<sd-4-6-
|
|
147
|
+
)}">${this.checked ? html`<sd-4-6-16-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-4-6-16-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-4-6-16-icon part="indeterminate-icon" class="text-white w-3 h-3" library="system" name="status-minus"></sd-4-6-16-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
|
148
148
|
"select-none inline-block ml-2",
|
|
149
149
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
|
|
150
150
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
|
@@ -206,7 +206,7 @@ __decorateClass([
|
|
|
206
206
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
207
207
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
|
208
208
|
SdCheckbox = __decorateClass([
|
|
209
|
-
customElement("sd-4-6-
|
|
209
|
+
customElement("sd-4-6-16-checkbox")
|
|
210
210
|
], SdCheckbox);
|
|
211
211
|
|
|
212
212
|
export {
|