@telefonica/mistica 14.36.1 → 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.
- package/css/mistica.css +1 -1
- package/dist/accordion.css-mistica.js +5 -5
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +3 -3
- package/dist/boxed.css-mistica.js +1 -1
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +10 -10
- package/dist/button.css-mistica.js +40 -32
- package/dist/button.css.d.ts +7 -4
- package/dist/button.d.ts +4 -2
- package/dist/button.js +176 -148
- package/dist/callout.css-mistica.js +1 -1
- package/dist/card.css-mistica.js +22 -22
- package/dist/card.js +10 -10
- package/dist/carousel.css-mistica.js +18 -18
- package/dist/checkbox.css-mistica.js +10 -10
- package/dist/chip.css-mistica.js +8 -8
- package/dist/chip.js +47 -42
- package/dist/circle.css-mistica.js +2 -2
- package/dist/community/advanced-data-card.css-mistica.js +13 -13
- package/dist/community/blocks.css-mistica.js +1 -1
- package/dist/counter.css-mistica.js +7 -7
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/dialog.css-mistica.js +11 -11
- package/dist/double-field.css-mistica.js +4 -4
- package/dist/empty-state-card.css-mistica.js +2 -2
- package/dist/empty-state.css-mistica.js +6 -6
- package/dist/feedback.css-mistica.js +6 -6
- package/dist/fixed-footer-layout.css-mistica.js +2 -2
- package/dist/grid.css-mistica.js +118 -120
- package/dist/grid.css.d.ts +0 -2
- package/dist/grid.d.ts +2 -2
- package/dist/grid.js +41 -26
- package/dist/header.css-mistica.js +1 -1
- package/dist/hero.css-mistica.js +5 -5
- package/dist/highlighted-card.css-mistica.js +7 -7
- package/dist/horizontal-scroll.css-mistica.js +3 -3
- package/dist/icon-button.css-mistica.js +2 -2
- package/dist/image.css-mistica.js +3 -3
- package/dist/image.d.ts +1 -1
- package/dist/image.js +21 -21
- package/dist/index.d.ts +3 -1
- package/dist/index.js +17 -0
- package/dist/inline.js +20 -12
- package/dist/list.css-mistica.js +16 -16
- package/dist/loading-bar.css-mistica.js +7 -7
- 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/maybe-dismissable.css-mistica.js +1 -1
- package/dist/menu.css-mistica.js +1 -1
- package/dist/mosaic.css-mistica.js +23 -0
- package/dist/mosaic.css.d.ts +6 -0
- package/dist/mosaic.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/mosaic.d.ts +15 -0
- package/dist/mosaic.js +206 -0
- package/dist/navigation-bar.css-mistica.js +24 -24
- package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
- package/dist/package-version.js +1 -1
- package/dist/password-field.css-mistica.js +1 -1
- package/dist/pin-field.css-mistica.js +6 -6
- package/dist/popover.css-mistica.js +10 -10
- package/dist/progress-bar.css-mistica.js +5 -5
- package/dist/radio-button.css-mistica.js +11 -11
- package/dist/responsive-layout.css-mistica.js +3 -3
- package/dist/screen-reader-only.css-mistica.js +2 -2
- package/dist/select.css-mistica.js +14 -14
- package/dist/sheet.css-mistica.js +11 -11
- package/dist/sheet.js +8 -8
- package/dist/skeletons.css-mistica.js +3 -3
- package/dist/skins/blau.js +8 -2
- package/dist/skins/movistar-legacy.js +6 -0
- package/dist/skins/movistar.js +6 -0
- package/dist/skins/o2-classic.js +6 -0
- package/dist/skins/o2.js +6 -0
- package/dist/skins/skin-contract.css-mistica.js +205 -199
- package/dist/skins/skin-contract.css.d.ts +6 -0
- package/dist/skins/telefonica.js +6 -0
- package/dist/skins/types/colors.d.ts +3 -0
- package/dist/skins/vivo-new.js +6 -0
- package/dist/skins/vivo.js +6 -0
- package/dist/slider.css-mistica.js +7 -7
- package/dist/snackbar.css-mistica.js +14 -14
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/sprinkles.css-mistica.js +921 -407
- package/dist/sprinkles.css.d.ts +21 -1
- package/dist/stacking-group.css-mistica.js +2 -2
- package/dist/stepper.css-mistica.js +9 -9
- package/dist/switch-component.css-mistica.js +23 -23
- package/dist/tabs.css-mistica.js +12 -12
- package/dist/tabs.css.d.ts +1 -1
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +9 -9
- package/dist/text-field-components.css-mistica.js +11 -11
- package/dist/text-field-components.js +30 -26
- package/dist/text-link.css-mistica.js +3 -3
- package/dist/theme.d.ts +1 -1
- package/dist/theme.js +1 -0
- package/dist/tooltip.css-mistica.js +6 -6
- package/dist/touchable.css-mistica.js +3 -3
- package/dist/utils/aspect-ratio-support.css-mistica.js +4 -4
- package/dist/utils/aspect-ratio-support.d.ts +1 -1
- package/dist/utils/aspect-ratio-support.js +2 -1
- package/dist/video.css-mistica.js +2 -2
- package/dist/video.js +22 -22
- 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/accordion.css-mistica.js +3 -3
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +2 -2
- package/dist-es/boxed.css-mistica.js +1 -1
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +7 -7
- package/dist-es/button.css-mistica.js +18 -10
- package/dist-es/button.js +213 -188
- package/dist-es/callout.css-mistica.js +1 -1
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +10 -10
- package/dist-es/carousel.css-mistica.js +2 -2
- package/dist-es/checkbox.css-mistica.js +6 -6
- package/dist-es/chip.css-mistica.js +7 -7
- package/dist-es/chip.js +70 -65
- package/dist-es/circle.css-mistica.js +2 -2
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/blocks.css-mistica.js +1 -1
- package/dist-es/counter.css-mistica.js +2 -2
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/dialog.css-mistica.js +5 -5
- package/dist-es/double-field.css-mistica.js +4 -4
- package/dist-es/empty-state-card.css-mistica.js +2 -2
- package/dist-es/empty-state.css-mistica.js +3 -3
- package/dist-es/feedback.css-mistica.js +2 -2
- package/dist-es/fixed-footer-layout.css-mistica.js +2 -2
- package/dist-es/grid.css-mistica.js +117 -119
- package/dist-es/grid.js +44 -29
- package/dist-es/header.css-mistica.js +1 -1
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/highlighted-card.css-mistica.js +5 -5
- package/dist-es/horizontal-scroll.css-mistica.js +2 -2
- package/dist-es/icon-button.css-mistica.js +2 -2
- package/dist-es/image.css-mistica.js +2 -2
- package/dist-es/image.js +37 -37
- package/dist-es/index.js +1796 -1794
- package/dist-es/inline.js +29 -21
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/loading-bar.css-mistica.js +2 -2
- 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/maybe-dismissable.css-mistica.js +1 -1
- package/dist-es/menu.css-mistica.js +1 -1
- package/dist-es/mosaic.css-mistica.js +3 -0
- package/dist-es/mosaic.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/mosaic.js +189 -0
- package/dist-es/navigation-bar.css-mistica.js +12 -12
- package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
- package/dist-es/package-version.js +1 -1
- package/dist-es/password-field.css-mistica.js +1 -1
- package/dist-es/pin-field.css-mistica.js +2 -2
- package/dist-es/popover.css-mistica.js +2 -2
- package/dist-es/progress-bar.css-mistica.js +2 -2
- package/dist-es/radio-button.css-mistica.js +6 -6
- package/dist-es/responsive-layout.css-mistica.js +3 -3
- package/dist-es/screen-reader-only.css-mistica.js +2 -2
- package/dist-es/select.css-mistica.js +11 -11
- package/dist-es/sheet.css-mistica.js +2 -2
- package/dist-es/sheet.js +8 -8
- package/dist-es/skeletons.css-mistica.js +2 -2
- package/dist-es/skins/blau.js +8 -2
- package/dist-es/skins/movistar-legacy.js +8 -2
- package/dist-es/skins/movistar.js +6 -0
- package/dist-es/skins/o2-classic.js +6 -0
- package/dist-es/skins/o2.js +6 -0
- package/dist-es/skins/skin-contract.css-mistica.js +205 -199
- package/dist-es/skins/telefonica.js +6 -0
- package/dist-es/skins/vivo-new.js +6 -0
- package/dist-es/skins/vivo.js +6 -0
- package/dist-es/slider.css-mistica.js +2 -2
- package/dist-es/snackbar.css-mistica.js +5 -5
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/sprinkles.css-mistica.js +921 -407
- package/dist-es/stacking-group.css-mistica.js +2 -2
- package/dist-es/stepper.css-mistica.js +2 -2
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +18 -18
- package/dist-es/tabs.css-mistica.js +7 -7
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +2 -2
- package/dist-es/text-field-components.css-mistica.js +2 -2
- package/dist-es/text-field-components.js +49 -44
- package/dist-es/text-link.css-mistica.js +3 -3
- package/dist-es/theme.js +1 -0
- package/dist-es/tooltip.css-mistica.js +2 -2
- package/dist-es/touchable.css-mistica.js +2 -2
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist-es/utils/aspect-ratio-support.js +2 -1
- package/dist-es/video.css-mistica.js +2 -2
- package/dist-es/video.js +22 -22
- 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
|
@@ -13,14 +13,14 @@ _export(exports, {
|
|
|
13
13
|
return r;
|
|
14
14
|
},
|
|
15
15
|
image: function() {
|
|
16
|
-
return
|
|
16
|
+
return n;
|
|
17
17
|
},
|
|
18
18
|
vars: function() {
|
|
19
|
-
return
|
|
19
|
+
return f;
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
23
23
|
require("./image.css.ts.vanilla.css-mistica.js");
|
|
24
|
-
var r = 300,
|
|
24
|
+
var r = 300, n = "_17tt25r2 _1y2v1nfjn _1y2v1nfk2 _1y2v1nfgi _1y2v1nfh3 _1y2v1nfhk _1y2v1nflb _1y2v1nfiv _1y2v1nfiw _1y2v1nfj7", f = {
|
|
25
25
|
mediaBorderRadius: "var(--_17tt25r0)"
|
|
26
26
|
};
|
package/dist/image.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ type ImageErrorProps = {
|
|
|
7
7
|
border?: boolean;
|
|
8
8
|
};
|
|
9
9
|
export declare const ImageError: React.ForwardRefExoticComponent<ImageErrorProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
-
export type AspectRatio = '1:1' | '16:9' | '7:10' | '4:3';
|
|
10
|
+
export type AspectRatio = '1:1' | '16:9' | '7:10' | '4:3' | undefined;
|
|
11
11
|
export declare const RATIO: {
|
|
12
12
|
'1:1': number;
|
|
13
13
|
'16:9': number;
|
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 J;
|
|
15
15
|
},
|
|
16
16
|
ImageError: function() {
|
|
17
|
-
return
|
|
17
|
+
return G;
|
|
18
18
|
},
|
|
19
19
|
RATIO: function() {
|
|
20
20
|
return k;
|
|
21
21
|
},
|
|
22
22
|
default: function() {
|
|
23
|
-
return
|
|
23
|
+
return h1;
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
26
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -163,7 +163,7 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
163
163
|
}
|
|
164
164
|
return target;
|
|
165
165
|
}
|
|
166
|
-
const
|
|
166
|
+
const q = (param)=>/* @__PURE__ */ {
|
|
167
167
|
let { style: t } = param;
|
|
168
168
|
return (0, _jsxruntime.jsx)("svg", {
|
|
169
169
|
width: "48",
|
|
@@ -177,7 +177,7 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
177
177
|
strokeWidth: "2"
|
|
178
178
|
})
|
|
179
179
|
});
|
|
180
|
-
},
|
|
180
|
+
}, G = /*#__PURE__*/ _react.forwardRef((param, l)=>{
|
|
181
181
|
let { borderRadius: t, withIcon: a = !0, border: c } = param;
|
|
182
182
|
const s = (0, _themevariantcontext.useIsInverseVariant)(), { skinName: n } = (0, _hooks.useTheme)();
|
|
183
183
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -192,8 +192,8 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
192
192
|
border: c ? `1px solid ${_skincontractcssmistica.vars.colors.borderLow}` : "none",
|
|
193
193
|
borderRadius: t
|
|
194
194
|
},
|
|
195
|
-
ref:
|
|
196
|
-
children: a ? n === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
195
|
+
ref: l,
|
|
196
|
+
children: a ? n === _constants.VIVO_SKIN ? /* @__PURE__ */ (0, _jsxruntime.jsx)(q, {
|
|
197
197
|
style: {
|
|
198
198
|
width: "10%",
|
|
199
199
|
minWidth: 24,
|
|
@@ -218,8 +218,8 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
218
218
|
"16:9": 16 / 9,
|
|
219
219
|
"7:10": 7 / 10,
|
|
220
220
|
"4:3": 4 / 3
|
|
221
|
-
}, x = "1:1",
|
|
222
|
-
var { aspectRatio: t = x, alt: a = "", dataAttributes: c, noBorderRadius:
|
|
221
|
+
}, x = "1:1", J = /*#__PURE__*/ _react.forwardRef((_param, S)=>{
|
|
222
|
+
var { aspectRatio: t = x, alt: a = "", dataAttributes: c, noBorderRadius: l, src: s, onError: n, onLoad: d, loadingFallback: R = !0, errorFallback: y = !0 } = _param, i = _object_without_properties(_param, [
|
|
223
223
|
"aspectRatio",
|
|
224
224
|
"alt",
|
|
225
225
|
"dataAttributes",
|
|
@@ -230,12 +230,12 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
230
230
|
"loadingFallback",
|
|
231
231
|
"errorFallback"
|
|
232
232
|
]);
|
|
233
|
-
const f = _react.useRef(), A = i.border ? `1px solid ${_skincontractcssmistica.vars.colors.borderLow}` : "none",
|
|
233
|
+
const f = _react.useRef(), A = i.border ? `1px solid ${_skincontractcssmistica.vars.colors.borderLow}` : "none", h = i.circular ? "50%" : l ? "0px" : (0, _css.fallbackStyles)(_imagecssmistica.vars.mediaBorderRadius, _skincontractcssmistica.vars.borderRadii.container), [C, g] = _react.useState(!s), [z, b] = _react.useState(!0), [F, w] = _react.useState(!1), m = i.width && i.height ? void 0 : i.circular ? 1 : typeof t == "number" ? t : k[t], v = R && !!(m !== 0 || i.width && i.height), L = y && !!(m !== 0 || i.width && i.height), u = _react.useCallback(()=>{
|
|
234
234
|
g(!1), b(!1), setTimeout(()=>{
|
|
235
235
|
w(!0);
|
|
236
|
-
}, _imagecssmistica.FADE_IN_DURATION_MS),
|
|
236
|
+
}, _imagecssmistica.FADE_IN_DURATION_MS), d == null || d();
|
|
237
237
|
}, [
|
|
238
|
-
|
|
238
|
+
d
|
|
239
239
|
]), T = // eslint-disable-next-line jsx-a11y/no-noninteractive-element-interactions
|
|
240
240
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("img", {
|
|
241
241
|
style: _object_spread_props(_object_spread({}, z && v ? {
|
|
@@ -245,12 +245,12 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
245
245
|
}), {
|
|
246
246
|
boxSizing: "border-box",
|
|
247
247
|
border: A,
|
|
248
|
-
borderRadius:
|
|
248
|
+
borderRadius: h
|
|
249
249
|
}),
|
|
250
250
|
ref: (0, _common.combineRefs)(f, S),
|
|
251
251
|
src: s,
|
|
252
252
|
className: (0, _classnames.default)(_imagecssmistica.image, (0, _sprinklescssmistica.sprinkles)({
|
|
253
|
-
position:
|
|
253
|
+
position: m !== 0 ? "absolute" : "static"
|
|
254
254
|
})),
|
|
255
255
|
alt: a,
|
|
256
256
|
onError: ()=>{
|
|
@@ -278,7 +278,7 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
278
278
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_skeletonbase.default, {
|
|
279
279
|
height: "100%",
|
|
280
280
|
width: "100%",
|
|
281
|
-
radius:
|
|
281
|
+
radius: h
|
|
282
282
|
})
|
|
283
283
|
})
|
|
284
284
|
}),
|
|
@@ -289,17 +289,17 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
289
289
|
height: "100%",
|
|
290
290
|
zIndex: 1
|
|
291
291
|
},
|
|
292
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
293
|
-
borderRadius:
|
|
292
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(G, {
|
|
293
|
+
borderRadius: h,
|
|
294
294
|
border: i.border
|
|
295
295
|
})
|
|
296
296
|
}),
|
|
297
297
|
!C && T
|
|
298
298
|
]
|
|
299
299
|
});
|
|
300
|
-
}),
|
|
300
|
+
}), Q = /*#__PURE__*/ _react.forwardRef((t, a)=>{
|
|
301
301
|
var _t_aspectRatio;
|
|
302
|
-
const c = t.circular ? 1 : typeof t.aspectRatio == "number" ? t.aspectRatio : k[(_t_aspectRatio = t.aspectRatio) !== null && _t_aspectRatio !== void 0 ? _t_aspectRatio : x];
|
|
302
|
+
const c = t.width && t.height ? void 0 : t.circular ? 1 : typeof t.aspectRatio == "number" ? t.aspectRatio : k[(_t_aspectRatio = t.aspectRatio) !== null && _t_aspectRatio !== void 0 ? _t_aspectRatio : x];
|
|
303
303
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
|
|
304
304
|
style: {
|
|
305
305
|
position: "relative"
|
|
@@ -308,8 +308,8 @@ const Z = (param)=>/* @__PURE__ */ {
|
|
|
308
308
|
width: t.width,
|
|
309
309
|
height: t.height,
|
|
310
310
|
dataAttributes: (0, _dom.getPrefixedDataAttributes)(t.dataAttributes, "Image"),
|
|
311
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
311
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(J, _object_spread_props(_object_spread({}, t), {
|
|
312
312
|
ref: a
|
|
313
313
|
}))
|
|
314
314
|
});
|
|
315
|
-
}),
|
|
315
|
+
}), h1 = Q;
|
package/dist/index.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export type { TouchableElement } from './touchable';
|
|
|
8
8
|
export { default as Spinner } from './spinner';
|
|
9
9
|
export { default as FadeIn } from './fade-in';
|
|
10
10
|
export { AccordionItem, BoxedAccordionItem, Accordion, BoxedAccordion } from './accordion';
|
|
11
|
-
export { ButtonPrimary, ButtonSecondary, ButtonDanger, ButtonLink } from './button';
|
|
11
|
+
export { ButtonPrimary, ButtonSecondary, ButtonDanger, ButtonLink, ButtonLinkDanger } from './button';
|
|
12
12
|
export { default as ButtonLayout } from './button-layout';
|
|
13
13
|
export { default as Counter } from './counter';
|
|
14
14
|
export { default as FixedFooterLayout } from './fixed-footer-layout';
|
|
@@ -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';
|
|
@@ -54,6 +55,7 @@ export { default as HorizontalScroll } from './horizontal-scroll';
|
|
|
54
55
|
export { default as HighlightedCard } from './highlighted-card';
|
|
55
56
|
export { default as Stepper } from './stepper';
|
|
56
57
|
export { ProgressBar, ProgressBarStepped } from './progress-bar';
|
|
58
|
+
export { VerticalMosaic, HorizontalMosaic } from './mosaic';
|
|
57
59
|
export { MediaCard, DataCard, SnapCard, DisplayDataCard, DisplayMediaCard, PosterCard, NakedCard, SmallNakedCard, CardActionSpinner, CardActionIconButton, } from './card';
|
|
58
60
|
export { default as Hero } from './hero';
|
|
59
61
|
export { default as Divider } from './divider';
|
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
|
},
|
|
@@ -63,6 +66,9 @@ _export(exports, {
|
|
|
63
66
|
ButtonLink: function() {
|
|
64
67
|
return _button.ButtonLink;
|
|
65
68
|
},
|
|
69
|
+
ButtonLinkDanger: function() {
|
|
70
|
+
return _button.ButtonLinkDanger;
|
|
71
|
+
},
|
|
66
72
|
ButtonPrimary: function() {
|
|
67
73
|
return _button.ButtonPrimary;
|
|
68
74
|
},
|
|
@@ -210,6 +216,9 @@ _export(exports, {
|
|
|
210
216
|
HighlightedCard: function() {
|
|
211
217
|
return _highlightedcard.default;
|
|
212
218
|
},
|
|
219
|
+
HorizontalMosaic: function() {
|
|
220
|
+
return _mosaic.HorizontalMosaic;
|
|
221
|
+
},
|
|
213
222
|
HorizontalScroll: function() {
|
|
214
223
|
return _horizontalscroll.default;
|
|
215
224
|
},
|
|
@@ -5292,6 +5301,9 @@ _export(exports, {
|
|
|
5292
5301
|
LoadingBar: function() {
|
|
5293
5302
|
return _loadingbar.default;
|
|
5294
5303
|
},
|
|
5304
|
+
LoadingScreen: function() {
|
|
5305
|
+
return _loadingscreen.LoadingScreen;
|
|
5306
|
+
},
|
|
5295
5307
|
Logo: function() {
|
|
5296
5308
|
return _logo.Logo;
|
|
5297
5309
|
},
|
|
@@ -5574,6 +5586,9 @@ _export(exports, {
|
|
|
5574
5586
|
VIVO_SKIN: function() {
|
|
5575
5587
|
return _constants.VIVO_SKIN;
|
|
5576
5588
|
},
|
|
5589
|
+
VerticalMosaic: function() {
|
|
5590
|
+
return _mosaic.VerticalMosaic;
|
|
5591
|
+
},
|
|
5577
5592
|
Video: function() {
|
|
5578
5593
|
return _video.default;
|
|
5579
5594
|
},
|
|
@@ -5726,6 +5741,7 @@ const _fixedtotop = /*#__PURE__*/ _interop_require_wildcard(require("./fixed-to-
|
|
|
5726
5741
|
const _nestablecontext = require("./nestable-context.js");
|
|
5727
5742
|
const _overscrollcolorcontext = /*#__PURE__*/ _interop_require_wildcard(require("./overscroll-color-context.js"));
|
|
5728
5743
|
const _feedback = require("./feedback.js");
|
|
5744
|
+
const _loadingscreen = require("./loading-screen.js");
|
|
5729
5745
|
const _iconbutton = /*#__PURE__*/ _interop_require_default(require("./icon-button.js"));
|
|
5730
5746
|
const _popover = /*#__PURE__*/ _interop_require_default(require("./popover.js"));
|
|
5731
5747
|
const _focustrap = /*#__PURE__*/ _interop_require_default(require("./focus-trap.js"));
|
|
@@ -5757,6 +5773,7 @@ const _horizontalscroll = /*#__PURE__*/ _interop_require_default(require("./hori
|
|
|
5757
5773
|
const _highlightedcard = /*#__PURE__*/ _interop_require_default(require("./highlighted-card.js"));
|
|
5758
5774
|
const _stepper = /*#__PURE__*/ _interop_require_default(require("./stepper.js"));
|
|
5759
5775
|
const _progressbar = require("./progress-bar.js");
|
|
5776
|
+
const _mosaic = require("./mosaic.js");
|
|
5760
5777
|
const _card = require("./card.js");
|
|
5761
5778
|
const _hero = /*#__PURE__*/ _interop_require_default(require("./hero.js"));
|
|
5762
5779
|
const _divider = /*#__PURE__*/ _interop_require_default(require("./divider.js"));
|
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 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
|
|
117
|
-
let { space: r, className:
|
|
118
|
-
const
|
|
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)(
|
|
121
|
-
alignItems:
|
|
122
|
-
}),
|
|
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:
|
|
127
|
-
"aria-labelledby":
|
|
128
|
-
}, (0, _dom.getPrefixedDataAttributes)(f)), {
|
|
129
|
-
children: _react.Children.map(
|
|
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
|
-
},
|
|
141
|
+
}, N = C;
|
package/dist/list.css-mistica.js
CHANGED
|
@@ -13,57 +13,57 @@ _export(exports, {
|
|
|
13
13
|
return _;
|
|
14
14
|
},
|
|
15
15
|
badge: function() {
|
|
16
|
-
return
|
|
16
|
+
return y;
|
|
17
17
|
},
|
|
18
18
|
center: function() {
|
|
19
|
-
return
|
|
19
|
+
return f;
|
|
20
20
|
},
|
|
21
21
|
content: function() {
|
|
22
|
-
return
|
|
22
|
+
return g;
|
|
23
23
|
},
|
|
24
24
|
detail: function() {
|
|
25
|
-
return
|
|
25
|
+
return a;
|
|
26
26
|
},
|
|
27
27
|
detailRight: function() {
|
|
28
28
|
return r;
|
|
29
29
|
},
|
|
30
30
|
disabled: function() {
|
|
31
|
-
return
|
|
31
|
+
return i;
|
|
32
32
|
},
|
|
33
33
|
dualActionContainer: function() {
|
|
34
|
-
return
|
|
34
|
+
return t;
|
|
35
35
|
},
|
|
36
36
|
dualActionDivider: function() {
|
|
37
|
-
return
|
|
37
|
+
return e;
|
|
38
38
|
},
|
|
39
39
|
dualActionLeft: function() {
|
|
40
|
-
return
|
|
40
|
+
return o;
|
|
41
41
|
},
|
|
42
42
|
dualActionRight: function() {
|
|
43
|
-
return
|
|
43
|
+
return h;
|
|
44
44
|
},
|
|
45
45
|
pointer: function() {
|
|
46
|
-
return
|
|
46
|
+
return u;
|
|
47
47
|
},
|
|
48
48
|
right: function() {
|
|
49
|
-
return
|
|
49
|
+
return d;
|
|
50
50
|
},
|
|
51
51
|
rightRestrictedWidth: function() {
|
|
52
|
-
return
|
|
52
|
+
return b;
|
|
53
53
|
},
|
|
54
54
|
rowBody: function() {
|
|
55
|
-
return
|
|
55
|
+
return c;
|
|
56
56
|
},
|
|
57
57
|
rowContent: function() {
|
|
58
58
|
return j;
|
|
59
59
|
},
|
|
60
60
|
touchableBackground: function() {
|
|
61
|
-
return
|
|
61
|
+
return l;
|
|
62
62
|
},
|
|
63
63
|
touchableBackgroundInverse: function() {
|
|
64
|
-
return
|
|
64
|
+
return k;
|
|
65
65
|
}
|
|
66
66
|
});
|
|
67
67
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
68
68
|
require("./list.css.ts.vanilla.css-mistica.js");
|
|
69
|
-
var _ = "
|
|
69
|
+
var _ = "_1y2v1nfgg _1y2v1nfgy _1y2v1nfh0", y = "_1y2v1nfgp _1y2v1nfi6 _1y2v1nfhk _1y2v1nfgy", f = "_1y2v1nfgg _1y2v1nfgv", g = "_1y2v1nfgg _1y2v1nfh3 _1y2v1nfit", a = "_2buj9gf", r = "_2buj9ge", i = "_2buj9g0", t = "_1y2v1nfgg _1y2v1nfgl _1y2v1nfhk", e = "_2buj9gm _1y2v1nfgg", o = "_1y2v1nf69 _1y2v1nf7i _1y2v1nf8r _1y2v1nfa0 _1y2v1nfiy _1y2v1nf68 _1y2v1nf96 _1y2v1nfaf _1y2v1nfgi _1y2v1nfh1", h = "_2buj9go _1y2v1nf69 _1y2v1nf7i _1y2v1nf8r _1y2v1nfa0 _1y2v1nfiy _1y2v1nf68 _1y2v1nf96 _1y2v1nfaf _1y2v1nfgg _1y2v1nfgv _1y2v1nfh0 _1y2v1nfh4 _1y2v1nfhk", u = "_1y2v1nfjg", d = "_2buj9gc", b = "_2buj9gd", c = "_1y2v1nfgg _1y2v1nfgm _1y2v1nfh2", j = "_1y2v1nf69 _1y2v1nf7i _1y2v1nf8r _1y2v1nfa0 _1y2v1nfh3 _1y2v1nfiy _1y2v1nf68 _1y2v1nfgi _1y2v1nfhk", l = "_2buj9g1", k = "_2buj9g2";
|
|
@@ -19,24 +19,24 @@ _export(exports, {
|
|
|
19
19
|
return e;
|
|
20
20
|
},
|
|
21
21
|
exit: function() {
|
|
22
|
-
return
|
|
22
|
+
return a;
|
|
23
23
|
},
|
|
24
24
|
exitActive: function() {
|
|
25
|
-
return
|
|
25
|
+
return f;
|
|
26
26
|
},
|
|
27
27
|
innerProgress: function() {
|
|
28
|
-
return
|
|
28
|
+
return g;
|
|
29
29
|
},
|
|
30
30
|
portal: function() {
|
|
31
|
-
return
|
|
31
|
+
return y;
|
|
32
32
|
},
|
|
33
33
|
progress: function() {
|
|
34
|
-
return
|
|
34
|
+
return t;
|
|
35
35
|
},
|
|
36
36
|
progressContainer: function() {
|
|
37
|
-
return
|
|
37
|
+
return i;
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
require("./sprinkles.css.ts.vanilla.css-mistica.js");
|
|
41
41
|
require("./loading-bar.css.ts.vanilla.css-mistica.js");
|
|
42
|
-
var r = 400, _ = "_1num3qg9", e = "_1num3qga",
|
|
42
|
+
var r = 400, _ = "_1num3qg9", e = "_1num3qga", a = "_1num3qgb", f = "_1num3qgc", g = "_1num3qg8 _1y2v1nfhk", y = "_1num3qg3 _1y2v1nfgc _1y2v1nfjn _1y2v1nfk2 _1y2v1nfkh", t = "_1num3qg6 _1y2v1nfgb _1y2v1nfhk _1y2v1nfh3", i = "_1y2v1nfh3 _1y2v1nfjh _1y2v1nfga _1y2v1nf4i _1y2v1nfhn";
|
|
@@ -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 {};
|