@solid-design-system/components 4.0.0-next.1 → 4.0.0-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cdn/chunks/{chunk.WP6KSGSU.js → chunk.PBPFKJKV.js} +1 -1
- package/cdn/chunks/chunk.U443X4TI.js +1 -0
- package/cdn/components/divider/divider.js +1 -1
- package/cdn/components/optgroup/optgroup.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.24SF73MY.js +1 -1
- package/cdn-versioned/chunks/chunk.2UHPWLJE.js +1 -1
- package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
- package/cdn-versioned/chunks/chunk.5BROLR6V.js +4 -4
- package/cdn-versioned/chunks/chunk.5ZDWEJDB.js +1 -1
- package/cdn-versioned/chunks/chunk.65NSSTJE.js +1 -1
- package/cdn-versioned/chunks/chunk.6JBTCFHE.js +2 -2
- package/cdn-versioned/chunks/chunk.7M7VCE7R.js +1 -1
- package/cdn-versioned/chunks/chunk.7RJ3O2FV.js +1 -1
- package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.BTRVMAGL.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
- package/cdn-versioned/chunks/chunk.E7HNNYP6.js +1 -1
- package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
- package/cdn-versioned/chunks/chunk.FD54463O.js +1 -1
- package/cdn-versioned/chunks/chunk.FFNTXFC3.js +1 -1
- package/cdn-versioned/chunks/chunk.FREYGZDJ.js +1 -1
- package/cdn-versioned/chunks/chunk.FX3ED655.js +1 -1
- package/cdn-versioned/chunks/chunk.GOVNZSCO.js +1 -1
- package/cdn-versioned/chunks/chunk.GQSLHWQC.js +1 -1
- package/cdn-versioned/chunks/chunk.GUOHZTA7.js +1 -1
- package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
- package/cdn-versioned/chunks/chunk.IVXFAQNG.js +4 -4
- package/cdn-versioned/chunks/chunk.IZKUI5WK.js +1 -1
- package/cdn-versioned/chunks/chunk.KFW32Q4Q.js +1 -1
- package/cdn-versioned/chunks/chunk.KMLMMBY4.js +1 -1
- package/cdn-versioned/chunks/chunk.LLXTYJXF.js +1 -1
- package/cdn-versioned/chunks/chunk.LZEFLOSA.js +1 -1
- package/cdn-versioned/chunks/chunk.MMRILMYU.js +1 -1
- package/cdn-versioned/chunks/chunk.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/chunk.ND7BT52X.js +1 -1
- package/cdn-versioned/chunks/chunk.NUB5WHGD.js +1 -1
- package/cdn-versioned/chunks/chunk.O4UXOQEI.js +1 -1
- package/cdn-versioned/chunks/chunk.OVV7TNT2.js +1 -1
- package/cdn-versioned/chunks/{chunk.WP6KSGSU.js → chunk.PBPFKJKV.js} +1 -1
- package/cdn-versioned/chunks/chunk.QFNCQQ6S.js +1 -1
- package/cdn-versioned/chunks/chunk.QNZWJACC.js +2 -2
- package/cdn-versioned/chunks/chunk.R354E6ZD.js +1 -1
- package/cdn-versioned/chunks/chunk.SNUMAAEG.js +1 -1
- package/cdn-versioned/chunks/chunk.TA7CZCP3.js +1 -1
- package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -0
- package/cdn-versioned/chunks/chunk.UBFU6D5B.js +1 -1
- package/cdn-versioned/chunks/chunk.URB2K7JQ.js +1 -1
- package/cdn-versioned/chunks/chunk.VNKUGTKM.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WENTMXB2.js +1 -1
- package/cdn-versioned/chunks/chunk.WGNXYONB.js +1 -1
- package/cdn-versioned/chunks/chunk.WMRFVNYU.js +1 -1
- package/cdn-versioned/chunks/chunk.WQAPHFVM.js +1 -1
- package/cdn-versioned/chunks/chunk.YF5WEC4R.js +2 -2
- package/cdn-versioned/chunks/chunk.ZFA2VPUT.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 +4 -4
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.js +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/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 +2 -2
- package/cdn-versioned/components/optgroup/optgroup.js +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 +2 -2
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +4 -4
- 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 +202 -202
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +13 -13
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +13 -13
- 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.JIKTGTDS.js → chunk.4RGGPCD5.js} +1 -1
- package/dist/chunks/{chunk.4WYIZLVF.js → chunk.EKFRFDTB.js} +1 -1
- package/dist/components/divider/divider.js +1 -1
- package/dist/components/optgroup/optgroup.js +2 -2
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +2 -2
- 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.2IBVAXOX.js +1 -1
- package/dist-versioned/chunks/chunk.3IT4HBTI.js +1 -1
- package/dist-versioned/chunks/chunk.3LGDUVS4.js +2 -2
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/{chunk.JIKTGTDS.js → chunk.4RGGPCD5.js} +3 -3
- package/dist-versioned/chunks/chunk.56SNEGI4.js +13 -13
- package/dist-versioned/chunks/chunk.65BWRJEA.js +5 -5
- package/dist-versioned/chunks/chunk.6CUAQSFA.js +2 -2
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6JI7NL3E.js +2 -2
- package/dist-versioned/chunks/chunk.727ERQ4F.js +2 -2
- package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
- package/dist-versioned/chunks/chunk.7BEDTYS7.js +2 -2
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- package/dist-versioned/chunks/chunk.BVC5FY4L.js +13 -13
- package/dist-versioned/chunks/chunk.BXB5WF23.js +5 -5
- package/dist-versioned/chunks/chunk.D6JZ4IKM.js +1 -1
- package/dist-versioned/chunks/chunk.DAM3ICHP.js +2 -2
- package/dist-versioned/chunks/chunk.DQPVSTUQ.js +3 -3
- package/dist-versioned/chunks/chunk.EFEBQQHC.js +26 -26
- package/dist-versioned/chunks/{chunk.4WYIZLVF.js → chunk.EKFRFDTB.js} +6 -6
- package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
- package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
- package/dist-versioned/chunks/chunk.I3PY3VYP.js +29 -29
- package/dist-versioned/chunks/chunk.IN3GJ5QL.js +3 -3
- package/dist-versioned/chunks/chunk.J2XBUIBC.js +2 -2
- package/dist-versioned/chunks/chunk.J7MMF6WJ.js +2 -2
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.MTSAWJLV.js +2 -2
- package/dist-versioned/chunks/chunk.NM6QP6RJ.js +2 -2
- package/dist-versioned/chunks/chunk.PDRECIYA.js +1 -1
- package/dist-versioned/chunks/chunk.PGZ5AWZ2.js +9 -9
- package/dist-versioned/chunks/chunk.PIR4YJUS.js +2 -2
- package/dist-versioned/chunks/chunk.QAZYUCBK.js +6 -6
- package/dist-versioned/chunks/chunk.QCICV36Z.js +6 -6
- package/dist-versioned/chunks/chunk.QP3SM2LZ.js +3 -3
- package/dist-versioned/chunks/chunk.R4BETATX.js +1 -1
- package/dist-versioned/chunks/chunk.RNSJAVQE.js +1 -1
- package/dist-versioned/chunks/chunk.RZRTIYXA.js +1 -1
- package/dist-versioned/chunks/chunk.SPBPHTSS.js +2 -2
- package/dist-versioned/chunks/chunk.SSH6ATRK.js +2 -2
- package/dist-versioned/chunks/chunk.U5NFPAOX.js +2 -2
- package/dist-versioned/chunks/chunk.U6RY25TF.js +2 -2
- package/dist-versioned/chunks/chunk.UC5E3AEF.js +1 -1
- package/dist-versioned/chunks/chunk.UDZYWRPT.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.V7TQ6VJU.js +1 -1
- package/dist-versioned/chunks/chunk.VHGHICFG.js +2 -2
- package/dist-versioned/chunks/chunk.WWS3CQ2Z.js +5 -5
- package/dist-versioned/chunks/chunk.XVFJS7VS.js +5 -5
- package/dist-versioned/chunks/chunk.Z2UY62T2.js +1 -1
- package/dist-versioned/chunks/chunk.ZGPGFEVP.js +5 -5
- package/dist-versioned/chunks/chunk.ZWJI7SLE.js +11 -11
- 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 +4 -4
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/divider/divider.js +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/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 +2 -2
- package/dist-versioned/components/optgroup/optgroup.js +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 +4 -4
- 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 +202 -202
- package/dist-versioned/internal/form.js +3 -3
- package/dist-versioned/solid-components.css +2 -2
- package/dist-versioned/solid-components.js +2 -2
- package/dist-versioned/vscode.html-custom-data.json +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +1 -1
- package/cdn/chunks/chunk.CZ3W7KBI.js +0 -1
- package/cdn-versioned/chunks/chunk.CZ3W7KBI.js +0 -1
|
@@ -21,7 +21,7 @@ var SdDivider = class extends SolidElement {
|
|
|
21
21
|
this.setAttribute("role", "separator");
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return html`<hr part="main" class="${cx(
|
|
24
|
+
return html`<hr part="main" aria-orientation="${this.orientation}" class="${cx(
|
|
25
25
|
this.inverted ? "border-primary-400" : "border-neutral-400",
|
|
26
26
|
this.orientation === "horizontal" ? "border-t w-full" : " border-l h-full"
|
|
27
27
|
)}">`;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SdOptgroup
|
|
3
|
-
} from "../../chunks/chunk.
|
|
4
|
-
import "../../chunks/chunk.
|
|
3
|
+
} from "../../chunks/chunk.EKFRFDTB.js";
|
|
4
|
+
import "../../chunks/chunk.4RGGPCD5.js";
|
|
5
5
|
import "../../chunks/chunk.X2OQMWGY.js";
|
|
6
6
|
import "../../chunks/chunk.UDZYWRPT.js";
|
|
7
7
|
import "../../chunks/chunk.S3NI7NKU.js";
|
|
@@ -16642,7 +16642,7 @@
|
|
|
16642
16642
|
"package": {
|
|
16643
16643
|
"name": "@solid-design-system/components",
|
|
16644
16644
|
"description": "Solid Design System: Components",
|
|
16645
|
-
"version": "4.0.0-next.
|
|
16645
|
+
"version": "4.0.0-next.2",
|
|
16646
16646
|
"author": "Union Investment",
|
|
16647
16647
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
16648
16648
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
} from "./chunks/chunk.6CUAQSFA.js";
|
|
41
41
|
import {
|
|
42
42
|
SdOptgroup
|
|
43
|
-
} from "./chunks/chunk.
|
|
43
|
+
} from "./chunks/chunk.EKFRFDTB.js";
|
|
44
44
|
import {
|
|
45
45
|
SdOption
|
|
46
46
|
} from "./chunks/chunk.SSH6ATRK.js";
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
} from "./chunks/chunk.727ERQ4F.js";
|
|
113
113
|
import {
|
|
114
114
|
SdDivider
|
|
115
|
-
} from "./chunks/chunk.
|
|
115
|
+
} from "./chunks/chunk.4RGGPCD5.js";
|
|
116
116
|
import {
|
|
117
117
|
SdDrawer
|
|
118
118
|
} from "./chunks/chunk.U6RY25TF.js";
|
package/dist/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
|
|
3
3
|
"name": "@solid-design-system/components",
|
|
4
|
-
"version": "4.0.0-next.
|
|
4
|
+
"version": "4.0.0-next.2",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -32,7 +32,7 @@ let SdMenu = class SdMenu extends SolidElement {
|
|
|
32
32
|
if (item.type === 'checkbox') {
|
|
33
33
|
item.checked = !item.checked;
|
|
34
34
|
}
|
|
35
|
-
this.emit('sd-4-0-0-next-
|
|
35
|
+
this.emit('sd-4-0-0-next-2-select', { detail: { item } });
|
|
36
36
|
}
|
|
37
37
|
handleKeyDown(event) {
|
|
38
38
|
if (event.key === 'Enter') {
|
|
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
74
74
|
})}
|
|
75
75
|
>
|
|
76
76
|
<span part="checked-icon" class="menu-item__check">
|
|
77
|
-
<sd-4-0-0-next-
|
|
77
|
+
<sd-4-0-0-next-2-icon name="check" library="system" aria-hidden="true"></sd-4-0-0-next-2-icon>
|
|
78
78
|
</span>
|
|
79
79
|
|
|
80
80
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
84
84
|
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
85
85
|
|
|
86
86
|
<span class="menu-item__chevron">
|
|
87
|
-
<sd-4-0-0-next-
|
|
87
|
+
<sd-4-0-0-next-2-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-0-0-next-2-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch(["checked"], { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdSwitch.prototype, "handleStateChange", 1);
|
|
170
170
|
SdSwitch = __decorateClass([
|
|
171
|
-
customElement("sd-4-0-0-next-
|
|
171
|
+
customElement("sd-4-0-0-next-2-switch")
|
|
172
172
|
], SdSwitch);
|
|
173
173
|
|
|
174
174
|
export {
|
|
@@ -81,7 +81,7 @@ var SdStep = class extends SolidElement {
|
|
|
81
81
|
!this.disabled && !this.current && !this.notInteractive && "text-primary group-hover:text-primary-500 group-hover:fill-primary-500",
|
|
82
82
|
this.notInteractive && "text-primary",
|
|
83
83
|
this.size === "lg" ? "text-lg" : "text-sm"
|
|
84
|
-
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-4-0-0-next-
|
|
84
|
+
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-4-0-0-next-2-icon name="status-check" library="system"></sd-4-0-0-next-2-icon>` : html`${this.index}`}</slot></${tag}>${this.noTail ? "" : html`<div part="tail" class="${cx(
|
|
85
85
|
this.orientation === "horizontal" ? "border-t w-full my-auto mr-2" : "border-l flex-grow flex-shrink-0 basis-auto h-full w-[1px] mx-auto",
|
|
86
86
|
!this.disabled && !this.current && !this.notInteractive ? " border-primary group-hover:border-primary-500" : "border-neutral-400"
|
|
87
87
|
)}"></div>`}</div><div part="text-container" class="${cx("mt-4 break-words flex flex-col gap-2", this.orientation === "horizontal" ? "text-center w-40" : "w-max text-left", this.disabled && "!text-neutral-700", this.notInteractive ? "ml-3" : "mr-4")}"><div part="label" id="label" class="${cx("!font-bold sd-paragraph", this.disabled && "!text-neutral-700", !this.disabled && !this.current && !this.notInteractive ? "!text-primary group-hover:!text-primary-500 group-hover:cursor-pointer" : "text-black")}"><slot name="label">${this.label}</slot></div><div part="description" id="description" class="${cx("sd-paragraph sd-paragraph--size-sm", this.disabled && "!text-neutral-700")}">${this.description || html`<slot></slot>`}</div></div></div>`;
|
|
@@ -131,7 +131,7 @@ __decorateClass([
|
|
|
131
131
|
watch("notInteractive")
|
|
132
132
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
133
133
|
SdStep = __decorateClass([
|
|
134
|
-
customElement("sd-4-0-0-next-
|
|
134
|
+
customElement("sd-4-0-0-next-2-step")
|
|
135
135
|
], SdStep);
|
|
136
136
|
|
|
137
137
|
export {
|
|
@@ -214,7 +214,7 @@ var SdButton = class extends SolidElement {
|
|
|
214
214
|
md: "ml-2",
|
|
215
215
|
lg: "ml-2"
|
|
216
216
|
}[this.size]
|
|
217
|
-
)}"></slot>${this.loading ? html`<sd-4-0-0-next-
|
|
217
|
+
)}"></slot>${this.loading ? html`<sd-4-0-0-next-2-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-0-0-next-2-spinner>` : ""}</${tag}>`;
|
|
218
218
|
}
|
|
219
219
|
};
|
|
220
220
|
/**
|
|
@@ -222,13 +222,13 @@ var SdButton = class extends SolidElement {
|
|
|
222
222
|
*/
|
|
223
223
|
SdButton.styles = [
|
|
224
224
|
...SolidElement.styles,
|
|
225
|
-
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-0-0-next-
|
|
225
|
+
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto)}sd-4-0-0-next-2-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-0-0-next-2-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-0-0-next-2-icon),sd-4-0-0-next-2-spinner{font-size:calc(var(--tw-varspacing)/2)}`
|
|
226
226
|
];
|
|
227
227
|
__decorateClass([
|
|
228
228
|
query("a, button")
|
|
229
229
|
], SdButton.prototype, "button", 2);
|
|
230
230
|
__decorateClass([
|
|
231
|
-
queryAssignedElements({ selector: "sd-4-0-0-next-
|
|
231
|
+
queryAssignedElements({ selector: "sd-4-0-0-next-2-icon" })
|
|
232
232
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
233
233
|
__decorateClass([
|
|
234
234
|
state()
|
|
@@ -291,7 +291,7 @@ __decorateClass([
|
|
|
291
291
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
292
292
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
293
293
|
SdButton = __decorateClass([
|
|
294
|
-
customElement("sd-4-0-0-next-
|
|
294
|
+
customElement("sd-4-0-0-next-2-button")
|
|
295
295
|
], SdButton);
|
|
296
296
|
|
|
297
297
|
export {
|
|
@@ -21,7 +21,7 @@ var SdDivider = class extends SolidElement {
|
|
|
21
21
|
this.setAttribute("role", "separator");
|
|
22
22
|
}
|
|
23
23
|
render() {
|
|
24
|
-
return html`<hr part="main" class="${cx(
|
|
24
|
+
return html`<hr part="main" aria-orientation="${this.orientation}" class="${cx(
|
|
25
25
|
this.inverted ? "border-primary-400" : "border-neutral-400",
|
|
26
26
|
this.orientation === "horizontal" ? "border-t w-full" : " border-l h-full"
|
|
27
27
|
)}">`;
|
|
@@ -32,7 +32,7 @@ var SdDivider = class extends SolidElement {
|
|
|
32
32
|
*/
|
|
33
33
|
SdDivider.styles = [
|
|
34
34
|
...SolidElement.styles,
|
|
35
|
-
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-0-0-next-
|
|
35
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-4-0-0-next-2-divider[orientation=horizontal]){display:block}:host(sd-4-0-0-next-2-divider[orientation=vertical]){display:inline-block}`
|
|
36
36
|
];
|
|
37
37
|
__decorateClass([
|
|
38
38
|
property({ reflect: true })
|
|
@@ -41,7 +41,7 @@ __decorateClass([
|
|
|
41
41
|
property({ type: Boolean, reflect: true })
|
|
42
42
|
], SdDivider.prototype, "inverted", 2);
|
|
43
43
|
SdDivider = __decorateClass([
|
|
44
|
-
customElement("sd-4-0-0-next-
|
|
44
|
+
customElement("sd-4-0-0-next-2-divider")
|
|
45
45
|
], SdDivider);
|
|
46
46
|
|
|
47
47
|
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-0-0-next-
|
|
33
|
-
customElements.whenDefined("sd-4-0-0-next-
|
|
32
|
+
customElements.whenDefined("sd-4-0-0-next-2-tab"),
|
|
33
|
+
customElements.whenDefined("sd-4-0-0-next-2-tab-panel")
|
|
34
34
|
]);
|
|
35
35
|
super.connectedCallback();
|
|
36
36
|
this.resizeObserver = new ResizeObserver(() => {
|
|
@@ -68,19 +68,19 @@ var SdTabGroup = class extends SolidElement {
|
|
|
68
68
|
getAllTabs(options = { includeDisabled: true }) {
|
|
69
69
|
const slot = this.shadowRoot.querySelector('slot[name="nav"]');
|
|
70
70
|
return [...slot.assignedElements()].filter((el) => {
|
|
71
|
-
return options.includeDisabled ? el.tagName.toLowerCase() === "sd-4-0-0-next-
|
|
71
|
+
return options.includeDisabled ? el.tagName.toLowerCase() === "sd-4-0-0-next-2-tab" : el.tagName.toLowerCase() === "sd-4-0-0-next-2-tab" && !el.disabled;
|
|
72
72
|
});
|
|
73
73
|
}
|
|
74
74
|
getAllPanels() {
|
|
75
|
-
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-0-0-next-
|
|
75
|
+
return [...this.body.assignedElements()].filter((el) => el.tagName.toLowerCase() === "sd-4-0-0-next-2-tab-panel");
|
|
76
76
|
}
|
|
77
77
|
getActiveTab() {
|
|
78
78
|
return this.tabs.find((t) => t.matches(":focus"));
|
|
79
79
|
}
|
|
80
80
|
handleClick(event) {
|
|
81
81
|
const target = event.target;
|
|
82
|
-
const tab = target.closest("sd-4-0-0-next-
|
|
83
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-0-0-next-
|
|
82
|
+
const tab = target.closest("sd-4-0-0-next-2-tab");
|
|
83
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-0-0-next-2-tab-group");
|
|
84
84
|
if (tabGroup !== this) {
|
|
85
85
|
return;
|
|
86
86
|
}
|
|
@@ -90,8 +90,8 @@ var SdTabGroup = class extends SolidElement {
|
|
|
90
90
|
}
|
|
91
91
|
handleKeyDown(event) {
|
|
92
92
|
const target = event.target;
|
|
93
|
-
const tab = target.closest("sd-4-0-0-next-
|
|
94
|
-
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-0-0-next-
|
|
93
|
+
const tab = target.closest("sd-4-0-0-next-2-tab");
|
|
94
|
+
const tabGroup = tab == null ? void 0 : tab.closest("sd-4-0-0-next-2-tab-group");
|
|
95
95
|
if (tabGroup !== this) {
|
|
96
96
|
return;
|
|
97
97
|
}
|
|
@@ -116,7 +116,7 @@ var SdTabGroup = class extends SolidElement {
|
|
|
116
116
|
if (["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "Home", "End"].includes(event.key)) {
|
|
117
117
|
const activeEl = this.tabs.find((t) => t.matches(":focus"));
|
|
118
118
|
const isRtl = this.localize.dir() === "rtl";
|
|
119
|
-
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-4-0-0-next-
|
|
119
|
+
if ((activeEl == null ? void 0 : activeEl.tagName.toLowerCase()) === "sd-4-0-0-next-2-tab") {
|
|
120
120
|
let index = this.tabs.indexOf(activeEl);
|
|
121
121
|
if (event.key === "Home") {
|
|
122
122
|
index = 0;
|
|
@@ -212,15 +212,15 @@ var SdTabGroup = class extends SolidElement {
|
|
|
212
212
|
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(
|
|
213
213
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 left-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
214
214
|
this.localize.dir() === "rtl" && "left-auto right-0"
|
|
215
|
-
)}" @click="${this.handleScrollToStart}"><sd-4-0-0-next-
|
|
215
|
+
)}" @click="${this.handleScrollToStart}"><sd-4-0-0-next-2-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-0-0-next-2-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(
|
|
216
216
|
"sd-interactive flex items-center justify-center absolute top-0 bottom-0 right-0 !outline-offset-0 border-b border-neutral-400 z-10",
|
|
217
217
|
this.localize.dir() === "rtl" && "right-auto left-0"
|
|
218
|
-
)}" @click="${this.handleScrollToEnd}"><sd-4-0-0-next-
|
|
218
|
+
)}" @click="${this.handleScrollToEnd}"><sd-4-0-0-next-2-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-0-0-next-2-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>`;
|
|
219
219
|
}
|
|
220
220
|
};
|
|
221
221
|
SdTabGroup.styles = [
|
|
222
222
|
...SolidElement.styles,
|
|
223
|
-
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-0-0-next-
|
|
223
|
+
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-0-0-next-2-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-0-0-next-2-tab-panel){--padding:1rem 0}`
|
|
224
224
|
];
|
|
225
225
|
__decorateClass([
|
|
226
226
|
query("[part=base]")
|
|
@@ -241,7 +241,7 @@ __decorateClass([
|
|
|
241
241
|
property()
|
|
242
242
|
], SdTabGroup.prototype, "activation", 2);
|
|
243
243
|
SdTabGroup = __decorateClass([
|
|
244
|
-
customElement("sd-4-0-0-next-
|
|
244
|
+
customElement("sd-4-0-0-next-2-tab-group")
|
|
245
245
|
], SdTabGroup);
|
|
246
246
|
|
|
247
247
|
export {
|
|
@@ -25,7 +25,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
25
25
|
this.label = "";
|
|
26
26
|
}
|
|
27
27
|
getAllCheckboxes() {
|
|
28
|
-
return [...this.querySelectorAll("sd-4-0-0-next-
|
|
28
|
+
return [...this.querySelectorAll("sd-4-0-0-next-2-checkbox")];
|
|
29
29
|
}
|
|
30
30
|
async syncCheckboxElements() {
|
|
31
31
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -38,10 +38,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
38
38
|
);
|
|
39
39
|
}
|
|
40
40
|
syncCheckboxes() {
|
|
41
|
-
if (customElements.get("sd-4-0-0-next-
|
|
41
|
+
if (customElements.get("sd-4-0-0-next-2-checkbox")) {
|
|
42
42
|
this.syncCheckboxElements();
|
|
43
43
|
} else {
|
|
44
|
-
customElements.whenDefined("sd-4-0-0-next-
|
|
44
|
+
customElements.whenDefined("sd-4-0-0-next-2-checkbox").then(() => this.syncCheckboxes());
|
|
45
45
|
}
|
|
46
46
|
}
|
|
47
47
|
handleSizeChange() {
|
|
@@ -75,7 +75,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
75
75
|
*/
|
|
76
76
|
SdCheckboxGroup.styles = [
|
|
77
77
|
...SolidElement.styles,
|
|
78
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-
|
|
78
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-2-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-2-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-2-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-2-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-2-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-2-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
|
79
79
|
];
|
|
80
80
|
__decorateClass([
|
|
81
81
|
property({ reflect: true })
|
|
@@ -93,7 +93,7 @@ __decorateClass([
|
|
|
93
93
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
94
94
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
95
95
|
SdCheckboxGroup = __decorateClass([
|
|
96
|
-
customElement("sd-4-0-0-next-
|
|
96
|
+
customElement("sd-4-0-0-next-2-checkbox-group")
|
|
97
97
|
], SdCheckboxGroup);
|
|
98
98
|
|
|
99
99
|
export {
|
|
@@ -18,7 +18,7 @@ var SdTabPanel = class extends SolidElement {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.attrId = ++id;
|
|
21
|
-
this.componentId = `sd-4-0-0-next-
|
|
21
|
+
this.componentId = `sd-4-0-0-next-2-tab-panel-${this.attrId}`;
|
|
22
22
|
this.name = "";
|
|
23
23
|
this.active = false;
|
|
24
24
|
}
|
|
@@ -48,7 +48,7 @@ __decorateClass([
|
|
|
48
48
|
watch("active")
|
|
49
49
|
], SdTabPanel.prototype, "handleActiveChange", 1);
|
|
50
50
|
SdTabPanel = __decorateClass([
|
|
51
|
-
customElement("sd-4-0-0-next-
|
|
51
|
+
customElement("sd-4-0-0-next-2-tab-panel")
|
|
52
52
|
], SdTabPanel);
|
|
53
53
|
|
|
54
54
|
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-4-0-0-next-
|
|
13
|
+
const popup = document.createElement("sd-4-0-0-next-2-popup");
|
|
14
14
|
popup.appendChild(ul);
|
|
15
15
|
(_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
|
|
16
16
|
popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
|
|
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
22
22
|
popup.anchor = sdInput;
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
|
-
const styles = css`sd-4-0-0-next-
|
|
25
|
+
const styles = css`sd-4-0-0-next-2-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-4-0-0-next-2-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-0-0-next-2-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-4-0-0-next-2-popup li{list-style-type:""}sd-4-0-0-next-2-popup li mark{background-color:transparent;font-weight:700}sd-4-0-0-next-2-popup li:not(:has(sd-4-0-0-next-2-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-4-0-0-next-2-popup li:not(:has(sd-4-0-0-next-2-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-4-0-0-next-2-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
|
|
26
26
|
const styleSheet = new CSSStyleSheet();
|
|
27
27
|
styleSheet.replaceSync(styles);
|
|
28
28
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
35
35
|
}
|
|
36
36
|
input.addEventListener("open", () => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f;
|
|
38
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-0-next-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-0-next-2-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
39
39
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
40
40
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
41
41
|
});
|
|
42
42
|
input.addEventListener("close", () => {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-0-next-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-4-0-0-next-2-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
45
45
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
46
46
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
47
47
|
});
|
|
@@ -32,7 +32,7 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
32
32
|
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-all ease-in-out duration-300 text-xl sm:text-4xl sm:mt-2",
|
|
33
33
|
this.open && "rotate-180",
|
|
34
34
|
!this.expandable && "hidden"
|
|
35
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-
|
|
35
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-4-0-0-next-2-icon library="system" name="chevron-down"></sd-4-0-0-next-2-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-4-0-0-next-2-icon library="system" name="chevron-down"></sd-4-0-0-next-2-icon></slot></span></header><div part="content" id="content" class="${cx("overflow-hidden", !this.expandable && "hidden")}"><slot part="content__slot" class="block" role="region" aria-labelledby="header"></slot></div></div>`;
|
|
36
36
|
}
|
|
37
37
|
};
|
|
38
38
|
SdQuickfact.styles = [
|
|
@@ -43,7 +43,7 @@ __decorateClass([
|
|
|
43
43
|
property({ type: Boolean, reflect: true })
|
|
44
44
|
], SdQuickfact.prototype, "expandable", 2);
|
|
45
45
|
SdQuickfact = __decorateClass([
|
|
46
|
-
customElement("sd-4-0-0-next-
|
|
46
|
+
customElement("sd-4-0-0-next-2-quickfact")
|
|
47
47
|
], SdQuickfact);
|
|
48
48
|
setDefaultAnimation("quickfact.show", {
|
|
49
49
|
keyframes: [
|
|
@@ -169,7 +169,7 @@ var SdDialog = class extends SolidElement {
|
|
|
169
169
|
)}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
170
170
|
"flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted",
|
|
171
171
|
this.open && "flex opacity-100"
|
|
172
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-4-0-0-next-
|
|
172
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.headline}" aria-labelledby="title" tabindex="0"><header part="header" class="flex flex-grow-0 flex-shrink-0 basis-auto px-6 sm:px-10"><h2 part="title" class="flex-auto m-0" id="title">${this.headline.length > 0 ? html`<span class="sd-headline sd-headline--size-3xl leading-tight">${this.headline}</span>` : html`<slot name="headline"></slot>`}</h2>${!this.noCloseButton ? html`<sd-4-0-0-next-2-button part="close-button" variant="tertiary" exportparts="base:close-button__base" class="${cx("absolute top-2 right-2")}" name="x-lg" @click="${() => this.requestClose("close-button")}" type="button"><sd-4-0-0-next-2-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-0-0-next-2-icon></sd-4-0-0-next-2-button>` : ""}</header><main part="body" class="flex flex-auto overflow-auto w-full px-6 sm:px-10"><slot></slot></main><footer part="footer" class="flex flex-grow-0 flex-shrink-0 basis-auto ml-auto gap-4 px-6 sm:px-10"><slot name="footer"></slot></footer></div></div>`;
|
|
173
173
|
}
|
|
174
174
|
};
|
|
175
175
|
SdDialog.styles = [
|
|
@@ -198,7 +198,7 @@ __decorateClass([
|
|
|
198
198
|
watch("open", { waitUntilFirstUpdate: true })
|
|
199
199
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
200
200
|
SdDialog = __decorateClass([
|
|
201
|
-
customElement("sd-4-0-0-next-
|
|
201
|
+
customElement("sd-4-0-0-next-2-dialog")
|
|
202
202
|
], SdDialog);
|
|
203
203
|
setDefaultAnimation("dialog.show", {
|
|
204
204
|
keyframes: [
|
|
@@ -18,7 +18,7 @@ var SdTab = class extends SolidElement {
|
|
|
18
18
|
constructor() {
|
|
19
19
|
super(...arguments);
|
|
20
20
|
this.attrId = ++id;
|
|
21
|
-
this.componentId = `sd-4-0-0-next-
|
|
21
|
+
this.componentId = `sd-4-0-0-next-2-tab-${this.attrId}`;
|
|
22
22
|
this.variant = "default";
|
|
23
23
|
this.active = false;
|
|
24
24
|
this.disabled = false;
|
|
@@ -84,7 +84,7 @@ __decorateClass([
|
|
|
84
84
|
watch("disabled")
|
|
85
85
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
86
86
|
SdTab = __decorateClass([
|
|
87
|
-
customElement("sd-4-0-0-next-
|
|
87
|
+
customElement("sd-4-0-0-next-2-tab")
|
|
88
88
|
], SdTab);
|
|
89
89
|
|
|
90
90
|
export {
|
|
@@ -64,7 +64,7 @@ __decorateClass([
|
|
|
64
64
|
query('[part="base"]')
|
|
65
65
|
], SdTeaserMedia.prototype, "teaserMedia", 2);
|
|
66
66
|
SdTeaserMedia = __decorateClass([
|
|
67
|
-
customElement("sd-4-0-0-next-
|
|
67
|
+
customElement("sd-4-0-0-next-2-teaser-media")
|
|
68
68
|
], SdTeaserMedia);
|
|
69
69
|
|
|
70
70
|
export {
|
|
@@ -76,10 +76,10 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
76
76
|
this.formControlController.updateValidity();
|
|
77
77
|
}
|
|
78
78
|
getAllRadios() {
|
|
79
|
-
return [...this.querySelectorAll("sd-4-0-0-next-
|
|
79
|
+
return [...this.querySelectorAll("sd-4-0-0-next-2-radio, sd-4-0-0-next-2-radio-button")];
|
|
80
80
|
}
|
|
81
81
|
handleRadioClick(event) {
|
|
82
|
-
const target = event.target.closest("sd-4-0-0-next-
|
|
82
|
+
const target = event.target.closest("sd-4-0-0-next-2-radio, sd-4-0-0-next-2-radio-button");
|
|
83
83
|
const radios = this.getAllRadios();
|
|
84
84
|
const oldValue = this.value;
|
|
85
85
|
if (target.disabled) {
|
|
@@ -156,7 +156,7 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
156
156
|
}
|
|
157
157
|
})
|
|
158
158
|
);
|
|
159
|
-
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-0-0-next-
|
|
159
|
+
this.hasButtonGroup = radios.some((radio) => radio.tagName.toLowerCase() === "sd-4-0-0-next-2-radio-button");
|
|
160
160
|
if (!radios.some((radio) => radio.checked)) {
|
|
161
161
|
if (this.hasButtonGroup) {
|
|
162
162
|
const buttonRadio = (_a = radios[0].shadowRoot) == null ? void 0 : _a.querySelector("button");
|
|
@@ -168,26 +168,26 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
if (this.hasButtonGroup) {
|
|
171
|
-
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-0-0-next-
|
|
171
|
+
const buttonGroup = (_b = this.shadowRoot) == null ? void 0 : _b.querySelector("sd-4-0-0-next-2-button-group");
|
|
172
172
|
if (buttonGroup) {
|
|
173
173
|
buttonGroup.disableRole = true;
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
176
|
}
|
|
177
177
|
syncRadios() {
|
|
178
|
-
if (customElements.get("sd-4-0-0-next-
|
|
178
|
+
if (customElements.get("sd-4-0-0-next-2-radio") && customElements.get("sd-4-0-0-next-2-radio-button")) {
|
|
179
179
|
this.syncRadioElements();
|
|
180
180
|
return;
|
|
181
181
|
}
|
|
182
|
-
if (customElements.get("sd-4-0-0-next-
|
|
182
|
+
if (customElements.get("sd-4-0-0-next-2-radio")) {
|
|
183
183
|
this.syncRadioElements();
|
|
184
184
|
} else {
|
|
185
|
-
customElements.whenDefined("sd-4-0-0-next-
|
|
185
|
+
customElements.whenDefined("sd-4-0-0-next-2-radio").then(() => this.syncRadios());
|
|
186
186
|
}
|
|
187
|
-
if (customElements.get("sd-4-0-0-next-
|
|
187
|
+
if (customElements.get("sd-4-0-0-next-2-radio-button")) {
|
|
188
188
|
this.syncRadioElements();
|
|
189
189
|
} else {
|
|
190
|
-
customElements.whenDefined("sd-4-0-0-next-
|
|
190
|
+
customElements.whenDefined("sd-4-0-0-next-2-radio-button").then(() => this.syncRadios());
|
|
191
191
|
}
|
|
192
192
|
}
|
|
193
193
|
updateCheckedRadio() {
|
|
@@ -259,16 +259,16 @@ var SdRadioGroup = class extends SolidElement {
|
|
|
259
259
|
vertical: "flex-col",
|
|
260
260
|
horizontal: "flex-row"
|
|
261
261
|
}[this.orientation]
|
|
262
|
-
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-0-0-next-
|
|
262
|
+
)}"><div class="sr-only"><label><input id="validation-input" type="text" ?required="${this.required}" tabindex="-1" hidden @invalid="${this.handleInvalid}"></label></div>${this.hasButtonGroup ? html`<sd-4-0-0-next-2-button-group part="button-group" exportparts="base:button-group__base" role="presentation">${defaultSlot}</sd-4-0-0-next-2-button-group>` : defaultSlot}</div></fieldset>${this.formControlController.renderInvalidMessage()}`;
|
|
263
263
|
}
|
|
264
264
|
};
|
|
265
|
-
SdRadioGroup.dependencies = { "sd-4-0-0-next-
|
|
265
|
+
SdRadioGroup.dependencies = { "sd-4-0-0-next-2-button-group": SdButtonGroup };
|
|
266
266
|
/**
|
|
267
267
|
* Inherits Tailwind classes and includes additional styling.
|
|
268
268
|
*/
|
|
269
269
|
SdRadioGroup.styles = [
|
|
270
270
|
...SolidElement.styles,
|
|
271
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-
|
|
271
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-2-radio){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-2-radio:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-2-radio){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-2-radio){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-2-radio:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([required]) #label:after{content:" *"}`
|
|
272
272
|
];
|
|
273
273
|
__decorateClass([
|
|
274
274
|
query("slot:not([name])")
|
|
@@ -322,7 +322,7 @@ __decorateClass([
|
|
|
322
322
|
watch("value")
|
|
323
323
|
], SdRadioGroup.prototype, "handleValueChange", 1);
|
|
324
324
|
SdRadioGroup = __decorateClass([
|
|
325
|
-
customElement("sd-4-0-0-next-
|
|
325
|
+
customElement("sd-4-0-0-next-2-radio-group")
|
|
326
326
|
], SdRadioGroup);
|
|
327
327
|
|
|
328
328
|
export {
|
|
@@ -112,16 +112,16 @@ var SdNavigationItem = class extends SolidElement {
|
|
|
112
112
|
isAccordion ? "grow" : "w-full",
|
|
113
113
|
slots["description"] || this.separated ? "pb-1" : horizontalPaddingBottom,
|
|
114
114
|
this.calculatePaddingX
|
|
115
|
-
)}">${this.divider && this.vertical ? html`<sd-4-0-0-next-
|
|
115
|
+
)}">${this.divider && this.vertical ? html`<sd-4-0-0-next-2-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-4-0-0-next-2-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated ? html`<a class="${cx(
|
|
116
116
|
"mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",
|
|
117
117
|
!slots["description"] && "py-4"
|
|
118
|
-
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-
|
|
118
|
+
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-4-0-0-next-2-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
119
119
|
"mr-4 h-6 w-6 transition-all",
|
|
120
120
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
121
|
-
)}"></sd-4-0-0-next-
|
|
121
|
+
)}"></sd-4-0-0-next-2-icon></button>` : html`<sd-4-0-0-next-2-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
122
122
|
"h-6 w-6 ml-2 transition-all",
|
|
123
123
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
124
|
-
)}"></sd-4-0-0-next-
|
|
124
|
+
)}"></sd-4-0-0-next-2-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
|
|
125
125
|
"inline-block text-sm text-left text-black",
|
|
126
126
|
isAccordion || this.separated ? "grow" : "w-full",
|
|
127
127
|
this.separated ? "px-4" : this.calculatePaddingX,
|
|
@@ -186,7 +186,7 @@ __decorateClass([
|
|
|
186
186
|
property({ type: Boolean, reflect: true })
|
|
187
187
|
], SdNavigationItem.prototype, "separated", 2);
|
|
188
188
|
SdNavigationItem = __decorateClass([
|
|
189
|
-
customElement("sd-4-0-0-next-
|
|
189
|
+
customElement("sd-4-0-0-next-2-navigation-item")
|
|
190
190
|
], SdNavigationItem);
|
|
191
191
|
|
|
192
192
|
export {
|