@telefonica/mistica 16.1.0 → 16.2.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 +12 -9
- package/dist/accordion.css.d.ts +1 -0
- package/dist/accordion.js +36 -39
- package/dist/align.css-mistica.js +12 -0
- package/dist/align.css.d.ts +1 -0
- package/dist/align.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/align.d.ts +12 -0
- package/dist/align.js +79 -0
- package/dist/box.css-mistica.js +41 -0
- package/dist/box.css.d.ts +23 -0
- package/dist/box.css.ts.vanilla.css-mistica.js +11 -0
- package/dist/box.d.ts +4 -0
- package/dist/box.js +39 -31
- package/dist/boxed.css-mistica.js +10 -5
- package/dist/boxed.css.d.ts +3 -0
- package/dist/boxed.js +20 -24
- package/dist/callout.css-mistica.js +12 -4
- package/dist/callout.css.d.ts +1 -0
- package/dist/callout.js +14 -22
- package/dist/card.css-mistica.js +26 -23
- package/dist/card.css.d.ts +1 -0
- package/dist/card.js +17 -23
- package/dist/community/advanced-data-card.css-mistica.js +32 -23
- package/dist/community/advanced-data-card.css.d.ts +3 -0
- package/dist/community/advanced-data-card.js +46 -55
- package/dist/empty-state.css-mistica.js +11 -8
- package/dist/empty-state.css.d.ts +1 -0
- package/dist/empty-state.js +10 -13
- package/dist/form.css-mistica.js +12 -0
- package/dist/form.css.d.ts +1 -0
- package/dist/form.js +8 -10
- package/dist/grid.css-mistica.js +143 -126
- package/dist/grid.css.d.ts +13 -0
- package/dist/grid.js +35 -38
- package/dist/hero.css-mistica.js +14 -8
- package/dist/hero.css.d.ts +2 -0
- package/dist/hero.js +17 -25
- package/dist/image.js +23 -25
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/inline.js +10 -11
- package/dist/list.css-mistica.js +12 -9
- package/dist/list.css.d.ts +1 -0
- package/dist/list.js +43 -46
- package/dist/loading-screen.js +16 -16
- package/dist/logo-blau.d.ts +1 -1
- package/dist/logo-blau.js +10 -10
- package/dist/logo-common.d.ts +1 -0
- package/dist/logo-movistar.d.ts +1 -1
- package/dist/logo-movistar.js +4 -4
- package/dist/logo-o2-new.d.ts +1 -1
- package/dist/logo-o2-new.js +5 -5
- package/dist/logo-o2.d.ts +1 -1
- package/dist/logo-o2.js +5 -5
- package/dist/logo-telefonica.d.ts +1 -1
- package/dist/logo-telefonica.js +4 -4
- package/dist/logo-tu.d.ts +1 -1
- package/dist/logo-tu.js +5 -5
- package/dist/logo-vivo.d.ts +1 -1
- package/dist/logo-vivo.js +7 -7
- package/dist/logo.d.ts +9 -8
- package/dist/logo.js +125 -102
- package/dist/navigation-bar.css-mistica.js +23 -20
- package/dist/navigation-bar.css.d.ts +1 -0
- package/dist/navigation-bar.js +30 -37
- package/dist/package-version.js +1 -1
- package/dist/phone-number-field.d.ts +1 -4
- package/dist/phone-number-field.js +52 -82
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +9 -10
- package/dist/sheet-common.css-mistica.js +5 -5
- package/dist/skeleton-base.js +10 -12
- package/dist/skeletons.css-mistica.js +11 -5
- package/dist/skeletons.css.d.ts +1 -0
- package/dist/snackbar.css-mistica.js +20 -14
- package/dist/snackbar.css.d.ts +3 -1
- package/dist/snackbar.js +65 -75
- package/dist/tag.css-mistica.js +15 -4
- package/dist/tag.css.d.ts +2 -0
- package/dist/tag.js +20 -24
- package/dist/text-field-base.d.ts +1 -1
- package/dist/text-field-components.css-mistica.js +16 -10
- package/dist/text-field-components.css.d.ts +1 -0
- package/dist/text-field-components.js +32 -35
- package/dist/timer.js +42 -43
- package/dist/tooltip.d.ts +3 -1
- package/dist/tooltip.js +106 -106
- package/dist/touchable.js +47 -42
- package/dist-es/accordion.css-mistica.js +3 -3
- package/dist-es/accordion.js +58 -61
- package/dist-es/align.css-mistica.js +3 -0
- package/dist-es/align.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/align.js +70 -0
- package/dist-es/box.css-mistica.js +24 -0
- package/dist-es/box.css.ts.vanilla.css-mistica.js +2 -0
- package/dist-es/box.js +43 -35
- package/dist-es/boxed.css-mistica.js +5 -3
- package/dist-es/boxed.js +28 -32
- package/dist-es/callout.css-mistica.js +7 -2
- package/dist-es/callout.js +44 -52
- package/dist-es/card.css-mistica.js +4 -4
- package/dist-es/card.js +11 -17
- package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
- package/dist-es/community/advanced-data-card.js +90 -99
- package/dist-es/empty-state.css-mistica.js +3 -3
- package/dist-es/empty-state.js +19 -22
- package/dist-es/form.css-mistica.js +3 -0
- package/dist-es/form.js +12 -14
- package/dist-es/grid.css-mistica.js +123 -112
- package/dist-es/grid.js +38 -41
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/hero.js +36 -44
- package/dist-es/image.js +28 -30
- package/dist-es/index.js +1844 -1843
- package/dist-es/inline.js +19 -20
- package/dist-es/list.css-mistica.js +2 -2
- package/dist-es/list.js +75 -78
- package/dist-es/loading-screen.js +30 -30
- package/dist-es/logo-blau.js +11 -11
- package/dist-es/logo-movistar.js +5 -5
- package/dist-es/logo-o2-new.js +8 -8
- package/dist-es/logo-o2.js +8 -8
- package/dist-es/logo-telefonica.js +4 -4
- package/dist-es/logo-tu.js +8 -8
- package/dist-es/logo-vivo.js +16 -16
- package/dist-es/logo.js +132 -109
- package/dist-es/navigation-bar.css-mistica.js +11 -11
- package/dist-es/navigation-bar.js +80 -87
- package/dist-es/package-version.js +1 -1
- package/dist-es/phone-number-field.js +59 -89
- package/dist-es/popover.js +17 -18
- package/dist-es/sheet-common.css-mistica.js +2 -2
- package/dist-es/skeleton-base.js +15 -17
- package/dist-es/skeletons.css-mistica.js +5 -2
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/snackbar.js +93 -103
- package/dist-es/style.css +1 -1
- package/dist-es/tag.css-mistica.js +2 -2
- package/dist-es/tag.js +34 -38
- package/dist-es/text-field-components.css-mistica.js +5 -2
- package/dist-es/text-field-components.js +48 -51
- package/dist-es/timer.js +80 -81
- package/dist-es/tooltip.js +148 -148
- package/dist-es/touchable.js +55 -50
- package/package.json +1 -1
- package/dist/sprinkles.css-mistica.js +0 -2494
- package/dist-es/sprinkles.css-mistica.js +0 -2485
package/dist-es/inline.js
CHANGED
|
@@ -52,15 +52,14 @@ function _object_spread_props(target, source) {
|
|
|
52
52
|
return target;
|
|
53
53
|
}
|
|
54
54
|
import { jsx as m } from "react/jsx-runtime";
|
|
55
|
-
import * as
|
|
56
|
-
import
|
|
57
|
-
import {
|
|
58
|
-
import {
|
|
59
|
-
import {
|
|
60
|
-
import {
|
|
61
|
-
import {
|
|
62
|
-
|
|
63
|
-
const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, R = (t)=>{
|
|
55
|
+
import * as b from "react";
|
|
56
|
+
import g from "classnames";
|
|
57
|
+
import { getPrefixedDataAttributes as y } from "./utils/dom.js";
|
|
58
|
+
import { inline as v, wrap as h, fullWidth as S, noFullWidth as I, stringSpaceWithWrap as W, stringSpace as x, marginInline as T, vars as r } from "./inline.css-mistica.js";
|
|
59
|
+
import { applyCssVars as V } from "./utils/css.js";
|
|
60
|
+
import { isIos as $, isRunningAcceptanceTest as k } from "./utils/platform.js";
|
|
61
|
+
import { useTheme as A } from "./hooks.js";
|
|
62
|
+
const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, C = (t)=>{
|
|
64
63
|
if (typeof t == "number" || typeof t == "string") return {
|
|
65
64
|
[r.space]: i(t)
|
|
66
65
|
};
|
|
@@ -69,27 +68,27 @@ const i = (t)=>typeof t == "number" ? `${t}px` : `space-${t}`, R = (t)=>{
|
|
|
69
68
|
[r.spaceDesktop]: i(t.desktop)
|
|
70
69
|
};
|
|
71
70
|
return t.tablet && (e[r.spaceTablet] = i(t.tablet)), e;
|
|
72
|
-
},
|
|
73
|
-
let { space: t, className: e, children: p, role: l, alignItems: f = "stretch", "aria-label": o, "aria-labelledby": c, fullWidth: d, wrap:
|
|
74
|
-
const { platformOverrides:
|
|
71
|
+
}, D = (param)=>{
|
|
72
|
+
let { space: t, className: e, children: p, role: l, alignItems: f = "stretch", "aria-label": o, "aria-labelledby": c, fullWidth: d, wrap: a, dataAttributes: u } = param;
|
|
73
|
+
const { platformOverrides: s } = A();
|
|
75
74
|
return /* @__PURE__ */ m("div", _object_spread_props(_object_spread({
|
|
76
|
-
className:
|
|
75
|
+
className: g(e, v, a ? h : d ? S : I, typeof t == "string" ? a ? W : x : T),
|
|
76
|
+
style: _object_spread_props(_object_spread({}, V(C(t))), {
|
|
77
77
|
alignItems: f
|
|
78
|
-
}),
|
|
79
|
-
style: $(R(t)),
|
|
78
|
+
}),
|
|
80
79
|
role: l,
|
|
81
80
|
"aria-label": o,
|
|
82
81
|
"aria-labelledby": o ? void 0 : c
|
|
83
|
-
},
|
|
84
|
-
children:
|
|
82
|
+
}, y(u, "Inline")), {
|
|
83
|
+
children: b.Children.map(p, (n)=>n || n === 0 ? /* @__PURE__ */ m("div", {
|
|
85
84
|
role: l === "list" ? "listitem" : void 0,
|
|
86
85
|
style: {
|
|
87
86
|
// Hack to fix https://jira.tid.es/browse/WEB-1683
|
|
88
87
|
// In iOS the inline component sometimes cuts the last line of the content
|
|
89
|
-
paddingBottom:
|
|
88
|
+
paddingBottom: $(s) && !k(s) ? 1 : void 0
|
|
90
89
|
},
|
|
91
90
|
children: n
|
|
92
91
|
}) : null)
|
|
93
92
|
}));
|
|
94
|
-
},
|
|
95
|
-
export {
|
|
93
|
+
}, P = D;
|
|
94
|
+
export { P as default };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import "./sprinkles.css.ts.vanilla.css-mistica.js";
|
|
2
2
|
import "./list.css.ts.vanilla.css-mistica.js";
|
|
3
|
-
var _ = "_1y2v1nfhk _1y2v1nfi2 _1y2v1nfi4", f = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfja _1y2v1nfio _1y2v1nfi2", y = "_1y2v1nfhk _1y2v1nfhz", a = "_1y2v1nfhk _1y2v1nfi7 _1y2v1nfjx", r = "
|
|
4
|
-
export { _ as asset, f as badge, y as center, a as content, r as detail, i as detailRight, t as disabled, h as dualActionContainer, o as dualActionDivider, e as dualActionLeft,
|
|
3
|
+
var _ = "_1y2v1nfhk _1y2v1nfi2 _1y2v1nfi4", f = "_1y2v1nfhk _1y2v1nfhz _1y2v1nfht _1y2v1nfja _1y2v1nfio _1y2v1nfi2", y = "_1y2v1nfhk _1y2v1nfhz", a = "_1y2v1nfhk _1y2v1nfi7 _1y2v1nfjx", r = "_2buj9gf _1y2v1nfhk _1y2v1nfhz", i = "_2buj9ge", t = "_2buj9g0", h = "_1y2v1nfhk _1y2v1nfhp _1y2v1nfio", o = "_2buj9gl _1y2v1nfhk", e = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhm _1y2v1nfi5", d = "_2buj9gn _1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfaa _1y2v1nfbj _1y2v1nfhk _1y2v1nfhz _1y2v1nfi4 _1y2v1nfi8 _1y2v1nfio", b = "_1y2v1nfkk", u = "_2buj9gc", g = "_2buj9gd", k = "_1y2v1nfi7", c = "_1y2v1nfhk _1y2v1nfhq _1y2v1nfi6", j = "_1y2v1nf7d _1y2v1nf8m _1y2v1nf9v _1y2v1nfb4 _1y2v1nfi7 _1y2v1nfk2 _1y2v1nf7c _1y2v1nfhm _1y2v1nfio", l = "_2buj9g2", m = "_2buj9g3";
|
|
4
|
+
export { _ as asset, f as badge, y as center, a as content, r as detail, i as detailRight, t as disabled, h as dualActionContainer, o as dualActionDivider, e as dualActionLeft, d as dualActionRight, b as pointer, u as rightContent, g as rightRestrictedWidth, k as row, c as rowBody, j as rowContent, l as touchableBackground, m as touchableBackgroundInverse };
|
package/dist-es/list.js
CHANGED
|
@@ -79,8 +79,8 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
81
|
import { jsx as t, jsxs as X } from "react/jsx-runtime";
|
|
82
|
-
import * as
|
|
83
|
-
import
|
|
82
|
+
import * as m from "react";
|
|
83
|
+
import u from "classnames";
|
|
84
84
|
import { BaseTouchable as te } from "./touchable.js";
|
|
85
85
|
import { Text3 as xe, Text1 as ve, Text2 as Y } from "./text.js";
|
|
86
86
|
import o from "./box.js";
|
|
@@ -94,12 +94,11 @@ import Re from "./checkbox.js";
|
|
|
94
94
|
import { Boxed as Ie } from "./boxed.js";
|
|
95
95
|
import Ce from "./divider.js";
|
|
96
96
|
import { getPrefixedDataAttributes as K } from "./utils/dom.js";
|
|
97
|
-
import { rowContent as q, touchableBackground as z, touchableBackgroundInverse as G, pointer as re,
|
|
98
|
-
import { vars as
|
|
97
|
+
import { rowContent as q, touchableBackground as z, touchableBackgroundInverse as G, pointer as re, row as Te, content as Ne, center as J, disabled as I, asset as Le, rowBody as ke, badge as Ae, rightContent as Se, rightRestrictedWidth as Ve, detail as Xe, detailRight as Ee, dualActionContainer as Pe, dualActionLeft as De, dualActionDivider as Me, dualActionRight as Oe } from "./list.css-mistica.js";
|
|
98
|
+
import { vars as We } from "./image.css-mistica.js";
|
|
99
99
|
import { vars as d } from "./skins/skin-contract.css-mistica.js";
|
|
100
|
-
import { applyCssVars as
|
|
101
|
-
import { IconButton as
|
|
102
|
-
import { sprinkles as je } from "./sprinkles.css-mistica.js";
|
|
100
|
+
import { applyCssVars as je } from "./utils/css.js";
|
|
101
|
+
import { IconButton as ne, ToggleIconButton as ie } from "./icon-button.js";
|
|
103
102
|
const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
104
103
|
centerY: a
|
|
105
104
|
}) : a ? /* @__PURE__ */ t("div", {
|
|
@@ -112,37 +111,37 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
112
111
|
children: e
|
|
113
112
|
})
|
|
114
113
|
}) : e, Fe = (param)=>{
|
|
115
|
-
let { withChevron: e, headline: a, headlineRef: r, extraRef: l, title: c, titleAs: v, titleLinesMax: g, subtitle: x, subtitleLinesMax: P, description: w, descriptionLinesMax: D, detail: h, asset: E, danger: T, badge: N, right: y, rightRef: f, extra:
|
|
114
|
+
let { withChevron: e, headline: a, headlineRef: r, extraRef: l, title: c, titleAs: v, titleLinesMax: g, subtitle: x, subtitleLinesMax: P, description: w, descriptionLinesMax: D, detail: h, asset: E, danger: T, badge: N, right: y, rightRef: f, extra: L, labelId: M, disabled: s, control: k } = param;
|
|
116
115
|
const A = oe(), S = [
|
|
117
116
|
a,
|
|
118
117
|
c,
|
|
119
118
|
x,
|
|
120
119
|
w,
|
|
121
|
-
|
|
120
|
+
L
|
|
122
121
|
].filter(Boolean).length === 1;
|
|
123
122
|
return /* @__PURE__ */ X(o, {
|
|
124
123
|
paddingY: 16,
|
|
125
|
-
className:
|
|
124
|
+
className: Ne,
|
|
126
125
|
id: M,
|
|
127
126
|
children: [
|
|
128
127
|
E && /* @__PURE__ */ t(o, {
|
|
129
128
|
paddingRight: 16,
|
|
130
|
-
className:
|
|
129
|
+
className: u({
|
|
131
130
|
[J]: S,
|
|
132
131
|
[I]: s
|
|
133
132
|
}),
|
|
134
133
|
"aria-hidden": !0,
|
|
135
134
|
children: /* @__PURE__ */ t("div", {
|
|
136
|
-
className:
|
|
137
|
-
style:
|
|
135
|
+
className: Le,
|
|
136
|
+
style: je({
|
|
138
137
|
color: T ? A ? d.colors.textErrorInverse : d.colors.textError : A ? d.colors.textPrimaryInverse : d.colors.textPrimary,
|
|
139
|
-
[
|
|
138
|
+
[We.mediaBorderRadius]: d.borderRadii.mediaSmall
|
|
140
139
|
}),
|
|
141
140
|
children: E
|
|
142
141
|
})
|
|
143
142
|
}),
|
|
144
143
|
/* @__PURE__ */ X("div", {
|
|
145
|
-
className:
|
|
144
|
+
className: u(ke, {
|
|
146
145
|
[I]: s
|
|
147
146
|
}),
|
|
148
147
|
style: {
|
|
@@ -190,17 +189,17 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
190
189
|
children: w
|
|
191
190
|
})
|
|
192
191
|
}),
|
|
193
|
-
|
|
192
|
+
L && /* @__PURE__ */ t(o, {
|
|
194
193
|
ref: l,
|
|
195
194
|
paddingTop: 2,
|
|
196
|
-
children:
|
|
195
|
+
children: L
|
|
197
196
|
})
|
|
198
197
|
]
|
|
199
198
|
}),
|
|
200
199
|
N && /* @__PURE__ */ t(o, {
|
|
201
200
|
paddingLeft: 16,
|
|
202
201
|
children: /* @__PURE__ */ t("div", {
|
|
203
|
-
className:
|
|
202
|
+
className: u(Ae, {
|
|
204
203
|
[I]: s
|
|
205
204
|
}),
|
|
206
205
|
children: /* @__PURE__ */ t(ge, {
|
|
@@ -208,13 +207,13 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
208
207
|
})
|
|
209
208
|
})
|
|
210
209
|
}),
|
|
211
|
-
(h || y || e ||
|
|
212
|
-
className:
|
|
213
|
-
[
|
|
210
|
+
(h || y || e || k) && /* @__PURE__ */ X("div", {
|
|
211
|
+
className: u(Se, {
|
|
212
|
+
[Ve]: !!h
|
|
214
213
|
}),
|
|
215
214
|
children: [
|
|
216
215
|
h && /* @__PURE__ */ t("div", {
|
|
217
|
-
className:
|
|
216
|
+
className: u(Xe, {
|
|
218
217
|
[I]: s
|
|
219
218
|
}),
|
|
220
219
|
children: /* @__PURE__ */ t(Y, {
|
|
@@ -225,8 +224,8 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
225
224
|
})
|
|
226
225
|
}),
|
|
227
226
|
y && /* @__PURE__ */ t("div", {
|
|
228
|
-
className:
|
|
229
|
-
[
|
|
227
|
+
className: u({
|
|
228
|
+
[Ee]: !!h,
|
|
230
229
|
[I]: s
|
|
231
230
|
}),
|
|
232
231
|
ref: f,
|
|
@@ -234,7 +233,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
234
233
|
}),
|
|
235
234
|
e && /* @__PURE__ */ t(o, {
|
|
236
235
|
paddingLeft: h || y ? 4 : 0,
|
|
237
|
-
className:
|
|
236
|
+
className: u(J, {
|
|
238
237
|
[I]: s
|
|
239
238
|
}),
|
|
240
239
|
children: /* @__PURE__ */ t(ye, {
|
|
@@ -242,10 +241,10 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
242
241
|
direction: "right"
|
|
243
242
|
})
|
|
244
243
|
}),
|
|
245
|
-
|
|
244
|
+
k && /* @__PURE__ */ t(o, {
|
|
246
245
|
paddingLeft: h || y ? 8 : 0,
|
|
247
246
|
className: J,
|
|
248
|
-
children:
|
|
247
|
+
children: k
|
|
249
248
|
})
|
|
250
249
|
]
|
|
251
250
|
})
|
|
@@ -253,7 +252,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
253
252
|
});
|
|
254
253
|
}, Ye = (param)=>{
|
|
255
254
|
let { value: e, defaultValue: a, onChange: r } = param;
|
|
256
|
-
const l = e !== void 0, [c, v] =
|
|
255
|
+
const l = e !== void 0, [c, v] = m.useState(!!a);
|
|
257
256
|
return [
|
|
258
257
|
l ? !!e : c,
|
|
259
258
|
()=>{
|
|
@@ -265,9 +264,9 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
265
264
|
"checkbox",
|
|
266
265
|
"radioValue",
|
|
267
266
|
"iconButton"
|
|
268
|
-
].some((a)=>e[a] !== void 0), le = /*#__PURE__*/
|
|
267
|
+
].some((a)=>e[a] !== void 0), le = /*#__PURE__*/ m.forwardRef((e, a)=>{
|
|
269
268
|
var p, ee;
|
|
270
|
-
const r =
|
|
269
|
+
const r = m.useId(), l = oe(), { asset: c, headline: v, title: g, titleAs: x, titleLinesMax: P, subtitle: w, subtitleLinesMax: D, description: h, descriptionLinesMax: E, detail: T, danger: N, badge: y, role: f, extra: L, withChevron: M, dataAttributes: s, right: k, "aria-label": A } = e, [Q, S] = m.useState(""), [de, ce] = m.useState(""), [se, he] = m.useState(""), ue = [
|
|
271
270
|
g,
|
|
272
271
|
Q,
|
|
273
272
|
w,
|
|
@@ -275,7 +274,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
275
274
|
de,
|
|
276
275
|
T,
|
|
277
276
|
se
|
|
278
|
-
].filter(Boolean).join(" "), B = A !== null && A !== void 0 ? A : e.href || e.to ?
|
|
277
|
+
].filter(Boolean).join(" "), B = A !== null && A !== void 0 ? A : e.href || e.to ? ue : void 0, me = Be(), b = e.disabled || e.radioValue !== void 0 && me.disabled, O = !b && !l, W = !b && l, U = qe(e), V = !!e.onPress || !!e.href || !!e.to, fe = U ? !1 : M !== null && M !== void 0 ? M : V, Z = {
|
|
279
278
|
href: e.href,
|
|
280
279
|
newTab: e.newTab,
|
|
281
280
|
loadOnTop: e.loadOnTop,
|
|
@@ -285,11 +284,11 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
285
284
|
onNavigate: e.onNavigate,
|
|
286
285
|
onPress: e.onPress,
|
|
287
286
|
trackingEvent: e.trackingEvent
|
|
288
|
-
}, [_, $] = Ye(e.switch || e.checkbox || {}), R = (
|
|
287
|
+
}, [_, $] = Ye(e.switch || e.checkbox || {}), R = (n)=>/* @__PURE__ */ t(Fe, {
|
|
289
288
|
asset: c,
|
|
290
289
|
headline: v,
|
|
291
|
-
headlineRef: (
|
|
292
|
-
|
|
290
|
+
headlineRef: (i)=>{
|
|
291
|
+
i && S(i.textContent || "");
|
|
293
292
|
},
|
|
294
293
|
title: g,
|
|
295
294
|
titleAs: x,
|
|
@@ -301,22 +300,22 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
301
300
|
descriptionLinesMax: E,
|
|
302
301
|
detail: T,
|
|
303
302
|
danger: N,
|
|
304
|
-
right:
|
|
305
|
-
rightRef: (
|
|
306
|
-
|
|
303
|
+
right: k,
|
|
304
|
+
rightRef: (i)=>{
|
|
305
|
+
i && he(i.innerText || i.textContent || "");
|
|
307
306
|
},
|
|
308
|
-
control:
|
|
309
|
-
extra:
|
|
310
|
-
extraRef: (
|
|
311
|
-
|
|
307
|
+
control: n == null ? void 0 : n.control,
|
|
308
|
+
extra: L,
|
|
309
|
+
extraRef: (i)=>{
|
|
310
|
+
i && ce(i.innerText || i.textContent || "");
|
|
312
311
|
},
|
|
313
|
-
labelId:
|
|
312
|
+
labelId: n == null ? void 0 : n.labelId,
|
|
314
313
|
disabled: b,
|
|
315
314
|
withChevron: fe
|
|
316
315
|
});
|
|
317
316
|
if (V && !U) return /* @__PURE__ */ t(te, _object_spread_props(_object_spread({
|
|
318
317
|
ref: a,
|
|
319
|
-
className:
|
|
318
|
+
className: u(q, {
|
|
320
319
|
[z]: O,
|
|
321
320
|
[G]: W,
|
|
322
321
|
[re]: !b
|
|
@@ -332,8 +331,8 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
332
331
|
children: R()
|
|
333
332
|
})
|
|
334
333
|
}));
|
|
335
|
-
const j = (
|
|
336
|
-
className:
|
|
334
|
+
const j = (n)=>/* @__PURE__ */ X("div", _object_spread_props(_object_spread({
|
|
335
|
+
className: Pe,
|
|
337
336
|
ref: a
|
|
338
337
|
}, K(s)), {
|
|
339
338
|
children: [
|
|
@@ -341,7 +340,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
341
340
|
disabled: b
|
|
342
341
|
}, Z), {
|
|
343
342
|
role: f,
|
|
344
|
-
className:
|
|
343
|
+
className: u(De, {
|
|
345
344
|
[z]: O,
|
|
346
345
|
[G]: W
|
|
347
346
|
}),
|
|
@@ -351,26 +350,26 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
351
350
|
})
|
|
352
351
|
})),
|
|
353
352
|
/* @__PURE__ */ t("div", {
|
|
354
|
-
className:
|
|
353
|
+
className: Me
|
|
355
354
|
}),
|
|
356
|
-
|
|
355
|
+
n
|
|
357
356
|
]
|
|
358
|
-
})), H = (
|
|
359
|
-
className:
|
|
360
|
-
[z]: O &&
|
|
361
|
-
[G]: W &&
|
|
362
|
-
[re]: !b &&
|
|
357
|
+
})), H = (n, i)=>/* @__PURE__ */ t("div", _object_spread_props(_object_spread({
|
|
358
|
+
className: u(q, {
|
|
359
|
+
[z]: O && i,
|
|
360
|
+
[G]: W && i,
|
|
361
|
+
[re]: !b && i
|
|
363
362
|
}),
|
|
364
363
|
ref: a
|
|
365
364
|
}, K(s)), {
|
|
366
|
-
children:
|
|
365
|
+
children: n
|
|
367
366
|
}));
|
|
368
367
|
if (e.switch || e.checkbox) {
|
|
369
368
|
var _ref, _ref1;
|
|
370
|
-
const
|
|
371
|
-
return V ? j(/* @__PURE__ */ t(
|
|
369
|
+
const n = e.switch ? we : Re, i = (_ref1 = (_ref = (p = e.switch) == null ? void 0 : p.name) !== null && _ref !== void 0 ? _ref : (ee = e.checkbox) == null ? void 0 : ee.name) !== null && _ref1 !== void 0 ? _ref1 : r;
|
|
370
|
+
return V ? j(/* @__PURE__ */ t(n, {
|
|
372
371
|
disabled: b,
|
|
373
|
-
name:
|
|
372
|
+
name: i,
|
|
374
373
|
checked: _,
|
|
375
374
|
"aria-label": B,
|
|
376
375
|
"aria-labelledby": r,
|
|
@@ -378,13 +377,13 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
378
377
|
render: (param)=>{
|
|
379
378
|
let { controlElement: F } = param;
|
|
380
379
|
return /* @__PURE__ */ t("div", {
|
|
381
|
-
className:
|
|
380
|
+
className: Oe,
|
|
382
381
|
children: F
|
|
383
382
|
});
|
|
384
383
|
}
|
|
385
|
-
})) : H(/* @__PURE__ */ t(
|
|
384
|
+
})) : H(/* @__PURE__ */ t(n, {
|
|
386
385
|
disabled: b,
|
|
387
|
-
name:
|
|
386
|
+
name: i,
|
|
388
387
|
checked: _,
|
|
389
388
|
"aria-label": B,
|
|
390
389
|
"aria-labelledby": r,
|
|
@@ -410,12 +409,12 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
410
409
|
"aria-label": B,
|
|
411
410
|
"aria-labelledby": r,
|
|
412
411
|
render: (param)=>{
|
|
413
|
-
let { controlElement:
|
|
412
|
+
let { controlElement: n } = param;
|
|
414
413
|
return /* @__PURE__ */ t(C, {
|
|
415
414
|
space: "around",
|
|
416
415
|
children: /* @__PURE__ */ t(o, {
|
|
417
416
|
paddingX: 16,
|
|
418
|
-
children:
|
|
417
|
+
children: n
|
|
419
418
|
})
|
|
420
419
|
});
|
|
421
420
|
}
|
|
@@ -424,7 +423,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
424
423
|
"aria-label": B,
|
|
425
424
|
"aria-labelledby": r,
|
|
426
425
|
render: (param)=>{
|
|
427
|
-
let { controlElement:
|
|
426
|
+
let { controlElement: n } = param;
|
|
428
427
|
return /* @__PURE__ */ t(o, {
|
|
429
428
|
paddingX: 16,
|
|
430
429
|
role: f,
|
|
@@ -432,7 +431,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
432
431
|
labelId: r,
|
|
433
432
|
control: /* @__PURE__ */ t(C, {
|
|
434
433
|
space: "around",
|
|
435
|
-
children:
|
|
434
|
+
children: n
|
|
436
435
|
})
|
|
437
436
|
})
|
|
438
437
|
});
|
|
@@ -441,9 +440,9 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
441
440
|
padding: 16,
|
|
442
441
|
children: /* @__PURE__ */ t(C, {
|
|
443
442
|
space: "around",
|
|
444
|
-
children: e.iconButton.Icon ? /* @__PURE__ */ t(
|
|
443
|
+
children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
445
444
|
disabled: e.disabled
|
|
446
|
-
})) : /* @__PURE__ */ t(
|
|
445
|
+
})) : /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
447
446
|
disabled: e.disabled
|
|
448
447
|
}))
|
|
449
448
|
})
|
|
@@ -453,10 +452,10 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
453
452
|
labelId: r,
|
|
454
453
|
control: /* @__PURE__ */ t(C, {
|
|
455
454
|
space: "around",
|
|
456
|
-
children: e.iconButton.Icon ? /* @__PURE__ */ t(
|
|
455
|
+
children: e.iconButton.Icon ? /* @__PURE__ */ t(ne, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
457
456
|
disabled: e.disabled,
|
|
458
457
|
role: f
|
|
459
|
-
})) : /* @__PURE__ */ t(
|
|
458
|
+
})) : /* @__PURE__ */ t(ie, _object_spread_props(_object_spread({}, e.iconButton), {
|
|
460
459
|
disabled: e.disabled,
|
|
461
460
|
role: f
|
|
462
461
|
}))
|
|
@@ -470,16 +469,14 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
470
469
|
ref: a,
|
|
471
470
|
children: R()
|
|
472
471
|
});
|
|
473
|
-
}),
|
|
472
|
+
}), st = /*#__PURE__*/ m.forwardRef((_param, l)=>{
|
|
474
473
|
var { dataAttributes: e, role: a = "listitem" } = _param, r = _object_without_properties(_param, [
|
|
475
474
|
"dataAttributes",
|
|
476
475
|
"role"
|
|
477
476
|
]);
|
|
478
477
|
return /* @__PURE__ */ t("div", {
|
|
479
478
|
role: a,
|
|
480
|
-
className:
|
|
481
|
-
width: "100%"
|
|
482
|
-
}),
|
|
479
|
+
className: Te,
|
|
483
480
|
children: /* @__PURE__ */ t(le, _object_spread_props(_object_spread({}, r), {
|
|
484
481
|
ref: l,
|
|
485
482
|
dataAttributes: _object_spread({
|
|
@@ -487,14 +484,14 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
487
484
|
}, e)
|
|
488
485
|
}))
|
|
489
486
|
});
|
|
490
|
-
}),
|
|
487
|
+
}), ht = (param)=>{
|
|
491
488
|
let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: l } = param;
|
|
492
|
-
const c =
|
|
489
|
+
const c = m.Children.toArray(e).filter(Boolean), v = c.length - 1;
|
|
493
490
|
return /* @__PURE__ */ t("div", _object_spread_props(_object_spread({
|
|
494
491
|
role: r,
|
|
495
492
|
"aria-labelledby": a
|
|
496
493
|
}, K(l, "RowList")), {
|
|
497
|
-
children: c.map((g, x)=>/* @__PURE__ */ X(
|
|
494
|
+
children: c.map((g, x)=>/* @__PURE__ */ X(m.Fragment, {
|
|
498
495
|
children: [
|
|
499
496
|
g,
|
|
500
497
|
x < v && /* @__PURE__ */ t(o, {
|
|
@@ -504,7 +501,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
504
501
|
]
|
|
505
502
|
}, x))
|
|
506
503
|
}));
|
|
507
|
-
}, ut = /*#__PURE__*/
|
|
504
|
+
}, ut = /*#__PURE__*/ m.forwardRef((_param, r)=>{
|
|
508
505
|
var { dataAttributes: e } = _param, a = _object_without_properties(_param, [
|
|
509
506
|
"dataAttributes"
|
|
510
507
|
]);
|
|
@@ -516,7 +513,7 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
516
513
|
}, e),
|
|
517
514
|
children: /* @__PURE__ */ t(le, _object_spread({}, a))
|
|
518
515
|
});
|
|
519
|
-
}),
|
|
516
|
+
}), mt = (param)=>{
|
|
520
517
|
let { children: e, ariaLabelledby: a, role: r = "list", dataAttributes: l } = param;
|
|
521
518
|
return /* @__PURE__ */ t(C, {
|
|
522
519
|
space: 16,
|
|
@@ -528,4 +525,4 @@ const He = (e, a)=>typeof e == "function" ? e == null ? void 0 : e({
|
|
|
528
525
|
children: e
|
|
529
526
|
});
|
|
530
527
|
};
|
|
531
|
-
export { ut as BoxedRow,
|
|
528
|
+
export { ut as BoxedRow, mt as BoxedRowList, Fe as Content, st as Row, ht as RowList };
|
|
@@ -86,23 +86,22 @@ import { vars as f } from "./skins/skin-contract.css-mistica.js";
|
|
|
86
86
|
import E from "./responsive-layout.js";
|
|
87
87
|
import { Text4 as I, Text2 as O } from "./text.js";
|
|
88
88
|
import w from "./stack.js";
|
|
89
|
-
import { inOutAnimationMs as
|
|
89
|
+
import { inOutAnimationMs as y, loadingScreen as V, screenBackground as j, screenBackgroundFadeOut as z, screenBackgroundAnimated as D, loadingScreenChildren as P, loadingScreenText as _, loadingScreenTextAnimatedOut as F, loadingScreenTextAnimated as k, logo as K, pulseLogo as M } from "./loading-screen.css-mistica.js";
|
|
90
90
|
import W from "./spinner.js";
|
|
91
91
|
import T from "classnames";
|
|
92
|
-
import {
|
|
93
|
-
import
|
|
94
|
-
import G from "./screen-reader-only.js";
|
|
92
|
+
import { Logo as $ } from "./logo.js";
|
|
93
|
+
import q from "./screen-reader-only.js";
|
|
95
94
|
import { useTheme as R } from "./hooks.js";
|
|
96
|
-
import { VIVO_NEW_SKIN as
|
|
97
|
-
import { getPrefixedDataAttributes as
|
|
98
|
-
import { loading as
|
|
99
|
-
const
|
|
95
|
+
import { VIVO_NEW_SKIN as G } from "./skins/constants.js";
|
|
96
|
+
import { getPrefixedDataAttributes as H } from "./utils/dom.js";
|
|
97
|
+
import { loading as J } from "./text-tokens.js";
|
|
98
|
+
const L = (param)=>{
|
|
100
99
|
let { isInverse: e } = param;
|
|
101
100
|
const r = `body {background:${e ? f.colors.backgroundBrand : f.colors.background}}`;
|
|
102
101
|
return /* @__PURE__ */ n("style", {
|
|
103
102
|
children: r
|
|
104
103
|
});
|
|
105
|
-
},
|
|
104
|
+
}, Q = (param)=>{
|
|
106
105
|
let { animateText: e, isLoading: r, onClose: t, texts: i } = param;
|
|
107
106
|
const [c, s] = o.useState(0), [a, u] = o.useState(!1), l = o.useCallback(()=>{
|
|
108
107
|
s((c + 1) % i.length), u(!1);
|
|
@@ -144,7 +143,7 @@ const Q = (param)=>{
|
|
|
144
143
|
space: 8,
|
|
145
144
|
children: [
|
|
146
145
|
d && /* @__PURE__ */ n("div", {
|
|
147
|
-
className: e ?
|
|
146
|
+
className: e ? k : void 0,
|
|
148
147
|
children: /* @__PURE__ */ n(I, {
|
|
149
148
|
textAlign: "center",
|
|
150
149
|
regular: !0,
|
|
@@ -153,7 +152,7 @@ const Q = (param)=>{
|
|
|
153
152
|
})
|
|
154
153
|
}),
|
|
155
154
|
p && /* @__PURE__ */ n("div", {
|
|
156
|
-
className: e ?
|
|
155
|
+
className: e ? k : void 0,
|
|
157
156
|
style: {
|
|
158
157
|
animationDelay: "200ms"
|
|
159
158
|
},
|
|
@@ -181,7 +180,7 @@ const Q = (param)=>{
|
|
|
181
180
|
if (!t) return;
|
|
182
181
|
const A = setTimeout(()=>{
|
|
183
182
|
h(!0);
|
|
184
|
-
},
|
|
183
|
+
}, y);
|
|
185
184
|
return ()=>{
|
|
186
185
|
clearTimeout(A);
|
|
187
186
|
};
|
|
@@ -202,7 +201,7 @@ const Q = (param)=>{
|
|
|
202
201
|
}
|
|
203
202
|
const A = setTimeout(()=>{
|
|
204
203
|
g();
|
|
205
|
-
},
|
|
204
|
+
}, y);
|
|
206
205
|
return ()=>{
|
|
207
206
|
clearTimeout(A);
|
|
208
207
|
};
|
|
@@ -221,13 +220,14 @@ const Q = (param)=>{
|
|
|
221
220
|
children: [
|
|
222
221
|
/* @__PURE__ */ S("div", _object_spread_props(_object_spread({
|
|
223
222
|
ref: d
|
|
224
|
-
},
|
|
223
|
+
}, H(a)), {
|
|
225
224
|
className: T(V, j[e ? "inverse" : "default"], {
|
|
226
225
|
[z]: !t && c,
|
|
227
226
|
[D]: c
|
|
228
|
-
},
|
|
227
|
+
}),
|
|
228
|
+
style: {
|
|
229
229
|
justifyContent: b ? "center" : "space-between"
|
|
230
|
-
}
|
|
230
|
+
},
|
|
231
231
|
onAnimationEnd: ()=>{
|
|
232
232
|
h(!0);
|
|
233
233
|
},
|
|
@@ -241,7 +241,7 @@ const Q = (param)=>{
|
|
|
241
241
|
size: 32,
|
|
242
242
|
color: e ? f.colors.inverse : void 0
|
|
243
243
|
}),
|
|
244
|
-
/* @__PURE__ */ n(
|
|
244
|
+
/* @__PURE__ */ n(Q, {
|
|
245
245
|
animateText: i,
|
|
246
246
|
isLoading: t,
|
|
247
247
|
texts: m,
|
|
@@ -254,19 +254,19 @@ const Q = (param)=>{
|
|
|
254
254
|
})
|
|
255
255
|
]
|
|
256
256
|
})),
|
|
257
|
-
t && p && /* @__PURE__ */ n(
|
|
257
|
+
t && p && /* @__PURE__ */ n(L, {
|
|
258
258
|
isInverse: !!e
|
|
259
259
|
})
|
|
260
260
|
]
|
|
261
261
|
});
|
|
262
|
-
}),
|
|
262
|
+
}), pe = /*#__PURE__*/ o.forwardRef((e, r)=>/* @__PURE__ */ n(x, _object_spread_props(_object_spread({
|
|
263
263
|
ref: r
|
|
264
264
|
}, e), {
|
|
265
265
|
dataAttributes: _object_spread({
|
|
266
266
|
"component-name": "LoadingScreen"
|
|
267
267
|
}, e.dataAttributes),
|
|
268
268
|
animateBackground: !0
|
|
269
|
-
}))),
|
|
269
|
+
}))), U = (param)=>{
|
|
270
270
|
let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
|
|
271
271
|
const { texts: i, t: c } = R(), [s, a] = o.useState(!0), u = ()=>{
|
|
272
272
|
e || (r == null || r(), a(!1), t == null || t());
|
|
@@ -277,32 +277,32 @@ const Q = (param)=>{
|
|
|
277
277
|
}),
|
|
278
278
|
onAnimationIteration: u,
|
|
279
279
|
children: [
|
|
280
|
-
/* @__PURE__ */ n(
|
|
280
|
+
/* @__PURE__ */ n(q, {
|
|
281
281
|
children: /* @__PURE__ */ n("div", {
|
|
282
|
-
children: i.loading || c(
|
|
282
|
+
children: i.loading || c(J)
|
|
283
283
|
})
|
|
284
284
|
}),
|
|
285
|
-
/* @__PURE__ */ n(
|
|
285
|
+
/* @__PURE__ */ n($, {
|
|
286
286
|
size: 128
|
|
287
287
|
})
|
|
288
288
|
]
|
|
289
289
|
});
|
|
290
|
-
},
|
|
290
|
+
}, X = /*#__PURE__*/ o.lazy(()=>import("./vivinho-loading-animation/index.js")), Y = (param)=>{
|
|
291
291
|
let { isLoading: e, onCloseStart: r, onCloseEnd: t } = param;
|
|
292
292
|
const { skinName: i } = R();
|
|
293
|
-
return i ===
|
|
293
|
+
return i === G ? /* @__PURE__ */ n(o.Suspense, {
|
|
294
294
|
fallback: null,
|
|
295
|
-
children: /* @__PURE__ */ n(
|
|
295
|
+
children: /* @__PURE__ */ n(X, {
|
|
296
296
|
isLoading: e,
|
|
297
297
|
onCloseStart: r,
|
|
298
298
|
onCloseEnd: t
|
|
299
299
|
})
|
|
300
|
-
}) : /* @__PURE__ */ n(
|
|
300
|
+
}) : /* @__PURE__ */ n(U, {
|
|
301
301
|
isLoading: e,
|
|
302
302
|
onCloseStart: r,
|
|
303
303
|
onCloseEnd: t
|
|
304
304
|
});
|
|
305
|
-
},
|
|
305
|
+
}, he = /*#__PURE__*/ o.forwardRef((_param, c)=>{
|
|
306
306
|
var { isLoading: e = !0, onClose: r, dataAttributes: t } = _param, i = _object_without_properties(_param, [
|
|
307
307
|
"isLoading",
|
|
308
308
|
"onClose",
|
|
@@ -325,7 +325,7 @@ const Q = (param)=>{
|
|
|
325
325
|
dataAttributes: _object_spread({
|
|
326
326
|
"component-name": "BrandLoadingScreen"
|
|
327
327
|
}, t),
|
|
328
|
-
children: /* @__PURE__ */ n(
|
|
328
|
+
children: /* @__PURE__ */ n(Y, {
|
|
329
329
|
isLoading: e,
|
|
330
330
|
onCloseStart: m,
|
|
331
331
|
onCloseEnd: ()=>{
|
|
@@ -334,4 +334,4 @@ const Q = (param)=>{
|
|
|
334
334
|
})
|
|
335
335
|
}));
|
|
336
336
|
});
|
|
337
|
-
export {
|
|
337
|
+
export { he as BrandLoadingScreen, pe as LoadingScreen };
|