@telefonica/mistica 14.37.0 → 14.38.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 (37) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/chip.js +47 -42
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +7 -0
  5. package/dist/inline.js +20 -12
  6. package/dist/loading-screen.css-mistica.js +51 -0
  7. package/dist/loading-screen.css.d.ts +11 -0
  8. package/dist/loading-screen.css.ts.vanilla.css-mistica.js +11 -0
  9. package/dist/loading-screen.d.ts +28 -0
  10. package/dist/loading-screen.js +398 -0
  11. package/dist/package-version.js +1 -1
  12. package/dist/tabs.css.d.ts +1 -1
  13. package/dist/vivinho-loading-animation/in-lottie.json.js +1479 -0
  14. package/dist/vivinho-loading-animation/index.d.ts +8 -0
  15. package/dist/vivinho-loading-animation/index.js +119 -0
  16. package/dist/vivinho-loading-animation/out-lottie.json.js +2143 -0
  17. package/dist/vivinho-loading-animation/pulse-lottie.json.js +2017 -0
  18. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +20 -0
  19. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.d.ts +2 -0
  20. package/dist/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +11 -0
  21. package/dist/vivinho-loading-animation/wave-lottie.json.js +10207 -0
  22. package/dist-es/chip.js +70 -65
  23. package/dist-es/index.js +1782 -1781
  24. package/dist-es/inline.js +29 -21
  25. package/dist-es/loading-screen.css-mistica.js +7 -0
  26. package/dist-es/loading-screen.css.ts.vanilla.css-mistica.js +2 -0
  27. package/dist-es/loading-screen.js +335 -0
  28. package/dist-es/package-version.js +1 -1
  29. package/dist-es/style.css +1 -1
  30. package/dist-es/vivinho-loading-animation/in-lottie.json.js +1426 -0
  31. package/dist-es/vivinho-loading-animation/index.js +64 -0
  32. package/dist-es/vivinho-loading-animation/out-lottie.json.js +2090 -0
  33. package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +1964 -0
  34. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -0
  35. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +2 -0
  36. package/dist-es/vivinho-loading-animation/wave-lottie.json.js +10154 -0
  37. package/package.json +2 -1
package/dist/inline.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  "use strict";
2
3
  Object.defineProperty(exports, "__esModule", {
3
4
  value: true
@@ -5,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
5
6
  Object.defineProperty(exports, "default", {
6
7
  enumerable: true,
7
8
  get: function() {
8
- return k;
9
+ return N;
9
10
  }
10
11
  });
11
12
  const _jsxruntime = require("react/jsx-runtime");
@@ -15,6 +16,8 @@ const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
15
16
  const _dom = require("./utils/dom.js");
16
17
  const _inlinecssmistica = require("./inline.css-mistica.js");
17
18
  const _css = require("./utils/css.js");
19
+ const _platform = require("./utils/platform.js");
20
+ const _hooks = require("./hooks.js");
18
21
  function _interop_require_default(obj) {
19
22
  return obj && obj.__esModule ? obj : {
20
23
  default: obj
@@ -113,21 +116,26 @@ function _object_spread_props(target, source) {
113
116
  }
114
117
  return target;
115
118
  }
116
- const j = (param)=>{
117
- let { space: r, className: l, children: e, role: o, alignItems: a = "stretch", "aria-labelledby": s, fullWidth: m, wrap: n, dataAttributes: f } = param;
118
- const p = m || typeof r == "string";
119
+ const C = (param)=>{
120
+ let { space: r, className: o, children: s, role: l, alignItems: n = "stretch", "aria-labelledby": m, fullWidth: a, wrap: p, dataAttributes: f } = param;
121
+ const d = a || typeof r == "string", { platformOverrides: i } = (0, _hooks.useTheme)();
119
122
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
120
- className: (0, _classnames.default)(l, (0, _sprinklescssmistica.sprinkles)({
121
- alignItems: a
122
- }), n ? _inlinecssmistica.wrap : p ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, typeof r != "number" && _inlinecssmistica.justifyVariants[r]),
123
+ className: (0, _classnames.default)(o, (0, _sprinklescssmistica.sprinkles)({
124
+ alignItems: n
125
+ }), p ? _inlinecssmistica.wrap : d ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, typeof r != "number" && _inlinecssmistica.justifyVariants[r]),
123
126
  style: typeof r == "number" ? (0, _css.applyCssVars)({
124
127
  [_inlinecssmistica.vars.space]: `${r}px`
125
128
  }) : void 0,
126
- role: o,
127
- "aria-labelledby": s
128
- }, (0, _dom.getPrefixedDataAttributes)(f)), {
129
- children: _react.Children.map(e, (t)=>t || t === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
129
+ role: l,
130
+ "aria-labelledby": m
131
+ }, (0, _dom.getPrefixedDataAttributes)(f, "Inline")), {
132
+ children: _react.Children.map(s, (t)=>t || t === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
133
+ style: {
134
+ // Hack to fix https://jira.tid.es/browse/WEB-1683
135
+ // In iOS the inline component sometimes cuts the last line of the content
136
+ paddingBottom: (0, _platform.isIos)(i) && !(0, _platform.isRunningAcceptanceTest)(i) ? 1 : void 0
137
+ },
130
138
  children: t
131
139
  }) : null)
132
140
  }));
