@solid-design-system/components 4.8.0 → 4.8.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.OD3X3SPF.js → cdn/chunks/chunk.66BLQSO5.js} +2 -2
- package/cdn/components/audio/audio.js +1 -1
- package/cdn/components/button/button.js +1 -1
- package/cdn/components/dialog/dialog.js +1 -1
- package/cdn/components/drawer/drawer.js +1 -1
- package/cdn/components/flipcard/flipcard.js +1 -1
- package/cdn/components/notification/notification.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +1 -1
- package/cdn/solid-components.iife.js +1 -1
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/_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.2ACESXLF.js +1 -1
- package/cdn-versioned/chunks/chunk.3CECQGCF.js +1 -1
- package/cdn-versioned/chunks/chunk.3DDNX327.js +1 -1
- package/cdn-versioned/chunks/chunk.3V4HFQ5W.js +1 -1
- package/cdn-versioned/chunks/chunk.4VLQS75A.js +1 -1
- package/cdn-versioned/chunks/chunk.5KY6BIV3.js +4 -4
- package/{cdn/chunks/chunk.OD3X3SPF.js → cdn-versioned/chunks/chunk.66BLQSO5.js} +2 -2
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.6M5O37VJ.js +1 -1
- package/cdn-versioned/chunks/chunk.7IYNE42V.js +1 -1
- package/cdn-versioned/chunks/chunk.ARJ5IWTT.js +1 -1
- package/cdn-versioned/chunks/chunk.BUPSKGHG.js +1 -1
- package/cdn-versioned/chunks/chunk.CAFBMLXB.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.D6GGRJJY.js +1 -1
- package/cdn-versioned/chunks/chunk.E3KCBW5V.js +1 -1
- package/cdn-versioned/chunks/chunk.FBPOMQV7.js +1 -1
- package/cdn-versioned/chunks/chunk.FZWEIQHD.js +1 -1
- package/cdn-versioned/chunks/chunk.G4SESDXX.js +1 -1
- package/cdn-versioned/chunks/chunk.GUKUXRNQ.js +2 -2
- package/cdn-versioned/chunks/chunk.HXEH6FCX.js +1 -1
- package/cdn-versioned/chunks/chunk.JEOESRAP.js +1 -1
- package/cdn-versioned/chunks/chunk.JSTQDFB5.js +1 -1
- package/cdn-versioned/chunks/chunk.KC5HYW44.js +1 -1
- package/cdn-versioned/chunks/chunk.KGY5M6CW.js +1 -1
- package/cdn-versioned/chunks/chunk.LWMWC2BY.js +1 -1
- package/cdn-versioned/chunks/chunk.M2A4DKJE.js +1 -1
- package/cdn-versioned/chunks/chunk.MU7TSWXE.js +1 -1
- package/cdn-versioned/chunks/chunk.MY3BLV5N.js +1 -1
- package/cdn-versioned/chunks/chunk.NFPYO3FO.js +1 -1
- package/cdn-versioned/chunks/chunk.P2GFJII7.js +2 -2
- package/cdn-versioned/chunks/chunk.QB5XRW3D.js +1 -1
- package/cdn-versioned/chunks/chunk.QCGQTLWK.js +1 -1
- package/cdn-versioned/chunks/chunk.QXGVQE6X.js +1 -1
- package/cdn-versioned/chunks/chunk.R4ZEEPUZ.js +1 -1
- package/cdn-versioned/chunks/chunk.SJPCYEZX.js +3 -3
- package/cdn-versioned/chunks/chunk.SLWYMYOQ.js +1 -1
- package/cdn-versioned/chunks/chunk.STUYBIXK.js +1 -1
- package/cdn-versioned/chunks/chunk.U7MMKASK.js +1 -1
- package/cdn-versioned/chunks/chunk.UA57DUVU.js +1 -1
- package/cdn-versioned/chunks/chunk.UJGX2D6U.js +1 -1
- package/cdn-versioned/chunks/chunk.UNGGT5NF.js +4 -4
- package/cdn-versioned/chunks/chunk.UX7V7Q4U.js +1 -1
- package/cdn-versioned/chunks/chunk.VAP2AXYU.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WKWPEBJP.js +1 -1
- package/cdn-versioned/chunks/chunk.WXRJEHMG.js +1 -1
- package/cdn-versioned/chunks/chunk.WZIDBULK.js +1 -1
- package/cdn-versioned/chunks/chunk.YI2OH2MN.js +1 -1
- package/cdn-versioned/chunks/chunk.YMUOQ3X3.js +1 -1
- package/cdn-versioned/chunks/chunk.YPQX4UIH.js +1 -1
- package/cdn-versioned/chunks/chunk.YVJT5ICZ.js +1 -1
- package/cdn-versioned/chunks/chunk.Z2JHVFLZ.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/audio/audio.js +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/button.js +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/dialog/dialog.js +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/drawer/drawer.js +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/flipcard/flipcard.js +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/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/notification/notification.js +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +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 +211 -211
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +16 -16
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +16 -16
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.2PTRX66S.js → chunk.LFS3FPZC.js} +1 -1
- package/dist/components/audio/audio.js +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/drawer/drawer.js +1 -1
- package/dist/components/flipcard/flipcard.js +1 -1
- package/dist/components/notification/notification.js +1 -1
- package/dist/custom-elements.json +1 -1
- 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.2NNBJVTZ.js +3 -3
- package/dist-versioned/chunks/chunk.3FXZJEOK.js +5 -5
- package/dist-versioned/chunks/chunk.3SSTRTWG.js +5 -5
- package/dist-versioned/chunks/chunk.5D3DLEA5.js +2 -2
- package/dist-versioned/chunks/chunk.66D76UI7.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6IAQSTST.js +1 -1
- package/dist-versioned/chunks/chunk.6XBF3N4L.js +2 -2
- package/dist-versioned/chunks/chunk.6YKDWN2D.js +1 -1
- package/dist-versioned/chunks/chunk.7QLBUQWZ.js +3 -3
- package/dist-versioned/chunks/chunk.7TEDJEW2.js +1 -1
- package/dist-versioned/chunks/chunk.AOR7TGS6.js +6 -6
- package/dist-versioned/chunks/chunk.APR7T2Q2.js +2 -2
- package/dist-versioned/chunks/chunk.BYNEIT5O.js +1 -1
- package/dist-versioned/chunks/chunk.C6RBE2LQ.js +26 -26
- package/dist-versioned/chunks/chunk.EDWWY2WL.js +3 -3
- package/dist-versioned/chunks/chunk.EPXGUWP5.js +24 -24
- package/dist-versioned/chunks/chunk.F4E63GW7.js +1 -1
- package/dist-versioned/chunks/chunk.FT7UBABX.js +2 -2
- package/dist-versioned/chunks/chunk.GVOME6PD.js +1 -1
- package/dist-versioned/chunks/chunk.IYYFKCD2.js +5 -5
- package/dist-versioned/chunks/chunk.JPS2VQZR.js +1 -1
- package/dist-versioned/chunks/chunk.KL2TXON5.js +9 -9
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.L6RX3JU4.js +3 -3
- package/dist-versioned/chunks/{chunk.2PTRX66S.js → chunk.LFS3FPZC.js} +5 -5
- package/dist-versioned/chunks/chunk.LKIMQD74.js +5 -5
- package/dist-versioned/chunks/chunk.LYFVCZXL.js +1 -1
- package/dist-versioned/chunks/chunk.MRAHP3SK.js +5 -5
- package/dist-versioned/chunks/chunk.MVTLWOO6.js +2 -2
- package/dist-versioned/chunks/chunk.NB24DI75.js +11 -11
- package/dist-versioned/chunks/chunk.NKA4K4KV.js +2 -2
- package/dist-versioned/chunks/chunk.NMFWOLLO.js +2 -2
- package/dist-versioned/chunks/chunk.NRUFRUNL.js +2 -2
- package/dist-versioned/chunks/chunk.OBZKDICF.js +14 -14
- package/dist-versioned/chunks/chunk.OOTMYYX7.js +2 -2
- package/dist-versioned/chunks/chunk.OT3GHFYG.js +6 -6
- package/dist-versioned/chunks/chunk.PKYDE7EM.js +1 -1
- package/dist-versioned/chunks/chunk.PWGSF3ZK.js +5 -5
- package/dist-versioned/chunks/chunk.QMVHHAVD.js +8 -8
- package/dist-versioned/chunks/chunk.R6RYT35M.js +1 -1
- package/dist-versioned/chunks/chunk.RHATTS2F.js +4 -4
- package/dist-versioned/chunks/chunk.SI5HEOQ5.js +1 -1
- package/dist-versioned/chunks/chunk.TMJWUQJA.js +2 -2
- package/dist-versioned/chunks/chunk.TVIAU3GO.js +2 -2
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.VCIIYGYE.js +1 -1
- package/dist-versioned/chunks/chunk.W2B5IXKP.js +2 -2
- package/dist-versioned/chunks/chunk.WQXQXTPT.js +2 -2
- package/dist-versioned/chunks/chunk.XSC2JQSP.js +1 -1
- package/dist-versioned/chunks/chunk.YFH2IBBJ.js +13 -13
- package/dist-versioned/chunks/chunk.ZA7XBPBQ.js +1 -1
- package/dist-versioned/chunks/chunk.ZUQDKLXG.js +2 -2
- 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/audio/audio.js +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/button.js +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/dialog/dialog.js +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/drawer/drawer.js +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/flipcard/flipcard.js +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/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/notification/notification.js +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +2 -2
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +2 -2
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +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 +211 -211
- 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
|
@@ -21,7 +21,7 @@ var SdTab = class extends SolidElement {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.attrId = ++id;
|
|
24
|
-
this.componentId = `sd-4-8-
|
|
24
|
+
this.componentId = `sd-4-8-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-4-8-
|
|
105
|
+
customElement("sd-4-8-1-tab")
|
|
106
106
|
], SdTab);
|
|
107
107
|
|
|
108
108
|
export {
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-4-8-
|
|
29
|
+
return [...this.querySelectorAll("sd-4-8-1-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-4-8-
|
|
42
|
+
if (customElements.get("sd-4-8-1-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-4-8-
|
|
45
|
+
customElements.whenDefined("sd-4-8-1-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -79,7 +79,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
79
79
|
*/
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-8-
|
|
82
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-8-1-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-8-1-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-8-1-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-8-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-8-1-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-8-1-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
|
83
83
|
];
|
|
84
84
|
__decorateClass([
|
|
85
85
|
property({ type: String, reflect: true })
|
|
@@ -100,7 +100,7 @@ __decorateClass([
|
|
|
100
100
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
101
101
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
102
102
|
SdCheckboxGroup = __decorateClass([
|
|
103
|
-
customElement("sd-4-8-
|
|
103
|
+
customElement("sd-4-8-1-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
|
26
26
|
];
|
|
27
27
|
SdCarouselItem = __decorateClass([
|
|
28
|
-
customElement("sd-4-8-
|
|
28
|
+
customElement("sd-4-8-1-carousel-item")
|
|
29
29
|
], SdCarouselItem);
|
|
30
30
|
|
|
31
31
|
export {
|
|
@@ -76,7 +76,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
76
76
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
|
77
77
|
* or an element within the slotted elements shadow root.
|
|
78
78
|
*
|
|
79
|
-
* e.g. the accessible trigger of an <sd-4-8-
|
|
79
|
+
* e.g. the accessible trigger of an <sd-4-8-1-button> is a <button> located inside its shadow root.
|
|
80
80
|
*
|
|
81
81
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
82
82
|
* */
|
|
@@ -87,11 +87,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
87
87
|
if (accessibleTrigger) {
|
|
88
88
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
89
89
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
|
90
|
-
case "sd-4-8-
|
|
91
|
-
case "sd-4-8-
|
|
90
|
+
case "sd-4-8-1-button":
|
|
91
|
+
case "sd-4-8-1-icon-button":
|
|
92
92
|
target = accessibleTrigger.button;
|
|
93
93
|
break;
|
|
94
|
-
case "sd-4-8-
|
|
94
|
+
case "sd-4-8-1-navigation-item":
|
|
95
95
|
target = accessibleTrigger.button;
|
|
96
96
|
break;
|
|
97
97
|
default:
|
|
@@ -236,7 +236,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
236
236
|
}
|
|
237
237
|
addOpenListeners() {
|
|
238
238
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
239
|
-
this.panel.addEventListener("sd-4-8-
|
|
239
|
+
this.panel.addEventListener("sd-4-8-1-select", this.handlePanelSelect);
|
|
240
240
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
241
241
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
242
242
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -244,7 +244,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
244
244
|
removeOpenListeners() {
|
|
245
245
|
if (this.panel) {
|
|
246
246
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
247
|
-
this.panel.removeEventListener("sd-4-8-
|
|
247
|
+
this.panel.removeEventListener("sd-4-8-1-select", this.handlePanelSelect);
|
|
248
248
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
249
249
|
}
|
|
250
250
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -277,11 +277,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
render() {
|
|
280
|
-
return html`<sd-4-8-
|
|
280
|
+
return html`<sd-4-8-1-popup part="base" id="dropdown" 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(
|
|
281
281
|
"shadow bg-white block",
|
|
282
282
|
this.open ? "pointer-events-auto" : "pointer-events-none",
|
|
283
283
|
this.rounded && "rounded-md"
|
|
284
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-4-8-
|
|
284
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-4-8-1-popup>`;
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
SdDropdown.styles = [
|
|
@@ -334,7 +334,7 @@ __decorateClass([
|
|
|
334
334
|
watch("open", { waitUntilFirstUpdate: true })
|
|
335
335
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
336
336
|
SdDropdown = __decorateClass([
|
|
337
|
-
customElement("sd-4-8-
|
|
337
|
+
customElement("sd-4-8-1-dropdown")
|
|
338
338
|
], SdDropdown);
|
|
339
339
|
setDefaultAnimation("dropdown.show", {
|
|
340
340
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -15,7 +15,7 @@ var FormControlController = class {
|
|
|
15
15
|
const disabled = this.options.disabled(this.host);
|
|
16
16
|
const name = this.options.name(this.host);
|
|
17
17
|
const value = this.options.value(this.host);
|
|
18
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-4-8-
|
|
18
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-4-8-1-button";
|
|
19
19
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
20
20
|
if (Array.isArray(value)) {
|
|
21
21
|
value.forEach((val) => {
|
|
@@ -40,7 +40,7 @@ var FormControlController = class {
|
|
|
40
40
|
event.stopImmediatePropagation();
|
|
41
41
|
const invalidElements = (_b = this.form) == null ? void 0 : _b.querySelectorAll("[data-invalid]");
|
|
42
42
|
const sdRadioGroups = Array.from(invalidElements).filter(
|
|
43
|
-
(element) => element.tagName.toLowerCase() === "sd-4-8-
|
|
43
|
+
(element) => element.tagName.toLowerCase() === "sd-4-8-1-radio-group"
|
|
44
44
|
);
|
|
45
45
|
sdRadioGroups.forEach((radioGroup) => {
|
|
46
46
|
var _a2, _b2;
|
|
@@ -88,7 +88,7 @@ var FormControlController = class {
|
|
|
88
88
|
},
|
|
89
89
|
reportValidity: (input) => typeof input.reportValidity === "function" ? input.reportValidity() : true,
|
|
90
90
|
setValue: (input, value) => input.value = value,
|
|
91
|
-
assumeInteractionOn: ["sd-4-8-
|
|
91
|
+
assumeInteractionOn: ["sd-4-8-1-input"]
|
|
92
92
|
}, options);
|
|
93
93
|
}
|
|
94
94
|
hostConnected() {
|
|
@@ -64,10 +64,10 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
64
64
|
!this.expandable && "hidden"
|
|
65
65
|
)}
|
|
66
66
|
><slot name="expand-icon" class=${cx(this.open && "hidden")}>
|
|
67
|
-
<sd-4-8-
|
|
67
|
+
<sd-4-8-1-icon library="system" name="chevron-down"></sd-4-8-1-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-4-8-
|
|
70
|
+
<sd-4-8-1-icon library="system" name="chevron-down"></sd-4-8-1-icon> </slot
|
|
71
71
|
></span>
|
|
72
72
|
</${header}>
|
|
73
73
|
<div part="content" id="content" class=${cx("overflow-hidden", !this.expandable && "hidden")}>
|
|
@@ -85,7 +85,7 @@ __decorateClass([
|
|
|
85
85
|
property({ type: Boolean, reflect: true })
|
|
86
86
|
], SdQuickfact.prototype, "expandable", 2);
|
|
87
87
|
SdQuickfact = __decorateClass([
|
|
88
|
-
customElement("sd-4-8-
|
|
88
|
+
customElement("sd-4-8-1-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
91
|
keyframes: [
|
|
@@ -200,7 +200,7 @@ var SdButton = class extends SolidElement {
|
|
|
200
200
|
cta: "bg-accent-550 group-active:bg-accent-700"
|
|
201
201
|
}[this.variant]
|
|
202
202
|
)}"></div></div></div><slot name="icon-left" part="icon-left" class="${cx(
|
|
203
|
-
"flex flex-auto items-center pointer-events-none",
|
|
203
|
+
"flex flex-auto items-center justify-end pointer-events-none",
|
|
204
204
|
slots["icon-only"] && "hidden",
|
|
205
205
|
this.loading && "invisible",
|
|
206
206
|
slots["icon-left"] && {
|
|
@@ -221,7 +221,7 @@ var SdButton = class extends SolidElement {
|
|
|
221
221
|
md: "ml-2",
|
|
222
222
|
lg: "ml-2"
|
|
223
223
|
}[this.size]
|
|
224
|
-
)}"></slot>${this.loading ? html`<sd-4-8-
|
|
224
|
+
)}"></slot>${this.loading ? html`<sd-4-8-1-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-8-1-spinner>` : ""}</${tag}>`;
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
/**
|
|
@@ -229,13 +229,13 @@ var SdButton = class extends SolidElement {
|
|
|
229
229
|
*/
|
|
230
230
|
SdButton.styles = [
|
|
231
231
|
...SolidElement.styles,
|
|
232
|
-
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto);z-index:0}sd-4-8-
|
|
232
|
+
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto);z-index:0}sd-4-8-1-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-8-1-badge){pointer-events:none;position:absolute;right:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);--tw-translate-x:50%!important;--tw-translate-y:-50%!important;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))!important}::slotted(sd-4-8-1-icon),sd-4-8-1-spinner{font-size:calc(var(--tw-varspacing)/2)}`
|
|
233
233
|
];
|
|
234
234
|
__decorateClass([
|
|
235
235
|
query("a, button")
|
|
236
236
|
], SdButton.prototype, "button", 2);
|
|
237
237
|
__decorateClass([
|
|
238
|
-
queryAssignedElements({ selector: "sd-4-8-
|
|
238
|
+
queryAssignedElements({ selector: "sd-4-8-1-icon" })
|
|
239
239
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
240
240
|
__decorateClass([
|
|
241
241
|
state()
|
|
@@ -301,7 +301,7 @@ __decorateClass([
|
|
|
301
301
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
302
302
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
303
303
|
SdButton = __decorateClass([
|
|
304
|
-
customElement("sd-4-8-
|
|
304
|
+
customElement("sd-4-8-1-button")
|
|
305
305
|
], SdButton);
|
|
306
306
|
|
|
307
307
|
export {
|
|
@@ -28,11 +28,11 @@ var SdOptgroup = class extends SolidElement {
|
|
|
28
28
|
this.label = "";
|
|
29
29
|
}
|
|
30
30
|
/**
|
|
31
|
-
* Syncs the disabled prop for all slotted sd-4-8-
|
|
31
|
+
* Syncs the disabled prop for all slotted sd-4-8-1-options when it is triggered
|
|
32
32
|
*/
|
|
33
33
|
handleDisableOptions() {
|
|
34
34
|
const { disabled } = this;
|
|
35
|
-
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-8-
|
|
35
|
+
this.defaultSlot.assignedElements().filter((opt) => opt.tagName.toLowerCase() === "sd-4-8-1-option").forEach((opt) => {
|
|
36
36
|
opt.disabled = disabled;
|
|
37
37
|
});
|
|
38
38
|
}
|
|
@@ -41,11 +41,11 @@ var SdOptgroup = class extends SolidElement {
|
|
|
41
41
|
}
|
|
42
42
|
render() {
|
|
43
43
|
const { disabled } = this;
|
|
44
|
-
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-8-
|
|
44
|
+
return html`<div role="${disabled ? "presentation" : "group"}" class="${cx(this.disabled ? "text-neutral-500" : "")}" part="base" aria-labelledby="group-label"><sd-4-8-1-divider id="divider" class="pt-2 pb-4" part="divider"></sd-4-8-1-divider><div part="label-container" class="${cx(this.disabled ? "text-neutral-500" : "text-black")} px-4 font-bold text-left" role="presentation" id="group-label"><slot name="label"><span>${this.label}</span></slot></div><div role="listbox" part="options" aria-label="${this.localize.term("optionGroup")}"><slot @slotchange="${this.handleDisableOptions}"></slot></div></div>`;
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
SdOptgroup.dependencies = {
|
|
48
|
-
"sd-4-8-
|
|
48
|
+
"sd-4-8-1-divider": SdDivider
|
|
49
49
|
};
|
|
50
50
|
SdOptgroup.styles = [
|
|
51
51
|
...SolidElement.styles,
|
|
@@ -64,7 +64,7 @@ __decorateClass([
|
|
|
64
64
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
65
65
|
], SdOptgroup.prototype, "handleDisabledChange", 1);
|
|
66
66
|
SdOptgroup = __decorateClass([
|
|
67
|
-
customElement("sd-4-8-
|
|
67
|
+
customElement("sd-4-8-1-optgroup")
|
|
68
68
|
], SdOptgroup);
|
|
69
69
|
|
|
70
70
|
export {
|
|
@@ -208,7 +208,7 @@ __decorateClass([
|
|
|
208
208
|
watch("playbackRate")
|
|
209
209
|
], SdAnimation.prototype, "handlePlaybackRateChange", 1);
|
|
210
210
|
SdAnimation = __decorateClass([
|
|
211
|
-
customElement("sd-4-8-
|
|
211
|
+
customElement("sd-4-8-1-animation")
|
|
212
212
|
], SdAnimation);
|
|
213
213
|
|
|
214
214
|
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-4-8-
|
|
211
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-4-8-1-icon]:pe-8",
|
|
212
212
|
{
|
|
213
213
|
sm: "py-1",
|
|
214
214
|
md: "py-1",
|
|
@@ -216,13 +216,13 @@ 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-4-8-
|
|
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-4-8-1-icon class="${cx(
|
|
220
220
|
"text-error absolute right-4 bg-white pointer-events-none group-hover:bg-neutral-200",
|
|
221
221
|
iconSize
|
|
222
|
-
)}" library="system" name="risk" part="invalid-icon"></sd-4-8-
|
|
222
|
+
)}" library="system" name="risk" part="invalid-icon"></sd-4-8-1-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-8-1-icon class="${cx(
|
|
223
223
|
"text-success absolute right-4 bg-white pointer-events-none group-hover:bg-neutral-200",
|
|
224
224
|
iconSize
|
|
225
|
-
)}" library="system" name="status-check" part="valid-icon"></sd-4-8-
|
|
225
|
+
)}" library="system" name="status-check" part="valid-icon"></sd-4-8-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()}`;
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
228
|
/**
|
|
@@ -336,7 +336,7 @@ __decorateClass([
|
|
|
336
336
|
watch("value", { waitUntilFirstUpdate: true })
|
|
337
337
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
338
338
|
SdTextarea = __decorateClass([
|
|
339
|
-
customElement("sd-4-8-
|
|
339
|
+
customElement("sd-4-8-1-textarea")
|
|
340
340
|
], SdTextarea);
|
|
341
341
|
|
|
342
342
|
export {
|
|
@@ -84,7 +84,7 @@ var SdLink = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdLink.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
css`::slotted(sd-4-8-
|
|
87
|
+
css`::slotted(sd-4-8-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-4-8-1-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-4-8-1-icon){font-size:var(--sd-font-size-xl,1.5rem)}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query("a")
|
|
@@ -111,7 +111,7 @@ __decorateClass([
|
|
|
111
111
|
property({ reflect: true })
|
|
112
112
|
], SdLink.prototype, "download", 2);
|
|
113
113
|
SdLink = __decorateClass([
|
|
114
|
-
customElement("sd-4-8-
|
|
114
|
+
customElement("sd-4-8-1-link")
|
|
115
115
|
], SdLink);
|
|
116
116
|
|
|
117
117
|
export {
|
|
@@ -17,19 +17,19 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
handleFocus(event) {
|
|
19
19
|
const button = findButton(event.target);
|
|
20
|
-
button == null ? void 0 : button.classList.add("sd-4-8-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-4-8-1-button-group__button--focus");
|
|
21
21
|
}
|
|
22
22
|
handleBlur(event) {
|
|
23
23
|
const button = findButton(event.target);
|
|
24
|
-
button == null ? void 0 : button.classList.remove("sd-4-8-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-4-8-1-button-group__button--focus");
|
|
25
25
|
}
|
|
26
26
|
handleMouseOver(event) {
|
|
27
27
|
const button = findButton(event.target);
|
|
28
|
-
button == null ? void 0 : button.classList.add("sd-4-8-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-4-8-1-button-group__button--hover");
|
|
29
29
|
}
|
|
30
30
|
handleMouseOut(event) {
|
|
31
31
|
const button = findButton(event.target);
|
|
32
|
-
button == null ? void 0 : button.classList.remove("sd-4-8-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-4-8-1-button-group__button--hover");
|
|
33
33
|
}
|
|
34
34
|
handleSlotChange() {
|
|
35
35
|
const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
|
|
@@ -37,11 +37,11 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
37
37
|
const index = slottedElements.indexOf(el);
|
|
38
38
|
const button = findButton(el);
|
|
39
39
|
if (button !== null) {
|
|
40
|
-
button.classList.add("sd-4-8-
|
|
41
|
-
button.classList.toggle("sd-4-8-
|
|
42
|
-
button.classList.toggle("sd-4-8-
|
|
43
|
-
button.classList.toggle("sd-4-8-
|
|
44
|
-
button.classList.toggle("sd-4-8-
|
|
40
|
+
button.classList.add("sd-4-8-1-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-4-8-1-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-4-8-1-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-4-8-1-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-4-8-1-button-group__button--radio", button.tagName.toLowerCase() === "sd-4-8-1-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -63,11 +63,11 @@ __decorateClass([
|
|
|
63
63
|
property({ type: String, reflect: true })
|
|
64
64
|
], SdButtonGroup.prototype, "label", 2);
|
|
65
65
|
SdButtonGroup = __decorateClass([
|
|
66
|
-
customElement("sd-4-8-
|
|
66
|
+
customElement("sd-4-8-1-button-group")
|
|
67
67
|
], SdButtonGroup);
|
|
68
68
|
function findButton(el) {
|
|
69
69
|
var _a;
|
|
70
|
-
const selector = "sd-4-8-
|
|
70
|
+
const selector = "sd-4-8-1-button, sd-4-8-1-radio-button";
|
|
71
71
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -103,7 +103,7 @@ var SdVideo = class extends SolidElement {
|
|
|
103
103
|
this.playing ? "opacity-0" : "opacity-100",
|
|
104
104
|
this.isBelowBreakpoint ? "w-[48px] h-[48px]" : "w-[96px] h-[96px]",
|
|
105
105
|
"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 p-4 bg-white bg-opacity-75 rounded-full play-pause-transition outline-2 outline-offset-2 group-focus-visible:outline"
|
|
106
|
-
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-8-
|
|
106
|
+
)}"><slot name="play-icon" part="play-icon" class="${cx(this.isBelowBreakpoint ? "text-[2rem]" : "text-[4rem]")}"><sd-4-8-1-icon id="default-play-icon" library="system" name="start"></sd-4-8-1-icon></slot></div></button> ${this.hasSlotController.test("poster") ? html`<slot name="poster" role="presentation" @transitionend="${this.hidePoster}"></slot>` : null}<slot></slot></div>`;
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
SdVideo.styles = [
|
|
@@ -120,7 +120,7 @@ __decorateClass([
|
|
|
120
120
|
property({ type: Boolean })
|
|
121
121
|
], SdVideo.prototype, "isBelowBreakpoint", 2);
|
|
122
122
|
SdVideo = __decorateClass([
|
|
123
|
-
customElement("sd-4-8-
|
|
123
|
+
customElement("sd-4-8-1-video")
|
|
124
124
|
], SdVideo);
|
|
125
125
|
|
|
126
126
|
export {
|
|
@@ -80,7 +80,7 @@ var SdTag = class extends SolidElement {
|
|
|
80
80
|
!this.removable ? "hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500" : "has-[button:hover]:border-primary-500 has-[button:hover]:bg-neutral-100 has-[button:hover]:text-primary-500"
|
|
81
81
|
) : "bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500",
|
|
82
82
|
this.disabled && !isLink && "cursor-not-allowed"
|
|
83
|
-
)}"><slot id="content" part="content"></slot>${this.removable ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-4-8-
|
|
83
|
+
)}"><slot id="content" part="content"></slot>${this.removable ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-4-8-1-icon library="system" name="close" label="${this.localize.term("remove")}"></sd-4-8-1-icon></slot></button>` : ""}</${tag}>`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTag.styles = [
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
property({ reflect: true })
|
|
116
116
|
], SdTag.prototype, "download", 2);
|
|
117
117
|
SdTag = __decorateClass([
|
|
118
|
-
customElement("sd-4-8-
|
|
118
|
+
customElement("sd-4-8-1-tag")
|
|
119
119
|
], SdTag);
|
|
120
120
|
|
|
121
121
|
export {
|
|
@@ -72,7 +72,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
72
72
|
"sd-interactive sd-interactive--reset",
|
|
73
73
|
this.inverted && "sd-interactive--inverted",
|
|
74
74
|
!this.inverted ? "!focus-visible:focus-outline" : "!focus-visible:focus-outline-inverted"
|
|
75
|
-
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}">${this.open ? html`<slot name="toggle-open"><sd-4-8-
|
|
75
|
+
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}">${this.open ? html`<slot name="toggle-open"><sd-4-8-1-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-4-8-1-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-4-8-1-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-4-8-1-icon>${this.localize.term("showMore")}</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>`;
|
|
76
76
|
}
|
|
77
77
|
firstUpdated() {
|
|
78
78
|
this.cloneContentToLightDOM();
|
|
@@ -109,7 +109,7 @@ __decorateClass([
|
|
|
109
109
|
watch("open", { waitUntilFirstUpdate: true })
|
|
110
110
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
111
111
|
SdExpandable = __decorateClass([
|
|
112
|
-
customElement("sd-4-8-
|
|
112
|
+
customElement("sd-4-8-1-expandable")
|
|
113
113
|
], SdExpandable);
|
|
114
114
|
|
|
115
115
|
export {
|
|
@@ -29,8 +29,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
29
29
|
}
|
|
30
30
|
connectedCallback() {
|
|
31
31
|
const whenAllDefined = Promise.all([
|
|
32
|
-
customElements.whenDefined("sd-4-8-
|
|
33
|
-
customElements.whenDefined("sd-4-8-
|
|
32
|
+
customElements.whenDefined("sd-4-8-1-tab"),
|
|
33
|
+
customElements.whenDefined("sd-4-8-1-tab-panel")
|
|
34
34
|
]);
|
|
35
35
|
super.connectedCallback();
|
|
36
36
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -70,20 +70,20 @@ var SdTabGroup = class extends SolidElement {
|
|
|
70
70
|
}
|
|
71
71
|
getAllTabs(options = { includeDisabled: true }) {
|
|
72
72
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
73
|
-
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-4-8-
|
|
74
|
-
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-4-8-
|
|
73
|
+
return Array.from(slot.assignedElements()).map((el) => el.tagName.toLocaleLowerCase() === "sd-4-8-1-tab" ? el : el.querySelector("sd-4-8-1-tab")).filter((el) => {
|
|
74
|
+
return el && options.includeDisabled ? el.tagName.toLowerCase() === "sd-4-8-1-tab" : el.tagName.toLowerCase() === "sd-4-8-1-tab" && !el.disabled;
|
|
75
75
|
});
|
|
76
76
|
}
|
|
77
77
|
getAllPanels() {
|
|
78
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-8-
|
|
78
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-8-1-tab-panel");
|
|
79
79
|
}
|
|
80
80
|
getActiveTab() {
|
|
81
81
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
82
82
|
}
|
|
83
83
|
handleClick(event) {
|
|
84
84
|
const target = event.target;
|
|
85
|
-
const tab = target.closest("sd-4-8-
|
|
86
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-8-
|
|
85
|
+
const tab = target.closest("sd-4-8-1-tab");
|
|
86
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-8-1-tab-group");
|
|
87
87
|
if (tabGroup !== this) {
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
@@ -93,8 +93,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
93
93
|
}
|
|
94
94
|
handleKeyDown(event) {
|
|
95
95
|
const target = event.target;
|
|
96
|
-
const tab = target.closest("sd-4-8-
|
|
97
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-8-
|
|
96
|
+
const tab = target.closest("sd-4-8-1-tab");
|
|
97
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-8-1-tab-group");
|
|
98
98
|
if (tabGroup !== this) {
|
|
99
99
|
return;
|
|
100
100
|
}
|
|
@@ -119,7 +119,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
119
119
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
120
120
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
121
121
|
const isRtl = this.localize.dir() === "rtl";
|
|
122
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-4-8-
|
|
122
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-4-8-1-tab") {
|
|
123
123
|
let index = this.tabs.indexOf(activeEl);
|
|
124
124
|
if (event.key === "Home") {
|
|
125
125
|
index = 0;
|
|
@@ -215,15 +215,15 @@ var SdTabGroup = class extends SolidElement {
|
|
|
215
215
|
return html`<div part="base" class="${cx("flex flex-col rounded-none")}" @click="${this.handleClick}" @keydown="${this.handleKeyDown}"><div part="nav" class="${cx(this.hasScrollControls && "relative py-0 px-12")}">${this.hasScrollControls ? html`<button part="scroll-button--start" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${cx(
|
|
216
216
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
217
217
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
218
|
-
)}" @click="${this.handleScrollToStart}"><sd-4-8-
|
|
218
|
+
)}" @click="${this.handleScrollToStart}"><sd-4-8-1-icon library="system" name="${isRtl ? "chevron-up" : "chevron-down"}" label="previous" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-8-1-icon></button>` : ""}<div part="scroll-container" class="flex overflow-x-auto focus-visible:focus-outline !outline-offset-0"><div part="tabs" class="${cx("flex flex-auto relative flex-row")}" role="tablist"><div part="separation" class="w-full border-[0.25px] border-neutral-400 absolute bottom-0"></div><slot name="nav" @slotchange="${this.syncTabsAndPanels}"></slot></div></div>${this.hasScrollControls ? html`<button part="scroll-button--end" exportparts="base:scroll-button__base" tabindex="-1" aria-hidden="true" class="${cx(
|
|
219
219
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
220
220
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
221
|
-
)}" @click="${this.handleScrollToEnd}"><sd-4-8-
|
|
221
|
+
)}" @click="${this.handleScrollToEnd}"><sd-4-8-1-icon library="system" name="${isRtl ? "chevron-down" : "chevron-up"}" label="next" class="${cx("h-6 w-12 rotate-90 grid place-items-center")}"></sd-4-8-1-icon></button>` : ""}</div><slot part="body" class="${cx("block auto py-8 px-6", this.variant === "container" && "border border-neutral-400 border-t-0")}" @slotchange="${this.syncTabsAndPanels}"></slot></div>`;
|
|
222
222
|
}
|
|
223
223
|
};
|
|
224
224
|
SdTabGroup.styles = [
|
|
225
225
|
...SolidElement.styles,
|
|
226
|
-
css`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}:focus-within::slotted(sd-4-8-
|
|
226
|
+
css`:host{box-sizing:border-box;display:block}[part=scroll-container]{scrollbar-width:none}[part=scroll-container]::-webkit-scrollbar{height:var(--sd-spacing-0,0);width:var(--sd-spacing-0,0)}:focus-within::slotted(sd-4-8-1-tab-panel){outline-color:rgb(var(--sd-color-primary,0 53 142)/1);outline-offset:2px;outline-style:solid;outline-width:2px}::slotted(sd-4-8-1-tab-panel){--padding:1rem 0}`
|
|
227
227
|
];
|
|
228
228
|
__decorateClass([
|
|
229
229
|
query("[part=base]")
|
|
@@ -244,7 +244,7 @@ __decorateClass([
|
|
|
244
244
|
property({ type: String, reflect: true })
|
|
245
245
|
], SdTabGroup.prototype, "activation", 2);
|
|
246
246
|
SdTabGroup = __decorateClass([
|
|
247
|
-
customElement("sd-4-8-
|
|
247
|
+
customElement("sd-4-8-1-tab-group")
|
|
248
248
|
], SdTabGroup);
|
|
249
249
|
|
|
250
250
|
export {
|
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",
|
|
144
144
|
this.open && "rotate-180"
|
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-8-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-8-1-icon library="system" name="chevron-down"></sd-4-8-1-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-4-8-1-icon library="system" name="chevron-down"></sd-4-8-1-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
SdAccordion.styles = [
|
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch("open", { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
170
170
|
SdAccordion = __decorateClass([
|
|
171
|
-
customElement("sd-4-8-
|
|
171
|
+
customElement("sd-4-8-1-accordion")
|
|
172
172
|
], SdAccordion);
|
|
173
173
|
setDefaultAnimation("accordion.show", {
|
|
174
174
|
keyframes: [
|