@cupra/ui-kit 2.0.0-canary.157 → 2.0.0-canary.158

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 (47) hide show
  1. package/dist/cjs/components/ds-icon/iconNames.cjs +1 -1
  2. package/dist/cjs/components/ds-list-item/ds-list-item.cjs +4 -4
  3. package/dist/cjs/components/ds-slider/ds-slider.cjs +11 -11
  4. package/dist/cjs/components/ds-theme-provider/ds-theme-provider.cjs +2 -2
  5. package/dist/cjs/decorators/customUiKitElement.cjs +1 -1
  6. package/dist/cjs/utils/IconsManager.cjs +1 -1
  7. package/dist/cjs/utils/PubSub.cjs +1 -1
  8. package/dist/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
  9. package/dist/cjs/utils/version.cjs +1 -1
  10. package/dist/esm/components/ds-icon/iconNames.js +1 -1
  11. package/dist/esm/components/ds-list-item/ds-list-item.js +11 -10
  12. package/dist/esm/components/ds-slider/ds-slider.js +54 -53
  13. package/dist/esm/components/ds-theme-provider/ds-theme-provider.js +21 -8
  14. package/dist/esm/decorators/customUiKitElement.js +1 -1
  15. package/dist/esm/utils/IconsManager.js +1 -1
  16. package/dist/esm/utils/PubSub.js +1 -1
  17. package/dist/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
  18. package/dist/esm/utils/version.js +1 -1
  19. package/dist/types/components/ds-icon/Icons.type.d.ts +1 -1
  20. package/dist/types/components/ds-icon/iconNames.d.ts +1 -1
  21. package/dist/types/components/ds-slider/ds-slider.d.ts +2 -2
  22. package/dist/types/components/ds-theme-provider/ds-theme-provider.d.ts +2 -0
  23. package/dist/types/components/ds-theme-provider/ds-theme-provider.types.d.ts +1 -0
  24. package/dist-react/cjs/components/ds-icon/iconNames.cjs +1 -1
  25. package/dist-react/cjs/components/ds-list-item/ds-list-item.cjs +4 -4
  26. package/dist-react/cjs/components/ds-slider/ds-slider.cjs +11 -11
  27. package/dist-react/cjs/components/ds-theme-provider/ds-theme-provider.cjs +2 -2
  28. package/dist-react/cjs/decorators/customUiKitElement.cjs +1 -1
  29. package/dist-react/cjs/utils/IconsManager.cjs +1 -1
  30. package/dist-react/cjs/utils/PubSub.cjs +1 -1
  31. package/dist-react/cjs/utils/StylesRegistry/StylesRegistry.cjs +1 -1
  32. package/dist-react/cjs/utils/version.cjs +1 -1
  33. package/dist-react/esm/components/ds-icon/iconNames.js +1 -1
  34. package/dist-react/esm/components/ds-list-item/ds-list-item.js +11 -10
  35. package/dist-react/esm/components/ds-slider/ds-slider.js +54 -53
  36. package/dist-react/esm/components/ds-theme-provider/ds-theme-provider.js +21 -8
  37. package/dist-react/esm/decorators/customUiKitElement.js +1 -1
  38. package/dist-react/esm/utils/IconsManager.js +1 -1
  39. package/dist-react/esm/utils/PubSub.js +1 -1
  40. package/dist-react/esm/utils/StylesRegistry/StylesRegistry.js +1 -1
  41. package/dist-react/esm/utils/version.js +1 -1
  42. package/dist-react/types/components/ds-icon/Icons.type.d.ts +1 -1
  43. package/dist-react/types/components/ds-icon/iconNames.d.ts +1 -1
  44. package/dist-react/types/components/ds-slider/ds-slider.d.ts +2 -2
  45. package/dist-react/types/components/ds-theme-provider/ds-theme-provider.d.ts +2 -0
  46. package/dist-react/types/components/ds-theme-provider/ds-theme-provider.types.d.ts +1 -0
  47. package/package.json +2 -2
@@ -9,21 +9,22 @@ import { __decorate as a } from "../../_virtual/_@oxc-project_runtime@0.122.0/he
9
9
  import { UiKitElement as o } from "../base/UiKitElement.js";
10
10
  import { customUiKitElement as s } from "../../decorators/customUiKitElement.js";
11
11
  import { booleanConverter as c } from "../../utils/booleanConverter.js";
12
- import { e as l } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
12
+ import { uiKitHtml as l } from "../../utils/uiKitHtml.js";
13
+ import { e as u } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/class-map.js";
13
14
  import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/class-map.js";
14
- import { ViewportMixin as u } from "../../mixins/ViewportMixin.js";
15
- import { objectConverter as d } from "../../utils/objectConverter.js";
16
- import { formatNumber as f } from "../../utils/formatNumber/formatNumber.js";
15
+ import { ViewportMixin as d } from "../../mixins/ViewportMixin.js";
16
+ import { objectConverter as f } from "../../utils/objectConverter.js";
17
+ import { formatNumber as p } from "../../utils/formatNumber/formatNumber.js";
17
18
  import "../ds-text-input/ds-text-input.js";
18
- import { getStepValue as p } from "./utils/getStepValue/getStepValue.js";
19
- import { roundToDecimals as m } from "./utils/roundToDecimals/roundToDecimals.js";
20
- import { l as h } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/live.js";
19
+ import { getStepValue as m } from "./utils/getStepValue/getStepValue.js";
20
+ import { roundToDecimals as h } from "./utils/roundToDecimals/roundToDecimals.js";
21
+ import { l as g } from "../../node_modules/.pnpm/lit-html@3.3.1/node_modules/lit-html/directives/live.js";
21
22
  import "../../node_modules/.pnpm/lit@3.3.1/node_modules/lit/directives/live.js";
22
- import { commonStyles as g, currentValueStyles as _, inputResetStyles as v, rangeValueStyles as y, thumbStyles as b, trackStyles as x } from "./styles/common.styles.js";
23
+ import { commonStyles as _, currentValueStyles as v, inputResetStyles as y, rangeValueStyles as b, thumbStyles as x, trackStyles as S } from "./styles/common.styles.js";
23
24
  //#region src/components/ds-slider/ds-slider.ts
