@solid-design-system/components 7.0.1 → 7.0.3
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.Q3DFVGEW.js → chunk.37JCS2XH.js} +1 -1
- package/cdn/chunks/{chunk.HWX5X5EX.js → chunk.7OG7ICBB.js} +1 -1
- package/cdn/chunks/chunk.JQV2BZ2E.js +12 -0
- package/cdn/components/carousel/carousel.js +1 -1
- package/cdn/components/combobox/combobox.js +1 -1
- package/cdn/components/datepicker/datepicker.js +1 -1
- package/cdn/custom-elements.json +458 -458
- package/cdn/solid-components.bundle.js +3 -3
- package/cdn/solid-components.iife.js +3 -3
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +52 -52
- package/cdn/web-types.json +109 -109
- package/cdn-versioned/chunks/chunk.2C3UQTSS.js +2 -2
- package/cdn-versioned/chunks/chunk.2O3FM7UB.js +2 -2
- package/cdn-versioned/chunks/chunk.35XPUMS2.js +1 -1
- package/cdn-versioned/chunks/{chunk.Q3DFVGEW.js → chunk.37JCS2XH.js} +5 -5
- package/cdn-versioned/chunks/chunk.3IZUMERL.js +2 -2
- package/cdn-versioned/chunks/chunk.3RIAU3TH.js +3 -3
- package/cdn-versioned/chunks/chunk.4GA43M6X.js +2 -2
- package/cdn-versioned/chunks/chunk.4QTJXGRR.js +2 -2
- package/cdn-versioned/chunks/{chunk.HWX5X5EX.js → chunk.7OG7ICBB.js} +2 -2
- package/cdn-versioned/chunks/chunk.ADVB3FPU.js +2 -2
- package/cdn-versioned/chunks/chunk.AJGTKHU5.js +2 -2
- package/cdn-versioned/chunks/chunk.C37LGAL3.js +2 -2
- package/cdn-versioned/chunks/chunk.CGMKBGJU.js +2 -2
- package/cdn-versioned/chunks/chunk.CQNFI34K.js +2 -2
- package/cdn-versioned/chunks/chunk.DCAJAXUP.js +2 -2
- package/cdn-versioned/chunks/chunk.DS2MKMMN.js +3 -3
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.GA3PWYR4.js +2 -2
- package/cdn-versioned/chunks/chunk.HNBY226D.js +1 -1
- package/cdn-versioned/chunks/chunk.HY624TPC.js +2 -2
- package/cdn-versioned/chunks/chunk.I7OVY27Y.js +10 -10
- package/cdn-versioned/chunks/chunk.IFLRUJCI.js +2 -2
- package/cdn-versioned/chunks/chunk.IQBZ7GRB.js +2 -2
- package/cdn-versioned/chunks/chunk.J45556RK.js +1 -1
- package/cdn-versioned/chunks/chunk.JMX6KLDZ.js +2 -2
- package/cdn-versioned/chunks/chunk.JQV2BZ2E.js +12 -0
- package/cdn-versioned/chunks/chunk.KE2YEQDL.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MR54F6CV.js +2 -2
- package/cdn-versioned/chunks/chunk.MYPRMCUO.js +1 -1
- package/cdn-versioned/chunks/chunk.N4L76IWF.js +1 -1
- package/cdn-versioned/chunks/chunk.NGU7NO3O.js +5 -5
- package/cdn-versioned/chunks/chunk.NJKSWXOS.js +2 -2
- package/cdn-versioned/chunks/chunk.NOP4DTP2.js +2 -2
- package/cdn-versioned/chunks/chunk.OOIX4OAP.js +2 -2
- package/cdn-versioned/chunks/chunk.P7GMFHO5.js +1 -1
- package/cdn-versioned/chunks/chunk.PCXVXYU2.js +2 -2
- package/cdn-versioned/chunks/chunk.PFPUD5HR.js +2 -2
- package/cdn-versioned/chunks/chunk.PKCNX4R2.js +2 -2
- package/cdn-versioned/chunks/chunk.PQW77KHE.js +2 -2
- package/cdn-versioned/chunks/chunk.PURR56D5.js +2 -2
- package/cdn-versioned/chunks/chunk.Q63S2Z2M.js +2 -2
- package/cdn-versioned/chunks/chunk.QK3WCIP5.js +2 -2
- package/cdn-versioned/chunks/chunk.RHC6WZ6V.js +2 -2
- package/cdn-versioned/chunks/chunk.RRJCCIDH.js +1 -1
- package/cdn-versioned/chunks/chunk.SPL6VR5S.js +2 -2
- package/cdn-versioned/chunks/chunk.SSE7T5OF.js +2 -2
- package/cdn-versioned/chunks/chunk.SZNU4NHI.js +1 -1
- package/cdn-versioned/chunks/chunk.T7I5MFNS.js +2 -2
- package/cdn-versioned/chunks/chunk.TIMZJKMF.js +2 -2
- package/cdn-versioned/chunks/chunk.TX5WPWH2.js +2 -2
- package/cdn-versioned/chunks/chunk.UI3ZVKSU.js +2 -2
- package/cdn-versioned/chunks/chunk.V6IM4GAA.js +2 -2
- package/cdn-versioned/chunks/chunk.VPBXFCBA.js +2 -2
- package/cdn-versioned/chunks/chunk.VSX5LY2D.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WL6NNNG5.js +2 -2
- package/cdn-versioned/chunks/chunk.WQZWYMH3.js +1 -1
- package/cdn-versioned/chunks/chunk.WUXX2P2S.js +2 -2
- package/cdn-versioned/chunks/chunk.XGVG7F7T.js +2 -2
- package/cdn-versioned/chunks/chunk.XHYIXZF4.js +2 -2
- package/cdn-versioned/chunks/chunk.XZ5JTM6K.js +2 -2
- package/cdn-versioned/chunks/chunk.Y4ZS3BWH.js +2 -2
- package/cdn-versioned/chunks/chunk.YUDSN6HJ.js +3 -3
- package/cdn-versioned/chunks/chunk.Z2M7BQV5.js +2 -2
- 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/breadcrumb/breadcrumb.d.ts +1 -1
- package/cdn-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/cdn-versioned/components/combobox/combobox.js +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.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/file-selector/file-selector.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/link/link.d.ts +1 -1
- package/cdn-versioned/components/loader/loader.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/menu/menu.d.ts +1 -1
- package/cdn-versioned/components/menu-item/menu-item.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 +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/progress-bar/progress-bar.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-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +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/skeleton/skeleton.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/theme-listener/theme-listener.d.ts +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 +721 -721
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +81 -81
- package/cdn-versioned/solid-components.css +3 -3
- package/cdn-versioned/solid-components.iife.js +81 -81
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +166 -166
- package/cdn-versioned/web-types.json +280 -280
- package/dist/chunks/{chunk.LCQBGEHF.js → chunk.UDTZN5OG.js} +1 -1
- package/dist/chunks/{chunk.HCADZIES.js → chunk.YKGIJFJM.js} +1 -1
- package/dist/chunks/{chunk.I46TZJHO.js → chunk.Z4IULIBO.js} +5 -5
- package/dist/components/carousel/carousel.js +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/datepicker/datepicker.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +6 -6
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.2EXNVXP2.js +2 -2
- package/dist-versioned/chunks/chunk.2M6Y3YHU.js +4 -4
- package/dist-versioned/chunks/chunk.2NXJZVSN.js +11 -11
- package/dist-versioned/chunks/chunk.2OT7JZJP.js +10 -10
- package/dist-versioned/chunks/chunk.2Y2MTVGF.js +3 -3
- package/dist-versioned/chunks/chunk.3PHACHZ2.js +7 -7
- package/dist-versioned/chunks/chunk.42XKKRQ2.js +6 -6
- package/dist-versioned/chunks/chunk.4FXMBMSY.js +3 -3
- package/dist-versioned/chunks/chunk.4JC6XNQW.js +4 -4
- package/dist-versioned/chunks/chunk.4VWOZ477.js +4 -4
- package/dist-versioned/chunks/chunk.5JPFIM5W.js +3 -3
- package/dist-versioned/chunks/chunk.5TU4CAN7.js +6 -6
- package/dist-versioned/chunks/chunk.65FELEDA.js +3 -3
- package/dist-versioned/chunks/chunk.67LY7Y75.js +4 -4
- package/dist-versioned/chunks/chunk.6F52A4JB.js +3 -3
- package/dist-versioned/chunks/chunk.72LCNWVE.js +3 -3
- package/dist-versioned/chunks/chunk.7DQB3MN6.js +7 -7
- package/dist-versioned/chunks/chunk.7EXDALNL.js +5 -5
- package/dist-versioned/chunks/chunk.AHIYNPL4.js +1 -1
- package/dist-versioned/chunks/chunk.ALJ34SPY.js +4 -4
- package/dist-versioned/chunks/chunk.B5BWUIZC.js +2 -2
- package/dist-versioned/chunks/chunk.BW5BXFWA.js +5 -5
- package/dist-versioned/chunks/chunk.C3L34J75.js +1 -1
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.C4HDZU75.js +2 -2
- package/dist-versioned/chunks/chunk.CB7PF3MZ.js +6 -6
- package/dist-versioned/chunks/chunk.CXFXIMXV.js +13 -13
- package/dist-versioned/chunks/chunk.DF2LZ65H.js +2 -2
- package/dist-versioned/chunks/chunk.DGLSKBZE.js +3 -3
- package/dist-versioned/chunks/chunk.DZED227Y.js +1 -1
- package/dist-versioned/chunks/chunk.EQIZ7J5Z.js +25 -25
- package/dist-versioned/chunks/chunk.ES5DW7MC.js +2 -2
- package/dist-versioned/chunks/chunk.HFRDUE6W.js +11 -11
- package/dist-versioned/chunks/chunk.I3DVEGNB.js +11 -11
- package/dist-versioned/chunks/chunk.JKJXDDJU.js +3 -3
- package/dist-versioned/chunks/chunk.JPGYEMXS.js +2 -2
- package/dist-versioned/chunks/chunk.JXDY64LH.js +10 -10
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KSU44YSO.js +7 -7
- package/dist-versioned/chunks/chunk.KXUT6UJL.js +2 -2
- package/dist-versioned/chunks/chunk.MPHRXV2B.js +1 -1
- package/dist-versioned/chunks/chunk.N5RQE7OC.js +1 -1
- package/dist-versioned/chunks/chunk.PAXRRXRW.js +4 -4
- package/dist-versioned/chunks/chunk.PGECK7YI.js +1 -1
- package/dist-versioned/chunks/chunk.QGCJ4WUV.js +5 -5
- package/dist-versioned/chunks/chunk.QIYLIH7P.js +5 -5
- package/dist-versioned/chunks/chunk.QNHUD2SQ.js +42 -42
- package/dist-versioned/chunks/chunk.S2ZVBJYN.js +5 -5
- package/dist-versioned/chunks/chunk.SEWHXNAY.js +5 -5
- package/dist-versioned/chunks/chunk.SG7H3CVK.js +12 -12
- package/dist-versioned/chunks/chunk.SMRP2JEM.js +1 -1
- package/dist-versioned/chunks/chunk.TFAIMBF7.js +11 -11
- package/dist-versioned/chunks/chunk.TLAI6IVF.js +2 -2
- package/dist-versioned/chunks/{chunk.LCQBGEHF.js → chunk.UDTZN5OG.js} +11 -11
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UORTR6WB.js +5 -5
- package/dist-versioned/chunks/chunk.VX7JXCCH.js +2 -2
- package/dist-versioned/chunks/chunk.XAU2YS2A.js +5 -5
- package/dist-versioned/chunks/chunk.XQMBT64Z.js +8 -8
- package/dist-versioned/chunks/chunk.YJ46MX3X.js +6 -6
- package/dist-versioned/chunks/{chunk.HCADZIES.js → chunk.YKGIJFJM.js} +24 -24
- package/dist-versioned/chunks/chunk.YRKHHYV5.js +2 -2
- package/dist-versioned/chunks/{chunk.I46TZJHO.js → chunk.Z4IULIBO.js} +15 -15
- package/dist-versioned/chunks/chunk.ZLPWCNY6.js +14 -14
- package/dist-versioned/chunks/chunk.ZQ6CXL6H.js +5 -5
- 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/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist-versioned/components/breadcrumb-item/breadcrumb-item.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 +1 -1
- package/dist-versioned/components/combobox/combobox.js +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.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/file-selector/file-selector.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/link/link.d.ts +1 -1
- package/dist-versioned/components/loader/loader.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/menu/menu.d.ts +1 -1
- package/dist-versioned/components/menu-item/menu-item.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 +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/progress-bar/progress-bar.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-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.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/theme-listener/theme-listener.d.ts +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 +721 -721
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +3 -3
- package/dist-versioned/solid-components.js +6 -6
- package/dist-versioned/vscode.html-custom-data.json +166 -166
- package/dist-versioned/web-types.json +280 -280
- package/package.json +1 -1
- package/cdn/chunks/chunk.5SQTIWWY.js +0 -12
- package/cdn-versioned/chunks/chunk.5SQTIWWY.js +0 -12
|
@@ -1361,7 +1361,7 @@ var SdDatepicker = class extends SolidElement {
|
|
|
1361
1361
|
const iconColor = this.disabled || this.visuallyDisabled ? "text-neutral-500" : "icon-color";
|
|
1362
1362
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
1363
1363
|
const iconSize = { sm: "text-base", md: "text-lg", lg: "text-xl" }[this.size];
|
|
1364
|
-
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 || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
1364
|
+
const inputState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle && !this.open ? "activeInvalid" : this.hasFocus && !this.open && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
1365
1365
|
const borderColor = {
|
|
1366
1366
|
disabled: "border-neutral-500",
|
|
1367
1367
|
visuallyDisabled: "border-neutral-500",
|
|
@@ -788,7 +788,7 @@ var SdCombobox = class extends SolidElement {
|
|
|
788
788
|
const hasIconLeft = slots["left"];
|
|
789
789
|
const hasValue = this.value !== null && String(this.value).length > 0;
|
|
790
790
|
const isFloatingLabelActive = this.floatingLabel && hasLabel && (this.hasFocus || hasValue);
|
|
791
|
-
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";
|
|
791
|
+
const selectState = this.disabled ? "disabled" : this.visuallyDisabled && !this.hasFocus ? "visuallyDisabled" : this.hasFocus && this.showInvalidStyle && !this.open ? "activeInvalid" : this.hasFocus && !this.open && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus || this.open ? "active" : this.showInvalidStyle && !this.open ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
|
792
792
|
const cursorStyles = this.disabled || this.visuallyDisabled ? "cursor-not-allowed" : "cursor-pointer";
|
|
793
793
|
const iconColor = this.disabled || this.visuallyDisabled ? "text-neutral-500" : "form-control-color-icon-fill";
|
|
794
794
|
const iconMarginLeft = { sm: "ml-1", md: "ml-2", lg: "ml-2" }[this.size];
|
|
@@ -71,8 +71,8 @@ var SdCarousel = class extends SolidElement {
|
|
|
71
71
|
this.localize = new LocalizeController(this);
|
|
72
72
|
this.userInteracted = false;
|
|
73
73
|
this.fadeController = new FadeController(this);
|
|
74
|
-
this.handleUserInteraction = () => {
|
|
75
|
-
this.userInteracted =
|
|
74
|
+
this.handleUserInteraction = (e) => {
|
|
75
|
+
this.userInteracted = e.type === "keydown";
|
|
76
76
|
};
|
|
77
77
|
this.handleSlotChange = (mutations) => {
|
|
78
78
|
const needsInitialization = mutations.some(
|
|
@@ -93,7 +93,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
93
93
|
}
|
|
94
94
|
connectedCallback() {
|
|
95
95
|
super.connectedCallback();
|
|
96
|
-
["
|
|
96
|
+
["mousedown", "keydown"].forEach((event) => this.addEventListener(event, this.handleUserInteraction));
|
|
97
97
|
this.addEventListener("focusin", this.handleFocus);
|
|
98
98
|
this.addEventListener("focusout", this.handleBlur);
|
|
99
99
|
this.addEventListener("keydown", this.handleKeyDown);
|
|
@@ -121,7 +121,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
121
121
|
super.disconnectedCallback();
|
|
122
122
|
this.intersectionObserver.disconnect();
|
|
123
123
|
this.mutationObserver.disconnect();
|
|
124
|
-
["
|
|
124
|
+
["mousedown", "keydown"].forEach((event) => this.removeEventListener(event, this.handleUserInteraction));
|
|
125
125
|
this.removeEventListener("focusin", this.handleFocus);
|
|
126
126
|
this.removeEventListener("focusout", this.handleBlur);
|
|
127
127
|
this.removeEventListener("keydown", this.handleKeyDown);
|
|
@@ -497,7 +497,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
497
497
|
"block cursor-pointer bg-none border-0 rounded-full",
|
|
498
498
|
isActive ? "bg-accent" : "",
|
|
499
499
|
this.inverted ? "focus-within:focus-outline-inverted" : "focus-within:focus-outline"
|
|
500
|
-
)}" role="tab" tabindex="0" aria-selected="${isActive ? "true" : "false"}" aria-label="${this.localize.term("goToSlide", index + 1, pagesCount)}" @click="${(e) => {
|
|
500
|
+
)}" role="tab" tabindex="0" aria-selected="${isActive ? "true" : "false"}" aria-label="${this.localize.term("goToSlide", index + 1, pagesCount)}" @mousedown="${(e) => e.preventDefault()}" @click="${(e) => {
|
|
501
501
|
this.goToSlide(index * slidesPerMove);
|
|
502
502
|
this.unblockAutoplay(e, this.paginationItems[index]);
|
|
503
503
|
}}"><span class="${cx(
|
|
@@ -24152,7 +24152,7 @@
|
|
|
24152
24152
|
"package": {
|
|
24153
24153
|
"name": "@solid-design-system/components",
|
|
24154
24154
|
"description": "Solid Design System: Components",
|
|
24155
|
-
"version": "7.0.
|
|
24155
|
+
"version": "7.0.3",
|
|
24156
24156
|
"author": "Union Investment",
|
|
24157
24157
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
24158
24158
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -5,12 +5,12 @@ import "./chunks/chunk.HAL7R4WT.js";
|
|
|
5
5
|
import {
|
|
6
6
|
SdTeaser
|
|
7
7
|
} from "./chunks/chunk.ZQ6CXL6H.js";
|
|
8
|
-
import {
|
|
9
|
-
SdTeaserMedia
|
|
10
|
-
} from "./chunks/chunk.CB7PF3MZ.js";
|
|
11
8
|
import {
|
|
12
9
|
SdTextarea
|
|
13
10
|
} from "./chunks/chunk.5JPFIM5W.js";
|
|
11
|
+
import {
|
|
12
|
+
SdTeaserMedia
|
|
13
|
+
} from "./chunks/chunk.CB7PF3MZ.js";
|
|
14
14
|
import {
|
|
15
15
|
SdVideo
|
|
16
16
|
} from "./chunks/chunk.2EXNVXP2.js";
|
|
@@ -102,7 +102,7 @@ import {
|
|
|
102
102
|
} from "./chunks/chunk.DF2LZ65H.js";
|
|
103
103
|
import {
|
|
104
104
|
SdDatepicker
|
|
105
|
-
} from "./chunks/chunk.
|
|
105
|
+
} from "./chunks/chunk.UDTZN5OG.js";
|
|
106
106
|
import "./chunks/chunk.A4LR62QO.js";
|
|
107
107
|
import "./chunks/chunk.TJ2FFWLY.js";
|
|
108
108
|
import {
|
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
} from "./chunks/chunk.S2ZVBJYN.js";
|
|
126
126
|
import {
|
|
127
127
|
SdCombobox
|
|
128
|
-
} from "./chunks/chunk.
|
|
128
|
+
} from "./chunks/chunk.YKGIJFJM.js";
|
|
129
129
|
import {
|
|
130
130
|
SdTag
|
|
131
131
|
} from "./chunks/chunk.I3DVEGNB.js";
|
|
@@ -157,7 +157,7 @@ import {
|
|
|
157
157
|
import "./chunks/chunk.TFAIMBF7.js";
|
|
158
158
|
import {
|
|
159
159
|
SdCarousel
|
|
160
|
-
} from "./chunks/chunk.
|
|
160
|
+
} from "./chunks/chunk.Z4IULIBO.js";
|
|
161
161
|
import "./chunks/chunk.W2YDXTG5.js";
|
|
162
162
|
import "./chunks/chunk.6RE6UZ72.js";
|
|
163
163
|
import "./chunks/chunk.UVI5HHLF.js";
|
package/dist/web-types.json
CHANGED
|
@@ -98,7 +98,7 @@ var SdVideo = class extends SolidElement {
|
|
|
98
98
|
this.playing ? "opacity-0" : "opacity-100",
|
|
99
99
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
|
100
100
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white/75 rounded-full play-pause-transition group-focus-visible:outline-2 group-focus-visible:outline-offset-2"
|
|
101
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-7-0-
|
|
101
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-7-0-3-icon id="default-play-icon" library="_internal" name="play"></sd-7-0-3-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<div part="poster-wrapper" class="absolute left-0 top-0 w-full z-10 overflow-hidden"><slot name="poster" role="presentation"></slot></div>` : null}<slot></slot></div>`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
SdVideo.styles = [
|
|
@@ -116,7 +116,7 @@ __decorateClass([
|
|
|
116
116
|
property({ type: Boolean })
|
|
117
117
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
|
118
118
|
SdVideo = __decorateClass([
|
|
119
|
-
customElement("sd-7-0-
|
|
119
|
+
customElement("sd-7-0-3-video")
|
|
120
120
|
], SdVideo);
|
|
121
121
|
|
|
122
122
|
export {
|
|
@@ -237,7 +237,7 @@ var SdFileSelector = class extends SolidElement {
|
|
|
237
237
|
)}"><svg class="droparea__border" aria-hidden="true" preserveAspectRatio="none"><rect class="droparea__border-rect" x="0.5" y="0.5" width="calc(100% - 1px)" height="calc(100% - 1px)"/></svg><div part="droparea-icon" class="${cx(
|
|
238
238
|
"droparea__icon inline-flex h-18",
|
|
239
239
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary"
|
|
240
|
-
)}"><sd-7-0-
|
|
240
|
+
)}"><sd-7-0-3-icon class="w-full h-full" library="_internal" name="upload"></sd-7-0-3-icon></div><p part="droparea-value"><span class="${cx(
|
|
241
241
|
"block text-lg font-semibold",
|
|
242
242
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-primary"
|
|
243
243
|
)}">${this.localize.term(
|
|
@@ -251,7 +251,7 @@ var SdFileSelector = class extends SolidElement {
|
|
|
251
251
|
return html`<div part="button-wrapper" class="${cx(
|
|
252
252
|
"button__wrapper flex flex-row items-center gap-4",
|
|
253
253
|
this.disabled || this.visuallyDisabled ? "cursor-not-allowed" : "cursor-default"
|
|
254
|
-
)}"><sd-7-0-
|
|
254
|
+
)}"><sd-7-0-3-button class="button" @click="${this.handleClick}" ?disabled="${this.disabled}" ?visually-disabled="${this.visuallyDisabled}" part="button" size="${this.size}" variant="secondary" aria-labelledby="form-control-label" aria-describedby="file-status help-text invalid-message" aria-invalid="${this.showInvalidStyle ? "true" : "false"}">${buttonText}</sd-7-0-3-button>${this.renderValue()}</div>`;
|
|
255
255
|
}
|
|
256
256
|
render() {
|
|
257
257
|
const slots = {
|
|
@@ -269,7 +269,7 @@ var SdFileSelector = class extends SolidElement {
|
|
|
269
269
|
"text-sm mt-2",
|
|
270
270
|
hasHelpText ? "block" : "hidden",
|
|
271
271
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-neutral-700"
|
|
272
|
-
)}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot><input accept="${this.accept}" aria-disabled="${this.disabled || this.visuallyDisabled ? "true" : "false"}" @change="${this.handleChange}" class="input__control sr-only" capture="${ifDefined(this.capture)}" ?disabled="${this.disabled}" id="input" @invalid="${this.handleInvalid}" ?multiple="${this.multiple}" name="${ifDefined(this.name)}" ?required="${this.required}" title="${this.title}" type="file" tabindex="-1" ?webkitdirectory="${this.webkitdirectory}"></div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle ? html`<sd-7-0-
|
|
272
|
+
)}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot><input accept="${this.accept}" aria-disabled="${this.disabled || this.visuallyDisabled ? "true" : "false"}" @change="${this.handleChange}" class="input__control sr-only" capture="${ifDefined(this.capture)}" ?disabled="${this.disabled}" id="input" @invalid="${this.handleInvalid}" ?multiple="${this.multiple}" name="${ifDefined(this.name)}" ?required="${this.required}" title="${this.title}" type="file" tabindex="-1" ?webkitdirectory="${this.webkitdirectory}"></div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle ? html`<sd-7-0-3-icon part="invalid-icon" class="${cx("text-error")}" library="_internal" name="risk"></sd-7-0-3-icon>` : ""} ${this.formControlController.renderInvalidMessage(this.size)}</div>`;
|
|
273
273
|
}
|
|
274
274
|
};
|
|
275
275
|
/**
|
|
@@ -365,7 +365,7 @@ __decorateClass([
|
|
|
365
365
|
watch("value", { waitUntilFirstUpdate: true })
|
|
366
366
|
], SdFileSelector.prototype, "handleValueChange", 1);
|
|
367
367
|
SdFileSelector = __decorateClass([
|
|
368
|
-
customElement("sd-7-0-
|
|
368
|
+
customElement("sd-7-0-3-file-selector")
|
|
369
369
|
], SdFileSelector);
|
|
370
370
|
|
|
371
371
|
export {
|
|
@@ -58,16 +58,16 @@ var SdMapMarker = class extends SolidElement {
|
|
|
58
58
|
this.variant === "cluster" && this.state === "hover" && "scale-110",
|
|
59
59
|
this.variant === "cluster" && !this.notInteractive && "transition-transform duration-fast ease-in-out hover:scale-110",
|
|
60
60
|
{
|
|
61
|
-
cluster: "sd-7-0-
|
|
61
|
+
cluster: "sd-7-0-3-map-marker--cluster-color-text",
|
|
62
62
|
main: "sd-color-fill-accent",
|
|
63
|
-
place: "sd-7-0-
|
|
63
|
+
place: "sd-7-0-3-map-marker--pin-color-text"
|
|
64
64
|
}[this.variant]
|
|
65
65
|
)}"><div id="motion-wrapper" part="motion-wrapper" class="${cx(
|
|
66
66
|
"absolute inset-0 overflow-hidden pointer-events-none",
|
|
67
67
|
{
|
|
68
|
-
cluster: "sd-7-0-
|
|
69
|
-
main: "sd-7-0-
|
|
70
|
-
place: "sd-7-0-
|
|
68
|
+
cluster: "sd-7-0-3-map-marker--cluster--default-color-background group-hover:sd-7-0-3-map-marker--cluster--hover-color-background",
|
|
69
|
+
main: "sd-7-0-3-map-marker--main-color-background",
|
|
70
|
+
place: "sd-7-0-3-map-marker--pin--default-color-background"
|
|
71
71
|
}[this.variant]
|
|
72
72
|
)}" style="mask-image:${mask};-webkit-mask-image:${mask}"><div class="${cx(
|
|
73
73
|
"absolute inset-0 transition-transform ease-in-out duration-fast translate-y-full group-hover:translate-y-0 group-active:translate-y-0",
|
|
@@ -77,15 +77,15 @@ var SdMapMarker = class extends SolidElement {
|
|
|
77
77
|
{
|
|
78
78
|
cluster: "",
|
|
79
79
|
main: this.state === "active" ? "bg-accent-700" : this.state === "hover" ? "bg-accent-550" : "group-hover:bg-accent-550 group-active:bg-accent-700",
|
|
80
|
-
place: this.state === "active" || this.state === "hover" ? "sd-7-0-
|
|
80
|
+
place: this.state === "active" || this.state === "hover" ? "sd-7-0-3-map-marker--pin--hover-color-background" : "group-active:bg-primary-200"
|
|
81
81
|
}[this.variant]
|
|
82
82
|
)}"></div></div>${this.variant === "main" ? html`<div id="marker-circle" class="absolute rounded-full"></div>` : ""}</div>${marker} ${this.variant === "cluster" ? html`<div id="cluster-border" class="${cx(
|
|
83
|
-
"absolute inset-0 sd-7-0-
|
|
84
|
-
this.state === "hover" && "sd-7-0-
|
|
83
|
+
"absolute inset-0 sd-7-0-3-map-marker--cluster--default-color-background rounded-full opacity-30 hover:sd-7-0-3-map-marker--cluster--hover-color-background",
|
|
84
|
+
this.state === "hover" && "sd-7-0-3-map-marker--cluster--hover-color-background"
|
|
85
85
|
)}"></div>` : ""}</div><div id="content" part="content" class="${cx(
|
|
86
86
|
"absolute self-center pointer-events-none",
|
|
87
|
-
this.variant === "cluster" && "font-bold sd-7-0-
|
|
88
|
-
this.variant === "place" && "font-bold sd-7-0-
|
|
87
|
+
this.variant === "cluster" && "font-bold sd-7-0-3-map-marker--cluster-color-text",
|
|
88
|
+
this.variant === "place" && "font-bold sd-7-0-3-map-marker--pin-color-text"
|
|
89
89
|
)}"><slot></slot></div></${tag}>`;
|
|
90
90
|
}
|
|
91
91
|
};
|
|
@@ -119,7 +119,7 @@ __decorateClass([
|
|
|
119
119
|
property({ reflect: true })
|
|
120
120
|
], SdMapMarker.prototype, "label", 2);
|
|
121
121
|
SdMapMarker = __decorateClass([
|
|
122
|
-
customElement("sd-7-0-
|
|
122
|
+
customElement("sd-7-0-3-map-marker")
|
|
123
123
|
], SdMapMarker);
|
|
124
124
|
|
|
125
125
|
export {
|
|
@@ -211,22 +211,22 @@ var SdNotification = class extends SolidElement {
|
|
|
211
211
|
warning: "bg-warning",
|
|
212
212
|
error: "bg-error"
|
|
213
213
|
}[this.variant]
|
|
214
|
-
)}"><sd-7-0-
|
|
214
|
+
)}"><sd-7-0-3-icon name="${{
|
|
215
215
|
info: "info-circle",
|
|
216
216
|
success: "confirm-circle",
|
|
217
217
|
warning: "exclamation-circle",
|
|
218
218
|
error: "risk"
|
|
219
|
-
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-7-0-
|
|
219
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-7-0-3-icon></slot><div part="content" class="${cx(
|
|
220
220
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
221
|
-
"border-solid border-[1px] border-l-0 sd-7-0-
|
|
221
|
+
"border-solid border-[1px] border-l-0 sd-7-0-3-notification-color-border",
|
|
222
222
|
{
|
|
223
|
-
info: "sd-7-0-
|
|
224
|
-
success: "sd-7-0-
|
|
225
|
-
warning: "sd-7-0-
|
|
226
|
-
error: "sd-7-0-
|
|
223
|
+
info: "sd-7-0-3-notification--info-color-background",
|
|
224
|
+
success: "sd-7-0-3-notification--success-color-background",
|
|
225
|
+
warning: "sd-7-0-3-notification--warning-color-background",
|
|
226
|
+
error: "sd-7-0-3-notification--error-color-background"
|
|
227
227
|
}[this.variant]
|
|
228
|
-
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-7-0-
|
|
229
|
-
`absolute w-0 h-[2px] bottom-0 sd-7-0-
|
|
228
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-7-0-3-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-7-0-3-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-7-0-3-icon></sd-7-0-3-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(
|
|
229
|
+
`absolute w-0 h-[2px] bottom-0 sd-7-0-3-notification__duration-indicator-color-background z-10 animate-grow`
|
|
230
230
|
)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute border border-neutral-400"></div>` : ""}</div></div>`;
|
|
231
231
|
}
|
|
232
232
|
};
|
|
@@ -272,7 +272,7 @@ __decorateClass([
|
|
|
272
272
|
watch("duration")
|
|
273
273
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
274
274
|
SdNotification = __decorateClass([
|
|
275
|
-
customElement("sd-7-0-
|
|
275
|
+
customElement("sd-7-0-3-notification")
|
|
276
276
|
], SdNotification);
|
|
277
277
|
setDefaultAnimation("notification.show", {
|
|
278
278
|
keyframes: [
|
|
@@ -38,13 +38,13 @@ var SdBreadcrumbItem = class extends SolidElement {
|
|
|
38
38
|
requestAnimationFrame(() => this.handleCurrentChange());
|
|
39
39
|
}
|
|
40
40
|
render() {
|
|
41
|
-
return html`<sd-7-0-
|
|
41
|
+
return html`<sd-7-0-3-link part="base" href="${ifDefined(!this.current ? this.href : void 0)}" target="${this.target}" standalone class="text-nowrap"><slot></slot></sd-7-0-3-link>`;
|
|
42
42
|
}
|
|
43
43
|
};
|
|
44
44
|
SdBreadcrumbItem.styles = [
|
|
45
45
|
...SolidElement.styles,
|
|
46
46
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
47
|
-
:host{display:inline-flex;align-items:center}sd-7-0-
|
|
47
|
+
:host{display:inline-flex;align-items:center}sd-7-0-3-link::part(base){align-items:center}sd-7-0-3-link::part(icon-left){margin-right:0;display:inline-flex}:host([current]) sd-7-0-3-link::part(base){color:rgba(var(--sd-breadcrumb--current-color-text,104 104 104))}:host([current]) sd-7-0-3-link::part(label){text-decoration-line:none}`
|
|
48
48
|
];
|
|
49
49
|
__decorateClass([
|
|
50
50
|
query('[part="base"]')
|
|
@@ -62,7 +62,7 @@ __decorateClass([
|
|
|
62
62
|
watch("current")
|
|
63
63
|
], SdBreadcrumbItem.prototype, "handleCurrentChange", 1);
|
|
64
64
|
SdBreadcrumbItem = __decorateClass([
|
|
65
|
-
customElement("sd-7-0-
|
|
65
|
+
customElement("sd-7-0-3-breadcrumb-item")
|
|
66
66
|
], SdBreadcrumbItem);
|
|
67
67
|
|
|
68
68
|
export {
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<div class="flex flex-col"><label part="base" class="${cx(
|
|
121
|
-
"sd-7-0-
|
|
121
|
+
"sd-7-0-3-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
|
122
122
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
123
123
|
{
|
|
124
124
|
/* sizes, fonts */
|
|
@@ -127,7 +127,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
127
127
|
lg: "text-base"
|
|
128
128
|
}[this.size]
|
|
129
129
|
)}"><input class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" title="${this.title}" name="${this.name}" value="${ifDefined(this.value)}" .indeterminate="${live(this.indeterminate)}" .checked="${live(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.indeterminate ? "mixed" : this.checked}" aria-describedby="invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled ? "true" : "false"}" @click="${this.handleClick}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @blur="${this.handleBlur}" @focus="${this.handleFocus}"> <span id="control" part="control ${this.checked ? " control--checked" : "control--unchecked"} ${this.indeterminate ? " control--indeterminate" : ""}" class="${cx(
|
|
130
|
-
"relative flex shrink-0 items-center justify-center border sd-7-0-
|
|
130
|
+
"relative flex shrink-0 items-center justify-center border sd-7-0-3-checkbox-border-width rounded-sm h-4 w-4",
|
|
131
131
|
"transition-colors ease-in-out duration-medium group-hover:duration-fast",
|
|
132
132
|
"peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2 peer-focus-visible:outline-primary outline-transparent",
|
|
133
133
|
{
|
|
@@ -141,7 +141,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
141
141
|
disabled: "border-neutral-500",
|
|
142
142
|
visuallyDisabled: "border-neutral-500",
|
|
143
143
|
invalidIndeterminate: "border-error bg-error group-hover:bg-error-400 group-hover:border-error-400",
|
|
144
|
-
invalid: "border-error group-hover:border-error-400 sd-7-0-
|
|
144
|
+
invalid: "border-error group-hover:border-error-400 sd-7-0-3-checkbox--invalid-color-background group-hover:bg-transparent",
|
|
145
145
|
filled: "border-accent hover:border-accent-550 group-hover:border-accent-550 bg-accent group-hover:bg-accent-550",
|
|
146
146
|
default: "form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
147
147
|
}[checkboxState]
|
|
@@ -156,14 +156,14 @@ var SdCheckbox = class extends SolidElement {
|
|
|
156
156
|
disabled: "",
|
|
157
157
|
visuallyDisabled: "",
|
|
158
158
|
invalidIndeterminate: " bg-error group-hover:bg-error-400",
|
|
159
|
-
invalid: "sd-7-0-
|
|
159
|
+
invalid: "sd-7-0-3-checkbox--invalid-color-background",
|
|
160
160
|
filled: "bg-accent group-hover:bg-accent-550",
|
|
161
161
|
default: "hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
162
162
|
}[checkboxState]
|
|
163
|
-
)}"></div></div>${this.checked ? html`<sd-7-0-
|
|
163
|
+
)}"></div></div>${this.checked ? html`<sd-7-0-3-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-7-0-3-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-7-0-3-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-7-0-3-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
|
164
164
|
"select-none inline-block ml-2",
|
|
165
165
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-black"
|
|
166
|
-
)}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${cx("flex items-center gap-2", this.showInvalidStyle && "mt-2")}">${this.showInvalidStyle ? html`<sd-7-0-
|
|
166
|
+
)}"><slot></slot></span></label><div id="invalid-icon-message" part="invalid-icon-message" class="${cx("flex items-center gap-2", this.showInvalidStyle && "mt-2")}">${this.showInvalidStyle ? html`<sd-7-0-3-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-7-0-3-icon>` : ""} ${this.formControlController.renderInvalidMessage(this.size)}</div></div>`;
|
|
167
167
|
}
|
|
168
168
|
};
|
|
169
169
|
/**
|
|
@@ -223,7 +223,7 @@ __decorateClass([
|
|
|
223
223
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
224
224
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
|
225
225
|
SdCheckbox = __decorateClass([
|
|
226
|
-
customElement("sd-7-0-
|
|
226
|
+
customElement("sd-7-0-3-checkbox")
|
|
227
227
|
], SdCheckbox);
|
|
228
228
|
|
|
229
229
|
export {
|
|
@@ -22,7 +22,7 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
22
22
|
this.isTruncated = false;
|
|
23
23
|
}
|
|
24
24
|
get items() {
|
|
25
|
-
return this.querySelectorAll("sd-7-0-
|
|
25
|
+
return this.querySelectorAll("sd-7-0-3-breadcrumb-item");
|
|
26
26
|
}
|
|
27
27
|
cacheItemPositions() {
|
|
28
28
|
this.items.forEach((item) => {
|
|
@@ -67,12 +67,12 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
67
67
|
}
|
|
68
68
|
handleMobileChevron() {
|
|
69
69
|
var _a, _b, _c;
|
|
70
|
-
const icon = document.createElement("sd-7-0-
|
|
70
|
+
const icon = document.createElement("sd-7-0-3-icon");
|
|
71
71
|
icon.setAttribute("slot", "icon-left");
|
|
72
72
|
icon.setAttribute("library", "_internal");
|
|
73
73
|
icon.setAttribute("name", "chevron-left");
|
|
74
74
|
icon.setAttribute("class", "text-base me-1 lg:hidden");
|
|
75
|
-
(_c = (_b = (_a = Array.from(this.items).at(-2)) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.querySelector("sd-7-0-
|
|
75
|
+
(_c = (_b = (_a = Array.from(this.items).at(-2)) == null ? void 0 : _a.shadowRoot) == null ? void 0 : _b.querySelector("sd-7-0-3-link")) == null ? void 0 : _c.appendChild(icon);
|
|
76
76
|
}
|
|
77
77
|
handleSlotChange() {
|
|
78
78
|
this.handleMobileChevron();
|
|
@@ -87,13 +87,13 @@ var SdBreadcrumb = class extends SolidElement {
|
|
|
87
87
|
this.resizeObserver.unobserve(this);
|
|
88
88
|
}
|
|
89
89
|
render() {
|
|
90
|
-
return html`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-7-0-
|
|
90
|
+
return html`<nav part="base" class="flex items-center pb-1" aria-label="${this.label}"><sd-7-0-3-dropdown part="truncated" class="${cx(!this.isTruncated && "absolute opacity-0 pointer-events-none")}"><button slot="trigger" tabindex="${this.isTruncated ? "0" : "-1"}" aria-label="${this.localize.term("truncatedBreadcrumbs")}" aria-expanded="false" aria-haspopup="true" class="flex sd-interactive">[...]</button><ol part="truncated-dropdown" class="flex flex-col gap-4 px-2 py-3 min-w-40"></ol></sd-7-0-3-dropdown><ol part="list" class="flex items-center"><slot @slotchange="${this.handleSlotChange}"></slot></ol></nav>`;
|
|
91
91
|
}
|
|
92
92
|
};
|
|
93
93
|
SdBreadcrumb.styles = [
|
|
94
94
|
...SolidElement.styles,
|
|
95
95
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
96
|
-
:host{position:relative;display:block}::slotted(sd-7-0-
|
|
96
|
+
:host{position:relative;display:block}::slotted(sd-7-0-3-breadcrumb-item:not(:last-of-type))::after,sd-7-0-3-dropdown::after{margin-inline:var(--sd-spacing-2,.5rem);display:none;height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem);border-radius:var(--sd-radius-full,624.9375rem);background-color:rgba(var(--sd-breadcrumb__separator-color,195 195 195));--tw-content:'';content:var(--tw-content)}@media (width >= 64rem){::slotted(sd-7-0-3-breadcrumb-item:not(:last-of-type))::after,sd-7-0-3-dropdown::after{display:inline-block}}::slotted(sd-7-0-3-breadcrumb-item:nth-last-child(2)){display:flex}@media (width >= 64rem){::slotted(sd-7-0-3-breadcrumb-item:nth-last-child(2))::after{background-color:rgba(var(--sd-breadcrumb__separator--current-color,45 157 0))}}::slotted(sd-7-0-3-breadcrumb-item),sd-7-0-3-dropdown{display:none;align-items:center;font-size:var(--sd-text-sm,.875rem);line-height:var(--tw-leading,var(--text-sm--line-height,calc(1.25 / .875)))}@media (width >= 64rem){::slotted(sd-7-0-3-breadcrumb-item),sd-7-0-3-dropdown{display:flex}}@property --tw-content{syntax:"*";inherits:false;initial-value:""}`
|
|
97
97
|
];
|
|
98
98
|
__decorateClass([
|
|
99
99
|
query('[part="base"]')
|
|
@@ -117,7 +117,7 @@ __decorateClass([
|
|
|
117
117
|
state()
|
|
118
118
|
], SdBreadcrumb.prototype, "isTruncated", 2);
|
|
119
119
|
SdBreadcrumb = __decorateClass([
|
|
120
|
-
customElement("sd-7-0-
|
|
120
|
+
customElement("sd-7-0-3-breadcrumb")
|
|
121
121
|
], SdBreadcrumb);
|
|
122
122
|
|
|
123
123
|
export {
|
|
@@ -147,13 +147,13 @@ var SdDialog = class extends SolidElement {
|
|
|
147
147
|
return waitForEvent(this, "sd-after-hide");
|
|
148
148
|
}
|
|
149
149
|
render() {
|
|
150
|
-
return html`<sd-7-0-
|
|
150
|
+
return html`<sd-7-0-3-theme-listener></sd-7-0-3-theme-listener><dialog part="base" class="${cx(
|
|
151
151
|
"flex items-center justify-center p-0 m-auto bg-transparent border-none overflow-visible",
|
|
152
152
|
this.hasSlotController.test("footer") && "dialog--has-footer"
|
|
153
153
|
)}"><div part="overlay" class="fixed inset-0" @click="${() => this.requestClose("overlay")}"></div><div part="panel" class="${cx(
|
|
154
154
|
"panel-color-border border flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
155
155
|
this.open && "flex opacity-100"
|
|
156
|
-
)}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-7-0-
|
|
156
|
+
)}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-7-0-3-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-7-0-3-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-7-0-3-icon></sd-7-0-3-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="px-6 sm:px-10"><slot name="footer"></slot></footer></div></dialog>`;
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
SdDialog.styles = [
|
|
@@ -183,7 +183,7 @@ __decorateClass([
|
|
|
183
183
|
watch("open", { waitUntilFirstUpdate: true })
|
|
184
184
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
185
185
|
SdDialog = __decorateClass([
|
|
186
|
-
customElement("sd-7-0-
|
|
186
|
+
customElement("sd-7-0-3-dialog")
|
|
187
187
|
], SdDialog);
|
|
188
188
|
setDefaultAnimation("dialog.show", {
|
|
189
189
|
keyframes: [
|
|
@@ -64,9 +64,9 @@ var SdRadioButton = class extends SolidElement {
|
|
|
64
64
|
const hasIconSlot = this.hasSlotController.test("icon");
|
|
65
65
|
const buttonSizeClass = `${this.size}-${hasDefaultSlot ? "label" : "no-label"}`;
|
|
66
66
|
return html`<div part="base" role="presentation" class="relative"><button part="${`button${this.checked ? " button--checked" : ""}`}" role="radio" aria-checked="${this.checked}" class="${cx(
|
|
67
|
-
"relative text-center sd-7-0-
|
|
67
|
+
"relative text-center sd-7-0-3-radio-button-border-radius transition-all ease-in-out duration-100 items-center justify-center focus-visible:focus-outline choice-control-font-weight",
|
|
68
68
|
this.size === "sm" ? "text-sm" : "text-base",
|
|
69
|
-
this.checked && !this.disabled && !this.visuallyDisabled ? "sd-7-0-
|
|
69
|
+
this.checked && !this.disabled && !this.visuallyDisabled ? "sd-7-0-3-button--primary--default-color-background sd-7-0-3-button--primary--default-color-text hover:sd-7-0-3-button--primary--hover-color-background hover:text-primary-100" : !this.checked && (this.disabled || this.visuallyDisabled) ? "text-neutral-500 hover:cursor-not-allowed" : this.checked && (this.disabled || this.visuallyDisabled) ? "bg-neutral-400 text-white hover:cursor-not-allowed " : "bg-transparent sd-7-0-3-radio-button-color-text border-primary cursor-pointer hover:sd-7-0-3-radio-button--hover-color-background hover:sd-7-0-3-radio-button--hover-color-text",
|
|
70
70
|
hasDefaultSlot && {
|
|
71
71
|
sm: "px-3",
|
|
72
72
|
md: "px-4",
|
|
@@ -89,7 +89,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
89
89
|
SdRadioButton.styles = [
|
|
90
90
|
...SolidElement.styles,
|
|
91
91
|
css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
92
|
-
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:0;z-index:calc(10 * -1);opacity:var(--sd-opacity-0,0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:rgba(var(--sd-color-border-error,var(--sd-color-error,204 25 55)));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:46px}.lg-no-label{height:46px;padding-inline:calc(var(--sd-spacing-1,.25rem) * 5)}.md-label{height:38px}.md-no-label{height:38px;padding-inline:var(--sd-spacing-4,1rem)}.sm-label{height:30px}.sm-no-label{height:30px;padding-inline:var(--sd-spacing-3,.75rem)}:host([size=lg].sd-7-0-
|
|
92
|
+
:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;position:absolute;inset:0;z-index:calc(10 * -1);opacity:var(--sd-opacity-0,0);outline-style:var(--tw-outline-style);outline-width:1px;outline-color:rgba(var(--sd-color-border-error,var(--sd-color-error,204 25 55)));--tw-outline-style:dotted;outline-style:dotted}.lg-label{height:46px}.lg-no-label{height:46px;padding-inline:calc(var(--sd-spacing-1,.25rem) * 5)}.md-label{height:38px}.md-no-label{height:38px;padding-inline:var(--sd-spacing-4,1rem)}.sm-label{height:30px}.sm-no-label{height:30px;padding-inline:var(--sd-spacing-3,.75rem)}:host([size=lg].sd-7-0-3-button-group__button:not(.sd-7-0-3-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3,.75rem) * -1)}:host([size=md].sd-7-0-3-button-group__button:not(.sd-7-0-3-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2,.5rem) * -1)}:host([size=sm].sd-7-0-3-button-group__button:not(.sd-7-0-3-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1,.25rem) * -1)}:host(.sd-7-0-3-button-group__button--hover){z-index:20}:host(.sd-7-0-3-button-group__button--focus){z-index:30}:host(.sd-7-0-3-button-group__button[checked]){z-index:40}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}`
|
|
93
93
|
];
|
|
94
94
|
__decorateClass([
|
|
95
95
|
query(".button")
|
|
@@ -119,7 +119,7 @@ __decorateClass([
|
|
|
119
119
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
120
120
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
121
121
|
SdRadioButton = __decorateClass([
|
|
122
|
-
customElement("sd-7-0-
|
|
122
|
+
customElement("sd-7-0-3-radio-button")
|
|
123
123
|
], SdRadioButton);
|
|
124
124
|
|
|
125
125
|
export {
|
|
@@ -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-7-0-
|
|
13
|
+
const popup = document.createElement("sd-7-0-3-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");
|
|
@@ -23,7 +23,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
25
|
const styles = css`/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
26
|
-
sd-7-0-
|
|
26
|
+
sd-7-0-3-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll;border-bottom-right-radius:var(--sd-radius,.25rem);border-bottom-left-radius:var(--sd-radius,.25rem);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2,.125rem);border-top-style:var(--tw-border-style);border-top-width:0;border-color:rgba(var(--sd-color-border-primary,0 53 142));background-color:rgba(var(--sd-color-background-white,255 255 255));padding-inline:var(--sd-spacing-2,.5rem);padding-block:var(--sd-spacing-3,.75rem);--tw-shadow:var(--sd-shadow, 0px 1px 3px 0px rgba(81, 81, 81, 0.75));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-7-0-3-popup li{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms))}sd-7-0-3-popup li:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-100,246 246 246))}sd-7-0-3-popup li{list-style-type:''}sd-7-0-3-popup li mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold, 600);font-weight:var(--sd-font-weight-bold,600)}sd-7-0-3-popup li:not(:has(sd-7-0-3-option)){cursor:pointer;padding-inline:var(--sd-spacing-4,1rem);padding-block:var(--sd-spacing-3,.75rem);font-size:var(--sd-text-base,1rem);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)));color:rgba(var(--sd-color-text-black,24 24 24))}sd-7-0-3-popup li:not(:has(sd-7-0-3-option)):hover{background-color:rgba(var(--sd-color-background-neutral-200,233 233 233))}sd-7-0-3-popup li[aria-selected=true]{background-color:rgba(var(--sd-color-background-neutral-200,233 233 233))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:"*";inherits:false}`;
|
|
27
27
|
const styleSheet = new CSSStyleSheet();
|
|
28
28
|
styleSheet.replaceSync(styles);
|
|
29
29
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -36,13 +36,13 @@ sd-7-0-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:sc
|
|
|
36
36
|
}
|
|
37
37
|
input.addEventListener("open", () => {
|
|
38
38
|
var _a, _b, _c, _d, _e, _f;
|
|
39
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-7-0-
|
|
39
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-7-0-3-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
40
40
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
41
41
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
42
42
|
});
|
|
43
43
|
input.addEventListener("close", () => {
|
|
44
44
|
var _a, _b, _c, _d, _e, _f;
|
|
45
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-7-0-
|
|
45
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-7-0-3-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
46
46
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
47
47
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
48
48
|
});
|
|
@@ -228,7 +228,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
228
228
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "text-black",
|
|
229
229
|
["invalid", "activeInvalid"].includes(textareaState) && "form-control--invalid-color-background"
|
|
230
230
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
231
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-
|
|
231
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder:text-neutral-700 resize-none group-has-[sd-7-0-3-icon]:pe-8",
|
|
232
232
|
{
|
|
233
233
|
sm: isFloatingLabelActive ? "pb-1" : "py-2",
|
|
234
234
|
md: isFloatingLabelActive ? "pb-1" : "py-2",
|
|
@@ -236,7 +236,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
236
236
|
}[this.size],
|
|
237
237
|
this.disabled && "cursor-not-allowed",
|
|
238
238
|
textSize
|
|
239
|
-
)}" 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="${!this.floatingLabel || isFloatingLabelActive ? ifDefined(this.placeholder) : ""}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect === void 0 ? void 0 : this.autocorrect ? "on" : "off")}" ?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-7-0-
|
|
239
|
+
)}" 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="${!this.floatingLabel || isFloatingLabelActive ? ifDefined(this.placeholder) : ""}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect === void 0 ? void 0 : this.autocorrect ? "on" : "off")}" ?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-7-0-3-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-7-0-3-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-7-0-3-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-7-0-3-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx(
|
|
240
240
|
"text-sm mt-1",
|
|
241
241
|
hasHelpText && !this.showInvalidStyle ? "block" : "hidden",
|
|
242
242
|
this.visuallyDisabled || this.disabled ? "text-neutral-500" : "text-neutral-700"
|
|
@@ -369,7 +369,7 @@ __decorateClass([
|
|
|
369
369
|
watch(["size", "floatingLabel"])
|
|
370
370
|
], SdTextarea.prototype, "handleSizeChange", 1);
|
|
371
371
|
SdTextarea = __decorateClass([
|
|
372
|
-
customElement("sd-7-0-
|
|
372
|
+
customElement("sd-7-0-3-textarea")
|
|
373
373
|
], SdTextarea);
|
|
374
374
|
|
|
375
375
|
export {
|