@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.
Files changed (59) hide show
  1. package/dist/cjs/components/ds-breadcrumbs/ds-breadcrumbs.cjs +8 -8
  2. package/dist/cjs/components/ds-date-picker/ds-date-picker.cjs +1 -1
  3. package/dist/cjs/components/ds-text/ds-text.cjs +3 -3
  4. package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
  5. package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
  6. package/dist/cjs/index.cjs +1 -1
  7. package/dist/cjs/utils/IconsManager.cjs +1 -1
  8. package/dist/cjs/utils/PubSub.cjs +1 -1
  9. package/dist/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
  10. package/dist/cjs/utils/componentFactory.cjs +124 -122
  11. package/dist/cjs/utils/cssWithTokens.cjs +1 -1
  12. package/dist/cjs/utils/htmlWithTokens.cjs +1 -1
  13. package/dist/cjs/utils/version.cjs +1 -0
  14. package/dist/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +13 -12
  15. package/dist/esm/components/ds-date-picker/ds-date-picker.js +2 -7
  16. package/dist/esm/components/ds-text/ds-text.js +10 -10
  17. package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
  18. package/dist/esm/decorators/customUiKitElement.js +14 -13
  19. package/dist/esm/index.js +3 -2
  20. package/dist/esm/utils/IconsManager.js +1 -1
  21. package/dist/esm/utils/PubSub.js +1 -1
  22. package/dist/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
  23. package/dist/esm/utils/componentFactory.js +130 -125
  24. package/dist/esm/utils/cssWithTokens.js +1 -1
  25. package/dist/esm/utils/htmlWithTokens.js +1 -1
  26. package/dist/esm/utils/version.js +4 -0
  27. package/dist/types/index.d.ts +1 -0
  28. package/dist/types/utils/componentFactory.d.ts +1 -0
  29. package/dist/types/utils/version.d.ts +2 -0
  30. package/dist-react/cjs/components/ds-breadcrumbs/ds-breadcrumbs.cjs +8 -8
  31. package/dist-react/cjs/components/ds-date-picker/ds-date-picker.cjs +1 -1
  32. package/dist-react/cjs/components/ds-text/ds-text.cjs +3 -3
  33. package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +1 -1
  34. package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
  35. package/dist-react/cjs/index.cjs +1 -1
  36. package/dist-react/cjs/utils/IconsManager.cjs +1 -1
  37. package/dist-react/cjs/utils/PubSub.cjs +1 -1
  38. package/dist-react/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
  39. package/dist-react/cjs/utils/componentFactory.cjs +113 -112
  40. package/dist-react/cjs/utils/cssWithTokens.cjs +1 -1
  41. package/dist-react/cjs/utils/htmlWithTokens.cjs +1 -1
  42. package/dist-react/cjs/utils/version.cjs +1 -0
  43. package/dist-react/esm/components/ds-breadcrumbs/ds-breadcrumbs.js +13 -12
  44. package/dist-react/esm/components/ds-date-picker/ds-date-picker.js +2 -7
  45. package/dist-react/esm/components/ds-text/ds-text.js +10 -10
  46. package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +1 -1
  47. package/dist-react/esm/decorators/customUiKitElement.js +14 -13
  48. package/dist-react/esm/index.js +3 -2
  49. package/dist-react/esm/utils/IconsManager.js +1 -1
  50. package/dist-react/esm/utils/PubSub.js +1 -1
  51. package/dist-react/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
  52. package/dist-react/esm/utils/componentFactory.js +117 -114
  53. package/dist-react/esm/utils/cssWithTokens.js +1 -1
  54. package/dist-react/esm/utils/htmlWithTokens.js +1 -1
  55. package/dist-react/esm/utils/version.js +4 -0
  56. package/dist-react/types/index.d.ts +1 -0
  57. package/dist-react/types/utils/componentFactory.d.ts +1 -0
  58. package/dist-react/types/utils/version.d.ts +2 -0
  59. 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 t } from "../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/if-defined.js";
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 n = {
7
- createIcon: (n) => (r("ds-icon-react", () => import("../components/ds-icon/ds-icon.js")), e`
8
- <ds-icon-react
9
- class=${t(n?.class)}
10
- data-testid=${t(n?.["data-testid"])}
11
- @click=${n?.["@click"]}
12
- @keydown=${n?.["@keydown"]}
13
- icon-name=${n?.["icon-name"]}
14
- color=${t(n?.color)}
15
- background-color=${t(n?.["background-color"])}
16
- size=${t(n?.size)}
17
- aria-label=${t(n?.["aria-label"])}
18
- aria-hidden=${t(n?.["aria-hidden"])}
19
- role=${t(n?.role)}
20
- tabindex=${t(n?.tabindex)}
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
- ${n.children}
23
- </ds-icon-react>
24
+ ${t.children}
25
+ </${i}>
24
26
  `),
25
- createCalendarDay: (n = {}) => (r("ds-calendar-day-react", () => import("../components/ds-calendar-day/ds-calendar-day.js")), e`
26
- <ds-calendar-day-react
27
- class=${t(n?.class)}
28
- day=${t(n?.day)}
29
- size=${t(n?.size)}
30
- ?disabled=${n?.disabled}
31
- ?selected=${n?.selected}
32
- ?today=${n?.today}
33
- ?outside-month=${n?.["outside-month"]}
34
- data-testid=${t(n?.["data-testid"])}
35
- ></ds-calendar-day-react>
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: (n = {}) => (r("ds-button-react", () => import("../components/ds-button/ds-button.js")), e`
38
- <ds-button-react
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
- orientation=${t?.orientation ?? "horizontal"}
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
- </ds-divider-react>
58
+ ${t.children}
59
+ </${o}>
67
60
  `),
68
- createIconButton: (n = {}) => (r("ds-icon-button-react", () => import("../components/ds-icon-button/ds-icon-button.js")), e`
69
- <ds-icon-button-react
70
- class=${n?.class}
71
- @click=${n?.["@click"]}
72
- size=${t(n?.size)}
73
- variant=${n?.variant ?? "primary"}
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
- ${n.children}
85
- </ds-icon-button-react>
68
+ </${s}>
86
69
  `),
87
- createLoaderSpinner: (t = {}) => (r("ds-loader-spinner-react", () => import("../components/ds-loader-spinner/ds-loader-spinner.js")), e`
88
- <ds-loader-spinner-react
89
- ?show=${t?.show}
90
- orientation=${t?.orientation ?? "row"}
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
- ></ds-loader-spinner-react>
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: (n = {}) => (r("ds-skeleton-react", () => import("../components/ds-skeleton/ds-skeleton.js")), e`
95
- <ds-skeleton-react
96
- class=${t(n?.class)}
97
- data-testid=${t(n?.["data-testid"])}
98
- variant=${t(n?.variant)}
99
- width=${t(n?.width)}
100
- height=${t(n?.height)}
101
- animation=${t(n?.animation)}
102
- ></ds-skeleton-react>
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: (t) => (r("ds-toast-message-react", () => import("../components/ds-toast-message/ds-toast-message.js")), e`
105
- <ds-toast-message-react
106
- data-id="${t["data-id"]}"
107
- data-template="${t["data-template"]}"
108
- title="${t.title}"
109
- text="${t.text}"
110
- status="${t.status}"
111
- ></ds-toast-message-react>
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: (t) => (r("ds-inline-alert-react", () => import("../components/ds-inline-alert/ds-inline-alert.js")), e`
114
- <ds-inline-alert-react
115
- title="${t.title}"
116
- text="${t.text}"
117
- status="${t.status}"
118
- ?show=${t.show ?? !0}
119
- ></ds-inline-alert-react>
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: (n = {}) => (r("ds-tooltip-react", () => import("../components/ds-tooltip/ds-tooltip.js")), e`
122
- <ds-tooltip-react
123
- mode=${t(n.mode)}
124
- ?show=${n.show ?? !1}
125
- ?disable-hover-listener=${n?.["disable-hover-listener"]}
126
- ?disable-focus-listener=${n?.["disable-focus-listener"]}
127
- ?disable-press-listener=${n?.["disable-press-listener"]}
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
- ${n.children}
130
- <div slot="content">${n.content}</div>
131
- </ds-tooltip-react>
132
+ ${t.children}
133
+ <div slot="content">${t.content}</div>
134
+ </${p}>
132
135
  `)
133
136
  };
134
- function r(e, t) {
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 { n as reactFactory };
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-113"))}`;
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-113"))}`;
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 };
@@ -0,0 +1,4 @@
1
+ //#region src/utils/version.ts
2
+ var e = "2.0.0-canary.115", t = `--v${e.replaceAll(".", "-")}`;
3
+ //#endregion
4
+ export { e as VERSION, t as VERSION_TAG_SUFFIX };
@@ -1,2 +1,3 @@
1
1
  import './components/index';
2
2
  export { iconNames } from './components/ds-icon/iconNames.ts';
3
+ export { VERSION, VERSION_TAG_SUFFIX } from './utils/version.ts';
@@ -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
  }>;
@@ -0,0 +1,2 @@
1
+ export declare const VERSION: string;
2
+ export declare const VERSION_TAG_SUFFIX: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cupra/ui-kit",
3
- "version": "2.0.0-canary.113",
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.3",
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",