@solid-design-system/components 4.6.1 → 4.6.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.ETFHHZEV.js +10 -0
- package/cdn/chunks/{chunk.NT7FQJJ7.js → chunk.FW57KKQK.js} +1 -1
- package/cdn/components/input/input.js +1 -1
- package/cdn/components/select/select.js +1 -1
- package/cdn/custom-elements.json +3 -2
- package/cdn/solid-components.bundle.js +2 -2
- package/cdn/solid-components.iife.js +2 -2
- 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.2RGRA53Z.js +1 -1
- package/cdn-versioned/chunks/chunk.2WXAPGGE.js +1 -1
- package/cdn-versioned/chunks/chunk.3AJYYY5A.js +1 -1
- package/cdn-versioned/chunks/chunk.4QV2C3W6.js +2 -2
- package/cdn-versioned/chunks/chunk.4WOKTDYF.js +4 -4
- package/cdn-versioned/chunks/chunk.5A6THIFW.js +1 -1
- package/cdn-versioned/chunks/chunk.5HMLFQRB.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6GPQREPR.js +1 -1
- package/cdn-versioned/chunks/chunk.6XPWTJEO.js +1 -1
- package/cdn-versioned/chunks/chunk.BBNAM6UU.js +1 -1
- package/cdn-versioned/chunks/chunk.BI37YYXB.js +1 -1
- package/cdn-versioned/chunks/chunk.BMD66TVO.js +1 -1
- package/cdn-versioned/chunks/chunk.CASLT6GP.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CMSO45VL.js +1 -1
- package/cdn-versioned/chunks/chunk.D46YDQPU.js +1 -1
- package/cdn-versioned/chunks/chunk.DVRUURFU.js +1 -1
- package/cdn-versioned/chunks/chunk.DYDQ2243.js +1 -1
- package/cdn-versioned/chunks/chunk.E7EFDHHO.js +2 -2
- package/cdn-versioned/chunks/chunk.EGFNRAGT.js +1 -1
- package/cdn-versioned/chunks/chunk.ETFHHZEV.js +10 -0
- package/cdn-versioned/chunks/{chunk.NT7FQJJ7.js → chunk.FW57KKQK.js} +4 -4
- package/cdn-versioned/chunks/chunk.G2OPAMOQ.js +1 -1
- package/cdn-versioned/chunks/chunk.G2ZCGQFT.js +1 -1
- package/cdn-versioned/chunks/chunk.GBEVACYL.js +1 -1
- package/cdn-versioned/chunks/chunk.GBFIM5QL.js +1 -1
- package/cdn-versioned/chunks/chunk.H3OTEEBL.js +1 -1
- package/cdn-versioned/chunks/chunk.HYGIHDOD.js +1 -1
- package/cdn-versioned/chunks/chunk.JOBOKYRD.js +1 -1
- package/cdn-versioned/chunks/chunk.KMM5EXG2.js +3 -3
- package/cdn-versioned/chunks/chunk.LXJMGZ7N.js +1 -1
- package/cdn-versioned/chunks/chunk.M5IIGUOD.js +1 -1
- package/cdn-versioned/chunks/chunk.MC3E2AR6.js +1 -1
- package/cdn-versioned/chunks/chunk.NFYYHVW5.js +1 -1
- package/cdn-versioned/chunks/chunk.OIWVJGUE.js +1 -1
- package/cdn-versioned/chunks/chunk.PQJAYX54.js +1 -1
- package/cdn-versioned/chunks/chunk.QBBA2SHL.js +1 -1
- package/cdn-versioned/chunks/chunk.SGZKGX4O.js +1 -1
- package/cdn-versioned/chunks/chunk.T2LWRJVU.js +1 -1
- package/cdn-versioned/chunks/chunk.TDREPTB5.js +1 -1
- package/cdn-versioned/chunks/chunk.THMHNOEU.js +1 -1
- package/cdn-versioned/chunks/chunk.UCYFSGWV.js +1 -1
- package/cdn-versioned/chunks/chunk.V5JHZS5I.js +1 -1
- package/cdn-versioned/chunks/chunk.W6X2C6P4.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WEGW2FI2.js +1 -1
- package/cdn-versioned/chunks/chunk.XB4NJ3KZ.js +1 -1
- package/cdn-versioned/chunks/chunk.XPPEV3KM.js +1 -1
- package/cdn-versioned/chunks/chunk.YY5DISTT.js +1 -1
- package/cdn-versioned/chunks/chunk.YZFEQRD5.js +1 -1
- package/cdn-versioned/chunks/chunk.ZE4SZUMU.js +1 -1
- package/cdn-versioned/chunks/chunk.ZFFOAXET.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-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +4 -4
- 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/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/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-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +4 -4
- package/cdn-versioned/components/select/select.js +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/textarea/textarea.d.ts +1 -1
- package/cdn-versioned/components/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +204 -203
- 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.LCW6HH3R.js → chunk.WM45G2PF.js} +1 -1
- package/dist/chunks/{chunk.5FQR2C3Z.js → chunk.YEOVGDDU.js} +1 -1
- package/dist/components/input/input.js +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/custom-elements.json +3 -2
- package/dist/solid-components.js +2 -2
- 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.2BTNPIIA.js +1 -1
- package/dist-versioned/chunks/chunk.2PUHCALR.js +5 -5
- package/dist-versioned/chunks/chunk.33Z66RGK.js +1 -1
- package/dist-versioned/chunks/chunk.4FGGIABU.js +1 -1
- package/dist-versioned/chunks/chunk.55MYJKOZ.js +1 -1
- package/dist-versioned/chunks/chunk.5WMLZS55.js +2 -2
- package/dist-versioned/chunks/chunk.6BZVWWJH.js +5 -5
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6GEEKZAO.js +2 -2
- package/dist-versioned/chunks/chunk.7LEAXICZ.js +1 -1
- package/dist-versioned/chunks/chunk.BPSZYJ7Z.js +3 -3
- package/dist-versioned/chunks/chunk.CWDRTJP6.js +4 -4
- package/dist-versioned/chunks/chunk.DTROPLWA.js +5 -5
- package/dist-versioned/chunks/chunk.DWJJNVK4.js +2 -2
- package/dist-versioned/chunks/chunk.DXNE63DE.js +5 -5
- package/dist-versioned/chunks/chunk.EEZURJVH.js +1 -1
- package/dist-versioned/chunks/chunk.FHD45LNI.js +1 -1
- package/dist-versioned/chunks/chunk.G22VBGDU.js +1 -1
- package/dist-versioned/chunks/chunk.GE2RNW2L.js +1 -1
- package/dist-versioned/chunks/chunk.HGCAGKAN.js +5 -5
- package/dist-versioned/chunks/chunk.HGTEA7ZU.js +26 -26
- package/dist-versioned/chunks/chunk.HVQFYN4Q.js +3 -3
- package/dist-versioned/chunks/chunk.IBGXHO4B.js +3 -3
- package/dist-versioned/chunks/chunk.IT5IEST5.js +1 -1
- package/dist-versioned/chunks/chunk.J46EMIEI.js +2 -2
- package/dist-versioned/chunks/chunk.JFUXDVSP.js +2 -2
- package/dist-versioned/chunks/chunk.JOE2FCYM.js +2 -2
- package/dist-versioned/chunks/chunk.KNC4IRP2.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.KZTW7NPR.js +13 -13
- package/dist-versioned/chunks/chunk.LC3HWWVO.js +1 -1
- package/dist-versioned/chunks/chunk.MONGBDKC.js +2 -2
- package/dist-versioned/chunks/chunk.NCWRKGWV.js +2 -2
- package/dist-versioned/chunks/chunk.ODT6T47Z.js +2 -2
- package/dist-versioned/chunks/chunk.OSFHS5G5.js +2 -2
- package/dist-versioned/chunks/chunk.OV6G7CEM.js +6 -6
- package/dist-versioned/chunks/chunk.PLE7R7FE.js +3 -3
- package/dist-versioned/chunks/chunk.PYP5VT7Q.js +13 -13
- package/dist-versioned/chunks/chunk.QI3HLIGL.js +6 -6
- package/dist-versioned/chunks/chunk.QTKOFCJ2.js +11 -11
- package/dist-versioned/chunks/chunk.RHXSPE3W.js +2 -2
- package/dist-versioned/chunks/chunk.RM6FOML7.js +5 -5
- package/dist-versioned/chunks/chunk.RQ7H3KYN.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UQGHMQG5.js +2 -2
- package/dist-versioned/chunks/chunk.VFE45I2T.js +2 -2
- package/dist-versioned/chunks/chunk.W4ODHTDG.js +2 -2
- package/dist-versioned/chunks/chunk.W4P6W76T.js +1 -1
- package/dist-versioned/chunks/chunk.WECFZLMT.js +9 -9
- package/dist-versioned/chunks/{chunk.LCW6HH3R.js → chunk.WM45G2PF.js} +3 -3
- package/dist-versioned/chunks/{chunk.5FQR2C3Z.js → chunk.YEOVGDDU.js} +30 -30
- package/dist-versioned/chunks/chunk.Z7LGSMQC.js +1 -1
- package/dist-versioned/chunks/chunk.ZKPN2W3G.js +1 -1
- 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-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +4 -4
- 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/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/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-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +4 -4
- 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/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +204 -203
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +2 -2
- package/cdn/chunks/chunk.YYZTCJPO.js +0 -10
- package/cdn-versioned/chunks/chunk.YYZTCJPO.js +0 -10
|
@@ -378,7 +378,7 @@ var SdInput = class extends SolidElement {
|
|
|
378
378
|
this.size === "sm" ? "h-6" : "h-8",
|
|
379
379
|
textSize,
|
|
380
380
|
this.visuallyDisabled && "cursor-not-allowed"
|
|
381
|
-
)}" 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="${ifDefined(this.type === "password" ? "off" : 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"}" @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-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}"
|
|
381
|
+
)}" 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="${ifDefined(this.type === "password" ? "off" : 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-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-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-icon class="${cx(iconColor, iconSize)}" library="system" name="eye"></sd-icon></slot>` : html`<slot name="hide-password-icon"><sd-icon class="${cx(iconColor, iconSize)}" library="system" name="eye-crossed-out"></sd-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-icon>` : ""} ${this.type === "time" ? html`<sd-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-icon class="${cx(iconColor, iconSize)}" library="system" name="magnifying-glass" label="${this.localize.term("search")}"></sd-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-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-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-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-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-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()}`;
|
|
382
382
|
}
|
|
383
383
|
};
|
|
384
384
|
/**
|
|
@@ -731,7 +731,7 @@ __decorateClass([
|
|
|
731
731
|
state()
|
|
732
732
|
], SdSelect.prototype, "currentPlacement", 2);
|
|
733
733
|
__decorateClass([
|
|
734
|
-
property({ type: Boolean })
|
|
734
|
+
property({ type: Boolean, reflect: true })
|
|
735
735
|
], SdSelect.prototype, "clearable", 2);
|
|
736
736
|
__decorateClass([
|
|
737
737
|
property({ type: Boolean, reflect: true })
|
|
@@ -12753,7 +12753,8 @@
|
|
|
12753
12753
|
},
|
|
12754
12754
|
"default": "false",
|
|
12755
12755
|
"description": "Adds a clear button when the select is not empty.",
|
|
12756
|
-
"attribute": "clearable"
|
|
12756
|
+
"attribute": "clearable",
|
|
12757
|
+
"reflects": true
|
|
12757
12758
|
},
|
|
12758
12759
|
{
|
|
12759
12760
|
"kind": "field",
|
|
@@ -17138,7 +17139,7 @@
|
|
|
17138
17139
|
"package": {
|
|
17139
17140
|
"name": "@solid-design-system/components",
|
|
17140
17141
|
"description": "Solid Design System: Components",
|
|
17141
|
-
"version": "4.6.
|
|
17142
|
+
"version": "4.6.3",
|
|
17142
17143
|
"author": "Union Investment",
|
|
17143
17144
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
17144
17145
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "./chunks/chunk.BPSZYJ7Z.js";
|
|
26
26
|
import {
|
|
27
27
|
SdSelect
|
|
28
|
-
} from "./chunks/chunk.
|
|
28
|
+
} from "./chunks/chunk.YEOVGDDU.js";
|
|
29
29
|
import {
|
|
30
30
|
SdStep
|
|
31
31
|
} from "./chunks/chunk.MONGBDKC.js";
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
} from "./chunks/chunk.LC3HWWVO.js";
|
|
68
68
|
import {
|
|
69
69
|
SdInput
|
|
70
|
-
} from "./chunks/chunk.
|
|
70
|
+
} from "./chunks/chunk.WM45G2PF.js";
|
|
71
71
|
import {
|
|
72
72
|
SdLink
|
|
73
73
|
} from "./chunks/chunk.KNC4IRP2.js";
|
package/dist/web-types.json
CHANGED
|
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
|
|
|
32
32
|
if (item.type === 'checkbox') {
|
|
33
33
|
item.checked = !item.checked;
|
|
34
34
|
}
|
|
35
|
-
this.emit('sd-4-6-
|
|
35
|
+
this.emit('sd-4-6-3-select', { detail: { item } });
|
|
36
36
|
}
|
|
37
37
|
handleKeyDown(event) {
|
|
38
38
|
if (event.key === 'Enter') {
|
|
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
74
74
|
})}
|
|
75
75
|
>
|
|
76
76
|
<span part="checked-icon" class="menu-item__check">
|
|
77
|
-
<sd-4-6-
|
|
77
|
+
<sd-4-6-3-icon name="check" library="system" aria-hidden="true"></sd-4-6-3-icon>
|
|
78
78
|
</span>
|
|
79
79
|
|
|
80
80
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
84
84
|
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
85
85
|
|
|
86
86
|
<span class="menu-item__chevron">
|
|
87
|
-
<sd-4-6-
|
|
87
|
+
<sd-4-6-3-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-6-3-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -323,7 +323,7 @@ __decorateClass([
|
|
|
323
323
|
property({ attribute: "auto-size-padding", type: Number })
|
|
324
324
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
325
325
|
SdPopup = __decorateClass([
|
|
326
|
-
customElement("sd-4-6-
|
|
326
|
+
customElement("sd-4-6-3-popup")
|
|
327
327
|
], SdPopup);
|
|
328
328
|
|
|
329
329
|
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-3-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-3-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-4-6-
|
|
45
|
+
customElements.whenDefined("sd-4-6-3-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-3-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-6-3-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-6-3-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-6-3-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-6-3-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-6-3-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-3-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|
|
@@ -211,7 +211,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
211
211
|
"flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none",
|
|
212
212
|
this.disabled && "cursor-not-allowed",
|
|
213
213
|
textSize
|
|
214
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-4-6-
|
|
214
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-4-6-3-icon class="${cx("text-error absolute right-4 bg-white group-hover:bg-neutral-200", iconSizeMarginLeft)}" library="system" name="risk" part="invalid-icon"></sd-4-6-3-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-6-3-icon class="${cx("text-success absolute right-4 bg-white group-hover:bg-neutral-200", iconSizeMarginLeft)}" library="system" name="status-check" part="valid-icon"></sd-4-6-3-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
215
215
|
}
|
|
216
216
|
};
|
|
217
217
|
/**
|
|
@@ -325,7 +325,7 @@ __decorateClass([
|
|
|
325
325
|
watch("value", { waitUntilFirstUpdate: true })
|
|
326
326
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
327
327
|
SdTextarea = __decorateClass([
|
|
328
|
-
customElement("sd-4-6-
|
|
328
|
+
customElement("sd-4-6-3-textarea")
|
|
329
329
|
], SdTextarea);
|
|
330
330
|
|
|
331
331
|
export {
|
|
@@ -192,15 +192,15 @@ var SdTooltip = class extends SolidElement {
|
|
|
192
192
|
render() {
|
|
193
193
|
const isStart = this.placement.endsWith("-start");
|
|
194
194
|
const isEnd = this.placement.endsWith("-end");
|
|
195
|
-
return html`<sd-4-6-
|
|
195
|
+
return html`<sd-4-6-3-popup part="base" exportparts="
|
|
196
196
|
popup:base__popup,
|
|
197
197
|
arrow:base__arrow
|
|
198
|
-
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button aria-describedby="tooltip" class="flex sd-interactive rounded-full" ?disabled="${this.disabled}"><sd-4-6-
|
|
198
|
+
" class="${cx(this.open && "tooltip--open")}" placement="${this.placement}" distance="10" skidding="${{ start: 2, end: -2, default: 0 }[isStart ? "start" : isEnd ? "end" : "default"] * (this.size === "sm" ? -1 : 1)}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift arrow auto-size="vertical" arrow-padding="0"><slot slot="anchor" class="${cx(this.size === "lg" ? "text-xl" : "text-base")}"><button aria-describedby="tooltip" class="flex sd-interactive rounded-full" ?disabled="${this.disabled}"><sd-4-6-3-icon library="system" name="info-circle" label="Tooltip" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-4-6-3-icon></button></slot><slot name="content" part="body" id="tooltip" class="bg-primary text-white py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="Tooltip" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-4-6-3-popup>`;
|
|
199
199
|
}
|
|
200
200
|
};
|
|
201
201
|
SdTooltip.styles = [
|
|
202
202
|
...SolidElement.styles,
|
|
203
|
-
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-6-
|
|
203
|
+
css`:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-4-6-3-popup{--arrow-color:rgb(var(--sd-color-primary,0 53 142)/1);--arrow-size:10px}sd-4-6-3-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-6-3-popup::part(arrow){--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-6-3-popup[placement^=top]::part(popup){transform-origin:bottom}sd-4-6-3-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){max-height:var(--auto-size-available-height)!important;max-width:var(--auto-size-available-width)!important;overflow:auto}`
|
|
204
204
|
];
|
|
205
205
|
__decorateClass([
|
|
206
206
|
query("slot:not([name])")
|
|
@@ -209,7 +209,7 @@ __decorateClass([
|
|
|
209
209
|
query("#tooltip")
|
|
210
210
|
], SdTooltip.prototype, "body", 2);
|
|
211
211
|
__decorateClass([
|
|
212
|
-
query("sd-4-6-
|
|
212
|
+
query("sd-4-6-3-popup")
|
|
213
213
|
], SdTooltip.prototype, "popup", 2);
|
|
214
214
|
__decorateClass([
|
|
215
215
|
property({ type: String, reflect: true })
|
|
@@ -242,7 +242,7 @@ __decorateClass([
|
|
|
242
242
|
watch("disabled")
|
|
243
243
|
], SdTooltip.prototype, "handleDisabledChange", 1);
|
|
244
244
|
SdTooltip = __decorateClass([
|
|
245
|
-
customElement("sd-4-6-
|
|
245
|
+
customElement("sd-4-6-3-tooltip")
|
|
246
246
|
], SdTooltip);
|
|
247
247
|
setDefaultAnimation("tooltip.show", {
|
|
248
248
|
keyframes: [
|
|
@@ -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-4-6-
|
|
13
|
+
const popup = document.createElement("sd-4-6-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");
|
|
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
22
22
|
popup.anchor = sdInput;
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
|
-
const styles = css`sd-4-6-
|
|
25
|
+
const styles = css`sd-4-6-3-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-6-3-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-6-3-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-4-6-3-popup li{list-style-type:""}sd-4-6-3-popup li mark{background-color:transparent;font-weight:700}sd-4-6-3-popup li:not(:has(sd-4-6-3-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-4-6-3-popup li:not(:has(sd-4-6-3-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-4-6-3-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
|
|
26
26
|
const styleSheet = new CSSStyleSheet();
|
|
27
27
|
styleSheet.replaceSync(styles);
|
|
28
28
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
35
35
|
}
|
|
36
36
|
input.addEventListener("open", () => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f;
|
|
38
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-6-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-6-3-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
39
39
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
40
40
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
41
41
|
});
|
|
42
42
|
input.addEventListener("close", () => {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-6-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-6-3-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
45
45
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
46
46
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
47
47
|
});
|
|
@@ -85,7 +85,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
85
85
|
};
|
|
86
86
|
SdRadioButton.styles = [
|
|
87
87
|
...SolidElement.styles,
|
|
88
|
-
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-6-
|
|
88
|
+
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-4-6-3-button-group__button--first:not(.sd-4-6-3-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-4-6-3-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-4-6-3-button-group__button--last:not(.sd-4-6-3-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-4-6-3-button-group__button:not(.sd-4-6-3-button-group__button--first)){margin-inline-start:-1px}:host(.sd-4-6-3-button-group__button--hover){z-index:10}:host(.sd-4-6-3-button-group__button--focus),:host(.sd-4-6-3-button-group__button[checked]){z-index:20}`
|
|
89
89
|
];
|
|
90
90
|
__decorateClass([
|
|
91
91
|
query(".button")
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
116
116
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
117
117
|
SdRadioButton = __decorateClass([
|
|
118
|
-
customElement("sd-4-6-
|
|
118
|
+
customElement("sd-4-6-3-radio-button")
|
|
119
119
|
], SdRadioButton);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -131,12 +131,12 @@ var SdScrollable = class extends SolidElement {
|
|
|
131
131
|
this.orientation === "auto" && "scroll-auto overflow-auto",
|
|
132
132
|
this.scrollbars ? "show-scrollbars" : "hide-scrollbars",
|
|
133
133
|
this.inset ? "p-4" : ""
|
|
134
|
-
)}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-6-
|
|
134
|
+
)}" @scroll="${this.updateScrollIndicatorVisibility}" tabindex="0"><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="button-left" class="absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("left", e)}"><slot name="icon-start"><sd-4-6-3-icon library="system" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-4-6-3-icon></slot></button></div>` : null} ${this.canScroll.right ? html`<div part="button-right" class="absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("right", e)}"><slot name="icon-end"><sd-4-6-3-icon library="system" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-4-6-3-icon></slot></button></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="button-top" class="absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8"><button part="button-start" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("up", e)}"><slot name="icon-start"><sd-4-6-3-icon library="system" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-4-6-3-icon></slot></button></div>` : null} ${this.canScroll.down ? html`<div part="button-bottom" class="absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8"><button part="button-end" class="${cx(scrollButtonClasses)}" @click="${(e) => this.handleScroll("down", e)}"><slot name="icon-end"><sd-4-6-3-icon library="system" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-4-6-3-icon></slot></button></div>` : null}` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`${this.canScroll.left ? html`<div part="shadow-left" class="${scrollShadowClasses} left top-0 left-0 w-[6px] h-full"></div>` : null} ${this.canScroll.right ? html`<div part="shadow-right" class="${scrollShadowClasses} right top-0 right-0 w-[6px] h-full"></div>` : null}` : null} ${this.isScrollVerticalEnabled ? html`${this.canScroll.up ? html`<div part="shadow-top" class="${scrollShadowClasses} top top-0 left-0 w-full h-[6px]"></div>` : null} ${this.canScroll.down ? html`<div part="shadow-bottom" class="${scrollShadowClasses} bottom bottom-0 left-0 w-full h-[6px]"></div>` : null}` : null}` : null}`;
|
|
135
135
|
}
|
|
136
136
|
};
|
|
137
137
|
SdScrollable.styles = [
|
|
138
138
|
...SolidElement.styles,
|
|
139
|
-
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-6-
|
|
139
|
+
css`:host{--gradient-color:hsla(0,0%,100%,0);--gradient:var(--gradient-color) 0%,#fff 80%,#fff 100%;display:flex;overflow:hidden;position:relative}.hide-scrollbars{scrollbar-width:none;-ms-overflow-style:none}.hide-scrollbars::-webkit-scrollbar{display:none}.scroll-container::-webkit-scrollbar-thumb{background-color:transparent}.scroll-container:hover::-webkit-scrollbar-thumb{background:var(--background-neutral-400,#c3c3c3);border-radius:var(--sd-border-radius-sm,.125rem)}.scroll-container::-webkit-scrollbar{height:var(--sd-spacing-1,.25rem);width:var(--sd-spacing-1,.25rem)}.scroll-auto{overflow:auto}[part=button-left]{background:linear-gradient(270deg,var(--gradient))}[part=button-right]{background:linear-gradient(90deg,var(--gradient))}[part=button-top]{background:linear-gradient(0deg,var(--gradient))}[part=button-bottom]{background:linear-gradient(180deg,var(--gradient))}[part=shadow-left]{background:linear-gradient(270deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-right]{background:linear-gradient(90deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-top]{background:linear-gradient(0deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}[part=shadow-bottom]{background:linear-gradient(180deg,hsla(0,0%,9%,0) 50%,hsla(0,0%,9%,.4))}.sd-4-6-3-icon--top{align-self:flex-start}.sd-4-6-3-icon--down{align-self:flex-end}`
|
|
140
140
|
];
|
|
141
141
|
__decorateClass([
|
|
142
142
|
property({ type: String, reflect: true })
|
|
@@ -169,7 +169,7 @@ __decorateClass([
|
|
|
169
169
|
state()
|
|
170
170
|
], SdScrollable.prototype, "isKeyboardNavigation", 2);
|
|
171
171
|
SdScrollable = __decorateClass([
|
|
172
|
-
customElement("sd-4-6-
|
|
172
|
+
customElement("sd-4-6-3-scrollable")
|
|
173
173
|
], SdScrollable);
|
|
174
174
|
|
|
175
175
|
export {
|
|
@@ -202,7 +202,7 @@ var SdButton = class extends SolidElement {
|
|
|
202
202
|
md: "ml-2",
|
|
203
203
|
lg: "ml-2"
|
|
204
204
|
}[this.size]
|
|
205
|
-
)}"></slot>${this.loading ? html`<sd-4-6-
|
|
205
|
+
)}"></slot>${this.loading ? html`<sd-4-6-3-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-6-3-spinner>` : ""}</${tag}>`;
|
|
206
206
|
}
|
|
207
207
|
};
|
|
208
208
|
/**
|
|
@@ -210,13 +210,13 @@ var SdButton = class extends SolidElement {
|
|
|
210
210
|
*/
|
|
211
211
|
SdButton.styles = [
|
|
212
212
|
...SolidElement.styles,
|
|
213
|
-
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-6-
|
|
213
|
+
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-6-3-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-6-3-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-4-6-3-icon),sd-4-6-3-spinner{font-size:calc(var(--tw-varspacing)/2)}`
|
|
214
214
|
];
|
|
215
215
|
__decorateClass([
|
|
216
216
|
query("a, button")
|
|
217
217
|
], SdButton.prototype, "button", 2);
|
|
218
218
|
__decorateClass([
|
|
219
|
-
queryAssignedElements({ selector: "sd-4-6-
|
|
219
|
+
queryAssignedElements({ selector: "sd-4-6-3-icon" })
|
|
220
220
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
221
221
|
__decorateClass([
|
|
222
222
|
state()
|
|
@@ -282,7 +282,7 @@ __decorateClass([
|
|
|
282
282
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
283
283
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
284
284
|
SdButton = __decorateClass([
|
|
285
|
-
customElement("sd-4-6-
|
|
285
|
+
customElement("sd-4-6-3-button")
|
|
286
286
|
], SdButton);
|
|
287
287
|
|
|
288
288
|
export {
|
|
@@ -112,16 +112,16 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
112
112
|
isAccordion ? "grow" : "w-full",
|
|
113
113
|
slots["description"] || this.separated ? "pb-1" : horizontalPaddingBottom,
|
|
114
114
|
this.calculatePaddingX
|
|
115
|
-
)}">${this.divider && this.vertical ? html`<sd-4-6-
|
|
115
|
+
)}">${this.divider && this.vertical ? html`<sd-4-6-3-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-4-6-3-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated ? html`<a class="${cx(
|
|
116
116
|
"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]",
|
|
117
117
|
!slots["description"] && "py-4"
|
|
118
|
-
)}" 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="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-6-
|
|
118
|
+
)}" 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="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-6-3-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
119
119
|
"mr-4 h-6 w-6 transition-all",
|
|
120
120
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
121
|
-
)}"></sd-4-6-
|
|
121
|
+
)}"></sd-4-6-3-icon></button>` : html`<sd-4-6-3-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
122
122
|
"h-6 w-6 ml-2 transition-all",
|
|
123
123
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
124
|
-
)}"></sd-4-6-
|
|
124
|
+
)}"></sd-4-6-3-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
|
|
125
125
|
"inline-block text-sm text-left text-black",
|
|
126
126
|
isAccordion || this.separated ? "grow" : "w-full",
|
|
127
127
|
this.separated ? "px-4" : this.calculatePaddingX,
|
|
@@ -186,7 +186,7 @@ __decorateClass([
|
|
|
186
186
|
property({ type: Boolean, reflect: true })
|
|
187
187
|
], SdNavigationItem.prototype, "separated", 2);
|
|
188
188
|
SdNavigationItem = __decorateClass([
|
|
189
|
-
customElement("sd-4-6-
|
|
189
|
+
customElement("sd-4-6-3-navigation-item")
|
|
190
190
|
], SdNavigationItem);
|
|
191
191
|
|
|
192
192
|
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-3-tab-${this.attrId}`;
|
|
25
25
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
26
26
|
this.variant = "default";
|
|
27
27
|
this.active = false;
|
|
@@ -91,7 +91,7 @@ __decorateClass([
|
|
|
91
91
|
watch("disabled")
|
|
92
92
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
93
93
|
SdTab = __decorateClass([
|
|
94
|
-
customElement("sd-4-6-
|
|
94
|
+
customElement("sd-4-6-3-tab")
|
|
95
95
|
], SdTab);
|
|
96
96
|
|
|
97
97
|
export {
|
|
@@ -85,7 +85,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
85
85
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
86
86
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
87
87
|
}[this.frontVariant]
|
|
88
|
-
)}"></div><sd-4-6-
|
|
88
|
+
)}"></div><sd-4-6-3-button part="front-button" size="md" variant="${{
|
|
89
89
|
primary: "tertiary",
|
|
90
90
|
"primary-100": "tertiary",
|
|
91
91
|
"gradient-light": "primary",
|
|
@@ -95,7 +95,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
95
95
|
"primary-100": false,
|
|
96
96
|
"gradient-light": true,
|
|
97
97
|
"gradient-dark": true
|
|
98
|
-
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-4-6-
|
|
98
|
+
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-4-6-3-icon library="system" name="reload" label="Flip to Back"></sd-4-6-3-icon></sd-4-6-3-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide === "front"}" inert="${ifDefined(this.activeSide === "front" || void 0)}" class="${cx(
|
|
99
99
|
"flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out",
|
|
100
100
|
"flex focus-visible:focus-outline",
|
|
101
101
|
"absolute top-0 left-0 w-full h-full justify-end text-left",
|
|
@@ -128,7 +128,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
128
128
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
129
129
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
130
130
|
}[this.backVariant]
|
|
131
|
-
)}"></div><sd-4-6-
|
|
131
|
+
)}"></div><sd-4-6-3-button size="md" part="back-button" variant="${{
|
|
132
132
|
primary: "tertiary",
|
|
133
133
|
"primary-100": "tertiary",
|
|
134
134
|
"gradient-light": "primary",
|
|
@@ -138,7 +138,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
138
138
|
"primary-100": false,
|
|
139
139
|
"gradient-light": true,
|
|
140
140
|
"gradient-dark": true
|
|
141
|
-
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-4-6-
|
|
141
|
+
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-4-6-3-icon library="system" name="reload" label="Flip to Front"></sd-4-6-3-icon></sd-4-6-3-button></div></div>`;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
/**
|
|
@@ -170,7 +170,7 @@ __decorateClass([
|
|
|
170
170
|
state()
|
|
171
171
|
], SdFlipcard.prototype, "activeSide", 2);
|
|
172
172
|
SdFlipcard = __decorateClass([
|
|
173
|
-
customElement("sd-4-6-
|
|
173
|
+
customElement("sd-4-6-3-flipcard")
|
|
174
174
|
], SdFlipcard);
|
|
175
175
|
|
|
176
176
|
export {
|
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
|
26
26
|
];
|
|
27
27
|
SdCarouselItem = __decorateClass([
|
|
28
|
-
customElement("sd-4-6-
|
|
28
|
+
customElement("sd-4-6-3-carousel-item")
|
|
29
29
|
], SdCarouselItem);
|
|
30
30
|
|
|
31
31
|
export {
|
|
@@ -208,7 +208,7 @@ __decorateClass([
|
|
|
208
208
|
watch("playbackRate")
|
|
209
209
|
], SdAnimation.prototype, "handlePlaybackRateChange", 1);
|
|
210
210
|
SdAnimation = __decorateClass([
|
|
211
|
-
customElement("sd-4-6-
|
|
211
|
+
customElement("sd-4-6-3-animation")
|
|
212
212
|
], SdAnimation);
|
|
213
213
|
|
|
214
214
|
export {
|