@solid-design-system/components 5.2.1 → 5.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{cdn-versioned/chunks/chunk.6K3RK7TR.js → cdn/chunks/chunk.JAUWUHEU.js} +5 -5
- package/cdn/components/quickfact/quickfact.js +1 -1
- package/cdn/custom-elements.json +1 -1
- package/cdn/solid-components.bundle.js +4 -4
- package/cdn/solid-components.iife.js +4 -4
- package/cdn/solid-components.js +1 -1
- package/cdn/web-types.json +1 -1
- package/cdn-versioned/_components/menu/menu.js +1 -1
- package/cdn-versioned/_components/menu/menu.styles.js +1 -1
- package/cdn-versioned/_components/menu-item/menu-item.js +2 -2
- package/cdn-versioned/chunks/chunk.2SOEBGDS.js +1 -1
- package/cdn-versioned/chunks/chunk.3G76VRT5.js +1 -1
- package/cdn-versioned/chunks/chunk.466HB7MH.js +1 -1
- package/cdn-versioned/chunks/chunk.5I76HTXX.js +1 -1
- package/cdn-versioned/chunks/chunk.5SNCMR36.js +1 -1
- package/cdn-versioned/chunks/chunk.6HLS5XU2.js +1 -1
- package/cdn-versioned/chunks/chunk.6OJK4N6O.js +1 -1
- package/cdn-versioned/chunks/chunk.7LHKLE4G.js +1 -1
- package/cdn-versioned/chunks/chunk.7R2AGOFW.js +4 -4
- package/cdn-versioned/chunks/chunk.7RCSPRWP.js +1 -1
- package/cdn-versioned/chunks/chunk.7SJEXZSM.js +1 -1
- package/cdn-versioned/chunks/chunk.A4HJJAGU.js +1 -1
- package/cdn-versioned/chunks/chunk.BV574DRQ.js +1 -1
- package/cdn-versioned/chunks/chunk.CEVVDV52.js +1 -1
- package/cdn-versioned/chunks/chunk.EVLY2HWM.js +1 -1
- package/cdn-versioned/chunks/chunk.FJN37DXV.js +1 -1
- package/cdn-versioned/chunks/chunk.FVDWCGWF.js +1 -1
- package/cdn-versioned/chunks/chunk.FY4ZQ25C.js +1 -1
- package/cdn-versioned/chunks/chunk.I4VI7CRD.js +1 -1
- package/cdn-versioned/chunks/chunk.IDX4RDHZ.js +1 -1
- package/cdn-versioned/chunks/chunk.IOQAM3HC.js +1 -1
- package/{cdn/chunks/chunk.6K3RK7TR.js → cdn-versioned/chunks/chunk.JAUWUHEU.js} +5 -5
- package/cdn-versioned/chunks/chunk.JIEBLEV6.js +1 -1
- package/cdn-versioned/chunks/chunk.KINWB3R6.js +1 -1
- package/cdn-versioned/chunks/chunk.KYWP646O.js +1 -1
- package/cdn-versioned/chunks/chunk.LQ5Q73YJ.js +1 -1
- package/cdn-versioned/chunks/chunk.LRTBIARY.js +1 -1
- package/cdn-versioned/chunks/chunk.MFSX5MIZ.js +1 -1
- package/cdn-versioned/chunks/chunk.MNEGNJBN.js +2 -2
- package/cdn-versioned/chunks/chunk.OOE73LIA.js +1 -1
- package/cdn-versioned/chunks/chunk.ORM6LFSP.js +1 -1
- package/cdn-versioned/chunks/chunk.PIYHBRRO.js +1 -1
- package/cdn-versioned/chunks/chunk.PKL7HSML.js +1 -1
- package/cdn-versioned/chunks/chunk.QCGZSSDL.js +1 -1
- package/cdn-versioned/chunks/chunk.QQH7LKEX.js +1 -1
- package/cdn-versioned/chunks/chunk.RYR5JMPR.js +1 -1
- package/cdn-versioned/chunks/chunk.T25YQB27.js +1 -1
- package/cdn-versioned/chunks/chunk.TUVJON3T.js +1 -1
- package/cdn-versioned/chunks/chunk.UUQIXQII.js +1 -1
- package/cdn-versioned/chunks/chunk.VYDWOWCZ.js +1 -1
- package/cdn-versioned/chunks/chunk.VYFYAVQV.js +1 -1
- package/cdn-versioned/chunks/chunk.W7A3TU2Z.js +1 -1
- package/cdn-versioned/chunks/chunk.WFVHAXGV.js +2 -2
- package/cdn-versioned/chunks/chunk.WHJMIN4O.js +1 -1
- package/cdn-versioned/chunks/chunk.XDEIXYQG.js +4 -4
- package/cdn-versioned/chunks/chunk.XLPONTTF.js +1 -1
- package/cdn-versioned/chunks/chunk.YBDULCI5.js +1 -1
- package/cdn-versioned/chunks/chunk.Z7R4W5J7.js +1 -1
- package/cdn-versioned/chunks/chunk.ZGWHWNN7.js +1 -1
- package/cdn-versioned/chunks/chunk.ZHIT75AP.js +1 -1
- package/cdn-versioned/chunks/chunk.ZUSDFNOR.js +1 -1
- package/cdn-versioned/chunks/chunk.ZWRWVYOC.js +1 -1
- package/cdn-versioned/chunks/chunk.ZYYDZEIO.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/quickfact/quickfact.js +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/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 +209 -209
- package/cdn-versioned/internal/form.js +3 -3
- package/cdn-versioned/solid-components.bundle.js +18 -18
- package/cdn-versioned/solid-components.css +2 -2
- package/cdn-versioned/solid-components.iife.js +18 -18
- package/cdn-versioned/solid-components.js +1 -1
- package/cdn-versioned/vscode.html-custom-data.json +80 -80
- package/cdn-versioned/web-types.json +137 -137
- package/dist/chunks/{chunk.GK6CL7OA.js → chunk.64YEOMIV.js} +7 -13
- package/dist/components/quickfact/quickfact.js +1 -1
- package/dist/custom-elements.json +1 -1
- package/dist/solid-components.js +1 -1
- package/dist/web-types.json +1 -1
- package/dist-versioned/_components/menu/menu.js +1 -1
- package/dist-versioned/_components/menu/menu.styles.js +1 -1
- package/dist-versioned/_components/menu-item/menu-item.js +2 -2
- package/dist-versioned/chunks/chunk.25JYDDEL.js +2 -2
- package/dist-versioned/chunks/chunk.2KW3OQK3.js +1 -1
- package/dist-versioned/chunks/chunk.4JIUFSXL.js +1 -1
- package/dist-versioned/chunks/chunk.4X5KLZKG.js +2 -2
- package/dist-versioned/chunks/chunk.57IRQB22.js +5 -5
- package/dist-versioned/chunks/chunk.5E7OOWFM.js +2 -2
- package/dist-versioned/chunks/chunk.5HB4AZFH.js +11 -11
- package/dist-versioned/chunks/{chunk.GK6CL7OA.js → chunk.64YEOMIV.js} +8 -14
- package/dist-versioned/chunks/chunk.6BPYGYKJ.js +1 -1
- package/dist-versioned/chunks/chunk.6DKXZWRN.js +4 -4
- package/dist-versioned/chunks/chunk.7A77E2WF.js +3 -3
- package/dist-versioned/chunks/chunk.7WP2IWGR.js +2 -2
- package/dist-versioned/chunks/chunk.A6OD64SZ.js +24 -24
- package/dist-versioned/chunks/chunk.APTBM6ML.js +9 -9
- package/dist-versioned/chunks/chunk.ASKGMA6Q.js +1 -1
- package/dist-versioned/chunks/chunk.AXUXGTON.js +2 -2
- package/dist-versioned/chunks/chunk.BC4AIG32.js +6 -6
- package/dist-versioned/chunks/chunk.CY7STHBY.js +5 -5
- package/dist-versioned/chunks/chunk.DFQ36XHY.js +2 -2
- package/dist-versioned/chunks/chunk.EOLWJNLD.js +3 -3
- package/dist-versioned/chunks/chunk.EQXVKF2G.js +2 -2
- package/dist-versioned/chunks/chunk.F3WBWTX2.js +2 -2
- package/dist-versioned/chunks/chunk.FA2PSB3G.js +6 -6
- package/dist-versioned/chunks/chunk.FSHGDMGX.js +12 -12
- package/dist-versioned/chunks/chunk.FZYBHAXZ.js +14 -14
- package/dist-versioned/chunks/chunk.GIDPKVNI.js +1 -1
- package/dist-versioned/chunks/chunk.HPEQN7OA.js +8 -8
- package/dist-versioned/chunks/chunk.I5QIVC43.js +3 -3
- package/dist-versioned/chunks/chunk.IUBULF5H.js +1 -1
- package/dist-versioned/chunks/chunk.JNTYSC5E.js +1 -1
- package/dist-versioned/chunks/chunk.JQ4VVB6S.js +2 -2
- package/dist-versioned/chunks/chunk.KPGT5KTE.js +4 -4
- package/dist-versioned/chunks/chunk.KVKRZJS7.js +3 -3
- package/dist-versioned/chunks/chunk.LO2A6JZJ.js +2 -2
- package/dist-versioned/chunks/chunk.LVZUFX7G.js +1 -1
- package/dist-versioned/chunks/chunk.MGN6UKEO.js +5 -5
- package/dist-versioned/chunks/chunk.MTWZ3KVK.js +1 -1
- package/dist-versioned/chunks/chunk.NG6H4NIH.js +2 -2
- package/dist-versioned/chunks/chunk.NPAQBZS2.js +2 -2
- package/dist-versioned/chunks/chunk.NTCYC424.js +1 -1
- package/dist-versioned/chunks/chunk.TJBA6JWN.js +1 -1
- package/dist-versioned/chunks/chunk.U6ZVQYN2.js +1 -1
- package/dist-versioned/chunks/chunk.UIQBHPD3.js +2 -2
- package/dist-versioned/chunks/chunk.UT2PBNPH.js +2 -2
- package/dist-versioned/chunks/chunk.UUW3B5S5.js +2 -2
- package/dist-versioned/chunks/chunk.W5BEGOS2.js +3 -3
- package/dist-versioned/chunks/chunk.XQPSZT7C.js +2 -2
- package/dist-versioned/chunks/chunk.Y4FVATTL.js +4 -4
- package/dist-versioned/chunks/chunk.YRRFIBMB.js +26 -26
- package/dist-versioned/chunks/chunk.YXW76SQ5.js +4 -4
- package/dist-versioned/chunks/chunk.Z2TW3FW6.js +1 -1
- package/dist-versioned/chunks/chunk.ZQKFSIZX.js +1 -1
- package/dist-versioned/chunks/chunk.ZTHKEKB2.js +5 -5
- 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/quickfact/quickfact.js +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/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 +209 -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 +80 -80
- package/dist-versioned/web-types.json +137 -137
- package/package.json +2 -2
|
@@ -59,15 +59,15 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
59
59
|
<span
|
|
60
60
|
part="summary-icon"
|
|
61
61
|
class=${cx(
|
|
62
|
-
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-
|
|
62
|
+
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-transform ease-in-out duration-medium text-xl sm:text-4xl sm:mt-2",
|
|
63
63
|
this.open && "rotate-180",
|
|
64
64
|
!this.expandable && "hidden"
|
|
65
65
|
)}
|
|
66
66
|
><slot name="expand-icon" class=${cx(this.open && "hidden")}>
|
|
67
|
-
<sd-icon library="_internal" name="chevron-down"></sd-icon>
|
|
67
|
+
<sd-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-icon library="_internal" name="chevron-down"></sd-icon> </slot
|
|
70
|
+
<sd-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-icon> </slot
|
|
71
71
|
></span>
|
|
72
72
|
</${header}>
|
|
73
73
|
<div part="content" id="content" class=${cx("overflow-hidden", !this.expandable && "hidden")}>
|
|
@@ -88,18 +88,12 @@ SdQuickfact = __decorateClass([
|
|
|
88
88
|
customElement("sd-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
|
-
keyframes: [
|
|
92
|
-
|
|
93
|
-
{ height: "auto", opacity: "1" }
|
|
94
|
-
],
|
|
95
|
-
options: { duration: 300, easing: "ease" }
|
|
91
|
+
keyframes: [{ height: "0" }, { height: "auto" }],
|
|
92
|
+
options: { duration: "var(--sd-duration-medium, 300ms)", easing: "ease-in-out" }
|
|
96
93
|
});
|
|
97
94
|
setDefaultAnimation("quickfact.hide", {
|
|
98
|
-
keyframes: [
|
|
99
|
-
|
|
100
|
-
{ height: "0", opacity: "0" }
|
|
101
|
-
],
|
|
102
|
-
options: { duration: 300, easing: "ease" }
|
|
95
|
+
keyframes: [{ height: "auto" }, { height: "0" }],
|
|
96
|
+
options: { duration: "var(--sd-duration-medium, 300ms)", easing: "ease-in-out" }
|
|
103
97
|
});
|
|
104
98
|
|
|
105
99
|
export {
|
|
@@ -18594,7 +18594,7 @@
|
|
|
18594
18594
|
"package": {
|
|
18595
18595
|
"name": "@solid-design-system/components",
|
|
18596
18596
|
"description": "Solid Design System: Components",
|
|
18597
|
-
"version": "5.2.
|
|
18597
|
+
"version": "5.2.2",
|
|
18598
18598
|
"author": "Union Investment",
|
|
18599
18599
|
"homepage": "https://solid-design-system.fe.union-investment.de/docs/",
|
|
18600
18600
|
"license": "MIT"
|
package/dist/solid-components.js
CHANGED
package/dist/web-types.json
CHANGED
|
@@ -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-2-
|
|
35
|
+
this.emit('sd-5-2-2-select', { detail: { item } });
|
|
36
36
|
}
|
|
37
37
|
handleKeyDown(event) {
|
|
38
38
|
if (event.key === 'Enter') {
|
|
@@ -74,7 +74,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
74
74
|
})}
|
|
75
75
|
>
|
|
76
76
|
<span part="checked-icon" class="menu-item__check">
|
|
77
|
-
<sd-5-2-
|
|
77
|
+
<sd-5-2-2-icon name="check" library="_internal" aria-hidden="true"></sd-5-2-2-icon>
|
|
78
78
|
</span>
|
|
79
79
|
|
|
80
80
|
<slot name="prefix" part="prefix" class="menu-item__prefix"></slot>
|
|
@@ -84,7 +84,7 @@ let SdMenuItem = class SdMenuItem extends SolidElement {
|
|
|
84
84
|
<slot name="suffix" part="suffix" class="menu-item__suffix"></slot>
|
|
85
85
|
|
|
86
86
|
<span class="menu-item__chevron">
|
|
87
|
-
<sd-5-2-
|
|
87
|
+
<sd-5-2-2-icon name="chevron-right" library="_internal" aria-hidden="true"></sd-5-2-2-icon>
|
|
88
88
|
</span>
|
|
89
89
|
</div>
|
|
90
90
|
`;
|
|
@@ -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-2-
|
|
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-2-2-button-group__button--first:not(.sd-5-2-2-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-2-2-button-group__button--inner) button{border-radius:var(--sd-border-radius-none,0)}:host(.sd-5-2-2-button-group__button--last:not(.sd-5-2-2-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-2-2-button-group__button:not(.sd-5-2-2-button-group__button--first)){margin-inline-start:-1px}:host(.sd-5-2-2-button-group__button--hover){z-index:10}:host(.sd-5-2-2-button-group__button--focus),:host(.sd-5-2-2-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-2-
|
|
117
|
+
customElement("sd-5-2-2-radio-button")
|
|
118
118
|
], SdRadioButton);
|
|
119
119
|
|
|
120
120
|
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-2-
|
|
28
|
+
customElement("sd-5-2-2-carousel-item")
|
|
29
29
|
], SdCarouselItem);
|
|
30
30
|
|
|
31
31
|
export {
|
|
@@ -89,7 +89,7 @@ var SdStep = class extends SolidElement {
|
|
|
89
89
|
!this.disabled && !this.current && !this.notInteractive && "text-primary group-hover:text-primary-500 group-hover:fill-primary-500",
|
|
90
90
|
this.notInteractive && "text-primary",
|
|
91
91
|
this.size === "lg" ? "text-lg" : "text-sm"
|
|
92
|
-
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-5-2-
|
|
92
|
+
)}">${!this.disabled && !this.current && !this.notInteractive ? html`<sd-5-2-2-icon name="status-check" library="_internal"></sd-5-2-2-icon>` : html`${this.index}`}</slot></${tag}>${this.noTail ? "" : html`<div part="tail" class="${cx(
|
|
93
93
|
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",
|
|
94
94
|
!this.disabled && !this.current && !this.notInteractive ? " border-primary group-hover:border-primary-500" : "border-neutral-400"
|
|
95
95
|
)}"></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>`;
|
|
@@ -139,7 +139,7 @@ __decorateClass([
|
|
|
139
139
|
watch("notInteractive")
|
|
140
140
|
], SdStep.prototype, "handleInteractivityChange", 1);
|
|
141
141
|
SdStep = __decorateClass([
|
|
142
|
-
customElement("sd-5-2-
|
|
142
|
+
customElement("sd-5-2-2-step")
|
|
143
143
|
], SdStep);
|
|
144
144
|
|
|
145
145
|
export {
|
|
@@ -85,7 +85,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
85
85
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
86
86
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
87
87
|
}[this.frontVariant]
|
|
88
|
-
)}"></div><sd-5-2-
|
|
88
|
+
)}"></div><sd-5-2-2-button part="front-button" size="md" variant="${{
|
|
89
89
|
primary: "tertiary",
|
|
90
90
|
"primary-100": "tertiary",
|
|
91
91
|
"gradient-light": "primary",
|
|
@@ -95,7 +95,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
95
95
|
"primary-100": false,
|
|
96
96
|
"gradient-light": true,
|
|
97
97
|
"gradient-dark": true
|
|
98
|
-
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-5-2-
|
|
98
|
+
}[this.frontVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipFront}" @keydown="${this.handleFrontKeydown}"><sd-5-2-2-icon library="_internal" name="reload" label="Flip to Back"></sd-5-2-2-icon></sd-5-2-2-button></div><div part="back" tabindex="0" aria-hidden="${this.activeSide === "front"}" inert="${ifDefined(this.activeSide === "front" || void 0)}" class="${cx(
|
|
99
99
|
"flip-card__side flip-card__side--back overflow-hidden transition-transform duration-1000 ease-in-out",
|
|
100
100
|
"flex focus-visible:focus-outline",
|
|
101
101
|
"absolute top-0 left-0 w-full h-full justify-end text-left",
|
|
@@ -128,7 +128,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
128
128
|
"gradient-light": this.placement === "top" ? "bg-gradient-to-b from-white/60 to-white/0 mb-auto" : "bg-gradient-to-t from-white/60 to-white/0 mt-auto",
|
|
129
129
|
"gradient-dark": this.placement === "bottom" ? "bg-gradient-to-t from-primary-800/60 to-primary-800/0 mt-auto" : "bg-gradient-to-b from-primary-800/60 to-primary-800/0 mb-auto"
|
|
130
130
|
}[this.backVariant]
|
|
131
|
-
)}"></div><sd-5-2-
|
|
131
|
+
)}"></div><sd-5-2-2-button size="md" part="back-button" variant="${{
|
|
132
132
|
primary: "tertiary",
|
|
133
133
|
"primary-100": "tertiary",
|
|
134
134
|
"gradient-light": "primary",
|
|
@@ -138,7 +138,7 @@ var SdFlipcard = class extends SolidElement {
|
|
|
138
138
|
"primary-100": false,
|
|
139
139
|
"gradient-light": true,
|
|
140
140
|
"gradient-dark": true
|
|
141
|
-
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-5-2-
|
|
141
|
+
}[this.backVariant]}" class="${cx("absolute right-0 p-2 flex-shrink-0", this.placement === "top" ? "bottom-0" : "top-0")}" @click="${this.flipBack}" @keydown="${this.handleBackKeydown}"><sd-5-2-2-icon library="_internal" name="reload" label="Flip to Front"></sd-5-2-2-icon></sd-5-2-2-button></div></div>`;
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
/**
|
|
@@ -170,7 +170,7 @@ __decorateClass([
|
|
|
170
170
|
state()
|
|
171
171
|
], SdFlipcard.prototype, "activeSide", 2);
|
|
172
172
|
SdFlipcard = __decorateClass([
|
|
173
|
-
customElement("sd-5-2-
|
|
173
|
+
customElement("sd-5-2-2-flipcard")
|
|
174
174
|
], SdFlipcard);
|
|
175
175
|
|
|
176
176
|
export {
|
|
@@ -80,7 +80,7 @@ var SdTag = class extends SolidElement {
|
|
|
80
80
|
!this.removable ? "hover:border-primary-500 hover:bg-neutral-100 hover:text-primary-500" : "has-[button:hover]:border-primary-500 has-[button:hover]:bg-neutral-100 has-[button:hover]:text-primary-500"
|
|
81
81
|
) : "bg-primary border-primary text-white hover:bg-primary-500 hover:border-primary-500 disabled:bg-neutral-500 disabled:border-neutral-500",
|
|
82
82
|
this.disabled && !isLink && "cursor-not-allowed"
|
|
83
|
-
)}"><slot id="content" part="content"></slot>${this.removable ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-5-2-
|
|
83
|
+
)}"><slot id="content" part="content"></slot>${this.removable ? html`<button class="sd-interactive flex items-center" type="button" @click="${this.handleRemove}"><slot part="removable-indicator" name="removable-indicator"><sd-5-2-2-icon library="_internal" name="close" label="${this.localize.term("remove")}"></sd-5-2-2-icon></slot></button>` : ""}</${tag}>`;
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
SdTag.styles = [
|
|
@@ -115,7 +115,7 @@ __decorateClass([
|
|
|
115
115
|
property({ reflect: true })
|
|
116
116
|
], SdTag.prototype, "download", 2);
|
|
117
117
|
SdTag = __decorateClass([
|
|
118
|
-
customElement("sd-5-2-
|
|
118
|
+
customElement("sd-5-2-2-tag")
|
|
119
119
|
], SdTag);
|
|
120
120
|
|
|
121
121
|
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-2-
|
|
20
|
+
button == null ? void 0 : button.classList.add("sd-5-2-2-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-2-
|
|
24
|
+
button == null ? void 0 : button.classList.remove("sd-5-2-2-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-2-
|
|
28
|
+
button == null ? void 0 : button.classList.add("sd-5-2-2-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-2-
|
|
32
|
+
button == null ? void 0 : button.classList.remove("sd-5-2-2-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-2-
|
|
41
|
-
button.classList.toggle("sd-5-2-
|
|
42
|
-
button.classList.toggle("sd-5-2-
|
|
43
|
-
button.classList.toggle("sd-5-2-
|
|
44
|
-
button.classList.toggle("sd-5-2-
|
|
40
|
+
button.classList.add("sd-5-2-2-button-group__button");
|
|
41
|
+
button.classList.toggle("sd-5-2-2-button-group__button--first", index === 0);
|
|
42
|
+
button.classList.toggle("sd-5-2-2-button-group__button--inner", index > 0 && index < slottedElements.length - 1);
|
|
43
|
+
button.classList.toggle("sd-5-2-2-button-group__button--last", index === slottedElements.length - 1);
|
|
44
|
+
button.classList.toggle("sd-5-2-2-button-group__button--radio", button.tagName.toLowerCase() === "sd-5-2-2-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-2-
|
|
66
|
+
customElement("sd-5-2-2-button-group")
|
|
67
67
|
], SdButtonGroup);
|
|
68
68
|
function findButton(el) {
|
|
69
69
|
var _a;
|
|
70
|
-
const selector = "sd-5-2-
|
|
70
|
+
const selector = "sd-5-2-2-button, sd-5-2-2-radio-button";
|
|
71
71
|
return (_a = el.closest(selector)) != null ? _a : el.querySelector(selector);
|
|
72
72
|
}
|
|
73
73
|
|
|
@@ -59,15 +59,15 @@ var SdQuickfact = class extends SdAccordion {
|
|
|
59
59
|
<span
|
|
60
60
|
part="summary-icon"
|
|
61
61
|
class=${cx(
|
|
62
|
-
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-
|
|
62
|
+
"flex flex-grow-0 flex-shrink-0 flex-auto self-start sm:self-center transition-transform ease-in-out duration-medium text-xl sm:text-4xl sm:mt-2",
|
|
63
63
|
this.open && "rotate-180",
|
|
64
64
|
!this.expandable && "hidden"
|
|
65
65
|
)}
|
|
66
66
|
><slot name="expand-icon" class=${cx(this.open && "hidden")}>
|
|
67
|
-
<sd-5-2-
|
|
67
|
+
<sd-5-2-2-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-2-2-icon>
|
|
68
68
|
</slot>
|
|
69
69
|
<slot name="collapse-icon" class=${cx(!this.open && "hidden")}>
|
|
70
|
-
<sd-5-2-
|
|
70
|
+
<sd-5-2-2-icon library="_internal" name="chevron-down" class="group-hover:text-primary-500 transition-colors ease-in-out duration-medium"></sd-5-2-2-icon> </slot
|
|
71
71
|
></span>
|
|
72
72
|
</${header}>
|
|
73
73
|
<div part="content" id="content" class=${cx("overflow-hidden", !this.expandable && "hidden")}>
|
|
@@ -85,21 +85,15 @@ __decorateClass([
|
|
|
85
85
|
property({ type: Boolean, reflect: true })
|
|
86
86
|
], SdQuickfact.prototype, "expandable", 2);
|
|
87
87
|
SdQuickfact = __decorateClass([
|
|
88
|
-
customElement("sd-5-2-
|
|
88
|
+
customElement("sd-5-2-2-quickfact")
|
|
89
89
|
], SdQuickfact);
|
|
90
90
|
setDefaultAnimation("quickfact.show", {
|
|
91
|
-
keyframes: [
|
|
92
|
-
|
|
93
|
-
{ height: "auto", opacity: "1" }
|
|
94
|
-
],
|
|
95
|
-
options: { duration: 300, easing: "ease" }
|
|
91
|
+
keyframes: [{ height: "0" }, { height: "auto" }],
|
|
92
|
+
options: { duration: "var(--sd-duration-medium, 300ms)", easing: "ease-in-out" }
|
|
96
93
|
});
|
|
97
94
|
setDefaultAnimation("quickfact.hide", {
|
|
98
|
-
keyframes: [
|
|
99
|
-
|
|
100
|
-
{ height: "0", opacity: "0" }
|
|
101
|
-
],
|
|
102
|
-
options: { duration: 300, easing: "ease" }
|
|
95
|
+
keyframes: [{ height: "auto" }, { height: "0" }],
|
|
96
|
+
options: { duration: "var(--sd-duration-medium, 300ms)", easing: "ease-in-out" }
|
|
103
97
|
});
|
|
104
98
|
|
|
105
99
|
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-2-
|
|
13
|
+
const popup = document.createElement("sd-5-2-2-popup");
|
|
14
14
|
popup.appendChild(ul);
|
|
15
15
|
(_b = sdInput.shadowRoot) == null ? void 0 : _b.appendChild(popup);
|
|
16
16
|
popup == null ? void 0 : popup.setAttribute("exportparts", "popup__content");
|
|
@@ -22,7 +22,7 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
22
22
|
popup.anchor = sdInput;
|
|
23
23
|
popup.sync = "width";
|
|
24
24
|
}
|
|
25
|
-
const styles = css`sd-5-2-
|
|
25
|
+
const styles = css`sd-5-2-2-popup::part(popup){border-bottom-left-radius:var(--sd-border-radius-default,.25rem);border-bottom-right-radius:var(--sd-border-radius-default,.25rem);border-width:0 2px 2px;overflow-y:scroll;z-index:var(--sd-z-index-dropdown,900);--tw-border-opacity:1;border-color:rgb(var(--sd-color-primary,0 53 142)/var(--tw-border-opacity,1));--tw-bg-opacity:1;background-color:rgb(var(--sd-color-white,255 255 255)/var(--tw-bg-opacity,1));padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-2,.5rem);--tw-shadow:var(--sd-shadow,0px 1px 3px 0px rgba(81,81,81,.75));--tw-shadow-colored:0px 1px 3px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow,0 0 #0000),var(--tw-ring-shadow,0 0 #0000),var(--tw-shadow)}sd-5-2-2-popup li{transition-duration:.15s;transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1)}sd-5-2-2-popup li:hover:not([disabled]){--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-100,246 246 246)/var(--tw-bg-opacity,1))}sd-5-2-2-popup li{list-style-type:""}sd-5-2-2-popup li mark{background-color:transparent;font-weight:700}sd-5-2-2-popup li:not(:has(sd-5-2-2-option)){cursor:pointer;font-size:var(--sd-font-size-base,1rem);padding:var(--sd-spacing-3,.75rem) var(--sd-spacing-4,1rem);--tw-text-opacity:1;color:rgb(var(--sd-color-black,24 24 24)/var(--tw-text-opacity,1))}sd-5-2-2-popup li:not(:has(sd-5-2-2-option)):hover{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}sd-5-2-2-popup li[aria-selected=true]{--tw-bg-opacity:1;background-color:rgb(var(--sd-color-neutral-200,233 233 233)/var(--tw-bg-opacity,1))}`;
|
|
26
26
|
const styleSheet = new CSSStyleSheet();
|
|
27
27
|
styleSheet.replaceSync(styles);
|
|
28
28
|
sdInput.shadowRoot.adoptedStyleSheets = [...sdInput.shadowRoot.adoptedStyleSheets, styleSheet];
|
|
@@ -35,13 +35,13 @@ function setupAutocomplete(selector, { setValueOnSelection, scrollSelectionIntoV
|
|
|
35
35
|
}
|
|
36
36
|
input.addEventListener("open", () => {
|
|
37
37
|
var _a, _b, _c, _d, _e, _f;
|
|
38
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-
|
|
38
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-2-popup")) == null ? void 0 : _b.setAttribute("active", "true");
|
|
39
39
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.add("rounded-b-none");
|
|
40
40
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.add("z-50");
|
|
41
41
|
});
|
|
42
42
|
input.addEventListener("close", () => {
|
|
43
43
|
var _a, _b, _c, _d, _e, _f;
|
|
44
|
-
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-
|
|
44
|
+
(_b = (_a = sdInput.shadowRoot) == null ? void 0 : _a.querySelector("sd-5-2-2-popup")) == null ? void 0 : _b.removeAttribute("active");
|
|
45
45
|
(_d = (_c = sdInput.shadowRoot) == null ? void 0 : _c.querySelector('[part="border"]')) == null ? void 0 : _d.classList.remove("rounded-b-none");
|
|
46
46
|
(_f = (_e = sdInput.shadowRoot) == null ? void 0 : _e.querySelector('[part="form-control"]')) == null ? void 0 : _f.classList.remove("z-50");
|
|
47
47
|
});
|
|
@@ -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-2-
|
|
211
|
+
"ps-4 flex-grow focus:outline-none bg-transparent placeholder-neutral-700 resize-none group-has-[sd-5-2-2-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-2-
|
|
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-2-2-icon class="${cx("text-error absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="risk" part="invalid-icon"></sd-5-2-2-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-5-2-2-icon class="${cx("text-success absolute right-4 pointer-events-none", iconSize)}" library="_internal" name="status-check" part="valid-icon"></sd-5-2-2-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-2-
|
|
333
|
+
customElement("sd-5-2-2-textarea")
|
|
334
334
|
], SdTextarea);
|
|
335
335
|
|
|
336
336
|
export {
|
|
@@ -142,7 +142,7 @@ var SdAccordion = class extends SolidElement {
|
|
|
142
142
|
)}"></div><slot name="summary" part="summary" class="flex flex-auto items-center text-left">${this.summary}</slot><span part="summary-icon" class="${cx(
|
|
143
143
|
"flex flex-grow-0 flex-shrink-0 flex-auto items-center transition-all ease-in-out duration-300 text-xl",
|
|
144
144
|
this.open && "rotate-180"
|
|
145
|
-
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-2-
|
|
145
|
+
)}"><slot name="expand-icon" class="${cx(this.open && "hidden")}"><sd-5-2-2-icon library="_internal" name="chevron-down"></sd-5-2-2-icon></slot><slot name="collapse-icon" class="${cx(!this.open && "hidden")}"><sd-5-2-2-icon library="_internal" name="chevron-down"></sd-5-2-2-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-2-
|
|
171
|
+
customElement("sd-5-2-2-accordion")
|
|
172
172
|
], SdAccordion);
|
|
173
173
|
setDefaultAnimation("accordion.show", {
|
|
174
174
|
keyframes: [
|