@solid-design-system/components 6.22.0 → 6.22.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/chunk.23WKPZET.js +1 -0
- package/cdn/chunks/chunk.AHMUV4CN.js +2 -0
- package/cdn/components/datepicker/datepicker-converters.d.ts +12 -0
- package/cdn/components/datepicker/datepicker-converters.js +1 -0
- package/cdn/components/datepicker/datepicker.js +1 -1
- package/cdn/custom-elements.json +1767 -1483
- package/cdn/solid-components.bundle.js +28 -28
- package/cdn/solid-components.iife.js +27 -27
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +159 -159
- package/cdn/web-types.json +642 -564
- package/cdn-versioned/chunks/chunk.23WKPZET.js +1 -0
- package/cdn-versioned/chunks/chunk.2IFJTWWI.js +2 -2
- package/cdn-versioned/chunks/chunk.2Q64C7PW.js +2 -2
- package/cdn-versioned/chunks/chunk.2SEVUMWS.js +2 -2
- package/cdn-versioned/chunks/chunk.2UC7ID2H.js +2 -2
- package/cdn-versioned/chunks/chunk.3UAQXMAF.js +2 -2
- package/cdn-versioned/chunks/chunk.4LLZ2ILW.js +2 -2
- package/cdn-versioned/chunks/chunk.4OE2TU3Y.js +2 -2
- package/cdn-versioned/chunks/chunk.5CJ4UEYT.js +2 -2
- package/cdn-versioned/chunks/chunk.6HSHV3NX.js +3 -3
- package/cdn-versioned/chunks/chunk.6PB7EWTQ.js +1 -1
- package/cdn-versioned/chunks/chunk.7DKBOZJU.js +2 -2
- package/cdn-versioned/chunks/chunk.7LZHW3Q5.js +1 -1
- package/cdn-versioned/chunks/chunk.AGTHQN5U.js +2 -2
- package/cdn-versioned/chunks/chunk.AHMUV4CN.js +2 -0
- package/cdn-versioned/chunks/chunk.AO2OON4N.js +5 -5
- package/cdn-versioned/chunks/chunk.APOMDHNP.js +1 -1
- package/cdn-versioned/chunks/chunk.BOWHXMXY.js +2 -2
- package/cdn-versioned/chunks/chunk.BS3GY6J5.js +5 -5
- package/cdn-versioned/chunks/chunk.CW7N5I3S.js +2 -2
- package/cdn-versioned/chunks/chunk.CXFLSM56.js +2 -2
- package/cdn-versioned/chunks/chunk.D4SBGWDF.js +2 -2
- package/cdn-versioned/chunks/chunk.DDU5T7TW.js +2 -2
- package/cdn-versioned/chunks/chunk.DSKB3SEU.js +1 -1
- package/cdn-versioned/chunks/chunk.E3RBLJOD.js +2 -2
- package/cdn-versioned/chunks/chunk.EBMYXBFR.js +2 -2
- package/cdn-versioned/chunks/chunk.EDP2BY4Q.js +1 -1
- package/cdn-versioned/chunks/chunk.ENE5YY4Y.js +9 -9
- package/cdn-versioned/chunks/chunk.EPVQ4QAS.js +2 -2
- package/cdn-versioned/chunks/chunk.ES62UWOT.js +2 -2
- package/cdn-versioned/chunks/chunk.FEXFNF27.js +2 -2
- package/cdn-versioned/chunks/chunk.GXY2VZH2.js +2 -2
- package/cdn-versioned/chunks/chunk.ICWUJ66F.js +2 -2
- package/cdn-versioned/chunks/chunk.J6KIY4UA.js +2 -2
- package/cdn-versioned/chunks/chunk.JFN54TP3.js +3 -3
- package/cdn-versioned/chunks/chunk.JHDF277H.js +1 -1
- package/cdn-versioned/chunks/chunk.JQW6SYSE.js +2 -2
- package/cdn-versioned/chunks/chunk.L7BTB6LI.js +2 -2
- package/cdn-versioned/chunks/chunk.LH5RKLIB.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MC7A5NMS.js +2 -2
- package/cdn-versioned/chunks/chunk.MLNVOR7M.js +2 -2
- package/cdn-versioned/chunks/chunk.OJGPDUWV.js +2 -2
- package/cdn-versioned/chunks/chunk.OMRKG6ND.js +2 -2
- package/cdn-versioned/chunks/chunk.POBQCTPL.js +3 -3
- package/cdn-versioned/chunks/chunk.PXFYL6KY.js +2 -2
- package/cdn-versioned/chunks/chunk.Q7E6F2HW.js +1 -1
- package/cdn-versioned/chunks/chunk.R6ZEBMRH.js +2 -2
- package/cdn-versioned/chunks/chunk.RKMV24FY.js +2 -2
- package/cdn-versioned/chunks/chunk.RRIIBUZG.js +2 -2
- package/cdn-versioned/chunks/chunk.S6JJWCTI.js +2 -2
- package/cdn-versioned/chunks/chunk.SCHC5WSJ.js +1 -1
- package/cdn-versioned/chunks/chunk.SOQN353H.js +2 -2
- package/cdn-versioned/chunks/chunk.UTS7NBOJ.js +1 -1
- package/cdn-versioned/chunks/chunk.UTXIVBR2.js +1 -1
- package/cdn-versioned/chunks/chunk.VFMCDN7W.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WHOK4XT7.js +2 -2
- package/cdn-versioned/chunks/chunk.WIHSK6PN.js +2 -2
- package/cdn-versioned/chunks/chunk.WYUWPKVY.js +2 -2
- package/cdn-versioned/chunks/chunk.XICZDG3E.js +2 -2
- package/cdn-versioned/chunks/chunk.XJAJO727.js +1 -1
- package/cdn-versioned/chunks/chunk.YAANK3U6.js +2 -2
- package/cdn-versioned/chunks/chunk.ZIC3N6YJ.js +2 -2
- package/cdn-versioned/chunks/chunk.ZSCCD7CU.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-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/datepicker/datepicker-converters.d.ts +12 -0
- package/cdn-versioned/components/datepicker/datepicker-converters.js +1 -0
- 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/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/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/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/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 +1987 -1703
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +88 -88
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +88 -88
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +253 -253
- package/cdn-versioned/web-types.json +777 -699
- package/dist/chunks/{chunk.C7RAFK2U.js → chunk.LQBN4KWJ.js} +5 -78
- package/dist/chunks/chunk.TJ2FFWLY.js +85 -0
- package/dist/components/datepicker/datepicker-converters.d.ts +12 -0
- package/dist/components/datepicker/datepicker-converters.js +11 -0
- package/dist/components/datepicker/datepicker.js +2 -1
- package/dist/custom-elements.json +1767 -1483
- package/dist/solid-components.js +24 -23
- package/dist/vscode.html-custom-data.json +159 -159
- package/dist/web-types.json +642 -564
- package/dist-versioned/chunks/chunk.2PFOTMKD.js +33 -33
- package/dist-versioned/chunks/chunk.2XO44VKK.js +2 -2
- package/dist-versioned/chunks/chunk.3MUWC7ZQ.js +1 -1
- package/dist-versioned/chunks/chunk.3NFW33UT.js +5 -5
- package/dist-versioned/chunks/chunk.3P3ZLPSI.js +5 -5
- package/dist-versioned/chunks/chunk.4CYDINDB.js +2 -2
- package/dist-versioned/chunks/chunk.5NTF57TJ.js +1 -1
- package/dist-versioned/chunks/chunk.6XTGETVW.js +11 -11
- package/dist-versioned/chunks/chunk.7AGLFNJK.js +3 -3
- package/dist-versioned/chunks/chunk.7BSLFKU5.js +10 -10
- package/dist-versioned/chunks/chunk.7BT4WAQS.js +3 -3
- package/dist-versioned/chunks/chunk.AGSJ3MWY.js +2 -2
- package/dist-versioned/chunks/chunk.AJ6IUEXD.js +5 -5
- package/dist-versioned/chunks/chunk.AQ5RLVDO.js +1 -1
- package/dist-versioned/chunks/chunk.B4TM2WST.js +5 -5
- package/dist-versioned/chunks/chunk.BR5PPGBX.js +7 -7
- package/dist-versioned/chunks/chunk.BS2ZPKOG.js +11 -11
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.CMHJNHR6.js +25 -25
- package/dist-versioned/chunks/chunk.D2XKPNOP.js +6 -6
- package/dist-versioned/chunks/chunk.DG6HQUYC.js +10 -10
- package/dist-versioned/chunks/chunk.DYG4FWRG.js +2 -2
- package/dist-versioned/chunks/chunk.EAJ3CM6N.js +4 -4
- package/dist-versioned/chunks/chunk.EDHEUF6G.js +25 -25
- package/dist-versioned/chunks/chunk.EEEIIJMB.js +2 -2
- package/dist-versioned/chunks/chunk.EXZ6VFXN.js +1 -1
- package/dist-versioned/chunks/chunk.FRLOS6P7.js +2 -2
- package/dist-versioned/chunks/chunk.G5R47M2B.js +6 -6
- package/dist-versioned/chunks/chunk.GFHNKXRG.js +8 -8
- package/dist-versioned/chunks/chunk.H3SVUQP3.js +5 -5
- package/dist-versioned/chunks/chunk.H53WQBDK.js +1 -1
- package/dist-versioned/chunks/chunk.HDGNHXRQ.js +11 -11
- package/dist-versioned/chunks/chunk.I4T5RT5D.js +4 -4
- package/dist-versioned/chunks/chunk.J3RX4Y6S.js +2 -2
- package/dist-versioned/chunks/chunk.J5A33XU2.js +4 -4
- package/dist-versioned/chunks/chunk.JQBYEVD6.js +3 -3
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KVKO4ZLN.js +10 -10
- package/dist-versioned/chunks/chunk.KWD3E7PP.js +6 -6
- package/dist-versioned/chunks/{chunk.C7RAFK2U.js → chunk.LQBN4KWJ.js} +15 -88
- package/dist-versioned/chunks/chunk.M4O3MDU3.js +13 -13
- package/dist-versioned/chunks/chunk.MLDYTATL.js +7 -7
- package/dist-versioned/chunks/chunk.NWI2U6GV.js +4 -4
- package/dist-versioned/chunks/chunk.POKSS32D.js +2 -2
- package/dist-versioned/chunks/chunk.RMSZCVAI.js +5 -5
- package/dist-versioned/chunks/chunk.RS7M5R4R.js +5 -5
- package/dist-versioned/chunks/chunk.RU5GF26P.js +5 -5
- package/dist-versioned/chunks/chunk.SB4P52KM.js +1 -1
- package/dist-versioned/chunks/chunk.SLUGXG7E.js +2 -2
- package/dist-versioned/chunks/chunk.TE6LK5OI.js +14 -14
- package/dist-versioned/chunks/chunk.TJ2FFWLY.js +85 -0
- package/dist-versioned/chunks/chunk.TJI3UYUJ.js +5 -5
- package/dist-versioned/chunks/chunk.TQGIML36.js +2 -2
- package/dist-versioned/chunks/chunk.UF4HXV3V.js +10 -10
- package/dist-versioned/chunks/chunk.UI7JLJDL.js +6 -6
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UWOJEWNV.js +2 -2
- package/dist-versioned/chunks/chunk.VTBH4LAP.js +1 -1
- package/dist-versioned/chunks/chunk.W6PBLDS5.js +12 -12
- package/dist-versioned/chunks/chunk.WXXHOSE3.js +4 -4
- package/dist-versioned/chunks/chunk.X3SWQRRP.js +3 -3
- package/dist-versioned/chunks/chunk.YSZ5CL7K.js +1 -1
- package/dist-versioned/chunks/chunk.YT23TSJR.js +5 -5
- package/dist-versioned/chunks/chunk.ZOLOAEEA.js +3 -3
- package/dist-versioned/chunks/chunk.ZXAAMEZI.js +3 -3
- 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-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/datepicker/datepicker-converters.d.ts +12 -0
- package/dist-versioned/components/datepicker/datepicker-converters.js +11 -0
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.js +2 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/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/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/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/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 +1987 -1703
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +24 -23
- package/dist-versioned/vscode.html-custom-data.json +253 -253
- package/dist-versioned/web-types.json +777 -699
- package/package.json +1 -1
- package/cdn/chunks/chunk.D4I2KYVZ.js +0 -2
- package/cdn-versioned/chunks/chunk.D4I2KYVZ.js +0 -2
|
@@ -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-6-22-
|
|
121
|
+
"sd-6-22-1-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 flex-shrink-0 items-center justify-center border sd-6-22-
|
|
130
|
+
"relative flex flex-shrink-0 items-center justify-center border sd-6-22-1-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
|
{
|
|
@@ -160,10 +160,10 @@ var SdCheckbox = class extends SolidElement {
|
|
|
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-6-22-
|
|
163
|
+
)}"></div></div>${this.checked ? html`<sd-6-22-1-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-6-22-1-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-6-22-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-6-22-1-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-6-22-
|
|
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-6-22-1-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-6-22-1-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-6-22-
|
|
226
|
+
customElement("sd-6-22-1-checkbox")
|
|
227
227
|
], SdCheckbox);
|
|
228
228
|
|
|
229
229
|
export {
|
|
@@ -220,16 +220,16 @@ var SdTooltip = class extends SolidElement {
|
|
|
220
220
|
render() {
|
|
221
221
|
const isStart = this.placement.endsWith("-start");
|
|
222
222
|
const isEnd = this.placement.endsWith("-end");
|
|
223
|
-
return html`<sd-6-22-
|
|
223
|
+
return html`<sd-6-22-1-popup part="base" exportparts="
|
|
224
224
|
popup:base__popup,
|
|
225
225
|
arrow:base__arrow
|
|
226
|
-
" 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">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-6-22-
|
|
226
|
+
" 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">${this.hasCustomTrigger ? html`<slot slot="anchor"></slot>` : html`<button slot="anchor" aria-describedby="tooltip" class="${cx("flex sd-interactive rounded-full", this.size === "lg" ? "text-xl" : "text-base")}" ?disabled="${this.disabled}" aria-expanded="${this.open}" aria-controls="tooltip"><sd-6-22-1-icon library="_internal" name="info-circle" label="Tooltip" class="${cx(this.disabled && "sd-interactive--disabled")}"></sd-6-22-1-icon></button>`}<slot name="content" part="body" id="tooltip" class="sd-6-22-1-tooltip-color-background sd-6-22-1-tooltip-color-text py-3 px-4 block rounded-none text-sm text-left" role="tooltip" aria-label="${this.content}" aria-live="${this.open ? "polite" : "off"}">${this.content}</slot></sd-6-22-1-popup>`;
|
|
227
227
|
}
|
|
228
228
|
};
|
|
229
229
|
SdTooltip.styles = [
|
|
230
230
|
...SolidElement.styles,
|
|
231
231
|
css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
232
|
-
:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-6-22-
|
|
232
|
+
:host{--hide-delay:0ms;--show-delay:150ms;display:contents}sd-6-22-1-popup{--arrow-color:rgba(var(--sd-tooltip-color-background));--arrow-size:10px}sd-6-22-1-popup::part(popup){pointer-events:none;z-index:10;--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-6-22-1-popup::part(arrow){--tw-shadow:var(--sd-shadow);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}sd-6-22-1-popup[placement^=top]::part(popup){transform-origin:bottom}sd-6-22-1-popup[placement^=bottom]::part(popup){transform-origin:top}#tooltip{max-width:var(--max-width)}::slotted([slot=content]){overflow:auto;max-width:var(--auto-size-available-width)!important;max-height:var(--auto-size-available-height)!important}@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}`
|
|
233
233
|
];
|
|
234
234
|
__decorateClass([
|
|
235
235
|
query("slot:not([name])")
|
|
@@ -238,7 +238,7 @@ __decorateClass([
|
|
|
238
238
|
query("#tooltip")
|
|
239
239
|
], SdTooltip.prototype, "body", 2);
|
|
240
240
|
__decorateClass([
|
|
241
|
-
query("sd-6-22-
|
|
241
|
+
query("sd-6-22-1-popup")
|
|
242
242
|
], SdTooltip.prototype, "popup", 2);
|
|
243
243
|
__decorateClass([
|
|
244
244
|
property({ type: String, reflect: true })
|
|
@@ -274,7 +274,7 @@ __decorateClass([
|
|
|
274
274
|
watch("disabled")
|
|
275
275
|
], SdTooltip.prototype, "handleDisabledChange", 1);
|
|
276
276
|
SdTooltip = __decorateClass([
|
|
277
|
-
customElement("sd-6-22-
|
|
277
|
+
customElement("sd-6-22-1-tooltip")
|
|
278
278
|
], SdTooltip);
|
|
279
279
|
setDefaultAnimation("tooltip.show", {
|
|
280
280
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -209,7 +209,7 @@ __decorateClass([
|
|
|
209
209
|
watch("playbackRate")
|
|
210
210
|
], SdAnimation.prototype, "handlePlaybackRateChange", 1);
|
|
211
211
|
SdAnimation = __decorateClass([
|
|
212
|
-
customElement("sd-6-22-
|
|
212
|
+
customElement("sd-6-22-1-animation")
|
|
213
213
|
], SdAnimation);
|
|
214
214
|
|
|
215
215
|
export {
|
|
@@ -17,7 +17,7 @@ var SdSkeleton = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
render() {
|
|
19
19
|
return html`<div part="base" aria-hidden="true" class="${cx(
|
|
20
|
-
"sd-6-22-
|
|
20
|
+
"sd-6-22-1-skeleton-color w-full h-full animate-pulse",
|
|
21
21
|
{
|
|
22
22
|
rectangular: "rounded-sm",
|
|
23
23
|
circular: "rounded-full inline-block"
|
|
@@ -34,7 +34,7 @@ __decorateClass([
|
|
|
34
34
|
property({ type: String, reflect: true })
|
|
35
35
|
], SdSkeleton.prototype, "variant", 2);
|
|
36
36
|
SdSkeleton = __decorateClass([
|
|
37
|
-
customElement("sd-6-22-
|
|
37
|
+
customElement("sd-6-22-1-skeleton")
|
|
38
38
|
], SdSkeleton);
|
|
39
39
|
|
|
40
40
|
export {
|
|
@@ -37,8 +37,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
37
37
|
}
|
|
38
38
|
connectedCallback() {
|
|
39
39
|
const whenAllDefined = Promise.all([
|
|
40
|
-
customElements.whenDefined("sd-6-22-
|
|
41
|
-
customElements.whenDefined("sd-6-22-
|
|
40
|
+
customElements.whenDefined("sd-6-22-1-tab"),
|
|
41
|
+
customElements.whenDefined("sd-6-22-1-tab-panel")
|
|
42
42
|
]);
|
|
43
43
|
super.connectedCallback();
|
|
44
44
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -86,20 +86,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
86
86
|
}
|
|
87
87
|
getAllTabs(options = { includeDisabled: true }) {
|
|
88
88
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
89
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-6-22-
|
|
90
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-6-22-
|
|
89
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-6-22-1-tab" ? el : el.querySelector("sd-6-22-1-tab")).filter((el) => {
|
|
90
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-6-22-1-tab" : el.tagName.toLowerCase() === "sd-6-22-1-tab" && !el.disabled;
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
getAllPanels() {
|
|
94
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-22-
|
|
94
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-6-22-1-tab-panel");
|
|
95
95
|
}
|
|
96
96
|
getActiveTab() {
|
|
97
97
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
98
98
|
}
|
|
99
99
|
handleClick(event) {
|
|
100
100
|
const target = event.target;
|
|
101
|
-
const tab = target.closest("sd-6-22-
|
|
102
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-22-
|
|
101
|
+
const tab = target.closest("sd-6-22-1-tab");
|
|
102
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-22-1-tab-group");
|
|
103
103
|
if (tabGroup !== this) {
|
|
104
104
|
return;
|
|
105
105
|
}
|
|
@@ -109,8 +109,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
109
109
|
}
|
|
110
110
|
handleKeyDown(event) {
|
|
111
111
|
const target = event.target;
|
|
112
|
-
const tab = target.closest("sd-6-22-
|
|
113
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-22-
|
|
112
|
+
const tab = target.closest("sd-6-22-1-tab");
|
|
113
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-6-22-1-tab-group");
|
|
114
114
|
if (tabGroup !== this) {
|
|
115
115
|
return;
|
|
116
116
|
}
|
|
@@ -137,7 +137,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
137
137
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
138
138
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
139
139
|
const isRtl = this.localize.dir() === "rtl";
|
|
140
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-6-22-
|
|
140
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-6-22-1-tab") {
|
|
141
141
|
let index = this.tabs.indexOf(activeEl);
|
|
142
142
|
if (event.key === "Home") {
|
|
143
143
|
index = 0;
|
|
@@ -258,16 +258,16 @@ var SdTabGroup = class extends SolidElement {
|
|
|
258
258
|
return html`<div part="base" class="${cx("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${cx(this.hasScrollControls && "relative py-0 px-12")}">${this.hasScrollControls ? html`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.left || void 0)}" class="${cx(
|
|
259
259
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
260
260
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
261
|
-
)}" @click="${this.handleScrollToStart}"><sd-6-22-
|
|
261
|
+
)}" @click="${this.handleScrollToStart}"><sd-6-22-1-icon library="_internal" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-22-1-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist">${((_a = this.activeTab) == null ? void 0 : _a.variant) !== "container" ? html`<div part="active-tab-indicator" id="indicator" class="absolute h-1 bg-accent bottom-0 transition-[transform,width] duration-medium ease-in-out z-30 navigable__current-indicator-height navigable__current-indicator-border-radius"></div>` : ""}<div part="separation" class="border-neutral-400 absolute w-full h-0.25 bottom-0 border-b z-10"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" disabled="${ifDefined(!this.canScroll.right || void 0)}" class="${cx(
|
|
262
262
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
263
263
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
264
|
-
)}" @click="${this.handleScrollToEnd}"><sd-6-22-
|
|
264
|
+
)}" @click="${this.handleScrollToEnd}"><sd-6-22-1-icon library="_internal" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-6-22-1-icon></button>` : ""}</div><slot part="body" class="${cx("block auto py-8 px-6", this.variant === "container" && "border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`;
|
|
265
265
|
}
|
|
266
266
|
};
|
|
267
267
|
SdTabGroup.styles = [
|
|
268
268
|
...SolidElement.styles,
|
|
269
269
|
css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
270
|
-
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-22-
|
|
270
|
+
:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:calc(var(--sd-spacing-1) * 0);width:calc(var(--sd-spacing-1) * 0)}::slotted(sd-6-22-1-tab-panel){--padding:1rem 0}::slotted(sd-6-22-1-tab-panel:focus-visible){outline-style:solid;outline-offset:2px;outline-width:2px;outline-color:var(--outline-color-primary)}`
|
|
271
271
|
];
|
|
272
272
|
__decorateClass([
|
|
273
273
|
query("[part=base]")
|
|
@@ -300,7 +300,7 @@ __decorateClass([
|
|
|
300
300
|
debounce(20)
|
|
301
301
|
], SdTabGroup.prototype, "handleScroll", 1);
|
|
302
302
|
SdTabGroup = __decorateClass([
|
|
303
|
-
customElement("sd-6-22-
|
|
303
|
+
customElement("sd-6-22-1-tab-group")
|
|
304
304
|
], SdTabGroup);
|
|
305
305
|
|
|
306
306
|
export {
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// src/components/datepicker/datepicker-converters.ts
|
|
2
|
+
var isoDateConverter = {
|
|
3
|
+
fromAttribute(value) {
|
|
4
|
+
if (!value) return null;
|
|
5
|
+
const cleaned = value.trim().replace(/[./]/g, "-");
|
|
6
|
+
const match = cleaned.match(/^(\d{4})-(\d{2})-(\d{2})$/);
|
|
7
|
+
if (!match) return null;
|
|
8
|
+
const iso = `${match[1]}-${match[2]}-${match[3]}`;
|
|
9
|
+
const d = new Date(+match[1], +match[2] - 1, +match[3]);
|
|
10
|
+
if (d.getFullYear() !== +match[1] || d.getMonth() !== +match[2] - 1 || d.getDate() !== +match[3]) {
|
|
11
|
+
return null;
|
|
12
|
+
}
|
|
13
|
+
return iso;
|
|
14
|
+
},
|
|
15
|
+
toAttribute(value) {
|
|
16
|
+
return value != null ? value : "";
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
var viewMonthConverter = {
|
|
20
|
+
fromAttribute(value) {
|
|
21
|
+
if (!value) return null;
|
|
22
|
+
const cleaned = value.trim().replace(/[./]/g, "-");
|
|
23
|
+
let m = cleaned.match(/^(\d{2})-(\d{4})$/);
|
|
24
|
+
let month;
|
|
25
|
+
let year;
|
|
26
|
+
if (m) {
|
|
27
|
+
month = Number(m[1]);
|
|
28
|
+
year = Number(m[2]);
|
|
29
|
+
} else {
|
|
30
|
+
m = cleaned.match(/^(\d{4})-(\d{2})$/);
|
|
31
|
+
if (!m) return null;
|
|
32
|
+
year = Number(m[1]);
|
|
33
|
+
month = Number(m[2]);
|
|
34
|
+
}
|
|
35
|
+
if (!year || !month || month < 1 || month > 12) return null;
|
|
36
|
+
return new Date(year, month - 1, 1);
|
|
37
|
+
},
|
|
38
|
+
toAttribute(value) {
|
|
39
|
+
if (!value) return "";
|
|
40
|
+
const year = value.getFullYear();
|
|
41
|
+
const month = String(value.getMonth() + 1).padStart(2, "0");
|
|
42
|
+
return `${year}-${month}`;
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
var disabledDatesConverter = {
|
|
46
|
+
fromAttribute(value) {
|
|
47
|
+
if (!value) return [];
|
|
48
|
+
let rawList = [];
|
|
49
|
+
const trimmed = value.trim();
|
|
50
|
+
if (trimmed.startsWith("[")) {
|
|
51
|
+
try {
|
|
52
|
+
const parsed = JSON.parse(trimmed);
|
|
53
|
+
if (Array.isArray(parsed)) {
|
|
54
|
+
rawList = parsed.map(String);
|
|
55
|
+
}
|
|
56
|
+
} catch (e) {
|
|
57
|
+
return [];
|
|
58
|
+
}
|
|
59
|
+
} else {
|
|
60
|
+
rawList = trimmed.split(/[\s,]+/).map((v) => v.trim()).filter(Boolean);
|
|
61
|
+
}
|
|
62
|
+
const result = [];
|
|
63
|
+
for (const raw of rawList) {
|
|
64
|
+
const cleaned = raw.replace(/[-/]/g, ".");
|
|
65
|
+
const parts = cleaned.split(".");
|
|
66
|
+
if (parts.length !== 3) continue;
|
|
67
|
+
const [yyyy, mm, dd] = parts.map(Number);
|
|
68
|
+
if (!yyyy || !mm || !dd) continue;
|
|
69
|
+
const date = new Date(yyyy, mm - 1, dd);
|
|
70
|
+
if (date.getFullYear() !== yyyy || date.getMonth() !== mm - 1 || date.getDate() !== dd) continue;
|
|
71
|
+
const iso = `${yyyy}-${String(mm).padStart(2, "0")}-${String(dd).padStart(2, "0")}`;
|
|
72
|
+
result.push(iso);
|
|
73
|
+
}
|
|
74
|
+
return result;
|
|
75
|
+
},
|
|
76
|
+
toAttribute(value) {
|
|
77
|
+
return value ? value.join(",") : "";
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
isoDateConverter,
|
|
83
|
+
viewMonthConverter,
|
|
84
|
+
disabledDatesConverter
|
|
85
|
+
};
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-6-22-
|
|
29
|
+
return [...this.querySelectorAll("sd-6-22-1-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-6-22-
|
|
42
|
+
if (customElements.get("sd-6-22-1-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-6-22-
|
|
45
|
+
customElements.whenDefined("sd-6-22-1-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -80,7 +80,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
82
|
css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
83
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-22-
|
|
83
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-22-1-checkbox){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-22-1-checkbox:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-22-1-checkbox){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-22-1-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-22-1-checkbox){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-22-1-checkbox:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}`
|
|
84
84
|
];
|
|
85
85
|
__decorateClass([
|
|
86
86
|
property({ type: String, reflect: true })
|
|
@@ -101,7 +101,7 @@ __decorateClass([
|
|
|
101
101
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
102
102
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
103
103
|
SdCheckboxGroup = __decorateClass([
|
|
104
|
-
customElement("sd-6-22-
|
|
104
|
+
customElement("sd-6-22-1-checkbox-group")
|
|
105
105
|
], SdCheckboxGroup);
|
|
106
106
|
|
|
107
107
|
export {
|
|
@@ -18,7 +18,7 @@ var SdTabPanel = class extends SolidElement {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.attrId = ++id;
|
|
21
|
-
this.componentId = `sd-6-22-
|
|
21
|
+
this.componentId = `sd-6-22-1-tab-panel-${this.attrId}`;
|
|
22
22
|
this.name = "";
|
|
23
23
|
this.active = false;
|
|
24
24
|
}
|
|
@@ -49,7 +49,7 @@ __decorateClass([
|
|
|
49
49
|
watch("active")
|
|
50
50
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
51
51
|
SdTabPanel = __decorateClass([
|
|
52
|
-
customElement("sd-6-22-
|
|
52
|
+
customElement("sd-6-22-1-tab-panel")
|
|
53
53
|
], SdTabPanel);
|
|
54
54
|
|
|
55
55
|
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-6-22-
|
|
214
|
+
)}"><sd-6-22-1-icon name="${{
|
|
215
215
|
info: "info-circle",
|
|
216
216
|
success: "confirm-circle",
|
|
217
217
|
warning: "exclamation-circle",
|
|
218
218
|
error: "warning"
|
|
219
|
-
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-6-22-
|
|
219
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-6-22-1-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-6-22-
|
|
221
|
+
"border-solid border-[1px] border-l-0 sd-6-22-1-notification-color-border",
|
|
222
222
|
{
|
|
223
|
-
info: "sd-6-22-
|
|
224
|
-
success: "sd-6-22-
|
|
225
|
-
warning: "sd-6-22-
|
|
226
|
-
error: "sd-6-22-
|
|
223
|
+
info: "sd-6-22-1-notification--info-color-background",
|
|
224
|
+
success: "sd-6-22-1-notification--success-color-background",
|
|
225
|
+
warning: "sd-6-22-1-notification--warning-color-background",
|
|
226
|
+
error: "sd-6-22-1-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-6-22-
|
|
229
|
-
`absolute w-0 h-[2px] bottom-0 sd-6-22-
|
|
228
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-6-22-1-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-6-22-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-22-1-icon></sd-6-22-1-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-6-22-1-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-6-22-
|
|
275
|
+
customElement("sd-6-22-1-notification")
|
|
276
276
|
], SdNotification);
|
|
277
277
|
setDefaultAnimation("notification.show", {
|
|
278
278
|
keyframes: [
|
|
@@ -135,23 +135,23 @@ var SdAccordion = class extends SolidElement {
|
|
|
135
135
|
}
|
|
136
136
|
render() {
|
|
137
137
|
return html`<details part="base"><summary part="header" id="header" class="${cx(
|
|
138
|
-
"flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-22-
|
|
138
|
+
"flex text-base gap-4 font-bold items-center cursor-pointer select-none px-4 sd-6-22-1-accordion-padding-block focus-visible:focus-outline focus-visible:z-10 relative group transition-colors ease-in-out duration-fast hover:sd-6-22-1-accordion--hover-color-background"
|
|
139
139
|
)}" aria-expanded="${this.open ? "true" : "false"}" aria-controls="content" tabindex="0" @click="${this.handleSummaryClick}" @keydown="${this.handleSummaryKeyDown}"><div part="summary-border" class="${cx(
|
|
140
140
|
!this.open && "opacity-0",
|
|
141
|
-
"w-1 sd-6-22-
|
|
141
|
+
"w-1 sd-6-22-1-accordion__indicator-color absolute left-0 transition-height duration-fast ease-in-out h-[calc(100%-16px)] group-hover:h-full"
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="${cx(
|
|
143
|
-
this.open ? "sd-6-22-
|
|
143
|
+
this.open ? "sd-6-22-1-accordion--open-color-text" : "sd-6-22-1-accordion-color-text",
|
|
144
144
|
"flex flex-auto items-center text-left"
|
|
145
145
|
)}">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
146
146
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",
|
|
147
147
|
this.open && "rotate-180"
|
|
148
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-22-
|
|
148
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-22-1-icon library="_internal" name="chevron-down"></sd-6-22-1-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-6-22-1-icon library="_internal" name="chevron-down"></sd-6-22-1-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
149
149
|
}
|
|
150
150
|
};
|
|
151
151
|
SdAccordion.styles = [
|
|
152
152
|
...SolidElement.styles,
|
|
153
153
|
css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
154
|
-
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-color:rgba(var(--sd-accordion-color-border,var(--sd-accordion-color-text)));border-block-width:var(--sd-accordion-border-width)}[part=summary-icon] sd-6-22-
|
|
154
|
+
:host{display:block}[part=header]::-webkit-details-marker{display:none}[part=base]{border-color:rgba(var(--sd-accordion-color-border,var(--sd-accordion-color-text)));border-block-width:var(--sd-accordion-border-width)}[part=summary-icon] sd-6-22-1-icon{color:rgb(var(--sd-accordion__chevron-color-text,var(--sd-accordion-color-icon-fill)))}`
|
|
155
155
|
];
|
|
156
156
|
__decorateClass([
|
|
157
157
|
query('[part="base"]')
|
|
@@ -172,7 +172,7 @@ __decorateClass([
|
|
|
172
172
|
watch("open", { waitUntilFirstUpdate: true })
|
|
173
173
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
174
174
|
SdAccordion = __decorateClass([
|
|
175
|
-
customElement("sd-6-22-
|
|
175
|
+
customElement("sd-6-22-1-accordion")
|
|
176
176
|
], SdAccordion);
|
|
177
177
|
setDefaultAnimation("accordion.show", {
|
|
178
178
|
keyframes: [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// src/components/combobox/utils.ts
|
|
2
2
|
var getAssignedElementsForSlot = (slot) => Array.from(slot.assignedElements({ flatten: true }));
|
|
3
|
-
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-6-22-
|
|
4
|
-
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-6-22-
|
|
3
|
+
var getOptionOrNestedOptions = (item) => item.tagName.toLocaleLowerCase() === "sd-6-22-1-option" ? item : Array.from(item.querySelectorAll(":scope > sd-6-22-1-option"));
|
|
4
|
+
var isOptgroup = (item) => item.tagName.toLocaleLowerCase() === "sd-6-22-1-optgroup";
|
|
5
5
|
var getAllOptions = (items) => items.map(getOptionOrNestedOptions);
|
|
6
6
|
var filterOnlyOptgroups = (items) => items.filter(isOptgroup);
|
|
7
7
|
var normalizeString = (str) => str.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
@@ -54,7 +54,7 @@ var SdHeader = class extends SolidElement {
|
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
56
|
render() {
|
|
57
|
-
return html`<header class="w-full sd-6-22-
|
|
57
|
+
return html`<header class="w-full sd-6-22-1-header-color-background sd-6-22-1-header-padding-bottom relative" role="banner"><div part="main" class="relative mx-auto my-0 box-border"><slot></slot></div></header>`;
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
SdHeader.styles = [
|
|
@@ -72,7 +72,7 @@ __decorateClass([
|
|
|
72
72
|
debounce(100)
|
|
73
73
|
], SdHeader.prototype, "updateCalculatedHeight", 1);
|
|
74
74
|
SdHeader = __decorateClass([
|
|
75
|
-
customElement("sd-6-22-
|
|
75
|
+
customElement("sd-6-22-1-header")
|
|
76
76
|
], SdHeader);
|
|
77
77
|
|
|
78
78
|
export {
|
|
@@ -324,7 +324,7 @@ __decorateClass([
|
|
|
324
324
|
property({ attribute: "auto-size-padding", type: Number })
|
|
325
325
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
326
326
|
SdPopup = __decorateClass([
|
|
327
|
-
customElement("sd-6-22-
|
|
327
|
+
customElement("sd-6-22-1-popup")
|
|
328
328
|
], SdPopup);
|
|
329
329
|
|
|
330
330
|
export {
|
|
@@ -88,14 +88,14 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
getAllRadios() {
|
|
91
|
-
const radios = [...this.querySelectorAll("sd-6-22-
|
|
91
|
+
const radios = [...this.querySelectorAll("sd-6-22-1-radio, sd-6-22-1-radio-button")];
|
|
92
92
|
if (radios.length === 0) {
|
|
93
93
|
console.warn("No radios found in the radio group.");
|
|
94
94
|
}
|
|
95
95
|
return radios;
|
|
96
96
|
}
|
|
97
97
|
handleRadioClick(event) {
|
|
98
|
-
const target = event.target.closest("sd-6-22-
|
|
98
|
+
const target = event.target.closest("sd-6-22-1-radio, sd-6-22-1-radio-button");
|
|
99
99
|
const oldValue = this.value;
|
|
100
100
|
const radios = this.getAllRadios();
|
|
101
101
|
if (radios.length === 0) {
|
|
@@ -185,7 +185,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
185
185
|
}
|
|
186
186
|
})
|
|
187
187
|
);
|
|
188
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-6-22-
|
|
188
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-6-22-1-radio-button");
|
|
189
189
|
if (!radios.some((radio) => radio.checked)) {
|
|
190
190
|
if (this.hasButtonGroup) {
|
|
191
191
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -197,26 +197,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
if (this.hasButtonGroup) {
|
|
200
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-6-22-
|
|
200
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-6-22-1-button-group");
|
|
201
201
|
if (buttonGroup) {
|
|
202
202
|
buttonGroup.disableRole = true;
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
}
|
|
206
206
|
syncRadios() {
|
|
207
|
-
if (customElements.get("sd-6-22-
|
|
207
|
+
if (customElements.get("sd-6-22-1-radio") && customElements.get("sd-6-22-1-radio-button")) {
|
|
208
208
|
this.syncRadioElements();
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
if (customElements.get("sd-6-22-
|
|
211
|
+
if (customElements.get("sd-6-22-1-radio")) {
|
|
212
212
|
this.syncRadioElements();
|
|
213
213
|
} else {
|
|
214
|
-
customElements.whenDefined("sd-6-22-
|
|
214
|
+
customElements.whenDefined("sd-6-22-1-radio").then(() => this.syncRadios());
|
|
215
215
|
}
|
|
216
|
-
if (customElements.get("sd-6-22-
|
|
216
|
+
if (customElements.get("sd-6-22-1-radio-button")) {
|
|
217
217
|
this.syncRadioElements();
|
|
218
218
|
} else {
|
|
219
|
-
customElements.whenDefined("sd-6-22-
|
|
219
|
+
customElements.whenDefined("sd-6-22-1-radio-button").then(() => this.syncRadios());
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
222
|
updateCheckedRadio() {
|
|
@@ -294,7 +294,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
294
294
|
vertical: "flex-col",
|
|
295
295
|
horizontal: "flex-row"
|
|
296
296
|
}[this.orientation]
|
|
297
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-6-22-
|
|
297
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" aria-labelledby="label" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-6-22-1-button-group class="border border-primary sd-6-22-1-radio-button-group-border-radius sd-6-22-1-radio-button-group-border-width sd-6-22-1-radio-button-group-padding" part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-6-22-1-button-group>` : defaultSlot}</div></fieldset><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 part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle ? html`<sd-6-22-1-icon part="invalid-icon" class="${cx("text-error")}" library="_internal" name="risk"></sd-6-22-1-icon>` : ""} ${this.formControlController.renderInvalidMessage(this.size)}</div>`;
|
|
298
298
|
}
|
|
299
299
|
};
|
|
300
300
|
/**
|
|
@@ -303,7 +303,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
303
303
|
SdRadioGroup.styles = [
|
|
304
304
|
...SolidElement.styles,
|
|
305
305
|
css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
306
|
-
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-22-
|
|
306
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-22-1-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-22-1-radio:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-22-1-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-22-1-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-22-1-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-22-1-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([required]) #label::after{content:' *'}:host:has(sd-6-22-1-button-group){display:inline-flex}`
|
|
307
307
|
];
|
|
308
308
|
__decorateClass([
|
|
309
309
|
query("slot:not([name])")
|
|
@@ -357,7 +357,7 @@ __decorateClass([
|
|
|
357
357
|
watch("value")
|
|
358
358
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
359
359
|
SdRadioGroup = __decorateClass([
|
|
360
|
-
customElement("sd-6-22-
|
|
360
|
+
customElement("sd-6-22-1-radio-group")
|
|
361
361
|
], SdRadioGroup);
|
|
362
362
|
|
|
363
363
|
export {
|