@telefonica/mistica 16.5.0 → 16.6.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.
Files changed (74) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/callout.js +27 -15
  3. package/dist/card.css-mistica.js +5 -5
  4. package/dist/card.d.ts +9 -1
  5. package/dist/card.js +611 -475
  6. package/dist/community/advanced-data-card.css-mistica.js +14 -11
  7. package/dist/community/advanced-data-card.css.d.ts +1 -0
  8. package/dist/community/advanced-data-card.d.ts +1 -1
  9. package/dist/community/advanced-data-card.js +172 -85
  10. package/dist/cover-hero.css-mistica.js +14 -11
  11. package/dist/cover-hero.css.d.ts +1 -0
  12. package/dist/cover-hero.d.ts +1 -0
  13. package/dist/cover-hero.js +101 -59
  14. package/dist/empty-state.js +24 -15
  15. package/dist/header.css-mistica.js +6 -3
  16. package/dist/header.css.d.ts +1 -0
  17. package/dist/header.d.ts +3 -2
  18. package/dist/header.js +148 -79
  19. package/dist/hero.css-mistica.js +11 -8
  20. package/dist/hero.css.d.ts +1 -0
  21. package/dist/hero.d.ts +2 -1
  22. package/dist/hero.js +102 -68
  23. package/dist/highlighted-card.js +32 -23
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +4 -0
  26. package/dist/maybe-dismissable.js +8 -5
  27. package/dist/meter.d.ts +23 -0
  28. package/dist/meter.js +400 -0
  29. package/dist/package-version.js +1 -1
  30. package/dist/sheet-common.css-mistica.js +16 -10
  31. package/dist/sheet-common.css.d.ts +3 -1
  32. package/dist/sheet-common.js +78 -70
  33. package/dist/sheet-info.css-mistica.js +15 -4
  34. package/dist/sheet-info.css.d.ts +2 -0
  35. package/dist/sheet-info.d.ts +3 -0
  36. package/dist/sheet-info.js +61 -43
  37. package/dist/sheet-native.js +59 -48
  38. package/dist/sheet-types.d.ts +6 -1
  39. package/dist/sheet-web.js +6 -4
  40. package/dist/text-tokens.d.ts +10 -0
  41. package/dist/text-tokens.js +54 -38
  42. package/dist/theme-context-provider.js +60 -50
  43. package/dist/theme.d.ts +3 -2
  44. package/dist/utils/headings.d.ts +2 -0
  45. package/dist/utils/headings.js +11 -0
  46. package/dist/utils/types.d.ts +1 -0
  47. package/dist-es/callout.js +55 -43
  48. package/dist-es/card.css-mistica.js +2 -2
  49. package/dist-es/card.js +721 -588
  50. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  51. package/dist-es/community/advanced-data-card.js +217 -130
  52. package/dist-es/cover-hero.css-mistica.js +3 -3
  53. package/dist-es/cover-hero.js +132 -90
  54. package/dist-es/empty-state.js +40 -31
  55. package/dist-es/header.css-mistica.js +2 -2
  56. package/dist-es/header.js +174 -104
  57. package/dist-es/hero.css-mistica.js +2 -2
  58. package/dist-es/hero.js +150 -115
  59. package/dist-es/highlighted-card.js +36 -27
  60. package/dist-es/index.js +1839 -1838
  61. package/dist-es/maybe-dismissable.js +17 -14
  62. package/dist-es/meter.js +346 -0
  63. package/dist-es/package-version.js +1 -1
  64. package/dist-es/sheet-common.css-mistica.js +2 -2
  65. package/dist-es/sheet-common.js +124 -116
  66. package/dist-es/sheet-info.css-mistica.js +2 -2
  67. package/dist-es/sheet-info.js +74 -56
  68. package/dist-es/sheet-native.js +59 -48
  69. package/dist-es/sheet-web.js +10 -8
  70. package/dist-es/style.css +1 -1
  71. package/dist-es/text-tokens.js +30 -20
  72. package/dist-es/theme-context-provider.js +88 -78
  73. package/dist-es/utils/headings.js +2 -0
  74. package/package.json +2 -1
