@solid-design-system/components 5.6.0 → 5.7.0
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.RDWRS66R.js +1 -0
- package/cdn/components/teaser/teaser.d.ts +1 -0
- package/cdn/components/teaser/teaser.js +1 -1
- package/cdn/custom-elements.json +21 -1
- package/cdn/solid-components.bundle.js +5 -5
- package/cdn/solid-components.iife.js +5 -5
- package/cdn/solid-components.js +1 -1
- package/cdn/vscode.html-custom-data.json +5 -0
- package/cdn/web-types.json +11 -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.2POSLQ5Z.js +1 -1
- package/cdn-versioned/chunks/chunk.35D23HSW.js +1 -1
- package/cdn-versioned/chunks/chunk.3NSAEDOK.js +1 -1
- package/cdn-versioned/chunks/chunk.3XREQPK6.js +1 -1
- package/cdn-versioned/chunks/chunk.4MWOA6ZI.js +1 -1
- package/cdn-versioned/chunks/chunk.565YDCON.js +1 -1
- package/cdn-versioned/chunks/chunk.5GJMG4PS.js +1 -1
- package/cdn-versioned/chunks/chunk.5SWOTSCE.js +4 -4
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.6WXSGDVI.js +1 -1
- package/cdn-versioned/chunks/chunk.7LCLIYUY.js +1 -1
- package/cdn-versioned/chunks/chunk.AYBSZD4S.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.CZOOWQUF.js +1 -1
- package/cdn-versioned/chunks/chunk.DNSNI4OK.js +1 -1
- package/cdn-versioned/chunks/chunk.EKQAB4EX.js +1 -1
- package/cdn-versioned/chunks/chunk.ERAVBZHK.js +1 -1
- package/cdn-versioned/chunks/chunk.ESE4LCS2.js +1 -1
- package/cdn-versioned/chunks/chunk.FAIXOA2F.js +1 -1
- package/cdn-versioned/chunks/chunk.FLRYLAGF.js +1 -1
- package/cdn-versioned/chunks/chunk.FLT6CDXP.js +1 -1
- package/cdn-versioned/chunks/chunk.GN4ET7UA.js +1 -1
- package/cdn-versioned/chunks/chunk.HUY3W3M7.js +1 -1
- package/cdn-versioned/chunks/chunk.KWK6C3IZ.js +1 -1
- package/cdn-versioned/chunks/chunk.LFCA2IQG.js +1 -1
- package/cdn-versioned/chunks/chunk.LP25HBFS.js +1 -1
- package/cdn-versioned/chunks/chunk.LSQZN7XG.js +1 -1
- package/cdn-versioned/chunks/chunk.LV6Y7VYR.js +1 -1
- package/cdn-versioned/chunks/chunk.NNZNEAIJ.js +1 -1
- package/cdn-versioned/chunks/chunk.NXKFAB72.js +1 -1
- package/cdn-versioned/chunks/chunk.ON5B2YWM.js +1 -1
- package/cdn-versioned/chunks/chunk.OXAOIMTT.js +1 -1
- package/cdn-versioned/chunks/chunk.PFEUSEUN.js +3 -3
- package/cdn-versioned/chunks/chunk.PPG3ICRV.js +2 -2
- package/cdn-versioned/chunks/chunk.PUQ3RIAM.js +1 -1
- package/cdn-versioned/chunks/chunk.QGBNCTI4.js +1 -1
- package/cdn-versioned/chunks/chunk.RDWRS66R.js +1 -0
- package/cdn-versioned/chunks/chunk.RL2BQKMR.js +1 -1
- package/cdn-versioned/chunks/chunk.S6RPYVJI.js +1 -1
- package/cdn-versioned/chunks/chunk.SBHTDVQ4.js +1 -1
- package/cdn-versioned/chunks/chunk.SIOBUBBZ.js +1 -1
- package/cdn-versioned/chunks/chunk.SLIXQGGP.js +1 -1
- package/cdn-versioned/chunks/chunk.SMM76MUR.js +1 -1
- package/cdn-versioned/chunks/chunk.SP4BD3BD.js +1 -1
- package/cdn-versioned/chunks/chunk.T5MR3IUY.js +1 -1
- package/cdn-versioned/chunks/chunk.TGGYBIMX.js +1 -1
- package/cdn-versioned/chunks/chunk.TQUJ4VWU.js +4 -4
- package/cdn-versioned/chunks/chunk.ULZOLSNV.js +1 -1
- package/cdn-versioned/chunks/chunk.UYBBXCOU.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WB2PQDZJ.js +1 -1
- package/cdn-versioned/chunks/chunk.YT57BXKY.js +1 -1
- package/cdn-versioned/chunks/chunk.ZNUQ2AGR.js +1 -1
- package/cdn-versioned/components/accordion/accordion.d.ts +1 -1
- package/cdn-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/cdn-versioned/components/animation/animation.d.ts +1 -1
- package/cdn-versioned/components/audio/audio.d.ts +1 -1
- package/cdn-versioned/components/badge/badge.d.ts +1 -1
- package/cdn-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/cdn-versioned/components/button/button.d.ts +1 -1
- package/cdn-versioned/components/button-group/button-group.d.ts +1 -1
- package/cdn-versioned/components/carousel/carousel.d.ts +1 -1
- package/cdn-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/cdn-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/cdn-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/cdn-versioned/components/combobox/combobox.d.ts +1 -1
- package/cdn-versioned/components/dialog/dialog.d.ts +1 -1
- package/cdn-versioned/components/divider/divider.d.ts +1 -1
- package/cdn-versioned/components/drawer/drawer.d.ts +1 -1
- package/cdn-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/cdn-versioned/components/expandable/expandable.d.ts +1 -1
- package/cdn-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/cdn-versioned/components/header/header.d.ts +1 -1
- package/cdn-versioned/components/icon/icon.d.ts +1 -1
- package/cdn-versioned/components/include/include.d.ts +1 -1
- package/cdn-versioned/components/input/input.d.ts +1 -1
- package/cdn-versioned/components/link/link.d.ts +1 -1
- package/cdn-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/cdn-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/cdn-versioned/components/notification/notification.d.ts +1 -1
- package/cdn-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/cdn-versioned/components/option/option.d.ts +1 -1
- package/cdn-versioned/components/popup/popup.d.ts +1 -1
- package/cdn-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/cdn-versioned/components/radio/radio.d.ts +1 -1
- package/cdn-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/cdn-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/cdn-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/cdn-versioned/components/select/select.d.ts +1 -1
- package/cdn-versioned/components/spinner/spinner.d.ts +1 -1
- package/cdn-versioned/components/step/step.d.ts +1 -1
- package/cdn-versioned/components/step-group/step-group.d.ts +1 -1
- package/cdn-versioned/components/switch/switch.d.ts +1 -1
- package/cdn-versioned/components/tab/tab.d.ts +1 -1
- package/cdn-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/cdn-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/cdn-versioned/components/tag/tag.d.ts +1 -1
- package/cdn-versioned/components/teaser/teaser.d.ts +1 -0
- package/cdn-versioned/components/teaser/teaser.js +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 +229 -209
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +16 -16
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +17 -17
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +85 -80
- package/cdn-versioned/web-types.json +147 -137
- package/dist/chunks/{chunk.YUXACDFP.js → chunk.7YAYQD2F.js} +6 -1
- package/dist/components/teaser/teaser.d.ts +1 -0
- package/dist/components/teaser/teaser.js +1 -1
- package/dist/custom-elements.json +21 -1
- package/dist/solid-components.js +1 -1
- package/dist/vscode.html-custom-data.json +5 -0
- package/dist/web-types.json +11 -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.2Z3PTZDF.js +2 -2
- package/dist-versioned/chunks/chunk.4BSIESXO.js +3 -3
- package/dist-versioned/chunks/chunk.6A4EY2BW.js +6 -6
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.6Q5PHGOX.js +1 -1
- package/dist-versioned/chunks/chunk.7ASLASKF.js +3 -3
- package/dist-versioned/chunks/chunk.7LIXWEBN.js +5 -5
- package/dist-versioned/chunks/{chunk.YUXACDFP.js → chunk.7YAYQD2F.js} +7 -2
- package/dist-versioned/chunks/chunk.ABTFDUXB.js +2 -2
- package/dist-versioned/chunks/chunk.ATBHSXHW.js +3 -3
- package/dist-versioned/chunks/chunk.BIWX4AXS.js +1 -1
- package/dist-versioned/chunks/chunk.BZMDW7E4.js +11 -11
- package/dist-versioned/chunks/chunk.CM5UUKM4.js +2 -2
- package/dist-versioned/chunks/chunk.D23TODRF.js +3 -3
- package/dist-versioned/chunks/chunk.DWOWPIFO.js +1 -1
- package/dist-versioned/chunks/chunk.EAFZSO6J.js +2 -2
- package/dist-versioned/chunks/chunk.FIHROP3X.js +5 -5
- package/dist-versioned/chunks/chunk.FSL676RI.js +2 -2
- package/dist-versioned/chunks/chunk.GABDY4S6.js +2 -2
- package/dist-versioned/chunks/chunk.H3K5PQJU.js +5 -5
- package/dist-versioned/chunks/chunk.H3OKMVXK.js +1 -1
- package/dist-versioned/chunks/chunk.HIAESSS3.js +2 -2
- package/dist-versioned/chunks/chunk.HJN7RI3V.js +8 -8
- package/dist-versioned/chunks/chunk.IF3LSW7O.js +4 -4
- package/dist-versioned/chunks/chunk.ISKBRYU2.js +1 -1
- package/dist-versioned/chunks/chunk.JBZMLWDZ.js +1 -1
- package/dist-versioned/chunks/chunk.KTWITSMU.js +1 -1
- package/dist-versioned/chunks/chunk.KUULYGHN.js +3 -3
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.MFEHVTR6.js +2 -2
- package/dist-versioned/chunks/chunk.MM3ZPOVU.js +2 -2
- package/dist-versioned/chunks/chunk.MUUF45Z6.js +1 -1
- package/dist-versioned/chunks/chunk.NE5RAPHM.js +24 -24
- package/dist-versioned/chunks/chunk.NM4SNSEF.js +1 -1
- package/dist-versioned/chunks/chunk.NQLGMP2D.js +26 -26
- package/dist-versioned/chunks/chunk.OOCDLYKD.js +1 -1
- package/dist-versioned/chunks/chunk.OUXBV3ZI.js +2 -2
- package/dist-versioned/chunks/chunk.PB4C4QSB.js +14 -14
- package/dist-versioned/chunks/chunk.Q35RRIOR.js +1 -1
- package/dist-versioned/chunks/chunk.QGQB5JS7.js +5 -5
- package/dist-versioned/chunks/chunk.QTRNM73B.js +12 -12
- package/dist-versioned/chunks/chunk.SHLIEXLI.js +2 -2
- package/dist-versioned/chunks/chunk.SNWCQACO.js +6 -6
- package/dist-versioned/chunks/chunk.SOHUYJIV.js +4 -4
- package/dist-versioned/chunks/chunk.TSGNJ5GP.js +2 -2
- package/dist-versioned/chunks/chunk.UH3CRACY.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UWXGXWKM.js +2 -2
- package/dist-versioned/chunks/chunk.W4IVOSZQ.js +2 -2
- package/dist-versioned/chunks/chunk.WOD4JUKH.js +2 -2
- package/dist-versioned/chunks/chunk.WYCBGTC3.js +9 -9
- package/dist-versioned/chunks/chunk.YCPALMH3.js +1 -1
- package/dist-versioned/chunks/chunk.YQYNXABC.js +4 -4
- package/dist-versioned/components/accordion/accordion.d.ts +1 -1
- package/dist-versioned/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist-versioned/components/animation/animation.d.ts +1 -1
- package/dist-versioned/components/audio/audio.d.ts +1 -1
- package/dist-versioned/components/badge/badge.d.ts +1 -1
- package/dist-versioned/components/brandshape/brandshape.d.ts +1 -1
- package/dist-versioned/components/button/button.d.ts +1 -1
- package/dist-versioned/components/button-group/button-group.d.ts +1 -1
- package/dist-versioned/components/carousel/carousel.d.ts +1 -1
- package/dist-versioned/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist-versioned/components/checkbox/checkbox.d.ts +1 -1
- package/dist-versioned/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist-versioned/components/combobox/combobox.d.ts +1 -1
- package/dist-versioned/components/dialog/dialog.d.ts +1 -1
- package/dist-versioned/components/divider/divider.d.ts +1 -1
- package/dist-versioned/components/drawer/drawer.d.ts +1 -1
- package/dist-versioned/components/dropdown/dropdown.d.ts +1 -1
- package/dist-versioned/components/expandable/expandable.d.ts +1 -1
- package/dist-versioned/components/flipcard/flipcard.d.ts +1 -1
- package/dist-versioned/components/header/header.d.ts +1 -1
- package/dist-versioned/components/icon/icon.d.ts +1 -1
- package/dist-versioned/components/include/include.d.ts +1 -1
- package/dist-versioned/components/input/input.d.ts +1 -1
- package/dist-versioned/components/link/link.d.ts +1 -1
- package/dist-versioned/components/map-marker/map-marker.d.ts +1 -1
- package/dist-versioned/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist-versioned/components/notification/notification.d.ts +1 -1
- package/dist-versioned/components/optgroup/optgroup.d.ts +1 -1
- package/dist-versioned/components/option/option.d.ts +1 -1
- package/dist-versioned/components/popup/popup.d.ts +1 -1
- package/dist-versioned/components/quickfact/quickfact.d.ts +1 -1
- package/dist-versioned/components/radio/radio.d.ts +1 -1
- package/dist-versioned/components/radio-button/radio-button.d.ts +1 -1
- package/dist-versioned/components/radio-group/radio-group.d.ts +1 -1
- package/dist-versioned/components/scrollable/scrollable.d.ts +1 -1
- package/dist-versioned/components/select/select.d.ts +1 -1
- package/dist-versioned/components/spinner/spinner.d.ts +1 -1
- package/dist-versioned/components/step/step.d.ts +1 -1
- package/dist-versioned/components/step-group/step-group.d.ts +1 -1
- package/dist-versioned/components/switch/switch.d.ts +1 -1
- package/dist-versioned/components/tab/tab.d.ts +1 -1
- package/dist-versioned/components/tab-group/tab-group.d.ts +1 -1
- package/dist-versioned/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist-versioned/components/tag/tag.d.ts +1 -1
- package/dist-versioned/components/teaser/teaser.d.ts +1 -0
- package/dist-versioned/components/teaser/teaser.js +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 +229 -209
- 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 +85 -80
- package/dist-versioned/web-types.json +147 -137
- package/package.json +1 -1
- package/cdn/chunks/chunk.CYBY63E7.js +0 -1
- package/cdn-versioned/chunks/chunk.CYBY63E7.js +0 -1
|
@@ -19,6 +19,7 @@ var SdTeaser = class extends SolidElement {
|
|
|
19
19
|
this.variant = "white";
|
|
20
20
|
this.breakpoint = 448;
|
|
21
21
|
this.inset = false;
|
|
22
|
+
this.reversedLayout = false;
|
|
22
23
|
this.hasSlotController = new HasSlotController(this, "[default]", "media", "meta", "headline");
|
|
23
24
|
}
|
|
24
25
|
connectedCallback() {
|
|
@@ -75,7 +76,8 @@ var SdTeaser = class extends SolidElement {
|
|
|
75
76
|
"order-1",
|
|
76
77
|
!inset && this._orientation === "vertical" && "mb-4",
|
|
77
78
|
!slots["teaser-has-media"] && "hidden",
|
|
78
|
-
this.variant === "white border-neutral-400" && this._orientation === "vertical" && "mx-[-1px] mt-[-1px]"
|
|
79
|
+
this.variant === "white border-neutral-400" && this._orientation === "vertical" && "mx-[-1px] mt-[-1px]",
|
|
80
|
+
this._orientation !== "vertical" && this.reversedLayout && "order-2"
|
|
79
81
|
)}"><slot name="media"></slot></div></div>`;
|
|
80
82
|
}
|
|
81
83
|
};
|
|
@@ -92,6 +94,9 @@ __decorateClass([
|
|
|
92
94
|
__decorateClass([
|
|
93
95
|
property({ type: Boolean, reflect: true })
|
|
94
96
|
], SdTeaser.prototype, "inset", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
99
|
+
], SdTeaser.prototype, "reversedLayout", 2);
|
|
95
100
|
__decorateClass([
|
|
96
101
|
query('[part="base"]')
|
|
97
102
|
], SdTeaser.prototype, "teaser", 2);
|
|
@@ -4,6 +4,7 @@ export default class SdTeaser extends SolidElement {
|
|
|
4
4
|
variant: 'white' | 'white border-neutral-400' | 'neutral-100' | 'primary' | 'primary-100';
|
|
5
5
|
breakpoint: number;
|
|
6
6
|
inset: boolean;
|
|
7
|
+
reversedLayout: boolean;
|
|
7
8
|
teaser: HTMLElement;
|
|
8
9
|
_orientation: 'vertical' | 'horizontal';
|
|
9
10
|
private readonly hasSlotController;
|
|
@@ -16828,6 +16828,17 @@
|
|
|
16828
16828
|
"attribute": "inset",
|
|
16829
16829
|
"reflects": true
|
|
16830
16830
|
},
|
|
16831
|
+
{
|
|
16832
|
+
"kind": "field",
|
|
16833
|
+
"name": "reversedLayout",
|
|
16834
|
+
"type": {
|
|
16835
|
+
"text": "boolean"
|
|
16836
|
+
},
|
|
16837
|
+
"default": "false",
|
|
16838
|
+
"description": "Reverses the layout in horizontal variant",
|
|
16839
|
+
"attribute": "reversed-layout",
|
|
16840
|
+
"reflects": true
|
|
16841
|
+
},
|
|
16831
16842
|
{
|
|
16832
16843
|
"kind": "field",
|
|
16833
16844
|
"name": "dir",
|
|
@@ -16935,6 +16946,15 @@
|
|
|
16935
16946
|
"description": "The teaser's inner padding. This is always set in `white border-neutral-400`.",
|
|
16936
16947
|
"fieldName": "inset"
|
|
16937
16948
|
},
|
|
16949
|
+
{
|
|
16950
|
+
"name": "reversed-layout",
|
|
16951
|
+
"type": {
|
|
16952
|
+
"text": "boolean"
|
|
16953
|
+
},
|
|
16954
|
+
"default": "false",
|
|
16955
|
+
"description": "Reverses the layout in horizontal variant",
|
|
16956
|
+
"fieldName": "reversedLayout"
|
|
16957
|
+
},
|
|
16938
16958
|
{
|
|
16939
16959
|
"name": "dir",
|
|
16940
16960
|
"type": {
|
|
@@ -18640,7 +18660,7 @@
|
|
|
18640
18660
|
"package": {
|
|
18641
18661
|
"name": "@solid-design-system/components",
|
|
18642
18662
|
"description": "Solid Design System: Components",
|
|
18643
|
-
"version": "5.
|
|
18663
|
+
"version": "5.7.0",
|
|
18644
18664
|
"author": "Union Investment",
|
|
18645
18665
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
18646
18666
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
|
@@ -2669,6 +2669,11 @@
|
|
|
2669
2669
|
"description": "The teaser's inner padding. This is always set in `white border-neutral-400`.",
|
|
2670
2670
|
"values": []
|
|
2671
2671
|
},
|
|
2672
|
+
{
|
|
2673
|
+
"name": "reversed-layout",
|
|
2674
|
+
"description": "Reverses the layout in horizontal variant",
|
|
2675
|
+
"values": []
|
|
2676
|
+
},
|
|
2672
2677
|
{
|
|
2673
2678
|
"name": "dir",
|
|
2674
2679
|
"description": "The element's directionality.",
|
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": "5.
|
|
4
|
+
"version": "5.7.0",
|
|
5
5
|
"description-markup": "markdown",
|
|
6
6
|
"contributions": {
|
|
7
7
|
"html": {
|
|
@@ -6112,6 +6112,11 @@
|
|
|
6112
6112
|
"description": "The teaser's inner padding. This is always set in `white border-neutral-400`.",
|
|
6113
6113
|
"value": { "type": "boolean", "default": "false" }
|
|
6114
6114
|
},
|
|
6115
|
+
{
|
|
6116
|
+
"name": "reversed-layout",
|
|
6117
|
+
"description": "Reverses the layout in horizontal variant",
|
|
6118
|
+
"value": { "type": "boolean", "default": "false" }
|
|
6119
|
+
},
|
|
6115
6120
|
{
|
|
6116
6121
|
"name": "dir",
|
|
6117
6122
|
"description": "The element's directionality.",
|
|
@@ -6147,6 +6152,11 @@
|
|
|
6147
6152
|
"description": "The teaser's inner padding. This is always set in `white border-neutral-400`.",
|
|
6148
6153
|
"type": "boolean"
|
|
6149
6154
|
},
|
|
6155
|
+
{
|
|
6156
|
+
"name": "reversedLayout",
|
|
6157
|
+
"description": "Reverses the layout in horizontal variant",
|
|
6158
|
+
"type": "boolean"
|
|
6159
|
+
},
|
|
6150
6160
|
{
|
|
6151
6161
|
"name": "dir",
|
|
6152
6162
|
"description": "The element's directionality.",
|
|
@@ -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-5-
|
|
35
|
+
this.emit('sd-5-7-0-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-5-
|
|
77
|
+
<sd-5-7-0-icon name="check" library="_internal" aria-hidden="true"></sd-5-7-0-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-5-
|
|
87
|
+
<sd-5-7-0-icon name="chevron-right" library="_internal" aria-hidden="true"></sd-5-7-0-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -21,7 +21,7 @@ var SdTab = class extends SolidElement {
|
|
|
21
21
|
constructor() {
|
|
22
22
|
super(...arguments);
|
|
23
23
|
this.attrId = ++id;
|
|
24
|
-
this.componentId = `sd-5-
|
|
24
|
+
this.componentId = `sd-5-7-0-tab-${this.attrId}`;
|
|
25
25
|
this.hasSlotController = new HasSlotController(this, "left");
|
|
26
26
|
this.variant = "default";
|
|
27
27
|
this.active = false;
|
|
@@ -102,7 +102,7 @@ __decorateClass([
|
|
|
102
102
|
watch(["disabled", "visually-disabled"])
|
|
103
103
|
], SdTab.prototype, "handleDisabledChange", 1);
|
|
104
104
|
SdTab = __decorateClass([
|
|
105
|
-
customElement("sd-5-
|
|
105
|
+
customElement("sd-5-7-0-tab")
|
|
106
106
|
], SdTab);
|
|
107
107
|
|
|
108
108
|
export {
|
|
@@ -208,7 +208,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
208
208
|
this.readonly ? "bg-neutral-100" : "bg-white",
|
|
209
209
|
textareaState === "disabled" || textareaState === "visuallyDisabled" ? "text-neutral-500" : "text-black"
|
|
210
210
|
)}"><textarea part="textarea" id="input" class="${cx(
|
|
211
|
-
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-
|
|
211
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-7-0-icon]:pe-8",
|
|
212
212
|
{
|
|
213
213
|
sm: "py-1",
|
|
214
214
|
md: "py-1",
|
|
@@ -216,7 +216,7 @@ var SdTextarea = class extends SolidElement {
|
|
|
216
216
|
}[this.size],
|
|
217
217
|
this.disabled && "cursor-not-allowed",
|
|
218
218
|
textSize
|
|
219
|
-
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-5-
|
|
219
|
+
)}" title="${this.title}" name="${ifDefined(this.name)}" .value="${live(this.value)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" ?visually-disabled="${this.visuallyDisabled}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" rows="${ifDefined(this.rows)}" autocapitalize="${ifDefined(this.autocapitalize)}" autocorrect="${ifDefined(this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${ifDefined(this.spellcheck)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-invalid="${this.showInvalidStyle}" aria-disabled="${this.disabled || this.visuallyDisabled}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"></textarea> ${this.showInvalidStyle ? html`<sd-5-7-0-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-5-7-0-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-7-0-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-7-0-icon>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${hasHelpText ? "false" : "true"}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
220
220
|
}
|
|
221
221
|
};
|
|
222
222
|
/**
|
|
@@ -330,7 +330,7 @@ __decorateClass([
|
|
|
330
330
|
watch("value", { waitUntilFirstUpdate: true })
|
|
331
331
|
], SdTextarea.prototype, "handleValueChange", 1);
|
|
332
332
|
SdTextarea = __decorateClass([
|
|
333
|
-
customElement("sd-5-
|
|
333
|
+
customElement("sd-5-7-0-textarea")
|
|
334
334
|
], SdTextarea);
|
|
335
335
|
|
|
336
336
|
export {
|
|
@@ -60,7 +60,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
60
60
|
this.pausedAutoplay = false;
|
|
61
61
|
this.autoplayController = new AutoplayController(this, () => this.next());
|
|
62
62
|
this.scrollController = new ScrollController(this);
|
|
63
|
-
this.slides = this.getElementsByTagName("sd-5-
|
|
63
|
+
this.slides = this.getElementsByTagName("sd-5-7-0-carousel-item");
|
|
64
64
|
// determines which slide is displayed
|
|
65
65
|
// A map containing the state of all the slides
|
|
66
66
|
this.intersectionObserverEntries = /* @__PURE__ */ new Map();
|
|
@@ -430,7 +430,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
430
430
|
)}" aria-label="${this.localize.term("previousSlide")}" aria-controls="scroll-container" aria-disabled="${prevEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${prevEnabled ? (e) => {
|
|
431
431
|
this.previous();
|
|
432
432
|
this.unblockAutoplay(e, this.previousButton);
|
|
433
|
-
} : null}"><slot name="previous-icon"><sd-5-
|
|
433
|
+
} : null}"><slot name="previous-icon"><sd-5-7-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-down" : "chevron-up"}"></sd-5-7-0-icon></slot></button> ${this.variant === "dot" ? html`<div part="pagination-dot" role="tablist" class="${cx("carousel__pagination dot flex wrap items-center gap-2")}" aria-controls="scroll-container">${map(range(pagesCount), (index) => {
|
|
434
434
|
const isActive = index + 1 === currentPage;
|
|
435
435
|
return html`<button part="pagination-item ${isActive ? "pagination-item--active" : ""}" class="${cx(
|
|
436
436
|
"carousel__pagination-item",
|
|
@@ -453,7 +453,7 @@ var SdCarousel = class extends SolidElement {
|
|
|
453
453
|
)}" aria-label="${this.localize.term("nextSlide")}" aria-controls="scroll-container" aria-disabled="${nextEnabled ? "false" : "true"}" @focus="${this.handleFocus}" @blur="${this.handleBlur}" @click="${nextEnabled ? (e) => {
|
|
454
454
|
this.next();
|
|
455
455
|
this.unblockAutoplay(e, this.nextButton);
|
|
456
|
-
} : null}"><slot name="next-icon"><sd-5-
|
|
456
|
+
} : null}"><slot name="next-icon"><sd-5-7-0-icon class="${cx("h-6 w-6 rotate-90 grid place-items-center")}" library="_internal" name="${isLtr ? "chevron-up" : "chevron-down"}"></sd-5-7-0-icon></slot></button></div><button class="${cx(
|
|
457
457
|
"ml-6 !rounded-sm",
|
|
458
458
|
"!absolute !right-0 sd-interactive",
|
|
459
459
|
this.inverted ? "sd-interactive--inverted" : "sd-interactive--reset",
|
|
@@ -463,12 +463,12 @@ var SdCarousel = class extends SolidElement {
|
|
|
463
463
|
if (e.detail) {
|
|
464
464
|
this.autoplayControls.blur();
|
|
465
465
|
}
|
|
466
|
-
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-5-
|
|
466
|
+
}}"><slot name="autoplay-start" class="${cx(!this.pausedAutoplay ? "hidden" : "")}"><sd-5-7-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="start"></sd-5-7-0-icon></slot><slot name="autoplay-pause" class="${cx(this.pausedAutoplay ? "hidden" : "")}"><sd-5-7-0-icon class="h-6 w-6 grid place-items-center" library="_internal" name="pause"></sd-5-7-0-icon></slot></button></div></div>`;
|
|
467
467
|
}
|
|
468
468
|
};
|
|
469
469
|
SdCarousel.styles = [
|
|
470
470
|
...SolidElement.styles,
|
|
471
|
-
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{display:block;height:var(--carousel-height);overflow:hidden;position:relative}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-5-
|
|
471
|
+
css`:host{--slide-gap:var(--sl-spacing-medium,1rem);--scroll-hint:0px;display:flex}.carousel{grid-template-areas:". slides ." ". pagination ."}.carousel__pagination{grid-area:pagination}.carousel__slides{grid-area:slides;scrollbar-width:none;--slide-size:calc((100% - (var(--slides-per-page) - 1)*var(--slide-gap))/var(--slides-per-page));-moz-column-gap:var(--slide-gap);column-gap:var(--slide-gap);grid-auto-columns:var(--slide-size);padding-inline:var(--scroll-hint);scroll-padding-inline:var(--scroll-hint)}.carousel__slides::-webkit-scrollbar{display:none}:host([fade]){--carousel-height:auto}:host([fade]) .carousel__slides{display:block;height:var(--carousel-height);overflow:hidden;position:relative}@media (prefers-reduced-motion){:where(.carousel__slides){scroll-behavior:auto}}.carousel__navigation{grid-area:navigation}sd-5-7-0-button::part(label){align-items:center;display:flex;flex:1 1 auto;pointer-events:none}`
|
|
472
472
|
];
|
|
473
473
|
__decorateClass([
|
|
474
474
|
query('[part~="autoplay-controls"]')
|
|
@@ -541,7 +541,7 @@ __decorateClass([
|
|
|
541
541
|
watch("autoplay")
|
|
542
542
|
], SdCarousel.prototype, "handleAutoplayChange", 1);
|
|
543
543
|
SdCarousel = __decorateClass([
|
|
544
|
-
customElement("sd-5-
|
|
544
|
+
customElement("sd-5-7-0-carousel")
|
|
545
545
|
], SdCarousel);
|
|
546
546
|
|
|
547
547
|
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-5-
|
|
13
|
+
const popup = document.createElement("sd-5-7-0-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-5-
|
|
25
|
+
const styles = css`sd-5-7-0-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-5-7-0-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-5-7-0-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-5-7-0-popup li{list-style-type:""}sd-5-7-0-popup li mark{background-color:transparent;font-weight:700}sd-5-7-0-popup li:not(:has(sd-5-7-0-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-5-7-0-popup li:not(:has(sd-5-7-0-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-5-7-0-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-5-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-7-0-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-5-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-7-0-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
|
});
|
|
@@ -118,7 +118,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
118
118
|
render() {
|
|
119
119
|
const checkboxState = this.disabled && this.indeterminate ? "disabledIndeterminate" : this.disabled && this.checked ? "disabledChecked" : this.disabled ? "disabled" : this.visuallyDisabled ? "visuallyDisabled" : this.showInvalidStyle && this.indeterminate ? "invalidIndeterminate" : this.showInvalidStyle ? "invalid" : this.checked || this.indeterminate ? "filled" : "default";
|
|
120
120
|
return html`<label part="base" class="${cx(
|
|
121
|
-
"sd-5-
|
|
121
|
+
"sd-5-7-0-checkbox group flex items-start text-base leading-normal text-black cursor-pointer",
|
|
122
122
|
(this.disabled || this.visuallyDisabled) && "hover:cursor-not-allowed",
|
|
123
123
|
{
|
|
124
124
|
/* sizes, fonts */
|
|
@@ -157,7 +157,7 @@ var SdCheckbox = class extends SolidElement {
|
|
|
157
157
|
filled: "bg-accent group-hover:bg-accent-550",
|
|
158
158
|
default: "hover:bg-neutral-200 group-hover:bg-neutral-200 bg-white"
|
|
159
159
|
}[checkboxState]
|
|
160
|
-
)}"></div></div>${this.checked ? html`<sd-5-
|
|
160
|
+
)}"></div></div>${this.checked ? html`<sd-5-7-0-icon part="checked-icon" class="text-white w-3 h-3" library="_internal" name="status-check"></sd-5-7-0-icon>` : ""} ${!this.checked && this.indeterminate ? html`<sd-5-7-0-icon part="indeterminate-icon" class="text-white w-3 h-3" library="_internal" name="status-minus"></sd-5-7-0-icon>` : ""} </span><span part="label" id="label" class="${cx(
|
|
161
161
|
"select-none inline-block ml-2",
|
|
162
162
|
this.disabled || this.visuallyDisabled ? "text-neutral-500" : this.showInvalidStyle ? "text-error" : "text-black"
|
|
163
163
|
)}"><slot></slot></span></label> ${this.formControlController.renderInvalidMessage()}`;
|
|
@@ -219,7 +219,7 @@ __decorateClass([
|
|
|
219
219
|
watch(["checked", "indeterminate"], { waitUntilFirstUpdate: true })
|
|
220
220
|
], SdCheckbox.prototype, "handleStateChange", 1);
|
|
221
221
|
SdCheckbox = __decorateClass([
|
|
222
|
-
customElement("sd-5-
|
|
222
|
+
customElement("sd-5-7-0-checkbox")
|
|
223
223
|
], SdCheckbox);
|
|
224
224
|
|
|
225
225
|
export {
|
|
@@ -26,7 +26,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
26
26
|
this.helpText = "";
|
|
27
27
|
}
|
|
28
28
|
getAllCheckboxes() {
|
|
29
|
-
return [...this.querySelectorAll("sd-5-
|
|
29
|
+
return [...this.querySelectorAll("sd-5-7-0-checkbox")];
|
|
30
30
|
}
|
|
31
31
|
async syncCheckboxElements() {
|
|
32
32
|
const checkboxes = this.getAllCheckboxes();
|
|
@@ -39,10 +39,10 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
syncCheckboxes() {
|
|
42
|
-
if (customElements.get("sd-5-
|
|
42
|
+
if (customElements.get("sd-5-7-0-checkbox")) {
|
|
43
43
|
this.syncCheckboxElements();
|
|
44
44
|
} else {
|
|
45
|
-
customElements.whenDefined("sd-5-
|
|
45
|
+
customElements.whenDefined("sd-5-7-0-checkbox").then(() => this.syncCheckboxes());
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
48
|
handleSizeChange() {
|
|
@@ -79,7 +79,7 @@ var SdCheckboxGroup = class extends SolidElement {
|
|
|
79
79
|
*/
|
|
80
80
|
SdCheckboxGroup.styles = [
|
|
81
81
|
...SolidElement.styles,
|
|
82
|
-
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-
|
|
82
|
+
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-5-7-0-checkbox){display:flex;margin-bottom:var(--sd-spacing-2,.5rem)}:host([orientation=vertical]) ::slotted(sd-5-7-0-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-5-7-0-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-5-7-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-7-0-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-5-7-0-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
|
83
83
|
];
|
|
84
84
|
__decorateClass([
|
|
85
85
|
property({ type: String, reflect: true })
|
|
@@ -100,7 +100,7 @@ __decorateClass([
|
|
|
100
100
|
watch("invalid", { waitUntilFirstUpdate: true })
|
|
101
101
|
], SdCheckboxGroup.prototype, "handleInvalid", 1);
|
|
102
102
|
SdCheckboxGroup = __decorateClass([
|
|
103
|
-
customElement("sd-5-
|
|
103
|
+
customElement("sd-5-7-0-checkbox-group")
|
|
104
104
|
], SdCheckboxGroup);
|
|
105
105
|
|
|
106
106
|
export {
|
|
@@ -19,6 +19,7 @@ var SdTeaser = class extends SolidElement {
|
|
|
19
19
|
this.variant = "white";
|
|
20
20
|
this.breakpoint = 448;
|
|
21
21
|
this.inset = false;
|
|
22
|
+
this.reversedLayout = false;
|
|
22
23
|
this.hasSlotController = new HasSlotController(this, "[default]", "media", "meta", "headline");
|
|
23
24
|
}
|
|
24
25
|
connectedCallback() {
|
|
@@ -75,7 +76,8 @@ var SdTeaser = class extends SolidElement {
|
|
|
75
76
|
"order-1",
|
|
76
77
|
!inset && this._orientation === "vertical" && "mb-4",
|
|
77
78
|
!slots["teaser-has-media"] && "hidden",
|
|
78
|
-
this.variant === "white border-neutral-400" && this._orientation === "vertical" && "mx-[-1px] mt-[-1px]"
|
|
79
|
+
this.variant === "white border-neutral-400" && this._orientation === "vertical" && "mx-[-1px] mt-[-1px]",
|
|
80
|
+
this._orientation !== "vertical" && this.reversedLayout && "order-2"
|
|
79
81
|
)}"><slot name="media"></slot></div></div>`;
|
|
80
82
|
}
|
|
81
83
|
};
|
|
@@ -92,6 +94,9 @@ __decorateClass([
|
|
|
92
94
|
__decorateClass([
|
|
93
95
|
property({ type: Boolean, reflect: true })
|
|
94
96
|
], SdTeaser.prototype, "inset", 2);
|
|
97
|
+
__decorateClass([
|
|
98
|
+
property({ type: Boolean, reflect: true, attribute: "reversed-layout" })
|
|
99
|
+
], SdTeaser.prototype, "reversedLayout", 2);
|
|
95
100
|
__decorateClass([
|
|
96
101
|
query('[part="base"]')
|
|
97
102
|
], SdTeaser.prototype, "teaser", 2);
|
|
@@ -99,7 +104,7 @@ __decorateClass([
|
|
|
99
104
|
state()
|
|
100
105
|
], SdTeaser.prototype, "_orientation", 2);
|
|
101
106
|
SdTeaser = __decorateClass([
|
|
102
|
-
customElement("sd-5-
|
|
107
|
+
customElement("sd-5-7-0-teaser")
|
|
103
108
|
], SdTeaser);
|
|
104
109
|
|
|
105
110
|
export {
|
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-medium text-xl",
|
|
144
144
|
this.open && "rotate-180"
|
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-7-0-icon library="_internal" name="chevron-down"></sd-5-7-0-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-7-0-icon library="_internal" name="chevron-down"></sd-5-7-0-icon></slot></span></summary><div part="content" id="content" class="overflow-hidden"><slot part="content__slot" class="block px-4 py-6" role="region" aria-labelledby="header"></slot></div></details>`;
|
|
146
146
|
}
|
|
147
147
|
};
|
|
148
148
|
SdAccordion.styles = [
|
|
@@ -168,7 +168,7 @@ __decorateClass([
|
|
|
168
168
|
watch("open", { waitUntilFirstUpdate: true })
|
|
169
169
|
], SdAccordion.prototype, "handleOpenChange", 1);
|
|
170
170
|
SdAccordion = __decorateClass([
|
|
171
|
-
customElement("sd-5-
|
|
171
|
+
customElement("sd-5-7-0-accordion")
|
|
172
172
|
], SdAccordion);
|
|
173
173
|
setDefaultAnimation("accordion.show", {
|
|
174
174
|
keyframes: [
|
|
@@ -385,7 +385,7 @@ var SdInput = class extends SolidElement {
|
|
|
385
385
|
this.size === "sm" ? "h-6" : "h-8",
|
|
386
386
|
textSize
|
|
387
387
|
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
388
|
-
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-
|
|
388
|
+
ifDefined(this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" aria-disabled="${this.visuallyDisabled || this.disabled ? "true" : "false"}" aria-invalid="${this.showInvalidStyle}" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-5-7-0-icon class="${cx("text-neutral-700", iconSize)}" library="_internal" name="closing-round"></sd-5-7-0-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handlePasswordToggle}">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-5-7-0-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye"></sd-5-7-0-icon></slot>` : html`<slot name="hide-password-icon"><sd-5-7-0-icon class="${cx(iconColor, iconSize)}" library="_internal" name="eye-crossed-out"></sd-5-7-0-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-5-7-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="calendar"></sd-5-7-0-icon>` : ""} ${this.type === "time" ? html`<sd-5-7-0-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="_internal" name="clock"></sd-5-7-0-icon>` : ""} ${this.type === "search" ? html`<button class="${cx("flex items-center sd-interactive", iconMarginLeft)}" type="button" @click="${this.handleSearchClick}"><sd-5-7-0-icon class="${cx(iconColor, iconSize)}" library="_internal" name="magnifying-glass" label="${this.localize.term("search")}"></sd-5-7-0-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-5-7-0-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="_internal" name="risk"></sd-5-7-0-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-5-7-0-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-7-0-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-5-7-0-icon name="system/minus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-7-0-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-5-7-0-icon name="system/plus-circle" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-5-7-0-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700 mt-2", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
389
389
|
}
|
|
390
390
|
};
|
|
391
391
|
/**
|
|
@@ -393,7 +393,7 @@ var SdInput = class extends SolidElement {
|
|
|
393
393
|
*/
|
|
394
394
|
SdInput.styles = [
|
|
395
395
|
...SolidElement.styles,
|
|
396
|
-
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-
|
|
396
|
+
css`:host{box-sizing:border-box;display:inline-block;position:relative;text-align:left;width:100%}:host([vertical]){display:block}:host([required]) #label:after{content:" *"}:host([visually-disabled]) input{caret-color:transparent}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-5-7-0-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174)/var(--tw-text-opacity,1))}`
|
|
397
397
|
];
|
|
398
398
|
__decorateClass([
|
|
399
399
|
query("#input")
|
|
@@ -523,7 +523,7 @@ __decorateClass([
|
|
|
523
523
|
watch("value", { waitUntilFirstUpdate: true })
|
|
524
524
|
], SdInput.prototype, "handleValueChange", 1);
|
|
525
525
|
SdInput = __decorateClass([
|
|
526
|
-
customElement("sd-5-
|
|
526
|
+
customElement("sd-5-7-0-input")
|
|
527
527
|
], SdInput);
|
|
528
528
|
|
|
529
529
|
export {
|
|
@@ -25,7 +25,7 @@ SdCarouselItem.styles = [
|
|
|
25
25
|
css`:host{align-items:center;aspect-ratio:var(--aspect-ratio);display:flex;flex-direction:column;height:100%;justify-content:center;scroll-snap-align:start;scroll-snap-stop:always;width:100%}::slotted(img){height:100%;-o-object-fit:cover;object-fit:cover;width:100%}`
|
|
26
26
|
];
|
|
27
27
|
SdCarouselItem = __decorateClass([
|
|
28
|
-
customElement("sd-5-
|
|
28
|
+
customElement("sd-5-7-0-carousel-item")
|
|
29
29
|
], SdCarouselItem);
|
|
30
30
|
|
|
31
31
|
export {
|
|
@@ -17,19 +17,19 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
17
17
|
}
|
|
18
18
|
handleFocus(event) {
|
|
19
19
|
const button = findButton(event.target);
|
|
20
|
-
button == null ? void 0 : button.classList.add("sd-5-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-5-7-0-button-group__button--focus");
|
|
21
21
|
}
|
|
22
22
|
handleBlur(event) {
|
|
23
23
|
const button = findButton(event.target);
|
|
24
|
-
button == null ? void 0 : button.classList.remove("sd-5-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-5-7-0-button-group__button--focus");
|
|
25
25
|
}
|
|
26
26
|
handleMouseOver(event) {
|
|
27
27
|
const button = findButton(event.target);
|
|
28
|
-
button == null ? void 0 : button.classList.add("sd-5-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-5-7-0-button-group__button--hover");
|
|
29
29
|
}
|
|
30
30
|
handleMouseOut(event) {
|
|
31
31
|
const button = findButton(event.target);
|
|
32
|
-
button == null ? void 0 : button.classList.remove("sd-5-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-5-7-0-button-group__button--hover");
|
|
33
33
|
}
|
|
34
34
|
handleSlotChange() {
|
|
35
35
|
const slottedElements = [...this.defaultSlot.assignedElements({ flatten: true })];
|
|
@@ -37,11 +37,11 @@ var SdButtonGroup = class extends SolidElement {
|
|
|
37
37
|
const index = slottedElements.indexOf(el);
|
|
38
38
|
const button = findButton(el);
|
|
39
39
|
if (button !== null) {
|
|
40
|
-
button.classList.add("sd-5-
|
|
41
|
-
button.classList.toggle("sd-5-
|
|
42
|
-
button.classList.toggle("sd-5-
|
|
43
|
-
button.classList.toggle("sd-5-
|
|
44
|
-
button.classList.toggle("sd-5-
|
|
40
|
+
button.classList.add("sd-5-7-0-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-5-7-0-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-5-7-0-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-5-7-0-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-5-7-0-button-group__button--radio", button.tagName.toLowerCase() === "sd-5-7-0-radio-button");
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -63,11 +63,11 @@ __decorateClass([
|
|
|
63
63
|
property({ type: String, reflect: true })
|
|
64
64
|
], SdButtonGroup.prototype, "label", 2);
|
|
65
65
|
SdButtonGroup = __decorateClass([
|
|
66
|
-
customElement("sd-5-
|
|
66
|
+
customElement("sd-5-7-0-button-group")
|
|
67
67
|
], SdButtonGroup);
|
|
68
68
|
function findButton(el) {
|
|
69
69
|
var _a;
|
|
70
|
-
const selector = "sd-5-
|
|
70
|
+
const selector = "sd-5-7-0-button, sd-5-7-0-radio-button";
|
|
71
71
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -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-5-
|
|
21
|
+
this.componentId = `sd-5-7-0-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-5-
|
|
51
|
+
customElement("sd-5-7-0-tab-panel")
|
|
52
52
|
], SdTabPanel);
|
|
53
53
|
|
|
54
54
|
export {
|