@telefonica/mistica 14.39.0 → 14.40.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/accordion.js +47 -49
- package/dist/button.js +10 -10
- package/dist/card.js +10 -10
- package/dist/carousel.css-mistica.js +48 -24
- package/dist/carousel.css.d.ts +9 -1
- package/dist/carousel.d.ts +2 -2
- package/dist/carousel.js +227 -219
- package/dist/community/advanced-data-card.css-mistica.js +6 -6
- package/dist/community/blocks.js +12 -12
- package/dist/desktop-container-type-context.js +2 -2
- package/dist/fade-in.js +2 -2
- package/dist/feedback.js +6 -6
- package/dist/focus-trap.js +2 -2
- package/dist/header.js +4 -4
- package/dist/hero.js +4 -4
- package/dist/horizontal-scroll.js +2 -2
- package/dist/icons/icon-amex.js +2 -2
- package/dist/icons/icon-chevron.js +2 -2
- package/dist/icons/icon-cvv-amex.js +2 -2
- package/dist/icons/icon-cvv-visa-mc.js +2 -2
- package/dist/icons/icon-info.js +4 -4
- package/dist/icons/icon-mastercard.js +2 -2
- package/dist/icons/icon-visa.js +2 -2
- package/dist/image.js +2 -2
- package/dist/list.js +16 -16
- package/dist/loading-bar.js +2 -2
- package/dist/logo.js +10 -10
- package/dist/menu.js +2 -2
- package/dist/mosaic.js +2 -2
- package/dist/navigation-bar.js +8 -8
- package/dist/navigation-breadcrumbs.js +2 -2
- package/dist/negative-box.js +2 -2
- package/dist/nestable-context.js +2 -2
- package/dist/package-version.js +1 -1
- package/dist/placeholder.js +2 -2
- package/dist/responsive-layout.js +2 -2
- package/dist/select.js +4 -4
- package/dist/sheet.js +71 -67
- package/dist/skeletons.js +12 -12
- package/dist/stack.js +2 -2
- package/dist/text-field-base.js +2 -2
- package/dist/text-field-components.js +2 -2
- package/dist/text.js +18 -17
- package/dist/theme-variant-context.js +2 -2
- package/dist/theme.js +8 -8
- package/dist/title.js +2 -2
- package/dist/tooltip.js +64 -60
- package/dist/utils/animation.js +2 -2
- package/dist/utils/css.js +1 -1
- package/dist/video.js +2 -2
- package/dist/vivinho-loading-animation/pulse-lottie.json.js +3 -5
- package/dist-es/accordion.js +65 -67
- package/dist-es/button.js +10 -10
- package/dist-es/card.js +10 -10
- package/dist-es/carousel.css-mistica.js +7 -7
- package/dist-es/carousel.js +278 -270
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/blocks.js +12 -12
- package/dist-es/desktop-container-type-context.js +2 -2
- package/dist-es/fade-in.js +2 -2
- package/dist-es/feedback.js +6 -6
- package/dist-es/focus-trap.js +2 -2
- package/dist-es/header.js +4 -4
- package/dist-es/hero.js +4 -4
- package/dist-es/horizontal-scroll.js +2 -2
- package/dist-es/icons/icon-amex.js +2 -2
- package/dist-es/icons/icon-chevron.js +2 -2
- package/dist-es/icons/icon-cvv-amex.js +2 -2
- package/dist-es/icons/icon-cvv-visa-mc.js +2 -2
- package/dist-es/icons/icon-info.js +4 -4
- package/dist-es/icons/icon-mastercard.js +2 -2
- package/dist-es/icons/icon-visa.js +2 -2
- package/dist-es/image.js +2 -2
- package/dist-es/list.js +16 -16
- package/dist-es/loading-bar.js +2 -2
- package/dist-es/logo.js +10 -10
- package/dist-es/menu.js +2 -2
- package/dist-es/mosaic.js +2 -2
- package/dist-es/navigation-bar.js +8 -8
- package/dist-es/navigation-breadcrumbs.js +2 -2
- package/dist-es/negative-box.js +2 -2
- package/dist-es/nestable-context.js +2 -2
- package/dist-es/package-version.js +1 -1
- package/dist-es/placeholder.js +2 -2
- package/dist-es/responsive-layout.js +2 -2
- package/dist-es/select.js +4 -4
- package/dist-es/sheet.js +79 -75
- package/dist-es/skeletons.js +12 -12
- package/dist-es/stack.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/text-field-base.js +2 -2
- package/dist-es/text-field-components.js +4 -4
- package/dist-es/text.js +21 -20
- package/dist-es/theme-variant-context.js +2 -2
- package/dist-es/theme.js +8 -8
- package/dist-es/title.js +2 -2
- package/dist-es/tooltip.js +80 -76
- package/dist-es/utils/animation.js +2 -2
- package/dist-es/utils/css.js +1 -1
- package/dist-es/video.js +2 -2
- package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +3 -5
- package/package.json +16 -17
package/dist-es/theme.js
CHANGED
|
@@ -266,31 +266,31 @@ const l = {
|
|
|
266
266
|
}, u = 56, d = 80, E = {
|
|
267
267
|
headerMobileHeight: u,
|
|
268
268
|
headerDesktopHeight: d
|
|
269
|
-
}, m = (_param)
|
|
269
|
+
}, m = (_param)=>{
|
|
270
270
|
var { to: e, innerRef: r } = _param, a = _object_without_properties(_param, [
|
|
271
271
|
"to",
|
|
272
272
|
"innerRef"
|
|
273
273
|
]);
|
|
274
|
-
return o("a", _object_spread_props(_object_spread({
|
|
274
|
+
return /* @__PURE__ */ o("a", _object_spread_props(_object_spread({
|
|
275
275
|
ref: r,
|
|
276
276
|
href: typeof e == "string" ? e : e == null ? void 0 : e.pathname
|
|
277
277
|
}, a), {
|
|
278
278
|
children: a.children
|
|
279
279
|
}));
|
|
280
|
-
}, C = (e)=>e, f = (e)=>(_param)
|
|
280
|
+
}, C = (e)=>e, f = (e)=>(_param)=>{
|
|
281
281
|
var { innerRef: r } = _param, a = _object_without_properties(_param, [
|
|
282
282
|
"innerRef"
|
|
283
283
|
]);
|
|
284
|
-
return o(e, _object_spread({
|
|
284
|
+
return /* @__PURE__ */ o(e, _object_spread({
|
|
285
285
|
ref: r
|
|
286
286
|
}, a));
|
|
287
|
-
}, p = (e)=>(_param)
|
|
287
|
+
}, p = (e)=>(_param)=>{
|
|
288
288
|
var { to: r, innerRef: a, children: t } = _param, n = _object_without_properties(_param, [
|
|
289
289
|
"to",
|
|
290
290
|
"innerRef",
|
|
291
291
|
"children"
|
|
292
292
|
]);
|
|
293
|
-
return o(e, {
|
|
293
|
+
return /* @__PURE__ */ o(e, {
|
|
294
294
|
href: r,
|
|
295
295
|
children: /* @__PURE__ */ o("a", _object_spread_props(_object_spread({
|
|
296
296
|
ref: a
|
|
@@ -298,13 +298,13 @@ const l = {
|
|
|
298
298
|
children: t
|
|
299
299
|
}))
|
|
300
300
|
});
|
|
301
|
-
}, b = (e)=>(_param)
|
|
301
|
+
}, b = (e)=>(_param)=>{
|
|
302
302
|
var { to: r, innerRef: a, children: t } = _param, n = _object_without_properties(_param, [
|
|
303
303
|
"to",
|
|
304
304
|
"innerRef",
|
|
305
305
|
"children"
|
|
306
306
|
]);
|
|
307
|
-
return o(e, _object_spread_props(_object_spread({
|
|
307
|
+
return /* @__PURE__ */ o(e, _object_spread_props(_object_spread({
|
|
308
308
|
href: r,
|
|
309
309
|
ref: a
|
|
310
310
|
}, n), {
|
package/dist-es/title.js
CHANGED
|
@@ -115,9 +115,9 @@ const m = (param)=>{
|
|
|
115
115
|
"component-name": "Title2"
|
|
116
116
|
}, s)
|
|
117
117
|
});
|
|
118
|
-
}, S = (param)
|
|
118
|
+
}, S = (param)=>{
|
|
119
119
|
let { children: t, as: i = "h3", id: o, right: r, dataAttributes: s } = param;
|
|
120
|
-
return e(m, {
|
|
120
|
+
return /* @__PURE__ */ e(m, {
|
|
121
121
|
title: /* @__PURE__ */ e(h, {
|
|
122
122
|
as: i,
|
|
123
123
|
id: o,
|
package/dist-es/tooltip.js
CHANGED
|
@@ -51,7 +51,7 @@ function _object_spread_props(target, source) {
|
|
|
51
51
|
}
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
|
-
import { jsxs as F, Fragment as mt, jsx as
|
|
54
|
+
import { jsxs as F, Fragment as mt, jsx as p } from "react/jsx-runtime";
|
|
55
55
|
import * as i from "react";
|
|
56
56
|
import { useAriaId as ht, useBoundingRect as it, useWindowSize as gt } from "./hooks.js";
|
|
57
57
|
import { Portal as Tt } from "./portal.js";
|
|
@@ -63,67 +63,68 @@ import { getCssVarValue as wt, getPrefixedDataAttributes as Rt } from "./utils/d
|
|
|
63
63
|
import { TAB as _t, ESC as Ct } from "./utils/keys.js";
|
|
64
64
|
import { isTouchableDevice as Nt } from "./utils/environment.js";
|
|
65
65
|
import { isEqual as st } from "./utils/helpers.js";
|
|
66
|
-
import
|
|
67
|
-
import { vars as
|
|
66
|
+
import Z from "classnames";
|
|
67
|
+
import { vars as J } from "./skins/skin-contract.css-mistica.js";
|
|
68
68
|
import { useIsInverseVariant as kt, ThemeVariant as Lt } from "./theme-variant-context.js";
|
|
69
69
|
import { combineRefs as At } from "./utils/common.js";
|
|
70
70
|
import { useTooltipState as $t, useSetTooltipState as Pt } from "./tooltip-context-provider.js";
|
|
71
71
|
import { isRunningAcceptanceTest as Ft } from "./utils/platform.js";
|
|
72
72
|
const at = (e)=>({
|
|
73
|
-
border: `1px solid ${e ?
|
|
74
|
-
}), lt = 496, Dt = 300, Wt = 500, Vt = 100, c = 20,
|
|
73
|
+
border: `1px solid ${e ? J.colors.backgroundContainer : J.colors.border}`
|
|
74
|
+
}), lt = 496, Dt = 300, Wt = 500, Vt = 100, c = 20, O = 6, E = O + c / 2 + 1, Bt = (e)=>{
|
|
75
75
|
switch(e){
|
|
76
76
|
case "left":
|
|
77
|
-
return `translateX(-${
|
|
77
|
+
return `translateX(-${O}px)`;
|
|
78
78
|
case "right":
|
|
79
|
-
return `translateX(${
|
|
79
|
+
return `translateX(${O}px)`;
|
|
80
80
|
case "top":
|
|
81
|
-
return `translateY(-${
|
|
81
|
+
return `translateY(-${O}px)`;
|
|
82
82
|
case "bottom":
|
|
83
|
-
return `translateY(${
|
|
83
|
+
return `translateY(${O}px)`;
|
|
84
84
|
default:
|
|
85
85
|
return "";
|
|
86
86
|
}
|
|
87
|
-
},
|
|
88
|
-
const
|
|
87
|
+
}, pt = (e)=>{
|
|
88
|
+
const I = parseFloat(getComputedStyle(e, null).paddingLeft) + parseFloat(getComputedStyle(e, null).paddingRight), m = parseFloat(getComputedStyle(e, null).paddingTop) + parseFloat(getComputedStyle(e, null).paddingBottom), w = e.offsetWidth - I, h = e.offsetHeight - m;
|
|
89
89
|
return {
|
|
90
90
|
width: w,
|
|
91
91
|
height: h
|
|
92
92
|
};
|
|
93
|
-
}, ct = (e,
|
|
94
|
-
if (!e || !
|
|
95
|
-
const { top: D, bottom: R, left: W, right: V } = e,
|
|
96
|
-
if (!(!
|
|
93
|
+
}, ct = (e, I, m, w, h)=>{
|
|
94
|
+
if (!e || !I) return;
|
|
95
|
+
const { top: D, bottom: R, left: W, right: V } = e, M = w - R, g = h - V, S = D, n = W, { width: B, height: $ } = pt(I), y = B + E, d = $ + E, T = y <= Math.max(n, g), v = d <= Math.max(M, S);
|
|
96
|
+
if (!(!v && !T)) switch(m){
|
|
97
97
|
case "left":
|
|
98
|
-
return
|
|
98
|
+
return T ? y <= n ? "left" : "right" : M > S ? "bottom" : "top";
|
|
99
99
|
case "right":
|
|
100
|
-
return
|
|
100
|
+
return T ? y <= g ? "right" : "left" : M > S ? "bottom" : "top";
|
|
101
101
|
case "top":
|
|
102
|
-
return
|
|
102
|
+
return v ? d <= S ? "top" : "bottom" : n > g ? "left" : "right";
|
|
103
103
|
case "bottom":
|
|
104
|
-
return
|
|
104
|
+
return v ? d <= M ? "bottom" : "top" : n > g ? "left" : "right";
|
|
105
105
|
default:
|
|
106
106
|
return;
|
|
107
107
|
}
|
|
108
108
|
}, Xt = (param)=>{
|
|
109
|
-
let { children: e, extra:
|
|
110
|
-
const n = ht(), { openTooltipId: B } = $t(), { openTooltip: $, closeTooltip:
|
|
111
|
-
|
|
109
|
+
let { children: e, extra: I, description: m, target: w, title: h, width: D, position: R = "top", dataAttributes: W, delay: V = !0, centerContent: M, open: g, textCenter: S } = param;
|
|
110
|
+
const n = ht(), { openTooltipId: B } = $t(), { openTooltip: $, closeTooltip: y } = Pt(), [d, T] = i.useState(), [v, X] = i.useState(), z = i.useRef(null), H = i.useRef(null), [_, ft] = i.useState(null), f = Nt(), Y = V ? Wt : 0, [Q, G] = i.useState(!1), [tt, P] = i.useState(!1), K = g !== void 0, [et, U] = i.useState(!1), x = K ? g : n === B, j = kt(), l = it(z, x), dt = it(H, x, !0), s = gt(), b = i.useCallback(()=>{
|
|
111
|
+
U(!1), G(!1), P(!1);
|
|
112
112
|
}, []);
|
|
113
113
|
i.useEffect(()=>{
|
|
114
|
-
|
|
114
|
+
x || b();
|
|
115
115
|
}, [
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
x,
|
|
117
|
+
b
|
|
118
118
|
]), i.useEffect(()=>{
|
|
119
|
-
if (!_ || !
|
|
119
|
+
if (!_ || !x) return;
|
|
120
120
|
const r = ct(l, _, R, s.height, s.width);
|
|
121
121
|
if (!r || !l) {
|
|
122
|
-
|
|
122
|
+
T(void 0), X(void 0), b();
|
|
123
123
|
return;
|
|
124
124
|
}
|
|
125
125
|
let o, t;
|
|
126
|
-
|
|
126
|
+
var _parseInt;
|
|
127
|
+
const { left: a, right: C, top: N, bottom: k } = l, { width: L, height: A } = pt(_), ot = s.width - L, rt = s.height - A, u = (_parseInt = parseInt(wt(J.borderRadii.popup))) !== null && _parseInt !== void 0 ? _parseInt : 8;
|
|
127
128
|
switch(r){
|
|
128
129
|
case "top":
|
|
129
130
|
o = {
|
|
@@ -138,7 +139,7 @@ const at = (e)=>({
|
|
|
138
139
|
case "bottom":
|
|
139
140
|
o = {
|
|
140
141
|
left: Math.max(0, Math.min(ot, (a + C - L) / 2)),
|
|
141
|
-
top: k -
|
|
142
|
+
top: k - O,
|
|
142
143
|
padding: `${E}px 0px 0px 0px`
|
|
143
144
|
}, t = {
|
|
144
145
|
left: Math.max(u, Math.min(s.width - u - c, (a + C - c) / 2)),
|
|
@@ -161,7 +162,7 @@ const at = (e)=>({
|
|
|
161
162
|
case "right":
|
|
162
163
|
default:
|
|
163
164
|
o = {
|
|
164
|
-
left: C -
|
|
165
|
+
left: C - O,
|
|
165
166
|
top: Math.max(0, Math.min(rt, (N + k - A) / 2)),
|
|
166
167
|
padding: `0px 0px 0px ${E}px`
|
|
167
168
|
}, t = {
|
|
@@ -172,90 +173,93 @@ const at = (e)=>({
|
|
|
172
173
|
};
|
|
173
174
|
break;
|
|
174
175
|
}
|
|
175
|
-
typeof t.top == "number" && (t.top -= o.top, t.top = `${t.top / A * 100}%`), typeof t.left == "number" && (t.left -= o.left, t.left = `${t.left / L * 100}%`), st(o, d) ||
|
|
176
|
+
typeof t.top == "number" && (t.top -= o.top, t.top = `${t.top / A * 100}%`), typeof t.left == "number" && (t.left -= o.left, t.left = `${t.left / L * 100}%`), st(o, d) || T(o), st(t, v) || X(t);
|
|
176
177
|
}, [
|
|
177
178
|
_,
|
|
178
179
|
l,
|
|
179
180
|
dt,
|
|
180
|
-
|
|
181
|
+
x,
|
|
181
182
|
R,
|
|
182
183
|
s,
|
|
183
184
|
d,
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
185
|
+
v,
|
|
186
|
+
j,
|
|
187
|
+
f,
|
|
187
188
|
n,
|
|
188
|
-
|
|
189
|
+
b
|
|
189
190
|
]);
|
|
190
|
-
const
|
|
191
|
+
const q = i.useRef(!1);
|
|
191
192
|
i.useEffect(()=>{
|
|
192
193
|
const r = (a)=>{
|
|
193
194
|
switch(a.key){
|
|
194
195
|
case Ct:
|
|
195
|
-
|
|
196
|
+
b();
|
|
196
197
|
break;
|
|
197
198
|
case _t:
|
|
198
|
-
|
|
199
|
+
q.current = !0;
|
|
199
200
|
break;
|
|
200
201
|
}
|
|
201
|
-
}, o = ()=>
|
|
202
|
-
|
|
202
|
+
}, o = ()=>q.current = !1, t = (a)=>{
|
|
203
|
+
f && l && (a.clientX < l.left || a.clientX > l.right || a.clientY < l.top || a.clientY > l.bottom) && b();
|
|
203
204
|
};
|
|
204
205
|
return document.addEventListener("keydown", r, !1), document.addEventListener("keyup", o, !1), document.addEventListener("click", t, !1), ()=>{
|
|
205
206
|
document.removeEventListener("keydown", r, !1), document.removeEventListener("keyup", o, !1), document.removeEventListener("click", t, !1);
|
|
206
207
|
};
|
|
207
208
|
}, [
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
f,
|
|
210
|
+
b,
|
|
210
211
|
l
|
|
211
212
|
]), i.useEffect(()=>{
|
|
212
|
-
|
|
213
|
+
K || (tt || Q || et ? $(n) : y(n));
|
|
213
214
|
}, [
|
|
214
215
|
tt,
|
|
215
216
|
Q,
|
|
216
217
|
et,
|
|
217
218
|
n,
|
|
218
219
|
$,
|
|
219
|
-
|
|
220
|
-
|
|
220
|
+
y,
|
|
221
|
+
K
|
|
221
222
|
]);
|
|
222
223
|
const ut = ct(l, _, R, s.height, s.width);
|
|
223
224
|
return /* @__PURE__ */ F(mt, {
|
|
224
225
|
children: [
|
|
225
|
-
/* @__PURE__ */
|
|
226
|
+
/* @__PURE__ */ p("div", {
|
|
226
227
|
ref: (r)=>{
|
|
227
228
|
const o = r == null ? void 0 : r.firstElementChild;
|
|
228
|
-
o && o !==
|
|
229
|
+
o && o !== z.current && (z.current = o);
|
|
229
230
|
},
|
|
230
231
|
onMouseOver: ()=>{
|
|
231
|
-
|
|
232
|
+
f || P(!0);
|
|
232
233
|
},
|
|
233
234
|
onMouseLeave: ()=>{
|
|
234
|
-
|
|
235
|
+
f || P(!1);
|
|
235
236
|
},
|
|
236
237
|
onClick: ()=>{
|
|
237
|
-
|
|
238
|
+
f && P(!0);
|
|
238
239
|
},
|
|
239
240
|
onFocus: ()=>{
|
|
240
|
-
|
|
241
|
+
q.current && U(!0);
|
|
241
242
|
},
|
|
242
243
|
onBlur: ()=>{
|
|
243
|
-
|
|
244
|
+
f || U(!1);
|
|
244
245
|
},
|
|
245
246
|
"aria-describedby": n,
|
|
246
247
|
children: w
|
|
247
248
|
}),
|
|
248
|
-
/* @__PURE__ */
|
|
249
|
-
children: /* @__PURE__ */
|
|
250
|
-
in:
|
|
251
|
-
nodeRef:
|
|
249
|
+
/* @__PURE__ */ p(Tt, {
|
|
250
|
+
children: /* @__PURE__ */ p(vt, {
|
|
251
|
+
in: x,
|
|
252
|
+
nodeRef: H,
|
|
252
253
|
timeout: Ft() ? 0 : {
|
|
253
|
-
enter: Dt +
|
|
254
|
+
enter: Dt + Y,
|
|
254
255
|
exit: Vt
|
|
255
256
|
},
|
|
257
|
+
onExited: ()=>{
|
|
258
|
+
T(void 0), X(void 0);
|
|
259
|
+
},
|
|
256
260
|
mountOnEnter: !0,
|
|
257
261
|
unmountOnExit: !0,
|
|
258
|
-
children: (r)=>/* @__PURE__ */
|
|
262
|
+
children: (r)=>/* @__PURE__ */ p("div", _object_spread_props(_object_spread({
|
|
259
263
|
style: {
|
|
260
264
|
/**
|
|
261
265
|
* Hack to prevent text from wrapping automatically when touching the viewport's edges,
|
|
@@ -271,29 +275,29 @@ const at = (e)=>({
|
|
|
271
275
|
role: "tooltip",
|
|
272
276
|
"aria-label": n,
|
|
273
277
|
tabIndex: -1,
|
|
274
|
-
children: /* @__PURE__ */
|
|
275
|
-
className:
|
|
278
|
+
children: /* @__PURE__ */ p("div", {
|
|
279
|
+
className: Z(xt),
|
|
276
280
|
style: _object_spread_props(_object_spread({
|
|
277
281
|
pointerEvents: r === "entered" ? "auto" : "none",
|
|
278
282
|
transform: Bt(ut)
|
|
279
283
|
}, d, bt[r]), {
|
|
280
|
-
transition: r === "entering" ? `opacity .1s linear ${
|
|
284
|
+
transition: r === "entering" ? `opacity .1s linear ${Y}ms,transform .3s cubic-bezier(0.215,0.61,0.335,1) ${Y}ms` : "opacity .1s linear"
|
|
281
285
|
}),
|
|
282
|
-
ref: At(
|
|
286
|
+
ref: At(ft, H),
|
|
283
287
|
onMouseEnter: ()=>{
|
|
284
|
-
!
|
|
288
|
+
!f && r === "entered" && G(!0);
|
|
285
289
|
},
|
|
286
290
|
onMouseLeave: ()=>{
|
|
287
|
-
|
|
291
|
+
f || G(!1);
|
|
288
292
|
},
|
|
289
293
|
children: /* @__PURE__ */ F("div", {
|
|
290
294
|
className: Ot,
|
|
291
295
|
style: _object_spread({
|
|
292
296
|
width: D
|
|
293
|
-
}, at(
|
|
297
|
+
}, at(j)),
|
|
294
298
|
children: [
|
|
295
|
-
/* @__PURE__ */
|
|
296
|
-
className:
|
|
299
|
+
/* @__PURE__ */ p("div", {
|
|
300
|
+
className: Z(It, M || S ? Mt : void 0),
|
|
297
301
|
style: {
|
|
298
302
|
maxWidth: Math.min(lt, s.width)
|
|
299
303
|
},
|
|
@@ -303,26 +307,26 @@ const at = (e)=>({
|
|
|
303
307
|
(h || m) && /* @__PURE__ */ F(Et, {
|
|
304
308
|
space: 4,
|
|
305
309
|
children: [
|
|
306
|
-
h && /* @__PURE__ */
|
|
310
|
+
h && /* @__PURE__ */ p(nt, {
|
|
307
311
|
medium: !0,
|
|
308
312
|
children: h
|
|
309
313
|
}),
|
|
310
|
-
m && /* @__PURE__ */
|
|
314
|
+
m && /* @__PURE__ */ p(nt, {
|
|
311
315
|
regular: !0,
|
|
312
316
|
children: m
|
|
313
317
|
})
|
|
314
318
|
]
|
|
315
319
|
}),
|
|
316
|
-
|
|
320
|
+
I || e
|
|
317
321
|
]
|
|
318
322
|
})
|
|
319
323
|
}),
|
|
320
|
-
/* @__PURE__ */
|
|
324
|
+
/* @__PURE__ */ p("div", {
|
|
321
325
|
className: St,
|
|
322
|
-
style:
|
|
323
|
-
children: /* @__PURE__ */
|
|
324
|
-
className:
|
|
325
|
-
style: at(
|
|
326
|
+
style: v,
|
|
327
|
+
children: /* @__PURE__ */ p("div", {
|
|
328
|
+
className: Z(yt),
|
|
329
|
+
style: at(j)
|
|
326
330
|
})
|
|
327
331
|
})
|
|
328
332
|
]
|
|
@@ -174,9 +174,9 @@ const a = (e)=>!o(e), d = (e, t)=>a(t) ? {
|
|
|
174
174
|
})
|
|
175
175
|
]
|
|
176
176
|
})
|
|
177
|
-
} : null, m = (param, t)
|
|
177
|
+
} : null, m = (param, t)=>{
|
|
178
178
|
let { children: e } = param;
|
|
179
|
-
return n(l, {
|
|
179
|
+
return /* @__PURE__ */ n(l, {
|
|
180
180
|
children: [
|
|
181
181
|
e,
|
|
182
182
|
t
|
package/dist-es/utils/css.js
CHANGED
|
@@ -31,7 +31,7 @@ import { isRunningAcceptanceTest as s } from "./platform.js";
|
|
|
31
31
|
const n = 16, f = (e)=>`${(parseFloat(e) / n).toFixed(3)}rem`, p = (e)=>_object_spread({}, r(e));
|
|
32
32
|
s();
|
|
33
33
|
s();
|
|
34
|
-
const v = s() ? "max(env(safe-area-inset-bottom), var(--acceptance-test-override-safe-area-inset
|
|
34
|
+
const v = s() ? "max(env(safe-area-inset-bottom), var(--acceptance-test-override-safe-area-inset-bottom, 0px))" : "env(safe-area-inset-bottom)";
|
|
35
35
|
s();
|
|
36
36
|
const o = function() {
|
|
37
37
|
for(var _len = arguments.length, e = new Array(_len), _key = 0; _key < _len; _key++){
|
package/dist-es/video.js
CHANGED
|
@@ -142,9 +142,9 @@ const K = {
|
|
|
142
142
|
width: "100%",
|
|
143
143
|
height: "100%"
|
|
144
144
|
},
|
|
145
|
-
children: V.map((param, i)
|
|
145
|
+
children: V.map((param, i)=>{
|
|
146
146
|
let { src: e, type: t } = param;
|
|
147
|
-
return l("source", {
|
|
147
|
+
return /* @__PURE__ */ l("source", {
|
|
148
148
|
src: e,
|
|
149
149
|
type: t
|
|
150
150
|
}, i);
|
|
@@ -116,9 +116,7 @@ const t = "4.8.0", e = {
|
|
|
116
116
|
]
|
|
117
117
|
}
|
|
118
118
|
],
|
|
119
|
-
ix: 6
|
|
120
|
-
x: `var $bm_rt;
|
|
121
|
-
$bm_rt = loopOut('cycle', 0);`
|
|
119
|
+
ix: 6
|
|
122
120
|
}
|
|
123
121
|
},
|
|
124
122
|
ao: 0,
|
|
@@ -1946,7 +1944,7 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
1946
1944
|
bm: 0,
|
|
1947
1945
|
completed: !0
|
|
1948
1946
|
}
|
|
1949
|
-
], c = [], d = !0,
|
|
1947
|
+
], c = [], d = !0, p = {
|
|
1950
1948
|
v: t,
|
|
1951
1949
|
meta: e,
|
|
1952
1950
|
fr: r,
|
|
@@ -1961,4 +1959,4 @@ $bm_rt = loopOut('cycle', 0);`
|
|
|
1961
1959
|
markers: c,
|
|
1962
1960
|
__complete: d
|
|
1963
1961
|
};
|
|
1964
|
-
export { d as __complete, k as assets, x as ddd,
|
|
1962
|
+
export { d as __complete, k as assets, x as ddd, p as default, r as fr, o as h, a as ip, m as layers, c as markers, e as meta, n as nm, i as op, t as v, s as w };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telefonica/mistica",
|
|
3
|
-
"version": "14.
|
|
3
|
+
"version": "14.40.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -28,13 +28,13 @@
|
|
|
28
28
|
"clean": "rimraf dist && rimraf dist-es && rimraf dist-ts && rimraf css/mistica.css && rimraf community.d.ts && rimraf community.js && rimraf node_modules/.cache",
|
|
29
29
|
"prepublishOnly": "node scripts/prepublish-only.js",
|
|
30
30
|
"prepack": "yarn build",
|
|
31
|
-
"storybook": "
|
|
31
|
+
"storybook": "storybook dev -p 6006",
|
|
32
32
|
"storybook-for-acceptance-tests": "cross-env NODE_ENV=production yarn storybook --ci 2>&1",
|
|
33
33
|
"playroom": "playroom start",
|
|
34
34
|
"gen-ts-defs": "rimraf dist-ts && tsc --project tsconfig.production.json --emitDeclarationOnly && cp -r dist-ts/src/* dist && rimraf dist-ts",
|
|
35
35
|
"vercel-build": "VERCEL_PROD_BUILD=1 yarn storybook-static && ./node_modules/.bin/playroom build && FORCE_MOBILE=1 ./node_modules/.bin/playroom build && FORCE_DESKTOP=1 ./node_modules/.bin/playroom build && cp img/favicon.ico public/",
|
|
36
36
|
"vercel-preview-build": "yarn storybook-static && ./node_modules/.bin/playroom build && cp img/favicon.ico public/",
|
|
37
|
-
"storybook-static": "rimraf public &&
|
|
37
|
+
"storybook-static": "rimraf public && storybook build -s ./.storybook/css/fonts -o public --quiet",
|
|
38
38
|
"serve-static-storybook": "node ./scripts/serve-static-storybook.js",
|
|
39
39
|
"detect-circular-dependencies": "npx dpdm --circular src/index.tsx",
|
|
40
40
|
"audit-accessibility": "node .github/actions/audit-accessibility/main.js",
|
|
@@ -66,19 +66,17 @@
|
|
|
66
66
|
"@azure/storage-blob": "^12.9.0",
|
|
67
67
|
"@semantic-release/changelog": "^6.0.1",
|
|
68
68
|
"@semantic-release/git": "^10.0.1",
|
|
69
|
-
"@storybook/addon-actions": "6.
|
|
70
|
-
"@storybook/addon-controls": "6.
|
|
71
|
-
"@storybook/addon-links": "6.
|
|
72
|
-
"@storybook/addon-
|
|
73
|
-
"@storybook/addon-
|
|
74
|
-
"@storybook/
|
|
75
|
-
"@storybook/
|
|
76
|
-
"@storybook/
|
|
77
|
-
"@storybook/
|
|
78
|
-
"@storybook/
|
|
79
|
-
"@storybook/
|
|
80
|
-
"@storybook/react": "6.5.15",
|
|
81
|
-
"@storybook/theming": "6.5.15",
|
|
69
|
+
"@storybook/addon-actions": "7.6.6",
|
|
70
|
+
"@storybook/addon-controls": "7.6.6",
|
|
71
|
+
"@storybook/addon-links": "7.6.6",
|
|
72
|
+
"@storybook/addon-storysource": "7.6.6",
|
|
73
|
+
"@storybook/addon-viewport": "7.6.6",
|
|
74
|
+
"@storybook/addons": "7.6.6",
|
|
75
|
+
"@storybook/cli": "7.6.6",
|
|
76
|
+
"@storybook/components": "7.6.6",
|
|
77
|
+
"@storybook/react": "7.6.6",
|
|
78
|
+
"@storybook/react-webpack5": "7.6.6",
|
|
79
|
+
"@storybook/theming": "7.6.6",
|
|
82
80
|
"@swc/cli": "^0.1.62",
|
|
83
81
|
"@swc/core": "^1.3.95",
|
|
84
82
|
"@swc/jest": "^0.2.29",
|
|
@@ -99,6 +97,7 @@
|
|
|
99
97
|
"@types/react-transition-group": "^4.4.4",
|
|
100
98
|
"@types/rimraf": "^3.0.2",
|
|
101
99
|
"@types/semver-compare": "^1.0.1",
|
|
100
|
+
"@types/webpack-env": "^1.18.4",
|
|
102
101
|
"@vanilla-extract/jest-transform": "^1.1.0",
|
|
103
102
|
"@vanilla-extract/vite-plugin": "^3.8.2",
|
|
104
103
|
"@vanilla-extract/webpack-plugin": "^2.2.0",
|
|
@@ -112,7 +111,6 @@
|
|
|
112
111
|
"es6-promise-pool": "^2.5.0",
|
|
113
112
|
"eslint": "^8.11.0",
|
|
114
113
|
"eslint-plugin-mistica-local-rules": "workspace:*",
|
|
115
|
-
"file-loader": "^6.2.0",
|
|
116
114
|
"glob": "^7.2.0",
|
|
117
115
|
"gzip-size": "^6.0.0",
|
|
118
116
|
"husky": "^7.0.4",
|
|
@@ -139,6 +137,7 @@
|
|
|
139
137
|
"rollup-plugin-preserve-directives": "^0.2.0",
|
|
140
138
|
"semantic-release": "^19.0.2",
|
|
141
139
|
"serve-handler": "^6.1.5",
|
|
140
|
+
"storybook": "7.6.6",
|
|
142
141
|
"swc-loader": "^0.2.3",
|
|
143
142
|
"typescript": "^4.6.3",
|
|
144
143
|
"vite": "^4.5.0",
|