@solid-design-system/components 5.4.0 → 5.4.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-versioned/chunks/chunk.RKKBKOOP.js → cdn/chunks/chunk.TL3NETIH.js} +1 -1
- package/cdn/components/header/header.js +1 -1
- package/cdn/custom-elements.json +181 -181
- package/cdn/solid-components.bundle.js +11 -11
- package/cdn/solid-components.iife.js +11 -11
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.2GZJLMSG.js +1 -1
- package/cdn-versioned/chunks/chunk.2QJJ2GGX.js +1 -1
- package/cdn-versioned/chunks/chunk.3CLAHKN2.js +1 -1
- package/cdn-versioned/chunks/chunk.3V26CQAC.js +1 -1
- package/cdn-versioned/chunks/chunk.4TOZCRMQ.js +4 -4
- package/cdn-versioned/chunks/chunk.5RTTEWNK.js +1 -1
- package/cdn-versioned/chunks/chunk.5ZCX6DQM.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.6IZHLO4O.js +1 -1
- package/cdn-versioned/chunks/chunk.7ADT7GXT.js +1 -1
- package/cdn-versioned/chunks/chunk.7MCN5637.js +1 -1
- package/cdn-versioned/chunks/chunk.A6OAPRBG.js +1 -1
- package/cdn-versioned/chunks/chunk.AXH5NVYQ.js +1 -1
- package/cdn-versioned/chunks/chunk.BMIYMDOW.js +1 -1
- package/cdn-versioned/chunks/chunk.BRGDAQJS.js +1 -1
- package/cdn-versioned/chunks/chunk.CDTSUOUW.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.D7A25CW2.js +4 -4
- package/cdn-versioned/chunks/chunk.FJY2VDLX.js +1 -1
- package/cdn-versioned/chunks/chunk.FJYTESL5.js +1 -1
- package/cdn-versioned/chunks/chunk.G5QO6WGI.js +1 -1
- package/cdn-versioned/chunks/chunk.GEABNT3R.js +2 -2
- package/cdn-versioned/chunks/chunk.H3HCI6UK.js +1 -1
- package/cdn-versioned/chunks/chunk.HB34ZH5G.js +1 -1
- package/cdn-versioned/chunks/chunk.J4OXKWHD.js +1 -1
- package/cdn-versioned/chunks/chunk.JFRL5PI6.js +1 -1
- package/cdn-versioned/chunks/chunk.JHLXS4RE.js +1 -1
- package/cdn-versioned/chunks/chunk.KPL3RJW5.js +1 -1
- package/cdn-versioned/chunks/chunk.LCFGG3XQ.js +1 -1
- package/cdn-versioned/chunks/chunk.M7XV42AN.js +1 -1
- package/cdn-versioned/chunks/chunk.MWXZG4SC.js +1 -1
- package/cdn-versioned/chunks/chunk.N55MQWVK.js +1 -1
- package/cdn-versioned/chunks/chunk.NV6YZ464.js +1 -1
- package/cdn-versioned/chunks/chunk.OEXEP6H5.js +1 -1
- package/cdn-versioned/chunks/chunk.OHXAZE3D.js +1 -1
- package/cdn-versioned/chunks/chunk.P5JSPSW7.js +1 -1
- package/cdn-versioned/chunks/chunk.P64YQW6Z.js +1 -1
- package/cdn-versioned/chunks/chunk.P6LTY5WA.js +1 -1
- package/cdn-versioned/chunks/chunk.PDIUVN5U.js +1 -1
- package/cdn-versioned/chunks/chunk.PVLTPG2G.js +1 -1
- package/cdn-versioned/chunks/chunk.QP52PXLO.js +3 -3
- package/cdn-versioned/chunks/chunk.RBZIMQA5.js +1 -1
- package/cdn-versioned/chunks/chunk.SLIDD3LU.js +1 -1
- package/{cdn/chunks/chunk.RKKBKOOP.js → cdn-versioned/chunks/chunk.TL3NETIH.js} +1 -1
- package/cdn-versioned/chunks/chunk.TLLNLQPN.js +1 -1
- package/cdn-versioned/chunks/chunk.TSI5Q2JI.js +1 -1
- package/cdn-versioned/chunks/chunk.TTZGP3EJ.js +1 -1
- package/cdn-versioned/chunks/chunk.UAUT4G77.js +2 -2
- package/cdn-versioned/chunks/chunk.VT5F2LC2.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.YK3BL7Z2.js +1 -1
- package/cdn-versioned/chunks/chunk.YYONUP4L.js +1 -1
- package/cdn-versioned/chunks/chunk.ZAHVXNIZ.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +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/header/header.js +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/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +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/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.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 +385 -385
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +19 -19
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +19 -19
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.VVDUCRRF.js → chunk.TVLE7NUT.js} +1 -1
- package/dist/components/header/header.js +1 -1
- package/dist/custom-elements.json +181 -181
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.23SXULLQ.js +3 -3
- package/dist-versioned/chunks/chunk.2WN7YMGY.js +6 -6
- package/dist-versioned/chunks/chunk.3AY4ZE3B.js +1 -1
- package/dist-versioned/chunks/chunk.3OJHLEDR.js +4 -4
- package/dist-versioned/chunks/chunk.4BOVS5IV.js +3 -3
- package/dist-versioned/chunks/chunk.4KY6NI4T.js +9 -9
- package/dist-versioned/chunks/chunk.55WKP7T3.js +24 -24
- package/dist-versioned/chunks/chunk.5FFIE4YZ.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6JJ6VBYS.js +2 -2
- package/dist-versioned/chunks/chunk.74LNGOSZ.js +1 -1
- package/dist-versioned/chunks/chunk.7P374LCS.js +2 -2
- package/dist-versioned/chunks/chunk.AH4JSEVL.js +1 -1
- package/dist-versioned/chunks/chunk.AQ33SHN7.js +5 -5
- package/dist-versioned/chunks/chunk.CV47NCMS.js +4 -4
- package/dist-versioned/chunks/chunk.DNIODML7.js +1 -1
- package/dist-versioned/chunks/chunk.E2HV423L.js +2 -2
- package/dist-versioned/chunks/chunk.EX6L6CQ3.js +1 -1
- package/dist-versioned/chunks/chunk.F7CEWVTD.js +2 -2
- package/dist-versioned/chunks/chunk.HO2HFXMJ.js +1 -1
- package/dist-versioned/chunks/chunk.HTULDNAU.js +11 -11
- package/dist-versioned/chunks/chunk.JWORONFM.js +1 -1
- package/dist-versioned/chunks/chunk.JWS37SX3.js +3 -3
- package/dist-versioned/chunks/chunk.KLMMEDV3.js +2 -2
- package/dist-versioned/chunks/chunk.KMM7NCFU.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L7EUFNUL.js +5 -5
- package/dist-versioned/chunks/chunk.LA3LK5U7.js +8 -8
- package/dist-versioned/chunks/chunk.LIZZEBBC.js +5 -5
- package/dist-versioned/chunks/chunk.MKGGWQBV.js +1 -1
- package/dist-versioned/chunks/chunk.N5ISGLPU.js +1 -1
- package/dist-versioned/chunks/chunk.O5OO4ZYT.js +1 -1
- package/dist-versioned/chunks/chunk.OGZQTS5F.js +4 -4
- package/dist-versioned/chunks/chunk.OSVHP3IT.js +2 -2
- package/dist-versioned/chunks/chunk.PBPSZJYK.js +2 -2
- package/dist-versioned/chunks/chunk.PFIUB53L.js +5 -5
- package/dist-versioned/chunks/chunk.RPLU56MF.js +2 -2
- package/dist-versioned/chunks/chunk.S5CIECBU.js +2 -2
- package/dist-versioned/chunks/chunk.TBUESXVZ.js +1 -1
- package/dist-versioned/chunks/chunk.TPMPCCRV.js +3 -3
- package/dist-versioned/chunks/chunk.TQ4DIMUW.js +2 -2
- package/dist-versioned/chunks/chunk.TR7F4J6K.js +14 -14
- package/dist-versioned/chunks/{chunk.VVDUCRRF.js → chunk.TVLE7NUT.js} +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.VCDQPSR5.js +2 -2
- package/dist-versioned/chunks/chunk.WJ3R5TMO.js +1 -1
- package/dist-versioned/chunks/chunk.XNNCGTSI.js +26 -26
- package/dist-versioned/chunks/chunk.XR4CBBMX.js +1 -1
- package/dist-versioned/chunks/chunk.XVF5EILY.js +12 -12
- package/dist-versioned/chunks/chunk.Y6OGZSS6.js +2 -2
- package/dist-versioned/chunks/chunk.YLAUIXEA.js +2 -2
- package/dist-versioned/chunks/chunk.ZLD7GEOS.js +3 -3
- package/dist-versioned/chunks/chunk.ZRSPZUZY.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/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/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/header/header.js +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/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +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/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.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 +385 -385
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +1 -1
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +1 -1
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch(["checked"], { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdSwitch.prototype, "handleStateChange", 1);
|
|
170
170
|
SdSwitch = __decorateClass([
|
|
171
|
-
customElement("sd-5-4-
|
|
171
|
+
customElement("sd-5-4-1-switch")
|
|
172
172
|
], SdSwitch);
|
|
173
173
|
|
|
174
174
|
export {
|
|
@@ -74,10 +74,10 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
74
74
|
this.formControlController.updateValidity();
|
|
75
75
|
}
|
|
76
76
|
getAllRadios() {
|
|
77
|
-
return [...this.querySelectorAll("sd-5-4-
|
|
77
|
+
return [...this.querySelectorAll("sd-5-4-1-radio, sd-5-4-1-radio-button")];
|
|
78
78
|
}
|
|
79
79
|
handleRadioClick(event) {
|
|
80
|
-
const target = event.target.closest("sd-5-4-
|
|
80
|
+
const target = event.target.closest("sd-5-4-1-radio, sd-5-4-1-radio-button");
|
|
81
81
|
const radios = this.getAllRadios();
|
|
82
82
|
const oldValue = this.value;
|
|
83
83
|
if (target.disabled) {
|
|
@@ -154,7 +154,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
154
154
|
}
|
|
155
155
|
})
|
|
156
156
|
);
|
|
157
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-5-4-
|
|
157
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-5-4-1-radio-button");
|
|
158
158
|
if (!radios.some((radio) => radio.checked)) {
|
|
159
159
|
if (this.hasButtonGroup) {
|
|
160
160
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -166,26 +166,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
if (this.hasButtonGroup) {
|
|
169
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-5-4-
|
|
169
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-5-4-1-button-group");
|
|
170
170
|
if (buttonGroup) {
|
|
171
171
|
buttonGroup.disableRole = true;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
syncRadios() {
|
|
176
|
-
if (customElements.get("sd-5-4-
|
|
176
|
+
if (customElements.get("sd-5-4-1-radio") && customElements.get("sd-5-4-1-radio-button")) {
|
|
177
177
|
this.syncRadioElements();
|
|
178
178
|
return;
|
|
179
179
|
}
|
|
180
|
-
if (customElements.get("sd-5-4-
|
|
180
|
+
if (customElements.get("sd-5-4-1-radio")) {
|
|
181
181
|
this.syncRadioElements();
|
|
182
182
|
} else {
|
|
183
|
-
customElements.whenDefined("sd-5-4-
|
|
183
|
+
customElements.whenDefined("sd-5-4-1-radio").then(() => this.syncRadios());
|
|
184
184
|
}
|
|
185
|
-
if (customElements.get("sd-5-4-
|
|
185
|
+
if (customElements.get("sd-5-4-1-radio-button")) {
|
|
186
186
|
this.syncRadioElements();
|
|
187
187
|
} else {
|
|
188
|
-
customElements.whenDefined("sd-5-4-
|
|
188
|
+
customElements.whenDefined("sd-5-4-1-radio-button").then(() => this.syncRadios());
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
updateCheckedRadio() {
|
|
@@ -264,7 +264,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
264
264
|
vertical: "flex-col",
|
|
265
265
|
horizontal: "flex-row"
|
|
266
266
|
}[this.orientation]
|
|
267
|
-
)}"><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-5-4-
|
|
267
|
+
)}"><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-5-4-1-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-5-4-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>${this.formControlController.renderInvalidMessage()}`;
|
|
268
268
|
}
|
|
269
269
|
};
|
|
270
270
|
/**
|
|
@@ -272,7 +272,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
272
272
|
*/
|
|
273
273
|
SdRadioGroup.styles = [
|
|
274
274
|
...SolidElement.styles,
|
|
275
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-4-
|
|
275
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-4-1-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-4-1-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-4-1-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-4-1-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-4-1-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-4-1-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`
|
|
276
276
|
];
|
|
277
277
|
__decorateClass([
|
|
278
278
|
query("slot:not([name])")
|
|
@@ -329,7 +329,7 @@ __decorateClass([
|
|
|
329
329
|
watch("value")
|
|
330
330
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
331
331
|
SdRadioGroup = __decorateClass([
|
|
332
|
-
customElement("sd-5-4-
|
|
332
|
+
customElement("sd-5-4-1-radio-group")
|
|
333
333
|
], SdRadioGroup);
|
|
334
334
|
|
|
335
335
|
export {
|
|
@@ -21,7 +21,7 @@ var SdTab = class extends SolidElement {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.attrId = ++id;
|
|
24
|
-
this.componentId = `sd-5-4-
|
|
24
|
+
this.componentId = `sd-5-4-1-tab-${this.attrId}`;
|
|
25
25
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
26
26
|
this.variant = "default";
|
|
27
27
|
this.active = false;
|
|
@@ -102,7 +102,7 @@ __decorateClass([
|
|
|
102
102
|
watch(["disabled", "visually-disabled"])
|
|
103
103
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
104
104
|
SdTab = __decorateClass([
|
|
105
|
-
customElement("sd-5-4-
|
|
105
|
+
customElement("sd-5-4-1-tab")
|
|
106
106
|
], SdTab);
|
|
107
107
|
|
|
108
108
|
export {
|
|
@@ -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-4-
|
|
58
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-5-4-1-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-4-
|
|
123
|
+
customElement("sd-5-4-1-step-group")
|
|
124
124
|
], SdStepGroup);
|
|
125
125
|
|
|
126
126
|
export {
|
|
@@ -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-4-
|
|
211
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-4-1-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-4-
|
|
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-4-1-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-5-4-1-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-4-1-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-4-1-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
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-4-
|
|
333
|
+
customElement("sd-5-4-1-textarea")
|
|
334
334
|
], SdTextarea);
|
|
335
335
|
|
|
336
336
|
export {
|
|
@@ -288,10 +288,10 @@ var SdAudio = class extends SolidElement {
|
|
|
288
288
|
)}" part="audio-controls"><button class="${cx(
|
|
289
289
|
"playback-speed justify-self-start text-base font-bold hover:cursor-pointer sd-interactive",
|
|
290
290
|
this.inverted && "sd-interactive--inverted"
|
|
291
|
-
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-5-4-
|
|
291
|
+
)}" aria-label="${this.localize.term("playbackSpeed")} (${this.speed}x)" @click="${this.togglePlaybackSpeed}" @keydown="${this.togglePlaybackSpeedKeydown}" part="playback-speed">${this.speed}x</button><sd-5-4-1-button ?inverted="${this.inverted ? true : false}" part="play-button" size="lg" @click="${!this.isPlaying ? this.playAudio : this.pauseAudio}" aria-label="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" title="${this.isPlaying ? this.localize.term("pauseAudio") : this.localize.term("playAudio")}" class="text-3xl">${this.isPlaying ? html`<slot name="pause-icon"><sd-5-4-1-icon class="text-3xl" name="pause" library="_internal"></sd-5-4-1-icon></slot>` : html`<slot name="play-icon"><sd-5-4-1-icon class="text-3xl" name="start" library="_internal"></sd-5-4-1-icon></slot>`}</sd-5-4-1-button><div class="flex items-center justify-self-end">${this.hasSlotController.test("transcript") ? html`<button class="${cx(
|
|
292
292
|
"mr-6 w-6 h-6 hover:cursor-pointer sd-interactive",
|
|
293
293
|
this.inverted && "sd-interactive--inverted"
|
|
294
|
-
)}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-5-4-
|
|
294
|
+
)}" aria-label="${this.isTranscriptOpen ? this.localize.term("transcriptIsOpen") : this.localize.term("openTranscript")}" @click="${this.showTranscript}" @keydown="${this.showTranscriptKeydown}" part="transcript"><sd-5-4-1-icon class="w-6 h-6" name="transcript" library="_internal"></sd-5-4-1-icon></button>` : null} <button class="${cx("w-6 h-6 hover:cursor-pointer sd-interactive", this.inverted && "sd-interactive--inverted")}" part="volume" aria-label="${!this.isMuted ? this.localize.term("mute") : this.localize.term("unmute")}" @click="${this.toggleMute}" @keydown="${this.toggleMuteKeydown}"><sd-5-4-1-icon class="w-6 h-6" name="${this.isMuted ? "mute" : "volume"}" library="_internal"></sd-5-4-1-icon></button></div></div>`;
|
|
295
295
|
const renderTimestamps = html`<div class="${cx(
|
|
296
296
|
"w-full flex justify-between",
|
|
297
297
|
this.reversedLayout ? "mb-2" : "mt-2",
|
|
@@ -301,12 +301,12 @@ var SdAudio = class extends SolidElement {
|
|
|
301
301
|
return html`<div class="${cx("w-full flex relative", this.reversedLayout ? "flex-col-reverse" : "flex-col")}" aria-label="${this.localize.term("audioPlayer")}" part="audio-player"><slot @slotchange="${this.updateAudioDuration}"></slot>${!this.animated || this.animated && this.reversedLayout ? renderAudioControls : null}<div class="relative">${this.animated && !this.reversedLayout ? html`${renderAudioControls}` : null} ${this.animated ? html`<canvas class="w-full h-16"></canvas>` : null} ${!this.hideTimestamps && this.animated && this.reversedLayout ? renderTimestamps : null} <input class="${cx(
|
|
302
302
|
"progress-slider bg-primary appearance-none w-full cursor-pointer outline-none h-1 flex items-center sd-interactive",
|
|
303
303
|
this.inverted && "sd-interactive--inverted"
|
|
304
|
-
)}" type="range" max="100" step="0.001" value="${this.progress}" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" aria-label="${this.localize.term("seekBar")}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-5-4-
|
|
304
|
+
)}" type="range" max="100" step="0.001" value="${this.progress}" @input="${this.handleAudioProgress}" @keydown="${this.handleAudioProgressKeydown}" aria-label="${this.localize.term("seekBar")}" part="progress-slider" style="background:linear-gradient(to right,${this.inverted ? "rgb(var(--sd-color-white, 255 255 255) / 1)" : "rgb(var(--sd-color-primary, 0 53 142) / 1)"} ${progressPercentage}%,${this.animated ? "transparent" : this.inverted ? "rgb(var(--sd-color-primary-400, 153 171 208) / 1)" : "rgb(var(--sd-color-grey-400, 195 195 195) / 1)"} ${progressPercentage}%)"></div>${this.hasSlotController.test("transcript") ? html`<sd-5-4-1-drawer><slot name="transcript"></slot></sd-5-4-1-drawer>` : null} ${!this.hideTimestamps && (!this.animated || !this.reversedLayout) ? renderTimestamps : null}</div>`;
|
|
305
305
|
}
|
|
306
306
|
};
|
|
307
307
|
SdAudio.styles = [
|
|
308
308
|
...SolidElement.styles,
|
|
309
|
-
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-5-4-
|
|
309
|
+
css`.progress-slider:focus-visible{outline:2px solid transparent;outline-offset:2px}.progress-slider::-webkit-slider-thumb{-webkit-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-webkit-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-webkit-slider-thumb{outline-offset:2px;outline-style:solid}.progress-slider::-moz-range-thumb{-moz-appearance:none;appearance:none;background-color:currentColor;border-radius:var(--sd-border-radius-full,9999px);border-style:none;height:var(--sd-spacing-4,1rem);transition-duration:.2s;-moz-transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);width:var(--sd-spacing-4,1rem)}.progress-slider:focus-visible::-moz-range-thumb{outline-offset:2px;outline-style:solid}sd-5-4-1-button::part(base){align-items:center;border-radius:var(--sd-border-radius-full,9999px);display:flex;height:var(--sd-spacing-16,4rem);justify-content:center;width:var(--sd-spacing-16,4rem)}sd-5-4-1-button::part(motion-wrapper){border-radius:var(--sd-border-radius-full,9999px)}sd-5-4-1-button::part(label){align-items:center;display:flex;flex-grow:0}`
|
|
310
310
|
];
|
|
311
311
|
__decorateClass([
|
|
312
312
|
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
@@ -348,13 +348,13 @@ __decorateClass([
|
|
|
348
348
|
query('[part="audio-player"]')
|
|
349
349
|
], SdAudio.prototype, "audioPlayerContainer", 2);
|
|
350
350
|
__decorateClass([
|
|
351
|
-
query("sd-5-4-
|
|
351
|
+
query("sd-5-4-1-drawer")
|
|
352
352
|
], SdAudio.prototype, "drawer", 2);
|
|
353
353
|
__decorateClass([
|
|
354
354
|
query("canvas")
|
|
355
355
|
], SdAudio.prototype, "canvas", 2);
|
|
356
356
|
SdAudio = __decorateClass([
|
|
357
|
-
customElement("sd-5-4-
|
|
357
|
+
customElement("sd-5-4-1-audio")
|
|
358
358
|
], SdAudio);
|
|
359
359
|
|
|
360
360
|
export {
|