@solid-design-system/components 5.17.1 → 5.17.2
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.KVJJEMOI.js → chunk.UVN2WVI6.js} +1 -1
- package/cdn/components/checkbox/checkbox.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.23JJBCLW.js +1 -1
- package/cdn-versioned/chunks/chunk.2D3B6W4C.js +1 -1
- package/cdn-versioned/chunks/chunk.2RPN4LHN.js +4 -4
- package/cdn-versioned/chunks/chunk.2YMJV2KL.js +1 -1
- package/cdn-versioned/chunks/chunk.37O5FAM6.js +1 -1
- package/cdn-versioned/chunks/chunk.3PTWVC7K.js +1 -1
- package/cdn-versioned/chunks/chunk.4HEDUSC5.js +1 -1
- package/cdn-versioned/chunks/chunk.4THKQ4PC.js +1 -1
- package/cdn-versioned/chunks/chunk.4USO2EJG.js +2 -2
- package/cdn-versioned/chunks/chunk.5GPPZUNF.js +1 -1
- package/cdn-versioned/chunks/chunk.6QNQMWSQ.js +2 -2
- package/cdn-versioned/chunks/chunk.6XOV6LQS.js +1 -1
- package/cdn-versioned/chunks/chunk.72JQHJ3G.js +1 -1
- package/cdn-versioned/chunks/chunk.75UMJKQC.js +1 -1
- package/cdn-versioned/chunks/chunk.7FMD6ZWC.js +1 -1
- package/cdn-versioned/chunks/chunk.7NHEEBDB.js +1 -1
- package/cdn-versioned/chunks/chunk.7SJXKLVN.js +1 -1
- package/cdn-versioned/chunks/chunk.ADTHFKFC.js +1 -1
- package/cdn-versioned/chunks/chunk.AKJ7U3Y3.js +1 -1
- package/cdn-versioned/chunks/chunk.BV42CEWL.js +1 -1
- package/cdn-versioned/chunks/chunk.CARQ25VA.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CTOV3B4T.js +1 -1
- package/cdn-versioned/chunks/chunk.EIGW4PKE.js +1 -1
- package/cdn-versioned/chunks/chunk.EIRHQEOO.js +1 -1
- package/cdn-versioned/chunks/chunk.FYOUHXBZ.js +1 -1
- package/cdn-versioned/chunks/chunk.H3W4J4F4.js +1 -1
- package/cdn-versioned/chunks/chunk.H7I6O5HE.js +1 -1
- package/cdn-versioned/chunks/chunk.HJ4O4XQA.js +1 -1
- package/cdn-versioned/chunks/chunk.HXUQZXCZ.js +1 -1
- package/cdn-versioned/chunks/chunk.LLJ2OCGM.js +4 -4
- package/cdn-versioned/chunks/chunk.M6XINJ52.js +1 -1
- package/cdn-versioned/chunks/chunk.MGCXOSRH.js +1 -1
- package/cdn-versioned/chunks/chunk.MMM4IMJD.js +1 -1
- package/cdn-versioned/chunks/chunk.N4RSYGAV.js +1 -1
- package/cdn-versioned/chunks/chunk.NRBNWX7R.js +1 -1
- package/cdn-versioned/chunks/chunk.NTP4LLF3.js +1 -1
- package/cdn-versioned/chunks/chunk.OCIA2UJP.js +1 -1
- package/cdn-versioned/chunks/chunk.OIOXSZHI.js +1 -1
- package/cdn-versioned/chunks/chunk.OPMX2Q3A.js +1 -1
- package/cdn-versioned/chunks/chunk.OQSPWMNR.js +1 -1
- package/cdn-versioned/chunks/chunk.PCAKJGIV.js +1 -1
- package/cdn-versioned/chunks/chunk.PIAYQI7K.js +1 -1
- package/cdn-versioned/chunks/chunk.QJAN6R4E.js +1 -1
- package/cdn-versioned/chunks/chunk.QJFZKBPG.js +1 -1
- package/cdn-versioned/chunks/chunk.QJVPLDR4.js +1 -1
- package/cdn-versioned/chunks/chunk.RCMXIAQV.js +1 -1
- package/cdn-versioned/chunks/chunk.RIOXBQBC.js +1 -1
- package/cdn-versioned/chunks/chunk.ROIKKEJQ.js +1 -1
- package/cdn-versioned/chunks/chunk.SQ7OLI7Q.js +1 -1
- package/cdn-versioned/chunks/chunk.TDRPE2QQ.js +1 -1
- package/cdn-versioned/chunks/chunk.TFKNNQ5S.js +1 -1
- package/cdn-versioned/chunks/chunk.TTG6Y6QJ.js +1 -1
- package/cdn-versioned/chunks/{chunk.KVJJEMOI.js → chunk.UVN2WVI6.js} +1 -1
- package/cdn-versioned/chunks/chunk.W2JKI6K3.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.XAIFQKHV.js +1 -1
- package/cdn-versioned/chunks/chunk.YMTUR575.js +1 -1
- package/cdn-versioned/chunks/chunk.YVU7BES7.js +1 -1
- package/cdn-versioned/chunks/chunk.Z4V7WPTW.js +1 -1
- package/cdn-versioned/chunks/chunk.ZENM3WVO.js +1 -1
- package/cdn-versioned/chunks/chunk.ZKBX734R.js +1 -1
- package/cdn-versioned/chunks/chunk.ZZAPDP7V.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/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/checkbox.js +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/datepicker/datepicker.d.ts +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/tooltip/tooltip.d.ts +1 -1
- package/cdn-versioned/components/video/video.d.ts +1 -1
- package/cdn-versioned/custom-elements.json +248 -248
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +14 -14
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +14 -14
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +94 -94
- package/cdn-versioned/web-types.json +163 -163
- package/dist/chunks/{chunk.ZBDFCFOP.js → chunk.CA5LQ5RH.js} +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +4 -4
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.22DM7THN.js +2 -2
- package/dist-versioned/chunks/chunk.246LUIGB.js +1 -1
- package/dist-versioned/chunks/chunk.2EN4CJ2E.js +1 -1
- package/dist-versioned/chunks/chunk.3CUXBZXY.js +1 -1
- package/dist-versioned/chunks/chunk.4D5SPJ27.js +1 -1
- package/dist-versioned/chunks/chunk.4VSYGWIQ.js +2 -2
- package/dist-versioned/chunks/chunk.5L52M55A.js +3 -3
- package/dist-versioned/chunks/chunk.63D5DO3S.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6KCL3YWT.js +3 -3
- package/dist-versioned/chunks/chunk.6OGLZOU3.js +1 -1
- package/dist-versioned/chunks/chunk.A5GKQZGQ.js +2 -2
- package/dist-versioned/chunks/chunk.AAK5STGD.js +2 -2
- package/dist-versioned/chunks/chunk.ATKLZZWE.js +2 -2
- package/dist-versioned/chunks/chunk.AUMWRORX.js +6 -6
- package/dist-versioned/chunks/chunk.AWVURKQ3.js +8 -8
- package/dist-versioned/chunks/chunk.AZ5YCFXX.js +2 -2
- package/dist-versioned/chunks/{chunk.ZBDFCFOP.js → chunk.CA5LQ5RH.js} +3 -3
- package/dist-versioned/chunks/chunk.DOGMVREV.js +3 -3
- package/dist-versioned/chunks/chunk.E4O3LVAZ.js +1 -1
- package/dist-versioned/chunks/chunk.FPIRMH7R.js +4 -4
- package/dist-versioned/chunks/chunk.FWDG6KMC.js +1 -1
- package/dist-versioned/chunks/chunk.HTEXYS4A.js +26 -26
- package/dist-versioned/chunks/chunk.IKDVBWFR.js +2 -2
- package/dist-versioned/chunks/chunk.J2MPIUT5.js +1 -1
- package/dist-versioned/chunks/chunk.JUZY76ML.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KHS7FSFX.js +5 -5
- package/dist-versioned/chunks/chunk.KMU4KABG.js +2 -2
- package/dist-versioned/chunks/chunk.MCUIYSD6.js +2 -2
- package/dist-versioned/chunks/chunk.NBHVDDUK.js +4 -4
- package/dist-versioned/chunks/chunk.NYOWE72U.js +1 -1
- package/dist-versioned/chunks/chunk.OH3W4PGL.js +24 -24
- package/dist-versioned/chunks/chunk.OWYDTY46.js +2 -2
- package/dist-versioned/chunks/chunk.P2JBJQH6.js +1 -1
- package/dist-versioned/chunks/chunk.PKG3F2KC.js +1 -1
- package/dist-versioned/chunks/chunk.Q4HWX7FF.js +5 -5
- package/dist-versioned/chunks/chunk.QP27BG3Y.js +1 -1
- package/dist-versioned/chunks/chunk.QPBHKXL6.js +3 -3
- package/dist-versioned/chunks/chunk.QPBJEOPN.js +12 -12
- package/dist-versioned/chunks/chunk.QTQEKSJS.js +1 -1
- package/dist-versioned/chunks/chunk.QVNC3EJB.js +1 -1
- package/dist-versioned/chunks/chunk.RZLBIMEH.js +1 -1
- package/dist-versioned/chunks/chunk.S253T7LE.js +11 -11
- package/dist-versioned/chunks/chunk.SJZCQ5SU.js +12 -12
- package/dist-versioned/chunks/chunk.TD5EDBVC.js +2 -2
- package/dist-versioned/chunks/chunk.TJKIQ2ZR.js +5 -5
- package/dist-versioned/chunks/chunk.TMJN75ST.js +6 -6
- package/dist-versioned/chunks/chunk.U5L4ZATG.js +5 -5
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.URTB3C7J.js +3 -3
- package/dist-versioned/chunks/chunk.VDSIXERI.js +2 -2
- package/dist-versioned/chunks/chunk.VUTMPKYK.js +3 -3
- package/dist-versioned/chunks/chunk.W6RMEFFR.js +2 -2
- package/dist-versioned/chunks/chunk.WRP3NGPP.js +4 -4
- package/dist-versioned/chunks/chunk.WTG2WY6X.js +5 -5
- package/dist-versioned/chunks/chunk.WUB4VSXU.js +2 -2
- package/dist-versioned/chunks/chunk.XCQC3F3H.js +3 -3
- package/dist-versioned/chunks/chunk.XRKSJCLQ.js +6 -6
- package/dist-versioned/chunks/chunk.YBAAPYHP.js +14 -14
- package/dist-versioned/chunks/chunk.YGHO5R3O.js +3 -3
- package/dist-versioned/chunks/chunk.ZAQS4XFO.js +2 -2
- package/dist-versioned/chunks/chunk.ZUL25WD4.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/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/checkbox.js +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/datepicker/datepicker.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/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/tooltip/tooltip.d.ts +1 -1
- package/dist-versioned/components/video/video.d.ts +1 -1
- package/dist-versioned/custom-elements.json +248 -248
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +4 -4
- package/dist-versioned/vscode.html-custom-data.json +94 -94
- package/dist-versioned/web-types.json +163 -163
- package/package.json +1 -1
|
@@ -160,7 +160,7 @@ 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-icon part="checked-icon" class="text-white w-3 h-3" library="
|
|
163
|
+
)}"></div></div>${this.checked ? html`<sd-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-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" : this.showInvalidStyle ? "text-error" : "text-black"
|
|
166
166
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
|
@@ -21580,7 +21580,7 @@
|
|
|
21580
21580
|
"package": {
|
|
21581
21581
|
"name": "@solid-design-system/components",
|
|
21582
21582
|
"description": "Solid Design System: Components",
|
|
21583
|
-
"version": "5.17.
|
|
21583
|
+
"version": "5.17.2",
|
|
21584
21584
|
"author": "Union Investment",
|
|
21585
21585
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
21586
21586
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
} from "./chunks/chunk.E4O3LVAZ.js";
|
|
122
122
|
import {
|
|
123
123
|
SdCheckbox
|
|
124
|
-
} from "./chunks/chunk.
|
|
124
|
+
} from "./chunks/chunk.CA5LQ5RH.js";
|
|
125
125
|
import {
|
|
126
126
|
SdCheckboxGroup
|
|
127
127
|
} from "./chunks/chunk.U5L4ZATG.js";
|
|
@@ -140,12 +140,12 @@ import "./chunks/chunk.UIQBHPD3.js";
|
|
|
140
140
|
import {
|
|
141
141
|
SdBadge
|
|
142
142
|
} from "./chunks/chunk.3CUXBZXY.js";
|
|
143
|
-
import {
|
|
144
|
-
SdBreadcrumb
|
|
145
|
-
} from "./chunks/chunk.TMJN75ST.js";
|
|
146
143
|
import {
|
|
147
144
|
SdBrandshape
|
|
148
145
|
} from "./chunks/chunk.P2JBJQH6.js";
|
|
146
|
+
import {
|
|
147
|
+
SdBreadcrumb
|
|
148
|
+
} from "./chunks/chunk.TMJN75ST.js";
|
|
149
149
|
import {
|
|
150
150
|
SdBreadcrumbItem
|
|
151
151
|
} from "./chunks/chunk.YGHO5R3O.js";
|
package/dist/web-types.json
CHANGED
|
@@ -55,7 +55,7 @@ var SdStepGroup = class extends SolidElement {
|
|
|
55
55
|
});
|
|
56
56
|
}
|
|
57
57
|
getAllSteps() {
|
|
58
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-17-
|
|
58
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-17-2-step");
|
|
59
59
|
}
|
|
60
60
|
/**
|
|
61
61
|
* Sets the active step.
|
|
@@ -120,7 +120,7 @@ __decorateClass([
|
|
|
120
120
|
watch("notInteractive")
|
|
121
121
|
], SdStepGroup.prototype, "handleInteractivityChange", 1);
|
|
122
122
|
SdStepGroup = __decorateClass([
|
|
123
|
-
customElement("sd-5-17-
|
|
123
|
+
customElement("sd-5-17-2-step-group")
|
|
124
124
|
], SdStepGroup);
|
|
125
125
|
|
|
126
126
|
export {
|
|
@@ -172,7 +172,7 @@ __decorateClass([
|
|
|
172
172
|
watch(["checked"], { waitUntilFirstUpdate: true })
|
|
173
173
|
], SdSwitch.prototype, "handleStateChange", 1);
|
|
174
174
|
SdSwitch = __decorateClass([
|
|
175
|
-
customElement("sd-5-17-
|
|
175
|
+
customElement("sd-5-17-2-switch")
|
|
176
176
|
], SdSwitch);
|
|
177
177
|
|
|
178
178
|
export {
|
|
@@ -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-5-17-
|
|
326
|
+
customElement("sd-5-17-2-popup")
|
|
327
327
|
], SdPopup);
|
|
328
328
|
|
|
329
329
|
export {
|
|
@@ -94,7 +94,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
94
94
|
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${cx(
|
|
95
95
|
"flex items-center mr-2 transition-transform duration-medium ease-in-out",
|
|
96
96
|
this.open && "rotate-180"
|
|
97
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-17-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-17-2-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-17-2-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-17-2-icon library="_internal" name="chevron-down" class="text-xl"></sd-5-17-2-icon></slot></span><slot name="toggle-closed" class="${cx(this.open && "hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${cx(!this.open && "hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${ifDefined(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`;
|
|
98
98
|
}
|
|
99
99
|
firstUpdated() {
|
|
100
100
|
this.cloneContentToLightDOM();
|
|
@@ -134,7 +134,7 @@ __decorateClass([
|
|
|
134
134
|
watch("open", { waitUntilFirstUpdate: true })
|
|
135
135
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
136
136
|
SdExpandable = __decorateClass([
|
|
137
|
-
customElement("sd-5-17-
|
|
137
|
+
customElement("sd-5-17-2-expandable")
|
|
138
138
|
], SdExpandable);
|
|
139
139
|
setDefaultAnimation("expandable.show", {
|
|
140
140
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|
|
@@ -208,7 +208,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
208
208
|
this.readonly ? "bg-neutral-100" : "bg-white",
|
|
209
209
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "text-black"
|
|
210
210
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
211
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-17-
|
|
211
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-17-2-icon]:pe-8",
|
|
212
212
|
{
|
|
213
213
|
sm: "py-1",
|
|
214
214
|
md: "py-1",
|
|
@@ -216,7 +216,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
216
216
|
}[this.size],
|
|
217
217
|
this.disabled && "cursor-not-allowed",
|
|
218
218
|
textSize
|
|
219
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-5-17-
|
|
219
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-5-17-2-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-5-17-2-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-17-2-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-5-17-2-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
/**
|
|
@@ -330,7 +330,7 @@ __decorateClass([
|
|
|
330
330
|
watch("value", { waitUntilFirstUpdate: true })
|
|
331
331
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
332
332
|
SdTextarea = __decorateClass([
|
|
333
|
-
customElement("sd-5-17-
|
|
333
|
+
customElement("sd-5-17-2-textarea")
|
|
334
334
|
], SdTextarea);
|
|
335
335
|
|
|
336
336
|
export {
|
|
@@ -71,7 +71,7 @@ var SdRadio = class extends SolidElement {
|
|
|
71
71
|
}
|
|
72
72
|
render() {
|
|
73
73
|
return html`<span part="base" class="${cx(
|
|
74
|
-
"sd-5-17-
|
|
74
|
+
"sd-5-17-2-radio group inline-flex items-start items-center text-base leading-normal text-black cursor-pointer align-middle",
|
|
75
75
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
76
76
|
{
|
|
77
77
|
/* sizes, fonts */
|
|
@@ -127,7 +127,7 @@ __decorateClass([
|
|
|
127
127
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
128
128
|
], SdRadio.prototype, "handleDisabledChange", 1);
|
|
129
129
|
SdRadio = __decorateClass([
|
|
130
|
-
customElement("sd-5-17-
|
|
130
|
+
customElement("sd-5-17-2-radio")
|
|
131
131
|
], SdRadio);
|
|
132
132
|
|
|
133
133
|
export {
|
|
@@ -10,7 +10,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
10
10
|
var _a, _b;
|
|
11
11
|
const ul = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("ul");
|
|
12
12
|
ul == null ? void 0 : ul.setAttribute("part", "listbox");
|
|
13
|
-
const popup = document.createElement("sd-5-17-
|
|
13
|
+
const popup = document.createElement("sd-5-17-2-popup");
|
|
14
14
|
popup.appendChild(ul);
|
|
15
15
|
(_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
|
|
16
16
|
popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
|
|
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
22
22
|
popup.anchor = sdInput;
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
|
-
const styles = css`sd-5-17-
|
|
25
|
+
const styles = css`sd-5-17-2-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-5-17-2-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-5-17-2-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-5-17-2-popup li{list-style-type:""}sd-5-17-2-popup li mark{background-color:transparent;font-weight:700}sd-5-17-2-popup li:not(:has(sd-5-17-2-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-5-17-2-popup li:not(:has(sd-5-17-2-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-5-17-2-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
|
|
26
26
|
const styleSheet = new CSSStyleSheet();
|
|
27
27
|
styleSheet.replaceSync(styles);
|
|
28
28
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
35
35
|
}
|
|
36
36
|
input.addEventListener("open", () => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f;
|
|
38
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-17-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-17-2-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
39
39
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
40
40
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
41
41
|
});
|
|
42
42
|
input.addEventListener("close", () => {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-17-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-17-2-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
|
});
|
|
@@ -41,16 +41,16 @@ var SdAccordionGroup = class extends SolidElement {
|
|
|
41
41
|
};
|
|
42
42
|
SdAccordionGroup.styles = [
|
|
43
43
|
...SolidElement.styles,
|
|
44
|
-
css`:host{display:block}::slotted(sd-5-17-
|
|
44
|
+
css`:host{display:block}::slotted(sd-5-17-2-accordion:not(:first-of-type)){margin-top:-1px}`
|
|
45
45
|
];
|
|
46
46
|
__decorateClass([
|
|
47
|
-
queryAssignedElements({ selector: "sd-5-17-
|
|
47
|
+
queryAssignedElements({ selector: "sd-5-17-2-accordion" })
|
|
48
48
|
], SdAccordionGroup.prototype, "_accordionsInDefaultSlot", 2);
|
|
49
49
|
__decorateClass([
|
|
50
50
|
property({ attribute: "close-others", type: Boolean, reflect: true })
|
|
51
51
|
], SdAccordionGroup.prototype, "closeOthers", 2);
|
|
52
52
|
SdAccordionGroup = __decorateClass([
|
|
53
|
-
customElement("sd-5-17-
|
|
53
|
+
customElement("sd-5-17-2-accordion-group")
|
|
54
54
|
], SdAccordionGroup);
|
|
55
55
|
|
|
56
56
|
export {
|
|
@@ -24,7 +24,7 @@ var SdTab = class extends SolidElement {
|
|
|
24
24
|
constructor() {
|
|
25
25
|
super(...arguments);
|
|
26
26
|
this.attrId = ++id;
|
|
27
|
-
this.componentId = `sd-5-17-
|
|
27
|
+
this.componentId = `sd-5-17-2-tab-${this.attrId}`;
|
|
28
28
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
29
29
|
this.localize = new LocalizeController(this);
|
|
30
30
|
this.variant = "default";
|
|
@@ -107,7 +107,7 @@ __decorateClass([
|
|
|
107
107
|
watch(["disabled", "visually-disabled"])
|
|
108
108
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
109
109
|
SdTab = __decorateClass([
|
|
110
|
-
customElement("sd-5-17-
|
|
110
|
+
customElement("sd-5-17-2-tab")
|
|
111
111
|
], SdTab);
|
|
112
112
|
|
|
113
113
|
export {
|
|
@@ -88,7 +88,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
88
88
|
};
|
|
89
89
|
SdRadioButton.styles = [
|
|
90
90
|
...SolidElement.styles,
|
|
91
|
-
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{padding-left:var(--sd-spacing-5,1.25rem);padding-right:var(--sd-spacing-5,1.25rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}:host([size=lg].sd-5-17-
|
|
91
|
+
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{padding-left:var(--sd-spacing-5,1.25rem);padding-right:var(--sd-spacing-5,1.25rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{padding-left:var(--sd-spacing-4,1rem);padding-right:var(--sd-spacing-4,1rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{padding-left:var(--sd-spacing-3,.75rem);padding-right:var(--sd-spacing-3,.75rem)}:host([size=lg].sd-5-17-2-button-group__button:not(.sd-5-17-2-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-3,.75rem)*-1)}:host([size=md].sd-5-17-2-button-group__button:not(.sd-5-17-2-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-2,.5rem)*-1)}:host([size=sm].sd-5-17-2-button-group__button:not(.sd-5-17-2-button-group__button--first)){margin-inline-start:calc(var(--sd-spacing-1,.25rem)*-1)}:host(.sd-5-17-2-button-group__button--hover){z-index:20}:host(.sd-5-17-2-button-group__button--focus),:host(.sd-5-17-2-button-group__button[checked]){z-index:10}`
|
|
92
92
|
];
|
|
93
93
|
__decorateClass([
|
|
94
94
|
query(".button")
|
|
@@ -118,7 +118,7 @@ __decorateClass([
|
|
|
118
118
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
119
119
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
120
120
|
SdRadioButton = __decorateClass([
|
|
121
|
-
customElement("sd-5-17-
|
|
121
|
+
customElement("sd-5-17-2-radio-button")
|
|
122
122
|
], SdRadioButton);
|
|
123
123
|
|
|
124
124
|
export {
|
|
@@ -208,7 +208,7 @@ var SdDrawer = class extends SolidElement {
|
|
|
208
208
|
end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
|
|
209
209
|
start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
|
|
210
210
|
}[this.placement]
|
|
211
|
-
)}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ms-4 absolute top-2 end-2"><sd-5-17-
|
|
211
|
+
)}" role="dialog" aria-modal="true" aria-label="${this.label}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:64px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ms-4 absolute top-2 end-2"><sd-5-17-2-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-5-17-2-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-5-17-2-icon></sd-5-17-2-button></div></header>` : html`<sd-5-17-2-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}" class="absolute top-2 end-2 z-10"><sd-5-17-2-icon label="${this.localize.term("close")}" name="close" library="_internal"></sd-5-17-2-icon></sd-5-17-2-button>`}<div part="body" class="flex-auto block px-4 focus-visible:focus-outline !-outline-offset-2" tabindex="0"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></section>`;
|
|
212
212
|
}
|
|
213
213
|
};
|
|
214
214
|
SdDrawer.styles = [
|
|
@@ -249,7 +249,7 @@ __decorateClass([
|
|
|
249
249
|
watch("contained", { waitUntilFirstUpdate: true })
|
|
250
250
|
], SdDrawer.prototype, "handleNoModalChange", 1);
|
|
251
251
|
SdDrawer = __decorateClass([
|
|
252
|
-
customElement("sd-5-17-
|
|
252
|
+
customElement("sd-5-17-2-drawer")
|
|
253
253
|
], SdDrawer);
|
|
254
254
|
setDefaultAnimation("drawer.showStart", {
|
|
255
255
|
keyframes: [
|
|
@@ -53,7 +53,7 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
53
53
|
}
|
|
54
54
|
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
55
55
|
const element = node;
|
|
56
|
-
return element.tagName.toLowerCase() === "sd-5-17-
|
|
56
|
+
return element.tagName.toLowerCase() === "sd-5-17-2-icon";
|
|
57
57
|
}
|
|
58
58
|
return false;
|
|
59
59
|
});
|
|
@@ -143,19 +143,19 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
143
143
|
slots["description"] && "pt-3",
|
|
144
144
|
!slots["description"] && !this.separated && horizontalPadding,
|
|
145
145
|
this.calculatePaddingX
|
|
146
|
-
)}">${this.divider && this.vertical ? html`<sd-5-17-
|
|
146
|
+
)}">${this.divider && this.vertical ? html`<sd-5-17-2-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-5-17-2-divider>` : ""} <span id="content" part="content-container" class="inline-flex items-center flex-auto"><slot part="content" class="inline-flex text-start"></slot></span>${this.chevron || slots["children"] && this.vertical && !this.separated ? html`<sd-5-17-2-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${cx(
|
|
147
147
|
"h-6 w-6 ml-2 transition-all",
|
|
148
148
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
149
|
-
)}"></sd-5-17-
|
|
149
|
+
)}"></sd-5-17-2-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot id="description" name="description" part="description" class="${cx(
|
|
150
150
|
"inline-block text-sm text-left font-normal text-black pb-3",
|
|
151
151
|
isAccordion || this.separated ? "grow" : "w-full",
|
|
152
152
|
this.calculatePaddingX
|
|
153
153
|
)}"></slot>` : ""}</div></${tag}>`;
|
|
154
154
|
if (this.separated) {
|
|
155
|
-
return html`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${root} ${slots["children"] && this.vertical ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-5-17-
|
|
155
|
+
return html`<div part="details" id="navigation-item-details" class="relative flex flex-col"><div class="flex items-start">${root} ${slots["children"] && this.vertical ? html`<button type="button" title="${this.open ? this.localize.term("collapseNavigationItem") : this.localize.term("expandNavigationItem")}" class="sd-interactive sd-interactive--reset -mt-1" @click="${this.handleClickSummary}"><sd-5-17-2-icon name="chevron-down" part="chevron" library="_internal" color="currentColor" class="${cx(
|
|
156
156
|
"m-4 h-6 w-6 transition-all",
|
|
157
157
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
158
|
-
)}"></sd-5-17-
|
|
158
|
+
)}"></sd-5-17-2-icon></button>` : ""}</div>${this.open ? html`<slot name="children"></slot>` : ""}</div>`;
|
|
159
159
|
}
|
|
160
160
|
if (isAccordion) {
|
|
161
161
|
return html`<details aria-expanded="${this.open}" part="details" id="navigation-item-details" ?open="${this.open}" class="relative">${root}<slot name="children"></slot></details>`;
|
|
@@ -216,7 +216,7 @@ __decorateClass([
|
|
|
216
216
|
property({ type: Boolean, reflect: true })
|
|
217
217
|
], SdNavigationItem.prototype, "separated", 2);
|
|
218
218
|
SdNavigationItem = __decorateClass([
|
|
219
|
-
customElement("sd-5-17-
|
|
219
|
+
customElement("sd-5-17-2-navigation-item")
|
|
220
220
|
], SdNavigationItem);
|
|
221
221
|
|
|
222
222
|
export {
|
|
@@ -129,7 +129,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
129
129
|
down: this.upButton
|
|
130
130
|
}[direction];
|
|
131
131
|
const label = reachedStart ? `${this.localize.term("scrolled")}. ${this.localize.term("scrollToEnd")}` : `${this.localize.term("scrolled")}. ${this.localize.term("scrollToStart")}`;
|
|
132
|
-
(_c = oppositeButton == null ? void 0 : oppositeButton.querySelector("sd-5-17-
|
|
132
|
+
(_c = oppositeButton == null ? void 0 : oppositeButton.querySelector("sd-5-17-2-icon")) == null ? void 0 : _c.setAttribute("label", label);
|
|
133
133
|
if (isKeyboardTriggered) {
|
|
134
134
|
oppositeButton == null ? void 0 : oppositeButton.focus();
|
|
135
135
|
} else {
|
|
@@ -141,7 +141,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
141
141
|
const scrollTo = ["left", "up"].includes(direction) ? "start" : "end";
|
|
142
142
|
const label = scrollTo === "start" ? this.localize.term("scrollToStart") : this.localize.term("scrollToEnd");
|
|
143
143
|
const button = e.target;
|
|
144
|
-
(_a = button.querySelector("sd-5-17-
|
|
144
|
+
(_a = button.querySelector("sd-5-17-2-icon")) == null ? void 0 : _a.setAttribute("label", label);
|
|
145
145
|
}
|
|
146
146
|
render() {
|
|
147
147
|
const scrollButtonClasses = "relative p-0 border-0 bg-transparent cursor-pointer w-5 h-5 flex items-center justify-center sd-interactive rounded-md flex text-lg";
|
|
@@ -158,16 +158,16 @@ var SdScrollable = class extends SolidElement {
|
|
|
158
158
|
)}" @scroll="${this.handleContainerScroll}" tabindex="0"><div id="announcement-container" role="status" class="sr-only"></div><div part="scroll-content" class="flex-1"><slot></slot></div></div>${this.buttons ? html`${this.isScrollHorizontalEnabled ? html`<div part="button-left" class="${cx(
|
|
159
159
|
"absolute z-10 flex items-center justify-center top-0 left-0 h-full w-8 transition-opacity duration-medium ease-in-out",
|
|
160
160
|
!this.canScroll.left && "opacity-0 pointer-events-none"
|
|
161
|
-
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.left || void 0)}" tabindex="${ifDefined(!this.canScroll.left ? -1 : void 0)}" @click="${(e) => this.handleScroll("left", e)}" @blur="${(e) => this.handleButtonBlur("left", e)}"><slot name="icon-start"><sd-5-17-
|
|
161
|
+
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.left || void 0)}" tabindex="${ifDefined(!this.canScroll.left ? -1 : void 0)}" @click="${(e) => this.handleScroll("left", e)}" @blur="${(e) => this.handleButtonBlur("left", e)}"><slot name="icon-start"><sd-5-17-2-icon library="_internal" name="chevron-up" class="rotate-[-90deg]" label="${this.localize.term("scrollToStart")}"></sd-5-17-2-icon></slot></button></div><div part="button-right" class="${cx(
|
|
162
162
|
"absolute z-10 flex items-center justify-center top-0 right-0 h-full w-8 transition-opacity duration-medium ease-in-out",
|
|
163
163
|
!this.canScroll.right && "opacity-0 pointer-events-none"
|
|
164
|
-
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.right || void 0)}" tabindex="${ifDefined(!this.canScroll.right ? -1 : void 0)}" @click="${(e) => this.handleScroll("right", e)}" @blur="${(e) => this.handleButtonBlur("right", e)}"><slot name="icon-end"><sd-5-17-
|
|
164
|
+
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.right || void 0)}" tabindex="${ifDefined(!this.canScroll.right ? -1 : void 0)}" @click="${(e) => this.handleScroll("right", e)}" @blur="${(e) => this.handleButtonBlur("right", e)}"><slot name="icon-end"><sd-5-17-2-icon library="_internal" name="chevron-down" class="rotate-[-90deg]" label="${this.localize.term("scrollToEnd")}"></sd-5-17-2-icon></slot></button></div>` : null} ${this.isScrollVerticalEnabled ? html`<div part="button-top" class="${cx(
|
|
165
165
|
"absolute z-10 flex items-center justify-center top-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",
|
|
166
166
|
!this.canScroll.up && "opacity-0 pointer-events-none"
|
|
167
|
-
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.up || void 0)}" tabindex="${ifDefined(!this.canScroll.up ? -1 : void 0)}" @click="${(e) => this.handleScroll("up", e)}" @blur="${(e) => this.handleButtonBlur("up", e)}"><slot name="icon-start"><sd-5-17-
|
|
167
|
+
)}"><button part="button-start" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.up || void 0)}" tabindex="${ifDefined(!this.canScroll.up ? -1 : void 0)}" @click="${(e) => this.handleScroll("up", e)}" @blur="${(e) => this.handleButtonBlur("up", e)}"><slot name="icon-start"><sd-5-17-2-icon library="_internal" name="chevron-up" label="${this.localize.term("scrollToStart")}"></sd-5-17-2-icon></slot></button></div><div part="button-bottom" class="${cx(
|
|
168
168
|
"absolute z-10 flex items-center justify-center bottom-0 left-0 w-full h-8 transition-opacity duration-medium ease-in-out",
|
|
169
169
|
!this.canScroll.down && "opacity-0 pointer-events-none"
|
|
170
|
-
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.down || void 0)}" tabindex="${ifDefined(!this.canScroll.down ? -1 : void 0)}" @click="${(e) => this.handleScroll("down", e)}" @blur="${(e) => this.handleButtonBlur("down", e)}"><slot name="icon-end"><sd-5-17-
|
|
170
|
+
)}"><button part="button-end" class="${cx(scrollButtonClasses)}" aria-hidden="${ifDefined(!this.canScroll.down || void 0)}" tabindex="${ifDefined(!this.canScroll.down ? -1 : void 0)}" @click="${(e) => this.handleScroll("down", e)}" @blur="${(e) => this.handleButtonBlur("down", e)}"><slot name="icon-end"><sd-5-17-2-icon library="_internal" name="chevron-down" label="${this.localize.term("scrollToEnd")}"></sd-5-17-2-icon></slot></button></div>` : null}` : null} ${this.shadows ? html`${this.isScrollHorizontalEnabled ? html`<div part="shadow-left" class="${cx(
|
|
171
171
|
"left top-0 left-0 w-[6px] h-full",
|
|
172
172
|
scrollShadowClasses,
|
|
173
173
|
this.canScroll.left ? "opacity-100" : "opacity-0"
|
|
@@ -188,7 +188,7 @@ var SdScrollable = class extends SolidElement {
|
|
|
188
188
|
};
|
|
189
189
|
SdScrollable.styles = [
|
|
190
190
|
...SolidElement.styles,
|
|
191
|
-
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-5-17-
|
|
191
|
+
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-5-17-2-icon--top{align-self:flex-start}.sd-5-17-2-icon--down{align-self:flex-end}`
|
|
192
192
|
];
|
|
193
193
|
__decorateClass([
|
|
194
194
|
query('[part="button-right"] button')
|
|
@@ -236,7 +236,7 @@ __decorateClass([
|
|
|
236
236
|
state()
|
|
237
237
|
], SdScrollable.prototype, "isScrollVerticalEnabled", 2);
|
|
238
238
|
SdScrollable = __decorateClass([
|
|
239
|
-
customElement("sd-5-17-
|
|
239
|
+
customElement("sd-5-17-2-scrollable")
|
|
240
240
|
], SdScrollable);
|
|
241
241
|
|
|
242
242
|
export {
|
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdLink.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
css`::slotted(sd-5-17-
|
|
87
|
+
css`::slotted(sd-5-17-2-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-5-17-2-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-5-17-2-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query("a")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
property({ reflect: true })
|
|
112
112
|
], SdLink.prototype, "download", 2);
|
|
113
113
|
SdLink = __decorateClass([
|
|
114
|
-
customElement("sd-5-17-
|
|
114
|
+
customElement("sd-5-17-2-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<label part="base" class="${cx(
|
|
121
|
-
"sd-5-17-
|
|
121
|
+
"sd-5-17-2-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 */
|
|
@@ -160,7 +160,7 @@ 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-5-17-
|
|
163
|
+
)}"></div></div>${this.checked ? html`<sd-5-17-2-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-5-17-2-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-5-17-2-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-5-17-2-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" : this.showInvalidStyle ? "text-error" : "text-black"
|
|
166
166
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
|
@@ -222,7 +222,7 @@ __decorateClass([
|
|
|
222
222
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
223
223
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
|
224
224
|
SdCheckbox = __decorateClass([
|
|
225
|
-
customElement("sd-5-17-
|
|
225
|
+
customElement("sd-5-17-2-checkbox")
|
|
226
226
|
], SdCheckbox);
|
|
227
227
|
|
|
228
228
|
export {
|
|
@@ -385,7 +385,7 @@ var SdInput = class extends SolidElement {
|
|
|
385
385
|
this.size === "sm" ? "h-6" : "h-8",
|
|
386
386
|
textSize
|
|
387
387
|
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
388
|
-
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-17-
|
|
388
|
+
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-17-2-icon class="${cx("text-neutral-700", iconSize)}" library="_internal" name="closing-round"></sd-5-17-2-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-5-17-2-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye"></sd-5-17-2-icon></slot>` : html`<slot name="hide-password-icon"><sd-5-17-2-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye-crossed-out"></sd-5-17-2-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-5-17-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-5-17-2-icon>` : ""} ${this.type === "time" ? html`<sd-5-17-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="clock"></sd-5-17-2-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-5-17-2-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-17-2-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-17-2-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-5-17-2-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-5-17-2-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="confirm-circle" part="valid-icon"></sd-5-17-2-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-5-17-2-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-17-2-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-5-17-2-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-17-2-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-1", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
/**
|
|
@@ -393,7 +393,7 @@ var SdInput = class extends SolidElement {
|
|
|
393
393
|
*/
|
|
394
394
|
SdInput.styles = [
|
|
395
395
|
...SolidElement.styles,
|
|
396
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-17-
|
|
396
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-17-2-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
|
397
397
|
];
|
|
398
398
|
__decorateClass([
|
|
399
399
|
query("#input")
|
|
@@ -523,7 +523,7 @@ __decorateClass([
|
|
|
523
523
|
watch("value", { waitUntilFirstUpdate: true })
|
|
524
524
|
], SdInput.prototype, "handleValueChange", 1);
|
|
525
525
|
SdInput = __decorateClass([
|
|
526
|
-
customElement("sd-5-17-
|
|
526
|
+
customElement("sd-5-17-2-input")
|
|
527
527
|
], SdInput);
|
|
528
528
|
|
|
529
529
|
export {
|