@cupra/ui-kit 2.0.0-canary.113 → 2.0.0-canary.115
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-breadcrumbs/ds-breadcrumbs.cjs +8 -8
- package/dist/cjs/components/ds-date-picker/ds-date-picker.cjs +1 -1
- package/dist/cjs/components/ds-text/ds-text.cjs +3 -3
- package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist/cjs/index.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 +124 -122
- package/dist/cjs/utils/cssWithTokens.cjs +1 -1
- package/dist/cjs/utils/htmlWithTokens.cjs +1 -1
- package/dist/cjs/utils/version.cjs +1 -0
- package/dist/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +13 -12
- package/dist/esm/components/ds-date-picker/ds-date-picker.js +2 -7
- package/dist/esm/components/ds-text/ds-text.js +10 -10
- package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist/esm/decorators/customUiKitElement.js +14 -13
- package/dist/esm/index.js +3 -2
- 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 +130 -125
- package/dist/esm/utils/cssWithTokens.js +1 -1
- package/dist/esm/utils/htmlWithTokens.js +1 -1
- package/dist/esm/utils/version.js +4 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/utils/componentFactory.d.ts +1 -0
- package/dist/types/utils/version.d.ts +2 -0
- package/dist-react/cjs/components/ds-breadcrumbs/ds-breadcrumbs.cjs +8 -8
- package/dist-react/cjs/components/ds-date-picker/ds-date-picker.cjs +1 -1
- package/dist-react/cjs/components/ds-text/ds-text.cjs +3 -3
- package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
- package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
- package/dist-react/cjs/index.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 +113 -112
- 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 -0
- package/dist-react/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +13 -12
- package/dist-react/esm/components/ds-date-picker/ds-date-picker.js +2 -7
- package/dist-react/esm/components/ds-text/ds-text.js +10 -10
- package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist-react/esm/decorators/customUiKitElement.js +14 -13
- package/dist-react/esm/index.js +3 -2
- 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 +117 -114
- 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 +4 -0
- package/dist-react/types/index.d.ts +1 -0
- package/dist-react/types/utils/componentFactory.d.ts +1 -0
- package/dist-react/types/utils/version.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,140 +1,143 @@
|
|
|
1
|
-
import { x as e } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
2
1
|
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/index.js";
|
|
3
|
-
import { o as
|
|
2
|
+
import { o as e } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js";
|
|
4
3
|
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/if-defined.js";
|
|
4
|
+
import { s as t, u as n } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/static.js";
|
|
5
|
+
import "../node_modules/.pnpm/lit@3.3.1/node_modules/lit/static-html.js";
|
|
6
|
+
import { VERSION_TAG_SUFFIX as r } from "./version.js";
|
|
5
7
|
//#region src/utils/componentFactory.ts
|
|
6
|
-
var
|
|
7
|
-
createIcon: (
|
|
8
|
-
|
|
9
|
-
class=${t
|
|
10
|
-
data-testid=${t
|
|
11
|
-
@click=${
|
|
12
|
-
@keydown=${
|
|
13
|
-
icon-name=${
|
|
14
|
-
color=${t
|
|
15
|
-
background-color=${t
|
|
16
|
-
size=${t
|
|
17
|
-
aria-label=${t
|
|
18
|
-
aria-hidden=${t
|
|
19
|
-
role=${t
|
|
20
|
-
tabindex=${t
|
|
8
|
+
var i = t(`ds-icon${r}`), a = t(`ds-calendar-day${r}`), o = t(`ds-button${r}`), s = t(`ds-divider${r}`), c = t(`ds-icon-button${r}`), l = t(`ds-loader-spinner${r}`), u = t(`ds-skeleton${r}`), d = t(`ds-toast-message${r}`), f = t(`ds-inline-alert${r}`), p = t(`ds-tooltip${r}`), m = {
|
|
9
|
+
createIcon: (t) => (h(`ds-icon${r}`, () => import("../components/ds-icon/ds-icon.js")), n`
|
|
10
|
+
<${i}
|
|
11
|
+
class=${e(t?.class)}
|
|
12
|
+
data-testid=${e(t?.["data-testid"])}
|
|
13
|
+
@click=${t?.["@click"]}
|
|
14
|
+
@keydown=${t?.["@keydown"]}
|
|
15
|
+
icon-name=${t?.["icon-name"]}
|
|
16
|
+
color=${e(t?.color)}
|
|
17
|
+
background-color=${e(t?.["background-color"])}
|
|
18
|
+
size=${e(t?.size)}
|
|
19
|
+
aria-label=${e(t?.["aria-label"])}
|
|
20
|
+
aria-hidden=${e(t?.["aria-hidden"])}
|
|
21
|
+
role=${e(t?.role)}
|
|
22
|
+
tabindex=${e(t?.tabindex)}
|
|
21
23
|
>
|
|
22
|
-
${
|
|
23
|
-
|
|
24
|
+
${t.children}
|
|
25
|
+
</${i}>
|
|
24
26
|
`),
|
|
25
|
-
createCalendarDay: (
|
|
26
|
-
|
|
27
|
-
class=${t
|
|
28
|
-
day=${t
|
|
29
|
-
size=${t
|
|
30
|
-
?disabled=${
|
|
31
|
-
?selected=${
|
|
32
|
-
?today=${
|
|
33
|
-
?outside-month=${
|
|
34
|
-
data-testid=${t
|
|
35
|
-
|
|
27
|
+
createCalendarDay: (t = {}) => (h(`ds-calendar-day${r}`, () => import("../components/ds-calendar-day/ds-calendar-day.js")), n`
|
|
28
|
+
<${a}
|
|
29
|
+
class=${e(t?.class)}
|
|
30
|
+
day=${e(t?.day)}
|
|
31
|
+
size=${e(t?.size)}
|
|
32
|
+
?disabled=${t?.disabled}
|
|
33
|
+
?selected=${t?.selected}
|
|
34
|
+
?today=${t?.today}
|
|
35
|
+
?outside-month=${t?.["outside-month"]}
|
|
36
|
+
data-testid=${e(t?.["data-testid"])}
|
|
37
|
+
></${a}>
|
|
36
38
|
`),
|
|
37
|
-
createButton: (
|
|
38
|
-
|
|
39
|
-
class=${n?.class}
|
|
40
|
-
@click=${n?.["@click"]}
|
|
41
|
-
.size=${t(n?.size)}
|
|
42
|
-
type=${n?.type}
|
|
43
|
-
icon-position=${n?.["icon-position"]}
|
|
44
|
-
.rounded=${n?.rounded}
|
|
45
|
-
.full-width=${n?.["full-width"]}
|
|
46
|
-
variant=${n?.variant ?? "primary"}
|
|
47
|
-
mode=${n?.mode ?? "light"}
|
|
48
|
-
.disabled=${n?.disabled}
|
|
49
|
-
icon-name=${n?.["icon-name"]}
|
|
50
|
-
html-tag-name=${n?.["html-tag-name"]}
|
|
51
|
-
href=${n?.href}
|
|
52
|
-
rel=${n?.rel}
|
|
53
|
-
target=${n?.target}
|
|
54
|
-
data-testid=${n?.["data-testid"]}
|
|
55
|
-
>
|
|
56
|
-
${n.children}
|
|
57
|
-
</ds-button-react>
|
|
58
|
-
`),
|
|
59
|
-
createDivider: (t = {}) => (r("ds-divider-react", () => import("../components/ds-divider/ds-divider.js")), e`
|
|
60
|
-
<ds-divider-react
|
|
39
|
+
createButton: (t = {}) => (h(`ds-button${r}`, () => import("../components/ds-button/ds-button.js")), n`
|
|
40
|
+
<${o}
|
|
61
41
|
class=${t?.class}
|
|
42
|
+
@click=${t?.["@click"]}
|
|
43
|
+
.size=${e(t?.size)}
|
|
44
|
+
type=${t?.type}
|
|
45
|
+
icon-position=${t?.["icon-position"]}
|
|
46
|
+
.rounded=${t?.rounded}
|
|
47
|
+
.full-width=${t?.["full-width"]}
|
|
62
48
|
variant=${t?.variant ?? "primary"}
|
|
63
|
-
|
|
49
|
+
mode=${t?.mode ?? "light"}
|
|
50
|
+
.disabled=${t?.disabled}
|
|
51
|
+
icon-name=${t?.["icon-name"]}
|
|
52
|
+
html-tag-name=${t?.["html-tag-name"]}
|
|
53
|
+
href=${t?.href}
|
|
54
|
+
rel=${t?.rel}
|
|
55
|
+
target=${t?.target}
|
|
64
56
|
data-testid=${t?.["data-testid"]}
|
|
65
57
|
>
|
|
66
|
-
|
|
58
|
+
${t.children}
|
|
59
|
+
</${o}>
|
|
67
60
|
`),
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
class=${
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
mode=${n?.mode ?? "light"}
|
|
75
|
-
.disabled=${n?.disabled}
|
|
76
|
-
icon-name=${n?.["icon-name"]}
|
|
77
|
-
html-tag-name=${n?.["html-tag-name"]}
|
|
78
|
-
href=${n?.href}
|
|
79
|
-
rel=${n?.rel}
|
|
80
|
-
target=${n?.target}
|
|
81
|
-
data-testid=${n?.["data-testid"]}
|
|
82
|
-
data-aria-label=${n?.["data-aria-label"]}
|
|
61
|
+
createDivider: (e = {}) => (h(`ds-divider${r}`, () => import("../components/ds-divider/ds-divider.js")), n`
|
|
62
|
+
<${s}
|
|
63
|
+
class=${e?.class}
|
|
64
|
+
variant=${e?.variant ?? "primary"}
|
|
65
|
+
orientation=${e?.orientation ?? "horizontal"}
|
|
66
|
+
data-testid=${e?.["data-testid"]}
|
|
83
67
|
>
|
|
84
|
-
|
|
85
|
-
</ds-icon-button-react>
|
|
68
|
+
</${s}>
|
|
86
69
|
`),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
70
|
+
createIconButton: (t = {}) => (h(`ds-icon-button${r}`, () => import("../components/ds-icon-button/ds-icon-button.js")), n`
|
|
71
|
+
<${c}
|
|
72
|
+
class=${t?.class}
|
|
73
|
+
@click=${t?.["@click"]}
|
|
74
|
+
size=${e(t?.size)}
|
|
75
|
+
variant=${t?.variant ?? "primary"}
|
|
91
76
|
mode=${t?.mode ?? "light"}
|
|
92
|
-
|
|
77
|
+
.disabled=${t?.disabled}
|
|
78
|
+
icon-name=${t?.["icon-name"]}
|
|
79
|
+
html-tag-name=${t?.["html-tag-name"]}
|
|
80
|
+
href=${t?.href}
|
|
81
|
+
rel=${t?.rel}
|
|
82
|
+
target=${t?.target}
|
|
83
|
+
data-testid=${t?.["data-testid"]}
|
|
84
|
+
data-aria-label=${t?.["data-aria-label"]}
|
|
85
|
+
>
|
|
86
|
+
${t.children}
|
|
87
|
+
</${c}>
|
|
88
|
+
`),
|
|
89
|
+
createLoaderSpinner: (e = {}) => (h(`ds-loader-spinner${r}`, () => import("../components/ds-loader-spinner/ds-loader-spinner.js")), n`
|
|
90
|
+
<${l}
|
|
91
|
+
?show=${e?.show}
|
|
92
|
+
orientation=${e?.orientation ?? "row"}
|
|
93
|
+
mode=${e?.mode ?? "light"}
|
|
94
|
+
></${l}>
|
|
93
95
|
`),
|
|
94
|
-
createSkeleton: (
|
|
95
|
-
|
|
96
|
-
class=${t
|
|
97
|
-
data-testid=${t
|
|
98
|
-
variant=${t
|
|
99
|
-
width=${t
|
|
100
|
-
height=${t
|
|
101
|
-
animation=${t
|
|
102
|
-
|
|
96
|
+
createSkeleton: (t = {}) => (h(`ds-skeleton${r}`, () => import("../components/ds-skeleton/ds-skeleton.js")), n`
|
|
97
|
+
<${u}
|
|
98
|
+
class=${e(t?.class)}
|
|
99
|
+
data-testid=${e(t?.["data-testid"])}
|
|
100
|
+
variant=${e(t?.variant)}
|
|
101
|
+
width=${e(t?.width)}
|
|
102
|
+
height=${e(t?.height)}
|
|
103
|
+
animation=${e(t?.animation)}
|
|
104
|
+
></${u}>
|
|
103
105
|
`),
|
|
104
|
-
createToastMessage: (
|
|
105
|
-
|
|
106
|
-
data-id="${
|
|
107
|
-
data-template="${
|
|
108
|
-
title="${
|
|
109
|
-
text="${
|
|
110
|
-
status="${
|
|
111
|
-
|
|
106
|
+
createToastMessage: (e) => (h(`ds-toast-message${r}`, () => import("../components/ds-toast-message/ds-toast-message.js")), n`
|
|
107
|
+
<${d}
|
|
108
|
+
data-id="${e["data-id"]}"
|
|
109
|
+
data-template="${e["data-template"]}"
|
|
110
|
+
title="${e.title}"
|
|
111
|
+
text="${e.text}"
|
|
112
|
+
status="${e.status}"
|
|
113
|
+
></${d}>
|
|
112
114
|
`),
|
|
113
|
-
createInlineAlert: (
|
|
114
|
-
|
|
115
|
-
title="${
|
|
116
|
-
text="${
|
|
117
|
-
status="${
|
|
118
|
-
?show=${
|
|
119
|
-
|
|
115
|
+
createInlineAlert: (e) => (h(`ds-inline-alert${r}`, () => import("../components/ds-inline-alert/ds-inline-alert.js")), n`
|
|
116
|
+
<${f}
|
|
117
|
+
title="${e.title}"
|
|
118
|
+
text="${e.text}"
|
|
119
|
+
status="${e.status}"
|
|
120
|
+
?show=${e.show ?? !0}
|
|
121
|
+
></${f}>
|
|
120
122
|
`),
|
|
121
|
-
createTooltip: (
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
?
|
|
126
|
-
?disable-
|
|
127
|
-
?disable-
|
|
123
|
+
createTooltip: (t = {}) => (h(`ds-tooltip${r}`, () => import("../components/ds-tooltip/ds-tooltip.js")), n`
|
|
124
|
+
<${p}
|
|
125
|
+
class=${e(t?.class)}
|
|
126
|
+
mode=${e(t.mode)}
|
|
127
|
+
?show=${t.show ?? !1}
|
|
128
|
+
?disable-hover-listener=${t?.["disable-hover-listener"]}
|
|
129
|
+
?disable-focus-listener=${t?.["disable-focus-listener"]}
|
|
130
|
+
?disable-press-listener=${t?.["disable-press-listener"]}
|
|
128
131
|
>
|
|
129
|
-
${
|
|
130
|
-
<div slot="content">${
|
|
131
|
-
|
|
132
|
+
${t.children}
|
|
133
|
+
<div slot="content">${t.content}</div>
|
|
134
|
+
</${p}>
|
|
132
135
|
`)
|
|
133
136
|
};
|
|
134
|
-
function
|
|
137
|
+
function h(e, t) {
|
|
135
138
|
try {
|
|
136
139
|
typeof window < "u" && typeof customElements < "u" && !customElements.get(e) && t().catch((e) => {});
|
|
137
140
|
} catch {}
|
|
138
141
|
}
|
|
139
142
|
//#endregion
|
|
140
|
-
export {
|
|
143
|
+
export { m as reactFactory };
|
|
@@ -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-115"))}`;
|
|
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-115"))}`;
|
|
8
8
|
}
|
|
9
9
|
//#endregion
|
|
10
10
|
export { n as htmlWithTokens };
|
|
@@ -20,6 +20,7 @@ export type ComponentFactory = {
|
|
|
20
20
|
createToastMessage: GetAttributes<DsToastMessageAttrs>;
|
|
21
21
|
createInlineAlert: GetAttributes<DsInlineAlertAttrs>;
|
|
22
22
|
createTooltip: GetAttributes<DsTooltipAttrs & {
|
|
23
|
+
class?: string;
|
|
23
24
|
children?: any;
|
|
24
25
|
content?: any;
|
|
25
26
|
}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cupra/ui-kit",
|
|
3
|
-
"version": "2.0.0-canary.
|
|
3
|
+
"version": "2.0.0-canary.115",
|
|
4
4
|
"description": "Web components library",
|
|
5
5
|
"author": "SEAT S.A.",
|
|
6
6
|
"license": "SEAT S.A. Library EULA 1.0",
|
|
@@ -117,7 +117,7 @@
|
|
|
117
117
|
"lottie-web": "^5.13.0",
|
|
118
118
|
"nodemon": "^3.1.14",
|
|
119
119
|
"playwright": "1.56.1",
|
|
120
|
-
"postcss": "^8.5.
|
|
120
|
+
"postcss": "^8.5.12",
|
|
121
121
|
"postcss-cli": "^11.0.1",
|
|
122
122
|
"postcss-custom-media": "^11.0.6",
|
|
123
123
|
"postcss-import": "^16.1.0",
|