24
- var S, C = class extends u(o) {
25
+ var C, w = class extends d(o) {
25
26
  static {
26
- S = this;
27
+ C = this;
27
28
  }
28
29
  constructor(...e) {
29
30
  super(...e), this.variant = "primary", this.min = 0, this.max = 100, this.minLabel = "", this.maxLabel = "", this.step = 1, this.initialValueMin = 0, this.mode = "light", this.locale = void 0, this.localeMatcher = "lookup", this.useGrouping = !0, this.minimumIntegerDigits = 1, this.minimumFractionDigits = 0, this.maximumFractionDigits = 3, this.size = "medium", this.disabled = !1, this.keyboardMode = !1, this._initialValuesApplied = !1, this.getNewValue = (e) => {
@@ -60,7 +61,7 @@ var S, C = class extends u(o) {
60
61
  let n = e.currentTarget, r = this.getRoleById(t), { stepValue: i } = this.computeStep({
61
62
  proposedValue: Number(n.value),
62
63
  role: r
63
- }), a = m({
64
+ }), a = h({
64
65
  value: i,
65
66
  fractionDigits: this.maximumFractionDigits
66
67
  });
@@ -88,12 +89,12 @@ var S, C = class extends u(o) {
88
89
  }
89
90
  static {
90
91
  this.styles = [
91
- g,
92
+ _,
93
+ S,
92
94
  x,
95
+ v,
93
96
  b,
94
- _,
95
- y,
96
- v
97
+ y
97
98
  ];
98
99
  }
99
100
  get isRange() {
@@ -115,7 +116,7 @@ var S, C = class extends u(o) {
115
116
  };
116
117
  }
117
118
  computeStep({ proposedValue: e, role: t }) {
118
- return p({
119
+ return m({
119
120
  step: this.step,
120
121
  min: this.min,
121
122
  max: this.max,
@@ -160,14 +161,14 @@ var S, C = class extends u(o) {
160
161
  this.THUMB_RADIUS_CSS_VAR = "var(--ui-kit-private-slider-thumb-radius, 0px)";
161
162
  }
162
163
  trackPosition(e) {
163
- let t = S.THUMB_RADIUS_CSS_VAR;
164
+ let t = C.THUMB_RADIUS_CSS_VAR;
164
165
  return `calc(${t} + (100% - ${t} * 2) * ${e / 100})`;
165
166
  }
166
167
  trackWidth(e) {
167
- return `calc((100% - ${S.THUMB_RADIUS_CSS_VAR} * 2) * ${e / 100})`;
168
+ return `calc((100% - ${C.THUMB_RADIUS_CSS_VAR} * 2) * ${e / 100})`;
168
169
  }
169
170
  handleChange({ value: e, role: t }) {
170
- let n = m({
171
+ let n = h({
171
172
  value: e,
172
173
  fractionDigits: this.maximumFractionDigits
173
174
  }), r = t === "min" ? "_valueMin" : "_valueMax";
@@ -181,7 +182,7 @@ var S, C = class extends u(o) {
181
182
  })));
182
183
  }
183
184
  formatNumber(e) {
184
- return f({
185
+ return p({
185
186
  value: e,
186
187
  locale: this.locale,
187
188
  ...this.unitStyle && { style: this.unitStyle },
@@ -268,19 +269,19 @@ var S, C = class extends u(o) {
268
269
  `;
269
270
  }
270
271
  getInputTemplate(e) {
271
- let n = this.getRoleById(e), r = this.editingField === n, i = n === "min" ? this._valueMin : this._valueMax, { formattedNumber: a, unitSymbol: o, unitSymbolPosition: s } = this.formatNumber(i), c = this.unitSymbolPosition ?? s, l = this.unitSymbol ?? o, u = l ? c === "left" ? `${l} ${a}` : `${a} ${l}` : `${a}`, d = r ? "number" : "text", f = r ? String(i ?? "") : u, p = e === 1 ? this.inputMinAriaLabel : this.inputMaxAriaLabel, m = this.isRange ? e === 1 ? "Start value" : "End value" : "Value", g = p ?? m;
272
- return t`
272
+ let t = this.getRoleById(e), n = this.editingField === t, r = t === "min" ? this._valueMin : this._valueMax, { formattedNumber: i, unitSymbol: a, unitSymbolPosition: o } = this.formatNumber(r), s = this.unitSymbolPosition ?? o, c = this.unitSymbol ?? a, u = c ? s === "left" ? `${c} ${i}` : `${i} ${c}` : `${i}`, d = n ? "number" : "text", f = n ? String(r ?? "") : u, p = e === 1 ? this.inputMinAriaLabel : this.inputMaxAriaLabel, m = this.isRange ? e === 1 ? "Start value" : "End value" : "Value", h = p ?? m;
273
+ return l`
273
274
  <div class="input-wrapper">
274
275
  <ds-text-input size=${this.sliderSizeToTextInputSize} hide-clear-button>
275
276
  <input
276
277
  class="input-value input-value-${e}"
277
278
  type=${d}
278
- .value=${h(f)}
279
+ .value=${g(f)}
279
280
  step=${String(this.step ?? 1)}
280
281
  ?disabled=${this.disabled}
281
282
  tabindex=${this.disabled ? -1 : 0}
282
283
  aria-disabled=${String(!!this.disabled)}
283
- aria-label=${g}
284
+ aria-label=${h}
284
285
  ?readonly=${this.disabled}
285
286
  @focus=${(t) => this.onInputFocus(t, e)}
286
287
  @blur=${this.onInputBlur}
@@ -302,14 +303,14 @@ var S, C = class extends u(o) {
302
303
  }
303
304
  getSecondaryInputTemplate(n) {
304
305
  let r = this.getRoleById(n) === "min" ? this._valueMin : this._valueMax, { unitSymbol: i } = this.formatNumber(r), a = this.unitSymbol ?? i, o = n === 1 ? this.inputMinAriaLabel : this.inputMaxAriaLabel, s = this.isRange ? n === 1 ? "Start value" : "End value" : "Value", c = o ?? s;
305
- return t`
306
+ return l`
306
307
  <div class="secondary-input-group">
307
308
  <div class="secondary-input-wrapper">
308
309
  <ds-text-input size="xlarge" hide-clear-button>
309
310
  <input
310
311
  class="secondary-input-value secondary-input-value-${n}"
311
312
  type="number"
312
- .value=${h(String(r ?? ""))}
313
+ .value=${g(String(r ?? ""))}
313
314
  step=${String(this.step ?? 1)}
314
315
  ?disabled=${this.disabled}
315
316
  tabindex=${this.disabled ? -1 : 0}
@@ -357,7 +358,7 @@ var S, C = class extends u(o) {
357
358
  let n = this.variant === "secondary";
358
359
  return t`
359
360
  ${this.styleTokens}
360
- <div class=${l(this.containerClasses)}>
361
+ <div class=${u(this.containerClasses)}>
361
362
  ${n ? this.secondaryInputsTemplate : e}
362
363
  <div @touchstart=${this.handleMouseDown} @mousedown=${this.handleMouseDown} class="track" role="presentation">
363
364
  ${this.thumbTemplates}
@@ -369,78 +370,78 @@ var S, C = class extends u(o) {
369
370
  `;
370
371
  }
371
372
  };
372
- a([n({ type: String })], C.prototype, "variant", void 0), a([n({ type: Number })], C.prototype, "min", void 0), a([n({ type: Number })], C.prototype, "max", void 0), a([n({
373
+ a([n({ type: String })], w.prototype, "variant", void 0), a([n({ type: Number })], w.prototype, "min", void 0), a([n({ type: Number })], w.prototype, "max", void 0), a([n({
373
374
  type: String,
374
375
  attribute: "min-label"
375
- })], C.prototype, "minLabel", void 0), a([n({
376
+ })], w.prototype, "minLabel", void 0), a([n({
376
377
  type: String,
377
378
  attribute: "max-label"
378
- })], C.prototype, "maxLabel", void 0), a([n({ type: Number })], C.prototype, "step", void 0), a([n({
379
+ })], w.prototype, "maxLabel", void 0), a([n({ type: Number })], w.prototype, "step", void 0), a([n({
379
380
  type: Number,
380
381
  attribute: "initial-value-min"
381
- })], C.prototype, "initialValueMin", void 0), a([n({
382
+ })], w.prototype, "initialValueMin", void 0), a([n({
382
383
  type: Number,
383
384
  attribute: "initial-value-max"
384
- })], C.prototype, "initialValueMax", void 0), a([n({
385
+ })], w.prototype, "initialValueMax", void 0), a([n({
385
386
  type: Number,
386
387
  attribute: "value-min"
387
- })], C.prototype, "valueMin", void 0), a([n({
388
+ })], w.prototype, "valueMin", void 0), a([n({
388
389
  type: Number,
389
390
  attribute: "value-max"
390
- })], C.prototype, "valueMax", void 0), a([n({
391
+ })], w.prototype, "valueMax", void 0), a([n({
391
392
  type: String,
392
393
  reflect: !0
393
- })], C.prototype, "mode", void 0), a([n({
394
+ })], w.prototype, "mode", void 0), a([n({
394
395
  type: String,
395
396
  attribute: "locale"
396
- })], C.prototype, "locale", void 0), a([n({
397
+ })], w.prototype, "locale", void 0), a([n({
397
398
  type: String,
398
399
  attribute: "locale-matcher"
399
- })], C.prototype, "localeMatcher", void 0), a([n({
400
+ })], w.prototype, "localeMatcher", void 0), a([n({
400
401
  type: String,
401
402
  attribute: "unit-symbol"
402
- })], C.prototype, "unitSymbol", void 0), a([n({
403
+ })], w.prototype, "unitSymbol", void 0), a([n({
403
404
  type: String,
404
405
  attribute: "unit-symbol-position"
405
- })], C.prototype, "unitSymbolPosition", void 0), a([n({
406
+ })], w.prototype, "unitSymbolPosition", void 0), a([n({
406
407
  type: String,
407
408
  attribute: "unit-style"
408
- })], C.prototype, "unitStyle", void 0), a([n({
409
+ })], w.prototype, "unitStyle", void 0), a([n({
409
410
  type: String,
410
411
  attribute: "currency"
411
- })], C.prototype, "currency", void 0), a([n({
412
+ })], w.prototype, "currency", void 0), a([n({
412
413
  type: String,
413
414
  attribute: "unit"
414
- })], C.prototype, "unit", void 0), a([n({
415
+ })], w.prototype, "unit", void 0), a([n({
415
416
  type: String,
416
417
  attribute: "use-grouping",
417
418
  converter: (e) => e === "auto" ? "auto" : typeof e == "boolean" ? e : e === "true" || e === "" ? !0 : e !== "false"
418
- })], C.prototype, "useGrouping", void 0), a([n({
419
+ })], w.prototype, "useGrouping", void 0), a([n({
419
420
  type: Number,
420
421
  attribute: "minimum-integer-digits"
421
- })], C.prototype, "minimumIntegerDigits", void 0), a([n({
422
+ })], w.prototype, "minimumIntegerDigits", void 0), a([n({
422
423
  type: Number,
423
424
  attribute: "minimum-fraction-digits"
424
- })], C.prototype, "minimumFractionDigits", void 0), a([n({
425
+ })], w.prototype, "minimumFractionDigits", void 0), a([n({
425
426
  type: Number,
426
427
  attribute: "maximum-fraction-digits"
427
- })], C.prototype, "maximumFractionDigits", void 0), a([n({
428
+ })], w.prototype, "maximumFractionDigits", void 0), a([n({
428
429
  type: String,
429
430
  attribute: "thousand-separator"
430
- })], C.prototype, "thousandSeparator", void 0), a([n({
431
+ })], w.prototype, "thousandSeparator", void 0), a([n({
431
432
  type: String,
432
433
  attribute: "fraction-separator"
433
- })], C.prototype, "fractionSeparator", void 0), a([n({
434
+ })], w.prototype, "fractionSeparator", void 0), a([n({
434
435
  type: String,
435
- converter: d
436
- })], C.prototype, "size", void 0), a([n({
436
+ converter: f
437
+ })], w.prototype, "size", void 0), a([n({
437
438
  type: Boolean,
438
439
  converter: c
439
- })], C.prototype, "disabled", void 0), a([n({
440
+ })], w.prototype, "disabled", void 0), a([n({
440
441
  type: String,
441
442
  attribute: "input-min-aria-label"
442
- })], C.prototype, "inputMinAriaLabel", void 0), a([n({
443
+ })], w.prototype, "inputMinAriaLabel", void 0), a([n({
443
444
  type: String,
444
445
  attribute: "input-max-aria-label"
445
- })], C.prototype, "inputMaxAriaLabel", void 0), a([i(".track")], C.prototype, "track", void 0), a([r()], C.prototype, "_valueMin", void 0), a([r()], C.prototype, "_valueMax", void 0), a([r()], C.prototype, "editingField", void 0), C = S = a([s("ds-slider")], C);
446
+ })], w.prototype, "inputMaxAriaLabel", void 0), a([i(".track")], w.prototype, "track", void 0), a([r()], w.prototype, "_valueMin", void 0), a([r()], w.prototype, "_valueMax", void 0), a([r()], w.prototype, "editingField", void 0), w = C = a([s("ds-slider")], w);
446
447
  //#endregion
@@ -15,7 +15,7 @@ import { fontsConfig as f } from "../../styles/source/shared/fonts-config.js";
15
15
  //#region src/components/ds-theme-provider/ds-theme-provider.ts
16
16
  var p = class extends o {
17
17
  constructor(...e) {
18
- super(...e), this.loadFonts = !0, this.loadStyles = !0, this.cssLoaded = !1, this.loadedFonts = /* @__PURE__ */ new Set();
18
+ super(...e), this.loadFonts = !0, this.loadStyles = !0, this.loadUnusedStyles = !0, this.cssLoaded = !1, this.loadedFonts = /* @__PURE__ */ new Set();
19
19
  }
20
20
  updated(e) {
21
21
  super.updated(e), e.has("theme") && (r.publish("theme", this.theme), sessionStorage?.setItem(n, this.theme), typeof FontFace < "u" && document?.fonts && this.loadThemeFonts(), this.loadThemeStyles().then(() => {
@@ -40,7 +40,7 @@ var p = class extends o {
40
40
  url('https://ds-assets.cupra.com/fonts/${this.theme}/${n}.otf') format('opentype')`, {
41
41
  style: "normal",
42
42
  weight: e,
43
- display: "swap"
43
+ display: "optional"
44
44
  });
45
45
  try {
46
46
  await i.load(), document.fonts.add(i), this.loadedFonts.add(r);
@@ -49,15 +49,24 @@ var p = class extends o {
49
49
  }
50
50
  }
51
51
  loadThemeStyles() {
52
- return this.loadStyles ? new Promise((e, t) => {
53
- let n = "/2.0.0-canary.157", r = `https://ds-assets.cupra.com${n}/styles/${this.theme}/theme.css`;
54
- if (document.head.querySelector(`link[href="${r}"]`)) e();
52
+ let e = "/2.0.0-canary.158";
53
+ return this.loadUnusedStyles && this.applyUnusedStyles(e), this.loadStyles ? new Promise((t, n) => {
54
+ let r = `https://ds-assets.cupra.com${e}/styles/${this.theme}/theme.css`;
55
+ if (document.head.querySelector(`link[href="${r}"]`)) t();
55
56
  else {
56
- let i = `ui-kit-theme-${n}`, a = document.getElementById(i), o = document.createElement("link");
57
- o.id = i, o.rel = "stylesheet", o.href = r, o.onload = () => e(), o.onerror = () => t(/* @__PURE__ */ Error(`Failed to load theme CSS: ${r}`)), document.head.appendChild(o), a?.remove();
57
+ let i = `ui-kit-theme-${e}`, a = document.getElementById(i), o = document.createElement("link");
58
+ o.id = i, o.rel = "stylesheet", o.href = r, o.onload = () => t(), o.onerror = () => n(/* @__PURE__ */ Error(`Failed to load theme CSS: ${r}`)), document.head.appendChild(o), a?.remove();
58
59
  }
59
60
  }) : Promise.resolve();
60
61
  }
62
+ applyUnusedStyles(e) {
63
+ let t = `https://ds-assets.cupra.com${e}/styles/${this.theme}/unused-styles.css`;
64
+ if (document.head.querySelector(`link[href="${t}"]`)) return;
65
+ let n = `ui-kit-unused-styles-${e}`, r = document.getElementById(n), i = document.createElement("link");
66
+ i.id = n, i.rel = "preload", i.as = "style", i.href = t, i.onload = () => {
67
+ i.rel = "stylesheet";
68
+ }, document.head.appendChild(i), r?.remove();
69
+ }
61
70
  render() {
62
71
  return this.cssLoaded ? a`<slot></slot>` : i;
63
72
  }
@@ -70,5 +79,9 @@ l([s({
70
79
  type: Boolean,
71
80
  converter: d,
72
81
  attribute: "load-styles"
73
- })], p.prototype, "loadStyles", void 0), l([e({ context: t }), s({ type: String })], p.prototype, "theme", void 0), l([c()], p.prototype, "cssLoaded", void 0), l([c()], p.prototype, "loadedFonts", void 0), p = l([u("ds-theme-provider")], p);
82
+ })], p.prototype, "loadStyles", void 0), l([s({
83
+ type: Boolean,
84
+ converter: d,
85
+ attribute: "load-unused-styles"
86
+ })], p.prototype, "loadUnusedStyles", void 0), l([e({ context: t }), s({ type: String })], p.prototype, "theme", void 0), l([c()], p.prototype, "cssLoaded", void 0), l([c()], p.prototype, "loadedFonts", void 0), p = l([u("ds-theme-provider")], p);
74
87
  //#endregion
@@ -11,7 +11,7 @@ function t(t, n) {
11
11
  this.componentName = a;
12
12
  }
13
13
  connectedCallback() {
14
- r.prototype.connectedCallback?.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.157");
14
+ r.prototype.connectedCallback?.call(this), this.setAttribute("data-ui-kit-version", "2.0.0-canary.158");
15
15
  }
16
16
  });
17
17
  };
@@ -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.157"), i = globalThis, a = i[r];
28
+ }, r = Symbol.for("@cupra/ui-kit/icons-manager/2.0.0-canary.158"), i = globalThis, a = i[r];
29
29
  a || (a = new n(), Object.defineProperty(i, r, {
30
30
  value: a,
31
31
  writable: !1,
@@ -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.157"), n = globalThis, r = n[t];
21
+ }, t = Symbol.for("@cupra/ui-kit/pubsub/2.0.0-canary.158"), 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.157/styles/${n}/components/${e}.css`, i = this.getCachedStyleSheetPromise({ url: r });
7
+ let r = `https://ds-assets.cupra.com/2.0.0-canary.158/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);
@@ -1,4 +1,4 @@
1
1
  //#region src/utils/version.ts
2
- var e = "2.0.0-canary.157", t = `--v${e.replaceAll(".", "-")}`;
2
+ var e = "2.0.0-canary.158", t = `--v${e.replaceAll(".", "-")}`;
3
3
  //#endregion
4
4
  export { e as VERSION, t as VERSION_TAG_SUFFIX };
@@ -1 +1 @@
1
- export type Icons = '9-circles' | 'ad-color' | 'ae-color' | 'af-color' | 'ag-color' | 'ai-color' | 'al-color' | 'am-color' | 'an-color' | 'ao-color' | 'ar-color' | 'arrow-down-line' | 'arrow-down' | 'arrow-download' | 'arrow-exit' | 'arrow-expand' | 'arrow-external-link' | 'arrow-left-line' | 'arrow-left' | 'arrow-reload' | 'arrow-right-line' | 'arrow-right' | 'arrow-rotate-360-horizontal' | 'arrow-rotate-360' | 'arrow-switch' | 'arrow-up-line' | 'arrow-up' | 'arrow-upload' | 'at-color' | 'au-color' | 'aw-color' | 'ax-color' | 'az-color' | 'b-color' | 'ba-color' | 'battery-g-4-01' | 'battery-inclined-fill' | 'battery-vertical-100' | 'battery-2-sub-arrows-up' | 'battery-3-sub-arrows-up' | 'bb-color' | 'bd-color' | 'be-color' | 'bell' | 'bf-color' | 'bg-color' | 'bh-color' | 'bi-color' | 'bill' | 'bin' | 'bj-color' | 'bm-color' | 'bn-color' | 'bo-color' | 'book-mark' | 'box' | 'br-color' | 'bs-color' | 'bt-color' | 'bw-color' | 'by-color' | 'bz-color' | 'c-color' | 'ca-color' | 'cable' | 'caf-color' | 'calendar' | 'camera' | 'car-arrow-down' | 'car-compare' | 'car-door' | 'car-frontal' | 'car-imodel' | 'car-in-window' | 'car-lateral' | 'car-model' | 'car-seat' | 'cart-down' | 'cart' | 'cas-color' | 'cd-color' | 'cercle-ribbon-check' | 'ceu-color' | 'cf-color' | 'cg-color' | 'ch-color' | 'charger-acc' | 'charger-type-2' | 'chat-bubble' | 'check' | 'check-mark-circle' | 'ci-color' | 'city' | 'cl-color' | 'clock' | 'cloud-co-2' | 'cm-color' | 'cn-color' | 'cna-color' | 'co-color' | 'coc-color' | 'computer-display' | 'cr-color' | 'credit-card' | 'debit-card' | 'cross-circle' | 'cross' | 'csa-color' | 'cu-color' | 'cv-color' | 'cy-color' | 'cz-color' | 'de-color' | 'dj-color' | 'dk-color' | 'dm-color' | 'do-color' | 'document-check' | 'document-copy' | 'document-download' | 'document-time' | 'document' | 'dot' | 'dz-color' | 'ec-color' | 'eco-color' | 'ee-color' | 'eg-color' | 'electric-station' | 'engine' | 'envelope' | 'equals-sign' | 'er-color' | 'es-color' | 'et-color' | 'eu-color' | 'euro' | 'exclamation-mark-circle' | 'exclamation-mark-triangle' | 'eye-crossed-out' | 'eye' | 'facebook' | 'fi-color' | 'filter' | 'fj-color' | 'fk-color' | 'fm-color' | 'fr-color' | 'fuel-station' | 'ga-color' | 'garage' | 'gb-color' | 'gd-color' | 'ge-color' | 'gear' | 'gg-color' | 'gh-color' | 'gi-color' | 'globe' | 'gm-color' | 'gn-color' | 'gq-color' | 'gr-color' | 'gt-color' | 'gw-color' | 'gy-color' | 'half-star-filled' | 'headlight' | 'heart-filled' | 'heart' | 'highway' | 'hk-color' | 'hn-color' | 'hr-color' | 'ht-color' | 'hu-color' | 'id-color' | 'ie-color' | 'il-color' | 'im-color' | 'in-color' | 'info-circle' | 'info-triangle' | 'instagram' | 'iq-color' | 'ir-color' | 'is-color' | 'it-color' | 'je-color' | 'jm-color' | 'jo-color' | 'jp-color' | 'ke-color' | 'key' | 'kg-color' | 'kh-color' | 'km-color' | 'kn-color' | 'kp-color' | 'kr-color' | 'kw-color' | 'ky-color' | 'kz-color' | 'la-color' | 'label-a-color' | 'label-b-color' | 'label-c-color' | 'label-d-color' | 'label-e-color' | 'label-f-color' | 'label-g-color' | 'label-h-color' | 'label-i-color' | 'label-j-color' | 'label-k-color' | 'label-l-color' | 'label-m-color' | 'lb-color' | 'lc-color' | 'li-color' | 'light' | 'lightning' | 'link' | 'linkedin' | 'list' | 'list-line' | 'lk-color' | 'loader' | 'location-poi' | 'lock-locked' | 'lock-unlocked' | 'logo-light' | 'logo-lockup' | 'logo-wordmark' | 'logo' | 'lr-color' | 'ls-color' | 'lt-color' | 'lu-color' | 'lv-color' | 'ly-color' | 'map' | 'ma-color' | 'magnifying-glass-minus' | 'magnifying-glass-plus' | 'magnifying-glass' | 'math-symbols-square' | 'mc-color' | 'md-color' | 'me-color' | 'menu' | 'mg-color' | 'micro-crossed-out' | 'micro' | 'minus' | 'mk-color' | 'ml-color' | 'mm-color' | 'mn-color' | 'mo-color' | 'mobile' | 'moon' | 'mountains' | 'mr-color' | 'ms-color' | 'mt-color' | 'mu-color' | 'mv-color' | 'mw-color' | 'mx-color' | 'my-color' | 'mz-color' | 'na-color' | 'ne-color' | 'ng-color' | 'ni-color' | 'nl-color' | 'no-color' | 'np-color' | 'nz-color' | 'om-color' | 'pa-color' | 'parking' | 'pause-loading' | 'pause' | 'pcircle' | 'pe-color' | 'pen-paper' | 'pen' | 'person-open-arms' | 'pf-color' | 'pg-color' | 'ph-color' | 'phone-contact' | 'pig-coin' | 'pk-color' | 'pl-color' | 'play' | 'play-circle' | 'plug-charge' | 'plug-regular' | 'plus' | 'position' | 'pr-color' | 'pt-color' | 'pw-color' | 'py-color' | 'qa-color' | 'question-mark' | 'ro-color' | 'road-mountain' | 'road' | 'rs-color' | 'ru-color' | 'rw-color' | 'sa-color' | 'sb-color' | 'scan-qr' | 'sc-color' | 'sd-color' | 'se-color' | 'seat-front' | 'sg-color' | 'sh-color' | 'share' | 'shopping-bag' | 'si-color' | 'sk-color' | 'sl-color' | 'sm-color' | 'sn-color' | 'so-color' | 'speaker-crossed-out' | 'speaker' | 'spray' | 'sr-color' | 'st-color' | 'star-filled' | 'star' | 'store' | 'suitcase' | 'sun' | 'sv-color' | 'sy-color' | 'sz-color' | 'tag' | 'tc-color' | 'td-color' | 'telegram' | 'tg-color' | 'th-color' | 'ticket' | 'tj-color' | 'tl-color' | 'tm-color' | 'tn-color' | 'to-color' | 'tr-color' | 'transmission-automatic' | 'transmission-manual' | 'triple-dot-h' | 'triple-dot-v' | 'tt-color' | 'tw-color' | 'twitter' | 'tz-color' | 'ua-color' | 'ug-color' | 'us-color' | 'user' | 'uy-color' | 'uz-color' | 'vc-color' | 've-color' | 'vg-color' | 'video-camera-crossed-out' | 'video-camera' | 'vimeo' | 'vn-color' | 'vu-color' | 'wall-charger' | 'whatsapp' | 'wheel' | 'wifi' | 'wrench-hammer' | 'ws-color' | 'ww-color' | 'ye-color' | 'youtube' | 'za-color' | 'zero-color' | 'zm-color' | 'zw-color';
1
+ export type Icons = '9-circles' | 'ad-color' | 'ae-color' | 'af-color' | 'ag-color' | 'ai-color' | 'al-color' | 'am-color' | 'an-color' | 'ao-color' | 'ar-color' | 'arrow-down-line' | 'arrow-down' | 'arrow-download' | 'arrow-exit' | 'arrow-expand' | 'arrow-external-link' | 'arrow-left-line' | 'arrow-left' | 'arrow-reload' | 'arrow-right-line' | 'arrow-right' | 'arrow-rotate-360-horizontal' | 'arrow-rotate-360' | 'arrow-switch' | 'arrow-up-line' | 'arrow-up' | 'arrow-upload' | 'at-color' | 'au-color' | 'aw-color' | 'ax-color' | 'az-color' | 'b-color' | 'ba-color' | 'battery-g-4-01' | 'battery-inclined-fill' | 'battery-vertical-100' | 'battery-2-sub-arrows-up' | 'battery-3-sub-arrows-up' | 'bb-color' | 'bd-color' | 'be-color' | 'bell' | 'bf-color' | 'bg-color' | 'bh-color' | 'bi-color' | 'bill' | 'bin' | 'bj-color' | 'bm-color' | 'bn-color' | 'bo-color' | 'book-mark' | 'box' | 'br-color' | 'bs-color' | 'bt-color' | 'bw-color' | 'by-color' | 'bz-color' | 'c-color' | 'ca-color' | 'cable' | 'caf-color' | 'calendar' | 'camera' | 'car-arrow-down' | 'car-compare' | 'car-door' | 'car-frontal' | 'car-imodel' | 'car-in-window' | 'car-lateral' | 'car-model' | 'car-seat' | 'cart-down' | 'cart' | 'cas-color' | 'cd-color' | 'cercle-ribbon-check' | 'ceu-color' | 'cf-color' | 'cg-color' | 'ch-color' | 'charger-acc' | 'charger-type-2' | 'chat-bubble' | 'check' | 'check-mark-circle' | 'ci-color' | 'city' | 'cl-color' | 'clock' | 'cloud-co-2' | 'cm-color' | 'cn-color' | 'cna-color' | 'co-color' | 'coc-color' | 'computer-display' | 'cr-color' | 'credit-card' | 'debit-card' | 'cross-circle' | 'cross' | 'csa-color' | 'cu-color' | 'cv-color' | 'cy-color' | 'cz-color' | 'de-color' | 'dj-color' | 'dk-color' | 'dm-color' | 'do-color' | 'document-check' | 'document-copy' | 'document-download' | 'document-time' | 'document' | 'dot' | 'dz-color' | 'ec-color' | 'eco-color' | 'ee-color' | 'eg-color' | 'electric-station' | 'engine' | 'envelope' | 'equals-sign' | 'er-color' | 'es-color' | 'et-color' | 'eu-color' | 'euro' | 'exclamation-mark-circle' | 'exclamation-mark-triangle' | 'eye-crossed-out' | 'eye' | 'facebook' | 'fi-color' | 'filter' | 'fj-color' | 'fk-color' | 'fm-color' | 'fr-color' | 'fuel-station' | 'ga-color' | 'garage' | 'gb-color' | 'gd-color' | 'ge-color' | 'gear' | 'gg-color' | 'gh-color' | 'gi-color' | 'globe' | 'gm-color' | 'gn-color' | 'gq-color' | 'gr-color' | 'gt-color' | 'gw-color' | 'gy-color' | 'half-star-filled' | 'headlight' | 'heart-filled' | 'heart' | 'highway' | 'hk-color' | 'hn-color' | 'hr-color' | 'ht-color' | 'hu-color' | 'id-color' | 'ie-color' | 'il-color' | 'im-color' | 'in-color' | 'info-circle' | 'info-triangle' | 'instagram' | 'iq-color' | 'ir-color' | 'is-color' | 'it-color' | 'je-color' | 'jm-color' | 'jo-color' | 'jp-color' | 'ke-color' | 'key' | 'kg-color' | 'kh-color' | 'km-color' | 'kn-color' | 'kp-color' | 'kr-color' | 'kw-color' | 'ky-color' | 'kz-color' | 'la-color' | 'label-a-color' | 'label-b-color' | 'label-c-color' | 'label-d-color' | 'label-e-color' | 'label-f-color' | 'label-g-color' | 'label-h-color' | 'label-i-color' | 'label-j-color' | 'label-k-color' | 'label-l-color' | 'label-m-color' | 'lb-color' | 'lc-color' | 'li-color' | 'light' | 'lightning' | 'link' | 'linkedin' | 'list' | 'list-line' | 'lk-color' | 'loader' | 'location-poi' | 'lock-locked' | 'lock-unlocked' | 'logo-light' | 'logo-lockup' | 'logo-wordmark' | 'logo' | 'lr-color' | 'ls-color' | 'lt-color' | 'lu-color' | 'lv-color' | 'ly-color' | 'map' | 'ma-color' | 'magnifying-glass-minus' | 'magnifying-glass-plus' | 'magnifying-glass' | 'math-symbols-square' | 'mc-color' | 'md-color' | 'me-color' | 'menu' | 'mg-color' | 'micro-crossed-out' | 'micro' | 'minus' | 'mk-color' | 'ml-color' | 'mm-color' | 'mn-color' | 'mo-color' | 'mobile' | 'moon' | 'mountains' | 'mr-color' | 'ms-color' | 'mt-color' | 'mu-color' | 'mv-color' | 'mw-color' | 'mx-color' | 'my-color' | 'mz-color' | 'na-color' | 'ne-color' | 'ng-color' | 'ni-color' | 'nl-color' | 'no-color' | 'np-color' | 'nz-color' | 'om-color' | 'pa-color' | 'parking' | 'pause-loading' | 'pause' | 'pcircle' | 'pe-color' | 'pen-paper' | 'pen' | 'person-open-arms' | 'pf-color' | 'pg-color' | 'ph-color' | 'phone-contact' | 'pig-coin' | 'pk-color' | 'pl-color' | 'play' | 'play-circle' | 'plug-charge' | 'plug-regular' | 'plus' | 'position' | 'pr-color' | 'pt-color' | 'pw-color' | 'py-color' | 'qa-color' | 'question-mark' | 'ro-color' | 'road-mountain' | 'road' | 'rs-color' | 'ru-color' | 'rw-color' | 'sa-color' | 'sb-color' | 'scan-qr' | 'sc-color' | 'sd-color' | 'se-color' | 'seat-front' | 'sg-color' | 'sh-color' | 'share' | 'shopping-bag' | 'si-color' | 'sk-color' | 'sl-color' | 'sm-color' | 'sn-color' | 'snowflake' | 'so-color' | 'speaker-crossed-out' | 'speaker' | 'spray' | 'sr-color' | 'st-color' | 'star-filled' | 'star' | 'store' | 'suitcase' | 'sun' | 'sunset' | 'sv-color' | 'sy-color' | 'sz-color' | 'tag' | 'tc-color' | 'td-color' | 'telegram' | 'tg-color' | 'th-color' | 'ticket' | 'tj-color' | 'tl-color' | 'tm-color' | 'tn-color' | 'to-color' | 'tr-color' | 'transmission-automatic' | 'transmission-manual' | 'triple-dot-h' | 'triple-dot-v' | 'tt-color' | 'tw-color' | 'twitter' | 'tz-color' | 'ua-color' | 'ug-color' | 'us-color' | 'user' | 'uy-color' | 'uz-color' | 'vc-color' | 've-color' | 'vg-color' | 'video-camera-crossed-out' | 'video-camera' | 'vimeo' | 'vn-color' | 'vu-color' | 'wall-charger' | 'whatsapp' | 'wheel' | 'wifi' | 'wrench-hammer' | 'ws-color' | 'ww-color' | 'ye-color' | 'youtube' | 'za-color' | 'zero-color' | 'zm-color' | 'zw-color';
@@ -1 +1 @@
1
- export declare const iconNames: readonly ["9-circles", "ad-color", "ae-color", "af-color", "ag-color", "ai-color", "al-color", "am-color", "an-color", "ao-color", "ar-color", "arrow-down", "arrow-down-line", "arrow-download", "arrow-exit", "arrow-expand", "arrow-external-link", "arrow-left", "arrow-left-line", "arrow-reload", "arrow-right", "arrow-right-line", "arrow-rotate-360", "arrow-rotate-360-horizontal", "arrow-switch", "arrow-up", "arrow-up-line", "arrow-upload", "at-color", "au-color", "aw-color", "ax-color", "az-color", "b-color", "ba-color", "battery-g-4-01", "battery-inclined-fill", "battery-vertical-100", "battery-2-sub-arrows-up", "battery-3-sub-arrows-up", "bb-color", "bd-color", "be-color", "bell", "bf-color", "bg-color", "bh-color", "bi-color", "bill", "bin", "bj-color", "bm-color", "bn-color", "bo-color", "book-mark", "box", "br-color", "bs-color", "bt-color", "bw-color", "by-color", "bz-color", "c-color", "ca-color", "cable", "caf-color", "calendar", "camera", "car-arrow-down", "car-compare", "car-door", "car-frontal", "car-imodel", "car-in-window", "car-lateral", "car-model", "car-seat", "cart", "cart-down", "cas-color", "cd-color", "cercle-ribbon-check", "ceu-color", "cf-color", "cg-color", "ch-color", "charger-acc", "charger-type-2", "chat-bubble", "check", "check-mark-circle", "ci-color", "city", "cl-color", "clock", "cloud-co-2", "cm-color", "cn-color", "cna-color", "co-color", "coc-color", "computer-display", "cr-color", "credit-card", "debit-card", "cross", "cross-circle", "csa-color", "cu-color", "cv-color", "cy-color", "cz-color", "de-color", "dj-color", "dk-color", "dm-color", "do-color", "document", "document-check", "document-copy", "document-download", "document-time", "dot", "dz-color", "ec-color", "eco-color", "ee-color", "eg-color", "electric-station", "engine", "envelope", "equals-sign", "er-color", "es-color", "et-color", "eu-color", "euro", "exclamation-mark-circle", "exclamation-mark-triangle", "eye", "eye-crossed-out", "facebook", "fi-color", "filter", "fj-color", "fk-color", "fm-color", "fr-color", "fuel-station", "ga-color", "garage", "gb-color", "gd-color", "ge-color", "gear", "gg-color", "gh-color", "gi-color", "globe", "gm-color", "gn-color", "gq-color", "gr-color", "gt-color", "gw-color", "gy-color", "half-star-filled", "headlight", "heart", "heart-filled", "highway", "hk-color", "hn-color", "hr-color", "ht-color", "hu-color", "id-color", "ie-color", "il-color", "im-color", "in-color", "info-circle", "info-triangle", "instagram", "iq-color", "ir-color", "is-color", "it-color", "je-color", "jm-color", "jo-color", "jp-color", "ke-color", "key", "kg-color", "kh-color", "km-color", "kn-color", "kp-color", "kr-color", "kw-color", "ky-color", "kz-color", "la-color", "label-a-color", "label-b-color", "label-c-color", "label-d-color", "label-e-color", "label-f-color", "label-g-color", "label-h-color", "label-i-color", "label-j-color", "label-k-color", "label-l-color", "label-m-color", "lb-color", "lc-color", "li-color", "light", "lightning", "link", "linkedin", "list", "list-line", "lk-color", "loader", "location-poi", "lock-locked", "lock-unlocked", "logo", "logo-light", "logo-lockup", "logo-wordmark", "lr-color", "ls-color", "lt-color", "lu-color", "lv-color", "ly-color", "map", "ma-color", "magnifying-glass", "magnifying-glass-minus", "magnifying-glass-plus", "math-symbols-square", "mc-color", "md-color", "me-color", "menu", "mg-color", "micro", "micro-crossed-out", "minus", "mk-color", "ml-color", "mm-color", "mn-color", "mo-color", "mobile", "moon", "mountains", "mr-color", "ms-color", "mt-color", "mu-color", "mv-color", "mw-color", "mx-color", "my-color", "mz-color", "na-color", "ne-color", "ng-color", "ni-color", "nl-color", "no-color", "np-color", "nz-color", "om-color", "pa-color", "parking", "pause", "pause-loading", "pcircle", "pe-color", "pen", "pen-paper", "person-open-arms", "pf-color", "pg-color", "ph-color", "phone-contact", "pig-coin", "pk-color", "pl-color", "play", "play-circle", "plug-charge", "plug-regular", "plus", "position", "pr-color", "pt-color", "pw-color", "py-color", "qa-color", "question-mark", "ro-color", "road", "road-mountain", "rs-color", "ru-color", "rw-color", "sa-color", "sb-color", "scan-qr", "sc-color", "sd-color", "se-color", "seat-front", "sg-color", "sh-color", "share", "shopping-bag", "si-color", "sk-color", "sl-color", "sm-color", "sn-color", "so-color", "speaker", "speaker-crossed-out", "spray", "sr-color", "st-color", "star", "star-filled", "store", "suitcase", "sun", "sv-color", "sy-color", "sz-color", "tag", "tc-color", "td-color", "telegram", "tg-color", "th-color", "ticket", "tj-color", "tl-color", "tm-color", "tn-color", "to-color", "tr-color", "transmission-automatic", "transmission-manual", "triple-dot-h", "triple-dot-v", "tt-color", "tw-color", "twitter", "tz-color", "ua-color", "ug-color", "us-color", "user", "uy-color", "uz-color", "vc-color", "ve-color", "vg-color", "video-camera", "video-camera-crossed-out", "vimeo", "vn-color", "vu-color", "wall-charger", "whatsapp", "wheel", "wifi", "wrench-hammer", "ws-color", "ww-color", "ye-color", "youtube", "za-color", "zero-color", "zm-color", "zw-color"];
1
+ export declare const iconNames: readonly ["9-circles", "ad-color", "ae-color", "af-color", "ag-color", "ai-color", "al-color", "am-color", "an-color", "ao-color", "ar-color", "arrow-down", "arrow-down-line", "arrow-download", "arrow-exit", "arrow-expand", "arrow-external-link", "arrow-left", "arrow-left-line", "arrow-reload", "arrow-right", "arrow-right-line", "arrow-rotate-360", "arrow-rotate-360-horizontal", "arrow-switch", "arrow-up", "arrow-up-line", "arrow-upload", "at-color", "au-color", "aw-color", "ax-color", "az-color", "b-color", "ba-color", "battery-g-4-01", "battery-inclined-fill", "battery-vertical-100", "battery-2-sub-arrows-up", "battery-3-sub-arrows-up", "bb-color", "bd-color", "be-color", "bell", "bf-color", "bg-color", "bh-color", "bi-color", "bill", "bin", "bj-color", "bm-color", "bn-color", "bo-color", "book-mark", "box", "br-color", "bs-color", "bt-color", "bw-color", "by-color", "bz-color", "c-color", "ca-color", "cable", "caf-color", "calendar", "camera", "car-arrow-down", "car-compare", "car-door", "car-frontal", "car-imodel", "car-in-window", "car-lateral", "car-model", "car-seat", "cart", "cart-down", "cas-color", "cd-color", "cercle-ribbon-check", "ceu-color", "cf-color", "cg-color", "ch-color", "charger-acc", "charger-type-2", "chat-bubble", "check", "check-mark-circle", "ci-color", "city", "cl-color", "clock", "cloud-co-2", "cm-color", "cn-color", "cna-color", "co-color", "coc-color", "computer-display", "cr-color", "credit-card", "debit-card", "cross", "cross-circle", "csa-color", "cu-color", "cv-color", "cy-color", "cz-color", "de-color", "dj-color", "dk-color", "dm-color", "do-color", "document", "document-check", "document-copy", "document-download", "document-time", "dot", "dz-color", "ec-color", "eco-color", "ee-color", "eg-color", "electric-station", "engine", "envelope", "equals-sign", "er-color", "es-color", "et-color", "eu-color", "euro", "exclamation-mark-circle", "exclamation-mark-triangle", "eye", "eye-crossed-out", "facebook", "fi-color", "filter", "fj-color", "fk-color", "fm-color", "fr-color", "fuel-station", "ga-color", "garage", "gb-color", "gd-color", "ge-color", "gear", "gg-color", "gh-color", "gi-color", "globe", "gm-color", "gn-color", "gq-color", "gr-color", "gt-color", "gw-color", "gy-color", "half-star-filled", "headlight", "heart", "heart-filled", "highway", "hk-color", "hn-color", "hr-color", "ht-color", "hu-color", "id-color", "ie-color", "il-color", "im-color", "in-color", "info-circle", "info-triangle", "instagram", "iq-color", "ir-color", "is-color", "it-color", "je-color", "jm-color", "jo-color", "jp-color", "ke-color", "key", "kg-color", "kh-color", "km-color", "kn-color", "kp-color", "kr-color", "kw-color", "ky-color", "kz-color", "la-color", "label-a-color", "label-b-color", "label-c-color", "label-d-color", "label-e-color", "label-f-color", "label-g-color", "label-h-color", "label-i-color", "label-j-color", "label-k-color", "label-l-color", "label-m-color", "lb-color", "lc-color", "li-color", "light", "lightning", "link", "linkedin", "list", "list-line", "lk-color", "loader", "location-poi", "lock-locked", "lock-unlocked", "logo", "logo-light", "logo-lockup", "logo-wordmark", "lr-color", "ls-color", "lt-color", "lu-color", "lv-color", "ly-color", "map", "ma-color", "magnifying-glass", "magnifying-glass-minus", "magnifying-glass-plus", "math-symbols-square", "mc-color", "md-color", "me-color", "menu", "mg-color", "micro", "micro-crossed-out", "minus", "mk-color", "ml-color", "mm-color", "mn-color", "mo-color", "mobile", "moon", "mountains", "mr-color", "ms-color", "mt-color", "mu-color", "mv-color", "mw-color", "mx-color", "my-color", "mz-color", "na-color", "ne-color", "ng-color", "ni-color", "nl-color", "no-color", "np-color", "nz-color", "om-color", "pa-color", "parking", "pause", "pause-loading", "pcircle", "pe-color", "pen", "pen-paper", "person-open-arms", "pf-color", "pg-color", "ph-color", "phone-contact", "pig-coin", "pk-color", "pl-color", "play", "play-circle", "plug-charge", "plug-regular", "plus", "position", "pr-color", "pt-color", "pw-color", "py-color", "qa-color", "question-mark", "ro-color", "road", "road-mountain", "rs-color", "ru-color", "rw-color", "sa-color", "sb-color", "scan-qr", "sc-color", "sd-color", "se-color", "seat-front", "sg-color", "sh-color", "share", "shopping-bag", "si-color", "sk-color", "sl-color", "sm-color", "sn-color", "snowflake", "so-color", "speaker", "speaker-crossed-out", "spray", "sr-color", "st-color", "star", "star-filled", "store", "suitcase", "sun", "sunset", "sv-color", "sy-color", "sz-color", "tag", "tc-color", "td-color", "telegram", "tg-color", "th-color", "ticket", "tj-color", "tl-color", "tm-color", "tn-color", "to-color", "tr-color", "transmission-automatic", "transmission-manual", "triple-dot-h", "triple-dot-v", "tt-color", "tw-color", "twitter", "tz-color", "ua-color", "ug-color", "us-color", "user", "uy-color", "uz-color", "vc-color", "ve-color", "vg-color", "video-camera", "video-camera-crossed-out", "vimeo", "vn-color", "vu-color", "wall-charger", "whatsapp", "wheel", "wifi", "wrench-hammer", "ws-color", "ww-color", "ye-color", "youtube", "za-color", "zero-color", "zm-color", "zw-color"];
@@ -78,9 +78,9 @@ export declare class DsSlider extends DsSlider_base {
78
78
  protected onInputBlur: (event: FocusEvent) => void;
79
79
  protected onInputKeyDown: (event: KeyboardEvent, id: 1 | 2) => void;
80
80
  protected onThumbKeyDown: (event: KeyboardEvent, id: 1 | 2) => void;
81
- protected getInputTemplate(id: 1 | 2): import("lit").TemplateResult<1>;
81
+ protected getInputTemplate(id: 1 | 2): import("lit").HTMLTemplateResult;
82
82
  protected get inputsTemplate(): import("lit").TemplateResult<1>;
83
- protected getSecondaryInputTemplate(id: 1 | 2): import("lit").TemplateResult<1>;
83
+ protected getSecondaryInputTemplate(id: 1 | 2): import("lit").HTMLTemplateResult;
84
84
  protected get secondaryInputsTemplate(): import("lit").TemplateResult<1>;
85
85
  protected get containerClasses(): {
86
86
  [x: string]: boolean;
@@ -3,6 +3,7 @@ import { LitElement, type PropertyValues, nothing } from 'lit';
3
3
  export declare class DsThemeProvider extends LitElement {
4
4
  loadFonts: DsThemeProviderAttrs['load-fonts'];
5
5
  loadStyles: DsThemeProviderAttrs['load-styles'];
6
+ loadUnusedStyles: DsThemeProviderAttrs['load-unused-styles'];
6
7
  theme: DsThemeProviderAttrs['theme'];
7
8
  private cssLoaded;
8
9
  private loadedFonts;
@@ -10,5 +11,6 @@ export declare class DsThemeProvider extends LitElement {
10
11
  private loadThemeFonts;
11
12
  private loadThemeFont;
12
13
  private loadThemeStyles;
14
+ private applyUnusedStyles;
13
15
  render(): import("lit").TemplateResult<1> | typeof nothing;
14
16
  }
@@ -4,4 +4,5 @@ export interface DsThemeProviderAttrs extends CommonAttrs {
4
4
  theme: Theme;
5
5
  'load-fonts': boolean;
6
6
  'load-styles': boolean;
7
+ 'load-unused-styles': boolean;
7
8
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cupra/ui-kit",
3
- "version": "2.0.0-canary.157",
3
+ "version": "2.0.0-canary.158",
4
4
  "description": "Web components library",
5
5
  "author": "SEAT S.A.",
6
6
  "license": "SEAT S.A. Library EULA 1.0",
@@ -143,7 +143,7 @@
143
143
  "clean-dist:react": "rm -rf ./dist-react",
144
144
  "build-ts": "tsc -p tsconfig.prod.json && tsc-alias -p tsconfig.prod.json",
145
145
  "build-ts:react": "tsc -p tsconfig.react.json && tsc-alias -p tsconfig.react.json",
146
- "build-assets": "pnpm build:tokens && postcss src/styles/source/themes/**/theme.css --dir public/assets/styles --base src/styles/source/themes && node scripts/build-component-styles/build-component-styles.js",
146
+ "build-assets": "pnpm build:tokens && postcss src/styles/source/themes/**/theme.css --dir .tmp/styles --base src/styles/source/themes && node scripts/split-theme-tokens/split-theme-tokens.js && node scripts/build-component-styles/build-component-styles.js",
147
147
  "build-breakpoints": "mkdir -p dist/styles && cp src/styles/source/shared/breakpoints.css dist/styles/breakpoints.css",
148
148
  "build": "pnpm build-assets && pnpm clean-dist && pnpm build-ts && BUILD_FORMAT=esm vite build --emptyOutDir false && BUILD_FORMAT=cjs vite build --emptyOutDir false && pnpm build-breakpoints",
149
149
  "build-cdn": "pnpm build-assets && pnpm clean-dist-cdn && vite build --config vite.cdn.config.js --mode production",