@cupra/ui-kit 2.0.0-canary.119 → 2.0.0-canary.121
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/cjs/components/ds-button/ds-button.cjs +3 -3
- package/dist/cjs/components/ds-button/styles/common.styles.cjs +4 -4
- package/dist/cjs/components/ds-checkbox/ds-checkbox.cjs +2 -2
- package/dist/cjs/components/ds-dialog/ds-dialog.cjs +2 -2
- package/dist/cjs/components/ds-dialog-fullscreen/ds-dialog-fullscreen.cjs +2 -2
- package/dist/cjs/components/ds-drawer/ds-drawer.cjs +4 -4
- package/dist/cjs/components/ds-icon-button/ds-icon-button.cjs +2 -7
- package/dist/cjs/components/ds-media-control/ds-media-control.cjs +3 -3
- package/dist/cjs/components/ds-tabs/ds-tabs.cjs +2 -2
- package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist/cjs/components/ds-toggle-switch/ds-toggle-switch.cjs +3 -3
- package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist/cjs/utils/IconsManager.cjs +1 -1
- package/dist/cjs/utils/PubSub.cjs +1 -1
- package/dist/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist/cjs/utils/componentFactory.cjs +12 -0
- package/dist/cjs/utils/cssWithTokens.cjs +1 -1
- package/dist/cjs/utils/htmlWithTokens.cjs +1 -1
- package/dist/cjs/utils/version.cjs +1 -1
- package/dist/esm/components/ds-button/ds-button.js +22 -6
- package/dist/esm/components/ds-button/styles/common.styles.js +4 -4
- package/dist/esm/components/ds-checkbox/ds-checkbox.js +12 -4
- package/dist/esm/components/ds-dialog/ds-dialog.js +11 -4
- package/dist/esm/components/ds-dialog-fullscreen/ds-dialog-fullscreen.js +12 -5
- package/dist/esm/components/ds-drawer/ds-drawer.js +26 -18
- package/dist/esm/components/ds-icon-button/ds-icon-button.js +22 -11
- package/dist/esm/components/ds-media-control/ds-media-control.js +22 -14
- package/dist/esm/components/ds-tabs/ds-tabs.js +10 -4
- package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist/esm/components/ds-toggle-switch/ds-toggle-switch.js +30 -21
- package/dist/esm/decorators/customUiKitElement.js +1 -1
- package/dist/esm/utils/IconsManager.js +1 -1
- package/dist/esm/utils/PubSub.js +1 -1
- package/dist/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
- package/dist/esm/utils/componentFactory.js +12 -0
- package/dist/esm/utils/cssWithTokens.js +1 -1
- package/dist/esm/utils/htmlWithTokens.js +1 -1
- package/dist/esm/utils/version.js +1 -1
- package/dist/types/components/ds-button/ds-button.d.ts +5 -1
- package/dist/types/components/ds-button/ds-button.types.d.ts +16 -3
- package/dist/types/components/ds-checkbox/ds-checkbox.d.ts +4 -1
- package/dist/types/components/ds-dialog/ds-dialog.d.ts +4 -1
- package/dist/types/components/ds-dialog-fullscreen/ds-dialog-fullscreen.d.ts +4 -1
- package/dist/types/components/ds-drawer/ds-drawer.d.ts +4 -1
- package/dist/types/components/ds-drawer/ds-drawer.types.d.ts +1 -1
- package/dist/types/components/ds-icon-button/ds-icon-button.d.ts +5 -1
- package/dist/types/components/ds-icon-button/ds-icon-button.types.d.ts +16 -3
- package/dist/types/components/ds-media-control/ds-media-control.d.ts +4 -1
- package/dist/types/components/ds-tabs/ds-tabs.d.ts +4 -1
- package/dist/types/components/ds-toggle-switch/ds-toggle-switch.d.ts +4 -1
- package/dist-react/cjs/components/ds-button/ds-button.cjs +3 -3
- package/dist-react/cjs/components/ds-button/styles/common.styles.cjs +4 -4
- package/dist-react/cjs/components/ds-checkbox/ds-checkbox.cjs +2 -2
- package/dist-react/cjs/components/ds-dialog/ds-dialog.cjs +2 -2
- package/dist-react/cjs/components/ds-dialog-fullscreen/ds-dialog-fullscreen.cjs +2 -2
- package/dist-react/cjs/components/ds-drawer/ds-drawer.cjs +4 -4
- package/dist-react/cjs/components/ds-icon-button/ds-icon-button.cjs +2 -7
- package/dist-react/cjs/components/ds-media-control/ds-media-control.cjs +3 -3
- package/dist-react/cjs/components/ds-tabs/ds-tabs.cjs +2 -2
- package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist-react/cjs/components/ds-toggle-switch/ds-toggle-switch.cjs +3 -3
- package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist-react/cjs/utils/IconsManager.cjs +1 -1
- package/dist-react/cjs/utils/PubSub.cjs +1 -1
- package/dist-react/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
- package/dist-react/cjs/utils/componentFactory.cjs +6 -0
- package/dist-react/cjs/utils/cssWithTokens.cjs +1 -1
- package/dist-react/cjs/utils/htmlWithTokens.cjs +1 -1
- package/dist-react/cjs/utils/version.cjs +1 -1
- package/dist-react/esm/components/ds-button/ds-button.js +22 -6
- package/dist-react/esm/components/ds-button/styles/common.styles.js +4 -4
- package/dist-react/esm/components/ds-checkbox/ds-checkbox.js +12 -4
- package/dist-react/esm/components/ds-dialog/ds-dialog.js +11 -4
- package/dist-react/esm/components/ds-dialog-fullscreen/ds-dialog-fullscreen.js +12 -5
- package/dist-react/esm/components/ds-drawer/ds-drawer.js +26 -18
- package/dist-react/esm/components/ds-icon-button/ds-icon-button.js +22 -11
- package/dist-react/esm/components/ds-media-control/ds-media-control.js +22 -14
- package/dist-react/esm/components/ds-tabs/ds-tabs.js +10 -4
- package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist-react/esm/components/ds-toggle-switch/ds-toggle-switch.js +30 -21
- package/dist-react/esm/decorators/customUiKitElement.js +1 -1
- package/dist-react/esm/utils/IconsManager.js +1 -1
- package/dist-react/esm/utils/PubSub.js +1 -1
- package/dist-react/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
- package/dist-react/esm/utils/componentFactory.js +6 -0
- package/dist-react/esm/utils/cssWithTokens.js +1 -1
- package/dist-react/esm/utils/htmlWithTokens.js +1 -1
- package/dist-react/esm/utils/version.js +1 -1
- package/dist-react/types/components/ds-button/ds-button.d.ts +5 -1
- package/dist-react/types/components/ds-button/ds-button.types.d.ts +16 -3
- package/dist-react/types/components/ds-checkbox/ds-checkbox.d.ts +4 -1
- package/dist-react/types/components/ds-dialog/ds-dialog.d.ts +4 -1
- package/dist-react/types/components/ds-dialog-fullscreen/ds-dialog-fullscreen.d.ts +4 -1
- package/dist-react/types/components/ds-drawer/ds-drawer.d.ts +4 -1
- package/dist-react/types/components/ds-drawer/ds-drawer.types.d.ts +1 -1
- package/dist-react/types/components/ds-icon-button/ds-icon-button.d.ts +5 -1
- package/dist-react/types/components/ds-icon-button/ds-icon-button.types.d.ts +16 -3
- package/dist-react/types/components/ds-media-control/ds-media-control.d.ts +4 -1
- package/dist-react/types/components/ds-tabs/ds-tabs.d.ts +4 -1
- package/dist-react/types/components/ds-toggle-switch/ds-toggle-switch.d.ts +4 -1
- package/package.json +1 -1
|
@@ -16,7 +16,7 @@ import { commonStyles as f } from "./styles/common.styles.js";
|
|
|
16
16
|
//#region src/components/ds-dialog/ds-dialog.ts
|
|
17
17
|
var p = class extends o {
|
|
18
18
|
constructor(...e) {
|
|
19
|
-
super(...e), this.lockClose = !1, this.lockScroll = !0, this.
|
|
19
|
+
super(...e), this.lockClose = !1, this.lockScroll = !0, this._open = void 0, this._openState = !1, this.size = "medium", this.hasBeenOpened = !1, this.hasScroll = !1, this.debouncedCheckScroll = u({ func: () => this.checkScroll() }), this.scrollLocked = !1, this.handleCloseButtonClick = () => {
|
|
20
20
|
this.handleClose("button");
|
|
21
21
|
}, this.handleDialogClick = (e) => {
|
|
22
22
|
e.target === this.nativeDialog && this.handleClose("backdrop");
|
|
@@ -29,8 +29,14 @@ var p = class extends o {
|
|
|
29
29
|
static {
|
|
30
30
|
this.styles = [f];
|
|
31
31
|
}
|
|
32
|
+
get open() {
|
|
33
|
+
return this._open ?? this._openState;
|
|
34
|
+
}
|
|
35
|
+
set open(e) {
|
|
36
|
+
this._open = e;
|
|
37
|
+
}
|
|
32
38
|
updated(e) {
|
|
33
|
-
super.updated(e), !this.hasBeenOpened && e.has("
|
|
39
|
+
super.updated(e), !this.hasBeenOpened && (e.has("_open") || e.has("_openState")) && this.open && (this.hasBeenOpened = !0), (e.has("_open") || e.has("_openState")) && (this.open || (this.hasScroll = !1), this.handleResizeObserver(), this.syncNativeDialogState(), this.syncScrollLock());
|
|
34
40
|
}
|
|
35
41
|
syncScrollLock() {
|
|
36
42
|
this.open && this.lockScroll ? (d.lock(), this.scrollLocked = !0) : this.scrollLocked &&= (d.unlock(), !1);
|
|
@@ -65,7 +71,7 @@ var p = class extends o {
|
|
|
65
71
|
}));
|
|
66
72
|
}
|
|
67
73
|
handleClose(e) {
|
|
68
|
-
this.lockClose || (this.
|
|
74
|
+
this.lockClose || (this._openState = !1, this._open = void 0, this.dispatchCloseEvents(e));
|
|
69
75
|
}
|
|
70
76
|
connectedCallback() {
|
|
71
77
|
super.connectedCallback(), this.resizeObserver = new ResizeObserver(this.debouncedCheckScroll), this.handleResizeObserver(), this.addEventListener("click", this.handleHostClick);
|
|
@@ -109,8 +115,9 @@ a([n({
|
|
|
109
115
|
attribute: "lock-scroll"
|
|
110
116
|
})], p.prototype, "lockScroll", void 0), a([n({
|
|
111
117
|
type: Boolean,
|
|
118
|
+
attribute: "open",
|
|
112
119
|
converter: c
|
|
113
|
-
})], p.prototype, "
|
|
120
|
+
})], p.prototype, "_open", void 0), a([r()], p.prototype, "_openState", void 0), a([n({ type: String })], p.prototype, "size", void 0), a([n({
|
|
114
121
|
type: String,
|
|
115
122
|
attribute: "data-aria-label"
|
|
116
123
|
})], p.prototype, "dataAriaLabel", void 0), a([n({
|
|
@@ -15,18 +15,24 @@ import { commonStyles as d } from "./styles/common.styles.js";
|
|
|
15
15
|
//#region src/components/ds-dialog-fullscreen/ds-dialog-fullscreen.ts
|
|
16
16
|
var f = class extends o {
|
|
17
17
|
constructor(...e) {
|
|
18
|
-
super(...e), this.lockClose = !1, this.lockScroll = !0, this.
|
|
18
|
+
super(...e), this.lockClose = !1, this.lockScroll = !0, this._open = void 0, this._openState = !1, this.hasScroll = !1, this.hasBeenOpened = !1, this.debouncedCheckScroll = u({ func: () => this.checkScroll() }), this.handleKeyDown = (e) => {
|
|
19
19
|
this.open && e.key === "Escape" && this.handleClose();
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
static {
|
|
23
23
|
this.styles = [d];
|
|
24
24
|
}
|
|
25
|
+
get open() {
|
|
26
|
+
return this._open ?? this._openState;
|
|
27
|
+
}
|
|
28
|
+
set open(e) {
|
|
29
|
+
this._open = e;
|
|
30
|
+
}
|
|
25
31
|
willUpdate(e) {
|
|
26
|
-
super.willUpdate(e), !this.hasBeenOpened && e.has("
|
|
32
|
+
super.willUpdate(e), !this.hasBeenOpened && (e.has("_open") || e.has("_openState")) && this.open && (this.hasBeenOpened = !0);
|
|
27
33
|
}
|
|
28
34
|
updated(e) {
|
|
29
|
-
super.updated(e), e.has("
|
|
35
|
+
super.updated(e), (e.has("_open") || e.has("_openState")) && this.handleResizeObserver();
|
|
30
36
|
}
|
|
31
37
|
async handleResizeObserver() {
|
|
32
38
|
this.lockScroll && (document.getElementById("storybook-root") || (document.body.style.overflow = this.open ? "hidden" : "")), this.resizeObserver?.disconnect(), this.content && (this.resizeObserver.observe(this.content), await new Promise(requestAnimationFrame), this.checkScroll());
|
|
@@ -39,7 +45,7 @@ var f = class extends o {
|
|
|
39
45
|
};
|
|
40
46
|
}
|
|
41
47
|
handleClose() {
|
|
42
|
-
this.lockClose || (this.
|
|
48
|
+
this.lockClose || (this._openState = !1, this._open = void 0, this.dispatchEvent(new Event("ds-dialog-fullscreen:close", {
|
|
43
49
|
bubbles: !0,
|
|
44
50
|
composed: !0
|
|
45
51
|
})));
|
|
@@ -84,6 +90,7 @@ a([n({
|
|
|
84
90
|
attribute: "lock-scroll"
|
|
85
91
|
})], f.prototype, "lockScroll", void 0), a([n({
|
|
86
92
|
type: Boolean,
|
|
93
|
+
attribute: "open",
|
|
87
94
|
converter: c
|
|
88
|
-
})], f.prototype, "
|
|
95
|
+
})], f.prototype, "_open", void 0), a([r()], f.prototype, "_openState", void 0), a([r()], f.prototype, "hasScroll", void 0), a([i(".content")], f.prototype, "content", void 0), f = a([s("ds-dialog-fullscreen")], f);
|
|
89
96
|
//#endregion
|
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
import { x as e } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
2
2
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
3
3
|
import { n as t } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
4
|
+
import { r as n } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
4
5
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.js";
|
|
5
|
-
import { __decorate as
|
|
6
|
-
import { UiKitElement as
|
|
7
|
-
import { customUiKitElement as
|
|
8
|
-
import { booleanConverter as
|
|
9
|
-
import { e as
|
|
6
|
+
import { __decorate as r } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
7
|
+
import { UiKitElement as i } from "../base/UiKitElement.js";
|
|
8
|
+
import { customUiKitElement as a } from "../../decorators/customUiKitElement.js";
|
|
9
|
+
import { booleanConverter as o } from "../../utils/booleanConverter.js";
|
|
10
|
+
import { e as s } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
10
11
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
11
|
-
import { commonStyles as
|
|
12
|
-
import { themeConfig as
|
|
12
|
+
import { commonStyles as c, iconStyles as l } from "./styles/common.styles.js";
|
|
13
|
+
import { themeConfig as u } from "./theme-config.js";
|
|
13
14
|
//#region src/components/ds-drawer/ds-drawer.ts
|
|
14
|
-
var
|
|
15
|
+
var d = class extends i {
|
|
15
16
|
constructor(...e) {
|
|
16
|
-
super(...e), this.
|
|
17
|
+
super(...e), this._open = void 0, this._openState = !1, this.handleOverlayClick = () => {
|
|
17
18
|
this.dispatchEvent(new Event("ds-drawer:close", {
|
|
18
19
|
bubbles: !0,
|
|
19
20
|
composed: !0
|
|
20
|
-
})), this.
|
|
21
|
+
})), this._openState = !1, this._open = void 0;
|
|
21
22
|
}, this.handleKeyDown = (e) => {
|
|
22
23
|
(e.key === "Escape" || e.key === "Esc") && this.open && this.handleOverlayClick();
|
|
23
24
|
};
|
|
24
25
|
}
|
|
25
26
|
static {
|
|
26
|
-
this.styles = [
|
|
27
|
+
this.styles = [c, l];
|
|
28
|
+
}
|
|
29
|
+
get open() {
|
|
30
|
+
return this._open ?? this._openState;
|
|
31
|
+
}
|
|
32
|
+
set open(e) {
|
|
33
|
+
this._open = e;
|
|
27
34
|
}
|
|
28
35
|
get classes() {
|
|
29
36
|
return {
|
|
@@ -32,7 +39,7 @@ var u = class extends r {
|
|
|
32
39
|
};
|
|
33
40
|
}
|
|
34
41
|
getIconButtonTemplate() {
|
|
35
|
-
let e =
|
|
42
|
+
let e = u[this.theme]?.["icon-button-variant"];
|
|
36
43
|
return this.componentFactory.createIconButton({
|
|
37
44
|
class: "close-button visible",
|
|
38
45
|
"data-testid": "close-button",
|
|
@@ -45,18 +52,18 @@ var u = class extends r {
|
|
|
45
52
|
});
|
|
46
53
|
}
|
|
47
54
|
updated(e) {
|
|
48
|
-
super.updated?.(e), e.has && e.has("
|
|
55
|
+
super.updated?.(e), e.has && (e.has("_open") || e.has("_openState")) && window.addEventListener("keydown", this.handleKeyDown);
|
|
49
56
|
}
|
|
50
57
|
disconnectedCallback() {
|
|
51
58
|
window.removeEventListener("keydown", this.handleKeyDown), super.disconnectedCallback();
|
|
52
59
|
}
|
|
53
60
|
render() {
|
|
54
61
|
return e`
|
|
55
|
-
<div class=${
|
|
62
|
+
<div class=${s({
|
|
56
63
|
overlay: !0,
|
|
57
64
|
open: !!this.open
|
|
58
65
|
})} @click=${this.handleOverlayClick}></div>
|
|
59
|
-
<div data-testid="ds-drawer-container" class=${
|
|
66
|
+
<div data-testid="ds-drawer-container" class=${s(this.classes)}>
|
|
60
67
|
<div class="scroll-area" tabindex="0">
|
|
61
68
|
<div class="drawer-header">
|
|
62
69
|
<slot name="header"></slot>
|
|
@@ -75,8 +82,9 @@ var u = class extends r {
|
|
|
75
82
|
`;
|
|
76
83
|
}
|
|
77
84
|
};
|
|
78
|
-
|
|
85
|
+
r([t({
|
|
79
86
|
type: Boolean,
|
|
80
|
-
|
|
81
|
-
|
|
87
|
+
attribute: "open",
|
|
88
|
+
converter: o
|
|
89
|
+
})], d.prototype, "_open", void 0), r([n()], d.prototype, "_openState", void 0), d = r([a("ds-drawer")], d);
|
|
82
90
|
//#endregion
|
|
@@ -16,7 +16,7 @@ import { buttonStyles as f } from "./styles/common.styles.js";
|
|
|
16
16
|
//#region src/components/ds-icon-button/ds-icon-button.ts
|
|
17
17
|
var p = class extends l(i) {
|
|
18
18
|
constructor(...e) {
|
|
19
|
-
super(...e), this.variant = "primary", this.mode = "light", this.size = "large", this.disabled = !1, this.htmlTagName = "button";
|
|
19
|
+
super(...e), this.variant = "primary", this.baseVariant = "primary", this.mode = "light", this.size = "large", this.disabled = !1, this.htmlTagName = "button";
|
|
20
20
|
}
|
|
21
21
|
static {
|
|
22
22
|
this.styles = [f];
|
|
@@ -35,16 +35,20 @@ var p = class extends l(i) {
|
|
|
35
35
|
t && !t.contains(e.composedPath()[0]) && (e.stopPropagation(), t.click());
|
|
36
36
|
}
|
|
37
37
|
get classes() {
|
|
38
|
-
let e = typeof this.size == "string" ? this.size : this.size[this.viewport];
|
|
38
|
+
let e = typeof this.size == "string" ? this.size : this.size[this.viewport], t = this.variant === "custom" ? this.baseVariant : this.variant;
|
|
39
39
|
return {
|
|
40
40
|
button: !0,
|
|
41
|
-
|
|
41
|
+
[`tag-${this.htmlTagName}`]: !0,
|
|
42
|
+
[`variant-${t}`]: !0,
|
|
43
|
+
custom: this.variant === "custom",
|
|
42
44
|
disabled: this.disabled,
|
|
43
45
|
[e]: !!e,
|
|
44
|
-
[this.mode]: !!this.mode
|
|
45
|
-
[this.variant]: !!this.variant
|
|
46
|
+
[this.mode]: !!this.mode
|
|
46
47
|
};
|
|
47
48
|
}
|
|
49
|
+
updated(e) {
|
|
50
|
+
super.updated(e), this.variant === "custom" && this.customBackground ? this.style.setProperty("--ui-kit-button-custom-bg", this.customBackground) : this.style.removeProperty("--ui-kit-button-custom-bg"), this.variant === "custom" && this.customColor ? this.style.setProperty("--ui-kit-button-custom-color", this.customColor) : this.style.removeProperty("--ui-kit-button-custom-color");
|
|
51
|
+
}
|
|
48
52
|
get variantColorTokens() {
|
|
49
53
|
return s`
|
|
50
54
|
<style>
|
|
@@ -57,11 +61,6 @@ var p = class extends l(i) {
|
|
|
57
61
|
}
|
|
58
62
|
render() {
|
|
59
63
|
return t`
|
|
60
|
-
<style>
|
|
61
|
-
:host {
|
|
62
|
-
pointer-events: ${this.disabled ? "none" : "visible"};
|
|
63
|
-
}
|
|
64
|
-
</style>
|
|
65
64
|
${this.variantColorTokens}
|
|
66
65
|
${d(this.htmlTagName || "button", [
|
|
67
66
|
["button", () => t`
|
|
@@ -95,7 +94,19 @@ var p = class extends l(i) {
|
|
|
95
94
|
`;
|
|
96
95
|
}
|
|
97
96
|
};
|
|
98
|
-
r([n({
|
|
97
|
+
r([n({
|
|
98
|
+
type: String,
|
|
99
|
+
reflect: !0
|
|
100
|
+
})], p.prototype, "variant", void 0), r([n({
|
|
101
|
+
type: String,
|
|
102
|
+
attribute: "base-variant"
|
|
103
|
+
})], p.prototype, "baseVariant", void 0), r([n({
|
|
104
|
+
type: String,
|
|
105
|
+
attribute: "custom-background"
|
|
106
|
+
})], p.prototype, "customBackground", void 0), r([n({
|
|
107
|
+
type: String,
|
|
108
|
+
attribute: "custom-color"
|
|
109
|
+
})], p.prototype, "customColor", void 0), r([n({
|
|
99
110
|
type: String,
|
|
100
111
|
reflect: !0
|
|
101
112
|
})], p.prototype, "mode", void 0), r([n({
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { x as e } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
2
2
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
3
3
|
import { n as t } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
4
|
+
import { r as n } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
4
5
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.js";
|
|
5
|
-
import { __decorate as
|
|
6
|
-
import { UiKitElement as
|
|
7
|
-
import { customUiKitElement as
|
|
8
|
-
import { e as
|
|
6
|
+
import { __decorate as r } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
7
|
+
import { UiKitElement as i } from "../base/UiKitElement.js";
|
|
8
|
+
import { customUiKitElement as a } from "../../decorators/customUiKitElement.js";
|
|
9
|
+
import { e as o } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
9
10
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
10
|
-
import { commonStyles as
|
|
11
|
+
import { commonStyles as s } from "./styles/common.styles.js";
|
|
11
12
|
//#region src/components/ds-media-control/ds-media-control.ts
|
|
12
|
-
var
|
|
13
|
+
var c = class extends i {
|
|
13
14
|
constructor(...e) {
|
|
14
|
-
super(...e), this.
|
|
15
|
+
super(...e), this._state = void 0, this._stateValue = "pause", this.size = "medium", this.progress = 0, this.handleToggle = (e) => {
|
|
15
16
|
e.stopPropagation();
|
|
16
17
|
let t = this.state === "play" ? "pause" : "play";
|
|
17
|
-
this.
|
|
18
|
+
this._stateValue = t, this._state = void 0;
|
|
18
19
|
let n = t === "play" ? "ds-media-control:play" : "ds-media-control:pause";
|
|
19
20
|
this.dispatchEvent(new CustomEvent(n, {
|
|
20
21
|
bubbles: !0,
|
|
@@ -25,7 +26,13 @@ var s = class extends r {
|
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
static {
|
|
28
|
-
this.styles = [
|
|
29
|
+
this.styles = [s];
|
|
30
|
+
}
|
|
31
|
+
get state() {
|
|
32
|
+
return this._state ?? this._stateValue;
|
|
33
|
+
}
|
|
34
|
+
set state(e) {
|
|
35
|
+
this._state = e;
|
|
29
36
|
}
|
|
30
37
|
get normalizedProgress() {
|
|
31
38
|
let e = Number(this.progress ?? 0);
|
|
@@ -77,7 +84,7 @@ var s = class extends r {
|
|
|
77
84
|
return e`
|
|
78
85
|
<div
|
|
79
86
|
part="container"
|
|
80
|
-
class=${
|
|
87
|
+
class=${o(this.classes)}
|
|
81
88
|
role="button"
|
|
82
89
|
tabindex="0"
|
|
83
90
|
aria-label=${`${t} media ${this.size}`}
|
|
@@ -90,14 +97,15 @@ var s = class extends r {
|
|
|
90
97
|
`;
|
|
91
98
|
}
|
|
92
99
|
};
|
|
93
|
-
|
|
100
|
+
r([t({
|
|
94
101
|
type: String,
|
|
102
|
+
attribute: "state",
|
|
95
103
|
reflect: !0
|
|
96
|
-
})],
|
|
104
|
+
})], c.prototype, "_state", void 0), r([n()], c.prototype, "_stateValue", void 0), r([t({
|
|
97
105
|
type: String,
|
|
98
106
|
reflect: !0
|
|
99
|
-
})],
|
|
107
|
+
})], c.prototype, "size", void 0), r([t({
|
|
100
108
|
type: Number,
|
|
101
109
|
reflect: !0
|
|
102
|
-
})],
|
|
110
|
+
})], c.prototype, "progress", void 0), c = r([a("ds-media-control")], c);
|
|
103
111
|
//#endregion
|
|
@@ -15,7 +15,7 @@ import { themeConfig as m } from "./theme-config.js";
|
|
|
15
15
|
//#region src/components/ds-tabs/ds-tabs.ts
|
|
16
16
|
var h = class extends o {
|
|
17
17
|
constructor(...e) {
|
|
18
|
-
super(...e), this.
|
|
18
|
+
super(...e), this._selectedTab = void 0, this._selectedTabState = 0, this.mode = "light", this.variant = "primary", this.size = "large", this.disabled = !1, this.focusedTabIndex = -1, this.handleKeyDown = (e) => {
|
|
19
19
|
if (!(this.focusedTabIndex < 0)) switch (e.key) {
|
|
20
20
|
case "ArrowRight":
|
|
21
21
|
case "Right":
|
|
@@ -65,6 +65,12 @@ var h = class extends o {
|
|
|
65
65
|
f
|
|
66
66
|
];
|
|
67
67
|
}
|
|
68
|
+
get selectedTab() {
|
|
69
|
+
return this._selectedTab ?? this._selectedTabState;
|
|
70
|
+
}
|
|
71
|
+
set selectedTab(e) {
|
|
72
|
+
this._selectedTab = e;
|
|
73
|
+
}
|
|
68
74
|
connectedCallback() {
|
|
69
75
|
super.connectedCallback(), this.tabs = Array.from(this.querySelectorAll("[slot=tab]")), this.panels = Array.from(this.querySelectorAll("[slot=panel]"));
|
|
70
76
|
}
|
|
@@ -88,7 +94,7 @@ var h = class extends o {
|
|
|
88
94
|
this.handleScrollNav(), this.resizeObserver.observe(this.nav), this.tabs.forEach((e) => this.resizeObserver.observe(e)), window.addEventListener("resize", this.handleScrollNav), this.nav.addEventListener("scroll", this.handleScrollNav), this.setTabsFocusable();
|
|
89
95
|
}
|
|
90
96
|
updated(e) {
|
|
91
|
-
if (super.updated(e), e.has("
|
|
97
|
+
if (super.updated(e), (e.has("_selectedTab") || e.has("_selectedTabState")) && this.selectTab(this.selectedTab), e.has("variant")) {
|
|
92
98
|
let e = this.variant === "secondary" || this.variant === "primary" ? this.variant : "primary";
|
|
93
99
|
this.variant !== e && (this.variant = e);
|
|
94
100
|
}
|
|
@@ -122,7 +128,7 @@ var h = class extends o {
|
|
|
122
128
|
bubbles: !0,
|
|
123
129
|
composed: !0,
|
|
124
130
|
detail: { selectedTab: e }
|
|
125
|
-
})), this.
|
|
131
|
+
})), this._selectedTabState = e, this._selectedTab = void 0;
|
|
126
132
|
}
|
|
127
133
|
handleSelect(e) {
|
|
128
134
|
let t;
|
|
@@ -165,7 +171,7 @@ a([n({
|
|
|
165
171
|
type: Number,
|
|
166
172
|
attribute: "selected-tab",
|
|
167
173
|
reflect: !0
|
|
168
|
-
})], h.prototype, "
|
|
174
|
+
})], h.prototype, "_selectedTab", void 0), a([r()], h.prototype, "_selectedTabState", void 0), a([n({
|
|
169
175
|
type: String,
|
|
170
176
|
reflect: !0
|
|
171
177
|
})], h.prototype, "mode", void 0), a([n({
|
|
@@ -50,7 +50,7 @@ var p = class extends o {
|
|
|
50
50
|
}
|
|
51
51
|
loadThemeStyles() {
|
|
52
52
|
return this.loadStyles ? new Promise((e, t) => {
|
|
53
|
-
let n = "/2.0.0-canary.
|
|
53
|
+
let n = "/2.0.0-canary.121", r = `https://ds-assets.cupra.com${n}/styles/${this.theme}/theme.css`;
|
|
54
54
|
if (document.head.querySelector(`link[href="${r}"]`)) e();
|
|
55
55
|
else {
|
|
56
56
|
let i = `ui-kit-theme-${n}`, a = document.getElementById(i), o = document.createElement("link");
|
|
@@ -2,28 +2,36 @@ import "../ds-theme-provider/themeContext.js";
|
|
|
2
2
|
import { x as e } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
3
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
4
4
|
import { n as t } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/property.js";
|
|
5
|
+
import { r as n } from "../../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/decorators/state.js";
|
|
5
6
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/decorators.js";
|
|
6
|
-
import { __decorate as
|
|
7
|
-
import { UiKitElement as
|
|
8
|
-
import { customUiKitElement as
|
|
9
|
-
import { booleanConverter as
|
|
10
|
-
import { htmlWithTokens as
|
|
11
|
-
import { e as
|
|
7
|
+
import { __decorate as r } from "../../_virtual/_@oxc-project_runtime@0.122.0/helpers/decorate.js";
|
|
8
|
+
import { UiKitElement as i } from "../base/UiKitElement.js";
|
|
9
|
+
import { customUiKitElement as a } from "../../decorators/customUiKitElement.js";
|
|
10
|
+
import { booleanConverter as o } from "../../utils/booleanConverter.js";
|
|
11
|
+
import { htmlWithTokens as s } from "../../utils/htmlWithTokens.js";
|
|
12
|
+
import { e as c } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
|
|
12
13
|
import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
|
|
13
|
-
import { commonStyles as
|
|
14
|
+
import { commonStyles as l } from "./styles/common.styles.js";
|
|
14
15
|
//#region src/components/ds-toggle-switch/ds-toggle-switch.ts
|
|
15
|
-
var
|
|
16
|
+
var u = class extends i {
|
|
16
17
|
constructor(...e) {
|
|
17
|
-
super(...e), this.size = "medium", this.
|
|
18
|
+
super(...e), this.size = "medium", this._checked = void 0, this._checkedState = !1, this.disabled = !1, this.mode = "light";
|
|
18
19
|
}
|
|
19
20
|
static {
|
|
20
|
-
this.styles = [
|
|
21
|
+
this.styles = [l];
|
|
22
|
+
}
|
|
23
|
+
get checked() {
|
|
24
|
+
return this._checked ?? this._checkedState;
|
|
25
|
+
}
|
|
26
|
+
set checked(e) {
|
|
27
|
+
this._checked = e;
|
|
21
28
|
}
|
|
22
29
|
handleClick() {
|
|
23
|
-
|
|
30
|
+
let e = !this.checked;
|
|
31
|
+
this._checkedState = e, this._checked = void 0, this.dispatchEvent(new CustomEvent("change", {
|
|
24
32
|
bubbles: !0,
|
|
25
33
|
composed: !0,
|
|
26
|
-
detail: { checked:
|
|
34
|
+
detail: { checked: e }
|
|
27
35
|
}));
|
|
28
36
|
}
|
|
29
37
|
handleClickOff(e) {
|
|
@@ -33,7 +41,7 @@ var l = class extends r {
|
|
|
33
41
|
e.stopPropagation(), !this.checked && this.handleClick();
|
|
34
42
|
}
|
|
35
43
|
get styleTokens() {
|
|
36
|
-
return
|
|
44
|
+
return s`
|
|
37
45
|
<style>
|
|
38
46
|
:host {
|
|
39
47
|
color-scheme: ${this.mode};
|
|
@@ -54,7 +62,7 @@ var l = class extends r {
|
|
|
54
62
|
return e`
|
|
55
63
|
${this.styleTokens}
|
|
56
64
|
<div
|
|
57
|
-
class=${
|
|
65
|
+
class=${c(this.labelClasses)}
|
|
58
66
|
@click=${this.handleClick}
|
|
59
67
|
>
|
|
60
68
|
<slot name="off" @click=${this.handleClickOff}></slot>
|
|
@@ -77,19 +85,20 @@ var l = class extends r {
|
|
|
77
85
|
`;
|
|
78
86
|
}
|
|
79
87
|
};
|
|
80
|
-
|
|
88
|
+
r([t({ type: String })], u.prototype, "size", void 0), r([t({
|
|
81
89
|
type: Boolean,
|
|
82
|
-
|
|
90
|
+
attribute: "checked",
|
|
91
|
+
converter: o,
|
|
83
92
|
reflect: !0
|
|
84
|
-
})],
|
|
93
|
+
})], u.prototype, "_checked", void 0), r([n()], u.prototype, "_checkedState", void 0), r([t({
|
|
85
94
|
type: Boolean,
|
|
86
|
-
converter:
|
|
95
|
+
converter: o,
|
|
87
96
|
reflect: !0
|
|
88
|
-
})],
|
|
97
|
+
})], u.prototype, "disabled", void 0), r([t({
|
|
89
98
|
type: String,
|
|
90
99
|
reflect: !0
|
|
91
|
-
})],
|
|
100
|
+
})], u.prototype, "mode", void 0), r([t({
|
|
92
101
|
type: String,
|
|
93
102
|
attribute: "data-aria-label"
|
|
94
|
-
})],
|
|
103
|
+
})], u.prototype, "dataAriaLabel", void 0), u = r([a("ds-toggle-switch")], u);
|
|
95
104
|
//#endregion
|
|
@@ -15,7 +15,7 @@ function r(r, i) {
|
|
|
15
15
|
this.componentName = c;
|
|
16
16
|
}
|
|
17
17
|
connectedCallback() {
|
|
18
|
-
a.prototype.connectedCallback?.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.
|
|
18
|
+
a.prototype.connectedCallback?.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.121");
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
};
|
|
@@ -25,7 +25,7 @@ var n = class {
|
|
|
25
25
|
return console.error(`Failed to fetch icon "${e}":`, t), "";
|
|
26
26
|
}), t.subscribe("theme", this.handleChangeTheme);
|
|
27
27
|
}
|
|
28
|
-
}, r = Symbol.for("@cupra/ui-kit/icons-manager/2.0.0-canary.
|
|
28
|
+
}, r = Symbol.for("@cupra/ui-kit/icons-manager/2.0.0-canary.121"), i = globalThis, a = i[r];
|
|
29
29
|
a || (a = new n(), Object.defineProperty(i, r, {
|
|
30
30
|
value: a,
|
|
31
31
|
writable: !1,
|
package/dist/esm/utils/PubSub.js
CHANGED
|
@@ -18,7 +18,7 @@ var e = class {
|
|
|
18
18
|
}
|
|
19
19
|
});
|
|
20
20
|
}
|
|
21
|
-
}, t = Symbol.for("@cupra/ui-kit/pubsub/2.0.0-canary.
|
|
21
|
+
}, t = Symbol.for("@cupra/ui-kit/pubsub/2.0.0-canary.121"), n = globalThis, r = n[t];
|
|
22
22
|
r || (r = new e(), Object.defineProperty(n, t, {
|
|
23
23
|
value: r,
|
|
24
24
|
writable: !1,
|
|
@@ -4,7 +4,7 @@ var t = e(20), n = class e {
|
|
|
4
4
|
constructor() {
|
|
5
5
|
this.stylePromises = /* @__PURE__ */ new Map(), this.getStyles = async ({ componentName: e, theme: n }) => {
|
|
6
6
|
if (!n || !e) return;
|
|
7
|
-
let r = `https://ds-assets.cupra.com/2.0.0-canary.
|
|
7
|
+
let r = `https://ds-assets.cupra.com/2.0.0-canary.121/styles/${n}/components/${e}.css`, i = this.getCachedStyleSheetPromise({ url: r });
|
|
8
8
|
if (i) return i;
|
|
9
9
|
let a = t(() => this.fetchStyle({ url: r })).then((e) => (e || this.stylePromises.delete(r), e));
|
|
10
10
|
return this.stylePromises.set(r, a), this.stylePromises.get(r);
|
|
@@ -55,6 +55,9 @@ var a = n(`ds-icon${i}`), o = n(`ds-calendar-day${i}`), s = n(`ds-button${i}`),
|
|
|
55
55
|
rel=${n?.rel}
|
|
56
56
|
target=${n?.target}
|
|
57
57
|
data-testid=${n?.["data-testid"]}
|
|
58
|
+
base-variant=${t(n?.["base-variant"])}
|
|
59
|
+
custom-background=${t(n?.["custom-background"])}
|
|
60
|
+
custom-color=${t(n?.["custom-color"])}
|
|
58
61
|
>
|
|
59
62
|
${n.children}
|
|
60
63
|
</ds-button>
|
|
@@ -83,6 +86,9 @@ var a = n(`ds-icon${i}`), o = n(`ds-calendar-day${i}`), s = n(`ds-button${i}`),
|
|
|
83
86
|
target=${n?.target}
|
|
84
87
|
data-testid=${n?.["data-testid"]}
|
|
85
88
|
data-aria-label=${n?.["data-aria-label"]}
|
|
89
|
+
base-variant=${t(n?.["base-variant"])}
|
|
90
|
+
custom-background=${t(n?.["custom-background"])}
|
|
91
|
+
custom-color=${t(n?.["custom-color"])}
|
|
86
92
|
>
|
|
87
93
|
${n.children}
|
|
88
94
|
</ds-icon-button>
|
|
@@ -183,6 +189,9 @@ var a = n(`ds-icon${i}`), o = n(`ds-calendar-day${i}`), s = n(`ds-button${i}`),
|
|
|
183
189
|
rel=${e?.rel}
|
|
184
190
|
target=${e?.target}
|
|
185
191
|
data-testid=${e?.["data-testid"]}
|
|
192
|
+
base-variant=${t(e?.["base-variant"])}
|
|
193
|
+
custom-background=${t(e?.["custom-background"])}
|
|
194
|
+
custom-color=${t(e?.["custom-color"])}
|
|
186
195
|
>
|
|
187
196
|
${e.children}
|
|
188
197
|
</${s}>
|
|
@@ -211,6 +220,9 @@ var a = n(`ds-icon${i}`), o = n(`ds-calendar-day${i}`), s = n(`ds-button${i}`),
|
|
|
211
220
|
target=${e?.target}
|
|
212
221
|
data-testid=${e?.["data-testid"]}
|
|
213
222
|
data-aria-label=${e?.["data-aria-label"]}
|
|
223
|
+
base-variant=${t(e?.["base-variant"])}
|
|
224
|
+
custom-background=${t(e?.["custom-background"])}
|
|
225
|
+
custom-color=${t(e?.["custom-color"])}
|
|
214
226
|
>
|
|
215
227
|
${e.children}
|
|
216
228
|
</${l}>
|
|
@@ -2,7 +2,7 @@ import { i as e, r as t } from "../node_modules/.pnpm/@lit_reactive-element@2.1.
|
|
|
2
2
|
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
3
3
|
//#region src/utils/cssWithTokens.ts
|
|
4
4
|
function n(n, ...r) {
|
|
5
|
-
return e`${t(String.raw({ raw: n }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v2-0-0-canary-
|
|
5
|
+
return e`${t(String.raw({ raw: n }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v2-0-0-canary-121"))}`;
|
|
6
6
|
}
|
|
7
7
|
//#endregion
|
|
8
8
|
export { n as cssWithTokens };
|
|
@@ -4,7 +4,7 @@ import { o as t } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-ht
|
|
|
4
4
|
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/unsafe-html.js";
|
|
5
5
|
//#region src/utils/htmlWithTokens.ts
|
|
6
6
|
function n(n, ...r) {
|
|
7
|
-
return e`${t(String.raw({ raw: n }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v2-0-0-canary-
|
|
7
|
+
return e`${t(String.raw({ raw: n }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v2-0-0-canary-121"))}`;
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
10
|
export { n as htmlWithTokens };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { UiKitElement } from '../base/UiKitElement.ts';
|
|
2
|
-
import { nothing } from 'lit';
|
|
2
|
+
import { type PropertyValues, nothing } from 'lit';
|
|
3
3
|
import type { DsButtonAttrs } from './ds-button.types';
|
|
4
4
|
declare const DsButton_base: (new (...args: any[]) => import("../../mixins/ViewportMixin").ViewportInterface) & typeof UiKitElement;
|
|
5
5
|
export declare class DsButton extends DsButton_base {
|
|
@@ -19,6 +19,9 @@ export declare class DsButton extends DsButton_base {
|
|
|
19
19
|
fullWidth: DsButtonAttrs['full-width'];
|
|
20
20
|
loading: DsButtonAttrs['loading'];
|
|
21
21
|
textLoading: DsButtonAttrs['text-loading'];
|
|
22
|
+
baseVariant: DsButtonAttrs['base-variant'];
|
|
23
|
+
customBackground: DsButtonAttrs['custom-background'];
|
|
24
|
+
customColor: DsButtonAttrs['custom-color'];
|
|
22
25
|
private closestForm;
|
|
23
26
|
static styles: import("lit").CSSResult[];
|
|
24
27
|
connectedCallback(): void;
|
|
@@ -36,6 +39,7 @@ export declare class DsButton extends DsButton_base {
|
|
|
36
39
|
protected get iconTemplate(): any;
|
|
37
40
|
protected get loadingTemplate(): typeof nothing | import("lit").TemplateResult<1>;
|
|
38
41
|
protected get contentTemplate(): import("lit").TemplateResult<1>;
|
|
42
|
+
updated(changedProperties: PropertyValues): void;
|
|
39
43
|
protected get cssTokens(): import("lit").HTMLTemplateResult;
|
|
40
44
|
render(): import("lit").TemplateResult<1>;
|
|
41
45
|
}
|
|
@@ -23,8 +23,7 @@ type CustomElement = {
|
|
|
23
23
|
target?: never;
|
|
24
24
|
};
|
|
25
25
|
type HtmlElement = Link | Button | CustomElement;
|
|
26
|
-
|
|
27
|
-
variant?: string;
|
|
26
|
+
type SharedButtonAttrs = {
|
|
28
27
|
mode?: 'dark' | 'light';
|
|
29
28
|
disabled?: boolean;
|
|
30
29
|
destructive?: boolean;
|
|
@@ -37,5 +36,19 @@ export type DsButtonAttrs = {
|
|
|
37
36
|
'full-width'?: boolean;
|
|
38
37
|
loading?: boolean;
|
|
39
38
|
'text-loading'?: string;
|
|
40
|
-
}
|
|
39
|
+
};
|
|
40
|
+
export type DsButtonStandardVariant = 'primary' | 'secondary' | 'tertiary' | 'naked';
|
|
41
|
+
type StandardVariantAttrs = {
|
|
42
|
+
variant?: DsButtonStandardVariant;
|
|
43
|
+
'base-variant'?: never;
|
|
44
|
+
'custom-background'?: never;
|
|
45
|
+
'custom-color'?: never;
|
|
46
|
+
};
|
|
47
|
+
type CustomVariantAttrs = {
|
|
48
|
+
variant: 'custom';
|
|
49
|
+
'base-variant'?: DsButtonStandardVariant;
|
|
50
|
+
'custom-background'?: string;
|
|
51
|
+
'custom-color'?: string;
|
|
52
|
+
};
|
|
53
|
+
export type DsButtonAttrs = (StandardVariantAttrs | CustomVariantAttrs) & SharedButtonAttrs & HtmlElement & CommonAttrs;
|
|
41
54
|
export {};
|