@solid-design-system/components 4.0.0-next.8 → 4.0.0-next.9
Sign up to get free protection for your applications and to get access to all the features.
- package/cdn/chunks/chunk.GT3LHFGJ.js +1 -0
- package/cdn/components/badge/badge.d.ts +1 -1
- package/cdn/components/badge/badge.js +1 -1
- package/cdn/custom-elements.json +5 -5
- 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/vscode.html-custom-data.json +1 -5
- package/cdn/web-types.json +4 -4
- 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.2IZXJHH7.js +1 -1
- package/cdn-versioned/chunks/chunk.36Z2VDHI.js +1 -1
- package/cdn-versioned/chunks/chunk.3ATYVOO4.js +1 -1
- package/cdn-versioned/chunks/chunk.4HIKTDIM.js +3 -3
- package/cdn-versioned/chunks/chunk.4W3WLVGR.js +1 -1
- package/cdn-versioned/chunks/chunk.5FM4F3Y4.js +1 -1
- 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.7RJ3O2FV.js +1 -1
- package/cdn-versioned/chunks/chunk.AA7WA27A.js +4 -4
- package/cdn-versioned/chunks/chunk.APMDRZQD.js +1 -1
- package/cdn-versioned/chunks/chunk.C2PA7CKF.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.DMLGBWCL.js +1 -1
- package/cdn-versioned/chunks/chunk.DVHKKAVM.js +1 -1
- package/cdn-versioned/chunks/chunk.EWWGLHC5.js +1 -1
- package/cdn-versioned/chunks/chunk.F7J6HN76.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.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.GT3LHFGJ.js +1 -0
- package/cdn-versioned/chunks/chunk.ISEQUO4U.js +1 -1
- package/cdn-versioned/chunks/chunk.ITRQVXFY.js +1 -1
- package/cdn-versioned/chunks/chunk.IZKUI5WK.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.MPP7HYX7.js +1 -1
- package/cdn-versioned/chunks/chunk.MX22EZXK.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.OVVNTNS7.js +4 -4
- package/cdn-versioned/chunks/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.TA7CZCP3.js +1 -1
- package/cdn-versioned/chunks/chunk.U443X4TI.js +1 -1
- 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.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/chunks/chunk.ZRIABVVM.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 +2 -2
- package/cdn-versioned/components/badge/badge.js +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/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/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 +206 -206
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +17 -17
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +17 -17
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +81 -85
- package/cdn-versioned/web-types.json +140 -140
- package/dist/chunks/{chunk.RZRTIYXA.js → chunk.RIKFGIMH.js} +4 -4
- package/dist/components/badge/badge.d.ts +1 -1
- package/dist/components/badge/badge.js +1 -1
- package/dist/custom-elements.json +5 -5
- package/dist/solid-components.js +1 -1
- package/dist/vscode.html-custom-data.json +1 -5
- package/dist/web-types.json +4 -4
- 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.4JZQQD4L.js +3 -3
- package/dist-versioned/chunks/chunk.4QKRGAOL.js +4 -4
- package/dist-versioned/chunks/chunk.4RGGPCD5.js +2 -2
- package/dist-versioned/chunks/chunk.4XDHTC3C.js +26 -26
- 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.727ERQ4F.js +2 -2
- package/dist-versioned/chunks/chunk.743FPQRN.js +2 -2
- package/dist-versioned/chunks/chunk.76ZNNLGN.js +1 -1
- package/dist-versioned/chunks/chunk.7OHSCBBX.js +1 -1
- package/dist-versioned/chunks/chunk.BG3M5FUP.js +13 -13
- 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.DQPVSTUQ.js +3 -3
- package/dist-versioned/chunks/chunk.EKFRFDTB.js +5 -5
- package/dist-versioned/chunks/chunk.H655M7FD.js +1 -1
- package/dist-versioned/chunks/chunk.HPR3PWAE.js +3 -3
- 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.KTJRTRDJ.js +5 -5
- 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.O3ZFWYJW.js +29 -29
- 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.RZRTIYXA.js → chunk.RIKFGIMH.js} +5 -5
- package/dist-versioned/chunks/chunk.RNSJAVQE.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.TWXYFPBS.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.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 +2 -2
- package/dist-versioned/components/badge/badge.js +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/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/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 +206 -206
- 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 +81 -85
- package/dist-versioned/web-types.json +140 -140
- package/package.json +1 -1
- package/cdn/chunks/chunk.7M7VCE7R.js +0 -1
- package/cdn-versioned/chunks/chunk.7M7VCE7R.js +0 -1
@@ -14,7 +14,7 @@ var SdBadge = class extends SolidElement {
|
|
14
14
|
constructor() {
|
15
15
|
super(...arguments);
|
16
16
|
this.size = "lg";
|
17
|
-
this.variant = "
|
17
|
+
this.variant = "blue";
|
18
18
|
this.inverted = false;
|
19
19
|
}
|
20
20
|
render() {
|
@@ -22,9 +22,9 @@ var SdBadge = class extends SolidElement {
|
|
22
22
|
"inline-flex items-center justify-center gap-x-[1px] text-center font-bold whitespace-nowrap border rounded-full select-none cursor-[inherit]",
|
23
23
|
{
|
24
24
|
/* variants */
|
25
|
-
|
26
|
-
|
27
|
-
|
25
|
+
blue: !this.inverted ? "text-white bg-primary-500 border-white" : "text-primary bg-primary-100 border-primary",
|
26
|
+
green: !this.inverted ? "text-white bg-success border-white" : "text-white bg-success border-primary",
|
27
|
+
red: !this.inverted ? "text-white bg-error border-white" : "text-white bg-error border-primary"
|
28
28
|
}[this.variant],
|
29
29
|
{
|
30
30
|
/* size and fonts*/
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import SolidElement from '../../internal/solid-element';
|
2
2
|
export default class SdBadge extends SolidElement {
|
3
3
|
size: 'lg' | 'md' | 'sm';
|
4
|
-
variant: '
|
4
|
+
variant: 'blue' | 'green' | 'red';
|
5
5
|
inverted: boolean;
|
6
6
|
render(): import("lit").TemplateResult<1>;
|
7
7
|
static styles: import("lit").CSSResult[];
|
@@ -1416,9 +1416,9 @@
|
|
1416
1416
|
"kind": "field",
|
1417
1417
|
"name": "variant",
|
1418
1418
|
"type": {
|
1419
|
-
"text": "'
|
1419
|
+
"text": "'blue' | 'green' | 'red'"
|
1420
1420
|
},
|
1421
|
-
"default": "'
|
1421
|
+
"default": "'blue'",
|
1422
1422
|
"description": "The badge's variant.",
|
1423
1423
|
"attribute": "variant",
|
1424
1424
|
"reflects": true
|
@@ -1498,9 +1498,9 @@
|
|
1498
1498
|
{
|
1499
1499
|
"name": "variant",
|
1500
1500
|
"type": {
|
1501
|
-
"text": "'
|
1501
|
+
"text": "'blue' | 'green' | 'red'"
|
1502
1502
|
},
|
1503
|
-
"default": "'
|
1503
|
+
"default": "'blue'",
|
1504
1504
|
"description": "The badge's variant.",
|
1505
1505
|
"fieldName": "variant"
|
1506
1506
|
},
|
@@ -16712,7 +16712,7 @@
|
|
16712
16712
|
"package": {
|
16713
16713
|
"name": "@solid-design-system/components",
|
16714
16714
|
"description": "Solid Design System: Components",
|
16715
|
-
"version": "4.0.0-next.
|
16715
|
+
"version": "4.0.0-next.9",
|
16716
16716
|
"author": "Union Investment",
|
16717
16717
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
16718
16718
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
@@ -121,7 +121,7 @@ import "./chunks/chunk.XHCTCU2Q.js";
|
|
121
121
|
import "./chunks/chunk.WDWV53JP.js";
|
122
122
|
import {
|
123
123
|
SdBadge
|
124
|
-
} from "./chunks/chunk.
|
124
|
+
} from "./chunks/chunk.RIKFGIMH.js";
|
125
125
|
import {
|
126
126
|
SdBrandshape
|
127
127
|
} from "./chunks/chunk.H655M7FD.js";
|
@@ -197,11 +197,7 @@
|
|
197
197
|
{
|
198
198
|
"name": "variant",
|
199
199
|
"description": "The badge's variant.",
|
200
|
-
"values": [
|
201
|
-
{ "name": "default" },
|
202
|
-
{ "name": "success" },
|
203
|
-
{ "name": "error" }
|
204
|
-
]
|
200
|
+
"values": [{ "name": "blue" }, { "name": "green" }, { "name": "red" }]
|
205
201
|
},
|
206
202
|
{
|
207
203
|
"name": "inverted",
|
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.9",
|
5
5
|
"description-markup": "markdown",
|
6
6
|
"contributions": {
|
7
7
|
"html": {
|
@@ -513,8 +513,8 @@
|
|
513
513
|
"name": "variant",
|
514
514
|
"description": "The badge's variant.",
|
515
515
|
"value": {
|
516
|
-
"type": "'
|
517
|
-
"default": "'
|
516
|
+
"type": "'blue' | 'green' | 'red'",
|
517
|
+
"default": "'blue'"
|
518
518
|
}
|
519
519
|
},
|
520
520
|
{
|
@@ -545,7 +545,7 @@
|
|
545
545
|
{
|
546
546
|
"name": "variant",
|
547
547
|
"description": "The badge's variant.",
|
548
|
-
"type": "'
|
548
|
+
"type": "'blue' | 'green' | 'red'"
|
549
549
|
},
|
550
550
|
{
|
551
551
|
"name": "inverted",
|
@@ -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-9-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-9-icon name="check" library="system" aria-hidden="true"></sd-4-0-0-next-9-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-9-icon name="chevron-right" library="system" aria-hidden="true"></sd-4-0-0-next-9-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-9-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-9-icon name="status-check" library="system"></sd-4-0-0-next-9-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-9-step")
|
135
135
|
], SdStep);
|
136
136
|
|
137
137
|
export {
|
@@ -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-0-0-next-
|
67
|
+
<sd-4-0-0-next-9-icon library="system" name="chevron-down"></sd-4-0-0-next-9-icon>
|
68
68
|
</slot>
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
70
|
-
<sd-4-0-0-next-
|
70
|
+
<sd-4-0-0-next-9-icon library="system" name="chevron-down"></sd-4-0-0-next-9-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-0-0-next-
|
88
|
+
customElement("sd-4-0-0-next-9-quickfact")
|
89
89
|
], SdQuickfact);
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
91
91
|
keyframes: [
|
@@ -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-9-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-4-0-0-next-9-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-9-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-4-0-0-next-9-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-9-icon),sd-4-0-0-next-9-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-9-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-9-button")
|
295
295
|
], SdButton);
|
296
296
|
|
297
297
|
export {
|
@@ -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-9-divider[orientation=horizontal]){display:block}:host(sd-4-0-0-next-9-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-9-divider")
|
45
45
|
], SdDivider);
|
46
46
|
|
47
47
|
export {
|
@@ -62,7 +62,7 @@ var SdCombobox = class extends SolidElement {
|
|
62
62
|
constructor() {
|
63
63
|
super(...arguments);
|
64
64
|
this.formControlController = new FormControlController(this, {
|
65
|
-
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-
|
65
|
+
assumeInteractionOn: ["sd-blur", "sd-4-0-0-next-9-input"]
|
66
66
|
});
|
67
67
|
this.hasSlotController = new HasSlotController(this, "help-text", "label");
|
68
68
|
this.localize = new LocalizeController(this);
|
@@ -103,11 +103,11 @@ var SdCombobox = class extends SolidElement {
|
|
103
103
|
return normalizedOption.includes(normalizedQuery) || normalizedOptionLabel.includes(normalizedQuery);
|
104
104
|
};
|
105
105
|
this.getTag = (option) => {
|
106
|
-
return html`<sd-4-0-0-next-
|
106
|
+
return html`<sd-4-0-0-next-9-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
107
107
|
base:tag__base,
|
108
108
|
content:tag__content,
|
109
109
|
removable-indicator:tag__removable-indicator,
|
110
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-
|
110
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagKeyDown(event, option)}" @sd-remove="${(event) => this.handleTagRemove(event, option)}">${option.getTextLabel()}</sd-4-0-0-next-9-tag>`;
|
111
111
|
};
|
112
112
|
this.handleDocumentFocusIn = (event) => {
|
113
113
|
const path = event.composedPath();
|
@@ -229,9 +229,9 @@ var SdCombobox = class extends SolidElement {
|
|
229
229
|
return html`${typeof optionHtml === "string" ? unsafeHTML(optionHtml) : optionHtml}`;
|
230
230
|
};
|
231
231
|
return this.filteredOptions.map((item) => {
|
232
|
-
if (item.tagName.toLowerCase() === "sd-4-0-0-next-
|
232
|
+
if (item.tagName.toLowerCase() === "sd-4-0-0-next-9-optgroup") {
|
233
233
|
Array.from(item.children).forEach((option) => {
|
234
|
-
if (option.tagName.toLowerCase() === "sd-4-0-0-next-
|
234
|
+
if (option.tagName.toLowerCase() === "sd-4-0-0-next-9-option") {
|
235
235
|
renderOption(option);
|
236
236
|
}
|
237
237
|
});
|
@@ -251,11 +251,11 @@ var SdCombobox = class extends SolidElement {
|
|
251
251
|
});
|
252
252
|
} else {
|
253
253
|
return [
|
254
|
-
html`<sd-4-0-0-next-
|
254
|
+
html`<sd-4-0-0-next-9-tag ?disabled="${this.disabled}" part="tag" exportparts="
|
255
255
|
base:tag__base,
|
256
256
|
content:tag__content,
|
257
257
|
removable-indicator:tag__removable-indicator,
|
258
|
-
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.maxOptionsTagLabel}</sd-4-0-0-next-
|
258
|
+
" size="${this.size === "sm" ? "sm" : "lg"}" removable @keydown="${(event) => this.handleTagMaxOptionsKeyDown(event)}" @sd-remove="${(event) => this.handleTagRemove(event)}">${this.selectedOptions.length} ${this.maxOptionsTagLabel}</sd-4-0-0-next-9-tag>`
|
259
259
|
];
|
260
260
|
}
|
261
261
|
}
|
@@ -364,7 +364,7 @@ var SdCombobox = class extends SolidElement {
|
|
364
364
|
}
|
365
365
|
handleOptionClick(event) {
|
366
366
|
const target = event.target;
|
367
|
-
const option = target.closest("sd-4-0-0-next-
|
367
|
+
const option = target.closest("sd-4-0-0-next-9-option");
|
368
368
|
const oldValue = this.value;
|
369
369
|
if (option && !option.disabled) {
|
370
370
|
if (this.multiple) {
|
@@ -416,7 +416,7 @@ var SdCombobox = class extends SolidElement {
|
|
416
416
|
scrollIntoView(this.getCurrentOption(), this.listbox, "vertical", "auto");
|
417
417
|
}
|
418
418
|
getAllFilteredOptions() {
|
419
|
-
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-
|
419
|
+
return [...this.filteredWrapper.querySelectorAll("sd-4-0-0-next-9-option")];
|
420
420
|
}
|
421
421
|
getCurrentOption() {
|
422
422
|
return this.getAllFilteredOptions().find((option) => option.current);
|
@@ -542,7 +542,7 @@ var SdCombobox = class extends SolidElement {
|
|
542
542
|
clonedOption.selected = option.selected;
|
543
543
|
clonedOption.checkbox = option.checkbox;
|
544
544
|
clonedOption.size = option.size;
|
545
|
-
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-
|
545
|
+
const hasOptgroup = ((_b = option.parentElement) == null ? void 0 : _b.tagName.toLowerCase()) === "sd-4-0-0-next-9-optgroup";
|
546
546
|
if (!hasOptgroup) {
|
547
547
|
return clonedOption;
|
548
548
|
}
|
@@ -572,7 +572,7 @@ var SdCombobox = class extends SolidElement {
|
|
572
572
|
handleMouseLeave() {
|
573
573
|
this.hasHover = false;
|
574
574
|
}
|
575
|
-
/** Receives incoming event detail from sd-4-0-0-next-
|
575
|
+
/** Receives incoming event detail from sd-4-0-0-next-9-popup and updates local state for conditional styling. */
|
576
576
|
handleCurrentPlacement(e) {
|
577
577
|
const incomingPlacement = e.detail;
|
578
578
|
if (incomingPlacement) {
|
@@ -584,7 +584,7 @@ var SdCombobox = class extends SolidElement {
|
|
584
584
|
}
|
585
585
|
handleUseTagsChange() {
|
586
586
|
const allOptions = this.getAllFilteredOptions();
|
587
|
-
if (customElements.get("sd-4-0-0-next-
|
587
|
+
if (customElements.get("sd-4-0-0-next-9-option")) {
|
588
588
|
allOptions.forEach((option) => {
|
589
589
|
option.checkbox = this.multiple;
|
590
590
|
});
|
@@ -710,8 +710,8 @@ var SdCombobox = class extends SolidElement {
|
|
710
710
|
return filterOnlyOptgroups(getAssignedElementsForSlot(this.defaultSlot));
|
711
711
|
}
|
712
712
|
async handleDefaultSlotChange() {
|
713
|
-
if (!customElements.get("sd-4-0-0-next-
|
714
|
-
customElements.whenDefined("sd-4-0-0-next-
|
713
|
+
if (!customElements.get("sd-4-0-0-next-9-option")) {
|
714
|
+
customElements.whenDefined("sd-4-0-0-next-9-option").then(() => this.handleDefaultSlotChange());
|
715
715
|
return;
|
716
716
|
}
|
717
717
|
const slottedOptions = this.getSlottedOptions();
|
@@ -723,10 +723,10 @@ var SdCombobox = class extends SolidElement {
|
|
723
723
|
if (this.multiple) {
|
724
724
|
option.checkbox = true;
|
725
725
|
}
|
726
|
-
option.id = option.id || `sd-4-0-0-next-
|
726
|
+
option.id = option.id || `sd-4-0-0-next-9-combobox-option-${index}`;
|
727
727
|
});
|
728
728
|
slottedOptgroups.forEach((optgroup, index) => {
|
729
|
-
optgroup.id = optgroup.id || `sd-4-0-0-next-
|
729
|
+
optgroup.id = optgroup.id || `sd-4-0-0-next-9-combobox-optgroup-${index}`;
|
730
730
|
});
|
731
731
|
await this.syncSelectedOptionsAndValue();
|
732
732
|
if (this.multiple) {
|
@@ -774,7 +774,7 @@ var SdCombobox = class extends SolidElement {
|
|
774
774
|
default: "border-neutral-800"
|
775
775
|
}[selectState],
|
776
776
|
this.open && (this.currentPlacement === "bottom" ? "rounded-bl-none rounded-br-none" : "rounded-tl-none rounded-tr-none")
|
777
|
-
)}"></div><sd-4-0-0-next-
|
777
|
+
)}"></div><sd-4-0-0-next-9-popup @sd-current-placement="${this.handleCurrentPlacement}" class="${cx(
|
778
778
|
"inline-flex relative w-full",
|
779
779
|
this.currentPlacement === "bottom" ? "origin-top" : "origin-bottom"
|
780
780
|
)}" placement="${this.placement}" strategy="${this.hoist ? "fixed" : "absolute"}" flip shift sync="width" auto-size="vertical" auto-size-padding="10" exportparts="
|
@@ -795,28 +795,28 @@ var SdCombobox = class extends SolidElement {
|
|
795
795
|
"flex justify-center",
|
796
796
|
iconMarginLeft,
|
797
797
|
this.value.length > 0 ? "visible" : "invisible"
|
798
|
-
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-
|
798
|
+
)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.preventLoosingFocus}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-4-0-0-next-9-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" name="closing-round" library="system"></sd-4-0-0-next-9-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-4-0-0-next-9-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-4-0-0-next-9-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-4-0-0-next-9-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-4-0-0-next-9-icon>` : ""}<slot name="right" part="right" class="${cx(
|
799
799
|
"inline-flex ml-2 leading-[0]",
|
800
800
|
this.disabled ? "text-neutral-500" : "text-primary",
|
801
801
|
iconSize
|
802
|
-
)}"><sd-4-0-0-next-
|
802
|
+
)}"><sd-4-0-0-next-9-icon class="${cx("transition-all", this.open ? "rotate-180" : "rotate-0")}" name="chevron-down" part="chevron" library="system" color="currentColor"></sd-4-0-0-next-9-icon></slot></div><div id="listbox" role="listbox" aria-expanded="${this.open}" aria-multiselectable="${this.multiple}" aria-labelledby="label" part="listbox" class="${cx(
|
803
803
|
"bg-white px-2 py-3 relative border-primary overflow-y-auto",
|
804
804
|
this.open && "shadow",
|
805
805
|
this.currentPlacement === "bottom" ? "border-r-2 border-b-2 border-l-2 rounded-br-default rounded-bl-default" : "border-r-2 border-t-2 border-l-2 rounded-tr-default rounded-tl-default"
|
806
|
-
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-
|
806
|
+
)}" tabindex="-1" @mousedown="${this.preventLoosingFocus}" @mouseup="${this.handleOptionClick}"><div part="filtered-listbox" class="overflow-y-scroll">${this.filteredOptions.length === 0 ? html`<span id="noResults" class="px-4 flex items-center w-full transition-all text-left text-base relative text-black py-3" aria-hidden="true" @click="${this.handleNoResultsClick}">${this.localize.term("noResults")}</span>` : this.options}</div><slot id="defaultOptionsSlot" class="hidden" @slotchange="${this.handleDefaultSlotChange}"></slot></div></sd-4-0-0-next-9-popup></div><div part="form-control-help-text" id="help-text" class="text-sm text-neutral-700" aria-hidden="${!hasHelpText}"><slot name="help-text">${this.helpText}</slot></div></div>${this.formControlController.renderInvalidMessage()}`;
|
807
807
|
}
|
808
808
|
};
|
809
809
|
SdCombobox.dependencies = {
|
810
|
-
"sd-4-0-0-next-
|
811
|
-
"sd-4-0-0-next-
|
812
|
-
"sd-4-0-0-next-
|
810
|
+
"sd-4-0-0-next-9-icon": SdIcon,
|
811
|
+
"sd-4-0-0-next-9-popup": SdPopup,
|
812
|
+
"sd-4-0-0-next-9-tag": SdTag
|
813
813
|
};
|
814
814
|
SdCombobox.styles = [
|
815
815
|
...SolidElement.styles,
|
816
|
-
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-
|
816
|
+
css`:host{display:block;position:relative;width:100%}:host([required]) #label:after{content:" *"}[part=listbox]{max-height:var(--auto-size-available-height,auto)}sd-4-0-0-next-9-popup::part(popup){z-index:var(--sd-z-index-dropdown,900)}sd-4-0-0-next-9-tag::part(base){border-radius:var(--sd-border-radius-default,.25rem);padding-left:var(--sd-spacing-1,.25rem);padding-right:var(--sd-spacing-1,.25rem)}sd-4-0-0-next-9-tag::part(content){display:inline-block;max-width:var(--tag-max-width,15ch);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}sd-4-0-0-next-9-tag[size=lg]::part(base){padding-left:var(--sd-spacing-2,.5rem);padding-right:var(--sd-spacing-2,.5rem)}sd-4-0-0-next-9-tag[disabled=false]::part(base):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-primary-100,236 240 249)/var(--tw-bg-opacity,1))}[part=filtered-listbox] sd-4-0-0-next-9-optgroup:first-of-type{--display-divider:none}mark{background-color:transparent;color:inherit;font-weight:700}`
|
817
817
|
];
|
818
818
|
__decorateClass([
|
819
|
-
query("sd-4-0-0-next-
|
819
|
+
query("sd-4-0-0-next-9-popup")
|
820
820
|
], SdCombobox.prototype, "popup", 2);
|
821
821
|
__decorateClass([
|
822
822
|
query('[part="combobox"]')
|
@@ -968,7 +968,7 @@ __decorateClass([
|
|
968
968
|
watch("open", { waitUntilFirstUpdate: true })
|
969
969
|
], SdCombobox.prototype, "handleOpenChange", 1);
|
970
970
|
SdCombobox = __decorateClass([
|
971
|
-
customElement("sd-4-0-0-next-
|
971
|
+
customElement("sd-4-0-0-next-9-combobox")
|
972
972
|
], SdCombobox);
|
973
973
|
setDefaultAnimation("combobox.show", {
|
974
974
|
keyframes: [
|
@@ -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-9-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-9-checkbox")) {
|
42
42
|
this.syncCheckboxElements();
|
43
43
|
} else {
|
44
|
-
customElements.whenDefined("sd-4-0-0-next-
|
44
|
+
customElements.whenDefined("sd-4-0-0-next-9-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-9-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-4-0-0-next-9-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-9-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-4-0-0-next-9-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-9-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-4-0-0-next-9-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-9-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-9-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-9-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-9-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-9-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-9-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-4-0-0-next-9-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-9-popup li{list-style-type:""}sd-4-0-0-next-9-popup li mark{background-color:transparent;font-weight:700}sd-4-0-0-next-9-popup li:not(:has(sd-4-0-0-next-9-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-9-popup li:not(:has(sd-4-0-0-next-9-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-9-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-9-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-9-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
|
});
|
@@ -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-9-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-9-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-4-0-0-next-9-icon></sd-4-0-0-next-9-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-9-dialog")
|
202
202
|
], SdDialog);
|
203
203
|
setDefaultAnimation("dialog.show", {
|
204
204
|
keyframes: [
|
@@ -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-0-0-next-
|
24
|
+
this.componentId = `sd-4-0-0-next-9-tab-${this.attrId}`;
|
25
25
|
this.hasSlotController = new HasSlotController(this, "left");
|
26
26
|
this.variant = "default";
|
27
27
|
this.active = false;
|
@@ -91,7 +91,7 @@ __decorateClass([
|
|
91
91
|
watch("disabled")
|
92
92
|
], SdTab.prototype, "handleDisabledChange", 1);
|
93
93
|
SdTab = __decorateClass([
|
94
|
-
customElement("sd-4-0-0-next-
|
94
|
+
customElement("sd-4-0-0-next-9-tab")
|
95
95
|
], SdTab);
|
96
96
|
|
97
97
|
export {
|