@solid-design-system/components 4.6.15 → 4.6.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/chunk.AB2Z3UF6.js +1 -0
- package/cdn/chunks/chunk.DN5VIEHM.js +1 -0
- package/cdn/chunks/chunk.HJLFQHZZ.js +1 -0
- package/cdn/chunks/chunk.ISPLUZVP.js +1 -0
- package/cdn/chunks/chunk.PADJKHD3.js +10 -0
- package/cdn/chunks/{chunk.6427UDY6.js → chunk.QLMZZFO4.js} +2 -2
- package/cdn/chunks/{chunk.MY4GEBIJ.js → chunk.QPKOIQOV.js} +1 -1
- package/cdn/chunks/{chunk.65DXNL7N.js → chunk.RJNADZVI.js} +1 -1
- package/cdn/chunks/{chunk.JOHRW6PF.js → chunk.S7QIH5VA.js} +1 -1
- package/cdn/chunks/{chunk.YCMURSTJ.js → chunk.XWZBJX3N.js} +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/link/link.js +1 -1
- package/cdn/components/option/option.js +1 -1
- package/cdn/components/radio/radio.js +1 -1
- package/cdn/components/radio-button/radio-button.js +1 -1
- package/cdn/components/radio-group/radio-group.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/components/textarea/textarea.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +6 -6
- package/cdn/solid-components.iife.js +6 -6
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.4NXRLTYY.js +1 -1
- package/cdn-versioned/chunks/chunk.5BMNZDCI.js +1 -1
- package/cdn-versioned/chunks/chunk.5ZVICUJO.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.66TMRNEU.js +1 -1
- package/cdn-versioned/chunks/chunk.7ZWYQWXX.js +1 -1
- package/cdn-versioned/chunks/chunk.A23ZM23Y.js +1 -1
- package/cdn-versioned/chunks/chunk.A4V2UKYZ.js +1 -1
- package/cdn-versioned/chunks/chunk.AB2Z3UF6.js +1 -0
- package/cdn-versioned/chunks/chunk.ACNQ2BXU.js +1 -1
- package/cdn-versioned/chunks/chunk.ANNWSGWM.js +1 -1
- package/cdn-versioned/chunks/chunk.BOSQGI5N.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DN5VIEHM.js +1 -0
- package/cdn-versioned/chunks/chunk.DOZJUXUU.js +1 -1
- package/cdn-versioned/chunks/chunk.EHWAIMQI.js +1 -1
- package/cdn-versioned/chunks/chunk.GQQMOVIU.js +1 -1
- package/cdn-versioned/chunks/chunk.HJ6ZYL4L.js +1 -1
- package/cdn-versioned/chunks/chunk.HJLFQHZZ.js +1 -0
- package/cdn-versioned/chunks/chunk.HVR3CO32.js +1 -1
- package/cdn-versioned/chunks/chunk.I2AYZC5K.js +1 -1
- package/cdn-versioned/chunks/chunk.IBKLA3AW.js +1 -1
- package/cdn-versioned/chunks/chunk.ISPLUZVP.js +1 -0
- package/cdn-versioned/chunks/chunk.J3ULJE7I.js +1 -1
- package/cdn-versioned/chunks/chunk.J6HCSJ26.js +2 -2
- package/cdn-versioned/chunks/chunk.JEB7TZCJ.js +1 -1
- package/cdn-versioned/chunks/chunk.JVWAS6I6.js +1 -1
- package/cdn-versioned/chunks/chunk.K3J7U2QY.js +1 -1
- package/cdn-versioned/chunks/chunk.KH26D22B.js +1 -1
- package/cdn-versioned/chunks/chunk.LHFENBCR.js +1 -1
- package/cdn-versioned/chunks/chunk.NJL52GXP.js +1 -1
- package/cdn-versioned/chunks/chunk.NV252BS6.js +1 -1
- package/cdn-versioned/chunks/chunk.OJGGSVKV.js +1 -1
- package/cdn-versioned/chunks/chunk.PADJKHD3.js +10 -0
- package/cdn-versioned/chunks/chunk.PBKA4YLW.js +1 -1
- package/cdn-versioned/chunks/chunk.PMOW5NET.js +1 -1
- package/cdn-versioned/chunks/chunk.Q5DLWGRN.js +1 -1
- package/cdn-versioned/chunks/{chunk.6427UDY6.js → chunk.QLMZZFO4.js} +4 -4
- package/cdn-versioned/chunks/{chunk.MY4GEBIJ.js → chunk.QPKOIQOV.js} +4 -4
- package/cdn-versioned/chunks/chunk.R4JE3MM2.js +1 -1
- package/cdn-versioned/chunks/{chunk.65DXNL7N.js → chunk.RJNADZVI.js} +1 -1
- package/cdn-versioned/chunks/chunk.RU73RME6.js +1 -1
- package/cdn-versioned/chunks/{chunk.JOHRW6PF.js → chunk.S7QIH5VA.js} +1 -1
- package/cdn-versioned/chunks/chunk.V5FMSNBW.js +2 -2
- package/cdn-versioned/chunks/chunk.VERXHJU5.js +1 -1
- package/cdn-versioned/chunks/chunk.VUDF6PNR.js +1 -1
- package/cdn-versioned/chunks/chunk.W76SY6CV.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WTHTRQKQ.js +1 -1
- package/cdn-versioned/chunks/chunk.X2WMWDVE.js +3 -3
- package/cdn-versioned/chunks/{chunk.YCMURSTJ.js → chunk.XWZBJX3N.js} +1 -1
- package/cdn-versioned/chunks/chunk.YU4NECYC.js +1 -1
- package/cdn-versioned/chunks/chunk.ZOASUJTK.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.js +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/input/input.js +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/link/link.js +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/option/option.js +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.js +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.js +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/radio-group/radio-group.js +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.js +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +211 -211
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +16 -16
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +16 -16
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.W7EMD64H.js → chunk.27RJNSY6.js} +1 -1
- package/dist/chunks/{chunk.MAHRGYFG.js → chunk.5IG4TM33.js} +1 -1
- package/dist/chunks/{chunk.RPVPT3AZ.js → chunk.64OVTGZG.js} +2 -2
- package/dist/chunks/{chunk.RXJBEWFC.js → chunk.CJ4WYDUV.js} +1 -1
- package/dist/chunks/{chunk.VBO5UCVM.js → chunk.MXKUHOD6.js} +0 -1
- package/dist/chunks/{chunk.LNAF5CEF.js → chunk.PM6PUJVF.js} +1 -1
- package/dist/chunks/{chunk.N4DLX7CI.js → chunk.TYVLLSJL.js} +1 -1
- package/dist/chunks/{chunk.W4FP3L5S.js → chunk.VPLS37MP.js} +1 -1
- package/dist/chunks/{chunk.NEOGXWHS.js → chunk.VSDSY6TD.js} +8 -5
- package/dist/chunks/{chunk.JV5YIM4X.js → chunk.YP6DKEUN.js} +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/link/link.js +1 -1
- package/dist/components/option/option.js +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-button/radio-button.js +1 -1
- package/dist/components/radio-group/radio-group.js +2 -2
- package/dist/components/select/select.js +1 -1
- package/dist/components/textarea/textarea.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +13 -13
- package/dist/web-types.json +1 -1
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/{chunk.W7EMD64H.js → chunk.27RJNSY6.js} +3 -3
- package/dist-versioned/chunks/chunk.2A3BDUSF.js +6 -6
- package/dist-versioned/chunks/chunk.2CQBUBXE.js +1 -1
- package/dist-versioned/chunks/chunk.32OYTF23.js +8 -8
- package/dist-versioned/chunks/chunk.3TYIEBZZ.js +2 -2
- package/dist-versioned/chunks/chunk.45FVZ6XJ.js +2 -2
- package/dist-versioned/chunks/chunk.4YLFAOXI.js +2 -2
- package/dist-versioned/chunks/chunk.4ZXREC6Z.js +11 -11
- package/dist-versioned/chunks/{chunk.MAHRGYFG.js → chunk.5IG4TM33.js} +3 -3
- package/dist-versioned/chunks/chunk.63XS65LQ.js +1 -1
- package/dist-versioned/chunks/{chunk.RPVPT3AZ.js → chunk.64OVTGZG.js} +24 -24
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6DPDPTTQ.js +2 -2
- package/dist-versioned/chunks/chunk.74CY6CLD.js +3 -3
- package/dist-versioned/chunks/chunk.BP6TATWD.js +2 -2
- package/dist-versioned/chunks/chunk.BSCYCJVQ.js +5 -5
- package/dist-versioned/chunks/chunk.CBB3P3NX.js +2 -2
- package/dist-versioned/chunks/chunk.CFJLB3HN.js +4 -4
- package/dist-versioned/chunks/{chunk.RXJBEWFC.js → chunk.CJ4WYDUV.js} +3 -3
- package/dist-versioned/chunks/chunk.DVFLNKVT.js +1 -1
- package/dist-versioned/chunks/chunk.DXFYMLRT.js +1 -1
- package/dist-versioned/chunks/chunk.G5NNLJSH.js +2 -2
- package/dist-versioned/chunks/chunk.GG5P2ME5.js +1 -1
- package/dist-versioned/chunks/chunk.HHUBCDJ6.js +1 -1
- package/dist-versioned/chunks/chunk.HOJQ3I25.js +2 -2
- package/dist-versioned/chunks/chunk.J24KLWJY.js +9 -9
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L62PLKYH.js +2 -2
- package/dist-versioned/chunks/chunk.M3L4O32M.js +6 -6
- package/dist-versioned/chunks/{chunk.VBO5UCVM.js → chunk.MXKUHOD6.js} +2 -3
- package/dist-versioned/chunks/chunk.NODZGXB7.js +1 -1
- package/dist-versioned/chunks/chunk.NOZJYEWZ.js +5 -5
- package/dist-versioned/chunks/chunk.NXP37WVQ.js +1 -1
- package/dist-versioned/chunks/chunk.P77O564Q.js +5 -5
- package/dist-versioned/chunks/{chunk.LNAF5CEF.js → chunk.PM6PUJVF.js} +4 -4
- package/dist-versioned/chunks/chunk.PTSJHOIB.js +1 -1
- package/dist-versioned/chunks/chunk.QTG4NS6F.js +1 -1
- package/dist-versioned/chunks/chunk.SML76IW6.js +1 -1
- package/dist-versioned/chunks/chunk.SYCJWHFY.js +1 -1
- package/dist-versioned/chunks/chunk.SZP6EUOZ.js +1 -1
- package/dist-versioned/chunks/chunk.TJBZYHFX.js +14 -14
- package/dist-versioned/chunks/{chunk.N4DLX7CI.js → chunk.TYVLLSJL.js} +14 -14
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V2ON3YL6.js +1 -1
- package/dist-versioned/chunks/chunk.VCSJOZI4.js +4 -4
- package/dist-versioned/chunks/{chunk.W4FP3L5S.js → chunk.VPLS37MP.js} +3 -3
- package/dist-versioned/chunks/{chunk.NEOGXWHS.js → chunk.VSDSY6TD.js} +11 -8
- package/dist-versioned/chunks/chunk.XKASXMF7.js +3 -3
- package/dist-versioned/chunks/{chunk.JV5YIM4X.js → chunk.YP6DKEUN.js} +27 -27
- package/dist-versioned/chunks/chunk.YS5DNYIN.js +2 -2
- package/dist-versioned/chunks/chunk.YU4DZT3T.js +5 -5
- package/dist-versioned/chunks/chunk.Z6IS4T3X.js +5 -5
- package/dist-versioned/chunks/chunk.ZO5RJB5Z.js +2 -2
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.js +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.js +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/input/input.js +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/link/link.js +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/option/option.js +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio/radio.js +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.js +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/radio-group/radio-group.js +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/select/select.js +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.d.ts +1 -1
- package/dist-versioned/components/textarea/textarea.js +1 -1
- package/dist-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +211 -211
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +13 -13
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +1 -1
- package/cdn/chunks/chunk.F2NEB6WX.js +0 -1
- package/cdn/chunks/chunk.LPPVUSZH.js +0 -1
- package/cdn/chunks/chunk.N3TOTAZO.js +0 -1
- package/cdn/chunks/chunk.VWBRHGZ5.js +0 -10
- package/cdn/chunks/chunk.WVEXC674.js +0 -1
- package/cdn-versioned/chunks/chunk.F2NEB6WX.js +0 -1
- package/cdn-versioned/chunks/chunk.LPPVUSZH.js +0 -1
- package/cdn-versioned/chunks/chunk.N3TOTAZO.js +0 -1
- package/cdn-versioned/chunks/chunk.VWBRHGZ5.js +0 -10
- package/cdn-versioned/chunks/chunk.WVEXC674.js +0 -1
|
@@ -344,7 +344,7 @@ var SdInput = class extends SolidElement {
|
|
|
344
344
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
|
345
345
|
const hasClearIcon = this.clearable && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
|
346
346
|
const hasTooltip = !!slots["tooltip"];
|
|
347
|
-
const inputState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
347
|
+
const inputState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
348
348
|
const textSize = this.size === "sm" ? "text-sm" : "text-base";
|
|
349
349
|
const borderColor = {
|
|
350
350
|
disabled: "border-neutral-500",
|
|
@@ -364,7 +364,11 @@ var SdInput = class extends SolidElement {
|
|
|
364
364
|
md: "text-lg",
|
|
365
365
|
lg: "text-xl"
|
|
366
366
|
}[this.size];
|
|
367
|
-
return html`<div part="form-control" class="${cx(this.disabled
|
|
367
|
+
return html`<div part="form-control" class="${cx((this.disabled || this.visuallyDisabled) && "cursor-not-allowed")}">${hasLabel || hasTooltip ? html`<div class="flex items-center gap-1 mb-2"><label part="form-control-label" id="label" class="${cx(hasLabel ? "inline-block" : "hidden", textSize)}" for="input" aria-hidden="${hasLabel ? "false" : "true"}"><slot name="label">${this.label}</slot></label> ${slots["tooltip"] ? html`<slot name="tooltip"></slot>` : ""}</div>` : null}<div part="form-control-input" class="${cx(
|
|
368
|
+
"relative w-full",
|
|
369
|
+
this.disabled && "pointer-events-none",
|
|
370
|
+
this.visuallyDisabled && "cursor-not-allowed"
|
|
371
|
+
)}"><div part="border" class="${cx("absolute w-full h-full pointer-events-none border rounded-default", borderColor)}"></div><div part="base" class="${cx(
|
|
368
372
|
"px-4 flex flex-row items-center rounded-default transition-all",
|
|
369
373
|
// Vertical Padding
|
|
370
374
|
this.size === "lg" ? "py-2" : "py-1",
|
|
@@ -374,12 +378,11 @@ var SdInput = class extends SolidElement {
|
|
|
374
378
|
inputState === "disabled" || inputState === "visuallyDisabled" ? "text-neutral-500" : "text-black"
|
|
375
379
|
)}">${slots["left"] ? html`<slot name="left" part="left" class="${cx("inline-flex", this.size === "sm" ? "mr-1" : "mr-2", iconColor, iconSize)}"></slot>` : ""} <input part="input" id="input" class="${cx(
|
|
376
380
|
"min-w-0 flex-grow focus:outline-none bg-transparent",
|
|
377
|
-
this.visuallyDisabled || this.disabled ? "placeholder-neutral-500" : "placeholder-neutral-700",
|
|
381
|
+
this.visuallyDisabled || this.disabled ? "placeholder-neutral-500 cursor-not-allowed" : "placeholder-neutral-700",
|
|
378
382
|
this.size === "sm" ? "h-6" : "h-8",
|
|
379
|
-
textSize
|
|
380
|
-
this.visuallyDisabled && "cursor-not-allowed"
|
|
383
|
+
textSize
|
|
381
384
|
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
382
|
-
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-4-6-
|
|
385
|
+
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-16-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-4-6-16-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-4-6-16-icon class="${cx(iconColor, iconSize)}" library="system" name="eye"></sd-4-6-16-icon></slot>` : html`<slot name="hide-password-icon"><sd-4-6-16-icon class="${cx(iconColor, iconSize)}" library="system" name="eye-crossed-out"></sd-4-6-16-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-4-6-16-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-4-6-16-icon>` : ""} ${this.type === "time" ? html`<sd-4-6-16-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-4-6-16-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-4-6-16-icon class="${cx(iconColor, iconSize)}" library="system" name="magnifying-glass" label="${this.localize.term("search")}"></sd-4-6-16-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-6-16-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-4-6-16-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-4-6-16-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-4-6-16-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-4-6-16-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-6-16-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-4-6-16-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-4-6-16-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
383
386
|
}
|
|
384
387
|
};
|
|
385
388
|
/**
|
|
@@ -387,7 +390,7 @@ var SdInput = class extends SolidElement {
|
|
|
387
390
|
*/
|
|
388
391
|
SdInput.styles = [
|
|
389
392
|
...SolidElement.styles,
|
|
390
|
-
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-4-6-
|
|
393
|
+
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-4-6-16-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
|
391
394
|
];
|
|
392
395
|
__decorateClass([
|
|
393
396
|
query("#input")
|
|
@@ -517,7 +520,7 @@ __decorateClass([
|
|
|
517
520
|
watch("value", { waitUntilFirstUpdate: true })
|
|
518
521
|
], SdInput.prototype, "handleValueChange", 1);
|
|
519
522
|
SdInput = __decorateClass([
|
|
520
|
-
customElement("sd-4-6-
|
|
523
|
+
customElement("sd-4-6-16-input")
|
|
521
524
|
], SdInput);
|
|
522
525
|
|
|
523
526
|
export {
|
|
@@ -64,10 +64,10 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
64
64
|
!this.expandable && "hidden"
|
|
65
65
|
)}
|
|
66
66
|
><slot name="expand-icon" class=${cx(this.open && "hidden")}>
|
|
67
|
-
<sd-4-6-
|
|
67
|
+
<sd-4-6-16-icon library="system" name="chevron-down"></sd-4-6-16-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-4-6-
|
|
70
|
+
<sd-4-6-16-icon library="system" name="chevron-down"></sd-4-6-16-icon> </slot
|
|
71
71
|
></span>
|
|
72
72
|
</${header}>
|
|
73
73
|
<div part="content" id="content" class=${cx("overflow-hidden", !this.expandable && "hidden")}>
|
|
@@ -85,7 +85,7 @@ __decorateClass([
|
|
|
85
85
|
property({ type: Boolean, reflect: true })
|
|
86
86
|
], SdQuickfact.prototype, "expandable", 2);
|
|
87
87
|
SdQuickfact = __decorateClass([
|
|
88
|
-
customElement("sd-4-6-
|
|
88
|
+
customElement("sd-4-6-16-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
91
|
keyframes: [
|
|
@@ -44,7 +44,7 @@ var SdSelect = class extends SolidElement {
|
|
|
44
44
|
constructor() {
|
|
45
45
|
super(...arguments);
|
|
46
46
|
this.formControlController = new FormControlController(this, {
|
|
47
|
-
assumeInteractionOn: ["sd-blur", "sd-4-6-
|
|
47
|
+
assumeInteractionOn: ["sd-blur", "sd-4-6-16-input"]
|
|
48
48
|
});
|
|
49
49
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
|
50
50
|
this.localize = new LocalizeController(this);
|
|
@@ -77,11 +77,11 @@ var SdSelect = class extends SolidElement {
|
|
|
77
77
|
this.styleOnValid = false;
|
|
78
78
|
this.hoist = false;
|
|
79
79
|
this.getTag = (option) => {
|
|
80
|
-
return html`<sd-4-6-
|
|
80
|
+
return html`<sd-4-6-16-tag class="relative z-10" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
81
81
|
base:tag__base,
|
|
82
82
|
content:tag__content,
|
|
83
83
|
removable-indicator:tag__removable-indicator,
|
|
84
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-6-
|
|
84
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-6-16-tag>`;
|
|
85
85
|
};
|
|
86
86
|
this.handleDocumentFocusIn = (event) => {
|
|
87
87
|
const path = event.composedPath();
|
|
@@ -92,7 +92,7 @@ var SdSelect = class extends SolidElement {
|
|
|
92
92
|
this.handleDocumentKeyDown = (event) => {
|
|
93
93
|
const target = event.target;
|
|
94
94
|
const isClearButton = target.closest(".select__clear") !== null;
|
|
95
|
-
const isIconButton = target.closest("sd-4-6-
|
|
95
|
+
const isIconButton = target.closest("sd-4-6-16-icon-button") !== null;
|
|
96
96
|
if (isClearButton || isIconButton) {
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
@@ -227,8 +227,8 @@ var SdSelect = class extends SolidElement {
|
|
|
227
227
|
event.preventDefault();
|
|
228
228
|
event.stopPropagation();
|
|
229
229
|
const tagParent = (_a = event.currentTarget) == null ? void 0 : _a.parentElement;
|
|
230
|
-
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-6-
|
|
231
|
-
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-6-
|
|
230
|
+
const previousTag = (_b = tagParent == null ? void 0 : tagParent.previousElementSibling) == null ? void 0 : _b.querySelector("sd-4-6-16-tag");
|
|
231
|
+
const nextTag = (_c = tagParent == null ? void 0 : tagParent.nextElementSibling) == null ? void 0 : _c.querySelector("sd-4-6-16-tag");
|
|
232
232
|
this.handleTagRemove(new CustomEvent("sd-remove"), option);
|
|
233
233
|
this.updateComplete.then(() => {
|
|
234
234
|
if (nextTag) {
|
|
@@ -248,7 +248,7 @@ var SdSelect = class extends SolidElement {
|
|
|
248
248
|
this.handleTagRemove(new CustomEvent("sd-remove"), this.selectedOptions[this.selectedOptions.length - 1]);
|
|
249
249
|
this.updateComplete.then(() => {
|
|
250
250
|
var _a;
|
|
251
|
-
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-6-
|
|
251
|
+
const tags = (_a = this.shadowRoot) == null ? void 0 : _a.querySelectorAll("sd-4-6-16-tag");
|
|
252
252
|
if (tags && tags.length > 0) {
|
|
253
253
|
tags == null ? void 0 : tags[(tags == null ? void 0 : tags.length) - 1].focus();
|
|
254
254
|
} else {
|
|
@@ -294,7 +294,7 @@ var SdSelect = class extends SolidElement {
|
|
|
294
294
|
}
|
|
295
295
|
handleOptionClick(event) {
|
|
296
296
|
const target = event.target;
|
|
297
|
-
const option = target.closest("sd-4-6-
|
|
297
|
+
const option = target.closest("sd-4-6-16-option");
|
|
298
298
|
const oldValue = this.value;
|
|
299
299
|
if (option && !option.disabled) {
|
|
300
300
|
if (this.multiple) {
|
|
@@ -319,7 +319,7 @@ var SdSelect = class extends SolidElement {
|
|
|
319
319
|
const allOptions = this.getAllOptions();
|
|
320
320
|
const value = Array.isArray(this.value) ? this.value : [this.value];
|
|
321
321
|
const values = [];
|
|
322
|
-
if (customElements.get("sd-4-6-
|
|
322
|
+
if (customElements.get("sd-4-6-16-option")) {
|
|
323
323
|
allOptions.forEach((option) => {
|
|
324
324
|
if (this.multiple) {
|
|
325
325
|
option.checkbox = true;
|
|
@@ -328,7 +328,7 @@ var SdSelect = class extends SolidElement {
|
|
|
328
328
|
});
|
|
329
329
|
this.setSelectedOptions(allOptions.filter((el) => value.includes(el.value)));
|
|
330
330
|
} else {
|
|
331
|
-
customElements.whenDefined("sd-4-6-
|
|
331
|
+
customElements.whenDefined("sd-4-6-16-option").then(() => this.handleDefaultSlotChange());
|
|
332
332
|
}
|
|
333
333
|
}
|
|
334
334
|
handleTagRemove(event, option) {
|
|
@@ -345,13 +345,13 @@ var SdSelect = class extends SolidElement {
|
|
|
345
345
|
});
|
|
346
346
|
}
|
|
347
347
|
}
|
|
348
|
-
// Gets an array of all <sd-4-6-
|
|
348
|
+
// Gets an array of all <sd-4-6-16-option> elements
|
|
349
349
|
getAllOptions() {
|
|
350
|
-
return [...this.querySelectorAll("sd-4-6-
|
|
350
|
+
return [...this.querySelectorAll("sd-4-6-16-option")];
|
|
351
351
|
}
|
|
352
|
-
// Gets the first <sd-4-6-
|
|
352
|
+
// Gets the first <sd-4-6-16-option> element
|
|
353
353
|
getFirstOption() {
|
|
354
|
-
return this.querySelector("sd-4-6-
|
|
354
|
+
return this.querySelector("sd-4-6-16-option");
|
|
355
355
|
}
|
|
356
356
|
// Sets the current option, which is the option the user is currently interacting with (e.g. via keyboard). Only one
|
|
357
357
|
// option may be "current" at a time.
|
|
@@ -440,11 +440,11 @@ var SdSelect = class extends SolidElement {
|
|
|
440
440
|
});
|
|
441
441
|
} else {
|
|
442
442
|
return [
|
|
443
|
-
html`<sd-4-6-
|
|
443
|
+
html`<sd-4-6-16-tag class="z-10" ?disabled="${this.disabled}" part="tag" exportparts="
|
|
444
444
|
base:tag__base,
|
|
445
445
|
content:tag__content,
|
|
446
446
|
removable-indicator:tag__removable-indicator,
|
|
447
|
-
" 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-4-6-
|
|
447
|
+
" 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-4-6-16-tag>`
|
|
448
448
|
];
|
|
449
449
|
}
|
|
450
450
|
}
|
|
@@ -453,7 +453,7 @@ var SdSelect = class extends SolidElement {
|
|
|
453
453
|
this.formControlController.emitInvalidEvent(event);
|
|
454
454
|
this.invalidMessage.textContent = event.target.validationMessage;
|
|
455
455
|
}
|
|
456
|
-
/** Receives incoming event detail from sd-4-6-
|
|
456
|
+
/** Receives incoming event detail from sd-4-6-16-popup and updates local state for conditional styling. */
|
|
457
457
|
handleCurrentPlacement(e) {
|
|
458
458
|
const incomingPlacement = e.detail;
|
|
459
459
|
if (incomingPlacement) {
|
|
@@ -462,7 +462,7 @@ var SdSelect = class extends SolidElement {
|
|
|
462
462
|
}
|
|
463
463
|
handleUseTagsChange() {
|
|
464
464
|
const allOptions = this.getAllOptions();
|
|
465
|
-
if (customElements.get("sd-4-6-
|
|
465
|
+
if (customElements.get("sd-4-6-16-option")) {
|
|
466
466
|
allOptions.forEach((option) => {
|
|
467
467
|
option.checkbox = this.multiple;
|
|
468
468
|
});
|
|
@@ -571,7 +571,7 @@ var SdSelect = class extends SolidElement {
|
|
|
571
571
|
const hasHelpText = this.helpText ? true : !!slots["helpText"];
|
|
572
572
|
const hasClearIcon = this.clearable && !this.disabled;
|
|
573
573
|
const hasTooltip = !!slots["tooltip"];
|
|
574
|
-
const selectState = this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
574
|
+
const selectState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
575
575
|
const cursorStyles = this.disabled || this.visuallyDisabled ? "cursor-not-allowed" : "cursor-pointer";
|
|
576
576
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
577
577
|
const iconSize = {
|
|
@@ -598,7 +598,7 @@ var SdSelect = class extends SolidElement {
|
|
|
598
598
|
default: "border-neutral-800"
|
|
599
599
|
}[selectState],
|
|
600
600
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
|
601
|
-
)}"></div><sd-4-6-
|
|
601
|
+
)}"></div><sd-4-6-16-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
|
602
602
|
"inline-flex relative w-full",
|
|
603
603
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
|
604
604
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
|
@@ -621,12 +621,12 @@ var SdSelect = class extends SolidElement {
|
|
|
621
621
|
"select__clear flex justify-center",
|
|
622
622
|
iconMarginLeft,
|
|
623
623
|
this.value.length > 0 ? "visible" : "invisible"
|
|
624
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-
|
|
624
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-6-16-icon class="${cx("text-icon-fill-neutral-800 z-10", iconSize)}" library="system" name="closing-round"></sd-4-6-16-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-6-16-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-6-16-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-6-16-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-6-16-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
|
625
625
|
"inline-flex ml-2 transition-all items-center",
|
|
626
626
|
this.open ? "rotate-180" : "rotate-0",
|
|
627
627
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary",
|
|
628
628
|
iconSize
|
|
629
|
-
)}"><sd-4-6-
|
|
629
|
+
)}"><sd-4-6-16-icon name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-6-16-icon></slot></div><button part="combobox" class="${cx(
|
|
630
630
|
"relative w-full px-4 flex flex-row items-center rounded-default focus-visible:outline-none",
|
|
631
631
|
cursorStyles,
|
|
632
632
|
this.open && "shadow",
|
|
@@ -639,7 +639,7 @@ var SdSelect = class extends SolidElement {
|
|
|
639
639
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
|
640
640
|
this.open && "shadow",
|
|
641
641
|
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"
|
|
642
|
-
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-6-
|
|
642
|
+
)}" tabindex="-1" @mouseup="${this.handleOptionClick}" @slotchange="${this.handleDefaultSlotChange}"><slot></slot></div></sd-4-6-16-popup></div><div class="text-sm text-neutral-700 mt-2" part="form-control-help-text" id="help-text" aria-hidden="${hasHelpText ? "false" : "true"}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
|
643
643
|
}
|
|
644
644
|
};
|
|
645
645
|
/**
|
|
@@ -647,13 +647,13 @@ var SdSelect = class extends SolidElement {
|
|
|
647
647
|
*/
|
|
648
648
|
SdSelect.styles = [
|
|
649
649
|
...SolidElement.styles,
|
|
650
|
-
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))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-4-6-
|
|
650
|
+
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))}[part=listbox]{max-height:var(--auto-size-available-height,auto)}.input-container,[part=combobox]{grid-column:1/1;grid-row:1/1}sd-4-6-16-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-6-16-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-4-6-16-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-6-16-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-6-16-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))}`
|
|
651
651
|
];
|
|
652
652
|
__decorateClass([
|
|
653
|
-
queryAssignedElements({ selector: "sd-4-6-
|
|
653
|
+
queryAssignedElements({ selector: "sd-4-6-16-option" })
|
|
654
654
|
], SdSelect.prototype, "_optionsInDefaultSlot", 2);
|
|
655
655
|
__decorateClass([
|
|
656
|
-
query("sd-4-6-
|
|
656
|
+
query("sd-4-6-16-popup")
|
|
657
657
|
], SdSelect.prototype, "popup", 2);
|
|
658
658
|
__decorateClass([
|
|
659
659
|
query('[part="combobox"]')
|
|
@@ -778,7 +778,7 @@ __decorateClass([
|
|
|
778
778
|
watch("value", { waitUntilFirstUpdate: true })
|
|
779
779
|
], SdSelect.prototype, "handleValueChange", 1);
|
|
780
780
|
SdSelect = __decorateClass([
|
|
781
|
-
customElement("sd-4-6-
|
|
781
|
+
customElement("sd-4-6-16-select")
|
|
782
782
|
], SdSelect);
|
|
783
783
|
setDefaultAnimation("select.show", {
|
|
784
784
|
keyframes: [
|
|
@@ -103,7 +103,7 @@ var SdVideo = class extends SolidElement {
|
|
|
103
103
|
this.playing ? "opacity-0" : "opacity-100",
|
|
104
104
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
|
105
105
|
"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"
|
|
106
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-6-
|
|
106
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-6-16-icon id="default-play-icon" library="system" name="start"></sd-4-6-16-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>` : null}<slot></slot></div>`;
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
SdVideo.styles = [
|
|
@@ -120,7 +120,7 @@ __decorateClass([
|
|
|
120
120
|
property({ type: Boolean })
|
|
121
121
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
|
122
122
|
SdVideo = __decorateClass([
|
|
123
|
-
customElement("sd-4-6-
|
|
123
|
+
customElement("sd-4-6-16-video")
|
|
124
124
|
], SdVideo);
|
|
125
125
|
|
|
126
126
|
export {
|
|
@@ -116,16 +116,16 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
116
116
|
isAccordion ? "grow" : "w-full",
|
|
117
117
|
slots["description"] || this.separated ? "pb-1" : horizontalPaddingBottom,
|
|
118
118
|
this.calculatePaddingX
|
|
119
|
-
)}">${this.divider && this.vertical ? html`<sd-4-6-
|
|
119
|
+
)}">${this.divider && this.vertical ? html`<sd-4-6-16-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-4-6-16-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated ? html`<a class="${cx(
|
|
120
120
|
"mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",
|
|
121
121
|
!slots["description"] && "py-4"
|
|
122
|
-
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-6-
|
|
122
|
+
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-6-16-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
123
123
|
"mr-4 h-6 w-6 transition-all",
|
|
124
124
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
125
|
-
)}"></sd-4-6-
|
|
125
|
+
)}"></sd-4-6-16-icon></button>` : html`<sd-4-6-16-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
126
126
|
"h-6 w-6 ml-2 transition-all",
|
|
127
127
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
128
|
-
)}"></sd-4-6-
|
|
128
|
+
)}"></sd-4-6-16-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
|
|
129
129
|
"inline-block text-sm text-left text-black",
|
|
130
130
|
isAccordion || this.separated ? "grow" : "w-full",
|
|
131
131
|
this.separated ? "px-4" : this.calculatePaddingX,
|
|
@@ -190,7 +190,7 @@ __decorateClass([
|
|
|
190
190
|
property({ type: Boolean, reflect: true })
|
|
191
191
|
], SdNavigationItem.prototype, "separated", 2);
|
|
192
192
|
SdNavigationItem = __decorateClass([
|
|
193
|
-
customElement("sd-4-6-
|
|
193
|
+
customElement("sd-4-6-16-navigation-item")
|
|
194
194
|
], SdNavigationItem);
|
|
195
195
|
|
|
196
196
|
export {
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-4-6-
|
|
29
|
+
return [...this.querySelectorAll("sd-4-6-16-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-4-6-
|
|
42
|
+
if (customElements.get("sd-4-6-16-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-4-6-
|
|
45
|
+
customElements.whenDefined("sd-4-6-16-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-4-6-
|
|
82
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-6-16-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-6-16-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-6-16-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-6-16-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-6-16-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-6-16-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-4-6-
|
|
103
|
+
customElement("sd-4-6-16-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|
|
@@ -21,7 +21,7 @@ var SdTab = class extends SolidElement {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.attrId = ++id;
|
|
24
|
-
this.componentId = `sd-4-6-
|
|
24
|
+
this.componentId = `sd-4-6-16-tab-${this.attrId}`;
|
|
25
25
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
26
26
|
this.variant = "default";
|
|
27
27
|
this.active = false;
|
|
@@ -102,7 +102,7 @@ __decorateClass([
|
|
|
102
102
|
watch(["disabled", "visually-disabled"])
|
|
103
103
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
104
104
|
SdTab = __decorateClass([
|
|
105
|
-
customElement("sd-4-6-
|
|
105
|
+
customElement("sd-4-6-16-tab")
|
|
106
106
|
], SdTab);
|
|
107
107
|
|
|
108
108
|
export {
|