@telefonica/mistica 15.17.0 → 15.19.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/button.css-mistica.js +61 -52
- package/dist/button.css.d.ts +33 -17
- package/dist/button.d.ts +9 -46
- package/dist/button.js +188 -237
- package/dist/callout.d.ts +1 -0
- package/dist/callout.js +10 -10
- package/dist/card.d.ts +6 -1
- package/dist/card.js +375 -365
- package/dist/chip.d.ts +1 -0
- package/dist/chip.js +15 -15
- package/dist/dialog.d.ts +1 -0
- package/dist/dialog.js +18 -17
- package/dist/feedback.js +58 -52
- package/dist/inline.css-mistica.js +11 -8
- package/dist/inline.css.d.ts +1 -0
- package/dist/inline.js +12 -12
- package/dist/logo-blau.d.ts +4 -0
- package/dist/logo-blau.js +74 -0
- package/dist/logo-common.d.ts +9 -0
- package/dist/logo-common.js +21 -0
- package/dist/logo-movistar.d.ts +4 -0
- package/dist/logo-movistar.js +99 -0
- package/dist/logo-o2-new.d.ts +4 -0
- package/dist/logo-o2-new.js +29 -0
- package/dist/logo-o2.d.ts +4 -0
- package/dist/logo-o2.js +29 -0
- package/dist/logo-telefonica.d.ts +4 -0
- package/dist/logo-telefonica.js +197 -0
- package/dist/logo-tu.d.ts +4 -0
- package/dist/logo-tu.js +28 -0
- package/dist/logo-vivo.d.ts +4 -0
- package/dist/logo-vivo.js +81 -0
- package/dist/logo.d.ts +10 -10
- package/dist/logo.js +174 -534
- package/dist/navigation-bar.d.ts +7 -0
- package/dist/navigation-bar.js +99 -91
- package/dist/package-version.js +1 -1
- package/dist/popover.d.ts +1 -0
- package/dist/popover.js +9 -7
- package/dist/snackbar-context.js +23 -22
- package/dist/snackbar.d.ts +1 -0
- package/dist/snackbar.js +51 -47
- package/dist/text.d.ts +1 -0
- package/dist/text.js +133 -109
- package/dist/tooltip.d.ts +1 -0
- package/dist/tooltip.js +110 -110
- package/dist-es/button.css-mistica.js +36 -18
- package/dist-es/button.js +219 -268
- package/dist-es/callout.js +38 -38
- package/dist-es/card.js +492 -482
- package/dist-es/chip.js +25 -25
- package/dist-es/dialog.js +22 -21
- package/dist-es/feedback.js +96 -89
- package/dist-es/inline.css-mistica.js +3 -3
- package/dist-es/inline.js +23 -23
- package/dist-es/logo-blau.js +65 -0
- package/dist-es/logo-common.js +12 -0
- package/dist-es/logo-movistar.js +90 -0
- package/dist-es/logo-o2-new.js +20 -0
- package/dist-es/logo-o2.js +20 -0
- package/dist-es/logo-telefonica.js +188 -0
- package/dist-es/logo-tu.js +19 -0
- package/dist-es/logo-vivo.js +72 -0
- package/dist-es/logo.js +132 -533
- package/dist-es/navigation-bar.js +163 -155
- package/dist-es/package-version.js +1 -1
- package/dist-es/popover.js +26 -24
- package/dist-es/snackbar-context.js +25 -24
- package/dist-es/snackbar.js +81 -77
- package/dist-es/style.css +1 -1
- package/dist-es/text.js +143 -119
- package/dist-es/tooltip.js +149 -149
- package/package.json +1 -1
package/dist-es/chip.js
CHANGED
|
@@ -59,18 +59,18 @@ import o from "./box.js";
|
|
|
59
59
|
import { Text2 as V } from "./text.js";
|
|
60
60
|
import z from "./generated/mistica-icons/icon-close-regular.js";
|
|
61
61
|
import { pxToRem as i } from "./utils/css.js";
|
|
62
|
-
import { iconActive as D, icon as
|
|
63
|
-
import { vars as
|
|
64
|
-
import { useThemeVariant as
|
|
65
|
-
import
|
|
66
|
-
const
|
|
67
|
-
const { Icon: n, children: A, id: R, dataAttributes: T, active: a, badge: r, onClose: s } = e, { texts:
|
|
62
|
+
import { iconActive as D, icon as M, chipVariants as h, chipWrapper as u, button as F, wrappedContent as W, chipInteractiveVariants as $ } from "./chip.css-mistica.js";
|
|
63
|
+
import { vars as q } from "./skins/skin-contract.css-mistica.js";
|
|
64
|
+
import { useThemeVariant as E } from "./theme-variant-context.js";
|
|
65
|
+
import G, { BaseTouchable as H } from "./touchable.js";
|
|
66
|
+
const J = (e)=>{
|
|
67
|
+
const { Icon: n, children: A, id: R, dataAttributes: T, active: a, badge: r, onClose: s, closeButtonLabel: k } = e, { texts: B, isDarkMode: I, textPresets: w } = P(), p = E() === "alternative", f = n ? {
|
|
68
68
|
mobile: 16,
|
|
69
69
|
desktop: 8
|
|
70
70
|
} : {
|
|
71
71
|
mobile: 20,
|
|
72
72
|
desktop: 12
|
|
73
|
-
},
|
|
73
|
+
}, y = {
|
|
74
74
|
mobile: 20,
|
|
75
75
|
desktop: 12
|
|
76
76
|
}, g = {
|
|
@@ -80,7 +80,7 @@ const H = (e)=>{
|
|
|
80
80
|
children: [
|
|
81
81
|
n && /* @__PURE__ */ t(o, {
|
|
82
82
|
paddingRight: 4,
|
|
83
|
-
className: a ? D :
|
|
83
|
+
className: a ? D : M,
|
|
84
84
|
children: /* @__PURE__ */ t(n, {
|
|
85
85
|
color: "currentColor",
|
|
86
86
|
size: i(16)
|
|
@@ -90,7 +90,7 @@ const H = (e)=>{
|
|
|
90
90
|
paddingRight: r ? 8 : s ? 4 : 0,
|
|
91
91
|
children: /* @__PURE__ */ t(V, {
|
|
92
92
|
id: R,
|
|
93
|
-
weight:
|
|
93
|
+
weight: w.indicator.weight,
|
|
94
94
|
truncate: 1,
|
|
95
95
|
color: "currentColor",
|
|
96
96
|
children: A
|
|
@@ -101,13 +101,13 @@ const H = (e)=>{
|
|
|
101
101
|
"component-name": "Chip"
|
|
102
102
|
}, T);
|
|
103
103
|
if (s) return /* @__PURE__ */ d(o, {
|
|
104
|
-
className: m(
|
|
104
|
+
className: m(p ? h.overAlternative : h.default, u),
|
|
105
105
|
paddingLeft: f,
|
|
106
106
|
paddingRight: g,
|
|
107
107
|
dataAttributes: c,
|
|
108
108
|
children: [
|
|
109
109
|
b,
|
|
110
|
-
/* @__PURE__ */ t(
|
|
110
|
+
/* @__PURE__ */ t(G, {
|
|
111
111
|
style: {
|
|
112
112
|
display: "flex",
|
|
113
113
|
justifyContent: "center",
|
|
@@ -115,36 +115,36 @@ const H = (e)=>{
|
|
|
115
115
|
width: i(24),
|
|
116
116
|
height: i(24)
|
|
117
117
|
},
|
|
118
|
-
"aria-label": k.closeButtonLabel,
|
|
118
|
+
"aria-label": k !== null && k !== void 0 ? k : B.closeButtonLabel,
|
|
119
119
|
onPress: ()=>s(),
|
|
120
120
|
children: /* @__PURE__ */ t(z, {
|
|
121
121
|
size: i(16),
|
|
122
|
-
color:
|
|
122
|
+
color: q.colors.neutralMedium
|
|
123
123
|
})
|
|
124
124
|
})
|
|
125
125
|
]
|
|
126
126
|
});
|
|
127
|
-
const l = e.href || e.onPress || e.to,
|
|
127
|
+
const l = e.href || e.onPress || e.to, N = a !== void 0 || l, j = ()=>r ? /* @__PURE__ */ t(C, {
|
|
128
128
|
children: r === !0 ? /* @__PURE__ */ t(x, {}) : /* @__PURE__ */ t(x, {
|
|
129
129
|
value: r
|
|
130
130
|
})
|
|
131
|
-
}) : null, v = (
|
|
132
|
-
className: m(h[a ? "active" :
|
|
133
|
-
l ?
|
|
134
|
-
[
|
|
131
|
+
}) : null, v = (L)=>/* @__PURE__ */ d(o, {
|
|
132
|
+
className: m(h[a ? "active" : p ? "overAlternative" : "default"], // If the chip is wrapped inside a BaseTouchable, we set inline-flex to the Touchable instead
|
|
133
|
+
l ? W : u, {
|
|
134
|
+
[$[I ? "dark" : "light"]]: N
|
|
135
135
|
}),
|
|
136
136
|
paddingLeft: f,
|
|
137
|
-
paddingRight: r ? g :
|
|
138
|
-
dataAttributes:
|
|
137
|
+
paddingRight: r ? g : y,
|
|
138
|
+
dataAttributes: L,
|
|
139
139
|
children: [
|
|
140
140
|
b,
|
|
141
|
-
|
|
141
|
+
j()
|
|
142
142
|
]
|
|
143
143
|
});
|
|
144
|
-
return l ? /* @__PURE__ */ t(
|
|
145
|
-
className: m(
|
|
144
|
+
return l ? /* @__PURE__ */ t(H, _object_spread_props(_object_spread({}, e), {
|
|
145
|
+
className: m(u, F),
|
|
146
146
|
dataAttributes: c,
|
|
147
147
|
children: v()
|
|
148
148
|
})) : v(c);
|
|
149
|
-
},
|
|
150
|
-
export {
|
|
149
|
+
}, ot = J;
|
|
150
|
+
export { ot as default };
|
package/dist-es/dialog.js
CHANGED
|
@@ -78,10 +78,10 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as e, jsxs as w, Fragment as
|
|
81
|
+
import { jsx as e, jsxs as w, Fragment as L } from "react/jsx-runtime";
|
|
82
82
|
import * as n from "react";
|
|
83
83
|
import E from "classnames";
|
|
84
|
-
import { ButtonDanger as
|
|
84
|
+
import { ButtonDanger as O, ButtonPrimary as S, ButtonSecondary as M } from "./button.js";
|
|
85
85
|
import { Portal as _ } from "./portal.js";
|
|
86
86
|
import j from "./focus-trap.js";
|
|
87
87
|
import F from "./generated/mistica-icons/icon-close-regular.js";
|
|
@@ -97,8 +97,8 @@ import { useSetModalStateEffect as J } from "./modal-context-provider.js";
|
|
|
97
97
|
import Q from "./stack.js";
|
|
98
98
|
import { ANIMATION_DURATION_MS as X, wrapper as Z, modalOpacityLayer as $, closedOpactityLayer as ee, modalContent as te, closedModalContent as ne, modalCloseButtonContainer as oe, variants as ae, iconContainer as re, dialogContent as ie, dialogActions as se } from "./dialog.css-mistica.js";
|
|
99
99
|
import { vars as le } from "./skins/skin-contract.css-mistica.js";
|
|
100
|
-
const ce = ()=>process.env.NODE_ENV !== "test" && !H(),
|
|
101
|
-
const { texts: i } = D(), { className:
|
|
100
|
+
const ce = ()=>process.env.NODE_ENV !== "test" && !H(), ue = (t)=>{
|
|
101
|
+
const { texts: i } = D(), { className: u, title: r, message: f, icon: o, extra: c, showCancelButton: s, showAcceptButton: l, cancelText: g = i.dialogCancelButton, acceptText: m = i.dialogAcceptButton, onCancel: h, onAccept: C, destructive: B = !1 } = t, d = t.type === "dialog", p = d && !!t.link || l || s, y = {
|
|
102
102
|
onPress: C || (()=>{}),
|
|
103
103
|
children: m,
|
|
104
104
|
// @deprecated - testid should be removed but many webapp tests depend on this
|
|
@@ -107,7 +107,7 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
107
107
|
}
|
|
108
108
|
};
|
|
109
109
|
return /* @__PURE__ */ w("div", {
|
|
110
|
-
className: E(ae[
|
|
110
|
+
className: E(ae[d ? "dialog" : "default"], u),
|
|
111
111
|
children: [
|
|
112
112
|
o && /* @__PURE__ */ e(k, {
|
|
113
113
|
paddingBottom: 24,
|
|
@@ -120,7 +120,7 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
120
120
|
}),
|
|
121
121
|
r && /* @__PURE__ */ e(k, {
|
|
122
122
|
paddingBottom: 16,
|
|
123
|
-
children:
|
|
123
|
+
children: d ? /* @__PURE__ */ e(Y, {
|
|
124
124
|
as: "h2",
|
|
125
125
|
children: r
|
|
126
126
|
}) : /* @__PURE__ */ e(A, {
|
|
@@ -154,8 +154,8 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
154
154
|
p && /* @__PURE__ */ e("div", {
|
|
155
155
|
className: se,
|
|
156
156
|
children: /* @__PURE__ */ e(U, {
|
|
157
|
-
link:
|
|
158
|
-
primaryButton: l ? B ? /* @__PURE__ */ e(
|
|
157
|
+
link: d ? t.link : void 0,
|
|
158
|
+
primaryButton: l ? B ? /* @__PURE__ */ e(O, _object_spread({
|
|
159
159
|
tabIndex: 1
|
|
160
160
|
}, y)) : /* @__PURE__ */ e(S, _object_spread({
|
|
161
161
|
tabIndex: 1
|
|
@@ -172,28 +172,28 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
172
172
|
})
|
|
173
173
|
]
|
|
174
174
|
});
|
|
175
|
-
},
|
|
176
|
-
let { type: t, message: i, title:
|
|
175
|
+
}, de = (param)=>{
|
|
176
|
+
let { type: t, message: i, title: u, acceptText: r, cancelText: f, onAccept: o, onCancel: c, onDestroy: s } = param;
|
|
177
177
|
return t === "confirm" ? z({
|
|
178
178
|
message: i,
|
|
179
|
-
title:
|
|
179
|
+
title: u,
|
|
180
180
|
cancelText: f,
|
|
181
181
|
acceptText: r
|
|
182
182
|
}).then((l)=>{
|
|
183
183
|
l ? o == null || o() : c == null || c(), s();
|
|
184
184
|
}) : K({
|
|
185
185
|
message: i,
|
|
186
|
-
title:
|
|
186
|
+
title: u,
|
|
187
187
|
buttonText: r
|
|
188
188
|
}).then(()=>{
|
|
189
189
|
o == null || o(), s();
|
|
190
190
|
});
|
|
191
191
|
}, me = (param)=>{
|
|
192
|
-
let { type: t, onAccept: i, onCancel:
|
|
192
|
+
let { type: t, onAccept: i, onCancel: u, onDestroy: r, acceptText: f, cancelText: o, message: c, title: s } = param;
|
|
193
193
|
const { texts: l } = D(), g = n.useRef({
|
|
194
194
|
type: t,
|
|
195
195
|
onAccept: i,
|
|
196
|
-
onCancel:
|
|
196
|
+
onCancel: u,
|
|
197
197
|
onDestroy: r,
|
|
198
198
|
acceptText: f || l.dialogAcceptButton,
|
|
199
199
|
cancelText: o || l.dialogCancelButton,
|
|
@@ -201,13 +201,13 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
201
201
|
title: s
|
|
202
202
|
}), m = n.useRef(!1);
|
|
203
203
|
return n.useEffect(()=>{
|
|
204
|
-
m.current || (m.current = !0,
|
|
204
|
+
m.current || (m.current = !0, de(g.current).finally(()=>{
|
|
205
205
|
m.current = !1;
|
|
206
206
|
}));
|
|
207
|
-
}, []), /* @__PURE__ */ e(
|
|
207
|
+
}, []), /* @__PURE__ */ e(L, {});
|
|
208
208
|
}, Ie = (t)=>{
|
|
209
209
|
J();
|
|
210
|
-
const i = n.useRef(null), { texts:
|
|
210
|
+
const i = n.useRef(null), { texts: u } = D(), [r, f] = n.useState(!1), o = n.useRef(!1), c = n.useRef(!1), [s, l] = n.useState(!1), g = n.useRef(!1), m = n.useRef(ce() ? X : 0), h = t.type !== "dialog" && W(), C = t.type === "dialog", B = t.type === "alert", { onAccept: d, onCancel: p, onDestroy: y } = t, I = _object_without_properties(t, [
|
|
211
211
|
"onAccept",
|
|
212
212
|
"onCancel",
|
|
213
213
|
"onDestroy"
|
|
@@ -221,9 +221,9 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
221
221
|
};
|
|
222
222
|
}, []);
|
|
223
223
|
const x = n.useCallback(()=>{
|
|
224
|
-
c.current || (c.current = !0, g.current ?
|
|
224
|
+
c.current || (c.current = !0, g.current ? d == null || d() : p == null || p(), y());
|
|
225
225
|
}, [
|
|
226
|
-
|
|
226
|
+
d,
|
|
227
227
|
p,
|
|
228
228
|
y
|
|
229
229
|
]), R = n.useCallback(()=>{
|
|
@@ -274,6 +274,7 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
274
274
|
C,
|
|
275
275
|
b
|
|
276
276
|
]);
|
|
277
|
+
var _t_closeButtonLabel;
|
|
277
278
|
return h ? /* @__PURE__ */ e(me, _object_spread({}, t)) : /* @__PURE__ */ e(_, {
|
|
278
279
|
className: Z,
|
|
279
280
|
children: /* @__PURE__ */ e(j, {
|
|
@@ -304,14 +305,14 @@ const ce = ()=>process.env.NODE_ENV !== "test" && !H(), de = (t)=>{
|
|
|
304
305
|
className: oe,
|
|
305
306
|
children: /* @__PURE__ */ e(V, {
|
|
306
307
|
onPress: v,
|
|
307
|
-
"aria-label":
|
|
308
|
+
"aria-label": (_t_closeButtonLabel = t.closeButtonLabel) !== null && _t_closeButtonLabel !== void 0 ? _t_closeButtonLabel : u.modalClose || u.closeButtonLabel,
|
|
308
309
|
bleedLeft: !0,
|
|
309
310
|
bleedRight: !0,
|
|
310
311
|
bleedY: !0,
|
|
311
312
|
Icon: F
|
|
312
313
|
})
|
|
313
314
|
}),
|
|
314
|
-
/* @__PURE__ */ e(
|
|
315
|
+
/* @__PURE__ */ e(ue, _object_spread_props(_object_spread({}, I), {
|
|
315
316
|
showAcceptButton: t.type !== "dialog" || !!t.onAccept,
|
|
316
317
|
showCancelButton: t.type === "confirm" || t.type === "dialog" && !!t.onCancel,
|
|
317
318
|
onCancel: b,
|
package/dist-es/feedback.js
CHANGED
|
@@ -80,106 +80,106 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
80
80
|
}
|
|
81
81
|
import { jsx as e, jsxs as l } from "react/jsx-runtime";
|
|
82
82
|
import * as K from "react";
|
|
83
|
-
import { useTheme as v, useScreenSize as
|
|
84
|
-
import
|
|
85
|
-
import { VIVO_SKIN as
|
|
86
|
-
import { useSetOverscrollColor as
|
|
83
|
+
import { useTheme as v, useScreenSize as A } from "./hooks.js";
|
|
84
|
+
import M from "./button-fixed-footer-layout.js";
|
|
85
|
+
import { VIVO_SKIN as y, VIVO_NEW_SKIN as z } from "./skins/constants.js";
|
|
86
|
+
import { useSetOverscrollColor as $ } from "./overscroll-color-context.js";
|
|
87
87
|
import C from "./icons/icon-success.js";
|
|
88
88
|
import V from "./icons/icon-success-vivo.js";
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import { isWebViewBridgeAvailable as
|
|
92
|
-
import { isRunningAcceptanceTest as
|
|
93
|
-
import { Text2 as
|
|
89
|
+
import G from "./icons/icon-error.js";
|
|
90
|
+
import P from "./icons/icon-info.js";
|
|
91
|
+
import { isWebViewBridgeAvailable as U, requestVibration as X } from "@tef-novum/webview-bridge";
|
|
92
|
+
import { isRunningAcceptanceTest as J } from "./utils/platform.js";
|
|
93
|
+
import { Text2 as Q, Text6 as Y, Text3 as Z } from "./text.js";
|
|
94
94
|
import b from "./box.js";
|
|
95
|
-
import { InternalBoxed as
|
|
96
|
-
import
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
95
|
+
import { InternalBoxed as ee } from "./boxed.js";
|
|
96
|
+
import N, { ResetResponsiveLayout as re } from "./responsive-layout.js";
|
|
97
|
+
import u from "./stack.js";
|
|
98
|
+
import p from "classnames";
|
|
99
|
+
import oe from "./button-group.js";
|
|
100
100
|
import { vars as d } from "./skins/skin-contract.css-mistica.js";
|
|
101
|
-
import { container as
|
|
102
|
-
import
|
|
103
|
-
const
|
|
101
|
+
import { container as te, innerContainer as ce, innerContainerWithButtons as ne, backgroundBrand as ie, iconContainer as se, feedbackData as ae, feedbackTextAppearFast as de, feedbackTextAppearMedium as T, feedbackTextAppearSlow as le, desktopContainer as me, desktopContent as pe, desktopImage as ue } from "./feedback.css-mistica.js";
|
|
102
|
+
import O from "./icons/icon-success-vivo-new.js";
|
|
103
|
+
const R = (o)=>!J(o), D = (param)=>{
|
|
104
104
|
let { primaryButton: o, secondaryButton: r } = param;
|
|
105
105
|
return !!o || !!r;
|
|
106
|
-
},
|
|
107
|
-
|
|
106
|
+
}, B = (o)=>{
|
|
107
|
+
U() && X(o).catch(()=>{});
|
|
108
108
|
}, E = (o)=>{
|
|
109
109
|
K.useEffect(()=>{
|
|
110
110
|
let r;
|
|
111
|
-
return o === "success" && (r = setTimeout(()=>
|
|
111
|
+
return o === "success" && (r = setTimeout(()=>B("success"), 700)), o === "error" && (r = setTimeout(()=>B("error"), 1e3)), ()=>{
|
|
112
112
|
clearTimeout(r);
|
|
113
113
|
};
|
|
114
114
|
}, [
|
|
115
115
|
o
|
|
116
116
|
]);
|
|
117
|
-
},
|
|
117
|
+
}, W = (param, n)=>{
|
|
118
118
|
let { icon: o, title: r, description: t, extra: c } = param;
|
|
119
|
-
const i = t && Array.isArray(t) ? /* @__PURE__ */ e(
|
|
119
|
+
const i = t && Array.isArray(t) ? /* @__PURE__ */ e(u, {
|
|
120
120
|
space: 16,
|
|
121
|
-
children: t.map((
|
|
122
|
-
children:
|
|
121
|
+
children: t.map((s, m)=>/* @__PURE__ */ e("p", {
|
|
122
|
+
children: s
|
|
123
123
|
}, m))
|
|
124
124
|
}) : t;
|
|
125
|
-
return /* @__PURE__ */ l(
|
|
125
|
+
return /* @__PURE__ */ l(u, {
|
|
126
126
|
space: 24,
|
|
127
127
|
children: [
|
|
128
128
|
/* @__PURE__ */ e("div", {
|
|
129
|
-
className:
|
|
129
|
+
className: se,
|
|
130
130
|
children: o
|
|
131
131
|
}),
|
|
132
|
-
/* @__PURE__ */ l(
|
|
132
|
+
/* @__PURE__ */ l(u, {
|
|
133
133
|
space: 16,
|
|
134
|
-
className:
|
|
134
|
+
className: p(ae),
|
|
135
135
|
children: [
|
|
136
136
|
/* @__PURE__ */ e("div", {
|
|
137
|
-
className:
|
|
138
|
-
children: /* @__PURE__ */ e(
|
|
137
|
+
className: p(n && de),
|
|
138
|
+
children: /* @__PURE__ */ e(Y, {
|
|
139
139
|
as: "h1",
|
|
140
140
|
children: r
|
|
141
141
|
})
|
|
142
142
|
}),
|
|
143
143
|
i && /* @__PURE__ */ e("div", {
|
|
144
|
-
className:
|
|
145
|
-
children: i && /* @__PURE__ */ e(
|
|
144
|
+
className: p(n && T),
|
|
145
|
+
children: i && /* @__PURE__ */ e(Z, {
|
|
146
146
|
regular: !0,
|
|
147
147
|
color: d.colors.textSecondary,
|
|
148
148
|
children: i
|
|
149
149
|
})
|
|
150
150
|
}),
|
|
151
151
|
c && /* @__PURE__ */ e("div", {
|
|
152
|
-
className:
|
|
152
|
+
className: p(n && (i ? le : T)),
|
|
153
153
|
children: c
|
|
154
154
|
})
|
|
155
155
|
]
|
|
156
156
|
})
|
|
157
157
|
]
|
|
158
158
|
});
|
|
159
|
-
},
|
|
159
|
+
}, _ = (o, r)=>{
|
|
160
160
|
const t = D(r);
|
|
161
|
-
return /* @__PURE__ */ l(
|
|
161
|
+
return /* @__PURE__ */ l(u, {
|
|
162
162
|
space: {
|
|
163
163
|
desktop: 40,
|
|
164
164
|
mobile: 24
|
|
165
165
|
},
|
|
166
166
|
children: [
|
|
167
167
|
o,
|
|
168
|
-
t && /* @__PURE__ */ e(
|
|
168
|
+
t && /* @__PURE__ */ e(oe, _object_spread({}, r))
|
|
169
169
|
]
|
|
170
170
|
});
|
|
171
|
-
},
|
|
171
|
+
}, q = (param)=>{
|
|
172
172
|
let { isInverse: o, body: r, imageFit: t, imageUrl: c, dataAttributes: n } = param;
|
|
173
|
-
return /* @__PURE__ */ e(
|
|
173
|
+
return /* @__PURE__ */ e(ee, {
|
|
174
174
|
borderRadius: d.borderRadii.legacyDisplay,
|
|
175
175
|
desktopOnly: !0,
|
|
176
176
|
isInverse: o,
|
|
177
177
|
dataAttributes: n,
|
|
178
178
|
children: /* @__PURE__ */ l("div", {
|
|
179
|
-
className:
|
|
179
|
+
className: me,
|
|
180
180
|
children: [
|
|
181
181
|
/* @__PURE__ */ e("div", {
|
|
182
|
-
className:
|
|
182
|
+
className: pe,
|
|
183
183
|
children: /* @__PURE__ */ e(b, {
|
|
184
184
|
padding: {
|
|
185
185
|
desktop: 64,
|
|
@@ -203,54 +203,61 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
203
203
|
]
|
|
204
204
|
})
|
|
205
205
|
});
|
|
206
|
-
},
|
|
206
|
+
}, be = ()=>($({
|
|
207
207
|
topColor: d.colors.backgroundBrandTop,
|
|
208
208
|
bottomColor: "transparent"
|
|
209
209
|
}), null), F = (param)=>{
|
|
210
|
-
let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link:
|
|
210
|
+
let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link: s, hapticFeedback: m, icon: k, animateText: f = !1, isInverse: a = !1, unstable_inlineInDesktop: h, imageUrl: x, imageFit: g, dataAttributes: S } = param;
|
|
211
211
|
E(m);
|
|
212
|
-
const { platformOverrides:
|
|
212
|
+
const { platformOverrides: w, isDarkMode: L } = v(), { isTabletOrSmaller: j } = A(), H = D({
|
|
213
213
|
primaryButton: n,
|
|
214
214
|
secondaryButton: i,
|
|
215
|
-
link:
|
|
216
|
-
}), I =
|
|
217
|
-
icon:
|
|
215
|
+
link: s
|
|
216
|
+
}), I = W({
|
|
217
|
+
icon: k,
|
|
218
218
|
title: o,
|
|
219
219
|
description: r,
|
|
220
220
|
extra: c !== null && c !== void 0 ? c : t
|
|
221
|
-
},
|
|
222
|
-
return !j && h ?
|
|
221
|
+
}, f && R(w));
|
|
222
|
+
return !j && h ? _(I, {
|
|
223
223
|
primaryButton: n,
|
|
224
224
|
secondaryButton: i,
|
|
225
|
-
link:
|
|
225
|
+
link: s
|
|
226
226
|
}) : /* @__PURE__ */ e("div", {
|
|
227
227
|
style: {
|
|
228
228
|
position: "relative"
|
|
229
229
|
},
|
|
230
|
-
children: /* @__PURE__ */ l(
|
|
230
|
+
children: /* @__PURE__ */ l(N, {
|
|
231
231
|
children: [
|
|
232
|
-
|
|
232
|
+
a && /* @__PURE__ */ e(be, {}),
|
|
233
233
|
/* @__PURE__ */ e(b, {
|
|
234
234
|
paddingTop: {
|
|
235
235
|
desktop: 64,
|
|
236
236
|
mobile: 0
|
|
237
237
|
},
|
|
238
|
-
children:
|
|
239
|
-
isInverse:
|
|
240
|
-
body:
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
238
|
+
children: q({
|
|
239
|
+
isInverse: a,
|
|
240
|
+
body: // We need this reset because the ButtonFixedFooterLayout adds a ResponsiveLayout that
|
|
241
|
+
// doesn't expand when nested in mobile. This can cause double margin when footer is not fixed
|
|
242
|
+
/* @__PURE__ */ e(re, {
|
|
243
|
+
skipDesktop: !0,
|
|
244
|
+
children: /* @__PURE__ */ e(M, {
|
|
245
|
+
isFooterVisible: H,
|
|
246
|
+
button: n,
|
|
247
|
+
secondaryButton: i,
|
|
248
|
+
link: s,
|
|
249
|
+
footerBgColor: a && !L ? d.colors.backgroundBrandBottom : void 0,
|
|
250
|
+
containerBgColor: a ? d.colors.backgroundBrand : d.colors.background,
|
|
251
|
+
children: /* @__PURE__ */ e(N, {
|
|
252
|
+
children: /* @__PURE__ */ e("div", {
|
|
253
|
+
className: te,
|
|
254
|
+
children: /* @__PURE__ */ e("div", {
|
|
255
|
+
className: p(ce, {
|
|
256
|
+
[ne]: n || i || s
|
|
257
|
+
}),
|
|
258
|
+
children: I
|
|
259
|
+
})
|
|
260
|
+
})
|
|
254
261
|
})
|
|
255
262
|
})
|
|
256
263
|
}),
|
|
@@ -262,17 +269,17 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
262
269
|
]
|
|
263
270
|
})
|
|
264
271
|
});
|
|
265
|
-
},
|
|
272
|
+
}, We = (_param)=>{
|
|
266
273
|
var { dataAttributes: o } = _param, r = _object_without_properties(_param, [
|
|
267
274
|
"dataAttributes"
|
|
268
275
|
]);
|
|
269
|
-
const { isTabletOrSmaller: t } =
|
|
276
|
+
const { isTabletOrSmaller: t } = A(), { skinName: c } = v();
|
|
270
277
|
return /* @__PURE__ */ e(F, _object_spread_props(_object_spread({}, r), {
|
|
271
278
|
isInverse: !r.unstable_inlineInDesktop || t,
|
|
272
279
|
hapticFeedback: "success",
|
|
273
|
-
icon: c ===
|
|
280
|
+
icon: c === y ? /* @__PURE__ */ e(V, {
|
|
274
281
|
size: "100%"
|
|
275
|
-
}) : c === z ? /* @__PURE__ */ e(
|
|
282
|
+
}) : c === z ? /* @__PURE__ */ e(O, {
|
|
276
283
|
size: "100%"
|
|
277
284
|
}) : /* @__PURE__ */ e(C, {
|
|
278
285
|
size: "100%"
|
|
@@ -284,7 +291,7 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
284
291
|
"component-name": "SuccessFeedbackScreen"
|
|
285
292
|
}, o)
|
|
286
293
|
}));
|
|
287
|
-
},
|
|
294
|
+
}, _e = (_param)=>{
|
|
288
295
|
var { children: o, errorReference: r, dataAttributes: t } = _param, c = _object_without_properties(_param, [
|
|
289
296
|
"children",
|
|
290
297
|
"errorReference",
|
|
@@ -292,18 +299,18 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
292
299
|
]);
|
|
293
300
|
return /* @__PURE__ */ e(F, _object_spread_props(_object_spread({}, c), {
|
|
294
301
|
hapticFeedback: "error",
|
|
295
|
-
icon: /* @__PURE__ */ e(
|
|
302
|
+
icon: /* @__PURE__ */ e(G, {
|
|
296
303
|
size: "100%"
|
|
297
304
|
}),
|
|
298
305
|
animateText: !0,
|
|
299
306
|
dataAttributes: _object_spread({
|
|
300
307
|
"component-name": "ErrorFeedbackScreen"
|
|
301
308
|
}, t),
|
|
302
|
-
extra: /* @__PURE__ */ l(
|
|
309
|
+
extra: /* @__PURE__ */ l(u, {
|
|
303
310
|
space: 16,
|
|
304
311
|
children: [
|
|
305
312
|
o,
|
|
306
|
-
r && /* @__PURE__ */ e(
|
|
313
|
+
r && /* @__PURE__ */ e(Q, {
|
|
307
314
|
color: d.colors.textSecondary,
|
|
308
315
|
regular: !0,
|
|
309
316
|
children: r
|
|
@@ -311,8 +318,8 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
311
318
|
]
|
|
312
319
|
})
|
|
313
320
|
}));
|
|
314
|
-
},
|
|
315
|
-
var { dataAttributes: o, Icon: r =
|
|
321
|
+
}, qe = (_param)=>{
|
|
322
|
+
var { dataAttributes: o, Icon: r = P } = _param, t = _object_without_properties(_param, [
|
|
316
323
|
"dataAttributes",
|
|
317
324
|
"Icon"
|
|
318
325
|
]);
|
|
@@ -324,13 +331,13 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
324
331
|
size: "100%"
|
|
325
332
|
})
|
|
326
333
|
}, t));
|
|
327
|
-
},
|
|
328
|
-
let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link:
|
|
334
|
+
}, we = (param)=>{
|
|
335
|
+
let { title: o, description: r, children: t, extra: c, primaryButton: n, secondaryButton: i, link: s, imageUrl: m, imageFit: k, dataAttributes: f } = param;
|
|
329
336
|
E("success");
|
|
330
|
-
const { skinName:
|
|
331
|
-
icon:
|
|
337
|
+
const { skinName: a, platformOverrides: h } = v(), g = W({
|
|
338
|
+
icon: a === y ? /* @__PURE__ */ e(V, {
|
|
332
339
|
size: "100%"
|
|
333
|
-
}) :
|
|
340
|
+
}) : a === z ? /* @__PURE__ */ e(O, {
|
|
334
341
|
size: "100%"
|
|
335
342
|
}) : /* @__PURE__ */ e(C, {
|
|
336
343
|
size: "100%"
|
|
@@ -338,15 +345,15 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
338
345
|
title: o,
|
|
339
346
|
description: r,
|
|
340
347
|
extra: c !== null && c !== void 0 ? c : t
|
|
341
|
-
},
|
|
348
|
+
}, R(h)), S = _(g, {
|
|
342
349
|
primaryButton: n,
|
|
343
350
|
secondaryButton: i,
|
|
344
|
-
link:
|
|
351
|
+
link: s
|
|
345
352
|
});
|
|
346
|
-
return
|
|
353
|
+
return q({
|
|
347
354
|
isInverse: !0,
|
|
348
355
|
body: /* @__PURE__ */ e("div", {
|
|
349
|
-
className:
|
|
356
|
+
className: ie,
|
|
350
357
|
children: /* @__PURE__ */ e(b, {
|
|
351
358
|
paddingX: {
|
|
352
359
|
mobile: 16,
|
|
@@ -363,11 +370,11 @@ const O = (o)=>!X(o), D = (param)=>{
|
|
|
363
370
|
})
|
|
364
371
|
})
|
|
365
372
|
}),
|
|
366
|
-
imageFit:
|
|
373
|
+
imageFit: k,
|
|
367
374
|
imageUrl: m,
|
|
368
375
|
dataAttributes: _object_spread({
|
|
369
376
|
"component-name": "SuccessFeedback"
|
|
370
|
-
},
|
|
377
|
+
}, f)
|
|
371
378
|
});
|
|
372
379
|
};
|
|
373
|
-
export {
|
|
380
|
+
export { _e as ErrorFeedbackScreen, F as FeedbackScreen, qe as InfoFeedbackScreen, we as SuccessFeedback, We as SuccessFeedbackScreen };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./inline.css.ts.vanilla.css-mistica.js";
|
|
2
|
-
var
|
|
2
|
+
var v = "kkfbnv6", k = "kkfbnv5", r = "kkfbnv4", n = "kkfbnv8", b = "kkfbnv9", e = "kkfbnva", f = {
|
|
3
3
|
space: "var(--kkfbnv0)",
|
|
4
4
|
spaceMobile: "var(--kkfbnv1)",
|
|
5
5
|
spaceTablet: "var(--kkfbnv2)",
|
|
6
6
|
spaceDesktop: "var(--kkfbnv3)"
|
|
7
|
-
},
|
|
8
|
-
export {
|
|
7
|
+
}, i = "kkfbnv7";
|
|
8
|
+
export { v as fullWidth, k as inline, r as marginInline, n as noFullWidth, b as stringSpace, e as stringSpaceWithWrap, f as vars, i as wrap };
|