@solid-design-system/components 5.1.0 → 5.2.1
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.QHURAHWP.js → chunk.3G76VRT5.js} +1 -1
- package/cdn/chunks/{chunk.M43SHSJ7.js → chunk.6K3RK7TR.js} +1 -1
- package/cdn/chunks/{chunk.4336N4TN.js → chunk.7R2AGOFW.js} +3 -3
- package/cdn/chunks/{chunk.Y63VGL2X.js → chunk.A4HJJAGU.js} +1 -1
- package/cdn/chunks/chunk.BV574DRQ.js +1 -0
- package/cdn/chunks/chunk.FJN37DXV.js +1 -0
- package/cdn/chunks/{chunk.MHPWICL2.js → chunk.FVDWCGWF.js} +1 -1
- package/cdn/chunks/{chunk.3AEOVI4V.js → chunk.IOQAM3HC.js} +1 -1
- package/cdn/chunks/chunk.JIEBLEV6.js +1 -0
- package/cdn/chunks/{chunk.AMKBNS7H.js → chunk.QQH7LKEX.js} +1 -1
- package/cdn/chunks/{chunk.ZIXORQQN.js → chunk.VYDWOWCZ.js} +1 -1
- package/cdn/chunks/{chunk.PM4HPYFT.js → chunk.WFVHAXGV.js} +1 -1
- package/cdn/chunks/{chunk.AFKPYWS5.js → chunk.XDEIXYQG.js} +3 -3
- package/cdn/components/accordion/accordion.js +1 -1
- package/cdn/components/accordion-group/accordion-group.js +1 -1
- package/cdn/components/audio/audio.d.ts +2 -1
- package/cdn/components/audio/audio.js +1 -1
- package/cdn/components/carousel/carousel.js +1 -1
- package/cdn/components/combobox/combobox.d.ts +2 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/dropdown/dropdown.d.ts +2 -1
- package/cdn/components/dropdown/dropdown.js +1 -1
- package/cdn/components/expandable/expandable.js +1 -1
- package/cdn/components/notification/notification.js +1 -1
- package/cdn/components/optgroup/optgroup.d.ts +1 -4
- package/cdn/components/optgroup/optgroup.js +1 -1
- package/cdn/components/quickfact/quickfact.js +1 -1
- package/cdn/components/radio-group/radio-group.d.ts +1 -4
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/scrollable/scrollable.js +1 -1
- package/cdn/components/select/select.d.ts +2 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/tooltip/tooltip.d.ts +2 -1
- package/cdn/components/tooltip/tooltip.js +1 -1
- package/cdn/custom-elements.json +1 -19
- package/cdn/solid-components.bundle.js +15 -15
- package/cdn/solid-components.iife.js +15 -15
- 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.2SOEBGDS.js +1 -1
- package/cdn-versioned/chunks/{chunk.QHURAHWP.js → chunk.3G76VRT5.js} +1 -1
- package/cdn-versioned/chunks/chunk.466HB7MH.js +1 -1
- package/cdn-versioned/chunks/chunk.5I76HTXX.js +1 -1
- package/cdn-versioned/chunks/chunk.5SNCMR36.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/{chunk.M43SHSJ7.js → chunk.6K3RK7TR.js} +4 -4
- package/cdn-versioned/chunks/chunk.6OJK4N6O.js +1 -1
- package/cdn-versioned/chunks/chunk.7LHKLE4G.js +1 -1
- package/cdn-versioned/chunks/{chunk.4336N4TN.js → chunk.7R2AGOFW.js} +4 -4
- package/cdn-versioned/chunks/chunk.7RCSPRWP.js +1 -1
- package/cdn-versioned/chunks/chunk.7SJEXZSM.js +1 -1
- package/cdn-versioned/chunks/{chunk.Y63VGL2X.js → chunk.A4HJJAGU.js} +1 -1
- package/cdn-versioned/chunks/chunk.BV574DRQ.js +1 -0
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.EVLY2HWM.js +1 -1
- package/cdn-versioned/chunks/chunk.FJN37DXV.js +1 -0
- package/cdn-versioned/chunks/{chunk.MHPWICL2.js → chunk.FVDWCGWF.js} +1 -1
- package/cdn-versioned/chunks/chunk.FY4ZQ25C.js +1 -1
- package/cdn-versioned/chunks/chunk.I4VI7CRD.js +1 -1
- package/cdn-versioned/chunks/chunk.IDX4RDHZ.js +1 -1
- package/cdn-versioned/chunks/{chunk.3AEOVI4V.js → chunk.IOQAM3HC.js} +1 -1
- package/cdn-versioned/chunks/chunk.JIEBLEV6.js +1 -0
- package/cdn-versioned/chunks/chunk.KINWB3R6.js +1 -1
- package/cdn-versioned/chunks/chunk.KYWP646O.js +1 -1
- package/cdn-versioned/chunks/chunk.LQ5Q73YJ.js +1 -1
- package/cdn-versioned/chunks/chunk.LRTBIARY.js +1 -1
- package/cdn-versioned/chunks/chunk.MFSX5MIZ.js +1 -1
- package/cdn-versioned/chunks/chunk.MNEGNJBN.js +2 -2
- package/cdn-versioned/chunks/chunk.OOE73LIA.js +1 -1
- package/cdn-versioned/chunks/chunk.ORM6LFSP.js +1 -1
- package/cdn-versioned/chunks/chunk.PIYHBRRO.js +1 -1
- package/cdn-versioned/chunks/chunk.PKL7HSML.js +1 -1
- package/cdn-versioned/chunks/chunk.QCGZSSDL.js +1 -1
- package/cdn-versioned/chunks/{chunk.AMKBNS7H.js → chunk.QQH7LKEX.js} +1 -1
- package/cdn-versioned/chunks/chunk.RYR5JMPR.js +1 -1
- package/cdn-versioned/chunks/chunk.T25YQB27.js +1 -1
- package/cdn-versioned/chunks/chunk.TUVJON3T.js +1 -1
- package/cdn-versioned/chunks/chunk.UUQIXQII.js +1 -1
- package/cdn-versioned/chunks/{chunk.ZIXORQQN.js → chunk.VYDWOWCZ.js} +1 -1
- package/cdn-versioned/chunks/chunk.VYFYAVQV.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/{chunk.PM4HPYFT.js → chunk.WFVHAXGV.js} +2 -2
- package/cdn-versioned/chunks/chunk.WHJMIN4O.js +1 -1
- package/cdn-versioned/chunks/{chunk.AFKPYWS5.js → chunk.XDEIXYQG.js} +4 -4
- package/cdn-versioned/chunks/chunk.XLPONTTF.js +1 -1
- package/cdn-versioned/chunks/chunk.YBDULCI5.js +1 -1
- package/cdn-versioned/chunks/chunk.Z7R4W5J7.js +1 -1
- package/cdn-versioned/chunks/chunk.ZGWHWNN7.js +1 -1
- package/cdn-versioned/chunks/chunk.ZHIT75AP.js +1 -1
- package/cdn-versioned/chunks/chunk.ZUSDFNOR.js +1 -1
- package/cdn-versioned/chunks/chunk.ZWRWVYOC.js +1 -1
- package/cdn-versioned/chunks/{chunk.QDPTVUAW.js → chunk.ZYYDZEIO.js} +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion/accordion.js +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.js +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +3 -2
- package/cdn-versioned/components/audio/audio.js +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/carousel.js +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +3 -2
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.js +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/drawer/drawer.js +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +3 -2
- package/cdn-versioned/components/dropdown/dropdown.js +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.js +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/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/notification/notification.js +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -5
- package/cdn-versioned/components/optgroup/optgroup.js +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.js +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -5
- 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/scrollable/scrollable.js +1 -1
- package/cdn-versioned/components/select/select.d.ts +3 -2
- 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/tooltip/tooltip.d.ts +3 -2
- package/cdn-versioned/components/tooltip/tooltip.js +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +209 -227
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +19 -19
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +19 -19
- 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.QJGXEBXI.js → chunk.FSHGDMGX.js} +0 -4
- package/dist/chunks/{chunk.67HGWRDC.js → chunk.GK6CL7OA.js} +1 -1
- package/dist/chunks/{chunk.JK7S3JAQ.js → chunk.HPEQN7OA.js} +22 -6
- package/dist/chunks/{chunk.EH5YMA4E.js → chunk.YXW76SQ5.js} +0 -6
- package/dist/components/accordion/accordion.js +2 -2
- package/dist/components/accordion-group/accordion-group.js +2 -2
- package/dist/components/audio/audio.d.ts +2 -1
- package/dist/components/audio/audio.js +7 -1
- package/dist/components/carousel/carousel.js +1 -1
- package/dist/components/combobox/combobox.d.ts +2 -1
- package/dist/components/combobox/combobox.js +4 -3
- package/dist/components/dialog/dialog.js +3 -3
- package/dist/components/drawer/drawer.js +3 -3
- package/dist/components/dropdown/dropdown.d.ts +2 -1
- package/dist/components/dropdown/dropdown.js +3 -2
- package/dist/components/expandable/expandable.js +2 -2
- package/dist/components/notification/notification.js +3 -3
- package/dist/components/optgroup/optgroup.d.ts +1 -4
- package/dist/components/optgroup/optgroup.js +1 -1
- package/dist/components/quickfact/quickfact.js +3 -3
- package/dist/components/radio-group/radio-group.d.ts +1 -4
- package/dist/components/radio-group/radio-group.js +1 -1
- package/dist/components/scrollable/scrollable.js +1 -1
- package/dist/components/select/select.d.ts +2 -1
- package/dist/components/select/select.js +4 -3
- package/dist/components/tooltip/tooltip.d.ts +2 -1
- package/dist/components/tooltip/tooltip.js +3 -2
- package/dist/custom-elements.json +1 -19
- package/dist/solid-components.js +24 -24
- 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.25JYDDEL.js +2 -2
- package/dist-versioned/chunks/chunk.2KW3OQK3.js +1 -1
- package/dist-versioned/chunks/chunk.4JIUFSXL.js +1 -1
- package/dist-versioned/chunks/chunk.4X5KLZKG.js +2 -2
- package/dist-versioned/chunks/chunk.57IRQB22.js +5 -5
- package/dist-versioned/chunks/chunk.5E7OOWFM.js +2 -2
- package/dist-versioned/chunks/chunk.5HB4AZFH.js +11 -11
- package/dist-versioned/chunks/chunk.6BPYGYKJ.js +1 -1
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.7A77E2WF.js +3 -3
- package/dist-versioned/chunks/{chunk.XAOH7E5Y.js → chunk.7WP2IWGR.js} +5 -5
- package/dist-versioned/chunks/{chunk.ZU6B6J6V.js → chunk.A6OD64SZ.js} +31 -31
- package/dist-versioned/chunks/{chunk.TYVXH7ZW.js → chunk.APTBM6ML.js} +12 -12
- package/dist-versioned/chunks/chunk.ASKGMA6Q.js +1 -1
- package/dist-versioned/chunks/{chunk.AD7FTSCZ.js → chunk.AXUXGTON.js} +5 -5
- package/dist-versioned/chunks/{chunk.TIB22UHZ.js → chunk.BC4AIG32.js} +6 -6
- package/dist-versioned/chunks/chunk.CY7STHBY.js +5 -5
- package/dist-versioned/chunks/chunk.DFQ36XHY.js +2 -2
- package/dist-versioned/chunks/chunk.EOLWJNLD.js +3 -3
- package/dist-versioned/chunks/chunk.EQXVKF2G.js +2 -2
- package/dist-versioned/chunks/{chunk.2XYOJHUN.js → chunk.F3WBWTX2.js} +8 -8
- package/dist-versioned/chunks/chunk.FA2PSB3G.js +6 -6
- package/dist-versioned/chunks/{chunk.QJGXEBXI.js → chunk.FSHGDMGX.js} +12 -16
- package/dist-versioned/chunks/chunk.FZYBHAXZ.js +14 -14
- package/dist-versioned/chunks/chunk.GIDPKVNI.js +1 -1
- package/dist-versioned/chunks/{chunk.67HGWRDC.js → chunk.GK6CL7OA.js} +4 -4
- package/dist-versioned/chunks/{chunk.JK7S3JAQ.js → chunk.HPEQN7OA.js} +29 -13
- package/dist-versioned/chunks/chunk.I5QIVC43.js +3 -3
- package/dist-versioned/chunks/chunk.IUBULF5H.js +1 -1
- package/dist-versioned/chunks/chunk.JNTYSC5E.js +1 -1
- package/dist-versioned/chunks/chunk.JQ4VVB6S.js +2 -2
- package/dist-versioned/chunks/chunk.KPGT5KTE.js +4 -4
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.LO2A6JZJ.js +2 -2
- package/dist-versioned/chunks/chunk.LVZUFX7G.js +1 -1
- package/dist-versioned/chunks/chunk.MGN6UKEO.js +5 -5
- package/dist-versioned/chunks/chunk.MTWZ3KVK.js +1 -1
- package/dist-versioned/chunks/chunk.NG6H4NIH.js +2 -2
- package/dist-versioned/chunks/{chunk.Z7OTCKNY.js → chunk.NPAQBZS2.js} +8 -8
- package/dist-versioned/chunks/chunk.NTCYC424.js +1 -1
- package/dist-versioned/chunks/chunk.TJBA6JWN.js +1 -1
- package/dist-versioned/chunks/chunk.U6ZVQYN2.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UT2PBNPH.js +2 -2
- package/dist-versioned/chunks/chunk.UUW3B5S5.js +2 -2
- package/dist-versioned/chunks/chunk.W5BEGOS2.js +3 -3
- package/dist-versioned/chunks/chunk.XQPSZT7C.js +2 -2
- package/dist-versioned/chunks/{chunk.GCBWRTSA.js → chunk.Y4FVATTL.js} +7 -7
- package/dist-versioned/chunks/{chunk.6MIVTHPW.js → chunk.YRRFIBMB.js} +33 -33
- package/dist-versioned/chunks/{chunk.EH5YMA4E.js → chunk.YXW76SQ5.js} +4 -10
- package/dist-versioned/chunks/chunk.Z2TW3FW6.js +1 -1
- package/dist-versioned/chunks/chunk.ZQKFSIZX.js +1 -1
- package/dist-versioned/chunks/{chunk.DPVQIW2K.js → chunk.ZTHKEKB2.js} +8 -8
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion/accordion.js +2 -2
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.js +2 -2
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +3 -2
- package/dist-versioned/components/audio/audio.js +7 -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/carousel.js +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +3 -2
- package/dist-versioned/components/combobox/combobox.js +4 -3
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.js +3 -3
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.js +3 -3
- package/dist-versioned/components/dropdown/dropdown.d.ts +3 -2
- package/dist-versioned/components/dropdown/dropdown.js +3 -2
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.js +2 -2
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/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/notification/notification.js +3 -3
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -5
- package/dist-versioned/components/optgroup/optgroup.js +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.js +3 -3
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -5
- package/dist-versioned/components/radio-group/radio-group.js +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.js +1 -1
- package/dist-versioned/components/select/select.d.ts +3 -2
- package/dist-versioned/components/select/select.js +4 -3
- 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/tooltip/tooltip.d.ts +3 -2
- package/dist-versioned/components/tooltip/tooltip.js +3 -2
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +209 -227
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +24 -24
- 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.54XQKZNU.js +0 -1
- package/cdn/chunks/chunk.66GOZEE4.js +0 -1
- package/cdn/chunks/chunk.HAYM6MTB.js +0 -1
- package/cdn-versioned/chunks/chunk.54XQKZNU.js +0 -1
- package/cdn-versioned/chunks/chunk.66GOZEE4.js +0 -1
- package/cdn-versioned/chunks/chunk.HAYM6MTB.js +0 -1
- package/cdn/chunks/{chunk.QDPTVUAW.js → chunk.ZYYDZEIO.js} +0 -0
- package/dist/chunks/{chunk.XAOH7E5Y.js → chunk.7WP2IWGR.js} +3 -3
- package/dist/chunks/{chunk.ZU6B6J6V.js → chunk.A6OD64SZ.js} +7 -7
- package/dist/chunks/{chunk.TYVXH7ZW.js → chunk.APTBM6ML.js} +3 -3
- package/dist/chunks/{chunk.AD7FTSCZ.js → chunk.AXUXGTON.js} +3 -3
- package/dist/chunks/{chunk.TIB22UHZ.js → chunk.BC4AIG32.js} +0 -0
- package/dist/chunks/{chunk.2XYOJHUN.js → chunk.F3WBWTX2.js} +6 -6
- package/dist/chunks/{chunk.Z7OTCKNY.js → chunk.NPAQBZS2.js} +6 -6
- package/dist/chunks/{chunk.GCBWRTSA.js → chunk.Y4FVATTL.js} +3 -3
- package/dist/chunks/{chunk.6MIVTHPW.js → chunk.YRRFIBMB.js} +7 -7
- package/dist/chunks/{chunk.DPVQIW2K.js → chunk.ZTHKEKB2.js} +3 -3
|
@@ -13,22 +13,22 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
scrollIntoView
|
|
15
15
|
} from "./chunk.WDWV53JP.js";
|
|
16
|
-
import {
|
|
17
|
-
getAnimation,
|
|
18
|
-
setDefaultAnimation
|
|
19
|
-
} from "./chunk.N4LHE3QK.js";
|
|
20
|
-
import {
|
|
21
|
-
waitForEvent
|
|
22
|
-
} from "./chunk.B4BZKR24.js";
|
|
23
16
|
import {
|
|
24
17
|
FormControlController
|
|
25
18
|
} from "./chunk.KVKRZJS7.js";
|
|
26
19
|
import {
|
|
27
20
|
HasSlotController
|
|
28
21
|
} from "./chunk.YEZS5ZR2.js";
|
|
22
|
+
import {
|
|
23
|
+
getAnimation,
|
|
24
|
+
setDefaultAnimation
|
|
25
|
+
} from "./chunk.N4LHE3QK.js";
|
|
29
26
|
import {
|
|
30
27
|
LocalizeController
|
|
31
28
|
} from "./chunk.YKM42GKF.js";
|
|
29
|
+
import {
|
|
30
|
+
waitForEvent
|
|
31
|
+
} from "./chunk.B4BZKR24.js";
|
|
32
32
|
import {
|
|
33
33
|
watch
|
|
34
34
|
} from "./chunk.X2OQMWGY.js";
|
|
@@ -54,7 +54,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
54
54
|
constructor() {
|
|
55
55
|
super(...arguments);
|
|
56
56
|
this.formControlController = new FormControlController(this, {
|
|
57
|
-
assumeInteractionOn: ["sd-blur", "sd-5-1-
|
|
57
|
+
assumeInteractionOn: ["sd-blur", "sd-5-2-1-input"]
|
|
58
58
|
});
|
|
59
59
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
60
60
|
this.localize = new LocalizeController(this);
|
|
@@ -97,11 +97,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
97
97
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
|
98
98
|
};
|
|
99
99
|
this.getTag = (option) => {
|
|
100
|
-
return html`<sd-5-1-
|
|
100
|
+
return html`<sd-5-2-1-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
101
101
|
base:tag__base,
|
|
102
102
|
content:tag__content,
|
|
103
103
|
removable-indicator:tag__removable-indicator,
|
|
104
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-1-
|
|
104
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-5-2-1-tag>`;
|
|
105
105
|
};
|
|
106
106
|
this.handleDocumentFocusIn = (event) => {
|
|
107
107
|
const path = event.composedPath();
|
|
@@ -236,9 +236,9 @@ var SdCombobox = class extends SolidElement {
|
|
|
236
236
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
|
237
237
|
};
|
|
238
238
|
return this.filteredOptions.map((item) => {
|
|
239
|
-
if (item.tagName.toLowerCase() === "sd-5-1-
|
|
239
|
+
if (item.tagName.toLowerCase() === "sd-5-2-1-optgroup") {
|
|
240
240
|
Array.from(item.children).forEach((option) => {
|
|
241
|
-
if (option.tagName.toLowerCase() === "sd-5-1-
|
|
241
|
+
if (option.tagName.toLowerCase() === "sd-5-2-1-option") {
|
|
242
242
|
renderOption(option);
|
|
243
243
|
}
|
|
244
244
|
});
|
|
@@ -258,11 +258,11 @@ var SdCombobox = class extends SolidElement {
|
|
|
258
258
|
});
|
|
259
259
|
} else {
|
|
260
260
|
return [
|
|
261
|
-
html`<sd-5-1-
|
|
261
|
+
html`<sd-5-2-1-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
|
262
262
|
base:tag__base,
|
|
263
263
|
content:tag__content,
|
|
264
264
|
removable-indicator:tag__removable-indicator,
|
|
265
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-1-
|
|
265
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.localize.term("tagsSelected")}</sd-5-2-1-tag>`
|
|
266
266
|
];
|
|
267
267
|
}
|
|
268
268
|
}
|
|
@@ -381,7 +381,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
381
381
|
}
|
|
382
382
|
handleOptionClick(event) {
|
|
383
383
|
const target = event.target;
|
|
384
|
-
const option = target.closest("sd-5-1-
|
|
384
|
+
const option = target.closest("sd-5-2-1-option");
|
|
385
385
|
const oldValue = this.value;
|
|
386
386
|
if (option && !option.disabled) {
|
|
387
387
|
if (this.multiple) {
|
|
@@ -433,7 +433,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
433
433
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
|
434
434
|
}
|
|
435
435
|
getAllFilteredOptions() {
|
|
436
|
-
return [...this.filteredWrapper.querySelectorAll("sd-5-1-
|
|
436
|
+
return [...this.filteredWrapper.querySelectorAll("sd-5-2-1-option")];
|
|
437
437
|
}
|
|
438
438
|
getCurrentOption() {
|
|
439
439
|
return this.getAllFilteredOptions().find((option) => option.current);
|
|
@@ -563,7 +563,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
563
563
|
clonedOption.selected = option.selected;
|
|
564
564
|
clonedOption.checkbox = option.checkbox;
|
|
565
565
|
clonedOption.size = option.size;
|
|
566
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-5-1-
|
|
566
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-5-2-1-optgroup";
|
|
567
567
|
if (!hasOptgroup) {
|
|
568
568
|
return clonedOption;
|
|
569
569
|
}
|
|
@@ -587,7 +587,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
587
587
|
this.formControlController.emitInvalidEvent(event);
|
|
588
588
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
589
589
|
}
|
|
590
|
-
/** Receives incoming event detail from sd-5-1-
|
|
590
|
+
/** Receives incoming event detail from sd-5-2-1-popup and updates local state for conditional styling. */
|
|
591
591
|
handleCurrentPlacement(e) {
|
|
592
592
|
const incomingPlacement = e.detail;
|
|
593
593
|
if (incomingPlacement) {
|
|
@@ -599,7 +599,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
599
599
|
}
|
|
600
600
|
handleUseTagsChange() {
|
|
601
601
|
const allOptions = this.getAllFilteredOptions();
|
|
602
|
-
if (customElements.get("sd-5-1-
|
|
602
|
+
if (customElements.get("sd-5-2-1-option")) {
|
|
603
603
|
allOptions.forEach((option) => {
|
|
604
604
|
option.checkbox = this.multiple;
|
|
605
605
|
});
|
|
@@ -725,8 +725,8 @@ var SdCombobox = class extends SolidElement {
|
|
|
725
725
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
|
726
726
|
}
|
|
727
727
|
async handleDefaultSlotChange() {
|
|
728
|
-
if (!customElements.get("sd-5-1-
|
|
729
|
-
customElements.whenDefined("sd-5-1-
|
|
728
|
+
if (!customElements.get("sd-5-2-1-option")) {
|
|
729
|
+
customElements.whenDefined("sd-5-2-1-option").then(() => this.handleDefaultSlotChange());
|
|
730
730
|
return;
|
|
731
731
|
}
|
|
732
732
|
const slottedOptions = this.getSlottedOptions();
|
|
@@ -738,10 +738,10 @@ var SdCombobox = class extends SolidElement {
|
|
|
738
738
|
if (this.multiple) {
|
|
739
739
|
option.checkbox = true;
|
|
740
740
|
}
|
|
741
|
-
option.id = option.id || `sd-5-1-
|
|
741
|
+
option.id = option.id || `sd-5-2-1-combobox-option-${index}`;
|
|
742
742
|
});
|
|
743
743
|
slottedOptgroups.forEach((optgroup, index) => {
|
|
744
|
-
optgroup.id = optgroup.id || `sd-5-1-
|
|
744
|
+
optgroup.id = optgroup.id || `sd-5-2-1-combobox-optgroup-${index}`;
|
|
745
745
|
});
|
|
746
746
|
await this.syncSelectedOptionsAndValue();
|
|
747
747
|
if (this.multiple) {
|
|
@@ -789,7 +789,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
789
789
|
default: "border-neutral-800"
|
|
790
790
|
}[selectState],
|
|
791
791
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
792
|
-
)}"></div><sd-5-1-
|
|
792
|
+
)}"></div><sd-5-2-1-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
793
793
|
"inline-flex relative w-full",
|
|
794
794
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
795
795
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -811,26 +811,26 @@ var SdCombobox = class extends SolidElement {
|
|
|
811
811
|
"flex justify-center",
|
|
812
812
|
iconMarginLeft,
|
|
813
813
|
this.value.length > 0 ? "visible" : "invisible"
|
|
814
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-1-
|
|
814
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-2-1-icon class="${cx("text-neutral-700", iconSize)}" name="closing-round" library="_internal"></sd-5-2-1-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-2-1-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="_internal" name="risk"></sd-5-2-1-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-2-1-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="_internal" name="status-check"></sd-5-2-1-icon>` : ""}<slot name="right" part="right" class="${cx(
|
|
815
815
|
"inline-flex ml-2 leading-[0]",
|
|
816
816
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
817
817
|
iconSize
|
|
818
|
-
)}">${this.type !== "search" ? html`<sd-5-1-
|
|
818
|
+
)}">${this.type !== "search" ? html`<sd-5-2-1-icon class="${cx(
|
|
819
819
|
"transition-transform duration-medium ease-in-out",
|
|
820
820
|
this.open ? "rotate-180" : "rotate-0"
|
|
821
|
-
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-1-
|
|
821
|
+
)}" name="chevron-down" part="chevron" library="_internal" color="currentColor" label="${this.localize.term("open")}"></sd-5-2-1-icon>` : ""}</slot>${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button"><sd-5-2-1-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-2-1-icon></button>` : html`<button class="sd-interactive combobox-button absolute top-2" @keydown="${this.handleComboboxMouseDown}" type="button"><span class="sr-only">${this.localize.term("open")}</span></button>`}</div><div id="listbox" role="${ifDefined(!this.multiple ? "listbox" : void 0)}" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
|
822
822
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
823
823
|
this.open && "shadow transition-shadow duration-medium ease-in-out",
|
|
824
824
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
|
825
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-5-1-
|
|
825
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-5-2-1-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700 mt-2" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
826
826
|
}
|
|
827
827
|
};
|
|
828
828
|
SdCombobox.styles = [
|
|
829
829
|
...SolidElement.styles,
|
|
830
|
-
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-5-1-
|
|
830
|
+
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-5-2-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-5-2-1-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-5-2-1-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-5-2-1-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-5-2-1-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-5-2-1-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
|
831
831
|
];
|
|
832
832
|
__decorateClass([
|
|
833
|
-
query("sd-5-1-
|
|
833
|
+
query("sd-5-2-1-popup")
|
|
834
834
|
], SdCombobox.prototype, "popup", 2);
|
|
835
835
|
__decorateClass([
|
|
836
836
|
query('[part="combobox"]')
|
|
@@ -988,7 +988,7 @@ __decorateClass([
|
|
|
988
988
|
watch("open", { waitUntilFirstUpdate: true })
|
|
989
989
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
|
990
990
|
SdCombobox = __decorateClass([
|
|
991
|
-
customElement("sd-5-1-
|
|
991
|
+
customElement("sd-5-2-1-combobox")
|
|
992
992
|
], SdCombobox);
|
|
993
993
|
setDefaultAnimation("combobox.show", {
|
|
994
994
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
getAnimation,
|
|
9
9
|
setDefaultAnimation
|
|
10
10
|
} from "./chunk.N4LHE3QK.js";
|
|
11
|
-
import {
|
|
12
|
-
waitForEvent
|
|
13
|
-
} from "./chunk.B4BZKR24.js";
|
|
14
11
|
import {
|
|
15
12
|
LocalizeController
|
|
16
13
|
} from "./chunk.YKM42GKF.js";
|
|
14
|
+
import {
|
|
15
|
+
waitForEvent
|
|
16
|
+
} from "./chunk.B4BZKR24.js";
|
|
17
17
|
import {
|
|
18
18
|
watch
|
|
19
19
|
} from "./chunk.X2OQMWGY.js";
|
|
@@ -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-5-1-
|
|
79
|
+
* e.g. the accessible trigger of an <sd-5-2-1-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-5-1-
|
|
91
|
-
case "sd-5-1-
|
|
90
|
+
case "sd-5-2-1-button":
|
|
91
|
+
case "sd-5-2-1-icon-button":
|
|
92
92
|
target = accessibleTrigger.button;
|
|
93
93
|
break;
|
|
94
|
-
case "sd-5-1-
|
|
94
|
+
case "sd-5-2-1-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-5-1-
|
|
239
|
+
this.panel.addEventListener("sd-5-2-1-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-5-1-
|
|
247
|
+
this.panel.removeEventListener("sd-5-2-1-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-5-1-
|
|
280
|
+
return html`<sd-5-2-1-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"><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 block",
|
|
282
282
|
this.open ? "pointer-events-auto" : "pointer-events-none",
|
|
283
283
|
this.rounded && "rounded-md"
|
|
284
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-1-
|
|
284
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-2-1-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-5-1-
|
|
337
|
+
customElement("sd-5-2-1-dropdown")
|
|
338
338
|
], SdDropdown);
|
|
339
339
|
setDefaultAnimation("dropdown.show", {
|
|
340
340
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -323,7 +323,7 @@ __decorateClass([
|
|
|
323
323
|
property({ attribute: "auto-size-padding", type: Number })
|
|
324
324
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
325
325
|
SdPopup = __decorateClass([
|
|
326
|
-
customElement("sd-5-1-
|
|
326
|
+
customElement("sd-5-2-1-popup")
|
|
327
327
|
], SdPopup);
|
|
328
328
|
|
|
329
329
|
export {
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
getAnimation,
|
|
3
3
|
setDefaultAnimation
|
|
4
4
|
} from "./chunk.N4LHE3QK.js";
|
|
5
|
-
import {
|
|
6
|
-
waitForEvent
|
|
7
|
-
} from "./chunk.B4BZKR24.js";
|
|
8
5
|
import {
|
|
9
6
|
LocalizeController
|
|
10
7
|
} from "./chunk.YKM42GKF.js";
|
|
8
|
+
import {
|
|
9
|
+
waitForEvent
|
|
10
|
+
} from "./chunk.B4BZKR24.js";
|
|
11
11
|
import {
|
|
12
12
|
watch
|
|
13
13
|
} from "./chunk.X2OQMWGY.js";
|
|
@@ -94,7 +94,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
94
94
|
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${cx(
|
|
95
95
|
"flex items-center mr-2 transition-transform duration-medium ease-in-out",
|
|
96
96
|
this.open && "rotate-180"
|
|
97
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-1-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-2-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-2-1-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-2-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-2-1-icon></slot></span><slot name="toggle-closed" class="${cx(this.open && "hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${cx(!this.open && "hidden")}">${this.localize.term("showLess")}</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>`;
|
|
98
98
|
}
|
|
99
99
|
firstUpdated() {
|
|
100
100
|
this.cloneContentToLightDOM();
|
|
@@ -134,7 +134,7 @@ __decorateClass([
|
|
|
134
134
|
watch("open", { waitUntilFirstUpdate: true })
|
|
135
135
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
136
136
|
SdExpandable = __decorateClass([
|
|
137
|
-
customElement("sd-5-1-
|
|
137
|
+
customElement("sd-5-2-1-expandable")
|
|
138
138
|
], SdExpandable);
|
|
139
139
|
setDefaultAnimation("expandable.show", {
|
|
140
140
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|
|
@@ -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-5-1-
|
|
291
|
+
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-5-2-1-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-5-2-1-icon class="text-3xl" name="pause" library="_internal"></sd-5-2-1-icon></slot>` : html`<slot name="play-icon"><sd-5-2-1-icon class="text-3xl" name="start" library="_internal"></sd-5-2-1-icon></slot>`}</sd-5-2-1-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-5-1-
|
|
294
|
+
)}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-5-2-1-icon class="w-6 h-6" name="transcript" library="_internal"></sd-5-2-1-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-5-2-1-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="_internal"></sd-5-2-1-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-5-1-
|
|
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-5-2-1-drawer><slot name="transcript"></slot></sd-5-2-1-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-5-1-
|
|
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-5-2-1-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-5-2-1-button::part(motion-wrapper){border-radius:var(--sd-border-radius-full,9999px)}sd-5-2-1-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-5-1-
|
|
351
|
+
query("sd-5-2-1-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-5-1-
|
|
357
|
+
customElement("sd-5-2-1-audio")
|
|
358
358
|
], SdAudio);
|
|
359
359
|
|
|
360
360
|
export {
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-5-1-
|
|
29
|
+
return [...this.querySelectorAll("sd-5-2-1-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-5-1-
|
|
42
|
+
if (customElements.get("sd-5-2-1-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-5-1-
|
|
45
|
+
customElements.whenDefined("sd-5-2-1-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -79,7 +79,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
79
79
|
*/
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-1-
|
|
82
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-2-1-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-2-1-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-2-1-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-2-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-2-1-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-2-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
|
83
83
|
];
|
|
84
84
|
__decorateClass([
|
|
85
85
|
property({ type: String, reflect: true })
|
|
@@ -100,7 +100,7 @@ __decorateClass([
|
|
|
100
100
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
101
101
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
102
102
|
SdCheckboxGroup = __decorateClass([
|
|
103
|
-
customElement("sd-5-1-
|
|
103
|
+
customElement("sd-5-2-1-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|
|
@@ -32,7 +32,7 @@ var SdDivider = class extends SolidElement {
|
|
|
32
32
|
*/
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
|
-
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-5-1-
|
|
35
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-5-2-1-divider[orientation=horizontal]){display:block}:host(sd-5-2-1-divider[orientation=vertical]){display:inline-block}`
|
|
36
36
|
];
|
|
37
37
|
__decorateClass([
|
|
38
38
|
property({ type: String, reflect: true })
|
|
@@ -41,7 +41,7 @@ __decorateClass([
|
|
|
41
41
|
property({ type: Boolean, reflect: true })
|
|
42
42
|
], SdDivider.prototype, "inverted", 2);
|
|
43
43
|
SdDivider = __decorateClass([
|
|
44
|
-
customElement("sd-5-1-
|
|
44
|
+
customElement("sd-5-2-1-divider")
|
|
45
45
|
], SdDivider);
|
|
46
46
|
|
|
47
47
|
export {
|
|
@@ -385,7 +385,7 @@ var SdInput = class extends SolidElement {
|
|
|
385
385
|
this.size === "sm" ? "h-6" : "h-8",
|
|
386
386
|
textSize
|
|
387
387
|
)}" 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
|
|
388
|
-
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-5-1-
|
|
388
|
+
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-5-2-1-icon class="${cx("text-neutral-700", iconSize)}" library="_internal" name="closing-round"></sd-5-2-1-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-5-2-1-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye"></sd-5-2-1-icon></slot>` : html`<slot name="hide-password-icon"><sd-5-2-1-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye-crossed-out"></sd-5-2-1-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-5-2-1-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-5-2-1-icon>` : ""} ${this.type === "time" ? html`<sd-5-2-1-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="clock"></sd-5-2-1-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-5-2-1-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-2-1-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-2-1-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-5-2-1-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-5-2-1-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-2-1-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-5-2-1-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-2-1-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-5-2-1-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-2-1-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()}`;
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
/**
|
|
@@ -393,7 +393,7 @@ var SdInput = class extends SolidElement {
|
|
|
393
393
|
*/
|
|
394
394
|
SdInput.styles = [
|
|
395
395
|
...SolidElement.styles,
|
|
396
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-1-
|
|
396
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-2-1-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
|
397
397
|
];
|
|
398
398
|
__decorateClass([
|
|
399
399
|
query("#input")
|
|
@@ -523,7 +523,7 @@ __decorateClass([
|
|
|
523
523
|
watch("value", { waitUntilFirstUpdate: true })
|
|
524
524
|
], SdInput.prototype, "handleValueChange", 1);
|
|
525
525
|
SdInput = __decorateClass([
|
|
526
|
-
customElement("sd-5-1-
|
|
526
|
+
customElement("sd-5-2-1-input")
|
|
527
527
|
], SdInput);
|
|
528
528
|
|
|
529
529
|
export {
|
|
@@ -98,7 +98,7 @@ var SdVideo = class extends SolidElement {
|
|
|
98
98
|
this.playing ? "opacity-0" : "opacity-100",
|
|
99
99
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
|
100
100
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline"
|
|
101
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-5-1-
|
|
101
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-5-2-1-icon id="default-play-icon" library="_internal" name="start"></sd-5-2-1-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>` : null}<slot></slot></div>`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
SdVideo.styles = [
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
property({ type: Boolean })
|
|
116
116
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
|
117
117
|
SdVideo = __decorateClass([
|
|
118
|
-
customElement("sd-5-1-
|
|
118
|
+
customElement("sd-5-2-1-video")
|
|
119
119
|
], SdVideo);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
lockBodyScrolling,
|
|
7
7
|
unlockBodyScrolling
|
|
8
8
|
} from "./chunk.WDWV53JP.js";
|
|
9
|
+
import {
|
|
10
|
+
HasSlotController
|
|
11
|
+
} from "./chunk.YEZS5ZR2.js";
|
|
9
12
|
import {
|
|
10
13
|
getAnimation,
|
|
11
14
|
setDefaultAnimation
|
|
12
15
|
} from "./chunk.N4LHE3QK.js";
|
|
13
|
-
import {
|
|
14
|
-
waitForEvent
|
|
15
|
-
} from "./chunk.B4BZKR24.js";
|
|
16
|
-
import {
|
|
17
|
-
HasSlotController
|
|
18
|
-
} from "./chunk.YEZS5ZR2.js";
|
|
19
16
|
import {
|
|
20
17
|
LocalizeController
|
|
21
18
|
} from "./chunk.YKM42GKF.js";
|
|
19
|
+
import {
|
|
20
|
+
waitForEvent
|
|
21
|
+
} from "./chunk.B4BZKR24.js";
|
|
22
22
|
import {
|
|
23
23
|
watch
|
|
24
24
|
} from "./chunk.X2OQMWGY.js";
|
|
@@ -210,7 +210,7 @@ var SdDrawer = class extends SolidElement {
|
|
|
210
210
|
end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
|
|
211
211
|
start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
|
|
212
212
|
}[this.placement]
|
|
213
|
-
)}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-5-1-
|
|
213
|
+
)}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-5-2-1-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-5-2-1-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-5-2-1-icon></sd-5-2-1-button></div></header>` : html`<sd-5-2-1-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}" class="absolute top-2 right-2"><sd-5-2-1-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-5-2-1-icon></sd-5-2-1-button>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></section>`;
|
|
214
214
|
}
|
|
215
215
|
};
|
|
216
216
|
SdDrawer.styles = [
|
|
@@ -251,7 +251,7 @@ __decorateClass([
|
|
|
251
251
|
watch("contained", { waitUntilFirstUpdate: true })
|
|
252
252
|
], SdDrawer.prototype, "handleNoModalChange", 1);
|
|
253
253
|
SdDrawer = __decorateClass([
|
|
254
|
-
customElement("sd-5-1-
|
|
254
|
+
customElement("sd-5-2-1-drawer")
|
|
255
255
|
], SdDrawer);
|
|
256
256
|
setDefaultAnimation("drawer.showStart", {
|
|
257
257
|
keyframes: [
|