@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
|
@@ -94,7 +94,7 @@ var SdExpandable = class extends SolidElement {
|
|
|
94
94
|
)}" @click="${this.onToggleClick}" aria-expanded="${this.open}"><div class="${cx("h-full justify-center w-full text-base flex items-center toggle")}"><span part="toggle-icon" class="${cx(
|
|
95
95
|
"flex items-center mr-2 transition-transform duration-medium ease-in-out",
|
|
96
96
|
this.open && "rotate-180"
|
|
97
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-
|
|
97
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-7-0-icon library="_internal" name="chevron-down" class="text-xl"></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" class="text-xl"></sd-5-7-0-icon></slot></span><slot name="toggle-closed" class="${cx(this.open && "hidden")}">${this.localize.term("showMore")}</slot><slot name="toggle-open" class="${cx(!this.open && "hidden")}">${this.localize.term("showLess")}</slot></div></button><details part="details" ?inert="${ifDefined(!this.open)}"><summary part="summary" aria-hidden="true" class="cursor-pointer overflow-hidden list-none"><slot name="clone"></slot></summary><div part="content" class="content content-preview overflow-hidden relative"><slot></slot></div></details></div>`;
|
|
98
98
|
}
|
|
99
99
|
firstUpdated() {
|
|
100
100
|
this.cloneContentToLightDOM();
|
|
@@ -134,7 +134,7 @@ __decorateClass([
|
|
|
134
134
|
watch("open", { waitUntilFirstUpdate: true })
|
|
135
135
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
136
136
|
SdExpandable = __decorateClass([
|
|
137
|
-
customElement("sd-5-
|
|
137
|
+
customElement("sd-5-7-0-expandable")
|
|
138
138
|
], SdExpandable);
|
|
139
139
|
setDefaultAnimation("expandable.show", {
|
|
140
140
|
keyframes: [{ height: "var(--component-expandable-max-block-size, 90px)" }, { height: "auto" }],
|
|
@@ -84,7 +84,7 @@ var SdRadioButton = class extends SolidElement {
|
|
|
84
84
|
};
|
|
85
85
|
SdRadioButton.styles = [
|
|
86
86
|
...SolidElement.styles,
|
|
87
|
-
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-5-
|
|
87
|
+
css`:host{display:block;width:-moz-min-content;width:min-content}.hidden-input{all:unset;inset:var(--sd-spacing-0,0);opacity:var(--sd-opacity-0,0);outline-color:rgb(var(--sd-color-error,204 25 55)/1);outline-style:dotted;outline-width:1px;position:absolute;z-index:-10}.lg-label,.lg-no-label{height:var(--sd-spacing-12,3rem)}.lg-no-label{width:var(--sd-spacing-12,3rem)}.md-label,.md-no-label{height:var(--sd-spacing-10,2.5rem)}.md-no-label{width:var(--sd-spacing-10,2.5rem)}.sm-label,.sm-no-label{height:var(--sd-spacing-8,2rem)}.sm-no-label{width:var(--sd-spacing-8,2rem)}:host(.sd-5-7-0-button-group__button--first:not(.sd-5-7-0-button-group__button--last)) button{border-bottom-right-radius:var(--sd-border-radius-none,0);border-top-right-radius:var(--sd-border-radius-none,0)}:host(.sd-5-7-0-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-5-7-0-button-group__button--last:not(.sd-5-7-0-button-group__button--first)) button{border-bottom-left-radius:var(--sd-border-radius-none,0);border-top-left-radius:var(--sd-border-radius-none,0)}:host(.sd-5-7-0-button-group__button:not(.sd-5-7-0-button-group__button--first)){margin-inline-start:-1px}:host(.sd-5-7-0-button-group__button--hover){z-index:10}:host(.sd-5-7-0-button-group__button--focus),:host(.sd-5-7-0-button-group__button[checked]){z-index:20}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
query(".button")
|
|
@@ -114,7 +114,7 @@ __decorateClass([
|
|
|
114
114
|
watch(["disabled", "visually-disabled"], { waitUntilFirstUpdate: true })
|
|
115
115
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
|
116
116
|
SdRadioButton = __decorateClass([
|
|
117
|
-
customElement("sd-5-
|
|
117
|
+
customElement("sd-5-7-0-radio-button")
|
|
118
118
|
], SdRadioButton);
|
|
119
119
|
|
|
120
120
|
export {
|
|
@@ -174,7 +174,7 @@ var SdDialog = class extends SolidElement {
|
|
|
174
174
|
)}"><div part="overlay" class="fixed inset-0 bg-primary-800 opacity-90" @click="${() => this.requestClose("overlay")}" tabindex="-1"></div><div part="panel" class="${cx(
|
|
175
175
|
"flex flex-col z-20 bg-white py-4 sm:py-8 relative gap-6 focus-visible:focus-outline-inverted overflow-y-auto",
|
|
176
176
|
this.open && "flex opacity-100"
|
|
177
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" 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-5-
|
|
177
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${ifDefined(this.headline ? this.headline : void 0)}" aria-labelledby="${ifDefined(!this.headline ? "title" : void 0)}" 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-5-7-0-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-5-7-0-icon label="${this.localize.term("close")}" name="close" library="_internal" color="currentColor"></sd-5-7-0-icon></sd-5-7-0-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>`;
|
|
178
178
|
}
|
|
179
179
|
};
|
|
180
180
|
SdDialog.styles = [
|
|
@@ -203,7 +203,7 @@ __decorateClass([
|
|
|
203
203
|
watch("open", { waitUntilFirstUpdate: true })
|
|
204
204
|
], SdDialog.prototype, "handleOpenChange", 1);
|
|
205
205
|
SdDialog = __decorateClass([
|
|
206
|
-
customElement("sd-5-
|
|
206
|
+
customElement("sd-5-7-0-dialog")
|
|
207
207
|
], SdDialog);
|
|
208
208
|
setDefaultAnimation("dialog.show", {
|
|
209
209
|
keyframes: [
|
|
@@ -76,7 +76,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
76
76
|
* within the slotted trigger. This could be the slotted element itself, a child of the slotted element,
|
|
77
77
|
* or an element within the slotted elements shadow root.
|
|
78
78
|
*
|
|
79
|
-
* e.g. the accessible trigger of an <sd-5-
|
|
79
|
+
* e.g. the accessible trigger of an <sd-5-7-0-button> is a <button> located inside its shadow root.
|
|
80
80
|
*
|
|
81
81
|
* To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
82
82
|
* */
|
|
@@ -87,11 +87,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
87
87
|
if (accessibleTrigger) {
|
|
88
88
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
89
89
|
// Solid buttons have to update the internal button so it's announced correctly by screen readers
|
|
90
|
-
case "sd-5-
|
|
91
|
-
case "sd-5-
|
|
90
|
+
case "sd-5-7-0-button":
|
|
91
|
+
case "sd-5-7-0-icon-button":
|
|
92
92
|
target = accessibleTrigger.button;
|
|
93
93
|
break;
|
|
94
|
-
case "sd-5-
|
|
94
|
+
case "sd-5-7-0-navigation-item":
|
|
95
95
|
target = accessibleTrigger.button;
|
|
96
96
|
break;
|
|
97
97
|
default:
|
|
@@ -236,7 +236,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
236
236
|
}
|
|
237
237
|
addOpenListeners() {
|
|
238
238
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
239
|
-
this.panel.addEventListener("sd-5-
|
|
239
|
+
this.panel.addEventListener("sd-5-7-0-select", this.handlePanelSelect);
|
|
240
240
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
241
241
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
242
242
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -244,7 +244,7 @@ var SdDropdown = class extends SolidElement {
|
|
|
244
244
|
removeOpenListeners() {
|
|
245
245
|
if (this.panel) {
|
|
246
246
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
247
|
-
this.panel.removeEventListener("sd-5-
|
|
247
|
+
this.panel.removeEventListener("sd-5-7-0-select", this.handlePanelSelect);
|
|
248
248
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
249
249
|
}
|
|
250
250
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -277,11 +277,11 @@ var SdDropdown = class extends SolidElement {
|
|
|
277
277
|
}
|
|
278
278
|
}
|
|
279
279
|
render() {
|
|
280
|
-
return html`<sd-5-
|
|
280
|
+
return html`<sd-5-7-0-popup part="base" id="dropdown" placement="${this.placement}" distance="${this.rounded && this.distance < 1 ? 1 : this.distance}" skidding="${this.skidding}" strategy="${this.hoist ? "fixed" : "absolute"}" ?flip="${!this.noFlip}" shift auto-size="vertical" auto-size-padding="10"><slot name="trigger" slot="anchor" part="trigger" class="block" @click="${this.handleTriggerClick}" @keydown="${this.handleTriggerKeyDown}" @keyup="${this.handleTriggerKeyUp}" @slotchange="${this.handleTriggerSlotChange}"></slot><slot part="panel" class="${cx(
|
|
281
281
|
"shadow bg-white block",
|
|
282
282
|
this.open ? "pointer-events-auto" : "pointer-events-none",
|
|
283
283
|
this.rounded && "rounded-md"
|
|
284
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-
|
|
284
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-5-7-0-popup>`;
|
|
285
285
|
}
|
|
286
286
|
};
|
|
287
287
|
SdDropdown.styles = [
|
|
@@ -334,7 +334,7 @@ __decorateClass([
|
|
|
334
334
|
watch("open", { waitUntilFirstUpdate: true })
|
|
335
335
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
336
336
|
SdDropdown = __decorateClass([
|
|
337
|
-
customElement("sd-5-
|
|
337
|
+
customElement("sd-5-7-0-dropdown")
|
|
338
338
|
], SdDropdown);
|
|
339
339
|
setDefaultAnimation("dropdown.show", {
|
|
340
340
|
keyframes: [{ opacity: 0 }, { opacity: 1 }],
|
|
@@ -208,7 +208,7 @@ __decorateClass([
|
|
|
208
208
|
watch("playbackRate")
|
|
209
209
|
], SdAnimation.prototype, "handlePlaybackRateChange", 1);
|
|
210
210
|
SdAnimation = __decorateClass([
|
|
211
|
-
customElement("sd-5-
|
|
211
|
+
customElement("sd-5-7-0-animation")
|
|
212
212
|
], SdAnimation);
|
|
213
213
|
|
|
214
214
|
export {
|
|
@@ -221,7 +221,7 @@ var SdButton = class extends SolidElement {
|
|
|
221
221
|
md: "ml-2",
|
|
222
222
|
lg: "ml-2"
|
|
223
223
|
}[this.size]
|
|
224
|
-
)}"></slot>${this.loading ? html`<sd-5-
|
|
224
|
+
)}"></slot>${this.loading ? html`<sd-5-7-0-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-5-7-0-spinner>` : ""}</${tag}>`;
|
|
225
225
|
}
|
|
226
226
|
};
|
|
227
227
|
/**
|
|
@@ -229,13 +229,13 @@ var SdButton = class extends SolidElement {
|
|
|
229
229
|
*/
|
|
230
230
|
SdButton.styles = [
|
|
231
231
|
...SolidElement.styles,
|
|
232
|
-
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto);z-index:0}sd-5-
|
|
232
|
+
css`:host{cursor:pointer;display:inline-block;position:relative;width:var(--sd-spacing-auto,auto);z-index:0}sd-5-7-0-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-5-7-0-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-5-7-0-icon),sd-5-7-0-spinner{font-size:calc(var(--tw-varspacing)/2)}`
|
|
233
233
|
];
|
|
234
234
|
__decorateClass([
|
|
235
235
|
query("a, button")
|
|
236
236
|
], SdButton.prototype, "button", 2);
|
|
237
237
|
__decorateClass([
|
|
238
|
-
queryAssignedElements({ selector: "sd-5-
|
|
238
|
+
queryAssignedElements({ selector: "sd-5-7-0-icon" })
|
|
239
239
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
240
240
|
__decorateClass([
|
|
241
241
|
state()
|
|
@@ -301,7 +301,7 @@ __decorateClass([
|
|
|
301
301
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
302
302
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
303
303
|
SdButton = __decorateClass([
|
|
304
|
-
customElement("sd-5-
|
|
304
|
+
customElement("sd-5-7-0-button")
|
|
305
305
|
], SdButton);
|
|
306
306
|
|
|
307
307
|
export {
|
|
@@ -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;
|