@@ -13,12 +13,12 @@ const e = {
13
13
  en: "Hide password",
14
14
  de: "Passwort verbergen",
15
15
  pt: "esconder a senha"
16
- }, o = {
16
+ }, s = {
17
17
  es: "Cargando",
18
18
  en: "Loading",
19
19
  de: "Wird gespeichert",
20
20
  pt: "Carregando"
21
- }, s = {
21
+ }, o = {
22
22
  es: "Se abre en ventana nueva",
23
23
  en: "Opens in a new window",
24
24
  de: "Wird in neuem Fenster ge\xf6ffnet",
@@ -73,12 +73,12 @@ const e = {
73
73
  en: "CVV",
74
74
  de: "CVV",
75
75
  pt: "CVV"
76
- }, C = {
76
+ }, b = {
77
77
  es: "CVV incorrecto",
78
78
  en: "Incorrect CVV",
79
79
  de: "Falsche CVV",
80
80
  pt: "CVV incorreto"
81
- }, b = {
81
+ }, C = {
82
82
  es: "Mostrar ayuda CVV",
83
83
  en: "Show CVV help",
84
84
  de: "CVV-Hilfe anzeigen",
@@ -103,27 +103,27 @@ const e = {
103
103
  en: "Invalid date",
104
104
  de: "Datum ung\xfcltig",
105
105
  pt: "Data inv\xe1lida"
106
- }, L = {
106
+ }, $ = {
107
107
  es: "No es un n\xfamero de tarjeta v\xe1lido",
108
108
  en: "The card number is not valid",
109
109
  de: "Kartennummer ung\xfcltig",
110
110
  pt: "N\xe3o \xe9 um n\xfamero de cart\xe3o v\xe1lido"
111
- }, A = {
111
+ }, L = {
112
112
  es: "Fecha no permitida",
113
113
  en: "Invalid date",
114
114
  de: "Unzul\xe4ssiges Datum",
115
115
  pt: "Data n\xe3o permitida"
116
- }, S = {
116
+ }, A = {
117
117
  es: "Email incorrecto",
118
118
  en: "Invalid email",
119
119
  de: "Falsche E-Mail-Adresse",
120
120
  pt: "Email incorreto"
121
- }, M = {
121
+ }, S = {
122
122
  es: "IBAN incorrecto",
123
123
  en: "Incorrect IBAN",
124
124
  de: "Falsche IBAN",
125
125
  pt: "IBAN incorreto"
126
- }, $ = {
126
+ }, M = {
127
127
  es: "1$s de 2$s caracteres",
128
128
  en: "1$s of 2$s characters",
129
129
  de: "1$s von 2$s Zeichen",
@@ -148,12 +148,12 @@ const e = {
148
148
  en: "Open navigation menu",
149
149
  de: "Navigationsmen\xfc \xf6ffnen",
150
150
  pt: "Abrir menu de navega\xe7\xe3o"
151
- }, D = {
151
+ }, I = {
152
152
  es: "Cerrar men\xfa de navegaci\xf3n",
153
153
  en: "Close navigation menu",
154
154
  de: "Navigationsmen\xfc schlie\xdfen",
155
155
  pt: "Fechar menu de navega\xe7\xe3o"
156
- }, I = {
156
+ }, D = {
157
157
  es: "Abrir submen\xfa",
158
158
  en: "Open submenu",
159
159
  de: "Untermen\xfc \xf6ffnen",
@@ -198,12 +198,12 @@ const e = {
198
198
  en: "Continue",
199
199
  de: "Fortfahren",
200
200
  pt: "Continuar"
201
- }, H = {
201
+ }, z = {
202
202
  es: "completo",
203
203
  en: "completed",
204
204
  de: "vollendet",
205
205
  pt: "conclu\xeddo"
206
- }, z = {
206
+ }, H = {
207
207
  es: "Paso 1$s de 2$s",
208
208
  en: "Step 1$s of 2$s",
209
209
  de: "Schritt 1$s von 2$s",
@@ -228,12 +228,12 @@ const e = {
228
228
  en: "Decrease value",
229
229
  de: "Wert verringern",
230
230
  pt: "diminuir valor"
231
- }, K = {
231
+ }, G = {
232
232
  es: "cantidad",
233
233
  en: "quantity",
234
234
  de: "menge",
235
235
  pt: "quantidade"
236
- }, G = {
236
+ }, K = {
237
237
  es: "m\xednimo",
238
238
  en: "minimum of",
239
239
  de: "minimal",
@@ -283,12 +283,12 @@ const e = {
283
283
  en: "hour",
284
284
  de: "Stunde",
285
285
  pt: "hora"
286
- }, oe = {
286
+ }, se = {
287
287
  es: "horas",
288
288
  en: "hours",
289
289
  de: "Stunden",
290
290
  pt: "horas"
291
- }, se = {
291
+ }, oe = {
292
292
  es: "minuto",
293
293
  en: "minute",
294
294
  de: "Minute",
@@ -343,15 +343,25 @@ const e = {
343
343
  en: "good",
344
344
  de: "gut",
345
345
  pt: "bom"
346
- }, Ce = {
346
+ }, be = {
347
347
  es: "muy bueno",
348
348
  en: "very good",
349
349
  de: "sehr gut",
350
350
  pt: "muito bom"
351
- }, be = {
351
+ }, Ce = {
352
352
  es: "1$s de 2$s",
353
353
  en: "1$s out of 2$s",
354
354
  de: "1$s von 2$s",
355
355
  pt: "1$s de 2$s"
356
+ }, he = {
357
+ es: "Indicador de progreso con 1$s secciones, total 2$s% de 100%.",
358
+ en: "Gauge chart 1$s segments, total 2$s% out of 100%.",
359
+ de: "Fortschrittsanzeige mit 1$s Abschnitten, insgesamt 2$s% von 100%.",
360
+ pt: "Indicador de progresso com 1$s se\xe7\xf5es, total 2$s% de 100%."
361
+ }, ve = {
362
+ es: "Secci\xf3n 1$s: 2$s%",
363
+ en: "Segment 1$s: 2$s%",
364
+ de: "Abschnitt 1$s: 2$s%",
365
+ pt: "Se\xe7\xe3o 1$s: 2$s%"
356
366
  };
357
- export { P as backNavigationBar, F as carouselNextButton, O as carouselPrevButton, k as clearButton, B as closeButtonLabel, D as closeNavigationMenu, Z as counterDecreaseLabel, W as counterIncreaseLabel, J as counterMaxValue, G as counterMinValue, K as counterQuantity, q as counterRemoveLabel, d as dialogAcceptButton, i as dialogCancelButton, t as disablePasswordVisibility, n as enablePasswordVisibility, e as expirationDatePlaceholder, C as formCreditCardCvvError, g as formCreditCardCvvLabel, f as formCreditCardCvvTooltipAmex, v as formCreditCardCvvTooltipVisaMc, h as formCreditCardCvvTooltipVisaMcButtonClose, b as formCreditCardCvvTooltipVisaMcButtonOpen, V as formCreditCardExpirationError, p as formCreditCardExpirationLabel, L as formCreditCardNumberError, m as formCreditCardNumberLabel, A as formDateOutOfRangeError, S as formEmailError, c as formErrorsAlertMessage, u as formFieldErrorIsMandatory, l as formFieldOptionalLabelSuffix, M as formIbanError, E as formSearchClear, $ as formTextMultilineMaxCount, r as linkOpensInCurrentPage, s as linkOpensInNewTab, o as loading, I as mainNavigationBarOpenSectionMenu, N as mainNavigationBarSectionSeeAll, y as menuLabelSuffix, a as modalClose, x as openNavigationMenu, T as pauseIconButtonLabel, j as pinFieldInputLabel, w as playIconButtonLabel, H as progressBarCompletedLabel, z as progressBarStepLabel, me as ratingBadLabel, ge as ratingGoodLabel, be as ratingQuantitativeLabel, pe as ratingRegularLabel, ue as ratingVeryBadLabel, Ce as ratingVeryGoodLabel, R as sheetConfirmButton, le as tableActionsHeaderLabel, _ as timerAnd, ee as timerDayLongLabel, ne as timerDaysLongLabel, Q as timerDaysShortLabel, de as timerDisplayMinutesLabel, ce as timerDisplaySecondsLabel, te as timerHourLongLabel, oe as timerHoursLongLabel, U as timerHoursShortLabel, se as timerMinuteLongLabel, re as timerMinutesLongLabel, Y as timerMinutesShortLabel, ae as timerSecondLongLabel, ie as timerSecondsLongLabel, X as timerSecondsShortLabel };
367
+ export { P as backNavigationBar, F as carouselNextButton, O as carouselPrevButton, k as clearButton, B as closeButtonLabel, I as closeNavigationMenu, Z as counterDecreaseLabel, W as counterIncreaseLabel, J as counterMaxValue, K as counterMinValue, G as counterQuantity, q as counterRemoveLabel, d as dialogAcceptButton, i as dialogCancelButton, t as disablePasswordVisibility, n as enablePasswordVisibility, e as expirationDatePlaceholder, b as formCreditCardCvvError, g as formCreditCardCvvLabel, f as formCreditCardCvvTooltipAmex, v as formCreditCardCvvTooltipVisaMc, h as formCreditCardCvvTooltipVisaMcButtonClose, C as formCreditCardCvvTooltipVisaMcButtonOpen, V as formCreditCardExpirationError, p as formCreditCardExpirationLabel, $ as formCreditCardNumberError, m as formCreditCardNumberLabel, L as formDateOutOfRangeError, A as formEmailError, c as formErrorsAlertMessage, u as formFieldErrorIsMandatory, l as formFieldOptionalLabelSuffix, S as formIbanError, E as formSearchClear, M as formTextMultilineMaxCount, r as linkOpensInCurrentPage, o as linkOpensInNewTab, s as loading, D as mainNavigationBarOpenSectionMenu, N as mainNavigationBarSectionSeeAll, y as menuLabelSuffix, ve as meterSectionLabel, he as meterTotalLabel, a as modalClose, x as openNavigationMenu, T as pauseIconButtonLabel, j as pinFieldInputLabel, w as playIconButtonLabel, z as progressBarCompletedLabel, H as progressBarStepLabel, me as ratingBadLabel, ge as ratingGoodLabel, Ce as ratingQuantitativeLabel, pe as ratingRegularLabel, ue as ratingVeryBadLabel, be as ratingVeryGoodLabel, R as sheetConfirmButton, le as tableActionsHeaderLabel, _ as timerAnd, ee as timerDayLongLabel, ne as timerDaysLongLabel, Q as timerDaysShortLabel, de as timerDisplayMinutesLabel, ce as timerDisplaySecondsLabel, te as timerHourLongLabel, se as timerHoursLongLabel, U as timerHoursShortLabel, oe as timerMinuteLongLabel, re as timerMinutesLongLabel, Y as timerMinutesShortLabel, ae as timerSecondLongLabel, ie as timerSecondsLongLabel, X as timerSecondsShortLabel };
@@ -28,81 +28,90 @@ function _object_spread(target) {
28
28
  return target;
29
29
  }
30
30
  import { jsxs as P, Fragment as _, jsx as r } from "react/jsx-runtime";
31
- import * as i from "react";
31
+ import * as n from "react";
32
32
  import { assignInlineVars as v } from "@vanilla-extract/dynamic";
33
- import { DialogRoot as I } from "./dialog-context.js";
33
+ import { DialogRoot as $ } from "./dialog-context.js";
34
34
  import y from "./screen-size-context-provider.js";
35
- import { dimensions as F, getMisticaLinkComponent as N, NAVBAR_HEIGHT_MOBILE as $ } from "./theme.js";
36
- import { getPlatform as E, isInsideNovumNativeApp as j } from "./utils/platform.js";
37
- import z from "./theme-context.js";
35
+ import { dimensions as F, getMisticaLinkComponent as N, NAVBAR_HEIGHT_MOBILE as j } from "./theme.js";
36
+ import { getPlatform as E, isInsideNovumNativeApp as z } from "./utils/platform.js";
37
+ import L from "./theme-context.js";
38
38
  import { useIsomorphicLayoutEffect as T } from "./hooks.js";
39
- import L from "./tab-focus.js";
40
- import A from "./modal-context-provider.js";
41
- import B from "./tooltip-context-provider.js";
42
- import { DocumentVisibilityProvider as G } from "./utils/document-visibility.js";
43
- import { AspectRatioSupportProvider as W } from "./utils/aspect-ratio-support.js";
44
- import { TrackingConfig as q } from "./utils/analytics.js";
39
+ import A from "./tab-focus.js";
40
+ import B from "./modal-context-provider.js";
41
+ import G from "./tooltip-context-provider.js";
42
+ import { DocumentVisibilityProvider as W } from "./utils/document-visibility.js";
43
+ import { AspectRatioSupportProvider as q } from "./utils/aspect-ratio-support.js";
44
+ import { TrackingConfig as K } from "./utils/analytics.js";
45
45
  import { vars as w } from "./skins/skin-contract.css-mistica.js";
46
- import { fromHexToRgb as K } from "./utils/color.js";
47
- import { defaultTextPresetsConfig as J, defaultBorderRadiiConfig as Q } from "./skins/defaults.js";
46
+ import { fromHexToRgb as J } from "./utils/color.js";
47
+ import { defaultTextPresetsConfig as Q, defaultBorderRadiiConfig as S } from "./skins/defaults.js";
48
48
  import { isClientSide as H } from "./utils/environment.js";
49
- import { PACKAGE_VERSION as S } from "./package-version.js";
49
+ import { PACKAGE_VERSION as R } from "./package-version.js";
50
50
  import { SnackbarRoot as U } from "./snackbar-context.js";
51
51
  import { mapToWeight as O } from "./text.js";
52
52
  import { tabletOrSmaller as X } from "./media-queries.css-mistica.js";
53
53
  import { themeVarsContract as Y, textPresetResponsiveVarsContract as Z, themeVars as ee } from "./theme-context.css-mistica.js";
54
54
  import { localeToLanguage as te } from "./utils/locale.js";
55
55
  if (process.env.NODE_ENV !== "production" && H()) {
56
- if (window.__mistica_version__ && window.__mistica_version__ !== S) throw new Error("There is more than one version of @telefonica/mistica running on the same page");
57
- window.__mistica_version__ = S;
56
+ if (window.__mistica_version__ && window.__mistica_version__ !== R) throw new Error("There is more than one version of @telefonica/mistica running on the same page");
57
+ window.__mistica_version__ = R;
58
58
  }
59
59
  const re = "(prefers-color-scheme: dark)", oe = ()=>{
60
- const [e, l] = i.useState(!1);
60
+ const [e, c] = n.useState(!1);
61
61
  return T(()=>{
62
62
  if (!window.matchMedia) return;
63
- const n = window.matchMedia(re), s = ()=>{
64
- l(n.matches);
63
+ const a = window.matchMedia(re), i = ()=>{
64
+ c(a.matches);
65
65
  };
66
- return n.addEventListener("change", s), s(), ()=>{
67
- n.removeEventListener("change", s);
66
+ return a.addEventListener("change", i), i(), ()=>{
67
+ a.removeEventListener("change", i);
68
68
  };
69
69
  }, []), e;
70
70
  }, se = ()=>(e)=>e, ie = (e)=>({
71
- headerMobileHeight: (e == null ? void 0 : e.headerMobileHeight) === "mistica" ? $ : e == null ? void 0 : e.headerMobileHeight
71
+ headerMobileHeight: (e == null ? void 0 : e.headerMobileHeight) === "mistica" ? j : e == null ? void 0 : e.headerMobileHeight
72
72
  }), ne = ()=>{
73
- const e = i.useRef(null), [l, n] = i.useState(!1), [s, h] = i.useState(!0);
73
+ const e = n.useRef(null), [c, a] = n.useState(!1), [i, g] = n.useState(!0);
74
74
  return T(()=>{
75
- var m;
76
- if (s) h(!1);
75
+ var d;
76
+ if (i) g(!1);
77
77
  else {
78
- const p = (m = e.current) == null ? void 0 : m.parentElement;
79
- p && (p.style.isolation = "isolate", n(!0));
78
+ const u = (d = e.current) == null ? void 0 : d.parentElement;
79
+ u && (u.style.isolation = "isolate", a(!0));
80
80
  }
81
81
  }, [
82
- s
83
- ]), l || !H() || s ? null : /* @__PURE__ */ r("div", {
82
+ i
83
+ ]), c || !H() || i ? null : /* @__PURE__ */ r("div", {
84
84
  ref: e,
85
85
  style: {
86
86
  display: "none"
87
87
  }
88
88
  });
89
89
  }, ae = (param)=>{
90
- let { theme: e, children: l, as: n, withoutStyles: s = !1 } = param;
90
+ let { theme: e, children: c, as: a, withoutStyles: i = !1 } = param;
91
91
  var _e_colorScheme, _e_skin_borderRadii;
92
- const h = oe(), m = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", p = e.skin.colors, R = _object_spread({}, e.skin.colors, e.skin.darkModeColors), g = m === "auto" && h || m === "dark", d = g ? R : p, b = te(e.i18n.locale), k = i.useCallback((o)=>o[b] || o.en, [
92
+ const g = oe(), d = (_e_colorScheme = e.colorScheme) !== null && _e_colorScheme !== void 0 ? _e_colorScheme : "auto", u = e.skin.colors, V = _object_spread({}, e.skin.colors, e.skin.darkModeColors), h = d === "auto" && g || d === "dark", p = h ? V : u, b = te(e.i18n.locale), k = n.useCallback(function(o) {
93
+ for(var _len = arguments.length, s = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++){
94
+ s[_key - 1] = arguments[_key];
95
+ }
96
+ const t = o[b] || o.en;
97
+ return s.length ? t.replace(/\d+\$s/g, (l)=>{
98
+ var _s_;
99
+ return String((_s_ = s[parseInt(l) - 1]) !== null && _s_ !== void 0 ? _s_ : l);
100
+ }) : t;
101
+ }, [
93
102
  b
94
- ]), c = i.useMemo(()=>{
103
+ ]), m = n.useMemo(()=>{
95
104
  const o = _object_spread({
96
105
  platform: E(),
97
- insideNovumNativeApp: j()
98
- }, e.platformOverrides), a = Object.entries(J).map((param)=>{
99
- let [u, x] = param;
106
+ insideNovumNativeApp: z()
107
+ }, e.platformOverrides), s = Object.entries(Q).map((param)=>{
108
+ let [l, x] = param;
100
109
  var f;
101
110
  return {
102
- [u]: _object_spread({}, x, (f = e.skin.textPresets) == null ? void 0 : f[u])
111
+ [l]: _object_spread({}, x, (f = e.skin.textPresets) == null ? void 0 : f[l])
103
112
  };
104
- }), t = Object.assign({}, ...a);
105
- var _e_useHrefDecorator, _e_preventCopyInFormFields;
113
+ }), t = Object.assign({}, ...s);
114
+ var _e_skin_borderRadii, _e_useHrefDecorator, _e_preventCopyInFormFields;
106
115
  return {
107
116
  skinName: e.skin.name,
108
117
  i18n: _object_spread({}, e.i18n),
@@ -112,39 +121,40 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
112
121
  logEvent: ()=>Promise.resolve(),
113
122
  eventFormat: "universal-analytics"
114
123
  }, e.analytics),
115
- colorValues: d,
124
+ colorValues: p,
116
125
  dimensions: _object_spread({}, F, ie(e.dimensions)),
117
126
  textPresets: t,
127
+ borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii : S,
118
128
  Link: N(e.Link),
119
- isDarkMode: g,
129
+ isDarkMode: h,
120
130
  isIos: E(o) === "ios",
121
131
  useHrefDecorator: (_e_useHrefDecorator = e.useHrefDecorator) !== null && _e_useHrefDecorator !== void 0 ? _e_useHrefDecorator : se,
122
132
  t: k,
123
133
  preventCopyInFormFields: (_e_preventCopyInFormFields = e.preventCopyInFormFields) !== null && _e_preventCopyInFormFields !== void 0 ? _e_preventCopyInFormFields : !1
124
134
  };
125
135
  }, [
126
- d,
136
+ p,
127
137
  e,
128
- g,
138
+ h,
129
139
  k
130
- ]), V = i.useMemo(()=>Object.fromEntries(Object.entries(d).map((param)=>{
131
- let [o, a] = param;
140
+ ]), D = n.useMemo(()=>Object.fromEntries(Object.entries(p).map((param)=>{
141
+ let [o, s] = param;
132
142
  let t = "";
133
- if (a.startsWith("#")) {
134
- const [u, x, f] = K(a);
135
- t = `${u}, ${x}, ${f}`;
143
+ if (s.startsWith("#")) {
144
+ const [l, x, f] = J(s);
145
+ t = `${l}, ${x}, ${f}`;
136
146
  }
137
147
  return [
138
148
  o,
139
149
  t
140
150
  ];
141
151
  })), [
142
- d
143
- ]), D = i.useMemo(()=>{
144
- const o = Object.entries(c.textPresets).map((param)=>{
145
- let [a, t] = param;
152
+ p
153
+ ]), I = n.useMemo(()=>{
154
+ const o = Object.entries(m.textPresets).map((param)=>{
155
+ let [s, t] = param;
146
156
  return {
147
- [a]: _object_spread({}, t.weight && {
157
+ [s]: _object_spread({}, t.weight && {
148
158
  weight: String(O[t.weight])
149
159
  }, t.size && {
150
160
  size: `${t.size.desktop}px`
@@ -155,12 +165,12 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
155
165
  });
156
166
  return Object.assign({}, ...o);
157
167
  }, [
158
- c
159
- ]), C = i.useMemo(()=>{
160
- const o = Object.entries(c.textPresets).map((param)=>{
161
- let [a, t] = param;
168
+ m
169
+ ]), C = n.useMemo(()=>{
170
+ const o = Object.entries(m.textPresets).map((param)=>{
171
+ let [s, t] = param;
162
172
  return {
163
- [a]: _object_spread({}, t.weight && {
173
+ [s]: _object_spread({}, t.weight && {
164
174
  weight: String(O[t.weight])
165
175
  }, t.size && {
166
176
  size: `${t.size.mobile}px`
@@ -171,36 +181,36 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
171
181
  });
172
182
  return Object.assign({}, ...o);
173
183
  }, [
174
- c
184
+ m
175
185
  ]), M = {
176
- textPresets: D,
177
- colors: d,
178
- rawColors: V,
179
- borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii : Q
186
+ textPresets: I,
187
+ colors: p,
188
+ rawColors: D,
189
+ borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii : S
180
190
  };
181
191
  return /* @__PURE__ */ P(_, {
182
192
  children: [
183
- /* @__PURE__ */ r(L, {
193
+ /* @__PURE__ */ r(A, {
184
194
  disabled: !e.enableTabFocus,
185
- children: /* @__PURE__ */ r(A, {
186
- children: /* @__PURE__ */ r(B, {
187
- children: /* @__PURE__ */ r(z.Provider, {
188
- value: c,
189
- children: /* @__PURE__ */ r(q, {
190
- eventFormat: c.analytics.eventFormat,
191
- children: /* @__PURE__ */ r(W, {
192
- children: /* @__PURE__ */ r(G, {
195
+ children: /* @__PURE__ */ r(B, {
196
+ children: /* @__PURE__ */ r(G, {
197
+ children: /* @__PURE__ */ r(L.Provider, {
198
+ value: m,
199
+ children: /* @__PURE__ */ r(K, {
200
+ eventFormat: m.analytics.eventFormat,
201
+ children: /* @__PURE__ */ r(q, {
202
+ children: /* @__PURE__ */ r(W, {
193
203
  children: /* @__PURE__ */ r(y, {
194
- children: /* @__PURE__ */ r(I, {
204
+ children: /* @__PURE__ */ r($, {
195
205
  children: /* @__PURE__ */ r(U, {
196
- children: n ? /*#__PURE__*/ i.createElement(n, {
206
+ children: a ? /*#__PURE__*/ n.createElement(a, {
197
207
  style: _object_spread({
198
208
  isolation: "isolate"
199
209
  }, v(Y, M), v(Z, C)),
200
- className: s ? void 0 : ee
201
- }, l) : /* @__PURE__ */ P(_, {
210
+ className: i ? void 0 : ee
211
+ }, c) : /* @__PURE__ */ P(_, {
202
212
  children: [
203
- !s && (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
213
+ !i && (process.env.NODE_ENV !== "test" || process.env.SSR_TEST) && /* @__PURE__ */ r("style", {
204
214
  children: `
205
215
  :root {${v(w, M)}}
206
216
  @media ${X} {
@@ -208,7 +218,7 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
208
218
  }
209
219
  `
210
220
  }),
211
- l
221
+ c
212
222
  ]
213
223
  })
214
224
  })
@@ -221,7 +231,7 @@ const re = "(prefers-color-scheme: dark)", oe = ()=>{
221
231
  })
222
232
  })
223
233
  }),
224
- !n && /* @__PURE__ */ r(ne, {})
234
+ !a && /* @__PURE__ */ r(ne, {})
225
235
  ]
226
236
  });
227
237
  }, Ve = ae;
@@ -0,0 +1,2 @@
1
+ const t = (r, s)=>!s || r === s ? !0 : r === "span" ? !1 : r < s;
2
+ export { t as isBiggerHeading };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@telefonica/mistica",
3
- "version": "16.5.0",
3
+ "version": "16.6.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -151,6 +151,7 @@
151
151
  "@vanilla-extract/dynamic": "^2.1.1",
152
152
  "@vanilla-extract/sprinkles": "^1.6.2",
153
153
  "classnames": "^2.3.1",
154
+ "cubic-bezier": "^0.1.2",
154
155
  "lottie-react": "^2.4.0",
155
156
  "moment": "^2.29.1",
156
157
  "react-autosuggest": "^10.1.0",