@solid-design-system/components 6.24.2 → 6.25.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/custom-elements.json +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/chunks/chunk.2FRV4JI3.js +1 -1
- package/cdn-versioned/chunks/chunk.2TCDQYYC.js +2 -2
- package/cdn-versioned/chunks/chunk.32WSNOK5.js +2 -2
- package/cdn-versioned/chunks/chunk.36LY3DX3.js +2 -2
- package/cdn-versioned/chunks/chunk.3FXWTJNG.js +2 -2
- package/cdn-versioned/chunks/chunk.3HJR4W7S.js +2 -2
- package/cdn-versioned/chunks/chunk.3NV5EFHF.js +9 -9
- package/cdn-versioned/chunks/chunk.4PBTCGFX.js +2 -2
- package/cdn-versioned/chunks/chunk.4TEHVEJ5.js +2 -2
- package/cdn-versioned/chunks/chunk.5B4C742P.js +2 -2
- package/cdn-versioned/chunks/chunk.5D2QLOPO.js +2 -2
- package/cdn-versioned/chunks/chunk.5LQXIFL5.js +1 -1
- package/cdn-versioned/chunks/chunk.6ZVU7R22.js +2 -2
- package/cdn-versioned/chunks/chunk.7EYPTWOC.js +2 -2
- package/cdn-versioned/chunks/chunk.A3QRJ5ME.js +2 -2
- package/cdn-versioned/chunks/chunk.BJGMSYKC.js +1 -1
- package/cdn-versioned/chunks/chunk.BMOWDQOV.js +2 -2
- package/cdn-versioned/chunks/chunk.BS3GML7W.js +3 -3
- package/cdn-versioned/chunks/chunk.CIRCXXWS.js +2 -2
- package/cdn-versioned/chunks/chunk.CPEHJK3R.js +1 -1
- package/cdn-versioned/chunks/chunk.D4KX4Q6E.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.EDVI5WKO.js +3 -3
- package/cdn-versioned/chunks/chunk.FK2QE2LJ.js +2 -2
- package/cdn-versioned/chunks/chunk.GCCUJ5RI.js +3 -3
- package/cdn-versioned/chunks/chunk.GICLEIQR.js +1 -1
- package/cdn-versioned/chunks/chunk.GNQ2AH6R.js +5 -5
- package/cdn-versioned/chunks/chunk.GWINLIF6.js +2 -2
- package/cdn-versioned/chunks/chunk.HA4FSESN.js +2 -2
- package/cdn-versioned/chunks/chunk.ISEX6JDK.js +2 -2
- package/cdn-versioned/chunks/chunk.IXCKRXZP.js +2 -2
- package/cdn-versioned/chunks/chunk.KJ4O2AAU.js +2 -2
- package/cdn-versioned/chunks/chunk.KQBMEX4Q.js +2 -2
- package/cdn-versioned/chunks/chunk.L7DV2MLH.js +1 -1
- package/cdn-versioned/chunks/chunk.LVX7YSFZ.js +2 -2
- package/cdn-versioned/chunks/chunk.LWNOAXVZ.js +2 -2
- package/cdn-versioned/chunks/chunk.LZRL7OLU.js +1 -1
- package/cdn-versioned/chunks/chunk.MXPGGLKX.js +2 -2
- package/cdn-versioned/chunks/chunk.NXUXZCC5.js +1 -1
- package/cdn-versioned/chunks/chunk.OFQAFMQN.js +2 -2
- package/cdn-versioned/chunks/chunk.OJN4DDNN.js +2 -2
- package/cdn-versioned/chunks/chunk.OW556SXG.js +2 -2
- package/cdn-versioned/chunks/chunk.P4GZNPGK.js +1 -1
- package/cdn-versioned/chunks/chunk.PQIUYCLY.js +2 -2
- package/cdn-versioned/chunks/chunk.PZSKPF3M.js +2 -2
- package/cdn-versioned/chunks/chunk.R3CFPFL7.js +2 -2
- package/cdn-versioned/chunks/chunk.RJ7RNCAD.js +2 -2
- package/cdn-versioned/chunks/chunk.SK3BEBJX.js +2 -2
- package/cdn-versioned/chunks/chunk.SW3IDYJO.js +1 -1
- package/cdn-versioned/chunks/chunk.TNHTS2QZ.js +2 -2
- package/cdn-versioned/chunks/chunk.TQXBNN2G.js +2 -2
- package/cdn-versioned/chunks/chunk.TTYJJ4T5.js +2 -2
- package/cdn-versioned/chunks/chunk.TYVGKCJX.js +2 -2
- package/cdn-versioned/chunks/chunk.U2Q5EORY.js +2 -2
- package/cdn-versioned/chunks/chunk.VMZSSKC5.js +1 -1
- package/cdn-versioned/chunks/chunk.VSRBSS6K.js +2 -2
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WB2ATZAO.js +5 -5
- package/cdn-versioned/chunks/chunk.XND4CVBN.js +2 -2
- package/cdn-versioned/chunks/chunk.XQ2AM7JO.js +2 -2
- package/cdn-versioned/chunks/chunk.YDZ7FOAV.js +2 -2
- package/cdn-versioned/chunks/chunk.YGYXL3BZ.js +2 -2
- package/cdn-versioned/chunks/chunk.ZC3U3HHB.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFTFC2P4.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.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/progress-bar/progress-bar.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/range/range.d.ts +1 -1
- package/cdn-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/cdn-versioned/components/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 +253 -253
- package/cdn-versioned/internal/form.js +2 -2
- package/cdn-versioned/solid-components.bundle.js +81 -81
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +81 -81
- package/cdn-versioned/vscode.html-custom-data.json +109 -109
- package/cdn-versioned/web-types.json +165 -165
- package/dist/custom-elements.json +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/chunks/chunk.2KU6UVWZ.js +2 -2
- package/dist-versioned/chunks/chunk.2N4PQ34O.js +11 -11
- package/dist-versioned/chunks/chunk.4F4N3QQ6.js +4 -4
- package/dist-versioned/chunks/chunk.4QZT4Y6W.js +3 -3
- package/dist-versioned/chunks/chunk.4SNDWIKF.js +2 -2
- package/dist-versioned/chunks/chunk.5XP6OIKT.js +3 -3
- package/dist-versioned/chunks/chunk.6DDIBH76.js +14 -14
- package/dist-versioned/chunks/chunk.6MMNEOUE.js +2 -2
- package/dist-versioned/chunks/chunk.6V7SKGRY.js +4 -4
- package/dist-versioned/chunks/chunk.AIG5N2FZ.js +1 -1
- package/dist-versioned/chunks/chunk.AXZSMHWW.js +4 -4
- package/dist-versioned/chunks/chunk.BCZIRWVM.js +3 -3
- package/dist-versioned/chunks/chunk.BIYQLL42.js +11 -11
- package/dist-versioned/chunks/chunk.BVWAKEFC.js +1 -1
- package/dist-versioned/chunks/chunk.C3WIBDGG.js +2 -2
- package/dist-versioned/chunks/chunk.CTVKYPFB.js +5 -5
- package/dist-versioned/chunks/chunk.D3CLWL6Z.js +13 -13
- package/dist-versioned/chunks/chunk.D6W4R7CF.js +12 -12
- package/dist-versioned/chunks/chunk.DDBIUIIK.js +6 -6
- package/dist-versioned/chunks/chunk.DGV5QTN6.js +5 -5
- package/dist-versioned/chunks/chunk.EAJ3CM6N.js +4 -4
- package/dist-versioned/chunks/chunk.EHIUARAT.js +2 -2
- package/dist-versioned/chunks/chunk.EIHPDMVS.js +5 -5
- package/dist-versioned/chunks/chunk.EYTDOBZ4.js +6 -6
- package/dist-versioned/chunks/chunk.FMLTJI4Z.js +7 -7
- package/dist-versioned/chunks/chunk.FWMPHWGG.js +10 -10
- package/dist-versioned/chunks/chunk.G5PJCSSV.js +7 -7
- package/dist-versioned/chunks/chunk.GAQZ5NES.js +5 -5
- package/dist-versioned/chunks/chunk.GQ4ENMDG.js +10 -10
- package/dist-versioned/chunks/chunk.GUTW4VQD.js +5 -5
- package/dist-versioned/chunks/chunk.GUWNLJ7W.js +25 -25
- package/dist-versioned/chunks/chunk.JHGRQU5N.js +6 -6
- package/dist-versioned/chunks/chunk.JHHNBCX5.js +10 -10
- package/dist-versioned/chunks/chunk.JYUKVPUJ.js +1 -1
- package/dist-versioned/chunks/chunk.KEJFWGZI.js +4 -4
- package/dist-versioned/chunks/chunk.KEUBCTKM.js +8 -8
- package/dist-versioned/chunks/chunk.KGQHJROJ.js +3 -3
- package/dist-versioned/chunks/chunk.LKDQ3TXG.js +2 -2
- package/dist-versioned/chunks/chunk.LMXGFI7F.js +11 -11
- package/dist-versioned/chunks/chunk.M52SSKFL.js +10 -10
- package/dist-versioned/chunks/chunk.MUOLK3RU.js +33 -33
- package/dist-versioned/chunks/chunk.N7WMSLKA.js +1 -1
- package/dist-versioned/chunks/chunk.NIKLDQ35.js +2 -2
- package/dist-versioned/chunks/chunk.NNMBBWIU.js +2 -2
- package/dist-versioned/chunks/chunk.OXCSSHRT.js +10 -10
- package/dist-versioned/chunks/chunk.P7RNSWL3.js +1 -1
- package/dist-versioned/chunks/chunk.QWPXBE3R.js +3 -3
- package/dist-versioned/chunks/chunk.R3ZRRK4P.js +4 -4
- package/dist-versioned/chunks/chunk.R6M52RPI.js +5 -5
- package/dist-versioned/chunks/chunk.RQN4WSFL.js +5 -5
- package/dist-versioned/chunks/chunk.RWGWOZ23.js +1 -1
- package/dist-versioned/chunks/chunk.SLLHUOTL.js +2 -2
- package/dist-versioned/chunks/chunk.SUQL6D3H.js +5 -5
- package/dist-versioned/chunks/chunk.TEHKQWUZ.js +6 -6
- package/dist-versioned/chunks/chunk.TEHS57B5.js +2 -2
- package/dist-versioned/chunks/chunk.TRG462TJ.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.WASJNAOH.js +25 -25
- package/dist-versioned/chunks/chunk.XFU4IJSC.js +5 -5
- package/dist-versioned/chunks/chunk.XRYVTNMS.js +3 -3
- package/dist-versioned/chunks/chunk.YEO5QKA7.js +2 -2
- package/dist-versioned/chunks/chunk.YNVPCLKL.js +5 -5
- package/dist-versioned/chunks/chunk.YSZ7WBON.js +1 -1
- package/dist-versioned/chunks/chunk.ZCOV36IT.js +2 -2
- package/dist-versioned/chunks/chunk.ZF4JCUFV.js +6 -6
- 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.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/progress-bar/progress-bar.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/range/range.d.ts +1 -1
- package/dist-versioned/components/range-tick/range-tick.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/skeleton/skeleton.d.ts +1 -1
- package/dist-versioned/components/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 +253 -253
- package/dist-versioned/internal/form.js +2 -2
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/vscode.html-custom-data.json +109 -109
- package/dist-versioned/web-types.json +165 -165
- package/package.json +2 -1
|
@@ -97,7 +97,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
97
97
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
|
98
98
|
* or an element within the slotted elements shadow root.
|
|
99
99
|
*
|
|
100
|
-
* e.g. the accessible trigger of an <sd-6-
|
|
100
|
+
* e.g. the accessible trigger of an <sd-6-25-1-button> is a <button> located inside its shadow root.
|
|
101
101
|
*
|
|
102
102
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
103
103
|
* */
|
|
@@ -108,11 +108,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
108
108
|
if (accessibleTrigger) {
|
|
109
109
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
110
110
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
|
111
|
-
case "sd-6-
|
|
112
|
-
case "sd-6-
|
|
111
|
+
case "sd-6-25-1-button":
|
|
112
|
+
case "sd-6-25-1-icon-button":
|
|
113
113
|
target = accessibleTrigger.button;
|
|
114
114
|
break;
|
|
115
|
-
case "sd-6-
|
|
115
|
+
case "sd-6-25-1-navigation-item":
|
|
116
116
|
target = accessibleTrigger.button;
|
|
117
117
|
break;
|
|
118
118
|
default:
|
|
@@ -136,7 +136,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
getMenu() {
|
|
139
|
-
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-6-
|
|
139
|
+
return this.panel.assignedElements({ flatten: true }).find((el) => el.tagName.toLowerCase() === "sd-6-25-1-menu");
|
|
140
140
|
}
|
|
141
141
|
handleKeyDown(event) {
|
|
142
142
|
if (this.open && event.key === "Escape") {
|
|
@@ -148,7 +148,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
148
148
|
handleDocumentKeyDown(event) {
|
|
149
149
|
var _a;
|
|
150
150
|
if (event.key === "Tab") {
|
|
151
|
-
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-6-
|
|
151
|
+
if (this.open && ((_a = document.activeElement) == null ? void 0 : _a.tagName.toLowerCase()) === "sd-6-25-1-menu-item") {
|
|
152
152
|
event.preventDefault();
|
|
153
153
|
this.hide();
|
|
154
154
|
this.focusOnTrigger();
|
|
@@ -174,7 +174,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
174
174
|
}
|
|
175
175
|
handlePanelSelect(event) {
|
|
176
176
|
const target = event.target;
|
|
177
|
-
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-6-
|
|
177
|
+
if (!this.stayOpenOnSelect && target.tagName.toLowerCase() === "sd-6-25-1-menu") {
|
|
178
178
|
this.hide();
|
|
179
179
|
this.focusOnTrigger();
|
|
180
180
|
}
|
|
@@ -263,7 +263,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
263
263
|
}
|
|
264
264
|
addOpenListeners() {
|
|
265
265
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
266
|
-
this.panel.addEventListener("sd-6-
|
|
266
|
+
this.panel.addEventListener("sd-6-25-1-select", this.handlePanelSelect);
|
|
267
267
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
268
268
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
269
269
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -271,7 +271,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
271
271
|
removeOpenListeners() {
|
|
272
272
|
if (this.panel) {
|
|
273
273
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
274
|
-
this.panel.removeEventListener("sd-6-
|
|
274
|
+
this.panel.removeEventListener("sd-6-25-1-select", this.handlePanelSelect);
|
|
275
275
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
276
276
|
}
|
|
277
277
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -304,13 +304,13 @@ var SdDropdown = class extends SolidElement {
|
|
|
304
304
|
}
|
|
305
305
|
}
|
|
306
306
|
render() {
|
|
307
|
-
return html`<sd-6-
|
|
307
|
+
return html`<sd-6-25-1-popup part="base" id="dropdown" exportparts="
|
|
308
308
|
popup:base__popup,
|
|
309
309
|
" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
|
|
310
|
-
"panel-color-border border shadow sd-6-
|
|
310
|
+
"panel-color-border border shadow sd-6-25-1-dropdown-color-background block",
|
|
311
311
|
this.open ? "pointer-events-auto" : "pointer-events-none",
|
|
312
312
|
this.rounded && "rounded-md"
|
|
313
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-6-
|
|
313
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-6-25-1-popup>`;
|
|
314
314
|
}
|
|
315
315
|
};
|
|
316
316
|
SdDropdown.styles = [
|
|
@@ -364,7 +364,7 @@ __decorateClass([
|
|
|
364
364
|
watch("open", { waitUntilFirstUpdate: true })
|
|
365
365
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
366
366
|
SdDropdown = __decorateClass([
|
|
367
|
-
customElement("sd-6-
|
|
367
|
+
customElement("sd-6-25-1-dropdown")
|
|
368
368
|
], SdDropdown);
|
|
369
369
|
setDefaultAnimation("dropdown.show", {
|
|
370
370
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -88,14 +88,14 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
88
88
|
}
|
|
89
89
|
}
|
|
90
90
|
getAllRadios() {
|
|
91
|
-
const radios = [...this.querySelectorAll("sd-6-
|
|
91
|
+
const radios = [...this.querySelectorAll("sd-6-25-1-radio, sd-6-25-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-
|
|
98
|
+
const target = event.target.closest("sd-6-25-1-radio, sd-6-25-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-
|
|
188
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-6-25-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-
|
|
200
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-6-25-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-
|
|
207
|
+
if (customElements.get("sd-6-25-1-radio") && customElements.get("sd-6-25-1-radio-button")) {
|
|
208
208
|
this.syncRadioElements();
|
|
209
209
|
return;
|
|
210
210
|
}
|
|
211
|
-
if (customElements.get("sd-6-
|
|
211
|
+
if (customElements.get("sd-6-25-1-radio")) {
|
|
212
212
|
this.syncRadioElements();
|
|
213
213
|
} else {
|
|
214
|
-
customElements.whenDefined("sd-6-
|
|
214
|
+
customElements.whenDefined("sd-6-25-1-radio").then(() => this.syncRadios());
|
|
215
215
|
}
|
|
216
|
-
if (customElements.get("sd-6-
|
|
216
|
+
if (customElements.get("sd-6-25-1-radio-button")) {
|
|
217
217
|
this.syncRadioElements();
|
|
218
218
|
} else {
|
|
219
|
-
customElements.whenDefined("sd-6-
|
|
219
|
+
customElements.whenDefined("sd-6-25-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-
|
|
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-25-1-button-group class="border border-primary sd-6-25-1-radio-button-group-border-radius sd-6-25-1-radio-button-group-border-width sd-6-25-1-radio-button-group-padding" part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-6-25-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-25-1-icon part="invalid-icon" class="${cx("text-error")}" library="_internal" name="risk"></sd-6-25-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-
|
|
306
|
+
:host{display:block}:host([orientation=vertical]) ::slotted(sd-6-25-1-radio){margin-bottom:var(--sd-spacing-2);display:flex}:host([orientation=vertical]) ::slotted(sd-6-25-1-radio:last-of-type){margin-bottom:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]) ::slotted(sd-6-25-1-radio){margin-right:var(--sd-spacing-6)}:host([orientation=horizontal]) ::slotted(sd-6-25-1-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-25-1-radio){margin-right:var(--sd-spacing-4)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-6-25-1-radio:last-of-type){margin-right:calc(var(--sd-spacing-1) * 0)}:host([required]) #label::after{content:' *'}:host:has(sd-6-25-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-
|
|
360
|
+
customElement("sd-6-25-1-radio-group")
|
|
361
361
|
], SdRadioGroup);
|
|
362
362
|
|
|
363
363
|
export {
|
|
@@ -55,19 +55,19 @@ var SdProgressBar = class extends SolidElement {
|
|
|
55
55
|
this.isLoading ? this.localize.term("loading") : this.valueFormatter(this.clampedValue)
|
|
56
56
|
)}" aria-label="${ifDefined(!hasLabel ? this.label || this.localize.term("progress") : void 0)}" aria-labelledby="${ifDefined(hasLabel ? "label" : this.label)}" style="${`--percentage: ${this.percentage}%;`}">${this.isLoading ? html`<div part="track" class="${cx(
|
|
57
57
|
"absolute top-0 left-0 h-full progress-bar__track--loading-left",
|
|
58
|
-
this.inverted ? "sd-6-
|
|
58
|
+
this.inverted ? "sd-6-25-1-progress-bar__slide-bar--inverted-color-background" : "sd-6-25-1-progress-bar__slide-bar-color-background"
|
|
59
59
|
)}"></div><div part="track" class="${cx(
|
|
60
60
|
"absolute top-0 right-0 h-full progress-bar__track--loading-right",
|
|
61
|
-
this.inverted ? "sd-6-
|
|
61
|
+
this.inverted ? "sd-6-25-1-progress-bar__slide-bar--inverted-color-background" : "sd-6-25-1-progress-bar__slide-bar-color-background"
|
|
62
62
|
)}"></div><div part="indicator" class="${cx(
|
|
63
63
|
"absolute top-0 h-full progress-bar__indicator--loading",
|
|
64
|
-
this.inverted ? "sd-6-
|
|
64
|
+
this.inverted ? "sd-6-25-1-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
65
65
|
)}"></div>` : html`<div part="indicator" class="${cx(
|
|
66
66
|
"w-[var(--percentage)]",
|
|
67
|
-
this.inverted ? "sd-6-
|
|
67
|
+
this.inverted ? "sd-6-25-1-progress-bar--active--inverted-color-background" : "bg-accent"
|
|
68
68
|
)}"></div>${this.value && this.value > 0 && this.value < this.safeMax ? html`<div class="w-0.5 shrink-0"></div>` : nothing}<div part="track" class="${cx(
|
|
69
69
|
"flex-1",
|
|
70
|
-
this.inverted ? "sd-6-
|
|
70
|
+
this.inverted ? "sd-6-25-1-progress-bar__slide-bar--inverted-color-background" : "sd-6-25-1-progress-bar__slide-bar-color-background"
|
|
71
71
|
)}"></div>`}</div>${this.showValue ? html`<span class="${cx(
|
|
72
72
|
"text-neutral-700 text-xs w-shrink-0",
|
|
73
73
|
this.inverted ? "text-white" : "text-neutral-700",
|
|
@@ -103,7 +103,7 @@ __decorateClass([
|
|
|
103
103
|
property({ attribute: false })
|
|
104
104
|
], SdProgressBar.prototype, "valueFormatter", 2);
|
|
105
105
|
SdProgressBar = __decorateClass([
|
|
106
|
-
customElement("sd-6-
|
|
106
|
+
customElement("sd-6-25-1-progress-bar")
|
|
107
107
|
], SdProgressBar);
|
|
108
108
|
|
|
109
109
|
export {
|
|
@@ -91,14 +91,14 @@ var SdOption = class extends SolidElement {
|
|
|
91
91
|
this.disabled && "border-neutral-500 top-1",
|
|
92
92
|
!this.disabled && this.hasHover ? "h-full top-0" : "top-1"
|
|
93
93
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
|
94
|
-
"relative flex flex-shrink-0 items-center justify-center border sd-6-
|
|
94
|
+
"relative flex flex-shrink-0 items-center justify-center border sd-6-25-1-checkbox-border-width rounded-sm h-4 w-4 mr-2",
|
|
95
95
|
{
|
|
96
96
|
sm: "mt-0.5",
|
|
97
97
|
md: "mt-1",
|
|
98
98
|
lg: "mt-1"
|
|
99
99
|
}[this.size],
|
|
100
|
-
this.disabled ? "sd-6-
|
|
101
|
-
)}">${this.selected ? html`<sd-6-
|
|
100
|
+
this.disabled ? "sd-6-25-1-option--disabled-color-border" : this.selected ? "bg-accent border-accent" : "bg-white form-control-color-border"
|
|
101
|
+
)}">${this.selected ? html`<sd-6-25-1-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-6-25-1-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
|
102
102
|
}
|
|
103
103
|
};
|
|
104
104
|
/**
|
|
@@ -107,7 +107,7 @@ var SdOption = class extends SolidElement {
|
|
|
107
107
|
SdOption.styles = [
|
|
108
108
|
...SolidElement.styles,
|
|
109
109
|
css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer theme,base,components,utilities;
|
|
110
|
-
:host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}.sd-6-
|
|
110
|
+
:host{position:relative;display:block;width:100%;--tw-outline-style:none!important;outline-style:none!important}.focus-outline-offset{outline-offset:-2px}.sd-6-25-1-option--disabled-color-border{border-color:rgb(var(--sd-option--disabled-color-border))}`
|
|
111
111
|
];
|
|
112
112
|
__decorateClass([
|
|
113
113
|
query('[part="base"]')
|
|
@@ -146,7 +146,7 @@ __decorateClass([
|
|
|
146
146
|
watch("value")
|
|
147
147
|
], SdOption.prototype, "handleValueChange", 1);
|
|
148
148
|
SdOption = __decorateClass([
|
|
149
|
-
customElement("sd-6-
|
|
149
|
+
customElement("sd-6-25-1-option")
|
|
150
150
|
], SdOption);
|
|
151
151
|
|
|
152
152
|
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-6-
|
|
13
|
+
const popup = document.createElement("sd-6-25-1-popup");
|
|
14
14
|
popup.appendChild(ul);
|
|
15
15
|
(_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
|
|
16
16
|
popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
|
|
@@ -23,7 +23,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
25
|
const styles = css`/*! tailwindcss v4.3.0 | MIT License | https://tailwindcss.com */@layer properties;@layer theme,base,components,utilities;
|
|
26
|
-
sd-6-
|
|
26
|
+
sd-6-25-1-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:scroll;border-bottom-right-radius:var(--sd-radius);border-bottom-left-radius:var(--sd-radius);border-style:var(--tw-border-style);border-width:var(--sd-border-width-2);border-top-style:var(--tw-border-style);border-top-width:0;border-color:rgba(var(--sd-color-border-primary));background-color:rgba(var(--sd-color-background-white));padding-inline:var(--sd-spacing-2);padding-block:var(--sd-spacing-3);--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-25-1-popup li{transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function,cubic-bezier(.4,0,.2,1)));transition-duration:var(--tw-duration,var(--default-transition-duration,150ms))}sd-6-25-1-popup li:hover:not([disabled]){background-color:rgba(var(--sd-color-background-neutral-100))}sd-6-25-1-popup li{list-style-type:''}sd-6-25-1-popup li mark{background-color:transparent;--tw-font-weight:var(--sd-font-weight-bold);font-weight:var(--sd-font-weight-bold)}sd-6-25-1-popup li:not(:has(sd-6-25-1-option)){cursor:pointer;padding-inline:var(--sd-spacing-4);padding-block:var(--sd-spacing-3);font-size:var(--sd-text-base);line-height:var(--tw-leading,var(--text-base--line-height,calc(1.5 / 1)));color:rgba(var(--sd-color-text-black))}sd-6-25-1-popup li:not(:has(sd-6-25-1-option)):hover{background-color:rgba(var(--sd-color-background-neutral-200))}sd-6-25-1-popup li[aria-selected=true]{background-color:rgba(var(--sd-color-background-neutral-200))}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-font-weight{syntax:"*";inherits:false}`;
|
|
27
27
|
const styleSheet = new CSSStyleSheet();
|
|
28
28
|
styleSheet.replaceSync(styles);
|
|
29
29
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -36,13 +36,13 @@ sd-6-24-2-popup::part(popup){z-index:var(--sd-z-index-dropdown,900);overflow-y:s
|
|
|
36
36
|
}
|
|
37
37
|
input.addEventListener("open", () => {
|
|
38
38
|
var _a, _b, _c, _d, _e, _f;
|
|
39
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-
|
|
39
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-25-1-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
40
40
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
41
41
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
42
42
|
});
|
|
43
43
|
input.addEventListener("close", () => {
|
|
44
44
|
var _a, _b, _c, _d, _e, _f;
|
|
45
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-
|
|
45
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-6-25-1-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
46
46
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
47
47
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
48
48
|
});
|
|
@@ -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-6-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-6-25-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-6-25-1-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-6-25-1-icon library="_internal" name="chevron-down" class="text-xl"></sd-6-25-1-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();
|
|
@@ -139,7 +139,7 @@ __decorateClass([
|
|
|
139
139
|
watch("open", { waitUntilFirstUpdate: true })
|
|
140
140
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
141
141
|
SdExpandable = __decorateClass([
|
|
142
|
-
customElement("sd-6-
|
|
142
|
+
customElement("sd-6-25-1-expandable")
|
|
143
143
|
], SdExpandable);
|
|
144
144
|
setDefaultAnimation("expandable.show", {
|
|
145
145
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|
|
@@ -112,14 +112,14 @@ var SdSwitch = class extends SolidElement {
|
|
|
112
112
|
"group flex items-center text-base leading-normal text-black cursor-pointer",
|
|
113
113
|
this.disabled && "hover:cursor-not-allowed"
|
|
114
114
|
)}"><input id="input" class="peer absolute opacity-0 p-0 m-0 pointer-events-none" type="checkbox" role="switch" title="${this.title}" name="${this.name}" value="${ifDefined(this.value)}" .checked="${live(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${this.checked ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" aria-describedby="invalid-message" @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"}" class="${cx(
|
|
115
|
-
`relative flex flex-initial items-center justify-center sd-6-
|
|
115
|
+
`relative flex flex-initial items-center justify-center sd-6-25-1-switch-border-width rounded-full h-4 w-8 transition-colors ease duration-100
|
|
116
116
|
peer-focus-visible:outline peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2
|
|
117
117
|
peer-focus-visible:outline-primary outline-transparent transition-colors ease-in-out duration-medium hover:duration-fast`,
|
|
118
|
-
this.disabled && this.checked ? "bg-neutral-500" : this.disabled ? "border-neutral-500" : this.showInvalidStyle ? this.checked ? "border-error bg-error hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400" : "border-error bg-white hover:border-error-400 hover:bg-white group-hover:border-error-400 group-hover:bg-white" : this.checked ? "border-accent hover:sd-6-
|
|
118
|
+
this.disabled && this.checked ? "bg-neutral-500" : this.disabled ? "border-neutral-500" : this.showInvalidStyle ? this.checked ? "border-error bg-error hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400" : "border-error bg-white hover:border-error-400 hover:bg-white group-hover:border-error-400 group-hover:bg-white" : this.checked ? "border-accent hover:sd-6-25-1-switch--checked--hover-color-background bg-accent hover:border-accent-550 group-hover:border-accent-550 group-hover:sd-6-25-1-switch--checked--hover-color-background" : "sd-6-25-1-switch--unchecked-color-border bg-white hover:sd-6-25-1-switch--unchecked--hover-color-background group-hover:sd-6-25-1-switch--unchecked--hover-color-background"
|
|
119
119
|
)}"><span id="thumb" part="thumb" class="${cx(
|
|
120
120
|
"w-2.5 h-2.5 rounded-full transition[transform,colors] ease-in-out duration-medium",
|
|
121
|
-
this.disabled && this.checked ? "translate-x-2" : this.disabled ? "-translate-x-2" : this.showInvalidStyle ? this.checked ? "translate-x-2" : "bg-error -translate-x-2 hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400" : this.checked ? "translate-x-2" : "-translate-x-2 sd-6-
|
|
122
|
-
)}"></span> </span><span part="label" id="label" class="${cx("select-none inline-block ml-2", this.disabled ? "text-neutral-500" : "sd-6-
|
|
121
|
+
this.disabled && this.checked ? "translate-x-2" : this.disabled ? "-translate-x-2" : this.showInvalidStyle ? this.checked ? "translate-x-2" : "bg-error -translate-x-2 hover:bg-error-400 hover:border-error-400 group-hover:border-error-400 group-hover:bg-error-400" : this.checked ? "translate-x-2" : "-translate-x-2 sd-6-25-1-switch--unchecked__icon-color-background"
|
|
122
|
+
)}"></span> </span><span part="label" id="label" class="${cx("select-none inline-block ml-2", this.disabled ? "text-neutral-500" : "sd-6-25-1-switch-color-text")}"><slot></slot></span></label> ${this.hasSlotController.test("tooltip") ? html`<slot name="tooltip"></slot>` : null}</div><div part="invalid-icon-message" class="flex items-center gap-2 mt-2">${this.showInvalidStyle ? html`<sd-6-25-1-icon part="invalid-icon" class="${cx("text-error")}" library="_internal" name="risk"></sd-6-25-1-icon>` : ""} ${this.formControlController.renderInvalidMessage("lg")}</div>`;
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
125
|
/**
|
|
@@ -170,7 +170,7 @@ __decorateClass([
|
|
|
170
170
|
watch(["checked"], { waitUntilFirstUpdate: true })
|
|
171
171
|
], SdSwitch.prototype, "handleStateChange", 1);
|
|
172
172
|
SdSwitch = __decorateClass([
|
|
173
|
-
customElement("sd-6-
|
|
173
|
+
customElement("sd-6-25-1-switch")
|
|
174
174
|
], SdSwitch);
|
|
175
175
|
|
|
176
176
|
export {
|
|
@@ -45,10 +45,10 @@ var SdTeaserMedia = class extends SolidElement {
|
|
|
45
45
|
)}"></div><div class="${cx("relative", ["primary", "gradient-dark"].includes(this.variant) && "text-white")}"><div class="${cx(
|
|
46
46
|
"absolute inset-0 pointer-events-none",
|
|
47
47
|
{
|
|
48
|
-
white: "sd-6-
|
|
49
|
-
"neutral-100": "sd-6-
|
|
48
|
+
white: "sd-6-25-1-teaser-media--white-color-background group-hover:sd-6-25-1-teaser-media--white--hover-color-background ",
|
|
49
|
+
"neutral-100": "sd-6-25-1-teaser-media--neutral-100-color-background group-hover:sd-6-25-1-teaser-media--neutral-100--hover-color-background",
|
|
50
50
|
primary: "bg-primary/80 text-white group-hover:bg-primary/90",
|
|
51
|
-
"primary-100": "sd-6-
|
|
51
|
+
"primary-100": "sd-6-25-1-teaser-media--primary-100-color-background group-hover:sd-6-25-1-teaser-media--primary-100--hover-color-background",
|
|
52
52
|
"gradient-light": "bg-gradient-to-t from-white/75 to-white/60",
|
|
53
53
|
"gradient-dark": "bg-gradient-to-t from-primary-800/75 to-primary-800/60"
|
|
54
54
|
}[this.variant]
|
|
@@ -56,11 +56,11 @@ var SdTeaserMedia = class extends SolidElement {
|
|
|
56
56
|
"mt-3 transition-opacity duration-300",
|
|
57
57
|
!this.open && "hidden",
|
|
58
58
|
this.open ? "opacity-100" : "opacity-0"
|
|
59
|
-
)}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div>${slots["teaser-has-expandable"] ? html`<button part="toggle" class="sd-interactive sd-interactive--reset mt-2" @click="${this.onToggleClick}" aria-expanded="${this.open}" aria-label="${this.open ? "Collapse content" : "Expand content"}"><div class="h-full justify-start flex items-start"><sd-6-
|
|
59
|
+
)}" part="expandable" aria-hidden="true"><slot name="expandable"></slot></div>${slots["teaser-has-expandable"] ? html`<button part="toggle" class="sd-interactive sd-interactive--reset mt-2" @click="${this.onToggleClick}" aria-expanded="${this.open}" aria-label="${this.open ? "Collapse content" : "Expand content"}"><div class="h-full justify-start flex items-start"><sd-6-25-1-icon class="${cx(
|
|
60
60
|
"w-6 h-6 transition-transform",
|
|
61
61
|
this.open && "rotate-180",
|
|
62
62
|
["primary", "gradient-dark"].includes(this.variant) ? "text-white" : "text-primary"
|
|
63
|
-
)}" library="_internal" name="chevron-down"></sd-6-
|
|
63
|
+
)}" library="_internal" name="chevron-down"></sd-6-25-1-icon></div></button>` : null}</div></div></div><div class="${cx("mb-4 -z-10", !slots["teaser-has-media"] && "hidden")}" part="media"><slot name="media"></slot></div></div>`;
|
|
64
64
|
}
|
|
65
65
|
};
|
|
66
66
|
SdTeaserMedia.styles = [
|
|
@@ -81,7 +81,7 @@ __decorateClass([
|
|
|
81
81
|
query('[part="base"]')
|
|
82
82
|
], SdTeaserMedia.prototype, "teaserMedia", 2);
|
|
83
83
|
SdTeaserMedia = __decorateClass([
|
|
84
|
-
customElement("sd-6-
|
|
84
|
+
customElement("sd-6-25-1-teaser-media")
|
|
85
85
|
], SdTeaserMedia);
|
|
86
86
|
|
|
87
87
|
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-6-
|
|
27
|
+
this.componentId = `sd-6-25-1-tab-${this.attrId}`;
|
|
28
28
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
29
29
|
this.localize = new LocalizeController(this);
|
|
30
30
|
this.variant = "default";
|
|
@@ -62,17 +62,17 @@ var SdTab = class extends SolidElement {
|
|
|
62
62
|
"outline-hidden focus-visible:focus-outline outline-2 !-outline-offset-2 transition-all duration-fast ease-in-out",
|
|
63
63
|
this.variant === "container" ? "tab-container-border bg-white rounded-[4px_4px_0_0]" : "navigable-border-radius",
|
|
64
64
|
this.variant === "container" && this.active && "tab--active-container-border bg-white",
|
|
65
|
-
this.disabled || this.visuallyDisabled ? "!cursor-not-allowed" : "hover:sd-6-
|
|
66
|
-
this.active && "z-20 sd-6-
|
|
65
|
+
this.disabled || this.visuallyDisabled ? "!cursor-not-allowed" : "hover:sd-6-25-1-tab--hover-color-background",
|
|
66
|
+
this.active && "z-20 sd-6-25-1-tab--active-color-text"
|
|
67
67
|
)}" tabindex="${!this.active || this.disabled ? "-1" : "0"}"><div class="${cx("flex h-full items-center justify-center whitespace-nowrap")}"><slot name="left" class="${cx(
|
|
68
68
|
slots.left && "block pr-2",
|
|
69
|
-
this.disabled || this.visuallyDisabled ? "sd-6-
|
|
69
|
+
this.disabled || this.visuallyDisabled ? "sd-6-25-1-tab--disabled-color-text" : this.active ? "sd-6-25-1-tab--active-color-text" : "sd-6-25-1-tab-color-text"
|
|
70
70
|
)}"></slot><slot class="${cx(
|
|
71
|
-
this.disabled || this.visuallyDisabled ? "sd-6-
|
|
71
|
+
this.disabled || this.visuallyDisabled ? "sd-6-25-1-tab--disabled-color-text" : this.active ? "sd-6-25-1-tab--active-color-text" : "sd-6-25-1-tab-color-text"
|
|
72
72
|
)}"></slot>${this.variant === "container" ? html`<div part="active-tab-indicator" class="${cx(
|
|
73
73
|
"absolute bottom-0 h-1 bg-accent w-3/4 bottom-0 group-hover:w-[calc(100%-2px)] navigable__current-indicator-height navigable__current-indicator-border-radius"
|
|
74
74
|
)}"></div>` : ""}<div part="hover-bottom-border" class="${cx(
|
|
75
|
-
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-
|
|
75
|
+
!this.active && !this.disabled && "absolute bottom-0 left-0 w-full h-0.25 border-b sd-6-25-1-tab-color-border"
|
|
76
76
|
)}"></div></div></div>`;
|
|
77
77
|
}
|
|
78
78
|
};
|
|
@@ -109,7 +109,7 @@ __decorateClass([
|
|
|
109
109
|
watch(["disabled", "visually-disabled"])
|
|
110
110
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
111
111
|
SdTab = __decorateClass([
|
|
112
|
-
customElement("sd-6-
|
|
112
|
+
customElement("sd-6-25-1-tab")
|
|
113
113
|
], SdTab);
|
|
114
114
|
|
|
115
115
|
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-
|
|
214
|
+
)}"><sd-6-25-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-
|
|
219
|
+
}[this.variant] || ""}" library="_internal" class="h-6 w-6 text-white"></sd-6-25-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-
|
|
221
|
+
"border-solid border-[1px] border-l-0 sd-6-25-1-notification-color-border",
|
|
222
222
|
{
|
|
223
|
-
info: "sd-6-
|
|
224
|
-
success: "sd-6-
|
|
225
|
-
warning: "sd-6-
|
|
226
|
-
error: "sd-6-
|
|
223
|
+
info: "sd-6-25-1-notification--info-color-background",
|
|
224
|
+
success: "sd-6-25-1-notification--success-color-background",
|
|
225
|
+
warning: "sd-6-25-1-notification--warning-color-background",
|
|
226
|
+
error: "sd-6-25-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-
|
|
229
|
-
`absolute w-0 h-[2px] bottom-0 sd-6-
|
|
228
|
+
)}"><slot id="message" part="message" class="block w-full pl-3 py-2"></slot>${this.closable ? html`<sd-6-25-1-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-6-25-1-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-6-25-1-icon></sd-6-25-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-25-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-
|
|
275
|
+
customElement("sd-6-25-1-notification")
|
|
276
276
|
], SdNotification);
|
|
277
277
|
setDefaultAnimation("notification.show", {
|
|
278
278
|
keyframes: [
|
|
@@ -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-6-
|
|
74
|
+
"sd-6-25-1-radio group flex items-start text-base leading-normal text-black cursor-pointer",
|
|
75
75
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
76
76
|
{
|
|
77
77
|
/* sizes, fonts */
|
|
@@ -80,15 +80,15 @@ var SdRadio = class extends SolidElement {
|
|
|
80
80
|
lg: "text-base"
|
|
81
81
|
}[this.size]
|
|
82
82
|
)}"><span part="${`${this.checked ? "control--checked" : "control--unchecked"}`}" class="${cx(
|
|
83
|
-
"flex-initial shrink-0 relative inline-flex items-center justify-center border sd-6-
|
|
83
|
+
"flex-initial shrink-0 relative inline-flex items-center justify-center border sd-6-25-1-radio-border-width rounded-full bg-white h-4 w-4 duration-fast ease-in-out",
|
|
84
84
|
this.disabled || this.visuallyDisabled ? "border-neutral-500" : this.invalid ? cx(
|
|
85
85
|
"border-error hover:border-error-400 group-hover:border-error-400",
|
|
86
|
-
this.checked ? "sd-6-
|
|
87
|
-
) : this.checked ? "sd-6-
|
|
86
|
+
this.checked ? "sd-6-25-1-radio--checked--invalid--default-color-background" : "sd-6-25-1-radio--default--invalid-color-background"
|
|
87
|
+
) : this.checked ? "sd-6-25-1-radio--checked--default-color-background hover:sd-6-25-1-radio--checked--hover-color-background group-hover:sd-6-25-1-radio--checked--hover-color-background border-accent hover:border-accent-550 group-hover:border-accent-550" : "form-control-color-border hover:bg-neutral-200 group-hover:bg-neutral-200"
|
|
88
88
|
)}"><span part="checked" class="${cx(
|
|
89
|
-
"rounded-full inline-flex text-white sd-6-
|
|
89
|
+
"rounded-full inline-flex text-white sd-6-25-1-radio__checked-height sd-6-25-1-radio__checked-width transition-[transform, colors] duration-medium ease-in-out",
|
|
90
90
|
this.checked ? "scale-100" : "scale-0",
|
|
91
|
-
this.disabled ? "sd-6-
|
|
91
|
+
this.disabled ? "sd-6-25-1-radio--checked--disabled__icon-color-background" : this.visuallyDisabled ? "bg-white" : this.invalid ? "sd-6-25-1-radio--checked--invalid--default__icon-color-background hover:sd-6-25-1-radio--checked--invalid--hover__icon-color-background group-hover:sd-6-25-1-radio--checked--invalid--hover__icon-color-background" : this.checked ? "sd-6-25-1-radio--checked--default__icon-color-background hover:sd-6-25-1-radio--checked--hover__icon-color-background group-hover:sd-6-25-1-radio--checked--hover__icon-color-background" : "bg-neutral-800"
|
|
92
92
|
)}"></span></span><slot part="label" class="${cx(
|
|
93
93
|
"ml-2 select-none inline-block",
|
|
94
94
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : "text-black"
|
|
@@ -131,7 +131,7 @@ __decorateClass([
|
|
|
131
131
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
132
132
|
], SdRadio.prototype, "handleDisabledChange", 1);
|
|
133
133
|
SdRadio = __decorateClass([
|
|
134
|
-
customElement("sd-6-
|
|
134
|
+
customElement("sd-6-25-1-radio")
|
|
135
135
|
], SdRadio);
|
|
136
136
|
|
|
137
137
|
export {
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<div class="flex flex-col"><label part="base" class="${cx(
|
|
121
|
-
"sd-6-
|
|
121
|
+
"sd-6-25-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 shrink-0 items-center justify-center border sd-6-
|
|
130
|
+
"relative flex shrink-0 items-center justify-center border sd-6-25-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-
|
|
163
|
+
)}"></div></div>${this.checked ? html`<sd-6-25-1-icon part="checked-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-check"></sd-6-25-1-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-6-25-1-icon part="indeterminate-icon" class="text-white w-3 h-3" library="sd-status-assets" name="status-minus"></sd-6-25-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-
|
|
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-25-1-icon id="invalid-icon" part="invalid-icon" library="_internal" name="risk"></sd-6-25-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-
|
|
226
|
+
customElement("sd-6-25-1-checkbox")
|
|
227
227
|
], SdCheckbox);
|
|
228
228
|
|
|
229
229
|
export {
|