@mxenabled/mxui 1.5.2 → 1.6.0-alpha.2
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 +120 -116
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { jsx as a, jsxs as x } from "react/jsx-runtime";
|
|
2
2
|
import C from "react";
|
|
3
|
-
import
|
|
3
|
+
import F from "@mui/material/Stack";
|
|
4
4
|
import { useTheme as H, createTheme as j } from "@mui/material/styles";
|
|
5
5
|
import { Icon as de, Close as ue } from "@mxenabled/mx-icons";
|
|
6
|
-
import { endOfMonth as
|
|
6
|
+
import { endOfMonth as U } from "date-fns/endOfMonth";
|
|
7
7
|
import { endOfYear as pe } from "date-fns/endOfYear";
|
|
8
8
|
import { startOfToday as he } from "date-fns/startOfToday";
|
|
9
9
|
import { startOfMonth as W } from "date-fns/startOfMonth";
|
|
10
10
|
import { startOfYear as Z } from "date-fns/startOfYear";
|
|
11
|
-
import { subDays as
|
|
11
|
+
import { subDays as Y } from "date-fns/subDays";
|
|
12
12
|
import { subMonths as ge } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as fe } from "date-fns/subYears";
|
|
14
14
|
import me from "@mui/material/useMediaQuery";
|
|
@@ -26,9 +26,9 @@ import Ee from "@mui/material/TextField";
|
|
|
26
26
|
import Se from "@mui/material/Snackbar";
|
|
27
27
|
import Ie from "@mui/material/Alert";
|
|
28
28
|
import { light as ee, buildTheme as z, dark as ve } from "@mxenabled/design-tokens";
|
|
29
|
-
import { Paper as He, Box as
|
|
30
|
-
import { circularProgressClasses as
|
|
31
|
-
import { LicenseInfo as
|
|
29
|
+
import { Paper as He, Box as X, Typography as K, Radio as D, Checkbox as ye, alpha as b, darken as N, lighten as y, getContrastRatio as Oe } from "@mui/material";
|
|
30
|
+
import { circularProgressClasses as Fe } from "@mui/material/CircularProgress";
|
|
31
|
+
import { LicenseInfo as ke } from "@mui/x-license-pro";
|
|
32
32
|
const f = ({
|
|
33
33
|
children: e,
|
|
34
34
|
height: o,
|
|
@@ -48,7 +48,7 @@ const f = ({
|
|
|
48
48
|
children: e
|
|
49
49
|
}
|
|
50
50
|
);
|
|
51
|
-
var
|
|
51
|
+
var Le = /* @__PURE__ */ ((e) => (e[e.Lighter = 100] = "Lighter", e[e.Light = 200] = "Light", e[e.Normal = 300] = "Normal", e[e.Dark = 400] = "Dark", e[e.Darker = 500] = "Darker", e))(Le || {});
|
|
52
52
|
const M = ({
|
|
53
53
|
color: e,
|
|
54
54
|
fill: o = !1,
|
|
@@ -68,7 +68,7 @@ const M = ({
|
|
|
68
68
|
weight: d,
|
|
69
69
|
...c
|
|
70
70
|
}
|
|
71
|
-
),
|
|
71
|
+
), S0 = ({
|
|
72
72
|
color: e = "currentColor",
|
|
73
73
|
...o
|
|
74
74
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -77,7 +77,7 @@ const M = ({
|
|
|
77
77
|
d: "M2.24801 6.76647H0.573286C0.327604 6.76647 0.110586 6.60678 0.0327867 6.37748C-0.0450124 6.14408 0.0327866 5.88612 0.229332 5.73871L7.6571 0.116699C7.85774 -0.0388996 8.14027 -0.0388996 8.34501 0.116699L15.7728 5.73871C15.9693 5.89021 16.0471 6.14408 15.9693 6.37748C15.8915 6.61088 15.6745 6.76647 15.4288 6.76647H13.7582V12.323H14.3929C14.7122 12.323 14.9661 12.5809 14.9661 12.8962C14.9661 13.2156 14.7082 13.4695 14.3929 13.4695H1.60924C1.28986 13.4695 1.03599 13.2115 1.03599 12.8962C1.03599 12.5768 1.29395 12.323 1.60924 12.323H2.24801V6.76647ZM5.70393 6.76647H3.39043V12.323H5.70393V6.76647ZM9.15985 12.323V6.76647H6.84635V12.323H9.15985ZM10.3023 12.3189H12.6158V6.76647H10.3023V12.3189ZM0.573256 14.8535H15.4288C15.7441 14.8535 15.998 15.1115 15.998 15.4267C15.998 15.7461 15.74 16 15.4247 16H0.573256C0.253871 16 0 15.742 0 15.4267C0 15.1074 0.257965 14.8535 0.573256 14.8535Z",
|
|
78
78
|
fill: e
|
|
79
79
|
}
|
|
80
|
-
) })),
|
|
80
|
+
) })), I0 = ({
|
|
81
81
|
color: e = "currentColor",
|
|
82
82
|
...o
|
|
83
83
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -86,7 +86,7 @@ const M = ({
|
|
|
86
86
|
d: "M15.429 14.854H.573a.572.572 0 100 1.146h14.852a.572.572 0 00.004-1.146zM.573 6.766h1.675v5.557h-.639a.572.572 0 100 1.146h12.784a.572.572 0 100-1.146h-.635V6.766h1.67a.568.568 0 00.541-.389.574.574 0 00-.196-.638L8.345.117a.565.565 0 00-.688 0L.23 5.739a.572.572 0 00.344 1.027zm2.817 0h2.314v5.557H3.39V6.766zm5.77 0v5.557H6.846V6.766H9.16zm3.456 5.553h-2.314V6.766h2.314v5.553zM8 1.288l5.724 4.336H2.277L8 1.288z",
|
|
87
87
|
fill: e
|
|
88
88
|
}
|
|
89
|
-
) })),
|
|
89
|
+
) })), v0 = ({
|
|
90
90
|
color: e = "currentColor",
|
|
91
91
|
...o
|
|
92
92
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -95,7 +95,7 @@ const M = ({
|
|
|
95
95
|
d: "M5.854 3.133a.426.426 0 010 .643L1.757 7.5h13.774c.26 0 .469.224.469.5s-.21.5-.469.5H1.757l4.097 3.724a.426.426 0 010 .643.536.536 0 01-.708 0l-5-4.546a.426.426 0 010-.642l5-4.546a.536.536 0 01.708 0z",
|
|
96
96
|
fill: e
|
|
97
97
|
}
|
|
98
|
-
) })),
|
|
98
|
+
) })), H0 = ({
|
|
99
99
|
color: e = "currentColor",
|
|
100
100
|
...o
|
|
101
101
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -106,7 +106,7 @@ const M = ({
|
|
|
106
106
|
fill: e,
|
|
107
107
|
fillRule: "evenodd"
|
|
108
108
|
}
|
|
109
|
-
) })),
|
|
109
|
+
) })), y0 = ({
|
|
110
110
|
color: e = "currentColor",
|
|
111
111
|
...o
|
|
112
112
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -115,7 +115,7 @@ const M = ({
|
|
|
115
115
|
d: "M11.5 0a.5.5 0 01.5.5V2h2.5A1.5 1.5 0 0116 3.5v11a1.5 1.5 0 01-1.5 1.5h-13A1.5 1.5 0 010 14.5v-11A1.5 1.5 0 011.5 2H4V.5a.5.5 0 011 0V2h6V.5a.5.5 0 01.5-.5zM15 6H1v8.5a.5.5 0 00.5.5h13a.5.5 0 00.5-.5V6zm-4.5 1a.5.5 0 01.5.5V10h2.5a.5.5 0 010 1H11v2.5a.5.5 0 01-1 0V11H6v2.5a.5.5 0 01-1 0V11H2.5a.5.5 0 010-1H5V7.5a.5.5 0 011 0V10h4V7.5a.5.5 0 01.5-.5zm4-4h-13a.5.5 0 00-.5.5V5h14V3.5a.5.5 0 00-.5-.5z",
|
|
116
116
|
fill: e
|
|
117
117
|
}
|
|
118
|
-
) })),
|
|
118
|
+
) })), O0 = ({
|
|
119
119
|
color: e = "currentColor",
|
|
120
120
|
...o
|
|
121
121
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -133,7 +133,7 @@ const M = ({
|
|
|
133
133
|
d: "M2.68 5.201a.6.6 0 01.848-.011L8 9.543l4.472-4.353a.6.6 0 11.837.86l-4.89 4.76a.6.6 0 01-.838 0l-4.89-4.76a.6.6 0 01-.012-.849z",
|
|
134
134
|
fill: e
|
|
135
135
|
}
|
|
136
|
-
) })),
|
|
136
|
+
) })), k0 = ({
|
|
137
137
|
color: e = "currentColor",
|
|
138
138
|
...o
|
|
139
139
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -151,7 +151,7 @@ const M = ({
|
|
|
151
151
|
d: "M5.207 13.32a.6.6 0 01-.012-.848L9.55 8 5.195 3.528a.6.6 0 11.86-.837l4.76 4.89a.6.6 0 010 .838l-4.76 4.89a.6.6 0 01-.848.012z",
|
|
152
152
|
fill: e
|
|
153
153
|
}
|
|
154
|
-
) })),
|
|
154
|
+
) })), D0 = ({
|
|
155
155
|
color: e = "currentColor",
|
|
156
156
|
...o
|
|
157
157
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -160,7 +160,7 @@ const M = ({
|
|
|
160
160
|
d: "M13.79 2.21a.72.72 0 0 1 0 1.02L9.018 8l4.77 4.77a.72.72 0 1 1-1.018 1.02L8 9.018l-4.77 4.77a.72.72 0 1 1-1.02-1.018L6.982 8l-4.77-4.77A.72.72 0 0 1 3.23 2.21L8 6.982l4.77-4.77a.72.72 0 0 1 1.02 0Z",
|
|
161
161
|
fill: e
|
|
162
162
|
}
|
|
163
|
-
) })),
|
|
163
|
+
) })), N0 = ({
|
|
164
164
|
color: e = "currentColor",
|
|
165
165
|
...o
|
|
166
166
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -169,7 +169,7 @@ const M = ({
|
|
|
169
169
|
d: "M12.644.156l3.2 3.2a.533.533 0 010 .754L5.177 14.777a.534.534 0 01-.247.14L.663 15.984a.533.533 0 01-.647-.647l1.067-4.267a.534.534 0 01.14-.248L11.89.156a.533.533 0 01.754 0zM10.133 3.42l-8.051 8.052-.815 3.261 3.26-.815 8.052-8.052-2.446-2.446zm2.134-2.132l-1.38 1.378 2.446 2.446 1.38-1.379-2.446-2.445z",
|
|
170
170
|
fill: e
|
|
171
171
|
}
|
|
172
|
-
) })),
|
|
172
|
+
) })), w0 = ({
|
|
173
173
|
color: e = "currentColor",
|
|
174
174
|
...o
|
|
175
175
|
}) => (console.warn('<AccountsFilledIcon /> DEPRECATED - use <Icon name="icon_name" />'), /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -187,7 +187,7 @@ const M = ({
|
|
|
187
187
|
d: "M1.317 2.317a4.5 4.5 0 016.364 0c.117.117.223.238.32.363.095-.124.2-.245.316-.362a4.5 4.5 0 016.364 6.364l-.004.004-6.328 6.172a.5.5 0 01-.698 0L1.317 8.682a4.5 4.5 0 010-6.365zm5.657.708a3.5 3.5 0 00-4.952 4.947L8 13.802l5.977-5.83a3.5 3.5 0 00-4.952-4.947c-.235.235-.42.51-.586.815a.5.5 0 01-.878 0 3.46 3.46 0 00-.587-.815z",
|
|
188
188
|
fill: e
|
|
189
189
|
}
|
|
190
|
-
) })),
|
|
190
|
+
) })), _0 = ({
|
|
191
191
|
color: e = "currentColor",
|
|
192
192
|
...o
|
|
193
193
|
}) => /* @__PURE__ */ x(f, { ...o, children: [
|
|
@@ -205,7 +205,7 @@ const M = ({
|
|
|
205
205
|
fill: e
|
|
206
206
|
}
|
|
207
207
|
)
|
|
208
|
-
] }),
|
|
208
|
+
] }), B0 = ({
|
|
209
209
|
color: e = "currentColor",
|
|
210
210
|
...o
|
|
211
211
|
}) => /* @__PURE__ */ x(f, { ...o, children: [
|
|
@@ -241,7 +241,7 @@ const M = ({
|
|
|
241
241
|
fillRule: "evenodd"
|
|
242
242
|
}
|
|
243
243
|
)
|
|
244
|
-
] }),
|
|
244
|
+
] }), z0 = ({
|
|
245
245
|
color: e = "currentColor",
|
|
246
246
|
...o
|
|
247
247
|
}) => /* @__PURE__ */ a(f, { ...o, children: /* @__PURE__ */ a(
|
|
@@ -252,7 +252,7 @@ const M = ({
|
|
|
252
252
|
fill: e,
|
|
253
253
|
fillRule: "evenodd"
|
|
254
254
|
}
|
|
255
|
-
) }),
|
|
255
|
+
) }), V0 = ({
|
|
256
256
|
color: e = "currentColor",
|
|
257
257
|
...o
|
|
258
258
|
}) => /* @__PURE__ */ x(f, { ...o, children: [
|
|
@@ -280,7 +280,7 @@ const M = ({
|
|
|
280
280
|
}
|
|
281
281
|
)
|
|
282
282
|
] });
|
|
283
|
-
var g = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(g || {}),
|
|
283
|
+
var g = /* @__PURE__ */ ((e) => (e.AutoTransport = "CAT-7829f71c-2e8c-afa5-2f55-fa3634b89874", e.BillsUtilities = "CAT-79b02f2f-2adc-88f0-ac2b-4e71ead9cfc8", e.BusinessServices = "CAT-94b11142-e97b-941a-f67f-6e18d246a23f", e.Education = "CAT-bf5c9cca-c96b-b50d-440d-38d9adfda5b0", e.Entertainment = "CAT-e04e9d1e-e041-c315-2e50-094143ab3f73", e.FeesCharges = "CAT-d73ee74b-13a4-ac3e-4015-fc4ba9a62b2a", e.Financial = "CAT-6c7de3f8-de6c-7061-1dd2-b093044014bf", e.FoodDining = "CAT-bd56d35a-a9a7-6e10-66c1-5b9cc1b6c81a", e.GiftsDonations = "CAT-8edf9663-623e-4735-490e-31288f0a70b0", e.HealthFitness = "CAT-52fa4693-c088-afb2-2a99-7bc39bb23a0f", e.Home = "CAT-b709172b-4eb7-318e-3b5d-e0f0500b32ac", e.Income = "CAT-bf9f3294-4c40-1677-d269-54fbc189faf3", e.Investments = "CAT-ccd42390-9e8c-3fb6-a5d9-6c31182d9c5c", e.Kids = "CAT-0cb1d99d-f558-99e3-2282-b31f359b411a", e.PersonalCare = "CAT-e5154228-fe45-790d-a280-f6bf5ae5ac9f", e.Pets = "CAT-7cccbafa-87d7-c9a6-661b-8b3402fe9e78", e.Shopping = "CAT-aad51b46-d6f7-3da5-fd6e-492328b3023f", e.Taxes = "CAT-d00fc539-aa14-009b-4ffb-7e8c7b839954", e.Transfer = "CAT-bce48142-fea4-ff45-20d9-0a642d44de83", e.Travel = "CAT-ea23d844-cbd1-eb10-f6ac-0df9610e59ae", e.Uncategorized = "CAT-d7851c65-3353-e490-1953-fb9235e681e4", e))(g || {}), De = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(De || {});
|
|
284
284
|
const oe = {
|
|
285
285
|
guid: g.Uncategorized,
|
|
286
286
|
colorName: "uncategorized",
|
|
@@ -387,7 +387,7 @@ const oe = {
|
|
|
387
387
|
icon: "airplane_ticket"
|
|
388
388
|
},
|
|
389
389
|
oe
|
|
390
|
-
], we = 0.625,
|
|
390
|
+
], we = 0.625, Pe = ({
|
|
391
391
|
categoryGuid: e,
|
|
392
392
|
icon_ratio: o = we,
|
|
393
393
|
size: i = 32,
|
|
@@ -399,7 +399,7 @@ const oe = {
|
|
|
399
399
|
[e]
|
|
400
400
|
), l = d.palette.categories[c.colorName];
|
|
401
401
|
return /* @__PURE__ */ a(
|
|
402
|
-
|
|
402
|
+
F,
|
|
403
403
|
{
|
|
404
404
|
alignItems: "center",
|
|
405
405
|
bgcolor: () => {
|
|
@@ -418,7 +418,7 @@ const oe = {
|
|
|
418
418
|
children: /* @__PURE__ */ a(M, { name: c.icon, size: i * o })
|
|
419
419
|
}
|
|
420
420
|
);
|
|
421
|
-
},
|
|
421
|
+
}, _e = ({
|
|
422
422
|
items: e,
|
|
423
423
|
onChange: o,
|
|
424
424
|
isValid: i,
|
|
@@ -462,7 +462,7 @@ const oe = {
|
|
|
462
462
|
},
|
|
463
463
|
c.label
|
|
464
464
|
)) }) });
|
|
465
|
-
},
|
|
465
|
+
}, G0 = ({
|
|
466
466
|
copy: e,
|
|
467
467
|
dateRange: o,
|
|
468
468
|
onRangeChanged: i,
|
|
@@ -474,19 +474,19 @@ const oe = {
|
|
|
474
474
|
return [
|
|
475
475
|
{
|
|
476
476
|
label: e.dateRangeThisMonth,
|
|
477
|
-
getValue: () => [W(t),
|
|
477
|
+
getValue: () => [W(t), U(t)]
|
|
478
478
|
},
|
|
479
479
|
{
|
|
480
480
|
label: e.dateRangeLastMonth,
|
|
481
|
-
getValue: () => [W(u),
|
|
481
|
+
getValue: () => [W(u), U(u)]
|
|
482
482
|
},
|
|
483
483
|
{
|
|
484
484
|
label: e.dateRangeLast30Days,
|
|
485
|
-
getValue: () => [
|
|
485
|
+
getValue: () => [Y(t, 30), t]
|
|
486
486
|
},
|
|
487
487
|
{
|
|
488
488
|
label: e.dateRangeLast90Days,
|
|
489
|
-
getValue: () => [
|
|
489
|
+
getValue: () => [Y(t, 90), t]
|
|
490
490
|
},
|
|
491
491
|
{
|
|
492
492
|
label: e.dateRangeYTD,
|
|
@@ -505,7 +505,7 @@ const oe = {
|
|
|
505
505
|
const T = u.shortcut;
|
|
506
506
|
i?.(t, T ? T.label : e.dateRangeCustom);
|
|
507
507
|
};
|
|
508
|
-
return /* @__PURE__ */ a(
|
|
508
|
+
return /* @__PURE__ */ a(F, { gap: 16, m: 8, children: /* @__PURE__ */ a(be, { dateAdapter: Ce, children: /* @__PURE__ */ a(
|
|
509
509
|
Te,
|
|
510
510
|
{
|
|
511
511
|
calendars: 1,
|
|
@@ -527,7 +527,7 @@ const oe = {
|
|
|
527
527
|
},
|
|
528
528
|
slots: {
|
|
529
529
|
leftArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_left", size: 28 }),
|
|
530
|
-
shortcuts: (t) => /* @__PURE__ */ a(
|
|
530
|
+
shortcuts: (t) => /* @__PURE__ */ a(_e, { selected: n, ...t }),
|
|
531
531
|
rightArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_right", size: 28 })
|
|
532
532
|
},
|
|
533
533
|
sx: { ...r },
|
|
@@ -546,7 +546,7 @@ const oe = {
|
|
|
546
546
|
secondaryColor: c = "primary",
|
|
547
547
|
secondaryText: l = "Cancel"
|
|
548
548
|
}) => /* @__PURE__ */ x(
|
|
549
|
-
|
|
549
|
+
F,
|
|
550
550
|
{
|
|
551
551
|
direction: "row",
|
|
552
552
|
gap: 16,
|
|
@@ -574,7 +574,7 @@ const oe = {
|
|
|
574
574
|
)
|
|
575
575
|
]
|
|
576
576
|
}
|
|
577
|
-
),
|
|
577
|
+
), k = ({
|
|
578
578
|
bold: e,
|
|
579
579
|
className: o = "",
|
|
580
580
|
children: i,
|
|
@@ -639,8 +639,8 @@ const oe = {
|
|
|
639
639
|
children: i
|
|
640
640
|
}
|
|
641
641
|
);
|
|
642
|
-
}, ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(
|
|
643
|
-
|
|
642
|
+
}, ze = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "h1", ...i, children: o }), U0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "h2", ...i, children: o }), W0 = ({ className: e = "", children: o, ...i }) => /* @__PURE__ */ a(k, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "h3", ...i, children: o }), Z0 = ({ className: e = "", children: o, truncate: i, ...n }) => /* @__PURE__ */ a(
|
|
643
|
+
k,
|
|
644
644
|
{
|
|
645
645
|
className: `mx-kmui-text p ${e}`,
|
|
646
646
|
component: "p",
|
|
@@ -650,7 +650,7 @@ const oe = {
|
|
|
650
650
|
children: o
|
|
651
651
|
}
|
|
652
652
|
), Y0 = ({ copy: e, onClose: o }) => /* @__PURE__ */ x(
|
|
653
|
-
|
|
653
|
+
F,
|
|
654
654
|
{
|
|
655
655
|
sx: {
|
|
656
656
|
alignItems: "center",
|
|
@@ -699,7 +699,7 @@ const oe = {
|
|
|
699
699
|
)
|
|
700
700
|
]
|
|
701
701
|
}
|
|
702
|
-
), re = 32, V = "https://content.moneydesktop.com/storage/MD_Assets", Ve = `${V}/serenity/default_institution_logo.png`,
|
|
702
|
+
), re = 32, V = "https://content.moneydesktop.com/storage/MD_Assets", Ve = `${V}/serenity/default_institution_logo.png`, K0 = ({
|
|
703
703
|
alt: e,
|
|
704
704
|
institutionGuid: o,
|
|
705
705
|
logoUrl: i,
|
|
@@ -718,7 +718,7 @@ const oe = {
|
|
|
718
718
|
width: n,
|
|
719
719
|
...r
|
|
720
720
|
}
|
|
721
|
-
),
|
|
721
|
+
), j0 = ({
|
|
722
722
|
alt: e = "",
|
|
723
723
|
categoryGuid: o,
|
|
724
724
|
merchantGuid: i,
|
|
@@ -744,9 +744,9 @@ const oe = {
|
|
|
744
744
|
width: n
|
|
745
745
|
}
|
|
746
746
|
),
|
|
747
|
-
/* @__PURE__ */ a(
|
|
747
|
+
/* @__PURE__ */ a(Pe, { categoryGuid: o, size: n })
|
|
748
748
|
] });
|
|
749
|
-
},
|
|
749
|
+
}, Q0 = ({
|
|
750
750
|
disabled: e = !1,
|
|
751
751
|
label: o = "",
|
|
752
752
|
shrink: i = !0,
|
|
@@ -767,7 +767,7 @@ const oe = {
|
|
|
767
767
|
function Ge(e) {
|
|
768
768
|
return /* @__PURE__ */ a(J, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
769
769
|
}
|
|
770
|
-
const
|
|
770
|
+
const J0 = ({
|
|
771
771
|
open: e,
|
|
772
772
|
handleClose: o,
|
|
773
773
|
message: i,
|
|
@@ -780,8 +780,8 @@ const q0 = ({
|
|
|
780
780
|
onActionClick: t,
|
|
781
781
|
multiLine: u = !1
|
|
782
782
|
}) => {
|
|
783
|
-
const T = H(),
|
|
784
|
-
|
|
783
|
+
const T = H(), L = /* @__PURE__ */ x(
|
|
784
|
+
F,
|
|
785
785
|
{
|
|
786
786
|
alignItems: u ? "flex-end" : "center",
|
|
787
787
|
direction: u ? "column-reverse" : "row",
|
|
@@ -831,7 +831,7 @@ const q0 = ({
|
|
|
831
831
|
children: /* @__PURE__ */ a(
|
|
832
832
|
Ie,
|
|
833
833
|
{
|
|
834
|
-
action:
|
|
834
|
+
action: L,
|
|
835
835
|
severity: r,
|
|
836
836
|
sx: {
|
|
837
837
|
display: "flex",
|
|
@@ -854,7 +854,7 @@ const q0 = ({
|
|
|
854
854
|
},
|
|
855
855
|
variant: "filled",
|
|
856
856
|
children: /* @__PURE__ */ a(
|
|
857
|
-
|
|
857
|
+
k,
|
|
858
858
|
{
|
|
859
859
|
sx: {
|
|
860
860
|
lineHeight: T.typography.body1.lineHeight,
|
|
@@ -874,29 +874,29 @@ const q0 = ({
|
|
|
874
874
|
REACT: "react",
|
|
875
875
|
REACT_NATIVE: "react_native",
|
|
876
876
|
NATIVE: "native"
|
|
877
|
-
},
|
|
877
|
+
}, P = {
|
|
878
878
|
LIGHT: "light",
|
|
879
879
|
DARK: "dark"
|
|
880
880
|
}, te = C.createContext(ee), ie = C.createContext(
|
|
881
|
-
z(
|
|
882
|
-
),
|
|
881
|
+
z(P.LIGHT, O.REACT_NATIVE)
|
|
882
|
+
), q0 = ({
|
|
883
883
|
children: e,
|
|
884
884
|
target: o = O.REACT,
|
|
885
|
-
theme: i =
|
|
885
|
+
theme: i = P.LIGHT,
|
|
886
886
|
tokenOverrides: n
|
|
887
887
|
}) => {
|
|
888
|
-
const [r, d] = C.useState(i ===
|
|
888
|
+
const [r, d] = C.useState(i === P.LIGHT ? ee : ve), c = C.useMemo(() => ({
|
|
889
889
|
...n
|
|
890
890
|
}), [n]);
|
|
891
891
|
return C.useEffect(() => {
|
|
892
892
|
const l = z(i, o, { ...c });
|
|
893
893
|
d(l);
|
|
894
894
|
}, [i, o, c]), o === O.REACT ? /* @__PURE__ */ a(te.Provider, { value: r, children: e }) : (console.warn("DEPRECATED: Use static values instead of tokens"), /* @__PURE__ */ a(ie.Provider, { value: r, children: e }));
|
|
895
|
-
},
|
|
895
|
+
}, eo = (e = O.REACT, o = {}) => {
|
|
896
896
|
const i = e === O.REACT ? te : ie, n = C.useContext(i);
|
|
897
|
-
return n || z(
|
|
898
|
-
},
|
|
899
|
-
component: e =
|
|
897
|
+
return n || z(P.LIGHT, e, { ...o });
|
|
898
|
+
}, oo = ({
|
|
899
|
+
component: e = D,
|
|
900
900
|
variant: o = "outlined",
|
|
901
901
|
selected: i,
|
|
902
902
|
onChange: n,
|
|
@@ -908,14 +908,14 @@ const q0 = ({
|
|
|
908
908
|
error: t = !1,
|
|
909
909
|
icon: u = !1,
|
|
910
910
|
sx: T = {},
|
|
911
|
-
...
|
|
911
|
+
...L
|
|
912
912
|
}) => {
|
|
913
913
|
const m = H(), ae = () => {
|
|
914
914
|
if (!s && n) {
|
|
915
|
-
const
|
|
915
|
+
const $ = e === D ? !0 : !i;
|
|
916
916
|
n({
|
|
917
|
-
target: { value: l, checked:
|
|
918
|
-
},
|
|
917
|
+
target: { value: l, checked: $ }
|
|
918
|
+
}, $);
|
|
919
919
|
}
|
|
920
920
|
}, ne = () => m.palette.background.paper, G = () => t ? `inset 0px 0px 0px 2px ${m.palette.error.main}` : s ? i ? `inset 0px 0px 0px 2px ${m.palette.action.disabled}` : o === "outlined" ? `inset 0px 0px 0px 1px ${m.palette.action.disabledBackground}` : void 0 : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : o === "outlined" ? `inset 0px 0px 0px 1px ${b(m.palette.common.black, 0.23)}` : void 0, le = () => s || t ? m.palette.background.paper : b(m.palette.primary.main, 0.1), ce = () => s || t ? G() : i ? `inset 0px 0px 0px 2px ${b(m.palette.primary.main, 0.5)}` : o === "outlined" ? `inset 0px 0px 0px 1px ${b(m.palette.primary.main, 0.5)}` : void 0, se = () => s || t ? m.palette.background.paper : b(m.palette.primary.main, 0.3);
|
|
921
921
|
return /* @__PURE__ */ x(
|
|
@@ -956,7 +956,7 @@ const q0 = ({
|
|
|
956
956
|
variant: o,
|
|
957
957
|
children: [
|
|
958
958
|
u && /* @__PURE__ */ a(
|
|
959
|
-
|
|
959
|
+
X,
|
|
960
960
|
{
|
|
961
961
|
sx: {
|
|
962
962
|
mr: 12,
|
|
@@ -966,12 +966,12 @@ const q0 = ({
|
|
|
966
966
|
children: u
|
|
967
967
|
}
|
|
968
968
|
),
|
|
969
|
-
/* @__PURE__ */ x(
|
|
970
|
-
r && /* @__PURE__ */ a(
|
|
971
|
-
/* @__PURE__ */ a(
|
|
969
|
+
/* @__PURE__ */ x(X, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
970
|
+
r && /* @__PURE__ */ a(K, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: r }),
|
|
971
|
+
/* @__PURE__ */ a(K, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: d })
|
|
972
972
|
] }),
|
|
973
|
-
e ===
|
|
974
|
-
|
|
973
|
+
e === D ? /* @__PURE__ */ a(
|
|
974
|
+
D,
|
|
975
975
|
{
|
|
976
976
|
checked: i,
|
|
977
977
|
disabled: s,
|
|
@@ -987,7 +987,7 @@ const q0 = ({
|
|
|
987
987
|
}
|
|
988
988
|
},
|
|
989
989
|
value: l,
|
|
990
|
-
...
|
|
990
|
+
...L
|
|
991
991
|
}
|
|
992
992
|
) : /* @__PURE__ */ a(
|
|
993
993
|
ye,
|
|
@@ -1006,7 +1006,7 @@ const q0 = ({
|
|
|
1006
1006
|
}
|
|
1007
1007
|
},
|
|
1008
1008
|
value: l,
|
|
1009
|
-
...
|
|
1009
|
+
...L
|
|
1010
1010
|
}
|
|
1011
1011
|
)
|
|
1012
1012
|
]
|
|
@@ -1025,7 +1025,7 @@ const q0 = ({
|
|
|
1025
1025
|
700: N(e, 0.5),
|
|
1026
1026
|
800: N(e, 0.65),
|
|
1027
1027
|
900: N(e, 0.75)
|
|
1028
|
-
}), R = "#FFFFFF", w = "#000000",
|
|
1028
|
+
}), R = "#FFFFFF", w = "#000000", $e = "#F9F9F9", E = {
|
|
1029
1029
|
PRIMARY: "#2C64EF",
|
|
1030
1030
|
SECONDARY: "#808080",
|
|
1031
1031
|
INFO: "#2C64EF",
|
|
@@ -1094,7 +1094,7 @@ const q0 = ({
|
|
|
1094
1094
|
TRANSFER: "#75C7B7",
|
|
1095
1095
|
TRAVEL: "#76ACF7",
|
|
1096
1096
|
UNCATEGORIZED: "#BCC6D4"
|
|
1097
|
-
},
|
|
1097
|
+
}, Ue = (e, o) => {
|
|
1098
1098
|
const i = A(o?.primary || E.PRIMARY), n = A(o?.secondary || E.SECONDARY), r = A(o?.error || E.ERROR), d = A(o?.warning || E.WARNING), c = A(o?.info || E.INFO), l = A(o?.success || E.SUCCESS), s = A(o?.grey || E.GREY), t = e === v.LIGHT;
|
|
1099
1099
|
return {
|
|
1100
1100
|
mode: e,
|
|
@@ -1196,8 +1196,12 @@ const q0 = ({
|
|
|
1196
1196
|
focusOpacity: 0.3
|
|
1197
1197
|
},
|
|
1198
1198
|
background: {
|
|
1199
|
-
default: t ?
|
|
1200
|
-
|
|
1199
|
+
default: t ? $e : w,
|
|
1200
|
+
// ? paletteCustomizations?.background?.default?.light || DEFAULT_BACKGROUND_LIGHT
|
|
1201
|
+
// : paletteCustomizations?.background?.default?.dark || DEFAULT_BACKGROUND_DARK,
|
|
1202
|
+
paper: t ? R : s[900],
|
|
1203
|
+
// ? paletteCustomizations?.background?.paper?.light || WHITE
|
|
1204
|
+
// : paletteCustomizations?.background?.paper?.dark || BLACK,
|
|
1201
1205
|
highlight: t ? s[200] : s[600],
|
|
1202
1206
|
highlightPrimary: t ? i[100] : i[500]
|
|
1203
1207
|
},
|
|
@@ -1244,8 +1248,8 @@ const q0 = ({
|
|
|
1244
1248
|
chartMono6: I.CHART_MONO6
|
|
1245
1249
|
}
|
|
1246
1250
|
};
|
|
1247
|
-
},
|
|
1248
|
-
const o = e?.fontFamily ||
|
|
1251
|
+
}, We = "Inter, Helvetica, Arial, sans-serif", Ze = (e) => {
|
|
1252
|
+
const o = e?.fontFamily || We;
|
|
1249
1253
|
return {
|
|
1250
1254
|
fontFamily: o,
|
|
1251
1255
|
fontSize: 15,
|
|
@@ -1378,15 +1382,15 @@ const q0 = ({
|
|
|
1378
1382
|
...e
|
|
1379
1383
|
};
|
|
1380
1384
|
};
|
|
1381
|
-
|
|
1385
|
+
ke.setLicenseKey(
|
|
1382
1386
|
"6e7dd593526efa1f157230ecf06c9b02Tz0xMDA5NjAsRT0xNzYyMDQxNjAwMDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
|
|
1383
1387
|
);
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
const
|
|
1389
|
-
const i =
|
|
1388
|
+
const _ = [...j().shadows];
|
|
1389
|
+
_[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
|
|
1390
|
+
_[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
|
|
1391
|
+
_[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
|
|
1392
|
+
const ro = (e, o) => {
|
|
1393
|
+
const i = Ue(e, o?.paletteOptions), n = Ze(o?.typographyOptions);
|
|
1390
1394
|
return j({
|
|
1391
1395
|
breakpoints: {
|
|
1392
1396
|
values: {
|
|
@@ -1398,7 +1402,7 @@ const to = (e, o) => {
|
|
|
1398
1402
|
}
|
|
1399
1403
|
},
|
|
1400
1404
|
palette: i,
|
|
1401
|
-
shadows:
|
|
1405
|
+
shadows: _,
|
|
1402
1406
|
shape: {
|
|
1403
1407
|
borderRadius: o?.shapeOptions?.borderRadius || 4
|
|
1404
1408
|
},
|
|
@@ -1507,7 +1511,7 @@ const to = (e, o) => {
|
|
|
1507
1511
|
MuiCircularProgress: {
|
|
1508
1512
|
styleOverrides: {
|
|
1509
1513
|
root: {
|
|
1510
|
-
[`& .${
|
|
1514
|
+
[`& .${Fe.circle}`]: {
|
|
1511
1515
|
strokeLinecap: "round"
|
|
1512
1516
|
}
|
|
1513
1517
|
}
|
|
@@ -1875,8 +1879,8 @@ const to = (e, o) => {
|
|
|
1875
1879
|
MuiPaper: {
|
|
1876
1880
|
styleOverrides: {
|
|
1877
1881
|
root: {
|
|
1878
|
-
borderRadius: 8
|
|
1879
|
-
backgroundImage:
|
|
1882
|
+
borderRadius: 8
|
|
1883
|
+
// backgroundImage: 'unset',
|
|
1880
1884
|
}
|
|
1881
1885
|
}
|
|
1882
1886
|
},
|
|
@@ -2138,51 +2142,51 @@ const to = (e, o) => {
|
|
|
2138
2142
|
});
|
|
2139
2143
|
};
|
|
2140
2144
|
export {
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
+
S0 as AccountsFilledIcon,
|
|
2146
|
+
I0 as AccountsIcon,
|
|
2147
|
+
v0 as ArrowLeftIcon,
|
|
2148
|
+
H0 as AttentionFilledIcon,
|
|
2145
2149
|
f as BaseIcon,
|
|
2146
2150
|
$0 as BottomSheetTransition,
|
|
2147
|
-
|
|
2151
|
+
y0 as CalendarIcon,
|
|
2148
2152
|
g as CategoryGuids,
|
|
2149
|
-
|
|
2153
|
+
Pe as CategoryIcon,
|
|
2150
2154
|
Ne as CategoryIconList,
|
|
2151
|
-
|
|
2152
|
-
|
|
2155
|
+
De as CategoryIconVariants,
|
|
2156
|
+
O0 as CheckmarkFilledIcon,
|
|
2153
2157
|
F0 as ChevronDownIcon,
|
|
2154
|
-
|
|
2158
|
+
k0 as ChevronLeftIcon,
|
|
2155
2159
|
L0 as ChevronRightIcon,
|
|
2156
|
-
|
|
2157
|
-
|
|
2160
|
+
D0 as CloseIcon,
|
|
2161
|
+
G0 as DateRangePicker,
|
|
2158
2162
|
Be as DialogFooter,
|
|
2159
2163
|
Y0 as DialogHeader,
|
|
2160
2164
|
X0 as Drawer,
|
|
2161
|
-
|
|
2162
|
-
|
|
2165
|
+
N0 as EditIcon,
|
|
2166
|
+
w0 as FilterIcon,
|
|
2163
2167
|
Be as Footer,
|
|
2164
2168
|
ze as H1,
|
|
2165
|
-
|
|
2166
|
-
|
|
2169
|
+
U0 as H2,
|
|
2170
|
+
W0 as H3,
|
|
2167
2171
|
P0 as HeartIcon,
|
|
2168
|
-
|
|
2172
|
+
We as INTER,
|
|
2169
2173
|
M as Icon,
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2174
|
+
Le as IconWeight,
|
|
2175
|
+
K0 as InstitutionLogo,
|
|
2176
|
+
B0 as MXLogoCopyrightIcon,
|
|
2177
|
+
z0 as MXLogoFilledIcon,
|
|
2178
|
+
_0 as MXLogoIcon,
|
|
2179
|
+
V0 as MXLogoOutlineIcon,
|
|
2180
|
+
j0 as MerchantLogo,
|
|
2181
|
+
Z0 as P,
|
|
2182
|
+
oo as SelectionBox,
|
|
2179
2183
|
O as TARGETS,
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2184
|
+
P as THEMES,
|
|
2185
|
+
k as Text,
|
|
2186
|
+
Q0 as TextField,
|
|
2187
|
+
J0 as Toast,
|
|
2188
|
+
q0 as TokenProvider,
|
|
2189
|
+
ro as createMXTheme,
|
|
2190
|
+
eo as useTokens
|
|
2187
2191
|
};
|
|
2188
2192
|
//# sourceMappingURL=index.es.js.map
|