@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.
- package/css/mistica.css +1 -1
- package/dist/callout.js +27 -15
- package/dist/card.css-mistica.js +5 -5
- package/dist/card.d.ts +9 -1
- package/dist/card.js +611 -475
- package/dist/community/advanced-data-card.css-mistica.js +14 -11
- package/dist/community/advanced-data-card.css.d.ts +1 -0
- package/dist/community/advanced-data-card.d.ts +1 -1
- package/dist/community/advanced-data-card.js +172 -85
- package/dist/cover-hero.css-mistica.js +14 -11
- package/dist/cover-hero.css.d.ts +1 -0
- package/dist/cover-hero.d.ts +1 -0
- package/dist/cover-hero.js +101 -59
- package/dist/empty-state.js +24 -15
- package/dist/header.css-mistica.js +6 -3
- package/dist/header.css.d.ts +1 -0
- package/dist/header.d.ts +3 -2
- package/dist/header.js +148 -79
- package/dist/hero.css-mistica.js +11 -8
- package/dist/hero.css.d.ts +1 -0
- package/dist/hero.d.ts +2 -1
- package/dist/hero.js +102 -68
- package/dist/highlighted-card.js +32 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/maybe-dismissable.js +8 -5
- package/dist/meter.d.ts +23 -0
- package/dist/meter.js +400 -0
- package/dist/package-version.js +1 -1
- package/dist/sheet-common.css-mistica.js +16 -10
- package/dist/sheet-common.css.d.ts +3 -1
- package/dist/sheet-common.js +78 -70
- package/dist/sheet-info.css-mistica.js +15 -4
- package/dist/sheet-info.css.d.ts +2 -0
- package/dist/sheet-info.d.ts +3 -0
- package/dist/sheet-info.js +61 -43
- package/dist/sheet-native.js +59 -48
- package/dist/sheet-types.d.ts +6 -1
- package/dist/sheet-web.js +6 -4
- package/dist/text-tokens.d.ts +10 -0
- package/dist/text-tokens.js +54 -38
- package/dist/theme-context-provider.js +60 -50
- package/dist/theme.d.ts +3 -2
- package/dist/utils/headings.d.ts +2 -0
- package/dist/utils/headings.js +11 -0
- package/dist/utils/types.d.ts +1 -0
- package/dist-es/callout.js +55 -43
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +721 -588
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/advanced-data-card.js +217 -130
- package/dist-es/cover-hero.css-mistica.js +3 -3
- package/dist-es/cover-hero.js +132 -90
- package/dist-es/empty-state.js +40 -31
- package/dist-es/header.css-mistica.js +2 -2
- package/dist-es/header.js +174 -104
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/hero.js +150 -115
- package/dist-es/highlighted-card.js +36 -27
- package/dist-es/index.js +1839 -1838
- package/dist-es/maybe-dismissable.js +17 -14
- package/dist-es/meter.js +346 -0
- package/dist-es/package-version.js +1 -1
- package/dist-es/sheet-common.css-mistica.js +2 -2
- package/dist-es/sheet-common.js +124 -116
- package/dist-es/sheet-info.css-mistica.js +2 -2
- package/dist-es/sheet-info.js +74 -56
- package/dist-es/sheet-native.js +59 -48
- package/dist-es/sheet-web.js +10 -8
- package/dist-es/style.css +1 -1
- package/dist-es/text-tokens.js +30 -20
- package/dist-es/theme-context-provider.js +88 -78
- package/dist-es/utils/headings.js +2 -0
- package/package.json +2 -1
package/dist-es/text-tokens.js
CHANGED
|
@@ -13,12 +13,12 @@ const e = {
|
|
|
13
13
|
en: "Hide password",
|
|
14
14
|
de: "Passwort verbergen",
|
|
15
15
|
pt: "esconder a senha"
|
|
16
|
-
},
|
|
16
|
+
}, s = {
|
|
17
17
|
es: "Cargando",
|
|
18
18
|
en: "Loading",
|
|
19
19
|
de: "Wird gespeichert",
|
|
20
20
|
pt: "Carregando"
|
|
21
|
-
},
|
|
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
|
-
},
|
|
76
|
+
}, b = {
|
|
77
77
|
es: "CVV incorrecto",
|
|
78
78
|
en: "Incorrect CVV",
|
|
79
79
|
de: "Falsche CVV",
|
|
80
80
|
pt: "CVV incorreto"
|
|
81
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
201
|
+
}, z = {
|
|
202
202
|
es: "completo",
|
|
203
203
|
en: "completed",
|
|
204
204
|
de: "vollendet",
|
|
205
205
|
pt: "conclu\xeddo"
|
|
206
|
-
},
|
|
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
|
-
},
|
|
231
|
+
}, G = {
|
|
232
232
|
es: "cantidad",
|
|
233
233
|
en: "quantity",
|
|
234
234
|
de: "menge",
|
|
235
235
|
pt: "quantidade"
|
|
236
|
-
},
|
|
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
|
-
},
|
|
286
|
+
}, se = {
|
|
287
287
|
es: "horas",
|
|
288
288
|
en: "hours",
|
|
289
289
|
de: "Stunden",
|
|
290
290
|
pt: "horas"
|
|
291
|
-
},
|
|
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
|
-
},
|
|
346
|
+
}, be = {
|
|
347
347
|
es: "muy bueno",
|
|
348
348
|
en: "very good",
|
|
349
349
|
de: "sehr gut",
|
|
350
350
|
pt: "muito bom"
|
|
351
|
-
},
|
|
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,
|
|
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
|
|
31
|
+
import * as n from "react";
|
|
32
32
|
import { assignInlineVars as v } from "@vanilla-extract/dynamic";
|
|
33
|
-
import { DialogRoot as
|
|
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
|
|
36
|
-
import { getPlatform as E, isInsideNovumNativeApp as
|
|
37
|
-
import
|
|
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
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import { DocumentVisibilityProvider as
|
|
43
|
-
import { AspectRatioSupportProvider as
|
|
44
|
-
import { TrackingConfig as
|
|
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
|
|
47
|
-
import { defaultTextPresetsConfig as
|
|
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
|
|
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__ !==
|
|
57
|
-
window.__mistica_version__ =
|
|
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,
|
|
60
|
+
const [e, c] = n.useState(!1);
|
|
61
61
|
return T(()=>{
|
|
62
62
|
if (!window.matchMedia) return;
|
|
63
|
-
const
|
|
64
|
-
|
|
63
|
+
const a = window.matchMedia(re), i = ()=>{
|
|
64
|
+
c(a.matches);
|
|
65
65
|
};
|
|
66
|
-
return
|
|
67
|
-
|
|
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" ?
|
|
71
|
+
headerMobileHeight: (e == null ? void 0 : e.headerMobileHeight) === "mistica" ? j : e == null ? void 0 : e.headerMobileHeight
|
|
72
72
|
}), ne = ()=>{
|
|
73
|
-
const e =
|
|
73
|
+
const e = n.useRef(null), [c, a] = n.useState(!1), [i, g] = n.useState(!0);
|
|
74
74
|
return T(()=>{
|
|
75
|
-
var
|
|
76
|
-
if (
|
|
75
|
+
var d;
|
|
76
|
+
if (i) g(!1);
|
|
77
77
|
else {
|
|
78
|
-
const
|
|
79
|
-
|
|
78
|
+
const u = (d = e.current) == null ? void 0 : d.parentElement;
|
|
79
|
+
u && (u.style.isolation = "isolate", a(!0));
|
|
80
80
|
}
|
|
81
81
|
}, [
|
|
82
|
-
|
|
83
|
-
]),
|
|
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:
|
|
90
|
+
let { theme: e, children: c, as: a, withoutStyles: i = !1 } = param;
|
|
91
91
|
var _e_colorScheme, _e_skin_borderRadii;
|
|
92
|
-
const
|
|
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
|
-
]),
|
|
103
|
+
]), m = n.useMemo(()=>{
|
|
95
104
|
const o = _object_spread({
|
|
96
105
|
platform: E(),
|
|
97
|
-
insideNovumNativeApp:
|
|
98
|
-
}, e.platformOverrides),
|
|
99
|
-
let [
|
|
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
|
-
[
|
|
111
|
+
[l]: _object_spread({}, x, (f = e.skin.textPresets) == null ? void 0 : f[l])
|
|
103
112
|
};
|
|
104
|
-
}), t = Object.assign({}, ...
|
|
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:
|
|
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:
|
|
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
|
-
|
|
136
|
+
p,
|
|
127
137
|
e,
|
|
128
|
-
|
|
138
|
+
h,
|
|
129
139
|
k
|
|
130
|
-
]),
|
|
131
|
-
let [o,
|
|
140
|
+
]), D = n.useMemo(()=>Object.fromEntries(Object.entries(p).map((param)=>{
|
|
141
|
+
let [o, s] = param;
|
|
132
142
|
let t = "";
|
|
133
|
-
if (
|
|
134
|
-
const [
|
|
135
|
-
t = `${
|
|
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
|
-
|
|
143
|
-
]),
|
|
144
|
-
const o = Object.entries(
|
|
145
|
-
let [
|
|
152
|
+
p
|
|
153
|
+
]), I = n.useMemo(()=>{
|
|
154
|
+
const o = Object.entries(m.textPresets).map((param)=>{
|
|
155
|
+
let [s, t] = param;
|
|
146
156
|
return {
|
|
147
|
-
[
|
|
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
|
-
|
|
159
|
-
]), C =
|
|
160
|
-
const o = Object.entries(
|
|
161
|
-
let [
|
|
168
|
+
m
|
|
169
|
+
]), C = n.useMemo(()=>{
|
|
170
|
+
const o = Object.entries(m.textPresets).map((param)=>{
|
|
171
|
+
let [s, t] = param;
|
|
162
172
|
return {
|
|
163
|
-
[
|
|
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
|
-
|
|
184
|
+
m
|
|
175
185
|
]), M = {
|
|
176
|
-
textPresets:
|
|
177
|
-
colors:
|
|
178
|
-
rawColors:
|
|
179
|
-
borderRadii: (_e_skin_borderRadii = e.skin.borderRadii) !== null && _e_skin_borderRadii !== void 0 ? _e_skin_borderRadii :
|
|
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(
|
|
193
|
+
/* @__PURE__ */ r(A, {
|
|
184
194
|
disabled: !e.enableTabFocus,
|
|
185
|
-
children: /* @__PURE__ */ r(
|
|
186
|
-
children: /* @__PURE__ */ r(
|
|
187
|
-
children: /* @__PURE__ */ r(
|
|
188
|
-
value:
|
|
189
|
-
children: /* @__PURE__ */ r(
|
|
190
|
-
eventFormat:
|
|
191
|
-
children: /* @__PURE__ */ r(
|
|
192
|
-
children: /* @__PURE__ */ r(
|
|
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(
|
|
204
|
+
children: /* @__PURE__ */ r($, {
|
|
195
205
|
children: /* @__PURE__ */ r(U, {
|
|
196
|
-
children:
|
|
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:
|
|
201
|
-
},
|
|
210
|
+
className: i ? void 0 : ee
|
|
211
|
+
}, c) : /* @__PURE__ */ P(_, {
|
|
202
212
|
children: [
|
|
203
|
-
!
|
|
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
|
-
|
|
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
|
-
!
|
|
234
|
+
!a && /* @__PURE__ */ r(ne, {})
|
|
225
235
|
]
|
|
226
236
|
});
|
|
227
237
|
}, Ve = ae;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telefonica/mistica",
|
|
3
|
-
"version": "16.
|
|
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",
|