@solid-design-system/components 5.2.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.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/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 -1
- 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/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.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/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 +23 -23
- 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.HPEQN7OA.js +8 -8
- 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/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 +23 -23
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +2 -2
- package/cdn/chunks/chunk.54XQKZNU.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.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
|
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
74
74
|
})}
|
|
75
75
|
>
|
|
76
76
|
<span part="checked-icon" class="menu-item__check">
|
|
77
|
-
<sd-5-2-
|
|
77
|
+
<sd-5-2-1-icon name="check" library="_internal" aria-hidden="true"></sd-5-2-1-icon>
|
|
78
78
|
</span>
|
|
79
79
|
|
|
80
80
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
84
84
|
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
85
85
|
|
|
86
86
|
<span class="menu-item__chevron">
|
|
87
|
-
<sd-5-2-
|
|
87
|
+
<sd-5-2-1-icon name="chevron-right" library="_internal" aria-hidden="true"></sd-5-2-1-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -84,7 +84,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdRadioButton.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
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-5-2-
|
|
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-5-2-1-button-group__button--first:not(.sd-5-2-1-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-5-2-1-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-5-2-1-button-group__button--last:not(.sd-5-2-1-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-5-2-1-button-group__button:not(.sd-5-2-1-button-group__button--first)){margin-inline-start:-1px}:host(.sd-5-2-1-button-group__button--hover){z-index:10}:host(.sd-5-2-1-button-group__button--focus),:host(.sd-5-2-1-button-group__button[checked]){z-index:20}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query(".button")
|
|
@@ -114,7 +114,7 @@ __decorateClass([
|
|
|
114
114
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
115
115
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
116
116
|
SdRadioButton = __decorateClass([
|
|
117
|
-
customElement("sd-5-2-
|
|
117
|
+
customElement("sd-5-2-1-radio-button")
|
|
118
118
|
], SdRadioButton);
|
|
119
119
|
|
|
120
120
|
export {
|
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
|
26
26
|
];
|
|
27
27
|
SdCarouselItem = __decorateClass([
|
|
28
|
-
customElement("sd-5-2-
|
|
28
|
+
customElement("sd-5-2-1-carousel-item")
|
|
29
29
|
], SdCarouselItem);
|
|
30
30
|
|
|
31
31
|
export {
|
|
@@ -89,7 +89,7 @@ var SdStep = class extends SolidElement {
|
|
|
89
89
|
!this.disabled && !this.current && !this.notInteractive && "text-primary group-hover:text-primary-500 group-hover:fill-primary-500",
|
|
90
90
|
this.notInteractive && "text-primary",
|
|
91
91
|
this.size === "lg" ? "text-lg" : "text-sm"
|
|
92
|
-
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-5-2-
|
|
92
|
+
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-5-2-1-icon name="status-check" library="_internal"></sd-5-2-1-icon>` : html`${this.index}`}</slot></${tag}>${this.noTail ? "" : html`<div part="tail" class="${cx(
|
|
93
93
|
this.orientation === "horizontal" ? "border-t w-full my-auto mr-2" : "border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",
|
|
94
94
|
!this.disabled && !this.current && !this.notInteractive ? " border-primary group-hover:border-primary-500" : "border-neutral-400"
|
|
95
95
|
)}"></div>`}</div><div part="text-container" class="${cx("mt-4 break-words flex flex-col gap-2", this.orientation === "horizontal" ? "text-center w-40" : "w-max text-left", this.disabled && "!text-neutral-700", this.notInteractive ? "ml-3" : "mr-4")}"><div part="label" id="label" class="${cx("!font-bold sd-paragraph", this.disabled && "!text-neutral-700", !this.disabled && !this.current && !this.notInteractive ? "!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer" : "text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${cx("sd-paragraph sd-paragraph--size-sm", this.disabled && "!text-neutral-700")}">${this.description || html`<slot></slot>`}</div></div></div>`;
|
|
@@ -139,7 +139,7 @@ __decorateClass([
|
|
|
139
139
|
watch("notInteractive")
|
|
140
140
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
141
141
|
SdStep = __decorateClass([
|
|
142
|
-
customElement("sd-5-2-
|
|
142
|
+
customElement("sd-5-2-1-step")
|
|
143
143
|
], SdStep);
|
|
144
144
|
|
|
145
145
|
export {
|
|
@@ -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-5-2-
|
|
88
|
+
)}"></div><sd-5-2-1-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-5-2-
|
|
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-5-2-1-icon library="_internal" name="reload" label="Flip to Back"></sd-5-2-1-icon></sd-5-2-1-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-5-2-
|
|
131
|
+
)}"></div><sd-5-2-1-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-5-2-
|
|
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-5-2-1-icon library="_internal" name="reload" label="Flip to Front"></sd-5-2-1-icon></sd-5-2-1-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-5-2-
|
|
173
|
+
customElement("sd-5-2-1-flipcard")
|
|
174
174
|
], SdFlipcard);
|
|
175
175
|
|
|
176
176
|
export {
|
|
@@ -80,7 +80,7 @@ var SdTag = class extends SolidElement {
|
|
|
80
80
|
!this.removable ? "hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500" : "has-[button:hover]:border-primary-500 has-[button:hover]:bg-neutral-100 has-[button:hover]:text-primary-500"
|
|
81
81
|
) : "bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500",
|
|
82
82
|
this.disabled && !isLink && "cursor-not-allowed"
|
|
83
|
-
)}"><slot id="content" part="content"></slot>${this.removable ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-5-2-
|
|
83
|
+
)}"><slot id="content" part="content"></slot>${this.removable ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-5-2-1-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-5-2-1-icon></slot></button>` : ""}</${tag}>`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTag.styles = [
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
property({ reflect: true })
|
|
116
116
|
], SdTag.prototype, "download", 2);
|
|
117
117
|
SdTag = __decorateClass([
|
|
118
|
-
customElement("sd-5-2-
|
|
118
|
+
customElement("sd-5-2-1-tag")
|
|
119
119
|
], SdTag);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -17,19 +17,19 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
handleFocus(event) {
|
|
19
19
|
const button = findButton(event.target);
|
|
20
|
-
button == null ? void 0 : button.classList.add("sd-5-2-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-5-2-1-button-group__button--focus");
|
|
21
21
|
}
|
|
22
22
|
handleBlur(event) {
|
|
23
23
|
const button = findButton(event.target);
|
|
24
|
-
button == null ? void 0 : button.classList.remove("sd-5-2-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-5-2-1-button-group__button--focus");
|
|
25
25
|
}
|
|
26
26
|
handleMouseOver(event) {
|
|
27
27
|
const button = findButton(event.target);
|
|
28
|
-
button == null ? void 0 : button.classList.add("sd-5-2-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-5-2-1-button-group__button--hover");
|
|
29
29
|
}
|
|
30
30
|
handleMouseOut(event) {
|
|
31
31
|
const button = findButton(event.target);
|
|
32
|
-
button == null ? void 0 : button.classList.remove("sd-5-2-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-5-2-1-button-group__button--hover");
|
|
33
33
|
}
|
|
34
34
|
handleSlotChange() {
|
|
35
35
|
const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
|
|
@@ -37,11 +37,11 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
37
37
|
const index = slottedElements.indexOf(el);
|
|
38
38
|
const button = findButton(el);
|
|
39
39
|
if (button !== null) {
|
|
40
|
-
button.classList.add("sd-5-2-
|
|
41
|
-
button.classList.toggle("sd-5-2-
|
|
42
|
-
button.classList.toggle("sd-5-2-
|
|
43
|
-
button.classList.toggle("sd-5-2-
|
|
44
|
-
button.classList.toggle("sd-5-2-
|
|
40
|
+
button.classList.add("sd-5-2-1-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-5-2-1-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-5-2-1-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-5-2-1-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-5-2-1-button-group__button--radio", button.tagName.toLowerCase() === "sd-5-2-1-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -63,11 +63,11 @@ __decorateClass([
|
|
|
63
63
|
property({ type: String, reflect: true })
|
|
64
64
|
], SdButtonGroup.prototype, "label", 2);
|
|
65
65
|
SdButtonGroup = __decorateClass([
|
|
66
|
-
customElement("sd-5-2-
|
|
66
|
+
customElement("sd-5-2-1-button-group")
|
|
67
67
|
], SdButtonGroup);
|
|
68
68
|
function findButton(el) {
|
|
69
69
|
var _a;
|
|
70
|
-
const selector = "sd-5-2-
|
|
70
|
+
const selector = "sd-5-2-1-button, sd-5-2-1-radio-button";
|
|
71
71
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -10,7 +10,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
10
10
|
var _a, _b;
|
|
11
11
|
const ul = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("ul");
|
|
12
12
|
ul == null ? void 0 : ul.setAttribute("part", "listbox");
|
|
13
|
-
const popup = document.createElement("sd-5-2-
|
|
13
|
+
const popup = document.createElement("sd-5-2-1-popup");
|
|
14
14
|
popup.appendChild(ul);
|
|
15
15
|
(_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
|
|
16
16
|
popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
|
|
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
22
22
|
popup.anchor = sdInput;
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
|
-
const styles = css`sd-5-2-
|
|
25
|
+
const styles = css`sd-5-2-1-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--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-5-2-1-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-5-2-1-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-5-2-1-popup li{list-style-type:""}sd-5-2-1-popup li mark{background-color:transparent;font-weight:700}sd-5-2-1-popup li:not(:has(sd-5-2-1-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-5-2-1-popup li:not(:has(sd-5-2-1-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-5-2-1-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
|
|
26
26
|
const styleSheet = new CSSStyleSheet();
|
|
27
27
|
styleSheet.replaceSync(styles);
|
|
28
28
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
35
35
|
}
|
|
36
36
|
input.addEventListener("open", () => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f;
|
|
38
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-1-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
39
39
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
40
40
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
41
41
|
});
|
|
42
42
|
input.addEventListener("close", () => {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-1-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
45
45
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
46
46
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
47
47
|
});
|
|
@@ -208,7 +208,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
208
208
|
this.readonly ? "bg-neutral-100" : "bg-white",
|
|
209
209
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "text-black"
|
|
210
210
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
211
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-2-
|
|
211
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-2-1-icon]:pe-8",
|
|
212
212
|
{
|
|
213
213
|
sm: "py-1",
|
|
214
214
|
md: "py-1",
|
|
@@ -216,7 +216,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
216
216
|
}[this.size],
|
|
217
217
|
this.disabled && "cursor-not-allowed",
|
|
218
218
|
textSize
|
|
219
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-5-2-
|
|
219
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-5-2-1-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-5-2-1-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-2-1-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-2-1-icon>` : ""}</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 ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
/**
|
|
@@ -330,7 +330,7 @@ __decorateClass([
|
|
|
330
330
|
watch("value", { waitUntilFirstUpdate: true })
|
|
331
331
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
332
332
|
SdTextarea = __decorateClass([
|
|
333
|
-
customElement("sd-5-2-
|
|
333
|
+
customElement("sd-5-2-1-textarea")
|
|
334
334
|
], SdTextarea);
|
|
335
335
|
|
|
336
336
|
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";
|
|
@@ -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-5-2-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-2-1-icon library="_internal" name="chevron-down"></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"></sd-5-2-1-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-5-2-
|
|
171
|
+
customElement("sd-5-2-1-accordion")
|
|
172
172
|
], SdAccordion);
|
|
173
173
|
setDefaultAnimation("accordion.show", {
|
|
174
174
|
keyframes: [
|
|
@@ -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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
729
|
-
customElements.whenDefined("sd-5-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
91
|
-
case "sd-5-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
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-2-
|
|
337
|
+
customElement("sd-5-2-1-dropdown")
|
|
338
338
|
], SdDropdown);
|
|
339
339
|
setDefaultAnimation("dropdown.show", {
|
|
340
340
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|