@mx-cartographer/insights-ui 1.4.5-alpha.JB0 → 1.4.5-alpha.JB1
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/dist/index.es.js +56 -57
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as t, jsxs as c, Fragment as P } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as f, P as E, BottomSheetTransition as X, Text as v, InstitutionLogo as q, H3 as j, Drawer as O, createMXTheme as R } from "@kyper/mui";
|
|
3
|
-
import
|
|
3
|
+
import h from "@mui/material/Box";
|
|
4
4
|
import y from "@mui/material/Card";
|
|
5
5
|
import { useTheme as b, styled as V, ThemeProvider as z } from "@mui/material/styles";
|
|
6
6
|
import * as e from "react";
|
|
@@ -51,7 +51,7 @@ const fe = ({
|
|
|
51
51
|
},
|
|
52
52
|
children: [
|
|
53
53
|
/* @__PURE__ */ t(
|
|
54
|
-
|
|
54
|
+
h,
|
|
55
55
|
{
|
|
56
56
|
sx: {
|
|
57
57
|
position: "absolute",
|
|
@@ -64,7 +64,7 @@ const fe = ({
|
|
|
64
64
|
}
|
|
65
65
|
),
|
|
66
66
|
/* @__PURE__ */ t(
|
|
67
|
-
|
|
67
|
+
h,
|
|
68
68
|
{
|
|
69
69
|
sx: {
|
|
70
70
|
position: "absolute",
|
|
@@ -88,7 +88,7 @@ const fe = ({
|
|
|
88
88
|
}) => {
|
|
89
89
|
const n = b();
|
|
90
90
|
return /* @__PURE__ */ c(
|
|
91
|
-
|
|
91
|
+
h,
|
|
92
92
|
{
|
|
93
93
|
className: "mx-insights-goal-progress",
|
|
94
94
|
"data-ui-test": "goal-progress",
|
|
@@ -138,7 +138,7 @@ const fe = ({
|
|
|
138
138
|
}) => {
|
|
139
139
|
const r = b();
|
|
140
140
|
return /* @__PURE__ */ c(
|
|
141
|
-
|
|
141
|
+
h,
|
|
142
142
|
{
|
|
143
143
|
className: "mx-insights-gradient-box",
|
|
144
144
|
"data-ui-test": "gradient-box",
|
|
@@ -157,7 +157,7 @@ const fe = ({
|
|
|
157
157
|
}
|
|
158
158
|
) }),
|
|
159
159
|
/* @__PURE__ */ t(
|
|
160
|
-
|
|
160
|
+
h,
|
|
161
161
|
{
|
|
162
162
|
className: "mx-insights-gradient-box-card",
|
|
163
163
|
sx: {
|
|
@@ -182,9 +182,9 @@ const fe = ({
|
|
|
182
182
|
showBackground: d = !1,
|
|
183
183
|
width: s = 450
|
|
184
184
|
}) => {
|
|
185
|
-
const [m,
|
|
185
|
+
const [m, p] = C.useState(!1);
|
|
186
186
|
return C.useEffect(() => {
|
|
187
|
-
|
|
187
|
+
p(!!l);
|
|
188
188
|
}, [l]), /* @__PURE__ */ t(
|
|
189
189
|
te,
|
|
190
190
|
{
|
|
@@ -234,7 +234,7 @@ const fe = ({
|
|
|
234
234
|
rightLowerText: s,
|
|
235
235
|
rightUpperText: m
|
|
236
236
|
}) => {
|
|
237
|
-
const
|
|
237
|
+
const p = {
|
|
238
238
|
containerHeight: n ? 140 : 186,
|
|
239
239
|
logoSize: n ? 20 : 48,
|
|
240
240
|
card: {
|
|
@@ -242,17 +242,15 @@ const fe = ({
|
|
|
242
242
|
},
|
|
243
243
|
padding: n ? "12px 16px 12px 16px" : "32px 16px 16px 16px"
|
|
244
244
|
};
|
|
245
|
-
return /* @__PURE__ */ t(
|
|
246
|
-
|
|
245
|
+
return /* @__PURE__ */ t(h, { alignItems: "center", display: "flex", height: "186px", justifyContent: "center", width: "100%", children: /* @__PURE__ */ t(
|
|
246
|
+
h,
|
|
247
247
|
{
|
|
248
|
-
sx:
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
height: h.containerHeight,
|
|
252
|
-
padding: h.padding,
|
|
248
|
+
sx: {
|
|
249
|
+
height: p.containerHeight,
|
|
250
|
+
padding: p.padding,
|
|
253
251
|
position: "relative",
|
|
254
252
|
width: "-webkit-calc(100% - 64px)"
|
|
255
|
-
}
|
|
253
|
+
},
|
|
256
254
|
children: /* @__PURE__ */ t(B, { children: ({ height: u, width: g }) => /* @__PURE__ */ c(C.Fragment, { children: [
|
|
257
255
|
/* @__PURE__ */ t(
|
|
258
256
|
Y,
|
|
@@ -288,8 +286,8 @@ const fe = ({
|
|
|
288
286
|
display: "flex",
|
|
289
287
|
flexDirection: "column",
|
|
290
288
|
flexWrap: "wrap",
|
|
291
|
-
gap:
|
|
292
|
-
padding:
|
|
289
|
+
gap: p.card.gap,
|
|
290
|
+
padding: p.padding,
|
|
293
291
|
top: 24,
|
|
294
292
|
width: g
|
|
295
293
|
}),
|
|
@@ -310,7 +308,7 @@ const fe = ({
|
|
|
310
308
|
)
|
|
311
309
|
] }) })
|
|
312
310
|
}
|
|
313
|
-
);
|
|
311
|
+
) });
|
|
314
312
|
}, S1 = ({
|
|
315
313
|
boldText: l,
|
|
316
314
|
iconColor: i,
|
|
@@ -332,14 +330,14 @@ const fe = ({
|
|
|
332
330
|
children: l
|
|
333
331
|
}
|
|
334
332
|
), Ae = ({ accountGuid: l }) => /* @__PURE__ */ t(
|
|
335
|
-
|
|
333
|
+
h,
|
|
336
334
|
{
|
|
337
335
|
sx: {
|
|
338
336
|
display: "flex",
|
|
339
337
|
justifyContent: "center",
|
|
340
338
|
position: "absolute",
|
|
341
339
|
right: 0,
|
|
342
|
-
top:
|
|
340
|
+
top: 8,
|
|
343
341
|
width: "100%",
|
|
344
342
|
zIndex: 10
|
|
345
343
|
},
|
|
@@ -388,12 +386,13 @@ const fe = ({
|
|
|
388
386
|
rightLowerText: r,
|
|
389
387
|
rightUpperText: o
|
|
390
388
|
}) => /* @__PURE__ */ c(
|
|
391
|
-
|
|
389
|
+
h,
|
|
392
390
|
{
|
|
393
391
|
sx: {
|
|
394
392
|
display: "flex",
|
|
395
393
|
flexDirection: "row",
|
|
396
394
|
height: 58,
|
|
395
|
+
gap: 12,
|
|
397
396
|
width: "100%"
|
|
398
397
|
},
|
|
399
398
|
children: [
|
|
@@ -409,7 +408,7 @@ const fe = ({
|
|
|
409
408
|
]
|
|
410
409
|
}
|
|
411
410
|
), Me = ({ accountGuid: l, headerString: i }) => /* @__PURE__ */ c(
|
|
412
|
-
|
|
411
|
+
h,
|
|
413
412
|
{
|
|
414
413
|
"data-ui-test": "mx-insights-sudd-mini-body-header",
|
|
415
414
|
sx: { display: "flex", flexDirection: "row", gap: 8, justifyContent: "center" },
|
|
@@ -477,7 +476,7 @@ const fe = ({
|
|
|
477
476
|
button: l,
|
|
478
477
|
withFullWidthImage: i
|
|
479
478
|
}) => /* @__PURE__ */ t(
|
|
480
|
-
|
|
479
|
+
h,
|
|
481
480
|
{
|
|
482
481
|
className: "mx-insight-buttons",
|
|
483
482
|
"data-ui-test": "beat-button",
|
|
@@ -517,8 +516,8 @@ const fe = ({
|
|
|
517
516
|
if (!r.current) return;
|
|
518
517
|
const o = r.current, n = o.querySelectorAll(".Overlay");
|
|
519
518
|
["brand100", "brand200", "brand300", "brand400", "brand500"].forEach((s, m) => {
|
|
520
|
-
const
|
|
521
|
-
G(
|
|
519
|
+
const p = o.querySelectorAll(`.${s}`), u = (100 + m).toString();
|
|
520
|
+
G(p, w[u]);
|
|
522
521
|
}), G(n, w[300]);
|
|
523
522
|
}, [w]), /* @__PURE__ */ t(
|
|
524
523
|
"div",
|
|
@@ -753,7 +752,7 @@ const fe = ({
|
|
|
753
752
|
const m = b();
|
|
754
753
|
if (a)
|
|
755
754
|
return null;
|
|
756
|
-
const
|
|
755
|
+
const p = V(M)({
|
|
757
756
|
width: "100%",
|
|
758
757
|
color: o ? "#359BCF" : m.palette.secondary.main,
|
|
759
758
|
backgroundColor: m.palette.background.paper,
|
|
@@ -767,7 +766,7 @@ const fe = ({
|
|
|
767
766
|
...n
|
|
768
767
|
});
|
|
769
768
|
return /* @__PURE__ */ t(
|
|
770
|
-
|
|
769
|
+
p,
|
|
771
770
|
{
|
|
772
771
|
"data-ui-test": o ? `primary-cta-${l.template}` : `secondary-cta-${l.template}`,
|
|
773
772
|
disabled: i,
|
|
@@ -801,9 +800,9 @@ const fe = ({
|
|
|
801
800
|
elementTag: o,
|
|
802
801
|
setRefs: n
|
|
803
802
|
}) => /* @__PURE__ */ t(
|
|
804
|
-
({ elementTag: s, children: m, ...
|
|
803
|
+
({ elementTag: s, children: m, ...p }) => {
|
|
805
804
|
const u = s;
|
|
806
|
-
return C.createElement(u,
|
|
805
|
+
return C.createElement(u, p, m);
|
|
807
806
|
},
|
|
808
807
|
{
|
|
809
808
|
"aria-hidden": l,
|
|
@@ -862,7 +861,7 @@ const fe = ({
|
|
|
862
861
|
onClose: o,
|
|
863
862
|
selectedRadio: n
|
|
864
863
|
}) => {
|
|
865
|
-
const d = b(), { cancelText: s, submitText: m } = l,
|
|
864
|
+
const d = b(), { cancelText: s, submitText: m } = l, p = V(M)({
|
|
866
865
|
backgroundColor: "transparent",
|
|
867
866
|
color: d.palette.primary.light,
|
|
868
867
|
fontSize: 15,
|
|
@@ -883,7 +882,7 @@ const fe = ({
|
|
|
883
882
|
width: "100%"
|
|
884
883
|
});
|
|
885
884
|
return /* @__PURE__ */ c(
|
|
886
|
-
|
|
885
|
+
h,
|
|
887
886
|
{
|
|
888
887
|
sx: {
|
|
889
888
|
display: "flex",
|
|
@@ -903,7 +902,7 @@ const fe = ({
|
|
|
903
902
|
}
|
|
904
903
|
),
|
|
905
904
|
/* @__PURE__ */ t(
|
|
906
|
-
|
|
905
|
+
p,
|
|
907
906
|
{
|
|
908
907
|
className: "mx-insights-beat-feedback-no-thanks-button",
|
|
909
908
|
"data-ui-test": "no-thanks-button",
|
|
@@ -916,7 +915,7 @@ const fe = ({
|
|
|
916
915
|
]
|
|
917
916
|
}
|
|
918
917
|
);
|
|
919
|
-
}, z1 = ({ bodyText: l }) => /* @__PURE__ */ t(
|
|
918
|
+
}, z1 = ({ bodyText: l }) => /* @__PURE__ */ t(h, { style: { padding: "8px 24px 8px 0px" }, children: /* @__PURE__ */ t(E, { "data-ui-test": "feedback-description", children: l }) }), F1 = ({
|
|
920
919
|
feedbackOptions: l,
|
|
921
920
|
groupAriaLabel: i,
|
|
922
921
|
selectedRadio: a,
|
|
@@ -929,7 +928,7 @@ const fe = ({
|
|
|
929
928
|
width: "100%"
|
|
930
929
|
},
|
|
931
930
|
children: /* @__PURE__ */ t(ce, { "aria-label": i, name: "radio-buttons-group", children: l.map((o, n) => /* @__PURE__ */ t(
|
|
932
|
-
|
|
931
|
+
h,
|
|
933
932
|
{
|
|
934
933
|
sx: (d) => ({
|
|
935
934
|
p: "24px 0px 23px 0px",
|
|
@@ -977,12 +976,12 @@ const fe = ({
|
|
|
977
976
|
setFeedbackMessage: s,
|
|
978
977
|
validateForm: m
|
|
979
978
|
}) => {
|
|
980
|
-
const
|
|
979
|
+
const p = he(me)({
|
|
981
980
|
height: 93,
|
|
982
981
|
resize: "none"
|
|
983
982
|
}), u = pe();
|
|
984
983
|
return /* @__PURE__ */ c(
|
|
985
|
-
|
|
984
|
+
h,
|
|
986
985
|
{
|
|
987
986
|
"aria-label": o,
|
|
988
987
|
sx: {
|
|
@@ -991,7 +990,7 @@ const fe = ({
|
|
|
991
990
|
},
|
|
992
991
|
children: [
|
|
993
992
|
/* @__PURE__ */ t(
|
|
994
|
-
|
|
993
|
+
p,
|
|
995
994
|
{
|
|
996
995
|
"aria-label": i,
|
|
997
996
|
"data-ui-test": "feedback-textarea",
|
|
@@ -1044,14 +1043,14 @@ const fe = ({
|
|
|
1044
1043
|
account2AltText: r,
|
|
1045
1044
|
success: o
|
|
1046
1045
|
}) => /* @__PURE__ */ t(
|
|
1047
|
-
|
|
1046
|
+
h,
|
|
1048
1047
|
{
|
|
1049
1048
|
sx: {
|
|
1050
1049
|
height: 128,
|
|
1051
1050
|
width: "100%"
|
|
1052
1051
|
},
|
|
1053
1052
|
children: /* @__PURE__ */ t(B, { children: ({ height: n, width: d }) => /* @__PURE__ */ c(
|
|
1054
|
-
|
|
1053
|
+
h,
|
|
1055
1054
|
{
|
|
1056
1055
|
sx: {
|
|
1057
1056
|
alignItems: "center",
|
|
@@ -1085,7 +1084,7 @@ const fe = ({
|
|
|
1085
1084
|
}
|
|
1086
1085
|
),
|
|
1087
1086
|
/* @__PURE__ */ c(
|
|
1088
|
-
|
|
1087
|
+
h,
|
|
1089
1088
|
{
|
|
1090
1089
|
sx: {
|
|
1091
1090
|
justifyContent: "center",
|
|
@@ -1167,7 +1166,7 @@ const fe = ({
|
|
|
1167
1166
|
noButtonText: d,
|
|
1168
1167
|
onClose: s,
|
|
1169
1168
|
sendResponseAnalytics: m,
|
|
1170
|
-
upperDescription:
|
|
1169
|
+
upperDescription: p,
|
|
1171
1170
|
upperList: u,
|
|
1172
1171
|
yesButtonText: g
|
|
1173
1172
|
}) => /* @__PURE__ */ t(
|
|
@@ -1185,8 +1184,8 @@ const fe = ({
|
|
|
1185
1184
|
backgroundColor: "background.paper"
|
|
1186
1185
|
}
|
|
1187
1186
|
},
|
|
1188
|
-
children: /* @__PURE__ */ t(A, { height: "100%", justifyContent: "space-between", children: /* @__PURE__ */ c(
|
|
1189
|
-
/* @__PURE__ */ t(
|
|
1187
|
+
children: /* @__PURE__ */ t(A, { height: "100%", justifyContent: "space-between", children: /* @__PURE__ */ c(h, { height: "100%", overflow: "auto", children: [
|
|
1188
|
+
/* @__PURE__ */ t(h, { sx: { p: "16px 24px", width: "100%" }, children: /* @__PURE__ */ t(
|
|
1190
1189
|
F,
|
|
1191
1190
|
{
|
|
1192
1191
|
"aria-label": "fake-close",
|
|
@@ -1198,10 +1197,10 @@ const fe = ({
|
|
|
1198
1197
|
}
|
|
1199
1198
|
) }),
|
|
1200
1199
|
/* @__PURE__ */ t(Ee, {}),
|
|
1201
|
-
/* @__PURE__ */ c(
|
|
1200
|
+
/* @__PURE__ */ c(h, { children: [
|
|
1202
1201
|
/* @__PURE__ */ t(j, { sx: { p: "16px 24px 8px 24px", whiteSpace: "wrap" }, children: i }),
|
|
1203
1202
|
/* @__PURE__ */ c(A, { sx: { gap: 12, px: 24 }, children: [
|
|
1204
|
-
/* @__PURE__ */ t(E, { color: "secondary", fontSize: 13, children:
|
|
1203
|
+
/* @__PURE__ */ t(E, { color: "secondary", fontSize: 13, children: p }),
|
|
1205
1204
|
/* @__PURE__ */ t(K, { children: u.map((x, L) => /* @__PURE__ */ c(
|
|
1206
1205
|
W,
|
|
1207
1206
|
{
|
|
@@ -1236,7 +1235,7 @@ const fe = ({
|
|
|
1236
1235
|
)) })
|
|
1237
1236
|
] })
|
|
1238
1237
|
] }),
|
|
1239
|
-
/* @__PURE__ */ c(
|
|
1238
|
+
/* @__PURE__ */ c(h, { children: [
|
|
1240
1239
|
/* @__PURE__ */ t(v, { bold: !0, fontSize: 15, sx: { p: "16px 24px 8px 24px" }, children: o }),
|
|
1241
1240
|
/* @__PURE__ */ t(E, { color: "secondary", fontSize: 13, sx: { mb: 16, mx: 24 }, children: r }),
|
|
1242
1241
|
/* @__PURE__ */ t(K, { sx: { p: "16px 24px" }, children: n.map((x, L) => /* @__PURE__ */ c(
|
|
@@ -1276,7 +1275,7 @@ const fe = ({
|
|
|
1276
1275
|
] }),
|
|
1277
1276
|
/* @__PURE__ */ c(A, { sx: { alignItems: "center", display: "flex", justifyContent: "center", pb: 16 }, children: [
|
|
1278
1277
|
/* @__PURE__ */ t(v, { bold: !0, sx: { p: "16px 24px 8px 24px" }, children: l }),
|
|
1279
|
-
/* @__PURE__ */ c(
|
|
1278
|
+
/* @__PURE__ */ c(h, { sx: { display: "flex", gap: 24, p: "12px 24px" }, children: [
|
|
1280
1279
|
/* @__PURE__ */ t(M, { color: "secondary", onClick: () => m("no"), sx: { p: 12 }, children: d }),
|
|
1281
1280
|
/* @__PURE__ */ t(
|
|
1282
1281
|
M,
|
|
@@ -1333,8 +1332,8 @@ const fe = ({
|
|
|
1333
1332
|
title: s,
|
|
1334
1333
|
totalSavedText: m
|
|
1335
1334
|
}) => {
|
|
1336
|
-
const
|
|
1337
|
-
return /* @__PURE__ */ t(z, { theme:
|
|
1335
|
+
const p = R(a ? "dark" : "light");
|
|
1336
|
+
return /* @__PURE__ */ t(z, { theme: p, children: /* @__PURE__ */ t(h, { className: "mx-insights-mefr-body", "data-ui-test": "mefr-body", sx: { mb: 16 }, children: /* @__PURE__ */ c(xe, { title: s, children: [
|
|
1338
1337
|
/* @__PURE__ */ t(
|
|
1339
1338
|
ge,
|
|
1340
1339
|
{
|
|
@@ -1343,7 +1342,7 @@ const fe = ({
|
|
|
1343
1342
|
}
|
|
1344
1343
|
),
|
|
1345
1344
|
/* @__PURE__ */ c(
|
|
1346
|
-
|
|
1345
|
+
h,
|
|
1347
1346
|
{
|
|
1348
1347
|
className: "mx-insights-mefr-body-content",
|
|
1349
1348
|
"data-ui-test": "mefr-body-content",
|
|
@@ -1445,7 +1444,7 @@ const fe = ({
|
|
|
1445
1444
|
isMini: d,
|
|
1446
1445
|
headerString: s,
|
|
1447
1446
|
rightLowerText: m,
|
|
1448
|
-
rightUpperText:
|
|
1447
|
+
rightUpperText: p
|
|
1449
1448
|
}) => {
|
|
1450
1449
|
const u = R(n ? "dark" : "light");
|
|
1451
1450
|
return /* @__PURE__ */ t(z, { theme: u, children: /* @__PURE__ */ t(
|
|
@@ -1459,7 +1458,7 @@ const fe = ({
|
|
|
1459
1458
|
leftLowerText: a,
|
|
1460
1459
|
leftUpperText: r,
|
|
1461
1460
|
rightLowerText: m,
|
|
1462
|
-
rightUpperText:
|
|
1461
|
+
rightUpperText: p
|
|
1463
1462
|
}
|
|
1464
1463
|
) });
|
|
1465
1464
|
}, T = ({ accountGuid: l, accountName: i }) => /* @__PURE__ */ c(
|
|
@@ -1472,7 +1471,7 @@ const fe = ({
|
|
|
1472
1471
|
},
|
|
1473
1472
|
children: [
|
|
1474
1473
|
/* @__PURE__ */ t(
|
|
1475
|
-
|
|
1474
|
+
h,
|
|
1476
1475
|
{
|
|
1477
1476
|
className: "mx-insights-sdd-account-image-container",
|
|
1478
1477
|
sx: { display: "flex", justifyContent: "center", width: "100%" },
|
|
@@ -1509,7 +1508,7 @@ const fe = ({
|
|
|
1509
1508
|
isComplete: d,
|
|
1510
1509
|
isDarkMode: s,
|
|
1511
1510
|
isMini: m,
|
|
1512
|
-
leftLowerText:
|
|
1511
|
+
leftLowerText: p,
|
|
1513
1512
|
leftUpperText: u,
|
|
1514
1513
|
rightLowerText: g,
|
|
1515
1514
|
rightUpperText: x,
|
|
@@ -1524,7 +1523,7 @@ const fe = ({
|
|
|
1524
1523
|
headerString: n,
|
|
1525
1524
|
isComplete: d,
|
|
1526
1525
|
isMini: m,
|
|
1527
|
-
leftLowerText:
|
|
1526
|
+
leftLowerText: p,
|
|
1528
1527
|
leftUpperText: u,
|
|
1529
1528
|
rightLowerText: g,
|
|
1530
1529
|
rightUpperText: x
|