@solid-design-system/components 1.13.1 → 1.14.1
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/dist/components/es/teaser.js +1 -1
- package/dist/components/umd/solid-components.js +13 -13
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/teaser/teaser.js +4 -6
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/badge.js +1 -1
- package/dist/versioned-components/es/brandshape.js +1 -1
- package/dist/versioned-components/es/button.js +1 -1
- package/dist/versioned-components/es/divider.js +1 -1
- package/dist/versioned-components/es/drawer.js +1 -1
- package/dist/versioned-components/es/dropdown.js +1 -1
- package/dist/versioned-components/es/icon.js +1 -1
- package/dist/versioned-components/es/include.js +1 -1
- package/dist/versioned-components/es/link.js +1 -1
- package/dist/versioned-components/es/popup.js +1 -1
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/tag.js +1 -1
- package/dist/versioned-components/es/teaser.js +1 -1
- package/dist/versioned-package/components/accordion/accordion.d.ts +1 -1
- package/dist/versioned-package/components/accordion/accordion.js +2 -2
- package/dist/versioned-package/components/accordion-group/accordion-group.d.ts +1 -1
- package/dist/versioned-package/components/accordion-group/accordion-group.js +3 -3
- package/dist/versioned-package/components/badge/badge.d.ts +1 -1
- package/dist/versioned-package/components/badge/badge.js +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.d.ts +1 -1
- package/dist/versioned-package/components/brandshape/brandshape.js +1 -1
- package/dist/versioned-package/components/button/button.d.ts +1 -1
- package/dist/versioned-package/components/button/button.js +4 -4
- package/dist/versioned-package/components/divider/divider.d.ts +1 -1
- package/dist/versioned-package/components/divider/divider.js +2 -2
- package/dist/versioned-package/components/drawer/drawer.d.ts +1 -1
- package/dist/versioned-package/components/drawer/drawer.js +2 -2
- package/dist/versioned-package/components/dropdown/dropdown.d.ts +1 -1
- package/dist/versioned-package/components/dropdown/dropdown.js +6 -6
- package/dist/versioned-package/components/icon/icon.d.ts +1 -1
- package/dist/versioned-package/components/icon/icon.js +1 -1
- package/dist/versioned-package/components/include/include.d.ts +1 -1
- package/dist/versioned-package/components/include/include.js +1 -1
- package/dist/versioned-package/components/link/link.d.ts +1 -1
- package/dist/versioned-package/components/link/link.js +2 -2
- package/dist/versioned-package/components/popup/popup.d.ts +1 -1
- package/dist/versioned-package/components/popup/popup.js +1 -1
- package/dist/versioned-package/components/spinner/spinner.d.ts +1 -1
- package/dist/versioned-package/components/spinner/spinner.js +1 -1
- package/dist/versioned-package/components/tag/tag.d.ts +1 -1
- package/dist/versioned-package/components/tag/tag.js +2 -2
- package/dist/versioned-package/components/teaser/teaser.js +5 -7
- package/dist/versioned-package/internal/form.js +1 -1
- package/dist/vscode.html-custom-data.json +15 -15
- package/dist/web-types.json +16 -16
- package/package.json +1 -1
|
@@ -122,7 +122,7 @@ __decorateClass([
|
|
|
122
122
|
state()
|
|
123
123
|
], SdBrandshape.prototype, "componentBreakpoint", 2);
|
|
124
124
|
SdBrandshape = __decorateClass([
|
|
125
|
-
customElement("sd-1-
|
|
125
|
+
customElement("sd-1-14-1-brandshape")
|
|
126
126
|
], SdBrandshape);
|
|
127
127
|
export {
|
|
128
128
|
SdBrandshape as default
|
|
@@ -190,19 +190,19 @@ let SdButton = class extends SolidElement {
|
|
|
190
190
|
md: "ml-2",
|
|
191
191
|
lg: "ml-2"
|
|
192
192
|
}[this.size]
|
|
193
|
-
)}"></slot>${this.loading ? html`<sd-1-
|
|
193
|
+
)}"></slot>${this.loading ? html`<sd-1-14-1-spinner class="${cx("absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2")}"></sd-1-14-1-spinner>` : ""}</${tag}>`;
|
|
194
194
|
}
|
|
195
195
|
};
|
|
196
196
|
SdButton.styles = [
|
|
197
197
|
componentStyles,
|
|
198
198
|
SolidElement.styles,
|
|
199
|
-
css`:host{display:inline-block;position:relative;width:auto;cursor:pointer}sd-1-
|
|
199
|
+
css`:host{display:inline-block;position:relative;width:auto;cursor:pointer}sd-1-14-1-spinner{--indicator-color:currentColor;--track-color:var(--tw-varcolor-200)}::slotted(sd-1-14-1-badge){position:absolute;top:0;right:0;translate:50% -50%;pointer-events:none}::slotted(sd-1-14-1-icon),sd-1-14-1-spinner{font-size:calc(var(--tw-varspacing)/ 2)}`
|
|
200
200
|
];
|
|
201
201
|
__decorateClass([
|
|
202
202
|
query("a, button")
|
|
203
203
|
], SdButton.prototype, "button", 2);
|
|
204
204
|
__decorateClass([
|
|
205
|
-
queryAssignedElements({ selector: "sd-1-
|
|
205
|
+
queryAssignedElements({ selector: "sd-1-14-1-icon" })
|
|
206
206
|
], SdButton.prototype, "_iconsInDefaultSlot", 2);
|
|
207
207
|
__decorateClass([
|
|
208
208
|
state()
|
|
@@ -265,7 +265,7 @@ __decorateClass([
|
|
|
265
265
|
watch("disabled", { waitUntilFirstUpdate: true })
|
|
266
266
|
], SdButton.prototype, "handleDisabledChange", 1);
|
|
267
267
|
SdButton = __decorateClass([
|
|
268
|
-
customElement("sd-1-
|
|
268
|
+
customElement("sd-1-14-1-button")
|
|
269
269
|
], SdButton);
|
|
270
270
|
export {
|
|
271
271
|
SdButton as default
|
|
@@ -34,7 +34,7 @@ let SdDivider = class extends SolidElement {
|
|
|
34
34
|
SdDivider.styles = [
|
|
35
35
|
componentStyles,
|
|
36
36
|
SolidElement.styles,
|
|
37
|
-
css`:host{margin:0}:host(sd-1-
|
|
37
|
+
css`:host{margin:0}:host(sd-1-14-1-divider[orientation=horizontal]){display:block}:host(sd-1-14-1-divider[orientation=vertical]){display:inline-block}`
|
|
38
38
|
];
|
|
39
39
|
__decorateClass([
|
|
40
40
|
property({ reflect: true })
|
|
@@ -43,7 +43,7 @@ __decorateClass([
|
|
|
43
43
|
property({ type: Boolean, reflect: true })
|
|
44
44
|
], SdDivider.prototype, "inverted", 2);
|
|
45
45
|
SdDivider = __decorateClass([
|
|
46
|
-
customElement("sd-1-
|
|
46
|
+
customElement("sd-1-14-1-divider")
|
|
47
47
|
], SdDivider);
|
|
48
48
|
export {
|
|
49
49
|
SdDivider as default
|
|
@@ -182,7 +182,7 @@ let SdDrawer = class extends SolidElement {
|
|
|
182
182
|
end: "top-0 end-0 bottom-auto start-auto w-[--width] h-full",
|
|
183
183
|
start: "top-0 end-auto bottom-auto start-0 w-[--width] h-full"
|
|
184
184
|
}[this.placement]
|
|
185
|
-
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.label}" aria-labelledby="${ifDefined(!this.noHeader ? "title" : void 0)}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-1-
|
|
185
|
+
)}" role="dialog" aria-modal="true" aria-hidden="${this.open ? "false" : "true"}" aria-label="${this.label}" aria-labelledby="${ifDefined(!this.noHeader ? "title" : void 0)}" tabindex="0">${!this.noHeader ? html`<header part="header" class="flex justify-between py-2 px-4 items-center flex-shrink-0" style="min-height:56px"><div part="title"><slot name="header" part="title" class="flex-auto text-xl m-0" id="title"></slot></div><div class="shrink-0 flex flex-wrap justify-end gap-1 ml-4 absolute top-2 right-2"><sd-1-14-1-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-1-14-1-icon name="close" library="system"></sd-1-14-1-icon></sd-1-14-1-button></div></header>` : ""}<div part="body" class="flex-auto block px-4"><slot></slot></div><footer part="footer" class="${cx(this.hasSlotController.test("footer") ? "text-left p-4" : "hidden")}"><slot name="footer"></slot></footer></div></div>`;
|
|
186
186
|
}
|
|
187
187
|
};
|
|
188
188
|
SdDrawer.styles = [
|
|
@@ -220,7 +220,7 @@ __decorateClass([
|
|
|
220
220
|
watch("contained", { waitUntilFirstUpdate: true })
|
|
221
221
|
], SdDrawer.prototype, "handleNoModalChange", 1);
|
|
222
222
|
SdDrawer = __decorateClass([
|
|
223
|
-
customElement("sd-1-
|
|
223
|
+
customElement("sd-1-14-1-drawer")
|
|
224
224
|
], SdDrawer);
|
|
225
225
|
setDefaultAnimation("drawer.showStart", {
|
|
226
226
|
keyframes: [
|
|
@@ -169,7 +169,7 @@ let SdDropdown = class extends SolidElement {
|
|
|
169
169
|
// that gets slotted in) so screen readers will understand them. The accessible trigger could be the slotted element,
|
|
170
170
|
// a child of the slotted element, or an element in the slotted element's shadow root.
|
|
171
171
|
//
|
|
172
|
-
// For example, the accessible trigger of an <sd-1-
|
|
172
|
+
// For example, the accessible trigger of an <sd-1-14-1-button> is a <button> located inside its shadow root.
|
|
173
173
|
//
|
|
174
174
|
// To determine this, we assume the first tabbable element in the trigger slot is the "accessible trigger."
|
|
175
175
|
//
|
|
@@ -179,8 +179,8 @@ let SdDropdown = class extends SolidElement {
|
|
|
179
179
|
let target;
|
|
180
180
|
if (accessibleTrigger) {
|
|
181
181
|
switch (accessibleTrigger.tagName.toLowerCase()) {
|
|
182
|
-
case "sd-1-
|
|
183
|
-
case "sd-1-
|
|
182
|
+
case "sd-1-14-1-button":
|
|
183
|
+
case "sd-1-14-1-icon-button":
|
|
184
184
|
target = accessibleTrigger.button;
|
|
185
185
|
break;
|
|
186
186
|
default:
|
|
@@ -256,11 +256,11 @@ let SdDropdown = class extends SolidElement {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
render() {
|
|
259
|
-
return html`<sd-1-
|
|
259
|
+
return html`<sd-1-14-1-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" ?active="${this.open}"><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(
|
|
260
260
|
"shadow bg-white",
|
|
261
261
|
this.open ? "block pointer-events-auto" : "pointer-events-none",
|
|
262
262
|
this.rounded && "rounded-md"
|
|
263
|
-
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-1-
|
|
263
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-1-14-1-popup>`;
|
|
264
264
|
}
|
|
265
265
|
};
|
|
266
266
|
SdDropdown.styles = [
|
|
@@ -314,7 +314,7 @@ __decorateClass([
|
|
|
314
314
|
watch("open", { waitUntilFirstUpdate: true })
|
|
315
315
|
], SdDropdown.prototype, "handleOpenChange", 1);
|
|
316
316
|
SdDropdown = __decorateClass([
|
|
317
|
-
customElement("sd-1-
|
|
317
|
+
customElement("sd-1-14-1-dropdown")
|
|
318
318
|
], SdDropdown);
|
|
319
319
|
setDefaultAnimation("dropdown.show", {
|
|
320
320
|
keyframes: [
|
|
@@ -76,7 +76,7 @@ let SdLink = class extends SolidElement {
|
|
|
76
76
|
};
|
|
77
77
|
SdLink.styles = [
|
|
78
78
|
SolidElement.styles,
|
|
79
|
-
css`::slotted(sd-1-
|
|
79
|
+
css`::slotted(sd-1-14-1-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-1-14-1-icon){font-size:1rem}:host([size=lg][standalone]) ::slotted(sd-1-14-1-icon){font-size:1.5rem}`
|
|
80
80
|
];
|
|
81
81
|
__decorateClass([
|
|
82
82
|
query("a")
|
|
@@ -100,7 +100,7 @@ __decorateClass([
|
|
|
100
100
|
property()
|
|
101
101
|
], SdLink.prototype, "download", 2);
|
|
102
102
|
SdLink = __decorateClass([
|
|
103
|
-
customElement("sd-1-
|
|
103
|
+
customElement("sd-1-14-1-link")
|
|
104
104
|
], SdLink);
|
|
105
105
|
export {
|
|
106
106
|
SdLink as default
|
|
@@ -311,7 +311,7 @@ __decorateClass([
|
|
|
311
311
|
property({ attribute: "auto-size-padding", type: Number })
|
|
312
312
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
313
313
|
SdPopup = __decorateClass([
|
|
314
|
-
customElement("sd-1-
|
|
314
|
+
customElement("sd-1-14-1-popup")
|
|
315
315
|
], SdPopup);
|
|
316
316
|
export {
|
|
317
317
|
SdPopup as default
|
|
@@ -71,7 +71,7 @@ let SdTag = class extends SolidElement {
|
|
|
71
71
|
lg: "text-base",
|
|
72
72
|
sm: "text-[12px]"
|
|
73
73
|
}[this.size]
|
|
74
|
-
)}"><sd-1-
|
|
74
|
+
)}"><sd-1-14-1-icon library="system" name="close" label="remove"></sd-1-14-1-icon></slot></${tag}>`;
|
|
75
75
|
}
|
|
76
76
|
};
|
|
77
77
|
SdTag.styles = [
|
|
@@ -103,7 +103,7 @@ __decorateClass([
|
|
|
103
103
|
property()
|
|
104
104
|
], SdTag.prototype, "download", 2);
|
|
105
105
|
SdTag = __decorateClass([
|
|
106
|
-
customElement("sd-1-
|
|
106
|
+
customElement("sd-1-14-1-tag")
|
|
107
107
|
], SdTag);
|
|
108
108
|
export {
|
|
109
109
|
SdTag as default
|
|
@@ -49,9 +49,7 @@ let SdTeaser = class extends SolidElement {
|
|
|
49
49
|
this._orientation = this.offsetWidth >= this.breakpoint ? "horizontal" : "vertical";
|
|
50
50
|
}
|
|
51
51
|
render() {
|
|
52
|
-
|
|
53
|
-
this.inset = true;
|
|
54
|
-
}
|
|
52
|
+
const inset = this.variant === "white border-neutral-300" || this.inset;
|
|
55
53
|
const slots = {
|
|
56
54
|
"teaser-has-default": this.hasSlotController.test("[default]"),
|
|
57
55
|
"teaser-has-media": this.hasSlotController.test("media"),
|
|
@@ -69,11 +67,11 @@ let SdTeaser = class extends SolidElement {
|
|
|
69
67
|
}[this.variant],
|
|
70
68
|
this._orientation === "vertical" && "flex-col",
|
|
71
69
|
this._orientation === "horizontal" && "flex-row gap-8",
|
|
72
|
-
this._orientation === "horizontal" &&
|
|
73
|
-
)}" part="base"><div style="${this._orientation === "horizontal" ? `width: var(--distribution-media, 100%);` : ""}" class="${cx(!
|
|
70
|
+
this._orientation === "horizontal" && inset && "py-8 px-10"
|
|
71
|
+
)}" part="base"><div style="${this._orientation === "horizontal" ? `width: var(--distribution-media, 100%);` : ""}" class="${cx(!inset && this._orientation === "vertical" && "mb-4", !slots["teaser-has-media"] && "hidden")}" part="media"><slot name="media"></slot></div><div style="${this._orientation === "horizontal" ? `width: var(--distribution-content, 100%); ${inset ? "width: var(--distribution-content, calc(100% - 2rem));" : ""}` : ""}" class="${cx(
|
|
74
72
|
"flex flex-col text-left",
|
|
75
73
|
this._orientation === "horizontal" && `flex flex-col`,
|
|
76
|
-
this._orientation === "vertical" &&
|
|
74
|
+
this._orientation === "vertical" && inset && "m-4"
|
|
77
75
|
)}" part="content"><div part="meta" class="${cx("gap-2 mb-4", !slots["teaser-has-meta"] && "hidden")}"><slot name="meta"></slot></div><div part="headline" class="${cx("text-lg font-bold m-0", this.variant === "primary" ? "text-white" : "text-black")}"><slot name="headline">Always insert one semantically correct heading element here (e. g. <h2>)</slot></div><div part="main" class="${cx(!slots["teaser-has-default"] && "hidden")}"><slot></slot></div></div></div>`;
|
|
78
76
|
}
|
|
79
77
|
};
|
|
@@ -97,7 +95,7 @@ __decorateClass([
|
|
|
97
95
|
state()
|
|
98
96
|
], SdTeaser.prototype, "_orientation", 2);
|
|
99
97
|
SdTeaser = __decorateClass([
|
|
100
|
-
customElement("sd-1-
|
|
98
|
+
customElement("sd-1-14-1-teaser")
|
|
101
99
|
], SdTeaser);
|
|
102
100
|
export {
|
|
103
101
|
SdTeaser as default
|
|
@@ -90,7 +90,7 @@ class FormControlController {
|
|
|
90
90
|
const disabled = this.options.disabled(this.host);
|
|
91
91
|
const name = this.options.name(this.host);
|
|
92
92
|
const value = this.options.value(this.host);
|
|
93
|
-
const isButton = this.host.tagName.toLowerCase() === "sd-1-
|
|
93
|
+
const isButton = this.host.tagName.toLowerCase() === "sd-1-14-1-button";
|
|
94
94
|
if (!disabled && !isButton && typeof name === "string" && name.length > 0 && typeof value !== "undefined") {
|
|
95
95
|
if (Array.isArray(value)) {
|
|
96
96
|
value.forEach((val) => {
|
|
@@ -921,7 +921,7 @@
|
|
|
921
921
|
"references": []
|
|
922
922
|
},
|
|
923
923
|
{
|
|
924
|
-
"name": "sd-1-
|
|
924
|
+
"name": "sd-1-14-1-accordion-group",
|
|
925
925
|
"description": "Short summary of the component's intended use.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The default slot where `<sd-accordion>` elements are placed.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.",
|
|
926
926
|
"attributes": [
|
|
927
927
|
{
|
|
@@ -933,7 +933,7 @@
|
|
|
933
933
|
"references": []
|
|
934
934
|
},
|
|
935
935
|
{
|
|
936
|
-
"name": "sd-1-
|
|
936
|
+
"name": "sd-1-14-1-accordion",
|
|
937
937
|
"description": "Accordion shows a brief summary and expands to show additional content.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the accordion opens.\n- **sd-after-show** - Emitted after the accordion opens and all animations are complete.\n- **sd-hide** - Emitted when the accordion closes.\n- **sd-after-hide** - Emitted after the accordion closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the accordion.\n- **hide()** - Hides the accordion\n\n### **Slots:**\n - _default_ - The accordion main content.\n- **summary** - The accordion summary. Alternatively, you can use the `summary` attribute.\n- **expand-icon** - Optional expand icon to use instead of the default. Works best with `<sd-icon>`.\n- **collapse-icon** - Optional collapse icon to use instead of the default. Works best with `<sd-icon>`.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **header** - The header that wraps both the summary and the expand/collapse icon.\n- **summary** - The container that wraps the summary.\n- **summary-icon** - The container that wraps the expand/collapse icons.\n- **content** - The accordion content.",
|
|
938
938
|
"attributes": [
|
|
939
939
|
{
|
|
@@ -950,7 +950,7 @@
|
|
|
950
950
|
"references": []
|
|
951
951
|
},
|
|
952
952
|
{
|
|
953
|
-
"name": "sd-1-
|
|
953
|
+
"name": "sd-1-14-1-badge",
|
|
954
954
|
"description": "Badges are used to draw attention and display statuses or counts.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The badge's content.\n\n### **CSS Parts:**\n - **base** - The badge's base wrapper.\n- **content** - The badge's main content.",
|
|
955
955
|
"attributes": [
|
|
956
956
|
{
|
|
@@ -992,7 +992,7 @@
|
|
|
992
992
|
"references": []
|
|
993
993
|
},
|
|
994
994
|
{
|
|
995
|
-
"name": "sd-1-
|
|
995
|
+
"name": "sd-1-14-1-brandshape",
|
|
996
996
|
"description": "The Brandshape highlights a piece of content.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - The content inside the brandshape.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - Middle content wrapper.\n- **shape-top** - Top shape.\n- **shape-middle** - Middle shape.\n- **shape-bottom** - Bottom shape.",
|
|
997
997
|
"attributes": [
|
|
998
998
|
{
|
|
@@ -1029,7 +1029,7 @@
|
|
|
1029
1029
|
"references": []
|
|
1030
1030
|
},
|
|
1031
1031
|
{
|
|
1032
|
-
"name": "sd-1-
|
|
1032
|
+
"name": "sd-1-14-1-button",
|
|
1033
1033
|
"description": "Buttons represent actions that are available to the user.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the button loses focus.\n- **sd-focus** - Emitted when the button gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the button.\n- **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n- **checkValidity()** - Checks for validity but does not show the browser's validation message.\n- **reportValidity()** - Checks for validity and shows the browser's validation message if the control is invalid.\n- **setCustomValidity(message: _string_)** - Sets a custom validation message. Pass an empty string to restore validity.\n\n### **Slots:**\n - _default_ - The button's label.\n- **icon-left** - A prefix icon or similar element.\n- **icon-right** - A suffix icon or similar element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The button's label.\n- **icon-right** - The container that wraps the right icon area.",
|
|
1034
1034
|
"attributes": [
|
|
1035
1035
|
{
|
|
@@ -1201,7 +1201,7 @@
|
|
|
1201
1201
|
"references": []
|
|
1202
1202
|
},
|
|
1203
1203
|
{
|
|
1204
|
-
"name": "sd-1-
|
|
1204
|
+
"name": "sd-1-14-1-divider",
|
|
1205
1205
|
"description": "Dividers are used to visually separate or group elements.\n\n\n---\n\n\n",
|
|
1206
1206
|
"attributes": [
|
|
1207
1207
|
{
|
|
@@ -1225,7 +1225,7 @@
|
|
|
1225
1225
|
"references": []
|
|
1226
1226
|
},
|
|
1227
1227
|
{
|
|
1228
|
-
"name": "sd-1-
|
|
1228
|
+
"name": "sd-1-14-1-drawer",
|
|
1229
1229
|
"description": "Drawers slide in from a container to expose additional options and information.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the drawer opens.\n- **sd-after-show** - Emitted after the drawer opens and all animations are complete.\n- **sd-hide** - Emitted when the drawer closes.\n- **sd-after-hide** - Emitted after the drawer closes and all animations are complete.\n- **sd-initial-focus** - Emitted when the drawer opens and is ready to receive focus. Calling `event.preventDefault()` will prevent focusing and allow you to set it on a different element, such as an input.\n- **sd-request-close** - Emitted when the user attempts to close the drawer by clicking the close button, clicking the overlay, or pressing escape. Calling `event.preventDefault()` will keep the drawer open. Avoid using this unless closing the drawer will result in destructive behavior such as data loss.\n\n### **Methods:**\n - **show()** - Shows the drawer.\n- **hide()** - Hides the drawer\n\n### **Slots:**\n - _default_ - The drawer's main content.\n- **header** - The drawer's header, usually a title.\n- **footer** - The drawer's footer, usually one or more buttons representing various options.\n\n### **CSS Properties:**\n - **--width** - The preferred width of the drawer. depending on its `placement`. Note that the drawer will shrink to accommodate smaller screens. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **overlay** - The overlay that covers the screen behind the drawer.\n- **panel** - The drawer's panel (where the drawer and its content are rendered).\n- **header** - The drawer's header. This element wraps the title and the close-button.\n- **title** - The drawer's title.\n- **close-button** - The close button, an `<sd-button>`.\n- **body** - The drawer's body.\n- **footer** - The drawer's footer.",
|
|
1230
1230
|
"attributes": [
|
|
1231
1231
|
{
|
|
@@ -1264,7 +1264,7 @@
|
|
|
1264
1264
|
"references": []
|
|
1265
1265
|
},
|
|
1266
1266
|
{
|
|
1267
|
-
"name": "sd-1-
|
|
1267
|
+
"name": "sd-1-14-1-dropdown",
|
|
1268
1268
|
"description": "Dropdowns expose additional content that \"drops down\" in a panel.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-show** - Emitted when the dropdown opens.\n- **sd-after-show** - Emitted after the dropdown opens and all animations are complete.\n- **sd-hide** - Emitted when the dropdown closes.\n- **sd-after-hide** - Emitted after the dropdown closes and all animations are complete.\n\n### **Methods:**\n - **show()** - Shows the dropdown panel.\n- **hide()** - Hides the dropdown panel\n- **reposition()** - Instructs the dropdown menu to reposition. Useful when the position or size of the trigger changes when the menu\nis activated.\n\n### **Slots:**\n - _default_ - The dropdown's main content.\n- **trigger** - The dropdown's trigger, usually a `<sd-button>` element.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **trigger** - The container that wraps the trigger.\n- **panel** - The panel that gets shown when the dropdown is open.",
|
|
1269
1269
|
"attributes": [
|
|
1270
1270
|
{
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
"references": []
|
|
1362
1362
|
},
|
|
1363
1363
|
{
|
|
1364
|
-
"name": "sd-1-
|
|
1364
|
+
"name": "sd-1-14-1-icon",
|
|
1365
1365
|
"description": "Icons are symbols that can be used to represent various options within an application.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the icon has loaded.\n- **sd-error** - Emitted when the icon fails to load due to an error.",
|
|
1366
1366
|
"attributes": [
|
|
1367
1367
|
{
|
|
@@ -1403,7 +1403,7 @@
|
|
|
1403
1403
|
"references": []
|
|
1404
1404
|
},
|
|
1405
1405
|
{
|
|
1406
|
-
"name": "sd-1-
|
|
1406
|
+
"name": "sd-1-14-1-include",
|
|
1407
1407
|
"description": "Includes give you the power to embed external HTML files into the page.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-load** - Emitted when the included file is loaded.\n- **sd-error** - Emitted when the included file fails to load due to an error.",
|
|
1408
1408
|
"attributes": [
|
|
1409
1409
|
{
|
|
@@ -1435,7 +1435,7 @@
|
|
|
1435
1435
|
"references": []
|
|
1436
1436
|
},
|
|
1437
1437
|
{
|
|
1438
|
-
"name": "sd-1-
|
|
1438
|
+
"name": "sd-1-14-1-link",
|
|
1439
1439
|
"description": "A link component.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the link loses focus.\n- **sd-focus** - Emitted when the link gains focus.\n\n### **Methods:**\n - **focus(options: _FocusOptions_)** - Sets focus on the button.\n- **blur()** - Removes focus from the button.\n\n### **Slots:**\n - _default_ - The default slot.\n- **icon-left** - The icon to display on the left side of the link.\n- **icon-right** - The icon to display on the right side of the link.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **icon-left** - The container that wraps the left icon area.\n- **label** - The link's label.\n- **icon-right** - The container that wraps the right icon area.",
|
|
1440
1440
|
"attributes": [
|
|
1441
1441
|
{
|
|
@@ -1495,7 +1495,7 @@
|
|
|
1495
1495
|
"references": []
|
|
1496
1496
|
},
|
|
1497
1497
|
{
|
|
1498
|
-
"name": "sd-1-
|
|
1498
|
+
"name": "sd-1-14-1-popup",
|
|
1499
1499
|
"description": "Popup is a utility that lets you declaratively anchor \"popup\" containers to another element.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-reposition** - Emitted when the popup is repositioned. This event can fire a lot, so avoid putting expensive operations in your listener or consider debouncing it.\n\n### **Methods:**\n - **reposition()** - Forces the popup to recalculate and reposition itself.\n\n### **Slots:**\n - _default_ - The popup's content.\n- **anchor** - The element the popup will be anchored to. If the anchor lives outside of the popup, you can use the `anchor` attribute or property instead.\n\n### **CSS Properties:**\n - **--arrow-size** - The size of the arrow. Note that an arrow won't be shown unless the `arrow` attribute is used. _(default: 6px)_\n- **--arrow-color** - The color of the arrow. _(default: var(--sd-color-neutral-0))_\n- **--auto-size-available-width** - A read-only custom property that determines the amount of width the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n- **--auto-size-available-height** - A read-only custom property that determines the amount of height the popup can be before overflowing. Useful for positioning child elements that need to overflow. This property is only available when using `auto-size`. _(default: undefined)_\n\n### **CSS Parts:**\n - **arrow** - The arrow's container. Avoid setting `top|bottom|left|right` properties, as these values are assigned dynamically as the popup moves. This is most useful for applying a background color to match the popup, and maybe a border or box shadow.\n- **popup** - The popup's container. Useful for setting a background color, box shadow, etc.",
|
|
1500
1500
|
"attributes": [
|
|
1501
1501
|
{
|
|
@@ -1719,7 +1719,7 @@
|
|
|
1719
1719
|
"references": []
|
|
1720
1720
|
},
|
|
1721
1721
|
{
|
|
1722
|
-
"name": "sd-1-
|
|
1722
|
+
"name": "sd-1-14-1-spinner",
|
|
1723
1723
|
"description": "Spinners are used to show the progress of an indeterminate operation.\n\n\n---\n\n\n",
|
|
1724
1724
|
"attributes": [
|
|
1725
1725
|
{
|
|
@@ -1741,7 +1741,7 @@
|
|
|
1741
1741
|
"references": []
|
|
1742
1742
|
},
|
|
1743
1743
|
{
|
|
1744
|
-
"name": "sd-1-
|
|
1744
|
+
"name": "sd-1-14-1-tag",
|
|
1745
1745
|
"description": "Tags are used as labels to organize things or to indicate a selection.\n\n\n---\n\n\n\n\n### **Events:**\n - **sd-blur** - Emitted when the tag loses focus.\n- **sd-focus** - Emitted when the tag gains focus.\n\n### **Methods:**\n - **click()** - Simulates a click on the tag.\n- **focus(options: _FocusOptions_)** - Sets focus on the tag.\n- **blur()** - Removes focus from the tag.\n\n### **Slots:**\n - _default_ - The tag's content.\n- **removable-indicator** - The tag's removability indicator.\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **content** - The tag's content.\n- **removable-indicator** - The tag's removability indicator.",
|
|
1746
1746
|
"attributes": [
|
|
1747
1747
|
{
|
|
@@ -1803,7 +1803,7 @@
|
|
|
1803
1803
|
"references": []
|
|
1804
1804
|
},
|
|
1805
1805
|
{
|
|
1806
|
-
"name": "sd-1-
|
|
1806
|
+
"name": "sd-1-14-1-teaser",
|
|
1807
1807
|
"description": "Teasers group information into flexible containers so users can browse a collection of related items and actions.\n\n\n---\n\n\n\n\n### **Slots:**\n - _default_ - An optional main content slot.\n- **media** - An optional media slot.\n- **meta** - An optional meta slot.\n- **headline** - headline slot.\n\n### **CSS Properties:**\n - **--distribution-media** - The distribution ratio of the media. _(default: undefined)_\n- **--distribution-content** - The distribution ratio of the content. _(default: undefined)_\n\n### **CSS Parts:**\n - **base** - The component's base wrapper.\n- **media** - The container that wraps the media.\n- **content** - The container that wraps the content.\n- **meta** - The container that wraps the meta.\n- **headline** - The container that wraps the headline.\n- **main** - The container that wraps the main content.",
|
|
1808
1808
|
"attributes": [
|
|
1809
1809
|
{
|