@mx-cartographer/insights-ui 1.4.5-alpha.JB0 → 1.4.5-alpha.JB2
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 +59 -61
- 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,25 +234,23 @@ const fe = ({
|
|
|
234
234
|
rightLowerText: s,
|
|
235
235
|
rightUpperText: m
|
|
236
236
|
}) => {
|
|
237
|
-
const
|
|
238
|
-
containerHeight: n ? 140 :
|
|
237
|
+
const p = {
|
|
238
|
+
containerHeight: n ? 140 : 206,
|
|
239
239
|
logoSize: n ? 20 : 48,
|
|
240
240
|
card: {
|
|
241
241
|
gap: n ? 8 : 12
|
|
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: "206px", justifyContent: "center", width: "100%", children: /* @__PURE__ */ t(
|
|
246
|
+
h,
|
|
247
247
|
{
|
|
248
|
-
sx:
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
width: "-webkit-calc(100% - 64px)"
|
|
255
|
-
}),
|
|
248
|
+
sx: {
|
|
249
|
+
height: "100%",
|
|
250
|
+
padding: p.padding,
|
|
251
|
+
minWidth: 268,
|
|
252
|
+
width: "100%"
|
|
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,9 +286,8 @@ const fe = ({
|
|
|
288
286
|
display: "flex",
|
|
289
287
|
flexDirection: "column",
|
|
290
288
|
flexWrap: "wrap",
|
|
291
|
-
gap:
|
|
292
|
-
padding:
|
|
293
|
-
top: 24,
|
|
289
|
+
gap: p.card.gap,
|
|
290
|
+
padding: p.padding,
|
|
294
291
|
width: g
|
|
295
292
|
}),
|
|
296
293
|
children: [
|
|
@@ -310,7 +307,7 @@ const fe = ({
|
|
|
310
307
|
)
|
|
311
308
|
] }) })
|
|
312
309
|
}
|
|
313
|
-
);
|
|
310
|
+
) });
|
|
314
311
|
}, S1 = ({
|
|
315
312
|
boldText: l,
|
|
316
313
|
iconColor: i,
|
|
@@ -332,14 +329,14 @@ const fe = ({
|
|
|
332
329
|
children: l
|
|
333
330
|
}
|
|
334
331
|
), Ae = ({ accountGuid: l }) => /* @__PURE__ */ t(
|
|
335
|
-
|
|
332
|
+
h,
|
|
336
333
|
{
|
|
337
334
|
sx: {
|
|
338
335
|
display: "flex",
|
|
339
336
|
justifyContent: "center",
|
|
340
337
|
position: "absolute",
|
|
341
338
|
right: 0,
|
|
342
|
-
top:
|
|
339
|
+
top: 48,
|
|
343
340
|
width: "100%",
|
|
344
341
|
zIndex: 10
|
|
345
342
|
},
|
|
@@ -388,12 +385,13 @@ const fe = ({
|
|
|
388
385
|
rightLowerText: r,
|
|
389
386
|
rightUpperText: o
|
|
390
387
|
}) => /* @__PURE__ */ c(
|
|
391
|
-
|
|
388
|
+
h,
|
|
392
389
|
{
|
|
393
390
|
sx: {
|
|
394
391
|
display: "flex",
|
|
395
392
|
flexDirection: "row",
|
|
396
393
|
height: 58,
|
|
394
|
+
gap: 12,
|
|
397
395
|
width: "100%"
|
|
398
396
|
},
|
|
399
397
|
children: [
|
|
@@ -409,7 +407,7 @@ const fe = ({
|
|
|
409
407
|
]
|
|
410
408
|
}
|
|
411
409
|
), Me = ({ accountGuid: l, headerString: i }) => /* @__PURE__ */ c(
|
|
412
|
-
|
|
410
|
+
h,
|
|
413
411
|
{
|
|
414
412
|
"data-ui-test": "mx-insights-sudd-mini-body-header",
|
|
415
413
|
sx: { display: "flex", flexDirection: "row", gap: 8, justifyContent: "center" },
|
|
@@ -477,7 +475,7 @@ const fe = ({
|
|
|
477
475
|
button: l,
|
|
478
476
|
withFullWidthImage: i
|
|
479
477
|
}) => /* @__PURE__ */ t(
|
|
480
|
-
|
|
478
|
+
h,
|
|
481
479
|
{
|
|
482
480
|
className: "mx-insight-buttons",
|
|
483
481
|
"data-ui-test": "beat-button",
|
|
@@ -517,8 +515,8 @@ const fe = ({
|
|
|
517
515
|
if (!r.current) return;
|
|
518
516
|
const o = r.current, n = o.querySelectorAll(".Overlay");
|
|
519
517
|
["brand100", "brand200", "brand300", "brand400", "brand500"].forEach((s, m) => {
|
|
520
|
-
const
|
|
521
|
-
G(
|
|
518
|
+
const p = o.querySelectorAll(`.${s}`), u = (100 + m).toString();
|
|
519
|
+
G(p, w[u]);
|
|
522
520
|
}), G(n, w[300]);
|
|
523
521
|
}, [w]), /* @__PURE__ */ t(
|
|
524
522
|
"div",
|
|
@@ -753,7 +751,7 @@ const fe = ({
|
|
|
753
751
|
const m = b();
|
|
754
752
|
if (a)
|
|
755
753
|
return null;
|
|
756
|
-
const
|
|
754
|
+
const p = V(M)({
|
|
757
755
|
width: "100%",
|
|
758
756
|
color: o ? "#359BCF" : m.palette.secondary.main,
|
|
759
757
|
backgroundColor: m.palette.background.paper,
|
|
@@ -767,7 +765,7 @@ const fe = ({
|
|
|
767
765
|
...n
|
|
768
766
|
});
|
|
769
767
|
return /* @__PURE__ */ t(
|
|
770
|
-
|
|
768
|
+
p,
|
|
771
769
|
{
|
|
772
770
|
"data-ui-test": o ? `primary-cta-${l.template}` : `secondary-cta-${l.template}`,
|
|
773
771
|
disabled: i,
|
|
@@ -801,9 +799,9 @@ const fe = ({
|
|
|
801
799
|
elementTag: o,
|
|
802
800
|
setRefs: n
|
|
803
801
|
}) => /* @__PURE__ */ t(
|
|
804
|
-
({ elementTag: s, children: m, ...
|
|
802
|
+
({ elementTag: s, children: m, ...p }) => {
|
|
805
803
|
const u = s;
|
|
806
|
-
return C.createElement(u,
|
|
804
|
+
return C.createElement(u, p, m);
|
|
807
805
|
},
|
|
808
806
|
{
|
|
809
807
|
"aria-hidden": l,
|
|
@@ -862,7 +860,7 @@ const fe = ({
|
|
|
862
860
|
onClose: o,
|
|
863
861
|
selectedRadio: n
|
|
864
862
|
}) => {
|
|
865
|
-
const d = b(), { cancelText: s, submitText: m } = l,
|
|
863
|
+
const d = b(), { cancelText: s, submitText: m } = l, p = V(M)({
|
|
866
864
|
backgroundColor: "transparent",
|
|
867
865
|
color: d.palette.primary.light,
|
|
868
866
|
fontSize: 15,
|
|
@@ -883,7 +881,7 @@ const fe = ({
|
|
|
883
881
|
width: "100%"
|
|
884
882
|
});
|
|
885
883
|
return /* @__PURE__ */ c(
|
|
886
|
-
|
|
884
|
+
h,
|
|
887
885
|
{
|
|
888
886
|
sx: {
|
|
889
887
|
display: "flex",
|
|
@@ -903,7 +901,7 @@ const fe = ({
|
|
|
903
901
|
}
|
|
904
902
|
),
|
|
905
903
|
/* @__PURE__ */ t(
|
|
906
|
-
|
|
904
|
+
p,
|
|
907
905
|
{
|
|
908
906
|
className: "mx-insights-beat-feedback-no-thanks-button",
|
|
909
907
|
"data-ui-test": "no-thanks-button",
|
|
@@ -916,7 +914,7 @@ const fe = ({
|
|
|
916
914
|
]
|
|
917
915
|
}
|
|
918
916
|
);
|
|
919
|
-
}, z1 = ({ bodyText: l }) => /* @__PURE__ */ t(
|
|
917
|
+
}, 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
918
|
feedbackOptions: l,
|
|
921
919
|
groupAriaLabel: i,
|
|
922
920
|
selectedRadio: a,
|
|
@@ -929,7 +927,7 @@ const fe = ({
|
|
|
929
927
|
width: "100%"
|
|
930
928
|
},
|
|
931
929
|
children: /* @__PURE__ */ t(ce, { "aria-label": i, name: "radio-buttons-group", children: l.map((o, n) => /* @__PURE__ */ t(
|
|
932
|
-
|
|
930
|
+
h,
|
|
933
931
|
{
|
|
934
932
|
sx: (d) => ({
|
|
935
933
|
p: "24px 0px 23px 0px",
|
|
@@ -977,12 +975,12 @@ const fe = ({
|
|
|
977
975
|
setFeedbackMessage: s,
|
|
978
976
|
validateForm: m
|
|
979
977
|
}) => {
|
|
980
|
-
const
|
|
978
|
+
const p = he(me)({
|
|
981
979
|
height: 93,
|
|
982
980
|
resize: "none"
|
|
983
981
|
}), u = pe();
|
|
984
982
|
return /* @__PURE__ */ c(
|
|
985
|
-
|
|
983
|
+
h,
|
|
986
984
|
{
|
|
987
985
|
"aria-label": o,
|
|
988
986
|
sx: {
|
|
@@ -991,7 +989,7 @@ const fe = ({
|
|
|
991
989
|
},
|
|
992
990
|
children: [
|
|
993
991
|
/* @__PURE__ */ t(
|
|
994
|
-
|
|
992
|
+
p,
|
|
995
993
|
{
|
|
996
994
|
"aria-label": i,
|
|
997
995
|
"data-ui-test": "feedback-textarea",
|
|
@@ -1044,14 +1042,14 @@ const fe = ({
|
|
|
1044
1042
|
account2AltText: r,
|
|
1045
1043
|
success: o
|
|
1046
1044
|
}) => /* @__PURE__ */ t(
|
|
1047
|
-
|
|
1045
|
+
h,
|
|
1048
1046
|
{
|
|
1049
1047
|
sx: {
|
|
1050
1048
|
height: 128,
|
|
1051
1049
|
width: "100%"
|
|
1052
1050
|
},
|
|
1053
1051
|
children: /* @__PURE__ */ t(B, { children: ({ height: n, width: d }) => /* @__PURE__ */ c(
|
|
1054
|
-
|
|
1052
|
+
h,
|
|
1055
1053
|
{
|
|
1056
1054
|
sx: {
|
|
1057
1055
|
alignItems: "center",
|
|
@@ -1085,7 +1083,7 @@ const fe = ({
|
|
|
1085
1083
|
}
|
|
1086
1084
|
),
|
|
1087
1085
|
/* @__PURE__ */ c(
|
|
1088
|
-
|
|
1086
|
+
h,
|
|
1089
1087
|
{
|
|
1090
1088
|
sx: {
|
|
1091
1089
|
justifyContent: "center",
|
|
@@ -1167,7 +1165,7 @@ const fe = ({
|
|
|
1167
1165
|
noButtonText: d,
|
|
1168
1166
|
onClose: s,
|
|
1169
1167
|
sendResponseAnalytics: m,
|
|
1170
|
-
upperDescription:
|
|
1168
|
+
upperDescription: p,
|
|
1171
1169
|
upperList: u,
|
|
1172
1170
|
yesButtonText: g
|
|
1173
1171
|
}) => /* @__PURE__ */ t(
|
|
@@ -1185,8 +1183,8 @@ const fe = ({
|
|
|
1185
1183
|
backgroundColor: "background.paper"
|
|
1186
1184
|
}
|
|
1187
1185
|
},
|
|
1188
|
-
children: /* @__PURE__ */ t(A, { height: "100%", justifyContent: "space-between", children: /* @__PURE__ */ c(
|
|
1189
|
-
/* @__PURE__ */ t(
|
|
1186
|
+
children: /* @__PURE__ */ t(A, { height: "100%", justifyContent: "space-between", children: /* @__PURE__ */ c(h, { height: "100%", overflow: "auto", children: [
|
|
1187
|
+
/* @__PURE__ */ t(h, { sx: { p: "16px 24px", width: "100%" }, children: /* @__PURE__ */ t(
|
|
1190
1188
|
F,
|
|
1191
1189
|
{
|
|
1192
1190
|
"aria-label": "fake-close",
|
|
@@ -1198,10 +1196,10 @@ const fe = ({
|
|
|
1198
1196
|
}
|
|
1199
1197
|
) }),
|
|
1200
1198
|
/* @__PURE__ */ t(Ee, {}),
|
|
1201
|
-
/* @__PURE__ */ c(
|
|
1199
|
+
/* @__PURE__ */ c(h, { children: [
|
|
1202
1200
|
/* @__PURE__ */ t(j, { sx: { p: "16px 24px 8px 24px", whiteSpace: "wrap" }, children: i }),
|
|
1203
1201
|
/* @__PURE__ */ c(A, { sx: { gap: 12, px: 24 }, children: [
|
|
1204
|
-
/* @__PURE__ */ t(E, { color: "secondary", fontSize: 13, children:
|
|
1202
|
+
/* @__PURE__ */ t(E, { color: "secondary", fontSize: 13, children: p }),
|
|
1205
1203
|
/* @__PURE__ */ t(K, { children: u.map((x, L) => /* @__PURE__ */ c(
|
|
1206
1204
|
W,
|
|
1207
1205
|
{
|
|
@@ -1236,7 +1234,7 @@ const fe = ({
|
|
|
1236
1234
|
)) })
|
|
1237
1235
|
] })
|
|
1238
1236
|
] }),
|
|
1239
|
-
/* @__PURE__ */ c(
|
|
1237
|
+
/* @__PURE__ */ c(h, { children: [
|
|
1240
1238
|
/* @__PURE__ */ t(v, { bold: !0, fontSize: 15, sx: { p: "16px 24px 8px 24px" }, children: o }),
|
|
1241
1239
|
/* @__PURE__ */ t(E, { color: "secondary", fontSize: 13, sx: { mb: 16, mx: 24 }, children: r }),
|
|
1242
1240
|
/* @__PURE__ */ t(K, { sx: { p: "16px 24px" }, children: n.map((x, L) => /* @__PURE__ */ c(
|
|
@@ -1276,7 +1274,7 @@ const fe = ({
|
|
|
1276
1274
|
] }),
|
|
1277
1275
|
/* @__PURE__ */ c(A, { sx: { alignItems: "center", display: "flex", justifyContent: "center", pb: 16 }, children: [
|
|
1278
1276
|
/* @__PURE__ */ t(v, { bold: !0, sx: { p: "16px 24px 8px 24px" }, children: l }),
|
|
1279
|
-
/* @__PURE__ */ c(
|
|
1277
|
+
/* @__PURE__ */ c(h, { sx: { display: "flex", gap: 24, p: "12px 24px" }, children: [
|
|
1280
1278
|
/* @__PURE__ */ t(M, { color: "secondary", onClick: () => m("no"), sx: { p: 12 }, children: d }),
|
|
1281
1279
|
/* @__PURE__ */ t(
|
|
1282
1280
|
M,
|
|
@@ -1333,8 +1331,8 @@ const fe = ({
|
|
|
1333
1331
|
title: s,
|
|
1334
1332
|
totalSavedText: m
|
|
1335
1333
|
}) => {
|
|
1336
|
-
const
|
|
1337
|
-
return /* @__PURE__ */ t(z, { theme:
|
|
1334
|
+
const p = R(a ? "dark" : "light");
|
|
1335
|
+
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
1336
|
/* @__PURE__ */ t(
|
|
1339
1337
|
ge,
|
|
1340
1338
|
{
|
|
@@ -1343,7 +1341,7 @@ const fe = ({
|
|
|
1343
1341
|
}
|
|
1344
1342
|
),
|
|
1345
1343
|
/* @__PURE__ */ c(
|
|
1346
|
-
|
|
1344
|
+
h,
|
|
1347
1345
|
{
|
|
1348
1346
|
className: "mx-insights-mefr-body-content",
|
|
1349
1347
|
"data-ui-test": "mefr-body-content",
|
|
@@ -1445,7 +1443,7 @@ const fe = ({
|
|
|
1445
1443
|
isMini: d,
|
|
1446
1444
|
headerString: s,
|
|
1447
1445
|
rightLowerText: m,
|
|
1448
|
-
rightUpperText:
|
|
1446
|
+
rightUpperText: p
|
|
1449
1447
|
}) => {
|
|
1450
1448
|
const u = R(n ? "dark" : "light");
|
|
1451
1449
|
return /* @__PURE__ */ t(z, { theme: u, children: /* @__PURE__ */ t(
|
|
@@ -1459,7 +1457,7 @@ const fe = ({
|
|
|
1459
1457
|
leftLowerText: a,
|
|
1460
1458
|
leftUpperText: r,
|
|
1461
1459
|
rightLowerText: m,
|
|
1462
|
-
rightUpperText:
|
|
1460
|
+
rightUpperText: p
|
|
1463
1461
|
}
|
|
1464
1462
|
) });
|
|
1465
1463
|
}, T = ({ accountGuid: l, accountName: i }) => /* @__PURE__ */ c(
|
|
@@ -1472,7 +1470,7 @@ const fe = ({
|
|
|
1472
1470
|
},
|
|
1473
1471
|
children: [
|
|
1474
1472
|
/* @__PURE__ */ t(
|
|
1475
|
-
|
|
1473
|
+
h,
|
|
1476
1474
|
{
|
|
1477
1475
|
className: "mx-insights-sdd-account-image-container",
|
|
1478
1476
|
sx: { display: "flex", justifyContent: "center", width: "100%" },
|
|
@@ -1509,7 +1507,7 @@ const fe = ({
|
|
|
1509
1507
|
isComplete: d,
|
|
1510
1508
|
isDarkMode: s,
|
|
1511
1509
|
isMini: m,
|
|
1512
|
-
leftLowerText:
|
|
1510
|
+
leftLowerText: p,
|
|
1513
1511
|
leftUpperText: u,
|
|
1514
1512
|
rightLowerText: g,
|
|
1515
1513
|
rightUpperText: x,
|
|
@@ -1524,7 +1522,7 @@ const fe = ({
|
|
|
1524
1522
|
headerString: n,
|
|
1525
1523
|
isComplete: d,
|
|
1526
1524
|
isMini: m,
|
|
1527
|
-
leftLowerText:
|
|
1525
|
+
leftLowerText: p,
|
|
1528
1526
|
leftUpperText: u,
|
|
1529
1527
|
rightLowerText: g,
|
|
1530
1528
|
rightUpperText: x
|