@cupra/ui-kit 1.0.0 → 1.0.1-canary.0
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/THIRD_PARTY_LICENSES.MD +29 -0
- package/dist/components/ds-radio-button/styles/common.styles.js +0 -1
- package/dist/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist/utils/IconsManager.js +7 -7
- package/dist/utils/PubSub.js +6 -6
- package/dist/utils/StylesRegistry/StylesRegistry.js +3 -3
- package/dist/utils/cssWithTokens.js +3 -3
- package/dist/utils/htmlWithTokens.js +6 -6
- package/dist-react/components/ds-radio-button/styles/common.styles.js +0 -1
- package/dist-react/components/ds-theme-provider/ds-theme-provider.js +1 -1
- package/dist-react/utils/IconsManager.js +7 -7
- package/dist-react/utils/PubSub.js +6 -6
- package/dist-react/utils/StylesRegistry/StylesRegistry.js +3 -3
- package/dist-react/utils/cssWithTokens.js +3 -3
- package/dist-react/utils/htmlWithTokens.js +6 -6
- package/package.json +2 -2
package/THIRD_PARTY_LICENSES.MD
CHANGED
|
@@ -75,5 +75,34 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
75
75
|
|
|
76
76
|
-----------
|
|
77
77
|
|
|
78
|
+
The following npm package may be included in this product:
|
|
79
|
+
|
|
80
|
+
- @floating-ui/dom@1.7.4
|
|
81
|
+
|
|
82
|
+
This package contains the following license:
|
|
83
|
+
|
|
84
|
+
MIT License
|
|
85
|
+
|
|
86
|
+
Copyright (c) 2021-present Floating UI contributors
|
|
87
|
+
|
|
88
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
89
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
90
|
+
the Software without restriction, including without limitation the rights to
|
|
91
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
|
|
92
|
+
the Software, and to permit persons to whom the Software is furnished to do so,
|
|
93
|
+
subject to the following conditions:
|
|
94
|
+
|
|
95
|
+
The above copyright notice and this permission notice shall be included in all
|
|
96
|
+
copies or substantial portions of the Software.
|
|
97
|
+
|
|
98
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
99
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
100
|
+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
101
|
+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
102
|
+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
103
|
+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
104
|
+
|
|
105
|
+
-----------
|
|
106
|
+
|
|
78
107
|
This file was generated with the generate-license-file npm package!
|
|
79
108
|
https://www.npmjs.com/package/generate-license-file
|
|
@@ -54,7 +54,7 @@ let m = class extends v {
|
|
|
54
54
|
}
|
|
55
55
|
loadThemeStyles() {
|
|
56
56
|
return this.loadStyles ? new Promise((t, o) => {
|
|
57
|
-
const s = "/1.0.0", r = `https://ds-assets.cupra.com${s}/styles/${this.theme}/theme.css`;
|
|
57
|
+
const s = "/1.0.1-canary.0", r = `https://ds-assets.cupra.com${s}/styles/${this.theme}/theme.css`;
|
|
58
58
|
if (document.head.querySelector(`link[href="${r}"]`)) t();
|
|
59
59
|
else {
|
|
60
60
|
const e = `ui-kit-theme-${s}`, a = document.getElementById(e), n = document.createElement("link");
|
|
@@ -12,10 +12,10 @@ class f {
|
|
|
12
12
|
!this.theme && s && (this.theme = s);
|
|
13
13
|
const t = this.icons[e];
|
|
14
14
|
if (t) return await t;
|
|
15
|
-
const
|
|
15
|
+
const o = this.loadIcon(e, i).catch((a) => {
|
|
16
16
|
throw delete this.icons[e], a;
|
|
17
17
|
});
|
|
18
|
-
return this.icons[e] =
|
|
18
|
+
return this.icons[e] = o, o;
|
|
19
19
|
}, this.loadIcon = (e, { cache: i = "force-cache", ...s }) => this.theme ? fetch(`https://ds-assets.cupra.com/icons/${this.theme}/${e}.svg`, {
|
|
20
20
|
cache: i,
|
|
21
21
|
...s
|
|
@@ -25,15 +25,15 @@ class f {
|
|
|
25
25
|
}) : Promise.resolve('<svg class="ds-icon"></svg>'), l.subscribe("theme", this.handleChangeTheme);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
const c = Symbol.for("@cupra/ui-kit/icons-manager/1.0.0"), h = globalThis;
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
value:
|
|
28
|
+
const c = Symbol.for("@cupra/ui-kit/icons-manager/1.0.1-canary.0"), h = globalThis;
|
|
29
|
+
let n = h[c];
|
|
30
|
+
n || (n = new f(), Object.defineProperty(h, c, {
|
|
31
|
+
value: n,
|
|
32
32
|
writable: !1,
|
|
33
33
|
configurable: !1,
|
|
34
34
|
enumerable: !1
|
|
35
35
|
}));
|
|
36
|
-
const b =
|
|
36
|
+
const b = n;
|
|
37
37
|
export {
|
|
38
38
|
b as iconsManager
|
|
39
39
|
};
|
package/dist/utils/PubSub.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class e {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.subscribers = {}, this.lastPublishedData = {};
|
|
4
4
|
}
|
|
@@ -12,15 +12,15 @@ class c {
|
|
|
12
12
|
this.lastPublishedData[s] = r, this.subscribers[s] && this.subscribers[s].forEach((i) => {
|
|
13
13
|
try {
|
|
14
14
|
i(r);
|
|
15
|
-
} catch (
|
|
16
|
-
console.error(`Error in subscriber for event "${s}":`,
|
|
15
|
+
} catch (c) {
|
|
16
|
+
console.error(`Error in subscriber for event "${s}":`, c);
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
const u = Symbol.for("@cupra/ui-kit/pubsub/1.0.0"), t = globalThis;
|
|
21
|
+
const u = Symbol.for("@cupra/ui-kit/pubsub/1.0.1-canary.0"), t = globalThis;
|
|
22
22
|
let b = t[u];
|
|
23
|
-
b || (b = new
|
|
23
|
+
b || (b = new e(), Object.defineProperty(t, u, {
|
|
24
24
|
value: b,
|
|
25
25
|
writable: !1,
|
|
26
26
|
configurable: !1,
|
|
@@ -28,6 +28,6 @@ b || (b = new c(), Object.defineProperty(t, u, {
|
|
|
28
28
|
}));
|
|
29
29
|
const a = b;
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
e as PubSub,
|
|
32
32
|
a as pubSub
|
|
33
33
|
};
|
|
@@ -5,7 +5,7 @@ class s {
|
|
|
5
5
|
theme: t
|
|
6
6
|
}) => {
|
|
7
7
|
if (!t || !e) return;
|
|
8
|
-
const c = `https://ds-assets.cupra.com/1.0.0/styles/${t}/components/${e}.css`, r = this.getCachedStyleSheetPromise({ url: c });
|
|
8
|
+
const c = `https://ds-assets.cupra.com/1.0.1-canary.0/styles/${t}/components/${e}.css`, r = this.getCachedStyleSheetPromise({ url: c });
|
|
9
9
|
if (r) return r;
|
|
10
10
|
const i = this.fetchStyle({ url: c }).then((n) => (n || this.stylePromises.delete(c), n));
|
|
11
11
|
return this.stylePromises.set(c, i), this.stylePromises.get(c);
|
|
@@ -26,7 +26,7 @@ class s {
|
|
|
26
26
|
return s.instance || (s.instance = new s()), s.instance;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const a = s.getInstance();
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
a as stylesRegistry
|
|
32
32
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
2
|
import "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
3
|
import "../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
-
import { unsafeCSS as
|
|
4
|
+
import { unsafeCSS as n, css as o } from "../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
5
|
function x(t, ...r) {
|
|
6
|
-
const e = String.raw({ raw: t }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-0"), i =
|
|
7
|
-
return
|
|
6
|
+
const e = String.raw({ raw: t }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-1-canary-0"), i = n(e);
|
|
7
|
+
return o`${i}`;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
10
|
x as cssWithTokens
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
-
import { html as
|
|
2
|
+
import { html as n } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
3
|
import "../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
-
import { unsafeHTML as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return
|
|
4
|
+
import { unsafeHTML as i } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js";
|
|
5
|
+
function x(t, ...r) {
|
|
6
|
+
const o = String.raw({ raw: t }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-1-canary-0"), e = i(o);
|
|
7
|
+
return n`${e}`;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
x as htmlWithTokens
|
|
11
11
|
};
|
|
@@ -54,7 +54,7 @@ let m = class extends v {
|
|
|
54
54
|
}
|
|
55
55
|
loadThemeStyles() {
|
|
56
56
|
return this.loadStyles ? new Promise((t, o) => {
|
|
57
|
-
const s = "/1.0.0", r = `https://ds-assets.cupra.com${s}/styles/${this.theme}/theme.css`;
|
|
57
|
+
const s = "/1.0.1-canary.0", r = `https://ds-assets.cupra.com${s}/styles/${this.theme}/theme.css`;
|
|
58
58
|
if (document.head.querySelector(`link[href="${r}"]`)) t();
|
|
59
59
|
else {
|
|
60
60
|
const e = `ui-kit-theme-${s}`, a = document.getElementById(e), n = document.createElement("link");
|
|
@@ -12,10 +12,10 @@ class f {
|
|
|
12
12
|
!this.theme && s && (this.theme = s);
|
|
13
13
|
const t = this.icons[e];
|
|
14
14
|
if (t) return await t;
|
|
15
|
-
const
|
|
15
|
+
const o = this.loadIcon(e, i).catch((a) => {
|
|
16
16
|
throw delete this.icons[e], a;
|
|
17
17
|
});
|
|
18
|
-
return this.icons[e] =
|
|
18
|
+
return this.icons[e] = o, o;
|
|
19
19
|
}, this.loadIcon = (e, { cache: i = "force-cache", ...s }) => this.theme ? fetch(`https://ds-assets.cupra.com/icons/${this.theme}/${e}.svg`, {
|
|
20
20
|
cache: i,
|
|
21
21
|
...s
|
|
@@ -25,15 +25,15 @@ class f {
|
|
|
25
25
|
}) : Promise.resolve('<svg class="ds-icon"></svg>'), l.subscribe("theme", this.handleChangeTheme);
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
const c = Symbol.for("@cupra/ui-kit/icons-manager/1.0.0"), h = globalThis;
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
value:
|
|
28
|
+
const c = Symbol.for("@cupra/ui-kit/icons-manager/1.0.1-canary.0"), h = globalThis;
|
|
29
|
+
let n = h[c];
|
|
30
|
+
n || (n = new f(), Object.defineProperty(h, c, {
|
|
31
|
+
value: n,
|
|
32
32
|
writable: !1,
|
|
33
33
|
configurable: !1,
|
|
34
34
|
enumerable: !1
|
|
35
35
|
}));
|
|
36
|
-
const b =
|
|
36
|
+
const b = n;
|
|
37
37
|
export {
|
|
38
38
|
b as iconsManager
|
|
39
39
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class e {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.subscribers = {}, this.lastPublishedData = {};
|
|
4
4
|
}
|
|
@@ -12,15 +12,15 @@ class c {
|
|
|
12
12
|
this.lastPublishedData[s] = r, this.subscribers[s] && this.subscribers[s].forEach((i) => {
|
|
13
13
|
try {
|
|
14
14
|
i(r);
|
|
15
|
-
} catch (
|
|
16
|
-
console.error(`Error in subscriber for event "${s}":`,
|
|
15
|
+
} catch (c) {
|
|
16
|
+
console.error(`Error in subscriber for event "${s}":`, c);
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
const u = Symbol.for("@cupra/ui-kit/pubsub/1.0.0"), t = globalThis;
|
|
21
|
+
const u = Symbol.for("@cupra/ui-kit/pubsub/1.0.1-canary.0"), t = globalThis;
|
|
22
22
|
let b = t[u];
|
|
23
|
-
b || (b = new
|
|
23
|
+
b || (b = new e(), Object.defineProperty(t, u, {
|
|
24
24
|
value: b,
|
|
25
25
|
writable: !1,
|
|
26
26
|
configurable: !1,
|
|
@@ -28,6 +28,6 @@ b || (b = new c(), Object.defineProperty(t, u, {
|
|
|
28
28
|
}));
|
|
29
29
|
const a = b;
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
e as PubSub,
|
|
32
32
|
a as pubSub
|
|
33
33
|
};
|
|
@@ -5,7 +5,7 @@ class s {
|
|
|
5
5
|
theme: t
|
|
6
6
|
}) => {
|
|
7
7
|
if (!t || !e) return;
|
|
8
|
-
const c = `https://ds-assets.cupra.com/1.0.0/styles/${t}/components/${e}.css`, r = this.getCachedStyleSheetPromise({ url: c });
|
|
8
|
+
const c = `https://ds-assets.cupra.com/1.0.1-canary.0/styles/${t}/components/${e}.css`, r = this.getCachedStyleSheetPromise({ url: c });
|
|
9
9
|
if (r) return r;
|
|
10
10
|
const i = this.fetchStyle({ url: c }).then((n) => (n || this.stylePromises.delete(c), n));
|
|
11
11
|
return this.stylePromises.set(c, i), this.stylePromises.get(c);
|
|
@@ -26,7 +26,7 @@ class s {
|
|
|
26
26
|
return s.instance || (s.instance = new s()), s.instance;
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
const
|
|
29
|
+
const a = s.getInstance();
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
a as stylesRegistry
|
|
32
32
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
2
|
import "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
3
|
import "../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
-
import { unsafeCSS as
|
|
4
|
+
import { unsafeCSS as n, css as o } from "../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/css-tag.js";
|
|
5
5
|
function x(t, ...r) {
|
|
6
|
-
const e = String.raw({ raw: t }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-0"), i =
|
|
7
|
-
return
|
|
6
|
+
const e = String.raw({ raw: t }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-1-canary-0"), i = n(e);
|
|
7
|
+
return o`${i}`;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
10
|
x as cssWithTokens
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../node_modules/.pnpm/@lit_reactive-element@2.1.1/node_modules/@lit/reactive-element/reactive-element.js";
|
|
2
|
-
import { html as
|
|
2
|
+
import { html as n } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/lit-html.js";
|
|
3
3
|
import "../node_modules/.pnpm/lit-element@4.2.1/node_modules/lit-element/lit-element.js";
|
|
4
|
-
import { unsafeHTML as
|
|
5
|
-
function
|
|
6
|
-
const
|
|
7
|
-
return
|
|
4
|
+
import { unsafeHTML as i } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/unsafe-html.js";
|
|
5
|
+
function x(t, ...r) {
|
|
6
|
+
const o = String.raw({ raw: t }, ...r).replace(/(--private-[\w-]+)(?=\s*[):,])/g, "$1-v1-0-1-canary-0"), e = i(o);
|
|
7
|
+
return n`${e}`;
|
|
8
8
|
}
|
|
9
9
|
export {
|
|
10
|
-
|
|
10
|
+
x as htmlWithTokens
|
|
11
11
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cupra/ui-kit",
|
|
3
|
-
"version": "1.0.0",
|
|
3
|
+
"version": "1.0.1-canary.0",
|
|
4
4
|
"description": "Web components library",
|
|
5
5
|
"author": "SEAT S.A.",
|
|
6
6
|
"license": "SEAT S.A. Library EULA 1.0",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"postcss-simple-vars": "^7.0.1",
|
|
96
96
|
"readline": "^1.3.0",
|
|
97
97
|
"shadow-dom-testing-library": "^1.12.0",
|
|
98
|
-
"storybook": "^8.6.
|
|
98
|
+
"storybook": "^8.6.15",
|
|
99
99
|
"ts-morph": "^26.0.0",
|
|
100
100
|
"tsc-alias": "^1.8.13",
|
|
101
101
|
"typescript": "^5.8.2",
|