@telefonica/mistica 14.37.0 → 14.39.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/carousel.js +46 -43
- package/dist/chip.js +51 -34
- package/dist/empty-state-card.js +24 -18
- package/dist/image.css-mistica.js +7 -4
- package/dist/image.css.d.ts +1 -0
- package/dist/image.js +69 -58
- package/dist/index.d.ts +1 -0
- package/dist/index.js +7 -0
- package/dist/inline.css-mistica.js +14 -12
- package/dist/inline.css.d.ts +5 -1
- package/dist/inline.d.ts +4 -2
- package/dist/inline.js +31 -16
- package/dist/loading-bar.css-mistica.js +6 -18
- package/dist/loading-bar.css.d.ts +1 -4
- package/dist/loading-bar.js +22 -27
- package/dist/loading-screen.css-mistica.js +51 -0
- package/dist/loading-screen.css.d.ts +11 -0
- package/dist/loading-screen.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/loading-screen.d.ts +28 -0
- package/dist/loading-screen.js +398 -0
- package/dist/logo.css-mistica.js +21 -5
- package/dist/logo.css.d.ts +7 -0
- package/dist/logo.d.ts +2 -2
- package/dist/logo.js +86 -61
- package/dist/navigation-bar.css-mistica.js +43 -37
- package/dist/navigation-bar.css.d.ts +3 -1
- package/dist/navigation-bar.js +165 -209
- package/dist/package-version.js +1 -1
- package/dist/tabs.css.d.ts +1 -1
- package/dist/vivinho-loading-animation/in-lottie.json.js +1479 -0
- package/dist/vivinho-loading-animation/index.d.ts +8 -0
- package/dist/vivinho-loading-animation/index.js +119 -0
- package/dist/vivinho-loading-animation/out-lottie.json.js +2143 -0
- package/dist/vivinho-loading-animation/pulse-lottie.json.js +2017 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +20 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css.d.ts +2 -0
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/vivinho-loading-animation/wave-lottie.json.js +10207 -0
- package/dist-es/carousel.js +46 -43
- package/dist-es/chip.js +78 -61
- package/dist-es/empty-state-card.js +41 -35
- package/dist-es/image.css-mistica.js +2 -2
- package/dist-es/image.js +86 -76
- package/dist-es/index.js +1782 -1781
- package/dist-es/inline.css-mistica.js +7 -8
- package/dist-es/inline.js +39 -24
- package/dist-es/loading-bar.css-mistica.js +2 -2
- package/dist-es/loading-bar.js +22 -32
- package/dist-es/loading-screen.css-mistica.js +7 -0
- package/dist-es/loading-screen.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/loading-screen.js +335 -0
- package/dist-es/logo.css-mistica.js +7 -2
- package/dist-es/logo.js +110 -85
- package/dist-es/navigation-bar.css-mistica.js +19 -19
- package/dist-es/navigation-bar.js +219 -263
- package/dist-es/package-version.js +1 -1
- package/dist-es/style.css +1 -1
- package/dist-es/vivinho-loading-animation/in-lottie.json.js +1426 -0
- package/dist-es/vivinho-loading-animation/index.js +64 -0
- package/dist-es/vivinho-loading-animation/out-lottie.json.js +2090 -0
- package/dist-es/vivinho-loading-animation/pulse-lottie.json.js +1964 -0
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -0
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/vivinho-loading-animation/wave-lottie.json.js +10154 -0
- package/package.json +2 -1
package/dist/image.js
CHANGED
|
@@ -11,16 +11,16 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
ImageContent: function() {
|
|
14
|
-
return
|
|
14
|
+
return X;
|
|
15
15
|
},
|
|
16
16
|
ImageError: function() {
|
|
17
|
-
return
|
|
17
|
+
return Q;
|
|
18
18
|
},
|
|
19
19
|
RATIO: function() {
|
|
20
|
-
return
|
|
20
|
+
return x;
|
|
21
21
|
},
|
|
22
22
|
default: function() {
|
|
23
|
-
return
|
|
23
|
+
return f1;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -37,6 +37,7 @@ const _imagecssmistica = require("./image.css-mistica.js");
|
|
|
37
37
|
const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
|
|
38
38
|
const _common = require("./utils/common.js");
|
|
39
39
|
const _skeletonbase = /*#__PURE__*/ _interop_require_default(require("./skeleton-base.js"));
|
|
40
|
+
const _environment = require("./utils/environment.js");
|
|
40
41
|
const _css = require("./utils/css.js");
|
|
41
42
|
function _interop_require_default(obj) {
|
|
42
43
|
return obj && obj.__esModule ? obj : {
|
|
@@ -163,7 +164,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
163
164
|
}
|
|
164
165
|
return target;
|
|
165
166
|
}
|
|
166
|
-
const
|
|
167
|
+
const J = (param)=>/* @__PURE__ */ {
|
|
167
168
|
let { style: t } = param;
|
|
168
169
|
return (0, _jsxruntime.jsx)("svg", {
|
|
169
170
|
width: "48",
|
|
@@ -177,9 +178,9 @@ const q = (param)=>/* @__PURE__ */ {
|
|
|
177
178
|
strokeWidth: "2"
|
|
178
179
|
})
|
|
179
180
|
});
|
|
180
|
-
},
|
|
181
|
-
let { borderRadius: t, withIcon: a = !0, border:
|
|
182
|
-
const
|
|
181
|
+
}, Q = /*#__PURE__*/ _react.forwardRef((param, m)=>{
|
|
182
|
+
let { borderRadius: t, withIcon: a = !0, border: d } = param;
|
|
183
|
+
const n = (0, _themevariantcontext.useIsInverseVariant)(), { skinName: s } = (0, _hooks.useTheme)();
|
|
183
184
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
184
185
|
style: {
|
|
185
186
|
height: "100%",
|
|
@@ -187,13 +188,13 @@ const q = (param)=>/* @__PURE__ */ {
|
|
|
187
188
|
display: "flex",
|
|
188
189
|
alignItems: "center",
|
|
189
190
|
justifyContent: "center",
|
|
190
|
-
backgroundColor:
|
|
191
|
+
backgroundColor: n ? _skincontractcssmistica.vars.colors.backgroundSkeletonInverse : _skincontractcssmistica.vars.colors.backgroundSkeleton,
|
|
191
192
|
boxSizing: "border-box",
|
|
192
|
-
border:
|
|
193
|
+
border: d ? `1px solid ${_skincontractcssmistica.vars.colors.borderLow}` : "none",
|
|
193
194
|
borderRadius: t
|
|
194
195
|
},
|
|
195
|
-
ref:
|
|
196
|
-
children: a ?
|
|
196
|
+
ref: m,
|
|
197
|
+
children: a ? s === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(J, {
|
|
197
198
|
style: {
|
|
198
199
|
width: "10%",
|
|
199
200
|
minWidth: 24,
|
|
@@ -208,18 +209,18 @@ const q = (param)=>/* @__PURE__ */ {
|
|
|
208
209
|
maxWidth: 48
|
|
209
210
|
},
|
|
210
211
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("path", {
|
|
211
|
-
fill:
|
|
212
|
+
fill: n ? _skincontractcssmistica.vars.colors.inverse : _skincontractcssmistica.vars.colors.neutralMedium,
|
|
212
213
|
d: "M20.25 4.622c.832 0 1.591.664 1.591 1.393v11.98c0 .728-.76 1.392-1.591 1.392H3.746c-.863 0-1.591-.639-1.591-1.392V6.015c0-.754.728-1.393 1.59-1.393H20.25zm0 13.558c.193 0 .367-.146.39-.207l-.003-11.956a.555.555 0 00-.384-.182H3.746c-.21 0-.364.132-.387.19v11.973c.014.044.171.182.387.182H20.25zM6.152 9.068c0 .554.451 1.005 1.003 1.005a1.006 1.006 0 000-2.01c-.552 0-1.003.45-1.003 1.005zm1.003 2.215a2.216 2.216 0 010-4.43c1.218 0 2.207.993 2.207 2.215a2.213 2.213 0 01-2.207 2.215zm12.42 1.337l-3.18-2.44a.605.605 0 00-.742.005l-3.636 2.9-.879-.83a.6.6 0 00-.798-.025l-5.168 4.317a.607.607 0 00.386 1.07.59.59 0 00.384-.14l4.759-3.975 3.308 3.123c.241.23.625.221.852-.025a.605.605 0 00-.026-.854l-1.932-1.824 3.131-2.496 2.807 2.154a.603.603 0 00.846-.112.609.609 0 00-.112-.848z"
|
|
213
214
|
})
|
|
214
215
|
}) : void 0
|
|
215
216
|
});
|
|
216
|
-
}),
|
|
217
|
+
}), x = {
|
|
217
218
|
"1:1": 1,
|
|
218
219
|
"16:9": 16 / 9,
|
|
219
220
|
"7:10": 7 / 10,
|
|
220
221
|
"4:3": 4 / 3
|
|
221
|
-
},
|
|
222
|
-
var { aspectRatio: t =
|
|
222
|
+
}, S = "1:1", X = /*#__PURE__*/ _react.forwardRef((_param, H)=>{
|
|
223
|
+
var { aspectRatio: t = S, alt: a = "", dataAttributes: d, noBorderRadius: m, src: n, onError: s, onLoad: c, loadingFallback: A = !0, errorFallback: E = !0 } = _param, i = _object_without_properties(_param, [
|
|
223
224
|
"aspectRatio",
|
|
224
225
|
"alt",
|
|
225
226
|
"dataAttributes",
|
|
@@ -230,43 +231,53 @@ const q = (param)=>/* @__PURE__ */ {
|
|
|
230
231
|
"loadingFallback",
|
|
231
232
|
"errorFallback"
|
|
232
233
|
]);
|
|
233
|
-
|
|
234
|
-
|
|
234
|
+
var I;
|
|
235
|
+
const h = (0, _hooks.useAriaId)(), l = _react.useRef(), u = i.circular ? "50%" : m ? "0px" : (0, _css.fallbackStyles)(_imagecssmistica.vars.mediaBorderRadius, _skincontractcssmistica.vars.borderRadii.container), [b, v] = _react.useState(!n), [T, w] = _react.useState(!1), g = i.width && i.height ? void 0 : i.circular ? 1 : typeof t == "number" ? t : x[t], f = A && !!(g !== 0 || i.width && i.height), _ = E && !!(g !== 0 || i.width && i.height), C = _react.useCallback(()=>{
|
|
236
|
+
v(!1), l.current && (l.current.style.opacity = "1"), setTimeout(()=>{
|
|
235
237
|
w(!0);
|
|
236
|
-
}, _imagecssmistica.FADE_IN_DURATION_MS),
|
|
238
|
+
}, _imagecssmistica.FADE_IN_DURATION_MS), c == null || c();
|
|
237
239
|
}, [
|
|
238
|
-
|
|
239
|
-
])
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
240
|
+
c
|
|
241
|
+
]);
|
|
242
|
+
_react.useEffect(()=>{
|
|
243
|
+
var y;
|
|
244
|
+
(y = l.current) != null && y.complete && C();
|
|
245
|
+
}, [
|
|
246
|
+
C
|
|
247
|
+
]);
|
|
248
|
+
const z = (0, _environment.isServerSide)() || !((I = document.getElementById(h)) != null && I.complete), B = /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
249
|
+
children: [
|
|
250
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
|
|
251
|
+
suppressHydrationWarning: !0,
|
|
252
|
+
id: h,
|
|
253
|
+
style: {
|
|
254
|
+
opacity: z && f ? 0 : 1,
|
|
255
|
+
borderRadius: u
|
|
256
|
+
},
|
|
257
|
+
ref: (0, _common.combineRefs)(l, H),
|
|
258
|
+
src: n,
|
|
259
|
+
className: (0, _classnames.default)(_imagecssmistica.image, {
|
|
260
|
+
[_imagecssmistica.imageWithBorder]: i.border
|
|
261
|
+
}, (0, _sprinklescssmistica.sprinkles)({
|
|
262
|
+
position: g !== 0 ? "absolute" : "static"
|
|
263
|
+
})),
|
|
264
|
+
alt: a,
|
|
265
|
+
onError: ()=>{
|
|
266
|
+
v(!0), w(!0), s == null || s();
|
|
267
|
+
},
|
|
268
|
+
onLoad: C
|
|
269
|
+
}),
|
|
270
|
+
f && /* @__PURE__ */ (0, _jsxruntime.jsx)("script", {
|
|
271
|
+
dangerouslySetInnerHTML: {
|
|
272
|
+
__html: `document.getElementById("${h}").addEventListener('load', (e) => e.target.style.opacity = "1")`
|
|
273
|
+
}
|
|
274
|
+
})
|
|
275
|
+
]
|
|
260
276
|
});
|
|
261
277
|
var _i_height, _i_width;
|
|
262
|
-
return
|
|
263
|
-
var I;
|
|
264
|
-
(I = f.current) != null && I.complete && u();
|
|
265
|
-
}, [
|
|
266
|
-
u
|
|
267
|
-
]), /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
278
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
268
279
|
children: [
|
|
269
|
-
|
|
280
|
+
f && !T && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
270
281
|
style: {
|
|
271
282
|
position: "absolute",
|
|
272
283
|
width: "100%",
|
|
@@ -278,38 +289,38 @@ const q = (param)=>/* @__PURE__ */ {
|
|
|
278
289
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_skeletonbase.default, {
|
|
279
290
|
height: "100%",
|
|
280
291
|
width: "100%",
|
|
281
|
-
radius:
|
|
292
|
+
radius: u
|
|
282
293
|
})
|
|
283
294
|
})
|
|
284
295
|
}),
|
|
285
|
-
|
|
296
|
+
b && _ && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
286
297
|
style: {
|
|
287
298
|
position: "absolute",
|
|
288
299
|
width: "100%",
|
|
289
300
|
height: "100%",
|
|
290
301
|
zIndex: 1
|
|
291
302
|
},
|
|
292
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
293
|
-
borderRadius:
|
|
303
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Q, {
|
|
304
|
+
borderRadius: u,
|
|
294
305
|
border: i.border
|
|
295
306
|
})
|
|
296
307
|
}),
|
|
297
|
-
!
|
|
308
|
+
!b && B
|
|
298
309
|
]
|
|
299
310
|
});
|
|
300
|
-
}),
|
|
311
|
+
}), Y = /*#__PURE__*/ _react.forwardRef((t, a)=>{
|
|
301
312
|
var _t_aspectRatio;
|
|
302
|
-
const
|
|
313
|
+
const d = t.width && t.height ? void 0 : t.circular ? 1 : typeof t.aspectRatio == "number" ? t.aspectRatio : x[(_t_aspectRatio = t.aspectRatio) !== null && _t_aspectRatio !== void 0 ? _t_aspectRatio : S];
|
|
303
314
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
|
|
304
315
|
style: {
|
|
305
316
|
position: "relative"
|
|
306
317
|
},
|
|
307
|
-
aspectRatio:
|
|
318
|
+
aspectRatio: d,
|
|
308
319
|
width: t.width,
|
|
309
320
|
height: t.height,
|
|
310
321
|
dataAttributes: (0, _dom.getPrefixedDataAttributes)(t.dataAttributes, "Image"),
|
|
311
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
322
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(X, _object_spread_props(_object_spread({}, t), {
|
|
312
323
|
ref: a
|
|
313
324
|
}))
|
|
314
325
|
});
|
|
315
|
-
}),
|
|
326
|
+
}), f1 = Y;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ export { createNestableContext } from './nestable-context';
|
|
|
22
22
|
export type { NestableContext } from './nestable-context';
|
|
23
23
|
export { default as OverscrollColor, OverscrollColorProvider } from './overscroll-color-context';
|
|
24
24
|
export { FeedbackScreen, ErrorFeedbackScreen, InfoFeedbackScreen, SuccessFeedbackScreen, SuccessFeedback, } from './feedback';
|
|
25
|
+
export { LoadingScreen, BrandLoadingScreen } from './loading-screen';
|
|
25
26
|
export { default as IconButton } from './icon-button';
|
|
26
27
|
export { default as Popover } from './popover';
|
|
27
28
|
export { default as FocusTrap } from './focus-trap';
|
package/dist/index.js
CHANGED
|
@@ -51,6 +51,9 @@ _export(exports, {
|
|
|
51
51
|
BoxedRowList: function() {
|
|
52
52
|
return _list.BoxedRowList;
|
|
53
53
|
},
|
|
54
|
+
BrandLoadingScreen: function() {
|
|
55
|
+
return _loadingscreen.BrandLoadingScreen;
|
|
56
|
+
},
|
|
54
57
|
ButtonDanger: function() {
|
|
55
58
|
return _button.ButtonDanger;
|
|
56
59
|
},
|
|
@@ -5298,6 +5301,9 @@ _export(exports, {
|
|
|
5298
5301
|
LoadingBar: function() {
|
|
5299
5302
|
return _loadingbar.default;
|
|
5300
5303
|
},
|
|
5304
|
+
LoadingScreen: function() {
|
|
5305
|
+
return _loadingscreen.LoadingScreen;
|
|
5306
|
+
},
|
|
5301
5307
|
Logo: function() {
|
|
5302
5308
|
return _logo.Logo;
|
|
5303
5309
|
},
|
|
@@ -5735,6 +5741,7 @@ const _fixedtotop = /*#__PURE__*/ _interop_require_wildcard(require("./fixed-to-
|
|
|
5735
5741
|
const _nestablecontext = require("./nestable-context.js");
|
|
5736
5742
|
const _overscrollcolorcontext = /*#__PURE__*/ _interop_require_wildcard(require("./overscroll-color-context.js"));
|
|
5737
5743
|
const _feedback = require("./feedback.js");
|
|
5744
|
+
const _loadingscreen = require("./loading-screen.js");
|
|
5738
5745
|
const _iconbutton = /*#__PURE__*/ _interop_require_default(require("./icon-button.js"));
|
|
5739
5746
|
const _popover = /*#__PURE__*/ _interop_require_default(require("./popover.js"));
|
|
5740
5747
|
const _focustrap = /*#__PURE__*/ _interop_require_default(require("./focus-trap.js"));
|
|
@@ -9,27 +9,29 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
flexInline: function() {
|
|
13
13
|
return v;
|
|
14
14
|
},
|
|
15
|
-
|
|
15
|
+
fullWidth: function() {
|
|
16
|
+
return a;
|
|
17
|
+
},
|
|
18
|
+
marginInline: function() {
|
|
16
19
|
return n;
|
|
17
20
|
},
|
|
18
21
|
noFullWidth: function() {
|
|
19
|
-
return
|
|
22
|
+
return r;
|
|
20
23
|
},
|
|
21
24
|
vars: function() {
|
|
22
|
-
return
|
|
25
|
+
return b;
|
|
23
26
|
},
|
|
24
27
|
wrap: function() {
|
|
25
|
-
return
|
|
28
|
+
return f;
|
|
26
29
|
}
|
|
27
30
|
});
|
|
28
31
|
require("./inline.css.ts.vanilla.css-mistica.js");
|
|
29
|
-
var v = "
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
}, r = "kkfbnv3 kkfbnv1";
|
|
32
|
+
var v = "kkfbnv5", a = "kkfbnv7 kkfbnv6", n = "kkfbnv4", r = "kkfbnv9 kkfbnv6", b = {
|
|
33
|
+
space: "var(--kkfbnv0)",
|
|
34
|
+
spaceMobile: "var(--kkfbnv1)",
|
|
35
|
+
spaceTablet: "var(--kkfbnv2)",
|
|
36
|
+
spaceDesktop: "var(--kkfbnv3)"
|
|
37
|
+
}, f = "kkfbnv8 kkfbnv6";
|
package/dist/inline.css.d.ts
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
export declare const vars: {
|
|
2
2
|
space: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3
|
+
spaceMobile: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
4
|
+
spaceTablet: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
5
|
+
spaceDesktop: `var(--${string})` | `var(--${string}, ${string})` | `var(--${string}, ${number})`;
|
|
3
6
|
};
|
|
7
|
+
export declare const marginInline: string;
|
|
8
|
+
export declare const flexInline: string;
|
|
4
9
|
export declare const inline: string;
|
|
5
10
|
export declare const fullWidth: string;
|
|
6
11
|
export declare const wrap: string;
|
|
7
12
|
export declare const noFullWidth: string;
|
|
8
|
-
export declare const justifyVariants: Record<"between" | "around" | "evenly", string>;
|
package/dist/inline.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { DataAttributes } from './utils/types';
|
|
2
|
+
import type { ByBreakpoint, DataAttributes } from './utils/types';
|
|
3
|
+
type NumericSpace = -16 | -12 | -8 | -4 | -2 | 0 | 2 | 4 | 8 | 12 | 16 | 24 | 32 | 40 | 48 | 56 | 64;
|
|
4
|
+
type FlexSpace = 'between' | 'around' | 'evenly';
|
|
3
5
|
type Props = {
|
|
4
|
-
space:
|
|
6
|
+
space: FlexSpace | ByBreakpoint<NumericSpace>;
|
|
5
7
|
alignItems?: 'flex-start' | 'flex-end' | 'center' | 'stretch' | 'baseline';
|
|
6
8
|
children: React.ReactNode;
|
|
7
9
|
className?: string;
|
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
|
|
9
|
+
return S;
|
|
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,33 @@ function _object_spread_props(target, source) {
|
|
|
113
116
|
}
|
|
114
117
|
return target;
|
|
115
118
|
}
|
|
116
|
-
const
|
|
117
|
-
|
|
118
|
-
|
|
119
|
+
const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, A = (t)=>{
|
|
120
|
+
if (typeof t == "number" || typeof t == "string") return {
|
|
121
|
+
[_inlinecssmistica.vars.space]: i(t)
|
|
122
|
+
};
|
|
123
|
+
const e = {
|
|
124
|
+
[_inlinecssmistica.vars.spaceMobile]: i(t.mobile),
|
|
125
|
+
[_inlinecssmistica.vars.spaceDesktop]: i(t.desktop)
|
|
126
|
+
};
|
|
127
|
+
return t.tablet && (e[_inlinecssmistica.vars.spaceTablet] = i(t.tablet)), e;
|
|
128
|
+
}, C = (param)=>{
|
|
129
|
+
let { space: t, className: e, children: s, role: a, alignItems: m = "stretch", "aria-labelledby": f, fullWidth: p, wrap: u, dataAttributes: c } = param;
|
|
130
|
+
const d = p || typeof t == "string", { platformOverrides: l } = (0, _hooks.useTheme)(), b = typeof t == "string";
|
|
119
131
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
120
|
-
className: (0, _classnames.default)(
|
|
121
|
-
alignItems:
|
|
122
|
-
}),
|
|
123
|
-
style:
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
"
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
132
|
+
className: (0, _classnames.default)(e, (0, _sprinklescssmistica.sprinkles)({
|
|
133
|
+
alignItems: m
|
|
134
|
+
}), u ? _inlinecssmistica.wrap : d ? _inlinecssmistica.fullWidth : _inlinecssmistica.noFullWidth, b ? _inlinecssmistica.flexInline : _inlinecssmistica.marginInline),
|
|
135
|
+
style: (0, _css.applyCssVars)(A(t)),
|
|
136
|
+
role: a,
|
|
137
|
+
"aria-labelledby": f
|
|
138
|
+
}, (0, _dom.getPrefixedDataAttributes)(c, "Inline")), {
|
|
139
|
+
children: _react.Children.map(s, (n)=>n || n === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
140
|
+
style: {
|
|
141
|
+
// Hack to fix https://jira.tid.es/browse/WEB-1683
|
|
142
|
+
// In iOS the inline component sometimes cuts the last line of the content
|
|
143
|
+
paddingBottom: (0, _platform.isIos)(l) && !(0, _platform.isRunningAcceptanceTest)(l) ? 1 : void 0
|
|
144
|
+
},
|
|
145
|
+
children: n
|
|
131
146
|
}) : null)
|
|
132
147
|
}));
|
|
133
|
-
},
|
|
148
|
+
}, S = C;
|
|
@@ -9,34 +9,22 @@ function _export(target, all) {
|
|
|
9
9
|
});
|
|
10
10
|
}
|
|
11
11
|
_export(exports, {
|
|
12
|
-
|
|
12
|
+
hidden: function() {
|
|
13
13
|
return r;
|
|
14
14
|
},
|
|
15
|
-
enter: function() {
|
|
16
|
-
return _;
|
|
17
|
-
},
|
|
18
|
-
enterActive: function() {
|
|
19
|
-
return e;
|
|
20
|
-
},
|
|
21
|
-
exit: function() {
|
|
22
|
-
return a;
|
|
23
|
-
},
|
|
24
|
-
exitActive: function() {
|
|
25
|
-
return f;
|
|
26
|
-
},
|
|
27
15
|
innerProgress: function() {
|
|
28
|
-
return
|
|
16
|
+
return _;
|
|
29
17
|
},
|
|
30
18
|
portal: function() {
|
|
31
|
-
return
|
|
19
|
+
return f;
|
|
32
20
|
},
|
|
33
21
|
progress: function() {
|
|
34
|
-
return
|
|
22
|
+
return y;
|
|
35
23
|
},
|
|
36
24
|
progressContainer: function() {
|
|
37
|
-
return
|
|
25
|
+
return g;
|
|
38
26
|
}
|
|
39
27
|
});
|
|
40
28
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
41
29
|
require("./loading-bar.css.ts.vanilla.css-mistica.js");
|
|
42
|
-
var r =
|
|
30
|
+
var r = "_1num3qg3", _ = "_1num3qga _1y2v1nfhk", f = "_1num3qg2 _1y2v1nfgc _1y2v1nfjn _1y2v1nfk2 _1y2v1nfkh", y = "_1num3qg7 _1y2v1nfgb _1y2v1nfhk _1y2v1nfh3", g = "_1y2v1nfh3 _1y2v1nfjh _1y2v1nfga _1y2v1nf4i _1y2v1nfhn";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
export declare const TRANSITION_DURATION_MS = 400;
|
|
2
2
|
export declare const portal: string;
|
|
3
|
+
export declare const hidden: string;
|
|
3
4
|
export declare const progressContainer: string;
|
|
4
5
|
export declare const progress: string;
|
|
5
6
|
export declare const innerProgress: string;
|
|
6
|
-
export declare const enter: string;
|
|
7
|
-
export declare const enterActive: string;
|
|
8
|
-
export declare const exit: string;
|
|
9
|
-
export declare const exitActive: string;
|
package/dist/loading-bar.js
CHANGED
|
@@ -6,15 +6,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
Object.defineProperty(exports, "default", {
|
|
7
7
|
enumerable: true,
|
|
8
8
|
get: function() {
|
|
9
|
-
return
|
|
9
|
+
return u;
|
|
10
10
|
}
|
|
11
11
|
});
|
|
12
12
|
const _jsxruntime = require("react/jsx-runtime");
|
|
13
|
-
const _reacttransitiongroup = require("react-transition-group");
|
|
14
13
|
const _portal = require("./portal.js");
|
|
15
14
|
const _loadingbarcssmistica = require("./loading-bar.css-mistica.js");
|
|
16
15
|
const _dom = require("./utils/dom.js");
|
|
17
|
-
const
|
|
16
|
+
const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
|
|
17
|
+
function _interop_require_default(obj) {
|
|
18
|
+
return obj && obj.__esModule ? obj : {
|
|
19
|
+
default: obj
|
|
20
|
+
};
|
|
21
|
+
}
|
|
18
22
|
function _define_property(obj, key, value) {
|
|
19
23
|
if (key in obj) {
|
|
20
24
|
Object.defineProperty(obj, key, {
|
|
@@ -67,30 +71,21 @@ function _object_spread_props(target, source) {
|
|
|
67
71
|
}
|
|
68
72
|
return target;
|
|
69
73
|
}
|
|
70
|
-
const
|
|
71
|
-
let { visible:
|
|
72
|
-
return (0, _jsxruntime.jsx)(
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
unmountOnExit: !0,
|
|
82
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_portal.Portal, {
|
|
83
|
-
className: _loadingbarcssmistica.portal,
|
|
84
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
85
|
-
className: _loadingbarcssmistica.progressContainer
|
|
86
|
-
}, (0, _dom.getPrefixedDataAttributes)(t, "LoadingBar")), {
|
|
74
|
+
const c = (param)=>/* @__PURE__ */ {
|
|
75
|
+
let { visible: a, dataAttributes: o } = param;
|
|
76
|
+
return (0, _jsxruntime.jsx)(_portal.Portal, {
|
|
77
|
+
className: (0, _classnames.default)(_loadingbarcssmistica.portal, {
|
|
78
|
+
[_loadingbarcssmistica.hidden]: !a
|
|
79
|
+
}),
|
|
80
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({
|
|
81
|
+
className: _loadingbarcssmistica.progressContainer
|
|
82
|
+
}, (0, _dom.getPrefixedDataAttributes)(o, "LoadingBar")), {
|
|
83
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
84
|
+
className: _loadingbarcssmistica.progress,
|
|
87
85
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
88
|
-
className: _loadingbarcssmistica.
|
|
89
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
90
|
-
className: _loadingbarcssmistica.innerProgress
|
|
91
|
-
})
|
|
86
|
+
className: _loadingbarcssmistica.innerProgress
|
|
92
87
|
})
|
|
93
|
-
})
|
|
94
|
-
})
|
|
88
|
+
})
|
|
89
|
+
}))
|
|
95
90
|
});
|
|
96
|
-
},
|
|
91
|
+
}, u = 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,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 {};
|