133
- }, k = j;
141
+ }, N = C;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ function _export(target, all) {
6
+ for(var name in all)Object.defineProperty(target, name, {
7
+ enumerable: true,
8
+ get: all[name]
9
+ });
10
+ }
11
+ _export(exports, {
12
+ inOutAnimationMs: function() {
13
+ return r;
14
+ },
15
+ loadingScreen: function() {
16
+ return a;
17
+ },
18
+ loadingScreenChildren: function() {
19
+ return v;
20
+ },
21
+ loadingScreenText: function() {
22
+ return f;
23
+ },
24
+ loadingScreenTextAnimated: function() {
25
+ return g;
26
+ },
27
+ loadingScreenTextAnimatedOut: function() {
28
+ return l;
29
+ },
30
+ logo: function() {
31
+ return o;
32
+ },
33
+ pulseLogo: function() {
34
+ return i;
35
+ },
36
+ screenBackground: function() {
37
+ return d;
38
+ },
39
+ screenBackgroundAnimated: function() {
40
+ return t;
41
+ },
42
+ screenBackgroundFadeOut: function() {
43
+ return k;
44
+ }
45
+ });
46
+ require("./sprinkles.css.ts.vanilla.css-mistica.js");
47
+ require("./loading-screen.css.ts.vanilla.css-mistica.js");
48
+ var r = 500, a = "flke8b1 _1y2v1nfgg _1y2v1nfgm _1y2v1nfgv", v = "_1y2v1nfh2 _1y2v1nfgg _1y2v1nfgm _1y2v1nfgv _1y2v1nfgp", f = "flke8b9 _1y2v1nf6u", g = "flke8bb", l = "flke8bc", o = "flke8bf", i = "flke8be", d = {
49
+ default: "flke8b4",
50
+ inverse: "flke8b5"
51
+ }, t = "flke8b3", k = "flke8b6";
@@ -0,0 +1,11 @@
1
+ export declare const loadingScreen: string;
2
+ export declare const inOutAnimationMs = 500;
3
+ export declare const screenBackgroundAnimated: string;
4
+ export declare const screenBackground: Record<"inverse" | "default", string>;
5
+ export declare const screenBackgroundFadeOut: string;
6
+ export declare const loadingScreenChildren: string;
7
+ export declare const loadingScreenText: string;
8
+ export declare const loadingScreenTextAnimated: string;
9
+ export declare const loadingScreenTextAnimatedOut: string;
10
+ export declare const pulseLogo: string;
11
+ export declare const logo: string;
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", {
3
+ value: true
4
+ });
5
+ Object.defineProperty(exports, "default", {
6
+ enumerable: true,
7
+ get: function() {
8
+ return a;
9
+ }
10
+ });
11
+ const a = "";
@@ -0,0 +1,28 @@
1
+ import * as React from 'react';
2
+ import type { ExclusifyUnion } from './utils/utility-types';
3
+ import type { DataAttributes } from './utils/types';
4
+ type TextProps = ExclusifyUnion<{
5
+ title?: string;
6
+ description?: string;
7
+ } | {
8
+ texts: Array<{
9
+ title?: string;
10
+ description?: string;
11
+ duration?: number;
12
+ }>;
13
+ }>;
14
+ type LoadingScreenProps = {
15
+ isInverse?: boolean;
16
+ isLoading?: boolean;
17
+ onClose?: () => void;
18
+ children?: React.ReactNode;
19
+ dataAttributes?: DataAttributes;
20
+ } & TextProps;
21
+ export declare const LoadingScreen: React.ForwardRefExoticComponent<LoadingScreenProps & React.RefAttributes<HTMLDivElement>>;
22
+ type BrandLoadingScreenProps = {
23
+ isLoading?: boolean;
24
+ onClose?: () => void;
25
+ dataAttributes?: DataAttributes;
26
+ } & TextProps;
27
+ export declare const BrandLoadingScreen: React.ForwardRefExoticComponent<BrandLoadingScreenProps & React.RefAttributes<HTMLDivElement>>;
28
+ export {};
@@ -0,0 +1,398 @@
1
+ "use client";
2
+ "use strict";
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ function _export(target, all) {
7
+ for(var name in all)Object.defineProperty(target, name, {
8
+ enumerable: true,
9
+ get: all[name]
10
+ });
11
+ }
12
+ _export(exports, {
13
+ BrandLoadingScreen: function() {
14
+ return pe;
15
+ },
16
+ LoadingScreen: function() {
17
+ return he;
18
+ }
19
+ });
20
+ const _jsxruntime = require("react/jsx-runtime");
21
+ const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
22
+ const _overscrollcolorcontext = /*#__PURE__*/ _interop_require_default(require("./overscroll-color-context.js"));
23
+ const _themevariantcontext = require("./theme-variant-context.js");
24
+ const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
25
+ const _responsivelayout = /*#__PURE__*/ _interop_require_default(require("./responsive-layout.js"));
26
+ const _text = require("./text.js");
27
+ const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
28
+ const _loadingscreencssmistica = require("./loading-screen.css-mistica.js");
29
+ const _spinner = /*#__PURE__*/ _interop_require_default(require("./spinner.js"));
30
+ const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
31
+ const _sprinklescssmistica = require("./sprinkles.css-mistica.js");
32
+ const _logo = require("./logo.js");
33
+ const _screenreaderonly = /*#__PURE__*/ _interop_require_default(require("./screen-reader-only.js"));
34
+ const _hooks = require("./hooks.js");
35
+ const _constants = require("./skins/constants.js");
36
+ const _dom = require("./utils/dom.js");
37
+ function _interop_require_default(obj) {
38
+ return obj && obj.__esModule ? obj : {
39
+ default: obj
40
+ };
41
+ }
42
+ function _getRequireWildcardCache(nodeInterop) {
43
+ if (typeof WeakMap !== "function") return null;
44
+ var cacheBabelInterop = new WeakMap();
45
+ var cacheNodeInterop = new WeakMap();
46
+ return (_getRequireWildcardCache = function(nodeInterop) {
47
+ return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
48
+ })(nodeInterop);
49
+ }
50
+ function _interop_require_wildcard(obj, nodeInterop) {
51
+ if (!nodeInterop && obj && obj.__esModule) {
52
+ return obj;
53
+ }
54
+ if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
55
+ return {
56
+ default: obj
57
+ };
58
+ }
59
+ var cache = _getRequireWildcardCache(nodeInterop);
60
+ if (cache && cache.has(obj)) {
61
+ return cache.get(obj);
62
+ }
63
+ var newObj = {
64
+ __proto__: null
65
+ };
66
+ var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
67
+ for(var key in obj){
68
+ if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
69
+ var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
70
+ if (desc && (desc.get || desc.set)) {
71
+ Object.defineProperty(newObj, key, desc);
72
+ } else {
73
+ newObj[key] = obj[key];
74
+ }
75
+ }
76
+ }
77
+ newObj.default = obj;
78
+ if (cache) {
79
+ cache.set(obj, newObj);
80
+ }
81
+ return newObj;
82
+ }
83
+ function _define_property(obj, key, value) {
84
+ if (key in obj) {
85
+ Object.defineProperty(obj, key, {
86
+ value: value,
87
+ enumerable: true,
88
+ configurable: true,
89
+ writable: true
90
+ });
91
+ } else {
92
+ obj[key] = value;
93
+ }
94
+ return obj;
95
+ }
96
+ function _object_spread(target) {
97
+ for(var i = 1; i < arguments.length; i++){
98
+ var source = arguments[i] != null ? arguments[i] : {};
99
+ var ownKeys = Object.keys(source);
100
+ if (typeof Object.getOwnPropertySymbols === "function") {
101
+ ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
102
+ return Object.getOwnPropertyDescriptor(source, sym).enumerable;
103
+ }));
104
+ }
105
+ ownKeys.forEach(function(key) {
106
+ _define_property(target, key, source[key]);
107
+ });
108
+ }
109
+ return target;
110
+ }
111
+ function ownKeys(object, enumerableOnly) {
112
+ var keys = Object.keys(object);
113
+ if (Object.getOwnPropertySymbols) {
114
+ var symbols = Object.getOwnPropertySymbols(object);
115
+ if (enumerableOnly) {
116
+ symbols = symbols.filter(function(sym) {
117
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
118
+ });
119
+ }
120
+ keys.push.apply(keys, symbols);
121
+ }
122
+ return keys;
123
+ }
124
+ function _object_spread_props(target, source) {
125
+ source = source != null ? source : {};
126
+ if (Object.getOwnPropertyDescriptors) {
127
+ Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
128
+ } else {
129
+ ownKeys(Object(source)).forEach(function(key) {
130
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
131
+ });
132
+ }
133
+ return target;
134
+ }
135
+ function _object_without_properties(source, excluded) {
136
+ if (source == null) return {};
137
+ var target = _object_without_properties_loose(source, excluded);
138
+ var key, i;
139
+ if (Object.getOwnPropertySymbols) {
140
+ var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
141
+ for(i = 0; i < sourceSymbolKeys.length; i++){
142
+ key = sourceSymbolKeys[i];
143
+ if (excluded.indexOf(key) >= 0) continue;
144
+ if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
145
+ target[key] = source[key];
146
+ }
147
+ }
148
+ return target;
149
+ }
150
+ function _object_without_properties_loose(source, excluded) {
151
+ if (source == null) return {};
152
+ var target = {};
153
+ var sourceKeys = Object.keys(source);
154
+ var key, i;
155
+ for(i = 0; i < sourceKeys.length; i++){
156
+ key = sourceKeys[i];
157
+ if (excluded.indexOf(key) >= 0) continue;
158
+ target[key] = source[key];
159
+ }
160
+ return target;
161
+ }
162
+ const L = (param)=>{
163
+ let { isInverse: e } = param;
164
+ const r = `body {background:${e ? _skincontractcssmistica.vars.colors.backgroundBrand : _skincontractcssmistica.vars.colors.background}}`;
165
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)("style", {
166
+ children: r
167
+ });
168
+ }, Q = (param)=>{
169
+ let { animateText: e, isLoading: r, onClose: t, texts: c } = param;
170
+ const [o, s] = _react.useState(0), [a, l] = _react.useState(!1), u = _react.useCallback(()=>{
171
+ s((o + 1) % c.length), l(!1);
172
+ }, [
173
+ o,
174
+ c.length
175
+ ]);
176
+ _react.useEffect(()=>{
177
+ if (!r || c.length === 1) return;
178
+ var _c_o_duration;
179
+ const h = setTimeout(()=>{
180
+ e ? l(!0) : u();
181
+ }, (_c_o_duration = c[o].duration) !== null && _c_o_duration !== void 0 ? _c_o_duration : 5e3);
182
+ return ()=>{
183
+ clearTimeout(h);
184
+ };
185
+ }, [
186
+ e,
187
+ o,
188
+ a,
189
+ r,
190
+ u,
191
+ c
192
+ ]);
193
+ const m = ()=>{
194
+ if (!r) {
195
+ t == null || t();
196
+ return;
197
+ }
198
+ a && u();
199
+ }, { title: d, description: f } = c[o % c.length];
200
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_responsivelayout.default, {
201
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
202
+ className: (0, _classnames.default)(_loadingscreencssmistica.loadingScreenText, {
203
+ [_loadingscreencssmistica.loadingScreenTextAnimatedOut]: e && (!r || a)
204
+ }),
205
+ onTransitionEnd: m,
206
+ children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
207
+ space: 8,
208
+ children: [
209
+ d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
210
+ className: e ? _loadingscreencssmistica.loadingScreenTextAnimated : void 0,
211
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text4, {
212
+ textAlign: "center",
213
+ regular: !0,
214
+ as: "h1",
215
+ children: d
216
+ })
217
+ }),
218
+ f && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
219
+ className: e ? _loadingscreencssmistica.loadingScreenTextAnimated : void 0,
220
+ style: {
221
+ animationDelay: "200ms"
222
+ },
223
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
224
+ textAlign: "center",
225
+ regular: !0,
226
+ as: "p",
227
+ color: _skincontractcssmistica.vars.colors.textSecondary,
228
+ children: f
229
+ })
230
+ })
231
+ ]
232
+ })
233
+ }, o)
234
+ });
235
+ }, x = /*#__PURE__*/ _react.forwardRef((param, d)=>{
236
+ let { isInverse: e, children: r, isLoading: t = !0, animateText: c, animateBackground: o, onClose: s, dataAttributes: a, title: l, description: u, texts: m = [
237
+ {
238
+ title: l,
239
+ description: u
240
+ }
241
+ ] } = param;
242
+ const [f, h] = _react.useState(!1);
243
+ _react.useEffect(()=>{
244
+ if (!t) return;
245
+ const A = setTimeout(()=>{
246
+ h(!0);
247
+ }, _loadingscreencssmistica.inOutAnimationMs);
248
+ return ()=>{
249
+ clearTimeout(A);
250
+ };
251
+ }, [
252
+ t
253
+ ]);
254
+ const v = _react.useRef(!1), p = _react.useCallback(()=>{
255
+ !t && !v.current && (v.current = !0, s == null || s());
256
+ }, [
257
+ t,
258
+ s
259
+ ]);
260
+ _react.useEffect(()=>{
261
+ if (t) return;
262
+ if (!c && !o) {
263
+ s == null || s();
264
+ return;
265
+ }
266
+ const A = setTimeout(()=>{
267
+ p();
268
+ }, _loadingscreencssmistica.inOutAnimationMs);
269
+ return ()=>{
270
+ clearTimeout(A);
271
+ };
272
+ }, [
273
+ o,
274
+ c,
275
+ p,
276
+ t,
277
+ s
278
+ ]);
279
+ const b = !r;
280
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
281
+ isInverse: e,
282
+ children: [
283
+ e && /* @__PURE__ */ (0, _jsxruntime.jsx)(_overscrollcolorcontext.default, {}),
284
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", _object_spread_props(_object_spread({
285
+ ref: d
286
+ }, (0, _dom.getPrefixedDataAttributes)(a)), {
287
+ className: (0, _classnames.default)(_loadingscreencssmistica.loadingScreen, _loadingscreencssmistica.screenBackground[e ? "inverse" : "default"], {
288
+ [_loadingscreencssmistica.screenBackgroundFadeOut]: !t && o,
289
+ [_loadingscreencssmistica.screenBackgroundAnimated]: o
290
+ }, (0, _sprinklescssmistica.sprinkles)({
291
+ justifyContent: b ? "center" : "space-between"
292
+ })),
293
+ onAnimationEnd: ()=>{
294
+ h(!0);
295
+ },
296
+ onTransitionEnd: p,
297
+ children: [
298
+ r ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
299
+ className: _loadingscreencssmistica.loadingScreenChildren,
300
+ children: r
301
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
302
+ delay: "0s",
303
+ size: 32,
304
+ color: e ? _skincontractcssmistica.vars.colors.inverse : void 0
305
+ }),
306
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(Q, {
307
+ animateText: c,
308
+ isLoading: t,
309
+ texts: m,
310
+ onClose: p
311
+ }),
312
+ !b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
313
+ style: {
314
+ height: 104
315
+ }
316
+ })
317
+ ]
318
+ })),
319
+ t && f && /* @__PURE__ */ (0, _jsxruntime.jsx)(L, {
320
+ isInverse: !!e
321
+ })
322
+ ]
323
+ });
324
+ }), he = /*#__PURE__*/ _react.forwardRef((e, r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(x, _object_spread_props(_object_spread({
325
+ ref: r
326
+ }, e), {
327
+ dataAttributes: _object_spread({
328
+ "component-name": "LoadingScreen"
329
+ }, e.dataAttributes),
330
+ animateBackground: !0
331
+ }))), U = (param)=>{
332
+ let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
333
+ const { texts: c } = (0, _hooks.useTheme)(), [o, s] = _react.useState(!0), a = ()=>{
334
+ e || (r == null || r(), s(!1), t == null || t());
335
+ };
336
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
337
+ className: (0, _classnames.default)(_loadingscreencssmistica.logo, {
338
+ [_loadingscreencssmistica.pulseLogo]: o
339
+ }),
340
+ onAnimationIteration: a,
341
+ children: [
342
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_screenreaderonly.default, {
343
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
344
+ children: c.loading
345
+ })
346
+ }),
347
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_logo.Logo, {
348
+ size: 128
349
+ })
350
+ ]
351
+ });
352
+ }, X = /*#__PURE__*/ _react.lazy(()=>Promise.resolve().then(()=>/*#__PURE__*/ _interop_require_wildcard(require("./vivinho-loading-animation/index.js")))), Y = (param)=>{
353
+ let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
354
+ const { skinName: c } = (0, _hooks.useTheme)();
355
+ return c === _constants.VIVO_NEW_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_react.Suspense, {
356
+ fallback: null,
357
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(X, {
358
+ isLoading: e,
359
+ onCloseStart: r,
360
+ onCloseEnd: t
361
+ })
362
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
363
+ isLoading: e,
364
+ onCloseStart: r,
365
+ onCloseEnd: t
366
+ });
367
+ }, pe = /*#__PURE__*/ _react.forwardRef((_param, o)=>{
368
+ var { isLoading: e = !0, onClose: r, dataAttributes: t } = _param, c = _object_without_properties(_param, [
369
+ "isLoading",
370
+ "onClose",
371
+ "dataAttributes"
372
+ ]);
373
+ const [s, a] = _react.useState(!1), l = _react.useRef(!1), u = _react.useRef(!1), m = ()=>{
374
+ a(!0);
375
+ }, d = ()=>{
376
+ l.current && u.current && (r == null || r());
377
+ };
378
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(x, _object_spread_props(_object_spread({
379
+ ref: o,
380
+ isInverse: !0
381
+ }, c), {
382
+ isLoading: e || !s,
383
+ onClose: ()=>{
384
+ u.current = !0, d();
385
+ },
386
+ animateText: !0,
387
+ dataAttributes: _object_spread({
388
+ "component-name": "BrandLoadingScreen"
389
+ }, t),
390
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Y, {
391
+ isLoading: e,
392
+ onCloseStart: m,
393
+ onCloseEnd: ()=>{
394
+ l.current = !0, d();
395
+ }
396
+ })
397
+ }));
398
+ });
@@ -8,4 +8,4 @@ Object.defineProperty(exports, "PACKAGE_VERSION", {
8
8
  return o;
9
9
  }
10
10
  });
11
- const o = "14.37.0";
11
+ const o = "14.38.0";
@@ -5,6 +5,6 @@ export declare const inner: string;
5
5
  export declare const tabsContainer: string;
6
6
  export declare const tabVariants: Record<"default" | "fullWidth", string>;
7
7
  export declare const tabHover: Record<"inverse" | "default", string>;
8
- export declare const tabSelectionVariants: Record<"noSelected" | "noSelectedInverse" | "selected" | "selectedInverse" | "selectedAnimating" | "selectedAnimatingInverse", string>;
8
+ export declare const tabSelectionVariants: Record<"selected" | "noSelected" | "noSelectedInverse" | "selectedInverse" | "selectedAnimating" | "selectedAnimatingInverse", string>;
9
9
  export declare const icon: string;
10
10
  export declare const animatedLine: string;