@solid-design-system/components 3.22.0 → 3.22.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/README.md +1 -1
- package/dist/components/es/form.js +1 -1
- package/dist/components/es/input.js +6 -1
- package/dist/components/es/live.js +2 -2
- package/dist/components/es/map-marker.js +1 -1
- package/dist/components/es/solid-components2.js +1 -1
- package/dist/components/umd/solid-components.js +20 -15
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/input/input.d.ts +6 -1
- package/dist/package/components/input/input.js +38 -5
- package/dist/package/components/map-marker/map-marker.js +1 -1
- package/dist/package/internal/form.js +2 -0
- package/dist/package/internal/longpress.d.ts +24 -0
- package/dist/package/internal/longpress.js +80 -0
- package/dist/package/styles/tailwind.css.js +1 -1
- package/dist/versioned-components/es/accordion-group.js +1 -1
- package/dist/versioned-components/es/accordion.js +1 -1
- package/dist/versioned-components/es/audio.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/carousel-item.js +1 -1
- package/dist/versioned-components/es/carousel.js +3 -3
- package/dist/versioned-components/es/checkbox-group.js +1 -1
- package/dist/versioned-components/es/checkbox.js +1 -1
- package/dist/versioned-components/es/dialog.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/expandable.js +1 -1
- package/dist/versioned-components/es/flipcard.js +1 -1
- package/dist/versioned-components/es/form.js +1 -1
- package/dist/versioned-components/es/header.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/input.js +6 -1
- package/dist/versioned-components/es/link.js +1 -1
- package/dist/versioned-components/es/live.js +2 -2
- package/dist/versioned-components/es/map-marker.js +1 -1
- package/dist/versioned-components/es/navigation-item.js +1 -1
- package/dist/versioned-components/es/notification.js +1 -1
- package/dist/versioned-components/es/option.js +1 -1
- package/dist/versioned-components/es/quickfact.js +1 -1
- package/dist/versioned-components/es/radio-button.js +1 -1
- package/dist/versioned-components/es/radio-group.js +1 -1
- package/dist/versioned-components/es/radio.js +1 -1
- package/dist/versioned-components/es/scrollable.js +1 -1
- package/dist/versioned-components/es/select.js +3 -3
- package/dist/versioned-components/es/solid-components2.js +1 -1
- package/dist/versioned-components/es/spinner.js +1 -1
- package/dist/versioned-components/es/step-group.js +1 -1
- package/dist/versioned-components/es/step.js +1 -1
- package/dist/versioned-components/es/switch.js +1 -1
- package/dist/versioned-components/es/tab-group.js +1 -1
- package/dist/versioned-components/es/tab-panel.js +1 -1
- package/dist/versioned-components/es/tab.js +1 -1
- package/dist/versioned-components/es/tag.js +1 -1
- package/dist/versioned-components/es/teaser-media.js +1 -1
- package/dist/versioned-components/es/teaser.js +1 -1
- package/dist/versioned-components/es/textarea.js +1 -1
- package/dist/versioned-components/es/tooltip.js +2 -2
- package/dist/versioned-components/es/video.js +1 -1
- package/dist/versioned-package/_components/button-group/button-group.d.ts +1 -1
- package/dist/versioned-package/_components/button-group/button-group.js +11 -11
- 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/audio/audio.d.ts +1 -1
- package/dist/versioned-package/components/audio/audio.js +6 -6
- 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/carousel/carousel.d.ts +1 -1
- package/dist/versioned-package/components/carousel/carousel.js +6 -6
- package/dist/versioned-package/components/carousel-item/carousel-item.d.ts +1 -1
- package/dist/versioned-package/components/carousel-item/carousel-item.js +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.d.ts +1 -1
- package/dist/versioned-package/components/checkbox/checkbox.js +3 -3
- package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/versioned-package/components/checkbox-group/checkbox-group.js +5 -5
- package/dist/versioned-package/components/dialog/dialog.d.ts +1 -1
- package/dist/versioned-package/components/dialog/dialog.js +2 -2
- 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 +8 -8
- package/dist/versioned-package/components/expandable/expandable.d.ts +1 -1
- package/dist/versioned-package/components/expandable/expandable.js +2 -2
- package/dist/versioned-package/components/flipcard/flipcard.d.ts +1 -1
- package/dist/versioned-package/components/flipcard/flipcard.js +1 -1
- package/dist/versioned-package/components/header/header.d.ts +1 -1
- package/dist/versioned-package/components/header/header.js +4 -4
- 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/input/input.d.ts +7 -2
- package/dist/versioned-package/components/input/input.js +39 -6
- 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/map-marker/map-marker.d.ts +1 -1
- package/dist/versioned-package/components/map-marker/map-marker.js +2 -2
- package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.js +5 -5
- package/dist/versioned-package/components/notification/notification.d.ts +1 -1
- package/dist/versioned-package/components/notification/notification.js +5 -5
- package/dist/versioned-package/components/option/option.d.ts +1 -1
- package/dist/versioned-package/components/option/option.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/quickfact/quickfact.d.ts +1 -1
- package/dist/versioned-package/components/quickfact/quickfact.js +2 -2
- package/dist/versioned-package/components/radio/radio.d.ts +1 -1
- package/dist/versioned-package/components/radio/radio.js +2 -2
- package/dist/versioned-package/components/radio-button/radio-button.d.ts +1 -1
- package/dist/versioned-package/components/radio-button/radio-button.js +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.d.ts +2 -2
- package/dist/versioned-package/components/radio-group/radio-group.js +13 -13
- package/dist/versioned-package/components/scrollable/scrollable.d.ts +1 -1
- package/dist/versioned-package/components/scrollable/scrollable.js +3 -3
- package/dist/versioned-package/components/select/select.d.ts +4 -4
- package/dist/versioned-package/components/select/select.js +25 -25
- 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/step/step.d.ts +1 -1
- package/dist/versioned-package/components/step/step.js +2 -2
- package/dist/versioned-package/components/step-group/step-group.d.ts +1 -1
- package/dist/versioned-package/components/step-group/step-group.js +2 -2
- package/dist/versioned-package/components/switch/switch.d.ts +1 -1
- package/dist/versioned-package/components/switch/switch.js +1 -1
- package/dist/versioned-package/components/tab/tab.d.ts +1 -1
- package/dist/versioned-package/components/tab/tab.js +2 -2
- package/dist/versioned-package/components/tab-group/tab-group.d.ts +1 -1
- package/dist/versioned-package/components/tab-group/tab-group.js +13 -13
- package/dist/versioned-package/components/tab-panel/tab-panel.d.ts +1 -1
- package/dist/versioned-package/components/tab-panel/tab-panel.js +2 -2
- 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 +1 -1
- package/dist/versioned-package/components/teaser-media/teaser-media.js +1 -1
- package/dist/versioned-package/components/textarea/textarea.d.ts +1 -1
- package/dist/versioned-package/components/textarea/textarea.js +2 -2
- package/dist/versioned-package/components/tooltip/tooltip.d.ts +1 -1
- package/dist/versioned-package/components/tooltip/tooltip.js +5 -5
- package/dist/versioned-package/components/video/video.d.ts +1 -1
- package/dist/versioned-package/components/video/video.js +2 -2
- package/dist/versioned-package/internal/form.js +5 -3
- package/dist/versioned-package/internal/longpress.d.ts +24 -0
- package/dist/versioned-package/internal/longpress.js +80 -0
- package/dist/versioned-package/styles/headline/headline.css.js +1 -1
- package/dist/versioned-package/styles/tailwind.css.js +1 -1
- package/dist/versioned-package/utilities/autocomplete-config.js +4 -4
- package/dist/versioned-styles/solid-styles.css +1 -1
- package/dist/vscode.html-custom-data.json +49 -49
- package/dist/web-types.json +94 -54
- package/package.json +4 -4
|
@@ -34,7 +34,7 @@ let SdDivider = class extends SolidElement {
|
|
|
34
34
|
SdDivider.styles = [
|
|
35
35
|
componentStyles,
|
|
36
36
|
SolidElement.styles,
|
|
37
|
-
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-3-22-
|
|
37
|
+
css`:host{margin:var(--sd-spacing-0,0)}:host(sd-3-22-2-divider[orientation=horizontal]){display:block}:host(sd-3-22-2-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-3-22-
|
|
46
|
+
customElement("sd-3-22-2-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-3-22-
|
|
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-3-22-2-button variant="tertiary" size="lg" part="close-button" @click="${() => this.requestClose("close-button")}"><sd-3-22-2-icon label="${this.localize.term("close")}" name="close" library="system"></sd-3-22-2-icon></sd-3-22-2-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 = [
|
|
@@ -221,7 +221,7 @@ __decorateClass([
|
|
|
221
221
|
watch("contained", { waitUntilFirstUpdate: true })
|
|
222
222
|
], SdDrawer.prototype, "handleNoModalChange", 1);
|
|
223
223
|
SdDrawer = __decorateClass([
|
|
224
|
-
customElement("sd-3-22-
|
|
224
|
+
customElement("sd-3-22-2-drawer")
|
|
225
225
|
], SdDrawer);
|
|
226
226
|
setDefaultAnimation("drawer.showStart", {
|
|
227
227
|
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-3-22-
|
|
172
|
+
// For example, the accessible trigger of an <sd-3-22-2-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-3-22-
|
|
183
|
-
case "sd-3-22-
|
|
182
|
+
case "sd-3-22-2-button":
|
|
183
|
+
case "sd-3-22-2-icon-button":
|
|
184
184
|
target = accessibleTrigger.button;
|
|
185
185
|
break;
|
|
186
186
|
default:
|
|
@@ -215,7 +215,7 @@ let SdDropdown = class extends SolidElement {
|
|
|
215
215
|
}
|
|
216
216
|
addOpenListeners() {
|
|
217
217
|
this.panel.addEventListener("sd-activate", this.handleMenuItemActivate);
|
|
218
|
-
this.panel.addEventListener("sd-3-22-
|
|
218
|
+
this.panel.addEventListener("sd-3-22-2-select", this.handlePanelSelect);
|
|
219
219
|
this.panel.addEventListener("keydown", this.handleKeyDown);
|
|
220
220
|
document.addEventListener("keydown", this.handleDocumentKeyDown);
|
|
221
221
|
document.addEventListener("mousedown", this.handleDocumentMouseDown);
|
|
@@ -223,7 +223,7 @@ let SdDropdown = class extends SolidElement {
|
|
|
223
223
|
removeOpenListeners() {
|
|
224
224
|
if (this.panel) {
|
|
225
225
|
this.panel.removeEventListener("sd-activate", this.handleMenuItemActivate);
|
|
226
|
-
this.panel.removeEventListener("sd-3-22-
|
|
226
|
+
this.panel.removeEventListener("sd-3-22-2-select", this.handlePanelSelect);
|
|
227
227
|
this.panel.removeEventListener("keydown", this.handleKeyDown);
|
|
228
228
|
}
|
|
229
229
|
document.removeEventListener("keydown", this.handleDocumentKeyDown);
|
|
@@ -256,11 +256,11 @@ let SdDropdown = class extends SolidElement {
|
|
|
256
256
|
}
|
|
257
257
|
}
|
|
258
258
|
render() {
|
|
259
|
-
return html`<sd-3-22-
|
|
259
|
+
return html`<sd-3-22-2-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-3-22-
|
|
263
|
+
)}" aria-hidden="${this.open ? "false" : "true"}" aria-labelledby="dropdown"></slot></sd-3-22-2-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-3-22-
|
|
317
|
+
customElement("sd-3-22-2-dropdown")
|
|
318
318
|
], SdDropdown);
|
|
319
319
|
setDefaultAnimation("dropdown.show", {
|
|
320
320
|
keyframes: [
|
|
@@ -70,7 +70,7 @@ let SdExpandable = class extends SolidElement {
|
|
|
70
70
|
"sd-interactive sd-interactive--reset !h-full !justify-center !w-full !text-base !flex !items-center !underline !underline-offset-2 !toggle",
|
|
71
71
|
this.inverted && "sd-interactive--inverted",
|
|
72
72
|
!this.inverted ? "!focus-visible:focus-outline" : "!focus-visible:focus-outline-inverted"
|
|
73
|
-
)}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-3-22-
|
|
73
|
+
)}" @click="${this.onToggleClick}">${this.open ? html`<slot name="toggle-open"><sd-3-22-2-icon class="mr-2 text-xl" library="system" name="chevron-up"></sd-3-22-2-icon>${this.localize.term("showLess")}</slot>` : html`<slot name="toggle-closed"><sd-3-22-2-icon class="mr-2 text-xl" library="system" name="chevron-down"></sd-3-22-2-icon>${this.localize.term("showMore")}</slot>`}</button>`;
|
|
74
74
|
}
|
|
75
75
|
firstUpdated() {
|
|
76
76
|
this.cloneContentToLightDOM();
|
|
@@ -109,7 +109,7 @@ __decorateClass([
|
|
|
109
109
|
watch("open", { waitUntilFirstUpdate: true })
|
|
110
110
|
], SdExpandable.prototype, "onOpenChange", 1);
|
|
111
111
|
SdExpandable = __decorateClass([
|
|
112
|
-
customElement("sd-3-22-
|
|
112
|
+
customElement("sd-3-22-2-expandable")
|
|
113
113
|
], SdExpandable);
|
|
114
114
|
export {
|
|
115
115
|
SdExpandable as default
|
|
@@ -173,7 +173,7 @@ __decorateClass([
|
|
|
173
173
|
property({ type: String, reflect: true, attribute: "back-variant" })
|
|
174
174
|
], SdFlipcard.prototype, "backVariant", 2);
|
|
175
175
|
SdFlipcard = __decorateClass([
|
|
176
|
-
customElement("sd-3-22-
|
|
176
|
+
customElement("sd-3-22-2-flipcard")
|
|
177
177
|
], SdFlipcard);
|
|
178
178
|
export {
|
|
179
179
|
SdFlipcard as default
|
|
@@ -63,11 +63,11 @@ let SdHeader = class extends SolidElement {
|
|
|
63
63
|
setCalculatedHeightProperty() {
|
|
64
64
|
if (this.fixed && this.refHeaderElement) {
|
|
65
65
|
document.documentElement.style.setProperty(
|
|
66
|
-
"--sd-3-22-
|
|
66
|
+
"--sd-3-22-2-header-calculated-height",
|
|
67
67
|
`${this.refHeaderElement.clientHeight}px`
|
|
68
68
|
);
|
|
69
69
|
} else {
|
|
70
|
-
document.documentElement.style.removeProperty("--sd-3-22-
|
|
70
|
+
document.documentElement.style.removeProperty("--sd-3-22-2-header-calculated-height");
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
render() {
|
|
@@ -84,7 +84,7 @@ let SdHeader = class extends SolidElement {
|
|
|
84
84
|
SdHeader.styles = [
|
|
85
85
|
SolidElement.styles,
|
|
86
86
|
componentStyles,
|
|
87
|
-
css`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-3-22-
|
|
87
|
+
css`:host{display:block}:host([fixed]){position:fixed;left:var(--sd-spacing-0,0);top:var(--sd-spacing-0,0);width:100%}:host([fixed]) header::after{content:'';position:absolute;left:var(--sd-spacing-0,0);right:var(--sd-spacing-0,0);top:100%;height:var(--sd-spacing-2,.5rem);background:var(--gradient-vertical-black-40-transparent,linear-gradient(0deg,#18181800 50%,#18181866 100%))}[part=main]{width:var(--sd-3-22-2-header-inner-width);max-width:var(--sd-3-22-2-header-inner-max-width);padding:var(--sd-3-22-2-header-padding,12px 16px)}`
|
|
88
88
|
];
|
|
89
89
|
__decorateClass([
|
|
90
90
|
property({ reflect: true, type: Boolean })
|
|
@@ -93,7 +93,7 @@ __decorateClass([
|
|
|
93
93
|
debounce(100)
|
|
94
94
|
], SdHeader.prototype, "onResize", 1);
|
|
95
95
|
SdHeader = __decorateClass([
|
|
96
|
-
customElement("sd-3-22-
|
|
96
|
+
customElement("sd-3-22-2-header")
|
|
97
97
|
], SdHeader);
|
|
98
98
|
export {
|
|
99
99
|
SdHeader as default
|
|
@@ -25,7 +25,7 @@ export default class SdInput extends SolidElement implements SolidFormControl {
|
|
|
25
25
|
readonly: boolean;
|
|
26
26
|
passwordToggle: boolean;
|
|
27
27
|
passwordVisible: boolean;
|
|
28
|
-
|
|
28
|
+
spinButtons: boolean;
|
|
29
29
|
minlength: number;
|
|
30
30
|
maxlength: number;
|
|
31
31
|
min: number | string;
|
|
@@ -57,6 +57,11 @@ export default class SdInput extends SolidElement implements SolidFormControl {
|
|
|
57
57
|
private handleInvalid;
|
|
58
58
|
private handleKeyDown;
|
|
59
59
|
private handlePasswordToggle;
|
|
60
|
+
private isDecrementDisabled;
|
|
61
|
+
private isIncrementDisabled;
|
|
62
|
+
private handleStep;
|
|
63
|
+
private handleStepUp;
|
|
64
|
+
private handleStepDown;
|
|
60
65
|
handleDisabledChange(): void;
|
|
61
66
|
handleStepChange(): void;
|
|
62
67
|
handleValueChange(): Promise<void>;
|
|
@@ -76,6 +81,6 @@ export default class SdInput extends SolidElement implements SolidFormControl {
|
|
|
76
81
|
}
|
|
77
82
|
declare global {
|
|
78
83
|
interface HTMLElementTagNameMap {
|
|
79
|
-
'sd-3-22-
|
|
84
|
+
'sd-3-22-2-input': SdInput;
|
|
80
85
|
}
|
|
81
86
|
}
|
|
@@ -8,6 +8,7 @@ import { HasSlotController } from "../../internal/slot.js";
|
|
|
8
8
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
9
9
|
import { live } from "lit/directives/live.js";
|
|
10
10
|
import { LocalizeController } from "../../utilities/localize.js";
|
|
11
|
+
import { longPress } from "../../internal/longpress.js";
|
|
11
12
|
import { query, state, property } from "lit/decorators.js";
|
|
12
13
|
import { watch } from "../../internal/watch.js";
|
|
13
14
|
import componentStyles from "../../styles/component.styles.js";
|
|
@@ -54,7 +55,7 @@ let SdInput = class extends SolidElement {
|
|
|
54
55
|
this.readonly = false;
|
|
55
56
|
this.passwordToggle = false;
|
|
56
57
|
this.passwordVisible = false;
|
|
57
|
-
this.
|
|
58
|
+
this.spinButtons = false;
|
|
58
59
|
this.form = "";
|
|
59
60
|
this.name = "";
|
|
60
61
|
this.title = "";
|
|
@@ -134,6 +135,38 @@ let SdInput = class extends SolidElement {
|
|
|
134
135
|
handlePasswordToggle() {
|
|
135
136
|
this.passwordVisible = !this.passwordVisible;
|
|
136
137
|
}
|
|
138
|
+
isDecrementDisabled() {
|
|
139
|
+
if (this.disabled || this.readonly) {
|
|
140
|
+
return true;
|
|
141
|
+
}
|
|
142
|
+
if (this.min === void 0 || this.min === null) {
|
|
143
|
+
return false;
|
|
144
|
+
}
|
|
145
|
+
const min = typeof this.min === "string" ? parseFloat(this.min) : this.min;
|
|
146
|
+
return this.valueAsNumber <= min;
|
|
147
|
+
}
|
|
148
|
+
isIncrementDisabled() {
|
|
149
|
+
if (this.disabled || this.readonly) {
|
|
150
|
+
return true;
|
|
151
|
+
}
|
|
152
|
+
if (this.max === void 0 || this.max === null) {
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
const max = typeof this.max === "string" ? parseFloat(this.max) : this.max;
|
|
156
|
+
return this.valueAsNumber >= max;
|
|
157
|
+
}
|
|
158
|
+
handleStep() {
|
|
159
|
+
this.handleInput();
|
|
160
|
+
this.input.focus();
|
|
161
|
+
}
|
|
162
|
+
handleStepUp() {
|
|
163
|
+
this.stepUp();
|
|
164
|
+
this.handleStep();
|
|
165
|
+
}
|
|
166
|
+
handleStepDown() {
|
|
167
|
+
this.stepDown();
|
|
168
|
+
this.handleStep();
|
|
169
|
+
}
|
|
137
170
|
handleDisabledChange() {
|
|
138
171
|
this.formControlController.setValidity(this.disabled);
|
|
139
172
|
}
|
|
@@ -245,13 +278,13 @@ let SdInput = class extends SolidElement {
|
|
|
245
278
|
"min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
|
|
246
279
|
this.size === "sm" ? "h-6" : "h-8",
|
|
247
280
|
textSize
|
|
248
|
-
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center ", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-3-22-
|
|
281
|
+
)}" type="${this.type === "password" && this.passwordVisible ? "text" : this.type}" title="${this.title}" name="${ifDefined(this.name)}" ?disabled="${this.disabled}" ?readonly="${this.readonly}" ?required="${this.required}" placeholder="${ifDefined(this.placeholder)}" minlength="${ifDefined(this.minlength)}" maxlength="${ifDefined(this.maxlength)}" min="${ifDefined(this.min)}" max="${ifDefined(this.max)}" step="${ifDefined(this.step)}" .value="${live(this.value)}" autocapitalize="${ifDefined(this.type === "password" ? "off" : this.autocapitalize)}" autocomplete="${ifDefined(this.type === "password" ? "off" : this.autocomplete)}" autocorrect="${ifDefined(this.type === "password" ? "off" : this.autocorrect)}" ?autofocus="${this.autofocus}" spellcheck="${this.spellcheck}" pattern="${ifDefined(this.pattern)}" enterkeyhint="${ifDefined(this.enterkeyhint)}" inputmode="${ifDefined(this.inputmode)}" aria-describedby="help-text invalid-message" @change="${this.handleChange}" @input="${this.handleInput}" @invalid="${this.handleInvalid}" @keydown="${this.handleKeyDown}" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("flex justify-center ", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-3-22-2-icon class="${cx("icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-3-22-2-icon></slot></button>` : ""} ${this.passwordToggle && this.type === "password" ? html`<button aria-label="${this.localize.term(this.passwordVisible ? "hidePassword" : "showPassword")}" part="password-toggle-button" class="flex items-center" type="button" @click="${this.handlePasswordToggle}" tabindex="-1">${this.passwordVisible ? html`<slot name="show-password-icon"><sd-3-22-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye"></sd-3-22-2-icon></slot>` : html`<slot name="hide-password-icon"><sd-3-22-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="eye-crossed-out"></sd-3-22-2-icon></slot>`}</button>` : ""} ${(this.type === "date" || this.type === "datetime-local") && !isFirefox ? html`<sd-3-22-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="calendar"></sd-3-22-2-icon>` : ""} ${this.type === "time" ? html`<sd-3-22-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="clock"></sd-3-22-2-icon>` : ""} ${this.type === "search" ? html`<button class="flex items-center" type="button" tabindex="-1"><sd-3-22-2-icon class="${cx(iconColor, iconMarginLeft, iconSize)}" library="system" name="magnifying-glass"></sd-3-22-2-icon></button>` : ""} ${this.showInvalidStyle ? html`<sd-3-22-2-icon part="invalid-icon" class="${cx("text-error", iconMarginLeft, iconSize)}" library="system" name="risk"></sd-3-22-2-icon>` : ""} ${this.showValidStyle && this.styleOnValid ? html`<sd-3-22-2-icon class="${cx("text-success flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check" part="valid-icon"></sd-3-22-2-icon>` : ""} ${slots["right"] ? html`<slot name="right" part="right" class="${cx("inline-flex", iconColor, iconMarginLeft, iconSize)}"></slot>` : ""} ${this.type === "number" && this.spinButtons ? html`<div part="stepper" class="flex items-center"><button part="decrement-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isDecrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepDown(), end: () => this.handleChange() })} tabindex="-1"><slot name="decrement-number-stepper"><sd-3-22-2-icon library="global-resources" name="system/minus-round" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-3-22-2-icon></slot></button> <button part="increment-number-stepper" class="stepper-button flex" type="button" ?disabled="${this.isIncrementDisabled()}" aria-hidden="true" ${longPress({ start: () => this.handleStepUp(), end: () => this.handleChange() })} tabindex="-1"><slot name="increment-number-stepper"><sd-3-22-2-icon library="global-resources" name="system/plus-round" label="Decrease value" class="${cx(iconColor, iconMarginLeft, iconSize)}"></sd-3-22-2-icon></slot></button></div>` : ""}</div></div><slot name="help-text" part="form-control-help-text" id="help-text" class="${cx("text-sm text-neutral-700", hasHelpText ? "block" : "hidden")}" aria-hidden="${!hasHelpText}">${this.helpText}</slot></div>${this.formControlController.renderInvalidMessage()}`;
|
|
249
282
|
}
|
|
250
283
|
};
|
|
251
284
|
SdInput.styles = [
|
|
252
285
|
componentStyles,
|
|
253
286
|
SolidElement.styles,
|
|
254
|
-
css`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}`
|
|
287
|
+
css`:host{position:relative;box-sizing:border-box;display:inline-block;width:100%;text-align:left}:host([vertical]){display:block}:host([required]) #label::after{content:' *'}details summary::-webkit-details-marker{display:none}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield}input[type=time]::-webkit-calendar-picker-indicator{background:0 0}details summary::-webkit-details-marker,input[type=date]::-webkit-calendar-picker-indicator,input[type=datetime-local]::-webkit-calendar-picker-indicator,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration{display:none}.stepper-button[disabled] sd-3-22-2-icon{--tw-text-opacity:1;color:rgb(var(--sd-color-neutral-500,174 174 174) / var(--tw-text-opacity))}`
|
|
255
288
|
];
|
|
256
289
|
__decorateClass([
|
|
257
290
|
query("#input")
|
|
@@ -308,8 +341,8 @@ __decorateClass([
|
|
|
308
341
|
property({ attribute: "password-visible", type: Boolean })
|
|
309
342
|
], SdInput.prototype, "passwordVisible", 2);
|
|
310
343
|
__decorateClass([
|
|
311
|
-
property({ attribute: "
|
|
312
|
-
], SdInput.prototype, "
|
|
344
|
+
property({ attribute: "spin-buttons", type: Boolean })
|
|
345
|
+
], SdInput.prototype, "spinButtons", 2);
|
|
313
346
|
__decorateClass([
|
|
314
347
|
property({ type: Number })
|
|
315
348
|
], SdInput.prototype, "minlength", 2);
|
|
@@ -378,7 +411,7 @@ __decorateClass([
|
|
|
378
411
|
watch("value", { waitUntilFirstUpdate: true })
|
|
379
412
|
], SdInput.prototype, "handleValueChange", 1);
|
|
380
413
|
SdInput = __decorateClass([
|
|
381
|
-
customElement("sd-3-22-
|
|
414
|
+
customElement("sd-3-22-2-input")
|
|
382
415
|
], SdInput);
|
|
383
416
|
export {
|
|
384
417
|
SdInput as default
|
|
@@ -76,7 +76,7 @@ let SdLink = class extends SolidElement {
|
|
|
76
76
|
};
|
|
77
77
|
SdLink.styles = [
|
|
78
78
|
SolidElement.styles,
|
|
79
|
-
css`::slotted(sd-3-22-
|
|
79
|
+
css`::slotted(sd-3-22-2-icon){font-size:1.25em;margin-bottom:-.25em}:host([size=sm][standalone]) ::slotted(sd-3-22-2-icon){font-size:var(--sd-font-size-base,1rem)}:host([size=lg][standalone]) ::slotted(sd-3-22-2-icon){font-size:var(--sd-font-size-xl,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-3-22-
|
|
103
|
+
customElement("sd-3-22-2-link")
|
|
104
104
|
], SdLink);
|
|
105
105
|
export {
|
|
106
106
|
SdLink as default
|
|
@@ -45,7 +45,7 @@ let SdMapMarker = class extends SolidElement {
|
|
|
45
45
|
return html`<${tag} part="base" class="${cx(
|
|
46
46
|
"flex justify-center",
|
|
47
47
|
!this.notInteractive && "focus:outline focus:outline-2 focus:outline-primary focus:outline-offset-2"
|
|
48
|
-
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" aria-labelledby="content"><div part="marker" class="${cx(
|
|
48
|
+
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" @blur="${this.handleBlur}" @focus="${this.handleFocus}" role="${ifDefined(this.notInteractive || isLink ? void 0 : "button")}" aria-labelledby="${ifDefined(!this.notInteractive ? "content" : void 0)}"><div part="marker" class="${cx(
|
|
49
49
|
"inline-flex",
|
|
50
50
|
this.animated && (this.variant === "main" || this.variant === "place") && "animate-bounce-once",
|
|
51
51
|
this.variant === "cluster" && this.state === "hover" && "scale-110 fill-primary-500",
|
|
@@ -89,7 +89,7 @@ __decorateClass([
|
|
|
89
89
|
property()
|
|
90
90
|
], SdMapMarker.prototype, "target", 2);
|
|
91
91
|
SdMapMarker = __decorateClass([
|
|
92
|
-
customElement("sd-3-22-
|
|
92
|
+
customElement("sd-3-22-2-map-marker")
|
|
93
93
|
], SdMapMarker);
|
|
94
94
|
export {
|
|
95
95
|
SdMapMarker as default
|
|
@@ -115,16 +115,16 @@ let SdNavigationItem = class extends SolidElement {
|
|
|
115
115
|
isAccordion ? "grow" : "w-full",
|
|
116
116
|
slots["description"] || this.separated ? "pb-1" : horizontalPaddingBottom,
|
|
117
117
|
this.calculatePaddingX
|
|
118
|
-
)}">${this.divider && this.vertical ? html`<sd-3-22-
|
|
118
|
+
)}">${this.divider && this.vertical ? html`<sd-3-22-2-divider part="divider" class="${cx("w-full transition-all absolute -top-0.25 left-0", this.calculatePaddingX)}"></sd-3-22-2-divider>` : ""} <span part="content-container" class="inline-flex items-center flex-auto">${this.separated ? html`<a class="${cx(
|
|
119
119
|
"mr-4 w-full inline-flex items-center pl-4 cursor-pointer relative focus-visible:focus-outline hover:bg-neutral-200 group transition-all min-h-[48px]",
|
|
120
120
|
!slots["description"] && "py-4"
|
|
121
|
-
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-3-22-
|
|
121
|
+
)}" href="${ifDefined(isLink ? this.href : void 0)}" target="${ifDefined(isLink ? this.target : void 0)}" download="${ifDefined(isLink ? this.download : void 0)}"><slot part="content" class="inline"></slot></a>` : html`<slot part="content" class="inline"></slot>`} </span>${(this.chevron || slots["children"]) && this.vertical ? this.separated ? html`<button type="button" title="toggle-details" class="sd-interactive sd-interactive--reset" @click="${this.handleClickSummary}"><sd-3-22-2-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
122
122
|
"mr-4 h-6 w-6 transition-all",
|
|
123
123
|
isAccordion || this.separated ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
124
|
-
)}"></sd-3-22-
|
|
124
|
+
)}"></sd-3-22-2-icon></button>` : html`<sd-3-22-2-icon name="chevron-down" part="chevron" library="system" color="currentColor" class="${cx(
|
|
125
125
|
"h-6 w-6 ml-2 transition-all",
|
|
126
126
|
isAccordion ? this.open ? "rotate-180" : "rotate-0" : "rotate-[270deg]"
|
|
127
|
-
)}"></sd-3-22-
|
|
127
|
+
)}"></sd-3-22-2-icon>` : ""} </span>${slots["description"] && this.vertical ? html`<slot name="description" part="description" class="${cx(
|
|
128
128
|
"inline-block text-sm text-left text-black",
|
|
129
129
|
isAccordion || this.separated ? "grow" : "w-full",
|
|
130
130
|
this.separated ? "px-4" : this.calculatePaddingX,
|
|
@@ -185,7 +185,7 @@ __decorateClass([
|
|
|
185
185
|
property({ type: Boolean, reflect: true })
|
|
186
186
|
], SdNavigationItem.prototype, "separated", 2);
|
|
187
187
|
SdNavigationItem = __decorateClass([
|
|
188
|
-
customElement("sd-3-22-
|
|
188
|
+
customElement("sd-3-22-2-navigation-item")
|
|
189
189
|
], SdNavigationItem);
|
|
190
190
|
export {
|
|
191
191
|
SdNavigationItem as default
|
|
@@ -128,7 +128,7 @@ let SdNotification = class extends SolidElement {
|
|
|
128
128
|
() => {
|
|
129
129
|
toastStack.removeChild(this);
|
|
130
130
|
resolve();
|
|
131
|
-
if (toastStack.querySelector("sd-3-22-
|
|
131
|
+
if (toastStack.querySelector("sd-3-22-2-notification") === null) {
|
|
132
132
|
toastStack.remove();
|
|
133
133
|
}
|
|
134
134
|
},
|
|
@@ -145,15 +145,15 @@ let SdNotification = class extends SolidElement {
|
|
|
145
145
|
warning: "bg-warning",
|
|
146
146
|
error: "bg-error"
|
|
147
147
|
}[this.variant]
|
|
148
|
-
)}"><sd-3-22-
|
|
148
|
+
)}"><sd-3-22-2-icon name="${{
|
|
149
149
|
info: "info-circle",
|
|
150
150
|
success: "confirm-circle",
|
|
151
151
|
warning: "exclamation-circle",
|
|
152
152
|
error: "warning"
|
|
153
|
-
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-3-22-
|
|
153
|
+
}[this.variant] || ""}" library="system" class="h-6 w-6 text-white"></sd-3-22-2-icon></slot><div part="content" class="${cx(
|
|
154
154
|
"h-full w-full p-1 gap-2 flex items-center justify-stretch bg-white",
|
|
155
155
|
"border-solid border-[1px] border-l-0 border-neutral-400"
|
|
156
|
-
)}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable ? html`<sd-3-22-
|
|
156
|
+
)}"><slot part="message" class="block w-full pl-3 py-2" aria-live="polite"></slot>${this.closable ? html`<sd-3-22-2-button size="md" variant="tertiary" part="close-button" class="ml-auto flex flex-[0_0_auto] items-stretch" @click="${this.handleCloseClick}"><sd-3-22-2-icon label="${this.localize.term("close")}" name="close" library="system" color="currentColor"></sd-3-22-2-icon></sd-3-22-2-button>` : ""}</div>${this.durationIndicator ? html`<div part="duration-indicator__elapsed" id="duration-indicator__elapsed" style="${`animation-duration: ${this.duration}ms`}" class="${cx(`absolute w-0 h-[2px] bottom-0 bg-primary z-10 animate-grow`)}"></div><div part="duration-indicator__total" class="w-full h-[2px] bottom-0 absolute bg-neutral-400"></div>` : ""}</div>`;
|
|
157
157
|
}
|
|
158
158
|
};
|
|
159
159
|
SdNotification.styles = [
|
|
@@ -189,7 +189,7 @@ __decorateClass([
|
|
|
189
189
|
watch("duration")
|
|
190
190
|
], SdNotification.prototype, "handleDurationChange", 1);
|
|
191
191
|
SdNotification = __decorateClass([
|
|
192
|
-
customElement("sd-3-22-
|
|
192
|
+
customElement("sd-3-22-2-notification")
|
|
193
193
|
], SdNotification);
|
|
194
194
|
setDefaultAnimation("notification.show", {
|
|
195
195
|
keyframes: [
|
|
@@ -91,7 +91,7 @@ let SdOption = class extends SolidElement {
|
|
|
91
91
|
)}"></span> ${this.checkbox ? html`<span id="control" part="control ${this.selected ? " control--checked" : "control--unchecked"}" class="${cx(
|
|
92
92
|
"relative flex flex-shrink-0 items-center justify-center border rounded-sm h-4 w-4 mr-2",
|
|
93
93
|
this.disabled ? "border-neutral-500" : this.selected ? "bg-accent border-accent" : "border-neutral-800"
|
|
94
|
-
)}">${this.selected ? html`<sd-3-22-
|
|
94
|
+
)}">${this.selected ? html`<sd-3-22-2-icon part="checked-icon" class="text-white w-3 h-3" library="system" name="status-check"></sd-3-22-2-icon>` : ""}</span>` : ""} ${slots["left"] ? html`<slot name="left" part="left" class="inline-flex mr-2"></slot>` : ""}<slot part="label" class="inline-block flex-grow" @slotchange="${this.handleDefaultSlotChange}"></slot>${slots["right"] ? html`<slot name="right" part="right" class="inline-flex ml-2"></slot>` : ""}</div>`;
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
SdOption.styles = [
|
|
@@ -133,7 +133,7 @@ __decorateClass([
|
|
|
133
133
|
watch("value")
|
|
134
134
|
], SdOption.prototype, "handleValueChange", 1);
|
|
135
135
|
SdOption = __decorateClass([
|
|
136
|
-
customElement("sd-3-22-
|
|
136
|
+
customElement("sd-3-22-2-option")
|
|
137
137
|
], SdOption);
|
|
138
138
|
export {
|
|
139
139
|
SdOption as default
|
|
@@ -328,7 +328,7 @@ __decorateClass([
|
|
|
328
328
|
property({ attribute: "auto-size-padding", type: Number })
|
|
329
329
|
], SdPopup.prototype, "autoSizePadding", 2);
|
|
330
330
|
SdPopup = __decorateClass([
|
|
331
|
-
customElement("sd-3-22-
|
|
331
|
+
customElement("sd-3-22-2-popup")
|
|
332
332
|
], SdPopup);
|
|
333
333
|
export {
|
|
334
334
|
SdPopup as default
|