@solid-design-system/components 3.17.4 → 3.17.6
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/components/es/badge.js +1 -1
- package/dist/components/es/checkbox-group.js +1 -1
- package/dist/components/es/checkbox.js +1 -1
- package/dist/components/es/input.js +1 -1
- package/dist/components/es/link.js +1 -1
- package/dist/components/es/navigation-item.js +1 -1
- package/dist/components/es/notification.js +1 -1
- package/dist/components/es/radio-button.js +1 -1
- package/dist/components/es/radio-group.js +1 -1
- package/dist/components/es/radio.js +1 -1
- package/dist/components/es/scrollable.js +1 -1
- package/dist/components/es/select.js +3 -3
- package/dist/components/es/switch.js +1 -1
- package/dist/components/es/tab.js +1 -1
- package/dist/components/es/textarea.js +1 -1
- package/dist/components/es/tooltip.js +2 -2
- package/dist/components/umd/solid-components.js +11 -11
- package/dist/custom-elements.json +1 -1
- package/dist/package/components/badge/badge.d.ts +1 -1
- package/dist/package/components/badge/badge.js +3 -3
- package/dist/package/components/checkbox/checkbox.js +1 -1
- package/dist/package/components/checkbox-group/checkbox-group.d.ts +1 -1
- package/dist/package/components/checkbox-group/checkbox-group.js +4 -4
- package/dist/package/components/input/input.js +1 -11
- package/dist/package/components/link/link.d.ts +1 -1
- package/dist/package/components/link/link.js +4 -4
- package/dist/package/components/navigation-item/navigation-item.d.ts +3 -3
- package/dist/package/components/navigation-item/navigation-item.js +12 -12
- package/dist/package/components/notification/notification.d.ts +2 -2
- package/dist/package/components/notification/notification.js +8 -8
- package/dist/package/components/radio/radio.d.ts +1 -1
- package/dist/package/components/radio/radio.js +5 -5
- package/dist/package/components/radio-button/radio-button.d.ts +2 -2
- package/dist/package/components/radio-button/radio-button.js +8 -8
- package/dist/package/components/radio-group/radio-group.d.ts +3 -3
- package/dist/package/components/radio-group/radio-group.js +12 -12
- package/dist/package/components/scrollable/scrollable.d.ts +2 -2
- package/dist/package/components/scrollable/scrollable.js +7 -7
- package/dist/package/components/select/select.d.ts +2 -2
- package/dist/package/components/select/select.js +10 -22
- package/dist/package/components/switch/switch.js +1 -1
- package/dist/package/components/tab/tab.d.ts +1 -1
- package/dist/package/components/tab/tab.js +4 -4
- package/dist/package/components/textarea/textarea.js +2 -11
- package/dist/package/components/tooltip/tooltip.d.ts +1 -1
- package/dist/package/components/tooltip/tooltip.js +4 -4
- 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/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 +1 -1
- package/dist/versioned-components/es/link.js +1 -1
- 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/badge/badge.d.ts +2 -2
- package/dist/versioned-package/components/badge/badge.js +4 -4
- 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 +4 -4
- package/dist/versioned-package/components/checkbox-group/checkbox-group.d.ts +2 -2
- package/dist/versioned-package/components/checkbox-group/checkbox-group.js +9 -9
- 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 +1 -1
- package/dist/versioned-package/components/input/input.js +3 -13
- package/dist/versioned-package/components/link/link.d.ts +2 -2
- package/dist/versioned-package/components/link/link.js +6 -6
- package/dist/versioned-package/components/map-marker/map-marker.d.ts +1 -1
- package/dist/versioned-package/components/map-marker/map-marker.js +1 -1
- package/dist/versioned-package/components/navigation-item/navigation-item.d.ts +4 -4
- package/dist/versioned-package/components/navigation-item/navigation-item.js +17 -17
- package/dist/versioned-package/components/notification/notification.d.ts +3 -3
- package/dist/versioned-package/components/notification/notification.js +13 -13
- 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 +2 -2
- package/dist/versioned-package/components/radio/radio.js +7 -7
- package/dist/versioned-package/components/radio-button/radio-button.d.ts +3 -3
- package/dist/versioned-package/components/radio-button/radio-button.js +10 -10
- package/dist/versioned-package/components/radio-group/radio-group.d.ts +5 -5
- package/dist/versioned-package/components/radio-group/radio-group.js +25 -25
- package/dist/versioned-package/components/scrollable/scrollable.d.ts +3 -3
- package/dist/versioned-package/components/scrollable/scrollable.js +10 -10
- package/dist/versioned-package/components/select/select.d.ts +6 -6
- package/dist/versioned-package/components/select/select.js +34 -46
- 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 +5 -5
- 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 +2 -2
- package/dist/versioned-package/components/tab/tab.d.ts +2 -2
- package/dist/versioned-package/components/tab/tab.js +6 -6
- 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 +4 -13
- package/dist/versioned-package/components/tooltip/tooltip.d.ts +2 -2
- package/dist/versioned-package/components/tooltip/tooltip.js +9 -9
- 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 +3 -3
- package/dist/versioned-package/styles/headline/headline.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 +344 -344
- package/dist/web-types.json +546 -546
- package/package.json +3 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
import SolidElement from '../../internal/solid-element';
|
2
2
|
export default class SdBadge extends SolidElement {
|
3
|
-
variant: 'default' | 'success' | 'error';
|
4
3
|
size: 'lg' | 'md' | 'sm';
|
4
|
+
variant: 'default' | 'success' | 'error';
|
5
5
|
inverted: boolean;
|
6
6
|
render(): import("lit-html").TemplateResult<1>;
|
7
7
|
static styles: import("lit").CSSResultGroup[];
|
@@ -16,8 +16,8 @@ var __decorateClass = (decorators, target, key, kind) => {
|
|
16
16
|
let SdBadge = class extends SolidElement {
|
17
17
|
constructor() {
|
18
18
|
super(...arguments);
|
19
|
-
this.variant = "default";
|
20
19
|
this.size = "lg";
|
20
|
+
this.variant = "default";
|
21
21
|
this.inverted = false;
|
22
22
|
}
|
23
23
|
render() {
|
@@ -44,10 +44,10 @@ SdBadge.styles = [
|
|
44
44
|
];
|
45
45
|
__decorateClass([
|
46
46
|
property({ reflect: true })
|
47
|
-
], SdBadge.prototype, "
|
47
|
+
], SdBadge.prototype, "size", 2);
|
48
48
|
__decorateClass([
|
49
49
|
property({ reflect: true })
|
50
|
-
], SdBadge.prototype, "
|
50
|
+
], SdBadge.prototype, "variant", 2);
|
51
51
|
__decorateClass([
|
52
52
|
property({ type: Boolean, reflect: true })
|
53
53
|
], SdBadge.prototype, "inverted", 2);
|
@@ -141,7 +141,7 @@ let SdCheckbox = class extends SolidElement {
|
|
141
141
|
};
|
142
142
|
SdCheckbox.styles = [
|
143
143
|
SolidElement.styles,
|
144
|
-
css`:host{display:block}:host(:focus-visible){outline-width:0}:host([required]) #label::after{content:' *'}`
|
144
|
+
css`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline-width:0}:host([required]) #label::after{content:' *'}`
|
145
145
|
];
|
146
146
|
__decorateClass([
|
147
147
|
query('input[type="checkbox"]')
|
@@ -2,9 +2,9 @@ import '../icon/icon';
|
|
2
2
|
import SolidElement from '../../internal/solid-element';
|
3
3
|
export default class SdCheckboxGroup extends SolidElement {
|
4
4
|
private readonly hasSlotController;
|
5
|
-
label: string;
|
6
5
|
size: 'lg' | 'sm';
|
7
6
|
orientation: 'horizontal' | 'vertical';
|
7
|
+
label: string;
|
8
8
|
private getAllCheckboxes;
|
9
9
|
private syncCheckboxElements;
|
10
10
|
private syncCheckboxes;
|
@@ -21,9 +21,9 @@ let SdCheckboxGroup = class extends SolidElement {
|
|
21
21
|
constructor() {
|
22
22
|
super(...arguments);
|
23
23
|
this.hasSlotController = new HasSlotController(this, "label");
|
24
|
-
this.label = "";
|
25
24
|
this.size = "lg";
|
26
25
|
this.orientation = "vertical";
|
26
|
+
this.label = "";
|
27
27
|
}
|
28
28
|
getAllCheckboxes() {
|
29
29
|
return [...this.querySelectorAll("sd-checkbox")];
|
@@ -78,15 +78,15 @@ SdCheckboxGroup.styles = [
|
|
78
78
|
SolidElement.styles,
|
79
79
|
css`:host{display:block}:host([orientation=vertical]) ::slotted(sd-checkbox){margin-bottom:var(--sd-spacing-2,.5rem);display:flex}:host([orientation=vertical]) ::slotted(sd-checkbox:last-of-type){margin-bottom:var(--sd-spacing-0,0)}:host([orientation=horizontal]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-6,1.5rem)}:host([orientation=horizontal]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox){margin-right:var(--sd-spacing-4,1rem)}:host([orientation=horizontal]):host([size=sm]) ::slotted(sd-checkbox:last-of-type){margin-right:var(--sd-spacing-0,0)}`
|
80
80
|
];
|
81
|
-
__decorateClass([
|
82
|
-
property()
|
83
|
-
], SdCheckboxGroup.prototype, "label", 2);
|
84
81
|
__decorateClass([
|
85
82
|
property({ reflect: true })
|
86
83
|
], SdCheckboxGroup.prototype, "size", 2);
|
87
84
|
__decorateClass([
|
88
85
|
property({ reflect: true })
|
89
86
|
], SdCheckboxGroup.prototype, "orientation", 2);
|
87
|
+
__decorateClass([
|
88
|
+
property()
|
89
|
+
], SdCheckboxGroup.prototype, "label", 2);
|
90
90
|
__decorateClass([
|
91
91
|
watch("size", { waitUntilFirstUpdate: true })
|
92
92
|
], SdCheckboxGroup.prototype, "handleSizeChange", 1);
|
@@ -216,16 +216,6 @@ let SdInput = class extends SolidElement {
|
|
216
216
|
const hasClearIcon = this.clearable && !this.readonly && (typeof this.value === "number" || this.value.length > 0);
|
217
217
|
const inputState = this.disabled ? "disabled" : this.readonly ? "readonly" : this.hasFocus && this.showInvalidStyle ? "activeInvalid" : this.hasFocus && this.styleOnValid && this.showValidStyle ? "activeValid" : this.hasFocus ? "active" : this.showInvalidStyle ? "invalid" : this.styleOnValid && this.showValidStyle ? "valid" : "default";
|
218
218
|
const textSize = this.size === "sm" ? "text-sm" : "text-base";
|
219
|
-
const textColor = {
|
220
|
-
disabled: "text-neutral-500",
|
221
|
-
readonly: "text-black",
|
222
|
-
activeInvalid: "text-error",
|
223
|
-
activeValid: "text-black",
|
224
|
-
active: "text-black",
|
225
|
-
invalid: "text-error",
|
226
|
-
valid: "text-black",
|
227
|
-
default: "text-black"
|
228
|
-
}[inputState];
|
229
219
|
const borderColor = {
|
230
220
|
disabled: "border-neutral-500",
|
231
221
|
readonly: "border-neutral-800",
|
@@ -250,7 +240,7 @@ let SdInput = class extends SolidElement {
|
|
250
240
|
// States
|
251
241
|
!this.disabled && !this.readonly ? "hover:bg-neutral-200" : "",
|
252
242
|
this.readonly ? "bg-neutral-100" : "bg-white",
|
253
|
-
|
243
|
+
inputState === "disabled" ? "text-neutral-500" : "text-black"
|
254
244
|
)}">${slots["left"] ? html`<slot name="left" part="left" class="${cx("inline-flex", this.size === "sm" ? "mr-1" : "mr-2", iconColor, iconSize)}"></slot>` : ""} <input part="input" id="input" class="${cx(
|
255
245
|
"min-w-0 flex-grow focus:outline-none bg-transparent placeholder-neutral-700",
|
256
246
|
this.size === "sm" ? "h-6" : "h-8",
|
@@ -2,9 +2,9 @@ import SolidElement from '../../internal/solid-element';
|
|
2
2
|
export default class SdLink extends SolidElement {
|
3
3
|
private readonly hasSlotController;
|
4
4
|
button: HTMLButtonElement | HTMLLinkElement;
|
5
|
+
standalone: boolean;
|
5
6
|
size: 'inherit' | 'lg' | 'sm';
|
6
7
|
inverted: boolean;
|
7
|
-
standalone: boolean;
|
8
8
|
href: string;
|
9
9
|
target: '_blank' | '_parent' | '_self' | '_top';
|
10
10
|
download?: string;
|
@@ -19,9 +19,9 @@ let SdLink = class extends SolidElement {
|
|
19
19
|
constructor() {
|
20
20
|
super(...arguments);
|
21
21
|
this.hasSlotController = new HasSlotController(this, "[default]", "icon-left", "icon-right");
|
22
|
+
this.standalone = false;
|
22
23
|
this.size = "inherit";
|
23
24
|
this.inverted = false;
|
24
|
-
this.standalone = false;
|
25
25
|
this.href = "";
|
26
26
|
}
|
27
27
|
handleBlur() {
|
@@ -81,15 +81,15 @@ SdLink.styles = [
|
|
81
81
|
__decorateClass([
|
82
82
|
query("a")
|
83
83
|
], SdLink.prototype, "button", 2);
|
84
|
+
__decorateClass([
|
85
|
+
property({ type: Boolean, reflect: true })
|
86
|
+
], SdLink.prototype, "standalone", 2);
|
84
87
|
__decorateClass([
|
85
88
|
property({ reflect: true })
|
86
89
|
], SdLink.prototype, "size", 2);
|
87
90
|
__decorateClass([
|
88
91
|
property({ type: Boolean, reflect: true })
|
89
92
|
], SdLink.prototype, "inverted", 2);
|
90
|
-
__decorateClass([
|
91
|
-
property({ type: Boolean, reflect: true })
|
92
|
-
], SdLink.prototype, "standalone", 2);
|
93
93
|
__decorateClass([
|
94
94
|
property()
|
95
95
|
], SdLink.prototype, "href", 2);
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import SolidElement from '../../internal/solid-element';
|
2
2
|
export default class SdNavigationItem extends SolidElement {
|
3
3
|
private readonly hasSlotController;
|
4
|
+
vertical: boolean;
|
5
|
+
size: 'base' | 'lg' | 'sm';
|
4
6
|
href: string;
|
5
7
|
target: '_blank' | '_parent' | '_self' | '_top';
|
6
8
|
download?: string;
|
7
9
|
current: boolean;
|
8
10
|
disabled: boolean;
|
9
|
-
size: 'base' | 'lg' | 'sm';
|
10
|
-
vertical: boolean;
|
11
11
|
chevron: boolean;
|
12
|
-
indented: boolean;
|
13
12
|
relaxed: boolean;
|
14
13
|
divider: boolean;
|
14
|
+
indented: boolean;
|
15
15
|
open: boolean;
|
16
16
|
separated: boolean;
|
17
17
|
private get isButton();
|
@@ -22,14 +22,14 @@ let SdNavigationItem = class extends SolidElement {
|
|
22
22
|
constructor() {
|
23
23
|
super(...arguments);
|
24
24
|
this.hasSlotController = new HasSlotController(this, "[default]", "description", "children");
|
25
|
+
this.vertical = false;
|
26
|
+
this.size = "base";
|
25
27
|
this.current = false;
|
26
28
|
this.disabled = false;
|
27
|
-
this.size = "base";
|
28
|
-
this.vertical = false;
|
29
29
|
this.chevron = false;
|
30
|
-
this.indented = false;
|
31
30
|
this.relaxed = false;
|
32
31
|
this.divider = false;
|
32
|
+
this.indented = false;
|
33
33
|
this.open = false;
|
34
34
|
this.separated = false;
|
35
35
|
}
|
@@ -145,6 +145,12 @@ SdNavigationItem.styles = [
|
|
145
145
|
unsafeCSS(InteractiveStyles),
|
146
146
|
css`:host{position:relative;box-sizing:border-box;display:inline-block}:host([vertical]){display:block}details summary::-webkit-details-marker{display:none}`
|
147
147
|
];
|
148
|
+
__decorateClass([
|
149
|
+
property({ type: Boolean, reflect: true })
|
150
|
+
], SdNavigationItem.prototype, "vertical", 2);
|
151
|
+
__decorateClass([
|
152
|
+
property({ reflect: true })
|
153
|
+
], SdNavigationItem.prototype, "size", 2);
|
148
154
|
__decorateClass([
|
149
155
|
property({ reflect: true })
|
150
156
|
], SdNavigationItem.prototype, "href", 2);
|
@@ -160,24 +166,18 @@ __decorateClass([
|
|
160
166
|
__decorateClass([
|
161
167
|
property({ type: Boolean, reflect: true })
|
162
168
|
], SdNavigationItem.prototype, "disabled", 2);
|
163
|
-
__decorateClass([
|
164
|
-
property({ reflect: true })
|
165
|
-
], SdNavigationItem.prototype, "size", 2);
|
166
|
-
__decorateClass([
|
167
|
-
property({ type: Boolean, reflect: true })
|
168
|
-
], SdNavigationItem.prototype, "vertical", 2);
|
169
169
|
__decorateClass([
|
170
170
|
property({ type: Boolean, reflect: true })
|
171
171
|
], SdNavigationItem.prototype, "chevron", 2);
|
172
|
-
__decorateClass([
|
173
|
-
property({ type: Boolean, reflect: true })
|
174
|
-
], SdNavigationItem.prototype, "indented", 2);
|
175
172
|
__decorateClass([
|
176
173
|
property({ type: Boolean, reflect: true })
|
177
174
|
], SdNavigationItem.prototype, "relaxed", 2);
|
178
175
|
__decorateClass([
|
179
176
|
property({ type: Boolean, reflect: true })
|
180
177
|
], SdNavigationItem.prototype, "divider", 2);
|
178
|
+
__decorateClass([
|
179
|
+
property({ type: Boolean, reflect: true })
|
180
|
+
], SdNavigationItem.prototype, "indented", 2);
|
181
181
|
__decorateClass([
|
182
182
|
property({ type: Boolean, reflect: true })
|
183
183
|
], SdNavigationItem.prototype, "open", 2);
|
@@ -4,12 +4,12 @@ export default class SdNotification extends SolidElement {
|
|
4
4
|
private autoHideTimeout;
|
5
5
|
localize: LocalizeController;
|
6
6
|
base: HTMLElement;
|
7
|
+
variant: 'info' | 'success' | 'error' | 'warning';
|
7
8
|
open: boolean;
|
8
9
|
closable: boolean;
|
9
|
-
variant: 'info' | 'success' | 'error' | 'warning';
|
10
|
-
toastStack: 'top-right' | 'bottom-center';
|
11
10
|
duration: number;
|
12
11
|
durationIndicator: boolean;
|
12
|
+
toastStack: 'top-right' | 'bottom-center';
|
13
13
|
private remainingDuration;
|
14
14
|
private startTime;
|
15
15
|
firstUpdated(): void;
|
@@ -29,12 +29,12 @@ let SdNotification = class extends SolidElement {
|
|
29
29
|
constructor() {
|
30
30
|
super(...arguments);
|
31
31
|
this.localize = new LocalizeController(this);
|
32
|
+
this.variant = "info";
|
32
33
|
this.open = false;
|
33
34
|
this.closable = false;
|
34
|
-
this.variant = "info";
|
35
|
-
this.toastStack = "top-right";
|
36
35
|
this.duration = Infinity;
|
37
36
|
this.durationIndicator = false;
|
37
|
+
this.toastStack = "top-right";
|
38
38
|
this.remainingDuration = this.duration;
|
39
39
|
this.startTime = Date.now();
|
40
40
|
}
|
@@ -164,24 +164,24 @@ SdNotification.styles = [
|
|
164
164
|
__decorateClass([
|
165
165
|
query('[part~="base"]')
|
166
166
|
], SdNotification.prototype, "base", 2);
|
167
|
+
__decorateClass([
|
168
|
+
property({ reflect: true })
|
169
|
+
], SdNotification.prototype, "variant", 2);
|
167
170
|
__decorateClass([
|
168
171
|
property({ type: Boolean, reflect: true })
|
169
172
|
], SdNotification.prototype, "open", 2);
|
170
173
|
__decorateClass([
|
171
174
|
property({ type: Boolean, reflect: true })
|
172
175
|
], SdNotification.prototype, "closable", 2);
|
173
|
-
__decorateClass([
|
174
|
-
property({ reflect: true })
|
175
|
-
], SdNotification.prototype, "variant", 2);
|
176
|
-
__decorateClass([
|
177
|
-
property({ reflect: true, attribute: "toast-stack" })
|
178
|
-
], SdNotification.prototype, "toastStack", 2);
|
179
176
|
__decorateClass([
|
180
177
|
property({ type: Number })
|
181
178
|
], SdNotification.prototype, "duration", 2);
|
182
179
|
__decorateClass([
|
183
180
|
property({ type: Boolean, reflect: true, attribute: "duration-indicator" })
|
184
181
|
], SdNotification.prototype, "durationIndicator", 2);
|
182
|
+
__decorateClass([
|
183
|
+
property({ reflect: true, attribute: "toast-stack" })
|
184
|
+
], SdNotification.prototype, "toastStack", 2);
|
185
185
|
__decorateClass([
|
186
186
|
watch("open", { waitUntilFirstUpdate: true })
|
187
187
|
], SdNotification.prototype, "handleOpenChange", 1);
|
@@ -4,9 +4,9 @@ export default class SdRadio extends SolidElement {
|
|
4
4
|
checked: boolean;
|
5
5
|
protected hasFocus: boolean;
|
6
6
|
size: 'lg' | 'sm';
|
7
|
-
invalid: boolean;
|
8
7
|
disabled: boolean;
|
9
8
|
value: string;
|
9
|
+
invalid: boolean;
|
10
10
|
connectedCallback(): void;
|
11
11
|
disconnectedCallback(): void;
|
12
12
|
private addEventListeners;
|
@@ -21,8 +21,8 @@ let SdRadio = class extends SolidElement {
|
|
21
21
|
this.checked = false;
|
22
22
|
this.hasFocus = false;
|
23
23
|
this.size = "lg";
|
24
|
-
this.invalid = false;
|
25
24
|
this.disabled = false;
|
25
|
+
this.invalid = false;
|
26
26
|
}
|
27
27
|
connectedCallback() {
|
28
28
|
super.connectedCallback();
|
@@ -93,7 +93,7 @@ let SdRadio = class extends SolidElement {
|
|
93
93
|
};
|
94
94
|
SdRadio.styles = [
|
95
95
|
SolidElement.styles,
|
96
|
-
css`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`
|
96
|
+
css`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host(:focus-visible) [part=control--checked],:host(:focus-visible) [part=control--unchecked]{outline-style:solid;outline-width:2px;outline-offset:2px;outline-color:rgb(var(--sd-color-primary,0 53 142) / 1)}`
|
97
97
|
];
|
98
98
|
__decorateClass([
|
99
99
|
state()
|
@@ -104,15 +104,15 @@ __decorateClass([
|
|
104
104
|
__decorateClass([
|
105
105
|
property({ reflect: true })
|
106
106
|
], SdRadio.prototype, "size", 2);
|
107
|
-
__decorateClass([
|
108
|
-
property({ type: Boolean, reflect: true })
|
109
|
-
], SdRadio.prototype, "invalid", 2);
|
110
107
|
__decorateClass([
|
111
108
|
property({ type: Boolean, reflect: true })
|
112
109
|
], SdRadio.prototype, "disabled", 2);
|
113
110
|
__decorateClass([
|
114
111
|
property()
|
115
112
|
], SdRadio.prototype, "value", 2);
|
113
|
+
__decorateClass([
|
114
|
+
property({ type: Boolean, reflect: true })
|
115
|
+
], SdRadio.prototype, "invalid", 2);
|
116
116
|
__decorateClass([
|
117
117
|
watch("checked")
|
118
118
|
], SdRadio.prototype, "handleCheckedChange", 1);
|
@@ -4,10 +4,10 @@ export default class SdRadioButton extends SolidElement {
|
|
4
4
|
input: HTMLInputElement;
|
5
5
|
hiddenInput: HTMLInputElement;
|
6
6
|
protected hasFocus: boolean;
|
7
|
+
size: 'lg' | 'md' | 'sm';
|
8
|
+
disabled: boolean;
|
7
9
|
checked: boolean;
|
8
10
|
value: string;
|
9
|
-
disabled: boolean;
|
10
|
-
size: 'lg' | 'md' | 'sm';
|
11
11
|
connectedCallback(): void;
|
12
12
|
private handleBlur;
|
13
13
|
private handleClick;
|
@@ -22,9 +22,9 @@ let SdRadioButton = class extends SolidElement {
|
|
22
22
|
super(...arguments);
|
23
23
|
this.hasSlotController = new HasSlotController(this, "[default]", "icon");
|
24
24
|
this.hasFocus = false;
|
25
|
-
this.checked = false;
|
26
|
-
this.disabled = false;
|
27
25
|
this.size = "lg";
|
26
|
+
this.disabled = false;
|
27
|
+
this.checked = false;
|
28
28
|
}
|
29
29
|
connectedCallback() {
|
30
30
|
super.connectedCallback();
|
@@ -94,18 +94,18 @@ __decorateClass([
|
|
94
94
|
__decorateClass([
|
95
95
|
state()
|
96
96
|
], SdRadioButton.prototype, "hasFocus", 2);
|
97
|
+
__decorateClass([
|
98
|
+
property({ reflect: true })
|
99
|
+
], SdRadioButton.prototype, "size", 2);
|
100
|
+
__decorateClass([
|
101
|
+
property({ type: Boolean, reflect: true })
|
102
|
+
], SdRadioButton.prototype, "disabled", 2);
|
97
103
|
__decorateClass([
|
98
104
|
property({ type: Boolean, reflect: true })
|
99
105
|
], SdRadioButton.prototype, "checked", 2);
|
100
106
|
__decorateClass([
|
101
107
|
property()
|
102
108
|
], SdRadioButton.prototype, "value", 2);
|
103
|
-
__decorateClass([
|
104
|
-
property({ type: Boolean, reflect: true })
|
105
|
-
], SdRadioButton.prototype, "disabled", 2);
|
106
|
-
__decorateClass([
|
107
|
-
property({ reflect: true })
|
108
|
-
], SdRadioButton.prototype, "size", 2);
|
109
109
|
__decorateClass([
|
110
110
|
watch("disabled", { waitUntilFirstUpdate: true })
|
111
111
|
], SdRadioButton.prototype, "handleDisabledChange", 1);
|
@@ -16,14 +16,14 @@ export default class SdRadioGroup extends SolidElement implements SolidFormContr
|
|
16
16
|
hasButtonGroup: boolean;
|
17
17
|
defaultValue: string;
|
18
18
|
showInvalidStyle: boolean;
|
19
|
+
size: 'lg' | 'sm';
|
20
|
+
required: boolean;
|
21
|
+
orientation: 'horizontal' | 'vertical';
|
19
22
|
label: string;
|
20
23
|
boldLabel: boolean;
|
21
24
|
name: string;
|
22
25
|
value: string;
|
23
|
-
size: 'lg' | 'sm';
|
24
26
|
form: string;
|
25
|
-
required: boolean;
|
26
|
-
orientation: 'horizontal' | 'vertical';
|
27
27
|
get validity(): ValidityState;
|
28
28
|
get validationMessage(): string;
|
29
29
|
connectedCallback(): void;
|
@@ -28,14 +28,14 @@ let SdRadioGroup = class extends SolidElement {
|
|
28
28
|
this.hasButtonGroup = false;
|
29
29
|
this.defaultValue = "";
|
30
30
|
this.showInvalidStyle = false;
|
31
|
+
this.size = "lg";
|
32
|
+
this.required = false;
|
33
|
+
this.orientation = "vertical";
|
31
34
|
this.label = "";
|
32
35
|
this.boldLabel = false;
|
33
36
|
this.name = "option";
|
34
37
|
this.value = "";
|
35
|
-
this.size = "lg";
|
36
38
|
this.form = "";
|
37
|
-
this.required = false;
|
38
|
-
this.orientation = "vertical";
|
39
39
|
}
|
40
40
|
/** Gets the validity state object */
|
41
41
|
get validity() {
|
@@ -279,6 +279,15 @@ __decorateClass([
|
|
279
279
|
__decorateClass([
|
280
280
|
state()
|
281
281
|
], SdRadioGroup.prototype, "showInvalidStyle", 2);
|
282
|
+
__decorateClass([
|
283
|
+
property({ reflect: true })
|
284
|
+
], SdRadioGroup.prototype, "size", 2);
|
285
|
+
__decorateClass([
|
286
|
+
property({ type: Boolean, reflect: true })
|
287
|
+
], SdRadioGroup.prototype, "required", 2);
|
288
|
+
__decorateClass([
|
289
|
+
property({ reflect: true })
|
290
|
+
], SdRadioGroup.prototype, "orientation", 2);
|
282
291
|
__decorateClass([
|
283
292
|
property()
|
284
293
|
], SdRadioGroup.prototype, "label", 2);
|
@@ -291,18 +300,9 @@ __decorateClass([
|
|
291
300
|
__decorateClass([
|
292
301
|
property({ reflect: true })
|
293
302
|
], SdRadioGroup.prototype, "value", 2);
|
294
|
-
__decorateClass([
|
295
|
-
property({ reflect: true })
|
296
|
-
], SdRadioGroup.prototype, "size", 2);
|
297
303
|
__decorateClass([
|
298
304
|
property({ reflect: true })
|
299
305
|
], SdRadioGroup.prototype, "form", 2);
|
300
|
-
__decorateClass([
|
301
|
-
property({ type: Boolean, reflect: true })
|
302
|
-
], SdRadioGroup.prototype, "required", 2);
|
303
|
-
__decorateClass([
|
304
|
-
property({ reflect: true })
|
305
|
-
], SdRadioGroup.prototype, "orientation", 2);
|
306
306
|
__decorateClass([
|
307
307
|
watch("size", { waitUntilFirstUpdate: true })
|
308
308
|
], SdRadioGroup.prototype, "handleSizeChange", 1);
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import SolidElement from '../../internal/solid-element';
|
2
2
|
export default class SdScrollable extends SolidElement {
|
3
3
|
orientation: 'horizontal' | 'vertical' | 'auto';
|
4
|
-
buttons: boolean;
|
5
|
-
step: number;
|
6
4
|
scrollbars: boolean;
|
5
|
+
buttons: boolean;
|
7
6
|
shadows: boolean;
|
8
7
|
inset: boolean;
|
8
|
+
step: number;
|
9
9
|
private canScroll;
|
10
10
|
private isScrollHorizontalEnabled;
|
11
11
|
private isScrollVerticalEnabled;
|
@@ -19,11 +19,11 @@ let SdScrollable = class extends SolidElement {
|
|
19
19
|
constructor() {
|
20
20
|
super(...arguments);
|
21
21
|
this.orientation = "horizontal";
|
22
|
-
this.buttons = false;
|
23
|
-
this.step = 150;
|
24
22
|
this.scrollbars = false;
|
23
|
+
this.buttons = false;
|
25
24
|
this.shadows = false;
|
26
25
|
this.inset = false;
|
26
|
+
this.step = 150;
|
27
27
|
this.canScroll = {
|
28
28
|
left: false,
|
29
29
|
right: false,
|
@@ -125,19 +125,19 @@ __decorateClass([
|
|
125
125
|
], SdScrollable.prototype, "orientation", 2);
|
126
126
|
__decorateClass([
|
127
127
|
property({ type: Boolean, reflect: true })
|
128
|
-
], SdScrollable.prototype, "
|
129
|
-
__decorateClass([
|
130
|
-
property({ type: Number, reflect: true })
|
131
|
-
], SdScrollable.prototype, "step", 2);
|
128
|
+
], SdScrollable.prototype, "scrollbars", 2);
|
132
129
|
__decorateClass([
|
133
130
|
property({ type: Boolean, reflect: true })
|
134
|
-
], SdScrollable.prototype, "
|
131
|
+
], SdScrollable.prototype, "buttons", 2);
|
135
132
|
__decorateClass([
|
136
133
|
property({ type: Boolean, reflect: true })
|
137
134
|
], SdScrollable.prototype, "shadows", 2);
|
138
135
|
__decorateClass([
|
139
136
|
property({ type: Boolean, reflect: true })
|
140
137
|
], SdScrollable.prototype, "inset", 2);
|
138
|
+
__decorateClass([
|
139
|
+
property({ type: Number, reflect: true })
|
140
|
+
], SdScrollable.prototype, "step", 2);
|
141
141
|
__decorateClass([
|
142
142
|
state()
|
143
143
|
], SdScrollable.prototype, "canScroll", 2);
|
@@ -34,13 +34,13 @@ export default class SdSelect extends SolidElement implements SolidFormControl {
|
|
34
34
|
defaultValue: string | string[];
|
35
35
|
open: boolean;
|
36
36
|
size: 'lg' | 'md' | 'sm';
|
37
|
+
placement: 'top' | 'bottom';
|
37
38
|
label: string;
|
38
39
|
placeholder: string;
|
40
|
+
disabled: boolean;
|
39
41
|
helpText: string;
|
40
|
-
placement: 'top' | 'bottom';
|
41
42
|
currentPlacement: "top" | "bottom";
|
42
43
|
clearable: boolean;
|
43
|
-
disabled: boolean;
|
44
44
|
multiple: boolean;
|
45
45
|
useTags: boolean;
|
46
46
|
maxOptionsVisible: number;
|
@@ -45,13 +45,13 @@ let SdSelect = class extends SolidElement {
|
|
45
45
|
this.defaultValue = "";
|
46
46
|
this.open = false;
|
47
47
|
this.size = "lg";
|
48
|
+
this.placement = "bottom";
|
48
49
|
this.label = "";
|
49
50
|
this.placeholder = this.localize.term("selectDefaultPlaceholder");
|
51
|
+
this.disabled = false;
|
50
52
|
this.helpText = "";
|
51
|
-
this.placement = "bottom";
|
52
53
|
this.currentPlacement = this.placement;
|
53
54
|
this.clearable = false;
|
54
|
-
this.disabled = false;
|
55
55
|
this.multiple = false;
|
56
56
|
this.useTags = false;
|
57
57
|
this.maxOptionsVisible = 3;
|
@@ -497,19 +497,7 @@ let SdSelect = class extends SolidElement {
|
|
497
497
|
cursorStyles,
|
498
498
|
this.size === "sm" ? "text-sm" : "text-base",
|
499
499
|
this.open && "z-50"
|
500
|
-
)}"><label id="label" part="form-control-label" class="${hasLabel && "inline-block mb-2"}" aria-hidden="${hasLabel ? "false" : "true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${cx(
|
501
|
-
"relative w-full bg-white",
|
502
|
-
{
|
503
|
-
disabled: "text-neutral-500",
|
504
|
-
readonly: "text-black",
|
505
|
-
activeInvalid: "text-error",
|
506
|
-
activeValid: "text-success",
|
507
|
-
active: "text-black",
|
508
|
-
invalid: "text-error",
|
509
|
-
valid: "text-success",
|
510
|
-
default: "text-black"
|
511
|
-
}[selectState]
|
512
|
-
)}"><div part="border" class="${cx(
|
500
|
+
)}"><label id="label" part="form-control-label" class="${hasLabel && "inline-block mb-2"}" aria-hidden="${hasLabel ? "false" : "true"}" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot></label><div part="form-control-input" class="${cx("relative w-full bg-white", selectState === "disabled" ? "text-neutral-500" : "text-black")}"><div part="border" class="${cx(
|
513
501
|
"absolute top-0 w-full h-full pointer-events-none border rounded-default",
|
514
502
|
this.hasHover && "bg-neutral-200",
|
515
503
|
{
|
@@ -540,7 +528,7 @@ let SdSelect = class extends SolidElement {
|
|
540
528
|
"appearance-none outline-none flex-grow bg-transparent w-full",
|
541
529
|
cursorStyles,
|
542
530
|
this.multiple && this.useTags && this.value.length > 0 ? "hidden" : ""
|
543
|
-
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""} <input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("select__clear flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize)}" library="system" name="risk"></sd-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-icon part="valid-icon" class="${cx("flex-shrink-0", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
531
|
+
)}" type="text" placeholder="${this.placeholder}" .disabled="${this.disabled}" .value="${this.displayLabel}" autocomplete="off" spellcheck="false" autocapitalize="off" readonly="readonly" aria-controls="listbox" aria-expanded="${this.open ? "true" : "false"}" aria-haspopup="listbox" aria-labelledby="label" aria-disabled="${this.disabled ? "true" : "false"}" aria-describedby="help-text" role="combobox" tabindex="0" @focus="${this.handleFocus}" @blur="${this.handleBlur}"> ${this.multiple && this.useTags ? html`<div part="tags" class="flex-grow flex flex-wrap items-center gap-1">${this.tags}</div>` : ""} <input class="${cx("value-input absolute top-0 left-0 w-full h-full opacity-0 -z-10", cursorStyles)}" type="text" ?disabled="${this.disabled}" ?required="${this.required}" .value="${Array.isArray(this.value) ? this.value.join(", ") : this.value}" tabindex="-1" aria-hidden="true" @focus="${() => this.focus()}" @invalid="${this.handleInvalid}"> ${hasClearIcon ? html`<button part="clear-button" class="${cx("select__clear flex justify-center", iconMarginLeft)}" type="button" aria-label="${this.localize.term("clearEntry")}" @mousedown="${this.handleClearMouseDown}" @click="${this.handleClearClick}" tabindex="-1"><slot name="clear-icon"><sd-icon class="${cx("text-icon-fill-neutral-800", iconSize)}" library="system" name="closing-round"></sd-icon></slot></button>` : ""} ${this.showInvalidStyle ? html`<sd-icon part="invalid-icon" class="${cx(iconMarginLeft, iconSize, "text-error")}" library="system" name="risk"></sd-icon>` : ""} ${this.styleOnValid && this.showValidStyle ? html`<sd-icon part="valid-icon" class="${cx("flex-shrink-0 text-success", iconMarginLeft, iconSize)}" library="system" name="status-check"></sd-icon>` : ""}<slot name="expand-icon" part="expand-icon" class="${cx(
|
544
532
|
"inline-flex ml-2 transition-all",
|
545
533
|
this.open ? "rotate-180" : "rotate-0",
|
546
534
|
this.disabled ? "text-neutral-500" : "text-primary",
|
@@ -613,27 +601,27 @@ __decorateClass([
|
|
613
601
|
__decorateClass([
|
614
602
|
property({ reflect: true })
|
615
603
|
], SdSelect.prototype, "size", 2);
|
604
|
+
__decorateClass([
|
605
|
+
property({ reflect: true })
|
606
|
+
], SdSelect.prototype, "placement", 2);
|
616
607
|
__decorateClass([
|
617
608
|
property()
|
618
609
|
], SdSelect.prototype, "label", 2);
|
619
610
|
__decorateClass([
|
620
611
|
property()
|
621
612
|
], SdSelect.prototype, "placeholder", 2);
|
613
|
+
__decorateClass([
|
614
|
+
property({ type: Boolean, reflect: true })
|
615
|
+
], SdSelect.prototype, "disabled", 2);
|
622
616
|
__decorateClass([
|
623
617
|
property({ attribute: "help-text" })
|
624
618
|
], SdSelect.prototype, "helpText", 2);
|
625
|
-
__decorateClass([
|
626
|
-
property({ reflect: true })
|
627
|
-
], SdSelect.prototype, "placement", 2);
|
628
619
|
__decorateClass([
|
629
620
|
state()
|
630
621
|
], SdSelect.prototype, "currentPlacement", 2);
|
631
622
|
__decorateClass([
|
632
623
|
property({ type: Boolean })
|
633
624
|
], SdSelect.prototype, "clearable", 2);
|
634
|
-
__decorateClass([
|
635
|
-
property({ type: Boolean, reflect: true })
|
636
|
-
], SdSelect.prototype, "disabled", 2);
|
637
625
|
__decorateClass([
|
638
626
|
property({ type: Boolean, reflect: true })
|
639
627
|
], SdSelect.prototype, "multiple", 2);
|
@@ -120,7 +120,7 @@ let SdSwitch = class extends SolidElement {
|
|
120
120
|
};
|
121
121
|
SdSwitch.styles = [
|
122
122
|
SolidElement.styles,
|
123
|
-
css`:host{display:block}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`
|
123
|
+
css`:host{display:block;width:-moz-max-content;width:max-content}:host(:focus-visible){outline:2px solid transparent;outline-offset:2px}:host([required]) #label::after{content:' *'}`
|
124
124
|
];
|
125
125
|
__decorateClass([
|
126
126
|
query("input")
|
@@ -3,10 +3,10 @@ export default class SdTab extends SolidElement {
|
|
3
3
|
private readonly attrId;
|
4
4
|
private readonly componentId;
|
5
5
|
tab: HTMLElement;
|
6
|
-
panel: string;
|
7
6
|
variant: 'default' | 'container';
|
8
7
|
active: boolean;
|
9
8
|
disabled: boolean;
|
9
|
+
panel: string;
|
10
10
|
connectedCallback(): void;
|
11
11
|
handleActiveChange(): void;
|
12
12
|
handleDisabledChange(): void;
|