@mxenabled/mxui 1.0.0-alpha.bb1
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/README.md +32 -0
- package/dist/components/categoryicon/CategoryIcon.d.ts +11 -0
- package/dist/components/categoryicon/Constants.d.ts +29 -0
- package/dist/components/categoryicon/IconList.d.ts +8 -0
- package/dist/components/categoryicon/index.d.ts +2 -0
- package/dist/components/daterangepicker/DatePickerShortcuts.d.ts +7 -0
- package/dist/components/daterangepicker/DateRangePicker.d.ts +26 -0
- package/dist/components/daterangepicker/index.d.ts +2 -0
- package/dist/components/dialog/BottomSheetTransition.d.ts +6 -0
- package/dist/components/dialog/Header.d.ts +12 -0
- package/dist/components/dialog/index.d.ts +3 -0
- package/dist/components/drawer/Drawer.d.ts +15 -0
- package/dist/components/drawer/Footer.d.ts +13 -0
- package/dist/components/drawer/index.d.ts +2 -0
- package/dist/components/icon/BaseIcon.d.ts +11 -0
- package/dist/components/icon/Icon.d.ts +17 -0
- package/dist/components/icon/icons/AccountsFilledIcon.d.ts +3 -0
- package/dist/components/icon/icons/AccountsIcon.d.ts +3 -0
- package/dist/components/icon/icons/ArrowLeftIcon.d.ts +3 -0
- package/dist/components/icon/icons/AttentionFilledIcon.d.ts +3 -0
- package/dist/components/icon/icons/CalendarIcon.d.ts +3 -0
- package/dist/components/icon/icons/CheckmarkFilledIcon.d.ts +3 -0
- package/dist/components/icon/icons/ChevronDownIcon.d.ts +3 -0
- package/dist/components/icon/icons/ChevronLeftIcon.d.ts +3 -0
- package/dist/components/icon/icons/ChevronRightIcon.d.ts +3 -0
- package/dist/components/icon/icons/CloseIcon.d.ts +3 -0
- package/dist/components/icon/icons/EditIcon.d.ts +3 -0
- package/dist/components/icon/icons/FilterIcon.d.ts +3 -0
- package/dist/components/icon/icons/HeartIcon.d.ts +3 -0
- package/dist/components/icon/icons/MXLogoCopyrightIcon.d.ts +3 -0
- package/dist/components/icon/icons/MXLogoFilledIcon.d.ts +3 -0
- package/dist/components/icon/icons/MXLogoIcon.d.ts +3 -0
- package/dist/components/icon/icons/MXLogoOutlineIcon.d.ts +3 -0
- package/dist/components/icon/icons/index.d.ts +17 -0
- package/dist/components/icon/index.d.ts +3 -0
- package/dist/components/institutionlogo/InstitutionLogo.d.ts +8 -0
- package/dist/components/institutionlogo/index.d.ts +1 -0
- package/dist/components/merchantlogo/MerchantLogo.d.ts +9 -0
- package/dist/components/merchantlogo/index.d.ts +1 -0
- package/dist/components/text/Text.d.ts +20 -0
- package/dist/components/text/index.d.ts +1 -0
- package/dist/components/textfield/TextField.d.ts +10 -0
- package/dist/components/textfield/index.d.ts +1 -0
- package/dist/components/toast/Toast.d.ts +19 -0
- package/dist/components/toast/index.d.ts +1 -0
- package/dist/components/tokenprovider/Constants.d.ts +9 -0
- package/dist/components/tokenprovider/Hooks.d.ts +1 -0
- package/dist/components/tokenprovider/TokenProvider.d.ts +11 -0
- package/dist/components/tokenprovider/index.d.ts +3 -0
- package/dist/constants/Logo.d.ts +2 -0
- package/dist/constants/Theme.d.ts +4 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.es.js +1975 -0
- package/dist/index.es.js.map +1 -0
- package/dist/themes/Augmentations.d.ts +112 -0
- package/dist/themes/Colors.d.ts +36 -0
- package/dist/themes/MXTheme.d.ts +2 -0
- package/dist/themes/Palette.d.ts +2 -0
- package/dist/themes/Typography.d.ts +3 -0
- package/dist/themes/index.d.ts +3 -0
- package/package.json +81 -0
package/dist/index.es.js
ADDED
|
@@ -0,0 +1,1975 @@
|
|
|
1
|
+
import { jsx as a, jsxs as y } from "react/jsx-runtime";
|
|
2
|
+
import f from "react";
|
|
3
|
+
import H from "@mui/material/Stack";
|
|
4
|
+
import { useTheme as v, createTheme as O } from "@mui/material/styles";
|
|
5
|
+
import X from "@mui/material/Icon";
|
|
6
|
+
import { endOfMonth as w } from "date-fns/endOfMonth";
|
|
7
|
+
import { endOfYear as Y } from "date-fns/endOfYear";
|
|
8
|
+
import { startOfToday as Q } from "date-fns/startOfToday";
|
|
9
|
+
import { startOfMonth as I } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as R } from "date-fns/startOfYear";
|
|
11
|
+
import { subDays as z } from "date-fns/subDays";
|
|
12
|
+
import { subMonths as J } from "date-fns/subMonths";
|
|
13
|
+
import { subYears as q } from "date-fns/subYears";
|
|
14
|
+
import e0 from "@mui/material/useMediaQuery";
|
|
15
|
+
import { LocalizationProvider as r0, StaticDateRangePicker as t0 } from "@mui/x-date-pickers-pro";
|
|
16
|
+
import { AdapterDateFns as o0 } from "@mui/x-date-pickers-pro/AdapterDateFnsV3";
|
|
17
|
+
import S from "@mui/material/Box";
|
|
18
|
+
import a0 from "@mui/material/ToggleButton";
|
|
19
|
+
import i0 from "@mui/material/ToggleButtonGroup";
|
|
20
|
+
import P from "@mui/material/Slide";
|
|
21
|
+
import A from "@mui/material/Button";
|
|
22
|
+
import V from "@mui/material/Toolbar";
|
|
23
|
+
import _ from "@mui/material/IconButton";
|
|
24
|
+
import n0 from "@mui/material/Drawer";
|
|
25
|
+
import l0 from "@mui/material/Typography";
|
|
26
|
+
import c0 from "@mui/material/TextField";
|
|
27
|
+
import s0 from "@mui/material/Snackbar";
|
|
28
|
+
import d0 from "@mui/material/Alert";
|
|
29
|
+
import { light as W, buildTheme as D, dark as u0 } from "@mxenabled/design-tokens";
|
|
30
|
+
import { LicenseInfo as p0 } from "@mui/x-license-pro";
|
|
31
|
+
import { circularProgressClasses as h0 } from "@mui/material/CircularProgress";
|
|
32
|
+
import g0 from "@mui/material/styles/createPalette";
|
|
33
|
+
import m0 from "@mui/material/styles/createTypography";
|
|
34
|
+
const g = ({
|
|
35
|
+
children: e,
|
|
36
|
+
height: o,
|
|
37
|
+
size: n = 16,
|
|
38
|
+
viewBox: r = "0 0 16 16",
|
|
39
|
+
width: i
|
|
40
|
+
}) => /* @__PURE__ */ a(
|
|
41
|
+
"svg",
|
|
42
|
+
{
|
|
43
|
+
"aria-hidden": !0,
|
|
44
|
+
className: "mx-kmui-icon",
|
|
45
|
+
focusable: !1,
|
|
46
|
+
height: o || n,
|
|
47
|
+
viewBox: r,
|
|
48
|
+
width: i || n,
|
|
49
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
50
|
+
children: e
|
|
51
|
+
}
|
|
52
|
+
);
|
|
53
|
+
var f0 = /* @__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))(f0 || {});
|
|
54
|
+
const M = ({
|
|
55
|
+
color: e,
|
|
56
|
+
fill: o = !1,
|
|
57
|
+
name: n,
|
|
58
|
+
size: r = 20,
|
|
59
|
+
sx: i,
|
|
60
|
+
weight: l = 300,
|
|
61
|
+
...c
|
|
62
|
+
}) => {
|
|
63
|
+
const [d, b] = f.useState(!1);
|
|
64
|
+
return f.useEffect(() => {
|
|
65
|
+
document.fonts.ready.then(() => {
|
|
66
|
+
b(!0);
|
|
67
|
+
});
|
|
68
|
+
}, []), /* @__PURE__ */ a(
|
|
69
|
+
X,
|
|
70
|
+
{
|
|
71
|
+
color: d ? e && e : void 0,
|
|
72
|
+
sx: [
|
|
73
|
+
{
|
|
74
|
+
fontSize: r,
|
|
75
|
+
fontVariationSettings: `
|
|
76
|
+
'FILL' ${o ? 1 : 0},
|
|
77
|
+
'wght' ${l},
|
|
78
|
+
'GRAD' 0,
|
|
79
|
+
'opsz' ${r}
|
|
80
|
+
`
|
|
81
|
+
},
|
|
82
|
+
...Array.isArray(i) ? i : [i],
|
|
83
|
+
{
|
|
84
|
+
...!d && { color: "transparent" }
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
...c,
|
|
88
|
+
children: n
|
|
89
|
+
}
|
|
90
|
+
);
|
|
91
|
+
}, se = ({
|
|
92
|
+
color: e = "currentColor",
|
|
93
|
+
...o
|
|
94
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
95
|
+
"path",
|
|
96
|
+
{
|
|
97
|
+
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",
|
|
98
|
+
fill: e
|
|
99
|
+
}
|
|
100
|
+
) }), de = ({
|
|
101
|
+
color: e = "currentColor",
|
|
102
|
+
...o
|
|
103
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
104
|
+
"path",
|
|
105
|
+
{
|
|
106
|
+
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",
|
|
107
|
+
fill: e
|
|
108
|
+
}
|
|
109
|
+
) }), ue = ({
|
|
110
|
+
color: e = "currentColor",
|
|
111
|
+
...o
|
|
112
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
113
|
+
"path",
|
|
114
|
+
{
|
|
115
|
+
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",
|
|
116
|
+
fill: e
|
|
117
|
+
}
|
|
118
|
+
) }), pe = ({
|
|
119
|
+
color: e = "currentColor",
|
|
120
|
+
...o
|
|
121
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
122
|
+
"path",
|
|
123
|
+
{
|
|
124
|
+
clipRule: "evenodd",
|
|
125
|
+
d: "M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm0 11a1 1 0 100 2 1 1 0 000-2zm.02-8c-.398 0-.72.364-.72.813v4.874c0 .45.322.813.72.813.398 0 .72-.364.72-.813V3.814c0-.45-.322-.813-.72-.813z",
|
|
126
|
+
fill: e,
|
|
127
|
+
fillRule: "evenodd"
|
|
128
|
+
}
|
|
129
|
+
) }), he = ({
|
|
130
|
+
color: e = "currentColor",
|
|
131
|
+
...o
|
|
132
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
133
|
+
"path",
|
|
134
|
+
{
|
|
135
|
+
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",
|
|
136
|
+
fill: e
|
|
137
|
+
}
|
|
138
|
+
) }), ge = ({
|
|
139
|
+
color: e = "currentColor",
|
|
140
|
+
...o
|
|
141
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
142
|
+
"path",
|
|
143
|
+
{
|
|
144
|
+
d: "M8 0c4.4 0 8 3.6 8 8s-3.6 8-8 8-8-3.6-8-8 3.6-8 8-8zm4.358 5.151a.5.5 0 00-.707-.01L6.858 9.803 4.35 7.363a.5.5 0 10-.698.718l2.858 2.777a.5.5 0 00.697 0l5.142-5a.5.5 0 00.01-.707z",
|
|
145
|
+
fill: e
|
|
146
|
+
}
|
|
147
|
+
) }), me = ({
|
|
148
|
+
color: e = "currentColor",
|
|
149
|
+
...o
|
|
150
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
151
|
+
"path",
|
|
152
|
+
{
|
|
153
|
+
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",
|
|
154
|
+
fill: e
|
|
155
|
+
}
|
|
156
|
+
) }), fe = ({
|
|
157
|
+
color: e = "currentColor",
|
|
158
|
+
...o
|
|
159
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
160
|
+
"path",
|
|
161
|
+
{
|
|
162
|
+
d: "M10.799 2.68a.6.6 0 01.011.848L6.457 8l4.353 4.472a.6.6 0 01-.86.837L5.19 8.42a.6.6 0 010-.838l4.76-4.89a.6.6 0 01.849-.012z",
|
|
163
|
+
fill: e
|
|
164
|
+
}
|
|
165
|
+
) }), be = ({
|
|
166
|
+
color: e = "currentColor",
|
|
167
|
+
...o
|
|
168
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
169
|
+
"path",
|
|
170
|
+
{
|
|
171
|
+
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",
|
|
172
|
+
fill: e
|
|
173
|
+
}
|
|
174
|
+
) }), b0 = ({
|
|
175
|
+
color: e = "currentColor",
|
|
176
|
+
...o
|
|
177
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
178
|
+
"path",
|
|
179
|
+
{
|
|
180
|
+
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",
|
|
181
|
+
fill: e
|
|
182
|
+
}
|
|
183
|
+
) }), Me = ({
|
|
184
|
+
color: e = "currentColor",
|
|
185
|
+
...o
|
|
186
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
187
|
+
"path",
|
|
188
|
+
{
|
|
189
|
+
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",
|
|
190
|
+
fill: e
|
|
191
|
+
}
|
|
192
|
+
) }), ye = ({
|
|
193
|
+
color: e = "currentColor",
|
|
194
|
+
...o
|
|
195
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
196
|
+
"path",
|
|
197
|
+
{
|
|
198
|
+
d: "M1.5 1.933l5.4 6.72c.066.081.1.18.1.28v5.134h2V8.933c0-.1.036-.199.1-.28l5.4-6.72h-13zM6 9.09L.1 1.747C-.145 1.439.09 1 .5 1h15c.413 0 .648.439.4.747L10 9.089v5.444c0 .258-.223.467-.5.467h-3c-.275 0-.5-.209-.5-.467V9.09z",
|
|
199
|
+
fill: e
|
|
200
|
+
}
|
|
201
|
+
) }), Ce = ({
|
|
202
|
+
color: e = "currentColor",
|
|
203
|
+
...o
|
|
204
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
205
|
+
"path",
|
|
206
|
+
{
|
|
207
|
+
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",
|
|
208
|
+
fill: e
|
|
209
|
+
}
|
|
210
|
+
) }), ve = ({
|
|
211
|
+
color: e = "currentColor",
|
|
212
|
+
...o
|
|
213
|
+
}) => /* @__PURE__ */ y(g, { ...o, children: [
|
|
214
|
+
/* @__PURE__ */ a(
|
|
215
|
+
"path",
|
|
216
|
+
{
|
|
217
|
+
d: "M14.368 4.5h1.604c.024 0 .037.028.021.044L13.28 7.992c-.008.008-.008.025 0 .032l2.714 3.448c.016.02 0 .045-.021.045h-1.604a.023.023 0 01-.02-.013l-1.895-2.46c-.009-.01-.029-.01-.041 0l-1.895 2.46a.022.022 0 01-.02.013H8.892c-.02 0-.031-.03-.02-.045l2.713-3.448c.008-.007.008-.024 0-.032L8.871 4.544a.027.027 0 01.021-.044h1.605c.008 0 .015.004.02.013l1.895 2.458c.008.013.028.013.04 0l1.896-2.458a.023.023 0 01.02-.013z",
|
|
218
|
+
fill: e
|
|
219
|
+
}
|
|
220
|
+
),
|
|
221
|
+
/* @__PURE__ */ a(
|
|
222
|
+
"path",
|
|
223
|
+
{
|
|
224
|
+
d: "M8.242 11.363l1.056-1.293a.047.047 0 00.012-.029l-.81-5.5c-.004-.02-.02-.036-.04-.036H7.39c-.016 0-.032.008-.036.024L4.816 9.668c-.015.032-.06.032-.073 0l-2.562-5.14c-.009-.015-.02-.023-.036-.023h-1.08c-.021 0-.038.016-.043.036L.001 11.472a.042.042 0 00.04.049H1.29c.02 0 .042-.016.042-.036l.616-4.505c.004-.04.063-.048.08-.011L4.287 11.5c.008.017.021.024.037.024h.884c.016 0 .033-.008.037-.024l2.235-4.508c.015-.037.074-.029.078.011l.608 4.338c.005.037.054.048.075.021z",
|
|
225
|
+
fill: e
|
|
226
|
+
}
|
|
227
|
+
)
|
|
228
|
+
] }), xe = ({
|
|
229
|
+
color: e = "currentColor",
|
|
230
|
+
...o
|
|
231
|
+
}) => /* @__PURE__ */ y(g, { ...o, children: [
|
|
232
|
+
/* @__PURE__ */ a(
|
|
233
|
+
"path",
|
|
234
|
+
{
|
|
235
|
+
d: "M7.93 11l.871-1.124c.01-.01.01-.02.01-.03l-.77-5.305c0-.02-.02-.041-.04-.041H7a.059.059 0 00-.024.008.077.077 0 00-.017.012l-2.4 4.89c-.005.019-.026.026-.043.023a.034.034 0 01-.027-.022l-2.42-4.89a.139.139 0 00-.01-.01.046.046 0 00-.031-.011H1.016c-.02 0-.04.01-.04.04l-.972 6.673c-.01.02.01.04.04.04h1.175c.02 0 .04-.01.04-.04l.587-4.273c.01-.04.061-.05.081-.01l2.137 4.303a.17.17 0 00.01.009.045.045 0 00.03.011h.83c.01 0 .03-.01.041-.02L7.08 6.981c.02-.04.07-.03.08.01l.578 4.14c.01.041.05.051.07.021L7.93 11z",
|
|
236
|
+
fill: e
|
|
237
|
+
}
|
|
238
|
+
),
|
|
239
|
+
/* @__PURE__ */ a(
|
|
240
|
+
"path",
|
|
241
|
+
{
|
|
242
|
+
d: "M15.079 4.5H13.6c-.004 0-.008.002-.013.004h-.002a.1.1 0 01-.009.004.057.057 0 01-.016.002L11.788 6.83c-.01.02-.05.02-.07 0L9.944 4.51a.03.03 0 00-.01-.007c-.008-.003-.017-.003-.03-.003H8.427c-.04 0-.051.04-.04.07l2.54 3.291c.01.01.01.041 0 .051l-2.52 3.28c-.02.031 0 .071.04.071h1.478a.031.031 0 00.011-.002c.008-.003.016-.008.03-.008l1.771-2.318c.01-.02.051-.02.071 0l1.772 2.318c.01.01.02.01.04.01h1.469c.04 0 .05-.04.04-.07l-2.541-3.291a.023.023 0 01-.005-.01.047.047 0 01-.002-.008c-.002-.012 0-.026.007-.033l2.541-3.29c0-.02-.01-.061-.05-.061z",
|
|
243
|
+
fill: e
|
|
244
|
+
}
|
|
245
|
+
),
|
|
246
|
+
/* @__PURE__ */ a(
|
|
247
|
+
"path",
|
|
248
|
+
{
|
|
249
|
+
clipRule: "evenodd",
|
|
250
|
+
d: "M15.666 10.97l.101.142h.06l-.1-.152a.11.11 0 00.09-.112c0-.07-.06-.111-.12-.111h-.153v.375h.061v-.142h.06zm-.05-.182h.09c.03 0 .061.03.071.07 0 .041-.04.061-.07.061h-.092v-.131z",
|
|
251
|
+
fill: e,
|
|
252
|
+
fillRule: "evenodd"
|
|
253
|
+
}
|
|
254
|
+
),
|
|
255
|
+
/* @__PURE__ */ a(
|
|
256
|
+
"path",
|
|
257
|
+
{
|
|
258
|
+
clipRule: "evenodd",
|
|
259
|
+
d: "M15.352 10.93a.32.32 0 00.324.323.32.32 0 00.324-.324.32.32 0 00-.324-.324.32.32 0 00-.324.324zm.05 0c0-.152.122-.274.274-.274.152 0 .273.121.273.273a.272.272 0 01-.273.274.272.272 0 01-.273-.274z",
|
|
260
|
+
fill: e,
|
|
261
|
+
fillRule: "evenodd"
|
|
262
|
+
}
|
|
263
|
+
)
|
|
264
|
+
] }), Te = ({
|
|
265
|
+
color: e = "currentColor",
|
|
266
|
+
...o
|
|
267
|
+
}) => /* @__PURE__ */ a(g, { ...o, children: /* @__PURE__ */ a(
|
|
268
|
+
"path",
|
|
269
|
+
{
|
|
270
|
+
clipRule: "evenodd",
|
|
271
|
+
d: "M16 0H0V16H16V0ZM13.979 5.5H12.7758C12.7703 5.5 12.7639 5.50299 12.7607 5.50897L11.3396 7.25908C11.3301 7.26805 11.3151 7.26805 11.3087 7.25908L9.8876 5.50897C9.88443 5.50299 9.87888 5.5 9.87254 5.5H8.66938C8.65353 5.5 8.64244 5.51719 8.65353 5.53139L10.6889 7.98543C10.6945 7.99141 10.6945 8.00336 10.6889 8.00859L8.65353 10.4626C8.64561 10.4738 8.65353 10.4948 8.66938 10.4948H9.87254C9.87888 10.4948 9.88443 10.4918 9.8876 10.4858L11.3087 8.73494C11.3182 8.72672 11.3333 8.72672 11.3396 8.73494L12.7607 10.4858C12.7639 10.4918 12.7703 10.4948 12.7758 10.4948H13.979C13.9948 10.4948 14.0067 10.4768 13.9948 10.4626L11.9594 8.00859C11.9531 8.00336 11.9531 7.99141 11.9594 7.98543L13.9948 5.53139C14.0067 5.52018 13.9972 5.5 13.979 5.5ZM8.97366 9.46462L8.18186 10.3853C8.166 10.4047 8.12875 10.3965 8.12558 10.3703L7.66905 7.28258C7.66588 7.25419 7.62229 7.24821 7.6104 7.27436L5.93486 10.4831C5.93168 10.4951 5.919 10.5003 5.90711 10.5003H5.24371C5.23183 10.5003 5.22231 10.4951 5.21597 10.4831L3.51982 7.25717C3.50714 7.23102 3.46355 7.23625 3.46038 7.26539L2.9983 10.4719C2.9983 10.4861 2.98245 10.4973 2.96659 10.4973H2.03133C2.01231 10.4973 1.99725 10.4802 2.00042 10.463L2.76686 5.52948C2.77003 5.51528 2.78271 5.50333 2.79856 5.50333H3.60859C3.62048 5.50333 3.6292 5.5093 3.63554 5.52051L5.55758 9.17841C5.5663 9.20158 5.60038 9.20158 5.61227 9.17841L7.51529 5.52051C7.51846 5.5093 7.53034 5.50333 7.54303 5.50333H8.34434C8.3594 5.50333 8.37208 5.51528 8.37525 5.52948L8.98238 9.44444C8.98238 9.45042 8.9792 9.45864 8.97366 9.46462Z",
|
|
272
|
+
fill: e,
|
|
273
|
+
fillRule: "evenodd"
|
|
274
|
+
}
|
|
275
|
+
) }), ke = ({
|
|
276
|
+
color: e = "currentColor",
|
|
277
|
+
...o
|
|
278
|
+
}) => /* @__PURE__ */ y(g, { ...o, children: [
|
|
279
|
+
/* @__PURE__ */ a(
|
|
280
|
+
"path",
|
|
281
|
+
{
|
|
282
|
+
d: "M12.662 5.973h-.94a.013.013 0 00-.012.007L10.6 7.42c-.007.008-.019.008-.024 0l-1.11-1.44a.013.013 0 00-.011-.007h-.94c-.012 0-.02.014-.012.026l1.59 2.02c.004.004.004.014 0 .018l-1.59 2.02c-.006.009 0 .026.012.026h.94c.005 0 .009-.002.012-.008l1.11-1.44c.007-.007.018-.007.024 0l1.11 1.44a.013.013 0 00.011.008h.94a.016.016 0 00.012-.027l-1.59-2.019c-.004-.004-.004-.014 0-.019l1.59-2.02c.01-.008.002-.025-.012-.025z",
|
|
283
|
+
fill: e
|
|
284
|
+
}
|
|
285
|
+
),
|
|
286
|
+
/* @__PURE__ */ a(
|
|
287
|
+
"path",
|
|
288
|
+
{
|
|
289
|
+
d: "M8.753 9.235l-.619.758c-.012.015-.041.009-.044-.013l-.356-2.54c-.003-.024-.037-.029-.046-.007l-1.308 2.64c-.003.01-.013.014-.022.014H5.84c-.01 0-.017-.004-.022-.014L4.494 7.42c-.01-.022-.044-.018-.047.006l-.36 2.639c0 .011-.013.02-.026.02h-.73a.025.025 0 01-.024-.027l.599-4.06c.002-.012.012-.022.024-.022h.633c.01 0 .016.005.02.015L6.086 9c.007.019.033.019.043 0l1.486-3.01c.002-.01.012-.015.021-.015h.626c.012 0 .022.01.024.022l.475 3.221a.027.027 0 01-.007.017z",
|
|
290
|
+
fill: e
|
|
291
|
+
}
|
|
292
|
+
),
|
|
293
|
+
/* @__PURE__ */ a(
|
|
294
|
+
"path",
|
|
295
|
+
{
|
|
296
|
+
clipRule: "evenodd",
|
|
297
|
+
d: "M0 16V0h16v16H0zM1 1h14v14H1V1z",
|
|
298
|
+
fill: e,
|
|
299
|
+
fillRule: "evenodd"
|
|
300
|
+
}
|
|
301
|
+
)
|
|
302
|
+
] });
|
|
303
|
+
var u = /* @__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))(u || {}), M0 = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(M0 || {});
|
|
304
|
+
const $ = {
|
|
305
|
+
guid: u.Uncategorized,
|
|
306
|
+
colorName: "uncategorized",
|
|
307
|
+
icon: "category"
|
|
308
|
+
}, y0 = [
|
|
309
|
+
{
|
|
310
|
+
guid: u.AutoTransport,
|
|
311
|
+
colorName: "autoTransport",
|
|
312
|
+
icon: "directions_car"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
guid: u.BillsUtilities,
|
|
316
|
+
colorName: "billsUtilities",
|
|
317
|
+
icon: "electrical_services"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
guid: u.BusinessServices,
|
|
321
|
+
colorName: "businessServices",
|
|
322
|
+
icon: "business_center"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
guid: u.Education,
|
|
326
|
+
colorName: "education",
|
|
327
|
+
icon: "school"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
guid: u.Entertainment,
|
|
331
|
+
colorName: "entertainment",
|
|
332
|
+
icon: "stadium"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
guid: u.FeesCharges,
|
|
336
|
+
colorName: "feesCharges",
|
|
337
|
+
icon: "problem"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
guid: u.Financial,
|
|
341
|
+
colorName: "financial",
|
|
342
|
+
icon: "price_check"
|
|
343
|
+
},
|
|
344
|
+
{
|
|
345
|
+
guid: u.FoodDining,
|
|
346
|
+
colorName: "foodDining",
|
|
347
|
+
icon: "grocery"
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
guid: u.GiftsDonations,
|
|
351
|
+
colorName: "giftsDonations",
|
|
352
|
+
icon: "featured_seasonal_and_gifts"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
guid: u.HealthFitness,
|
|
356
|
+
colorName: "healthFitness",
|
|
357
|
+
icon: "ecg_heart"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
guid: u.Home,
|
|
361
|
+
colorName: "home",
|
|
362
|
+
icon: "cottage"
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
guid: u.Income,
|
|
366
|
+
colorName: "income",
|
|
367
|
+
icon: "monetization_on"
|
|
368
|
+
},
|
|
369
|
+
{
|
|
370
|
+
guid: u.Investments,
|
|
371
|
+
colorName: "investments",
|
|
372
|
+
icon: "bid_landscape"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
guid: u.Kids,
|
|
376
|
+
colorName: "kids",
|
|
377
|
+
icon: "face"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
guid: u.PersonalCare,
|
|
381
|
+
colorName: "personalCare",
|
|
382
|
+
icon: "volunteer_activism"
|
|
383
|
+
},
|
|
384
|
+
{
|
|
385
|
+
guid: u.Pets,
|
|
386
|
+
colorName: "pets",
|
|
387
|
+
icon: "pet_supplies"
|
|
388
|
+
},
|
|
389
|
+
{
|
|
390
|
+
guid: u.Shopping,
|
|
391
|
+
colorName: "shopping",
|
|
392
|
+
icon: "shopping_cart"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
guid: u.Taxes,
|
|
396
|
+
colorName: "taxes",
|
|
397
|
+
icon: "heap_snapshot_large"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
guid: u.Transfer,
|
|
401
|
+
colorName: "transfer",
|
|
402
|
+
icon: "compare_arrows"
|
|
403
|
+
},
|
|
404
|
+
{
|
|
405
|
+
guid: u.Travel,
|
|
406
|
+
colorName: "travel",
|
|
407
|
+
icon: "airplane_ticket"
|
|
408
|
+
},
|
|
409
|
+
$
|
|
410
|
+
], C0 = 0.625, v0 = ({
|
|
411
|
+
categoryGuid: e,
|
|
412
|
+
icon_ratio: o = C0,
|
|
413
|
+
size: n = 32,
|
|
414
|
+
sx: r = {},
|
|
415
|
+
variant: i = "filled"
|
|
416
|
+
}) => {
|
|
417
|
+
const l = v(), c = f.useMemo(
|
|
418
|
+
() => y0.find((s) => s.guid === e) ?? $,
|
|
419
|
+
[e]
|
|
420
|
+
), d = l.palette.categories[c.colorName];
|
|
421
|
+
return /* @__PURE__ */ a(
|
|
422
|
+
H,
|
|
423
|
+
{
|
|
424
|
+
alignItems: "center",
|
|
425
|
+
bgcolor: () => {
|
|
426
|
+
let s = d;
|
|
427
|
+
return i === "twotone" && (s = `${s}20`), i === "transparent" || i === "basic" ? "transparent" : s;
|
|
428
|
+
},
|
|
429
|
+
borderRadius: "4px",
|
|
430
|
+
className: "mx-kmui-category-icon",
|
|
431
|
+
color: () => {
|
|
432
|
+
const s = i === "filled" ? l.palette.common.white : d;
|
|
433
|
+
return i === "basic" ? l.palette.text.primary : s;
|
|
434
|
+
},
|
|
435
|
+
height: n,
|
|
436
|
+
justifyContent: "center",
|
|
437
|
+
sx: [...Array.isArray(r) ? r : [r]],
|
|
438
|
+
width: n,
|
|
439
|
+
children: /* @__PURE__ */ a(M, { name: c.icon, size: n * o })
|
|
440
|
+
}
|
|
441
|
+
);
|
|
442
|
+
}, x0 = ({
|
|
443
|
+
items: e,
|
|
444
|
+
onChange: o,
|
|
445
|
+
isValid: n,
|
|
446
|
+
selected: r
|
|
447
|
+
}) => {
|
|
448
|
+
const i = v(), l = e?.map((c) => {
|
|
449
|
+
const d = c.getValue({ isValid: n });
|
|
450
|
+
return {
|
|
451
|
+
label: c.label,
|
|
452
|
+
onClick: () => {
|
|
453
|
+
o(d, "accept", c);
|
|
454
|
+
},
|
|
455
|
+
disabled: !n(d)
|
|
456
|
+
};
|
|
457
|
+
});
|
|
458
|
+
return /* @__PURE__ */ a(S, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ a(i0, { color: "primary", orientation: "vertical", value: r, children: l?.map((c) => /* @__PURE__ */ a(
|
|
459
|
+
a0,
|
|
460
|
+
{
|
|
461
|
+
onClick: c.onClick,
|
|
462
|
+
sx: {
|
|
463
|
+
borderWidth: 1,
|
|
464
|
+
color: "secondary.main",
|
|
465
|
+
fontSize: 12,
|
|
466
|
+
fontWeight: 700,
|
|
467
|
+
minWidth: 180,
|
|
468
|
+
"&:focus": {
|
|
469
|
+
boxShadow: "0px 0px 0px 2px rgba(82, 138, 224, 0.8)"
|
|
470
|
+
},
|
|
471
|
+
"&:hover": {
|
|
472
|
+
bgcolor: i.palette.action.hover,
|
|
473
|
+
borderTop: `1px solid ${i.palette.secondary.lighter}`
|
|
474
|
+
},
|
|
475
|
+
"&.Mui-selected": {
|
|
476
|
+
border: `2px solid ${i.palette.mode === "light" ? i.palette.primary.main : i.palette.primary.light} !important`,
|
|
477
|
+
marginTop: "-2px !important",
|
|
478
|
+
color: i.palette.mode === "light" ? "primary" : "primary.light"
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
value: c.label,
|
|
482
|
+
children: c.label
|
|
483
|
+
},
|
|
484
|
+
c.label
|
|
485
|
+
)) }) });
|
|
486
|
+
}, Le = ({
|
|
487
|
+
copy: e,
|
|
488
|
+
dateRange: o,
|
|
489
|
+
onRangeChanged: n,
|
|
490
|
+
selectedShortcut: r = e.dateRangeThisMonth,
|
|
491
|
+
sx: i = {}
|
|
492
|
+
}) => {
|
|
493
|
+
const l = v(), c = e0(l.breakpoints.down("sm")), d = f.useMemo(() => {
|
|
494
|
+
const p = Q(), s = J(p, 1), m = q(p, 1);
|
|
495
|
+
return [
|
|
496
|
+
{
|
|
497
|
+
label: e.dateRangeThisMonth,
|
|
498
|
+
getValue: () => [I(p), w(p)]
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
label: e.dateRangeLastMonth,
|
|
502
|
+
getValue: () => [I(s), w(s)]
|
|
503
|
+
},
|
|
504
|
+
{
|
|
505
|
+
label: e.dateRangeLast30Days,
|
|
506
|
+
getValue: () => [z(p, 30), p]
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
label: e.dateRangeLast90Days,
|
|
510
|
+
getValue: () => [z(p, 90), p]
|
|
511
|
+
},
|
|
512
|
+
{
|
|
513
|
+
label: e.dateRangeYTD,
|
|
514
|
+
getValue: () => [R(p), p]
|
|
515
|
+
},
|
|
516
|
+
{
|
|
517
|
+
label: e.dateRangeLastYear,
|
|
518
|
+
getValue: () => [R(m), Y(m)]
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
label: e.dateRangeCustom,
|
|
522
|
+
getValue: () => [p, p]
|
|
523
|
+
}
|
|
524
|
+
];
|
|
525
|
+
}, [e]), b = (p, s) => {
|
|
526
|
+
const m = s.shortcut;
|
|
527
|
+
n?.(p, m ? m.label : e.dateRangeCustom);
|
|
528
|
+
};
|
|
529
|
+
return /* @__PURE__ */ a(H, { gap: 16, m: 8, children: /* @__PURE__ */ a(r0, { dateAdapter: o0, children: /* @__PURE__ */ a(
|
|
530
|
+
t0,
|
|
531
|
+
{
|
|
532
|
+
calendars: 1,
|
|
533
|
+
localeText: {
|
|
534
|
+
start: e.dateRangeFrom,
|
|
535
|
+
end: e.dateRangeTo,
|
|
536
|
+
toolbarTitle: e.dateRangeToolbarTitle
|
|
537
|
+
},
|
|
538
|
+
onChange: b,
|
|
539
|
+
showDaysOutsideCurrentMonth: !0,
|
|
540
|
+
slotProps: {
|
|
541
|
+
actionBar: { actions: [] },
|
|
542
|
+
shortcuts: {
|
|
543
|
+
items: c ? [] : d
|
|
544
|
+
},
|
|
545
|
+
toolbar: {
|
|
546
|
+
toolbarFormat: "MMM d, yyyy"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
slots: {
|
|
550
|
+
leftArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_left", size: 28 }),
|
|
551
|
+
shortcuts: (p) => /* @__PURE__ */ a(x0, { selected: r, ...p }),
|
|
552
|
+
rightArrowIcon: () => /* @__PURE__ */ a(M, { name: "chevron_right", size: 28 })
|
|
553
|
+
},
|
|
554
|
+
sx: { ...i },
|
|
555
|
+
value: o
|
|
556
|
+
}
|
|
557
|
+
) }) });
|
|
558
|
+
}, Ae = f.forwardRef(function(o, n) {
|
|
559
|
+
return /* @__PURE__ */ a(P, { direction: "up", ref: n, ...o });
|
|
560
|
+
}), T0 = ({
|
|
561
|
+
isPrimaryDisabled: e,
|
|
562
|
+
onPrimaryAction: o,
|
|
563
|
+
onSecondaryAction: n,
|
|
564
|
+
primaryColor: r = "primary",
|
|
565
|
+
primaryText: i = "Save",
|
|
566
|
+
secondaryColor: l = "primary",
|
|
567
|
+
secondaryText: c = "Cancel",
|
|
568
|
+
...d
|
|
569
|
+
}) => /* @__PURE__ */ y(
|
|
570
|
+
V,
|
|
571
|
+
{
|
|
572
|
+
sx: {
|
|
573
|
+
display: "flex",
|
|
574
|
+
gap: 16,
|
|
575
|
+
justifyContent: "flex-end",
|
|
576
|
+
"&.MuiToolbar-gutters": {
|
|
577
|
+
padding: 24
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
...d,
|
|
581
|
+
children: [
|
|
582
|
+
/* @__PURE__ */ a(
|
|
583
|
+
A,
|
|
584
|
+
{
|
|
585
|
+
color: l,
|
|
586
|
+
onClick: n,
|
|
587
|
+
variant: o ? "outlined" : "contained",
|
|
588
|
+
children: c
|
|
589
|
+
}
|
|
590
|
+
),
|
|
591
|
+
o && /* @__PURE__ */ a(
|
|
592
|
+
A,
|
|
593
|
+
{
|
|
594
|
+
color: r,
|
|
595
|
+
disabled: e,
|
|
596
|
+
onClick: o,
|
|
597
|
+
variant: "contained",
|
|
598
|
+
children: i
|
|
599
|
+
}
|
|
600
|
+
)
|
|
601
|
+
]
|
|
602
|
+
}
|
|
603
|
+
), He = ({ copy: e, onClose: o, ...n }) => {
|
|
604
|
+
const r = v();
|
|
605
|
+
return /* @__PURE__ */ y(
|
|
606
|
+
V,
|
|
607
|
+
{
|
|
608
|
+
sx: {
|
|
609
|
+
"&.MuiToolbar-gutters": {
|
|
610
|
+
padding: "24px 24px 8px"
|
|
611
|
+
}
|
|
612
|
+
},
|
|
613
|
+
...n,
|
|
614
|
+
children: [
|
|
615
|
+
/* @__PURE__ */ a(S, { sx: { flexGrow: 1 }, children: /* @__PURE__ */ a(L0, { sx: { fontWeight: 600 }, variant: "H3", children: e.title }) }),
|
|
616
|
+
/* @__PURE__ */ a(_, { "aria-label": e.close_aria, onClick: o, sx: { mr: -12 }, children: /* @__PURE__ */ a(b0, { color: r.palette.primary.main }) })
|
|
617
|
+
]
|
|
618
|
+
}
|
|
619
|
+
);
|
|
620
|
+
}, Se = ({
|
|
621
|
+
className: e,
|
|
622
|
+
disableSave: o,
|
|
623
|
+
id: n,
|
|
624
|
+
isOpen: r,
|
|
625
|
+
onClose: i,
|
|
626
|
+
onSave: l,
|
|
627
|
+
primaryText: c,
|
|
628
|
+
secondaryText: d,
|
|
629
|
+
children: b,
|
|
630
|
+
...p
|
|
631
|
+
}) => /* @__PURE__ */ y(
|
|
632
|
+
n0,
|
|
633
|
+
{
|
|
634
|
+
anchor: "right",
|
|
635
|
+
className: `mx-kmui-drawer ${e}`,
|
|
636
|
+
id: n ?? void 0,
|
|
637
|
+
onClose: i,
|
|
638
|
+
open: r,
|
|
639
|
+
variant: "temporary",
|
|
640
|
+
...p,
|
|
641
|
+
children: [
|
|
642
|
+
b,
|
|
643
|
+
l && /* @__PURE__ */ a(
|
|
644
|
+
T0,
|
|
645
|
+
{
|
|
646
|
+
isPrimaryDisabled: o,
|
|
647
|
+
onPrimaryAction: l,
|
|
648
|
+
onSecondaryAction: i,
|
|
649
|
+
primaryText: c,
|
|
650
|
+
secondaryText: d
|
|
651
|
+
}
|
|
652
|
+
)
|
|
653
|
+
]
|
|
654
|
+
}
|
|
655
|
+
), G = 32, N = "https://content.moneydesktop.com/storage/MD_Assets", k0 = `${N}/serenity/default_institution_logo.png`, De = ({
|
|
656
|
+
alt: e,
|
|
657
|
+
institutionGuid: o,
|
|
658
|
+
logoUrl: n,
|
|
659
|
+
size: r = G,
|
|
660
|
+
...i
|
|
661
|
+
}) => /* @__PURE__ */ a(
|
|
662
|
+
"img",
|
|
663
|
+
{
|
|
664
|
+
alt: e,
|
|
665
|
+
height: r,
|
|
666
|
+
onError: (l) => l.target.src = k0,
|
|
667
|
+
src: n || `${N}/Ipad%20Logos/100x100/${o}_100x100.png`,
|
|
668
|
+
style: {
|
|
669
|
+
borderRadius: 4
|
|
670
|
+
},
|
|
671
|
+
width: r,
|
|
672
|
+
...i
|
|
673
|
+
}
|
|
674
|
+
), Ne = ({
|
|
675
|
+
alt: e = "",
|
|
676
|
+
categoryGuid: o,
|
|
677
|
+
merchantGuid: n,
|
|
678
|
+
size: r = G,
|
|
679
|
+
...i
|
|
680
|
+
}) => {
|
|
681
|
+
const [l, c] = f.useState(!1);
|
|
682
|
+
return /* @__PURE__ */ y(S, { display: "inline-block", position: "relative", ...i, children: [
|
|
683
|
+
n && !l && /* @__PURE__ */ a(
|
|
684
|
+
"img",
|
|
685
|
+
{
|
|
686
|
+
alt: e,
|
|
687
|
+
"aria-hidden": !e,
|
|
688
|
+
height: r,
|
|
689
|
+
onError: () => c(!0),
|
|
690
|
+
src: `${N}/merchant_logos/${n}.png`,
|
|
691
|
+
style: {
|
|
692
|
+
borderRadius: 4,
|
|
693
|
+
boxSizing: "border-box",
|
|
694
|
+
position: "absolute"
|
|
695
|
+
},
|
|
696
|
+
width: r
|
|
697
|
+
}
|
|
698
|
+
),
|
|
699
|
+
/* @__PURE__ */ a(v0, { categoryGuid: o, size: r })
|
|
700
|
+
] });
|
|
701
|
+
}, x = ({
|
|
702
|
+
bold: e,
|
|
703
|
+
className: o = "",
|
|
704
|
+
children: n,
|
|
705
|
+
color: r,
|
|
706
|
+
sx: i = {},
|
|
707
|
+
truncate: l = !0,
|
|
708
|
+
uppercase: c,
|
|
709
|
+
...d
|
|
710
|
+
}) => /* @__PURE__ */ a(
|
|
711
|
+
l0,
|
|
712
|
+
{
|
|
713
|
+
className: `mx-kmui-text ${o}`,
|
|
714
|
+
color: r,
|
|
715
|
+
sx: [
|
|
716
|
+
e ? {
|
|
717
|
+
fontWeight: 600
|
|
718
|
+
} : {},
|
|
719
|
+
l ? {
|
|
720
|
+
overflow: "hidden",
|
|
721
|
+
textOverflow: "ellipsis",
|
|
722
|
+
whiteSpace: "nowrap"
|
|
723
|
+
} : {},
|
|
724
|
+
c ? {
|
|
725
|
+
textTransform: "uppercase"
|
|
726
|
+
} : {},
|
|
727
|
+
...Array.isArray(i) ? i : [i]
|
|
728
|
+
],
|
|
729
|
+
...d,
|
|
730
|
+
children: n
|
|
731
|
+
}
|
|
732
|
+
), L0 = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(x, { className: `mx-kmui-text h1 ${e}`, component: "h1", variant: "H1", ...n, children: o }), Fe = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(x, { className: `mx-kmui-text h2 ${e}`, component: "h2", variant: "H2", ...n, children: o }), we = ({ className: e = "", children: o, ...n }) => /* @__PURE__ */ a(x, { className: `mx-kmui-text h3 ${e}`, component: "h3", variant: "H3", ...n, children: o }), Ie = ({ className: e = "", children: o, truncate: n, ...r }) => /* @__PURE__ */ a(
|
|
733
|
+
x,
|
|
734
|
+
{
|
|
735
|
+
className: `mx-kmui-text p ${e}`,
|
|
736
|
+
component: "p",
|
|
737
|
+
truncate: n || !1,
|
|
738
|
+
variant: "Body",
|
|
739
|
+
...r,
|
|
740
|
+
children: o
|
|
741
|
+
}
|
|
742
|
+
), Re = ({
|
|
743
|
+
disabled: e = !1,
|
|
744
|
+
label: o = "",
|
|
745
|
+
shrink: n = !0,
|
|
746
|
+
variant: r = "outlined",
|
|
747
|
+
...i
|
|
748
|
+
}) => /* @__PURE__ */ a(
|
|
749
|
+
c0,
|
|
750
|
+
{
|
|
751
|
+
InputLabelProps: {
|
|
752
|
+
shrink: n
|
|
753
|
+
},
|
|
754
|
+
disabled: e,
|
|
755
|
+
label: o,
|
|
756
|
+
variant: r,
|
|
757
|
+
...i
|
|
758
|
+
}
|
|
759
|
+
);
|
|
760
|
+
function A0(e) {
|
|
761
|
+
return /* @__PURE__ */ a(P, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
762
|
+
}
|
|
763
|
+
const ze = ({
|
|
764
|
+
open: e,
|
|
765
|
+
handleClose: o,
|
|
766
|
+
message: n,
|
|
767
|
+
autoHideDuration: r = 3e3,
|
|
768
|
+
severity: i = "success",
|
|
769
|
+
snackbarSx: l,
|
|
770
|
+
showAction: c = !1,
|
|
771
|
+
showClose: d = !1,
|
|
772
|
+
actionText: b = "Undo",
|
|
773
|
+
onActionClick: p,
|
|
774
|
+
multiLine: s = !1
|
|
775
|
+
}) => {
|
|
776
|
+
const m = v(), Z = {
|
|
777
|
+
success: m.palette.success.dark,
|
|
778
|
+
error: m.palette.error.light,
|
|
779
|
+
info: m.palette.info.lighter,
|
|
780
|
+
warning: m.palette.warning.lighter
|
|
781
|
+
}, j = /* @__PURE__ */ y(
|
|
782
|
+
H,
|
|
783
|
+
{
|
|
784
|
+
alignItems: s ? "flex-end" : "center",
|
|
785
|
+
direction: s ? "column-reverse" : "row",
|
|
786
|
+
justifyContent: (
|
|
787
|
+
// eslint-disable-next-line no-nested-ternary
|
|
788
|
+
s && c && d ? "space-between" : "flex-end"
|
|
789
|
+
),
|
|
790
|
+
children: [
|
|
791
|
+
c && /* @__PURE__ */ a(
|
|
792
|
+
A,
|
|
793
|
+
{
|
|
794
|
+
color: "inherit",
|
|
795
|
+
onClick: p || o,
|
|
796
|
+
size: "small",
|
|
797
|
+
sx: {
|
|
798
|
+
color: m.palette.success.contrastText,
|
|
799
|
+
height: 44
|
|
800
|
+
},
|
|
801
|
+
children: b
|
|
802
|
+
}
|
|
803
|
+
),
|
|
804
|
+
d && /* @__PURE__ */ a(
|
|
805
|
+
_,
|
|
806
|
+
{
|
|
807
|
+
"aria-label": "close",
|
|
808
|
+
color: "inherit",
|
|
809
|
+
onClick: o,
|
|
810
|
+
sx: { height: 44, width: 44 },
|
|
811
|
+
children: /* @__PURE__ */ a(M, { fill: !0, name: "close", size: 24, weight: 400 })
|
|
812
|
+
}
|
|
813
|
+
)
|
|
814
|
+
]
|
|
815
|
+
}
|
|
816
|
+
);
|
|
817
|
+
return /* @__PURE__ */ a(
|
|
818
|
+
s0,
|
|
819
|
+
{
|
|
820
|
+
TransitionComponent: A0,
|
|
821
|
+
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
822
|
+
autoHideDuration: r,
|
|
823
|
+
onClose: o,
|
|
824
|
+
open: e,
|
|
825
|
+
sx: {
|
|
826
|
+
...l,
|
|
827
|
+
width: s ? 400 : 325
|
|
828
|
+
},
|
|
829
|
+
children: /* @__PURE__ */ a(
|
|
830
|
+
d0,
|
|
831
|
+
{
|
|
832
|
+
action: j,
|
|
833
|
+
severity: i,
|
|
834
|
+
sx: {
|
|
835
|
+
display: "flex",
|
|
836
|
+
alignItems: "stretch",
|
|
837
|
+
minHeight: d && c && s ? 120 : 56,
|
|
838
|
+
maxHeight: s ? 120 : 56,
|
|
839
|
+
backgroundColor: (F) => F.palette.mode === "light" ? F.palette[i].darker : Z[i],
|
|
840
|
+
width: "100%",
|
|
841
|
+
"& .MuiAlert-icon": {
|
|
842
|
+
alignSelf: s ? "flex-start" : "center"
|
|
843
|
+
},
|
|
844
|
+
"& .MuiAlert-message": {
|
|
845
|
+
paddingTop: s ? 12 : 8,
|
|
846
|
+
paddingBottom: s ? 12 : 8,
|
|
847
|
+
alignSelf: s ? "flex-start" : "center"
|
|
848
|
+
},
|
|
849
|
+
"& .MuiAlert-action": {
|
|
850
|
+
alignItems: "stretch",
|
|
851
|
+
height: "auto"
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
variant: "filled",
|
|
855
|
+
children: /* @__PURE__ */ a(
|
|
856
|
+
x,
|
|
857
|
+
{
|
|
858
|
+
sx: {
|
|
859
|
+
lineHeight: m.typography.Body.lineHeight,
|
|
860
|
+
whiteSpace: s ? "normal" : "nowrap",
|
|
861
|
+
overflow: s ? "visible" : "hidden",
|
|
862
|
+
textOverflow: s ? "clip" : "ellipsis"
|
|
863
|
+
},
|
|
864
|
+
truncate: !s,
|
|
865
|
+
children: n
|
|
866
|
+
}
|
|
867
|
+
)
|
|
868
|
+
}
|
|
869
|
+
)
|
|
870
|
+
}
|
|
871
|
+
);
|
|
872
|
+
}, C = {
|
|
873
|
+
REACT: "react",
|
|
874
|
+
REACT_NATIVE: "react_native",
|
|
875
|
+
NATIVE: "native"
|
|
876
|
+
}, k = {
|
|
877
|
+
LIGHT: "light",
|
|
878
|
+
DARK: "dark"
|
|
879
|
+
}, U = f.createContext(W), K = f.createContext(
|
|
880
|
+
D(k.LIGHT, C.REACT_NATIVE)
|
|
881
|
+
), Ee = ({
|
|
882
|
+
children: e,
|
|
883
|
+
target: o = C.REACT,
|
|
884
|
+
theme: n = k.LIGHT,
|
|
885
|
+
tokenOverrides: r
|
|
886
|
+
}) => {
|
|
887
|
+
const [i, l] = f.useState(n === k.LIGHT ? W : u0), c = f.useMemo(() => ({
|
|
888
|
+
...r
|
|
889
|
+
}), [r]);
|
|
890
|
+
return f.useEffect(() => {
|
|
891
|
+
const d = D(n, o, { ...c });
|
|
892
|
+
l(d);
|
|
893
|
+
}, [n, o, c]), o === C.REACT ? /* @__PURE__ */ a(U.Provider, { value: i, children: e }) : /* @__PURE__ */ a(K.Provider, { value: i, children: e });
|
|
894
|
+
}, Be = (e = C.REACT, o = {}) => {
|
|
895
|
+
const n = e === C.REACT ? U : K, r = f.useContext(n);
|
|
896
|
+
return r || D(k.LIGHT, e, { ...o });
|
|
897
|
+
}, h = {
|
|
898
|
+
LIGHT: "light",
|
|
899
|
+
DARK: "dark"
|
|
900
|
+
}, t = {
|
|
901
|
+
Black: "#000000",
|
|
902
|
+
Error100: "#FCD2CF",
|
|
903
|
+
Error200: "#F45532",
|
|
904
|
+
Error300: "#DF320C",
|
|
905
|
+
Error400: "#C61A0B",
|
|
906
|
+
Error500: "#AE0A0A",
|
|
907
|
+
Neutral100: "#F8F9FB",
|
|
908
|
+
Neutral200: "#EEF1F6",
|
|
909
|
+
Neutral300: "#E4E8EE",
|
|
910
|
+
Neutral400: "#CDD3DD",
|
|
911
|
+
Neutral500: "#A8B1BD",
|
|
912
|
+
Neutral600: "#6A7381",
|
|
913
|
+
Neutral700: "#49505A",
|
|
914
|
+
Neutral800: "#1F2329",
|
|
915
|
+
Neutral900: "#121417",
|
|
916
|
+
Primary100: "#E7F0FE",
|
|
917
|
+
Primary200: "#69A1FA",
|
|
918
|
+
Primary300: "#2D64EF",
|
|
919
|
+
Primary400: "#095ADB",
|
|
920
|
+
Primary500: "#0749B2",
|
|
921
|
+
Success100: "#BEFDDC",
|
|
922
|
+
Success150: "#73F7B8",
|
|
923
|
+
Success200: "#00E998",
|
|
924
|
+
Success300: "#12875E",
|
|
925
|
+
Success400: "#0E6848",
|
|
926
|
+
Success500: "#0A4D36",
|
|
927
|
+
Warning100: "#FEF7B9",
|
|
928
|
+
Warning200: "#FFDA6C",
|
|
929
|
+
Warning300: "#FFB400",
|
|
930
|
+
Warning400: "#E07C02",
|
|
931
|
+
Warning500: "#C33E01",
|
|
932
|
+
White: "#FFFFFF"
|
|
933
|
+
}, H0 = (e) => g0({
|
|
934
|
+
mode: e,
|
|
935
|
+
border: {
|
|
936
|
+
lighter: e === "light" ? t.Neutral200 : t.Neutral800,
|
|
937
|
+
light: e === "light" ? t.Neutral300 : t.Neutral700,
|
|
938
|
+
main: e === "light" ? t.Neutral400 : t.Neutral600,
|
|
939
|
+
dark: t.Neutral500,
|
|
940
|
+
darker: e === "light" ? t.Neutral600 : t.Neutral400
|
|
941
|
+
},
|
|
942
|
+
common: {
|
|
943
|
+
white: t.White,
|
|
944
|
+
black: t.Black
|
|
945
|
+
},
|
|
946
|
+
primary: {
|
|
947
|
+
lighter: t.Primary100,
|
|
948
|
+
light: t.Primary200,
|
|
949
|
+
main: t.Primary300,
|
|
950
|
+
dark: t.Primary400,
|
|
951
|
+
darker: t.Primary500
|
|
952
|
+
},
|
|
953
|
+
secondary: {
|
|
954
|
+
lighter: e === "light" ? t.Neutral500 : t.Neutral200,
|
|
955
|
+
light: e === "light" ? t.Neutral600 : t.Neutral300,
|
|
956
|
+
main: e === "light" ? t.Neutral700 : t.Neutral400,
|
|
957
|
+
dark: e === "light" ? t.Neutral800 : t.Neutral500,
|
|
958
|
+
darker: e === "light" ? t.Neutral900 : t.Neutral600
|
|
959
|
+
},
|
|
960
|
+
text: {
|
|
961
|
+
primary: e === "light" ? t.Neutral900 : t.White,
|
|
962
|
+
secondary: e === "light" ? t.Neutral700 : t.Neutral500,
|
|
963
|
+
disabled: e === "light" ? t.Neutral500 : t.Neutral600
|
|
964
|
+
},
|
|
965
|
+
error: {
|
|
966
|
+
lighter: e === "light" ? t.Error100 : t.Error300,
|
|
967
|
+
light: e === "light" ? t.Error200 : t.Error100,
|
|
968
|
+
main: e === "light" ? t.Error300 : t.Error200,
|
|
969
|
+
dark: e === "light" ? t.Error400 : t.Error300,
|
|
970
|
+
darker: e === "light" ? t.Error500 : t.Error400
|
|
971
|
+
},
|
|
972
|
+
warning: {
|
|
973
|
+
lighter: t.Warning100,
|
|
974
|
+
light: t.Warning200,
|
|
975
|
+
main: t.Warning300,
|
|
976
|
+
dark: t.Warning400,
|
|
977
|
+
darker: t.Warning500
|
|
978
|
+
},
|
|
979
|
+
info: {
|
|
980
|
+
lighter: t.Primary100,
|
|
981
|
+
light: t.Primary200,
|
|
982
|
+
main: t.Primary300,
|
|
983
|
+
dark: t.Primary400,
|
|
984
|
+
darker: t.Primary500
|
|
985
|
+
},
|
|
986
|
+
success: {
|
|
987
|
+
lighter: t.Success100,
|
|
988
|
+
light: e === "light" ? t.Success200 : t.Success150,
|
|
989
|
+
main: e === "light" ? t.Success300 : t.Success200,
|
|
990
|
+
dark: e === "light" ? t.Success400 : t.Success300,
|
|
991
|
+
darker: e === "light" ? t.Success500 : t.Success400
|
|
992
|
+
},
|
|
993
|
+
grey: {
|
|
994
|
+
100: t.Neutral100,
|
|
995
|
+
200: t.Neutral200,
|
|
996
|
+
300: t.Neutral300,
|
|
997
|
+
400: t.Neutral400,
|
|
998
|
+
500: t.Neutral500,
|
|
999
|
+
600: t.Neutral600,
|
|
1000
|
+
700: t.Neutral700,
|
|
1001
|
+
800: t.Neutral800,
|
|
1002
|
+
900: t.Neutral900
|
|
1003
|
+
},
|
|
1004
|
+
action: {
|
|
1005
|
+
active: e === "light" ? t.Primary300 : t.Primary200,
|
|
1006
|
+
disabled: t.Neutral500,
|
|
1007
|
+
disabledBackground: e === "light" ? t.Neutral200 : t.Neutral700,
|
|
1008
|
+
hover: e === "light" ? t.Neutral100 : t.Neutral800,
|
|
1009
|
+
hoverOpacity: 0.1,
|
|
1010
|
+
selected: e === "light" ? t.Primary300 : t.Primary200,
|
|
1011
|
+
selectedOpacity: 0.1
|
|
1012
|
+
},
|
|
1013
|
+
background: {
|
|
1014
|
+
default: e === "light" ? t.Neutral100 : t.Neutral800,
|
|
1015
|
+
paper: e === "light" ? t.White : t.Neutral900,
|
|
1016
|
+
highlight: e === "light" ? t.Neutral200 : t.Neutral600,
|
|
1017
|
+
highlightPrimary: e === "light" ? t.Primary100 : t.Primary500
|
|
1018
|
+
},
|
|
1019
|
+
divider: e === "light" ? t.Neutral400 : t.Neutral700,
|
|
1020
|
+
categories: {
|
|
1021
|
+
autoTransport: "#4B9DBC",
|
|
1022
|
+
billsUtilities: "#EF8B2C",
|
|
1023
|
+
businessServices: "#B3DE8C",
|
|
1024
|
+
education: "#F8AB3A",
|
|
1025
|
+
entertainment: "#AB5B89",
|
|
1026
|
+
feesCharges: "#FF9696",
|
|
1027
|
+
financial: "#6BCDDB",
|
|
1028
|
+
foodDining: "#58AC7B",
|
|
1029
|
+
giftsDonations: "#347AA5",
|
|
1030
|
+
healthFitness: "#5C446E",
|
|
1031
|
+
home: "#FFD84D",
|
|
1032
|
+
income: "#133F49",
|
|
1033
|
+
investments: "#FF7070",
|
|
1034
|
+
kids: "#82D196",
|
|
1035
|
+
personalCare: "#338B7A",
|
|
1036
|
+
pets: "#615BAB",
|
|
1037
|
+
shopping: "#CF5F84",
|
|
1038
|
+
taxes: "#32588D",
|
|
1039
|
+
transfer: "#959CA6",
|
|
1040
|
+
travel: "#E37434",
|
|
1041
|
+
uncategorized: "#FA5555"
|
|
1042
|
+
},
|
|
1043
|
+
chart: {
|
|
1044
|
+
chart1: "#74E4DA",
|
|
1045
|
+
chart2: "#ED64A4",
|
|
1046
|
+
chart3: "#F3DC46",
|
|
1047
|
+
chart4: "#BABFC5",
|
|
1048
|
+
chart5: "#60A9FF",
|
|
1049
|
+
chart6: "#C8BAEE",
|
|
1050
|
+
chart7: "#585E67"
|
|
1051
|
+
},
|
|
1052
|
+
chartMono: {
|
|
1053
|
+
chartMono1: "#C3EAFF",
|
|
1054
|
+
chartMono2: "#8ED7FF",
|
|
1055
|
+
chartMono3: "#60A9FF",
|
|
1056
|
+
chartMono4: "#2F73DA",
|
|
1057
|
+
chartMono5: "#034AB3",
|
|
1058
|
+
chartMono6: "#002966"
|
|
1059
|
+
}
|
|
1060
|
+
}), T = "Inter, Helvetica, Arial, sans-serif", S0 = (e) => m0(e, {
|
|
1061
|
+
fontFamily: T,
|
|
1062
|
+
fontSize: 15,
|
|
1063
|
+
Body: {
|
|
1064
|
+
fontSize: 15,
|
|
1065
|
+
lineHeight: "20px"
|
|
1066
|
+
},
|
|
1067
|
+
body2: void 0,
|
|
1068
|
+
Button: {
|
|
1069
|
+
fontSize: 15
|
|
1070
|
+
},
|
|
1071
|
+
caption: void 0,
|
|
1072
|
+
H1: {
|
|
1073
|
+
fontFamily: T,
|
|
1074
|
+
fontWeight: 700,
|
|
1075
|
+
fontSize: 31,
|
|
1076
|
+
lineHeight: "40px"
|
|
1077
|
+
},
|
|
1078
|
+
H2: {
|
|
1079
|
+
fontFamily: T,
|
|
1080
|
+
fontWeight: 700,
|
|
1081
|
+
fontSize: 23,
|
|
1082
|
+
lineHeight: "32px"
|
|
1083
|
+
},
|
|
1084
|
+
H3: {
|
|
1085
|
+
fontFamily: T,
|
|
1086
|
+
fontWeight: 700,
|
|
1087
|
+
fontSize: 18,
|
|
1088
|
+
lineHeight: "24px"
|
|
1089
|
+
},
|
|
1090
|
+
h4: void 0,
|
|
1091
|
+
h5: void 0,
|
|
1092
|
+
h6: void 0,
|
|
1093
|
+
overline: void 0,
|
|
1094
|
+
Paragraph: {
|
|
1095
|
+
fontSize: 15,
|
|
1096
|
+
lineHeight: "24px"
|
|
1097
|
+
},
|
|
1098
|
+
ParagraphSmall: {
|
|
1099
|
+
fontSize: 13,
|
|
1100
|
+
lineHeight: "20px"
|
|
1101
|
+
},
|
|
1102
|
+
Small: {
|
|
1103
|
+
fontSize: 13,
|
|
1104
|
+
lineHeight: "16px"
|
|
1105
|
+
},
|
|
1106
|
+
subtitle1: void 0,
|
|
1107
|
+
subtitle2: void 0,
|
|
1108
|
+
Tiny: {
|
|
1109
|
+
fontSize: 9,
|
|
1110
|
+
lineHeight: "12px"
|
|
1111
|
+
},
|
|
1112
|
+
XSmall: {
|
|
1113
|
+
fontSize: 11,
|
|
1114
|
+
lineHeight: "16px"
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
p0.setLicenseKey(
|
|
1118
|
+
"6e7dd593526efa1f157230ecf06c9b02Tz0xMDA5NjAsRT0xNzYyMDQxNjAwMDAwLFM9cHJvLExNPWFubnVhbCxQVj1RMy0yMDI0LEtWPTI="
|
|
1119
|
+
);
|
|
1120
|
+
const L = [...O().shadows];
|
|
1121
|
+
L[1] = "0px 2px 8px rgba(106, 115, 129, 0.12)";
|
|
1122
|
+
L[2] = "0px 6px 12px rgba(106, 115, 129, 0.16), 0px 3px 8px rgba(87, 102, 117, 0.06)";
|
|
1123
|
+
L[3] = "0px 12px 20px rgba(106, 115, 129, 0.22)";
|
|
1124
|
+
const E = "0px 0px 0px 2px rgba(82, 138, 224, 0.8)", B = "inset 0px 0px 0px 2px rgba(82, 138, 224, 0.8)", D0 = "cubic-bezier(.475,.425,0,.995)", Oe = (e) => {
|
|
1125
|
+
const o = H0(e), n = S0(o);
|
|
1126
|
+
return O({
|
|
1127
|
+
breakpoints: {
|
|
1128
|
+
values: {
|
|
1129
|
+
xs: 0,
|
|
1130
|
+
sm: 576,
|
|
1131
|
+
md: 768,
|
|
1132
|
+
lg: 992,
|
|
1133
|
+
xl: 1200
|
|
1134
|
+
}
|
|
1135
|
+
},
|
|
1136
|
+
palette: o,
|
|
1137
|
+
shadows: L,
|
|
1138
|
+
shape: {
|
|
1139
|
+
borderRadius: 4
|
|
1140
|
+
},
|
|
1141
|
+
spacing: 1,
|
|
1142
|
+
typography: n,
|
|
1143
|
+
components: {
|
|
1144
|
+
MuiAutocomplete: {
|
|
1145
|
+
styleOverrides: {
|
|
1146
|
+
root: ({ theme: r }) => ({
|
|
1147
|
+
"& .MuiAutocomplete-endAdornment": {
|
|
1148
|
+
marginTop: -5
|
|
1149
|
+
},
|
|
1150
|
+
"& .MuiIconButton-root": {
|
|
1151
|
+
color: r.palette.mode === "light" ? r.palette.grey[700] : r.palette.grey[400],
|
|
1152
|
+
"&:hover": {
|
|
1153
|
+
backgroundColor: "inherit"
|
|
1154
|
+
}
|
|
1155
|
+
}
|
|
1156
|
+
})
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
MuiAlert: {
|
|
1160
|
+
defaultProps: {
|
|
1161
|
+
iconMapping: {
|
|
1162
|
+
success: /* @__PURE__ */ a(M, { fill: !0, name: "check_circle", size: 24, weight: 400 }),
|
|
1163
|
+
error: /* @__PURE__ */ a(M, { fill: !0, name: "error", size: 24, weight: 400 }),
|
|
1164
|
+
warning: /* @__PURE__ */ a(M, { fill: !0, name: "warning", size: 24, weight: 400 }),
|
|
1165
|
+
info: /* @__PURE__ */ a(M, { fill: !0, name: "info", size: 24, weight: 400 })
|
|
1166
|
+
}
|
|
1167
|
+
},
|
|
1168
|
+
styleOverrides: {
|
|
1169
|
+
standard: ({ theme: r }) => ({
|
|
1170
|
+
background: r.palette.background.paper,
|
|
1171
|
+
color: r.palette.text.primary
|
|
1172
|
+
}),
|
|
1173
|
+
root: {
|
|
1174
|
+
alignItems: "center",
|
|
1175
|
+
borderRadius: 6,
|
|
1176
|
+
fontSize: 15
|
|
1177
|
+
},
|
|
1178
|
+
action: {
|
|
1179
|
+
paddingTop: 0,
|
|
1180
|
+
"& .MuiIconButton-root": {
|
|
1181
|
+
"&:hover": {
|
|
1182
|
+
backgroundColor: "rgba(18, 20, 23, 0.1);"
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
1185
|
+
}
|
|
1186
|
+
}
|
|
1187
|
+
},
|
|
1188
|
+
MuiAvatar: {
|
|
1189
|
+
styleOverrides: {
|
|
1190
|
+
root: ({ theme: r }) => ({
|
|
1191
|
+
backgroundColor: r.palette.mode === h.LIGHT ? r.palette.grey[400] : r.palette.grey[700]
|
|
1192
|
+
})
|
|
1193
|
+
}
|
|
1194
|
+
},
|
|
1195
|
+
MuiButtonBase: {
|
|
1196
|
+
defaultProps: {
|
|
1197
|
+
disableRipple: !0
|
|
1198
|
+
},
|
|
1199
|
+
styleOverrides: {
|
|
1200
|
+
root: {
|
|
1201
|
+
"&.Mui-focusVisible": {
|
|
1202
|
+
boxShadow: E
|
|
1203
|
+
}
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
},
|
|
1207
|
+
MuiButton: {
|
|
1208
|
+
styleOverrides: {
|
|
1209
|
+
contained: ({ ownerState: r, theme: i }) => ({
|
|
1210
|
+
...i.palette.mode === h.DARK && r.color === "primary" && {
|
|
1211
|
+
color: i.palette.grey[900],
|
|
1212
|
+
backgroundColor: i.palette.primary.light
|
|
1213
|
+
},
|
|
1214
|
+
boxShadow: "none",
|
|
1215
|
+
"&:hover": {
|
|
1216
|
+
boxShadow: "none"
|
|
1217
|
+
},
|
|
1218
|
+
"&:active": {
|
|
1219
|
+
backgroundColor: r.color === "error" ? i.palette.error.darker : i.palette.primary.darker
|
|
1220
|
+
}
|
|
1221
|
+
}),
|
|
1222
|
+
outlined: ({ theme: r }) => ({
|
|
1223
|
+
borderColor: r.palette.border.main,
|
|
1224
|
+
"&:hover": {
|
|
1225
|
+
borderColor: r.palette.border.dark
|
|
1226
|
+
},
|
|
1227
|
+
"&:active": {
|
|
1228
|
+
borderColor: r.palette.border.darker
|
|
1229
|
+
}
|
|
1230
|
+
}),
|
|
1231
|
+
outlinedPrimary: ({ theme: r }) => ({
|
|
1232
|
+
...r.palette.mode === h.DARK && {
|
|
1233
|
+
color: r.palette.primary.light
|
|
1234
|
+
}
|
|
1235
|
+
}),
|
|
1236
|
+
text: ({ ownerState: r, theme: i }) => ({
|
|
1237
|
+
"&:active": {
|
|
1238
|
+
...r.color === "error" && {
|
|
1239
|
+
backgroundColor: i.palette.error.lighter
|
|
1240
|
+
},
|
|
1241
|
+
...r.color === "primary" && {
|
|
1242
|
+
backgroundColor: i.palette.primary.light
|
|
1243
|
+
},
|
|
1244
|
+
...r.color === "secondary" && {
|
|
1245
|
+
backgroundColor: i.palette.secondary.lighter
|
|
1246
|
+
},
|
|
1247
|
+
...i.palette.mode === h.DARK && {
|
|
1248
|
+
color: i.palette.common.white
|
|
1249
|
+
},
|
|
1250
|
+
...i.palette.mode === h.DARK && r.color === "secondary" && {
|
|
1251
|
+
color: i.palette.secondary.darker
|
|
1252
|
+
}
|
|
1253
|
+
}
|
|
1254
|
+
}),
|
|
1255
|
+
textPrimary: ({ theme: r }) => ({
|
|
1256
|
+
...r.palette.mode === h.DARK && {
|
|
1257
|
+
color: r.palette.primary.light
|
|
1258
|
+
}
|
|
1259
|
+
}),
|
|
1260
|
+
root: {
|
|
1261
|
+
fontWeight: 700,
|
|
1262
|
+
textTransform: "none",
|
|
1263
|
+
paddingLeft: 16,
|
|
1264
|
+
paddingRight: 16,
|
|
1265
|
+
"&.Mui-disabled": {
|
|
1266
|
+
cursor: "not-allowed"
|
|
1267
|
+
},
|
|
1268
|
+
"&.Mui-focusVisible": {
|
|
1269
|
+
boxShadow: E
|
|
1270
|
+
}
|
|
1271
|
+
},
|
|
1272
|
+
sizeMedium: {
|
|
1273
|
+
height: 44
|
|
1274
|
+
}
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
MuiButtonGroup: {
|
|
1278
|
+
defaultProps: {
|
|
1279
|
+
disableRipple: !0
|
|
1280
|
+
},
|
|
1281
|
+
styleOverrides: {
|
|
1282
|
+
root: ({ theme: r }) => ({
|
|
1283
|
+
"&:hover": {
|
|
1284
|
+
borderColor: r.palette.border.dark
|
|
1285
|
+
},
|
|
1286
|
+
"button:hover + button": {
|
|
1287
|
+
borderLeftColor: r.palette.border.dark
|
|
1288
|
+
},
|
|
1289
|
+
"&:active": {
|
|
1290
|
+
borderColor: r.palette.border.darker
|
|
1291
|
+
},
|
|
1292
|
+
"button:active + button": {
|
|
1293
|
+
borderLeftColor: r.palette.border.darker
|
|
1294
|
+
}
|
|
1295
|
+
})
|
|
1296
|
+
}
|
|
1297
|
+
},
|
|
1298
|
+
MuiTabs: {
|
|
1299
|
+
styleOverrides: {
|
|
1300
|
+
indicator: ({ theme: r }) => ({
|
|
1301
|
+
height: 3,
|
|
1302
|
+
backgroundColor: r.palette.action.selected
|
|
1303
|
+
})
|
|
1304
|
+
}
|
|
1305
|
+
},
|
|
1306
|
+
MuiTab: {
|
|
1307
|
+
styleOverrides: {
|
|
1308
|
+
root: ({ theme: r }) => ({
|
|
1309
|
+
textTransform: "none",
|
|
1310
|
+
fontWeight: 600,
|
|
1311
|
+
"&.Mui-focusVisible": {
|
|
1312
|
+
boxShadow: B
|
|
1313
|
+
},
|
|
1314
|
+
"&:not(.Mui-selected)": {
|
|
1315
|
+
borderBottom: `2px solid ${r.palette.divider}`
|
|
1316
|
+
},
|
|
1317
|
+
"&.Mui-selected": {
|
|
1318
|
+
color: r.palette.action.selected,
|
|
1319
|
+
paddingBottom: 13
|
|
1320
|
+
}
|
|
1321
|
+
})
|
|
1322
|
+
}
|
|
1323
|
+
},
|
|
1324
|
+
MuiCheckbox: {
|
|
1325
|
+
styleOverrides: {
|
|
1326
|
+
root: ({ theme: r }) => ({
|
|
1327
|
+
color: r.palette.mode === h.LIGHT ? r.palette.grey[800] : r.palette.common.white,
|
|
1328
|
+
"&:hover": {
|
|
1329
|
+
backgroundColor: "transparent"
|
|
1330
|
+
},
|
|
1331
|
+
"&.Mui-checked": {
|
|
1332
|
+
color: r.palette.mode === h.LIGHT ? r.palette.primary.main : r.palette.common.white
|
|
1333
|
+
},
|
|
1334
|
+
"&.MuiCheckbox-colorError": {
|
|
1335
|
+
color: r.palette.error.main
|
|
1336
|
+
}
|
|
1337
|
+
})
|
|
1338
|
+
}
|
|
1339
|
+
},
|
|
1340
|
+
MuiChip: {
|
|
1341
|
+
styleOverrides: {
|
|
1342
|
+
outlined: ({ theme: r }) => {
|
|
1343
|
+
const { common: i, grey: l, mode: c } = r.palette;
|
|
1344
|
+
return {
|
|
1345
|
+
backgroundColor: "transparent",
|
|
1346
|
+
borderColor: c === h.LIGHT ? l[600] : l[500],
|
|
1347
|
+
borderWidth: 1,
|
|
1348
|
+
color: c === h.LIGHT ? l[900] : i.white,
|
|
1349
|
+
fontSize: 11,
|
|
1350
|
+
// XSmall
|
|
1351
|
+
height: 24,
|
|
1352
|
+
"&:hover": {
|
|
1353
|
+
borderColor: c === h.LIGHT ? l[300] : l[600],
|
|
1354
|
+
backgroundColor: c === h.LIGHT ? l[300] : l[600]
|
|
1355
|
+
}
|
|
1356
|
+
};
|
|
1357
|
+
},
|
|
1358
|
+
filled: {
|
|
1359
|
+
display: "inline-flex",
|
|
1360
|
+
alignItems: "center",
|
|
1361
|
+
padding: "8px 12px",
|
|
1362
|
+
borderRadius: 16,
|
|
1363
|
+
// XLarge
|
|
1364
|
+
fontSize: 9,
|
|
1365
|
+
// Tiny
|
|
1366
|
+
fontWeight: 600,
|
|
1367
|
+
// Semibold,
|
|
1368
|
+
lineHeight: 12,
|
|
1369
|
+
// Tiny,
|
|
1370
|
+
letterSpacing: 0.33,
|
|
1371
|
+
// TinyUppercase,
|
|
1372
|
+
textTransform: "uppercase",
|
|
1373
|
+
gap: 8,
|
|
1374
|
+
// XSmall
|
|
1375
|
+
whiteSpace: "nowrap"
|
|
1376
|
+
},
|
|
1377
|
+
icon: {
|
|
1378
|
+
color: "inherit"
|
|
1379
|
+
},
|
|
1380
|
+
deleteIcon: {
|
|
1381
|
+
color: "inherit",
|
|
1382
|
+
"&:hover": {
|
|
1383
|
+
color: "inherit"
|
|
1384
|
+
}
|
|
1385
|
+
}
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
MuiCircularProgress: {
|
|
1389
|
+
styleOverrides: {
|
|
1390
|
+
root: {
|
|
1391
|
+
animationDuration: "1.6s",
|
|
1392
|
+
color: "primary",
|
|
1393
|
+
[`& .${h0.circle}`]: {
|
|
1394
|
+
strokeLinecap: "round"
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
}
|
|
1398
|
+
},
|
|
1399
|
+
MuiDayCalendar: {
|
|
1400
|
+
styleOverrides: {
|
|
1401
|
+
weekDayLabel: ({ theme: r }) => ({
|
|
1402
|
+
// TODO: Need to add additional styles to the theme such as SmallBold or use Caption
|
|
1403
|
+
fontSize: r.typography.Small.fontSize,
|
|
1404
|
+
fontWeight: 700
|
|
1405
|
+
})
|
|
1406
|
+
}
|
|
1407
|
+
},
|
|
1408
|
+
MuiDataGrid: {
|
|
1409
|
+
styleOverrides: {
|
|
1410
|
+
root: ({ theme: r }) => ({
|
|
1411
|
+
border: "none",
|
|
1412
|
+
borderRadius: 0,
|
|
1413
|
+
fontSize: r.typography.Small.fontSize,
|
|
1414
|
+
"& .MuiDataGrid-cell": {
|
|
1415
|
+
display: "flex",
|
|
1416
|
+
alignItems: "center",
|
|
1417
|
+
borderTop: "1px solid",
|
|
1418
|
+
borderColor: r.palette.background.highlight
|
|
1419
|
+
},
|
|
1420
|
+
"& .MuiDataGrid-cell:focus": { outline: "unset" },
|
|
1421
|
+
"& .MuiDataGrid-iconSeparator": { display: "none" },
|
|
1422
|
+
"& .MuiDataGrid-columnHeaders": {
|
|
1423
|
+
backgroundColor: r.palette.background.paper,
|
|
1424
|
+
borderBottom: "2px solid",
|
|
1425
|
+
borderColor: r.palette.divider
|
|
1426
|
+
},
|
|
1427
|
+
"& .MuiDataGrid-columnHeaderTitle": {
|
|
1428
|
+
fontWeight: 600
|
|
1429
|
+
},
|
|
1430
|
+
// remove default top border
|
|
1431
|
+
"& .MuiDataGrid-row.MuiDataGrid-row--firstVisible .MuiDataGrid-cell": {
|
|
1432
|
+
borderTop: "none"
|
|
1433
|
+
},
|
|
1434
|
+
"& .MuiDataGrid-container--top [role=row]": { background: "none" },
|
|
1435
|
+
"& .MuiDataGrid-row": { cursor: "pointer" },
|
|
1436
|
+
"& .MuiDataGrid-columnHeader--last": { pr: 16 },
|
|
1437
|
+
"& .MuiDataGrid-cell--textRight": { pr: 16 }
|
|
1438
|
+
})
|
|
1439
|
+
}
|
|
1440
|
+
},
|
|
1441
|
+
MuiPickersToolbarButton: {
|
|
1442
|
+
styleOverrides: {
|
|
1443
|
+
root: {
|
|
1444
|
+
height: 24
|
|
1445
|
+
}
|
|
1446
|
+
}
|
|
1447
|
+
},
|
|
1448
|
+
MuiDateRangePickerDay: {
|
|
1449
|
+
styleOverrides: {
|
|
1450
|
+
root: ({ theme: r }) => ({
|
|
1451
|
+
":first-of-type": {
|
|
1452
|
+
borderTopLeftRadius: 4,
|
|
1453
|
+
borderBottomLeftRadius: 4,
|
|
1454
|
+
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1455
|
+
borderTopLeftRadius: 4,
|
|
1456
|
+
borderBottomLeftRadius: 4
|
|
1457
|
+
}
|
|
1458
|
+
},
|
|
1459
|
+
":last-of-type": {
|
|
1460
|
+
borderTopRightRadius: 4,
|
|
1461
|
+
borderBottomRightRadius: 4,
|
|
1462
|
+
"& .MuiDateRangePickerDay-rangeIntervalDayPreview": {
|
|
1463
|
+
borderTopRightRadius: 4,
|
|
1464
|
+
borderBottomRightRadius: 4
|
|
1465
|
+
}
|
|
1466
|
+
},
|
|
1467
|
+
"& .Mui-selected": {
|
|
1468
|
+
borderRadius: 4
|
|
1469
|
+
},
|
|
1470
|
+
"& .MuiPickersDay-dayOutsideMonth": {
|
|
1471
|
+
color: r.palette.grey[500]
|
|
1472
|
+
}
|
|
1473
|
+
}),
|
|
1474
|
+
day: {
|
|
1475
|
+
borderRadius: 4
|
|
1476
|
+
},
|
|
1477
|
+
rangeIntervalDayPreview: {
|
|
1478
|
+
borderRadius: 4
|
|
1479
|
+
}
|
|
1480
|
+
}
|
|
1481
|
+
},
|
|
1482
|
+
MuiDialog: {
|
|
1483
|
+
styleOverrides: {
|
|
1484
|
+
root: {
|
|
1485
|
+
"& .MuiDialogTitle-root": {
|
|
1486
|
+
fontSize: 18,
|
|
1487
|
+
lineHeight: "24px",
|
|
1488
|
+
fontWeight: 700,
|
|
1489
|
+
padding: 24
|
|
1490
|
+
},
|
|
1491
|
+
"& .MuiTypography-Body": {
|
|
1492
|
+
padding: "0 24px"
|
|
1493
|
+
},
|
|
1494
|
+
"& .MuiDialog-paper": {
|
|
1495
|
+
minWidth: 400
|
|
1496
|
+
},
|
|
1497
|
+
"& .MuiDialogContent-root": {
|
|
1498
|
+
paddingBottom: 0,
|
|
1499
|
+
paddingTop: 8
|
|
1500
|
+
},
|
|
1501
|
+
"& .MuiDialogContentText-root": {
|
|
1502
|
+
fontSize: 15
|
|
1503
|
+
}
|
|
1504
|
+
}
|
|
1505
|
+
}
|
|
1506
|
+
},
|
|
1507
|
+
MuiDivider: {
|
|
1508
|
+
defaultProps: {
|
|
1509
|
+
"aria-hidden": !0
|
|
1510
|
+
},
|
|
1511
|
+
styleOverrides: {
|
|
1512
|
+
root: ({ theme: r }) => ({
|
|
1513
|
+
borderColor: r.palette.border.light
|
|
1514
|
+
}),
|
|
1515
|
+
inset: {
|
|
1516
|
+
marginLeft: 68
|
|
1517
|
+
}
|
|
1518
|
+
}
|
|
1519
|
+
},
|
|
1520
|
+
MuiDrawer: {
|
|
1521
|
+
styleOverrides: {
|
|
1522
|
+
root: {
|
|
1523
|
+
"& .MuiDrawer-paper": {
|
|
1524
|
+
maxWidth: 450,
|
|
1525
|
+
width: "100%"
|
|
1526
|
+
}
|
|
1527
|
+
}
|
|
1528
|
+
}
|
|
1529
|
+
},
|
|
1530
|
+
MuiIcon: {
|
|
1531
|
+
defaultProps: {
|
|
1532
|
+
baseClassName: "material-symbols-rounded"
|
|
1533
|
+
}
|
|
1534
|
+
},
|
|
1535
|
+
MuiIconButton: {
|
|
1536
|
+
styleOverrides: {
|
|
1537
|
+
root: {
|
|
1538
|
+
borderRadius: 8,
|
|
1539
|
+
// Large
|
|
1540
|
+
minHeight: 44,
|
|
1541
|
+
// touch target
|
|
1542
|
+
minWidth: 44
|
|
1543
|
+
// touch target
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
},
|
|
1547
|
+
MuiInputBase: {
|
|
1548
|
+
styleOverrides: {
|
|
1549
|
+
input: {
|
|
1550
|
+
fontSize: 15,
|
|
1551
|
+
// Body
|
|
1552
|
+
lineHeight: "20px",
|
|
1553
|
+
// Body
|
|
1554
|
+
transition: `box-shadow 350ms ${D0}`,
|
|
1555
|
+
width: "100%",
|
|
1556
|
+
"&.MuiOutlinedInput-input.Mui-disabled": {
|
|
1557
|
+
padding: 12,
|
|
1558
|
+
// Small
|
|
1559
|
+
paddingTop: 16
|
|
1560
|
+
// Medium
|
|
1561
|
+
},
|
|
1562
|
+
"&:focus": {
|
|
1563
|
+
outline: "none"
|
|
1564
|
+
}
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
},
|
|
1568
|
+
MuiLink: {
|
|
1569
|
+
styleOverrides: {
|
|
1570
|
+
root: ({ theme: r }) => ({
|
|
1571
|
+
display: "inline-flex",
|
|
1572
|
+
alignItems: "center",
|
|
1573
|
+
boxSizing: "border-box",
|
|
1574
|
+
cursor: "pointer",
|
|
1575
|
+
borderBottom: "1px solid transparent",
|
|
1576
|
+
textDecoration: "none",
|
|
1577
|
+
height: 20,
|
|
1578
|
+
transition: "background-color 300ms cubic-bezier(.475,.425,0,.995)",
|
|
1579
|
+
marginLeft: 4,
|
|
1580
|
+
marginRight: 4,
|
|
1581
|
+
"&:focus": {
|
|
1582
|
+
outline: "rgba(82, 138, 224, 0.8) auto 1px"
|
|
1583
|
+
},
|
|
1584
|
+
"&:hover": {
|
|
1585
|
+
backgroundColor: r.palette.action.hover,
|
|
1586
|
+
borderBottom: "1px solid"
|
|
1587
|
+
},
|
|
1588
|
+
fontWeight: 600
|
|
1589
|
+
})
|
|
1590
|
+
},
|
|
1591
|
+
variants: [
|
|
1592
|
+
{
|
|
1593
|
+
props: { color: "primary" },
|
|
1594
|
+
style: ({ theme: r }) => r.palette.mode === h.DARK ? { color: r.palette.primary.light } : {}
|
|
1595
|
+
}
|
|
1596
|
+
]
|
|
1597
|
+
},
|
|
1598
|
+
MuiList: {
|
|
1599
|
+
styleOverrides: {
|
|
1600
|
+
dense: {
|
|
1601
|
+
"& .MuiListItemButton-root": {
|
|
1602
|
+
minHeight: 44
|
|
1603
|
+
},
|
|
1604
|
+
"& .MuiListItem-root": {
|
|
1605
|
+
minHeight: 44
|
|
1606
|
+
}
|
|
1607
|
+
},
|
|
1608
|
+
root: {
|
|
1609
|
+
paddingTop: 0,
|
|
1610
|
+
paddingBottom: 0
|
|
1611
|
+
}
|
|
1612
|
+
}
|
|
1613
|
+
},
|
|
1614
|
+
MuiListItem: {
|
|
1615
|
+
defaultProps: {
|
|
1616
|
+
disableGutters: !0,
|
|
1617
|
+
disablePadding: !0
|
|
1618
|
+
},
|
|
1619
|
+
styleOverrides: {
|
|
1620
|
+
root: ({ ownerState: r, theme: i }) => {
|
|
1621
|
+
const { mode: l, primary: c } = i.palette;
|
|
1622
|
+
return {
|
|
1623
|
+
minHeight: 64,
|
|
1624
|
+
...!r.disablePadding && {
|
|
1625
|
+
paddingTop: 12,
|
|
1626
|
+
paddingBottom: 12,
|
|
1627
|
+
paddingLeft: 24
|
|
1628
|
+
},
|
|
1629
|
+
"& .MuiIconButton-root": {
|
|
1630
|
+
color: l === h.LIGHT ? c.main : c.light
|
|
1631
|
+
}
|
|
1632
|
+
};
|
|
1633
|
+
}
|
|
1634
|
+
}
|
|
1635
|
+
},
|
|
1636
|
+
MuiCollapse: {
|
|
1637
|
+
styleOverrides: {
|
|
1638
|
+
root: ({ theme: r }) => ({
|
|
1639
|
+
"& .MuiListItem-root": {
|
|
1640
|
+
minHeight: 44
|
|
1641
|
+
},
|
|
1642
|
+
"& .MuiListItemButton-root": {
|
|
1643
|
+
minHeight: 44,
|
|
1644
|
+
paddingLeft: 12,
|
|
1645
|
+
"&:hover": {
|
|
1646
|
+
backgroundColor: `${r.palette.secondary.lighter}33`
|
|
1647
|
+
},
|
|
1648
|
+
"&:active": {
|
|
1649
|
+
backgroundColor: `${r.palette.secondary.lighter}66`
|
|
1650
|
+
}
|
|
1651
|
+
}
|
|
1652
|
+
})
|
|
1653
|
+
}
|
|
1654
|
+
},
|
|
1655
|
+
MuiListItemAvatar: {
|
|
1656
|
+
styleOverrides: {
|
|
1657
|
+
root: {
|
|
1658
|
+
height: 32,
|
|
1659
|
+
marginRight: 12,
|
|
1660
|
+
minWidth: 32,
|
|
1661
|
+
width: 32,
|
|
1662
|
+
"& .MuiAvatar-root": {
|
|
1663
|
+
height: 32,
|
|
1664
|
+
width: 32
|
|
1665
|
+
}
|
|
1666
|
+
}
|
|
1667
|
+
}
|
|
1668
|
+
},
|
|
1669
|
+
MuiListItemButton: {
|
|
1670
|
+
styleOverrides: {
|
|
1671
|
+
root: ({ theme: r }) => ({
|
|
1672
|
+
minHeight: 64,
|
|
1673
|
+
paddingLeft: 24,
|
|
1674
|
+
paddingRight: 24,
|
|
1675
|
+
paddingTop: 12,
|
|
1676
|
+
paddingBottom: 12,
|
|
1677
|
+
"&.Mui-focusVisible": {
|
|
1678
|
+
boxShadow: B
|
|
1679
|
+
},
|
|
1680
|
+
"&:active": {
|
|
1681
|
+
backgroundColor: `${r.palette.secondary.lighter}33`
|
|
1682
|
+
},
|
|
1683
|
+
"&.Mui-selected": {
|
|
1684
|
+
fontWeight: "bold",
|
|
1685
|
+
borderLeft: `3px solid ${r.palette.primary.main}`,
|
|
1686
|
+
paddingLeft: 21
|
|
1687
|
+
}
|
|
1688
|
+
})
|
|
1689
|
+
}
|
|
1690
|
+
},
|
|
1691
|
+
MuiListItemText: {
|
|
1692
|
+
defaultProps: {
|
|
1693
|
+
primaryTypographyProps: {
|
|
1694
|
+
fontWeight: 600,
|
|
1695
|
+
fontSize: 15
|
|
1696
|
+
},
|
|
1697
|
+
secondaryTypographyProps: {
|
|
1698
|
+
fontSize: 11,
|
|
1699
|
+
color: "text.primary"
|
|
1700
|
+
}
|
|
1701
|
+
},
|
|
1702
|
+
styleOverrides: {
|
|
1703
|
+
root: {
|
|
1704
|
+
marginTop: 0,
|
|
1705
|
+
marginBottom: 0
|
|
1706
|
+
}
|
|
1707
|
+
}
|
|
1708
|
+
},
|
|
1709
|
+
MuiListItemIcon: {
|
|
1710
|
+
styleOverrides: {
|
|
1711
|
+
root: ({ theme: r }) => ({
|
|
1712
|
+
minWidth: "auto",
|
|
1713
|
+
marginLeft: 8,
|
|
1714
|
+
color: r.palette.text.primary
|
|
1715
|
+
})
|
|
1716
|
+
}
|
|
1717
|
+
},
|
|
1718
|
+
MuiListSubheader: {
|
|
1719
|
+
defaultProps: {
|
|
1720
|
+
color: "inherit"
|
|
1721
|
+
// without this it defaults to the secondary color
|
|
1722
|
+
},
|
|
1723
|
+
styleOverrides: {
|
|
1724
|
+
root: ({ theme: r }) => ({
|
|
1725
|
+
lineHeight: "inherit",
|
|
1726
|
+
top: -1,
|
|
1727
|
+
// This fixes an issue where there is a 1px gap when the subheader sticks to the top while scrolling
|
|
1728
|
+
backgroundColor: r.palette.background.default
|
|
1729
|
+
})
|
|
1730
|
+
}
|
|
1731
|
+
},
|
|
1732
|
+
// This styles the Menu dropdown including Menus and Select dropdowns
|
|
1733
|
+
MuiMenu: {
|
|
1734
|
+
styleOverrides: {
|
|
1735
|
+
paper: {
|
|
1736
|
+
padding: "4px 4px 0",
|
|
1737
|
+
// '(Tiny)px (Tiny)px 0'
|
|
1738
|
+
"& .MuiMenu-list": {
|
|
1739
|
+
padding: 0
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
}
|
|
1743
|
+
},
|
|
1744
|
+
MuiMenuItem: {
|
|
1745
|
+
styleOverrides: {
|
|
1746
|
+
root: {
|
|
1747
|
+
padding: "12px 8px",
|
|
1748
|
+
// '(Small)px (XSmall)px'
|
|
1749
|
+
marginBottom: 4,
|
|
1750
|
+
// Tiny
|
|
1751
|
+
borderRadius: 4
|
|
1752
|
+
// Medium
|
|
1753
|
+
}
|
|
1754
|
+
}
|
|
1755
|
+
},
|
|
1756
|
+
MuiOutlinedInput: {
|
|
1757
|
+
styleOverrides: {
|
|
1758
|
+
root: ({ theme: r }) => ({
|
|
1759
|
+
"&.Mui-focused": {
|
|
1760
|
+
"& .MuiOutlinedInput-notchedOutline": {
|
|
1761
|
+
outline: "none"
|
|
1762
|
+
}
|
|
1763
|
+
},
|
|
1764
|
+
"& .MuiSelect-icon": {
|
|
1765
|
+
color: r.palette.mode === h.LIGHT ? r.palette.grey[900] : r.palette.common.white
|
|
1766
|
+
}
|
|
1767
|
+
})
|
|
1768
|
+
}
|
|
1769
|
+
},
|
|
1770
|
+
MuiPaper: {
|
|
1771
|
+
styleOverrides: {
|
|
1772
|
+
root: {
|
|
1773
|
+
backgroundImage: "unset"
|
|
1774
|
+
}
|
|
1775
|
+
}
|
|
1776
|
+
},
|
|
1777
|
+
MuiPickersArrowSwitcher: {
|
|
1778
|
+
styleOverrides: {
|
|
1779
|
+
button: {
|
|
1780
|
+
marginLeft: 0,
|
|
1781
|
+
marginRight: 0
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
},
|
|
1785
|
+
MuiPickersDay: {
|
|
1786
|
+
styleOverrides: {
|
|
1787
|
+
today: ({ theme: r }) => ({
|
|
1788
|
+
color: r.palette.action.selected,
|
|
1789
|
+
fontWeight: 700,
|
|
1790
|
+
textDecoration: "2px underline",
|
|
1791
|
+
textUnderlineOffset: 4,
|
|
1792
|
+
":not(.Mui-selected)": {
|
|
1793
|
+
borderWidth: 0
|
|
1794
|
+
}
|
|
1795
|
+
})
|
|
1796
|
+
}
|
|
1797
|
+
},
|
|
1798
|
+
MuiPickersLayout: {
|
|
1799
|
+
styleOverrides: {
|
|
1800
|
+
root: {
|
|
1801
|
+
backgroundColor: "transparent !important",
|
|
1802
|
+
padding: 16
|
|
1803
|
+
},
|
|
1804
|
+
toolbar: ({ theme: r }) => ({
|
|
1805
|
+
gridColumn: "1/4",
|
|
1806
|
+
"& > .MuiTypography-root": {
|
|
1807
|
+
textTransform: "uppercase",
|
|
1808
|
+
fontSize: r.typography.Small.fontSize,
|
|
1809
|
+
fontWeight: 600,
|
|
1810
|
+
lineHeight: r.typography.Small.lineHeight
|
|
1811
|
+
}
|
|
1812
|
+
})
|
|
1813
|
+
}
|
|
1814
|
+
},
|
|
1815
|
+
MuiPickersToolbar: {
|
|
1816
|
+
styleOverrides: {
|
|
1817
|
+
content: ({ theme: r }) => ({
|
|
1818
|
+
marginTop: 4,
|
|
1819
|
+
"& .MuiTypography-root": {
|
|
1820
|
+
fontSize: r.typography.H3.fontSize,
|
|
1821
|
+
lineHeight: r.typography.H3.lineHeight
|
|
1822
|
+
},
|
|
1823
|
+
"& .MuiPickersToolbarText-root": {
|
|
1824
|
+
color: r.palette.mode === h.LIGHT ? r.palette.secondary.light : r.palette.secondary.dark,
|
|
1825
|
+
"&.Mui-selected": {
|
|
1826
|
+
color: r.palette.text.primary
|
|
1827
|
+
}
|
|
1828
|
+
}
|
|
1829
|
+
})
|
|
1830
|
+
}
|
|
1831
|
+
},
|
|
1832
|
+
MuiFormControlLabel: {
|
|
1833
|
+
styleOverrides: {
|
|
1834
|
+
label: {
|
|
1835
|
+
fontSize: 16
|
|
1836
|
+
}
|
|
1837
|
+
}
|
|
1838
|
+
},
|
|
1839
|
+
MuiFormHelperText: {
|
|
1840
|
+
styleOverrides: {
|
|
1841
|
+
root: {
|
|
1842
|
+
"&.Mui-error": {
|
|
1843
|
+
fontSize: 13,
|
|
1844
|
+
// Small
|
|
1845
|
+
marginLeft: 0
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
}
|
|
1849
|
+
},
|
|
1850
|
+
MuiSnackbar: {
|
|
1851
|
+
styleOverrides: {
|
|
1852
|
+
root: ({ theme: r }) => ({
|
|
1853
|
+
"& .MuiAlert-icon": {
|
|
1854
|
+
color: r.palette.success.contrastText
|
|
1855
|
+
},
|
|
1856
|
+
"& .MuiAlert-message": {
|
|
1857
|
+
color: r.palette.success.contrastText
|
|
1858
|
+
}
|
|
1859
|
+
})
|
|
1860
|
+
}
|
|
1861
|
+
},
|
|
1862
|
+
MuiSwitch: {
|
|
1863
|
+
styleOverrides: {
|
|
1864
|
+
root: ({ theme: r }) => {
|
|
1865
|
+
const { grey: i, mode: l } = r.palette;
|
|
1866
|
+
return {
|
|
1867
|
+
width: 34,
|
|
1868
|
+
height: 18,
|
|
1869
|
+
padding: 0,
|
|
1870
|
+
"& .MuiSwitch-switchBase": {
|
|
1871
|
+
padding: 0,
|
|
1872
|
+
margin: 2,
|
|
1873
|
+
transitionDuration: "300ms",
|
|
1874
|
+
"&.Mui-checked": {
|
|
1875
|
+
transform: "translateX(16px)",
|
|
1876
|
+
color: "#FFFFFF",
|
|
1877
|
+
// NeutralWhite
|
|
1878
|
+
"& + .MuiSwitch-track": {
|
|
1879
|
+
backgroundColor: "#09A57F",
|
|
1880
|
+
// Success300
|
|
1881
|
+
opacity: 1,
|
|
1882
|
+
border: 0
|
|
1883
|
+
},
|
|
1884
|
+
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1885
|
+
opacity: 0.5
|
|
1886
|
+
}
|
|
1887
|
+
},
|
|
1888
|
+
"&.Mui-disabled .MuiSwitch-thumb": {
|
|
1889
|
+
color: l === h.LIGHT ? i[100] : i[600]
|
|
1890
|
+
},
|
|
1891
|
+
"&.Mui-disabled + .MuiSwitch-track": {
|
|
1892
|
+
opacity: l === h.LIGHT ? 0.7 : 0.3
|
|
1893
|
+
},
|
|
1894
|
+
"&.Mui-focusVisible .MuiSwitch-thumb": {
|
|
1895
|
+
color: "#0AC295",
|
|
1896
|
+
// Success200
|
|
1897
|
+
border: "6px solid #fff"
|
|
1898
|
+
}
|
|
1899
|
+
},
|
|
1900
|
+
"& .MuiSwitch-thumb": {
|
|
1901
|
+
boxSizing: "border-box",
|
|
1902
|
+
width: 14,
|
|
1903
|
+
height: 14
|
|
1904
|
+
},
|
|
1905
|
+
"& .MuiSwitch-track": {
|
|
1906
|
+
backgroundColor: l === h.LIGHT ? i[400] : i[700],
|
|
1907
|
+
borderRadius: 18 / 2,
|
|
1908
|
+
opacity: 1
|
|
1909
|
+
}
|
|
1910
|
+
};
|
|
1911
|
+
}
|
|
1912
|
+
}
|
|
1913
|
+
},
|
|
1914
|
+
MuiTextField: {
|
|
1915
|
+
styleOverrides: {
|
|
1916
|
+
root: ({ theme: r }) => ({
|
|
1917
|
+
backgroundColor: r.palette.background.paper
|
|
1918
|
+
})
|
|
1919
|
+
}
|
|
1920
|
+
},
|
|
1921
|
+
MuiTooltip: {
|
|
1922
|
+
defaultProps: {
|
|
1923
|
+
arrow: !0
|
|
1924
|
+
}
|
|
1925
|
+
}
|
|
1926
|
+
}
|
|
1927
|
+
});
|
|
1928
|
+
};
|
|
1929
|
+
export {
|
|
1930
|
+
se as AccountsFilledIcon,
|
|
1931
|
+
de as AccountsIcon,
|
|
1932
|
+
ue as ArrowLeftIcon,
|
|
1933
|
+
pe as AttentionFilledIcon,
|
|
1934
|
+
g as BaseIcon,
|
|
1935
|
+
Ae as BottomSheetTransition,
|
|
1936
|
+
he as CalendarIcon,
|
|
1937
|
+
u as CategoryGuids,
|
|
1938
|
+
v0 as CategoryIcon,
|
|
1939
|
+
M0 as CategoryIconVariants,
|
|
1940
|
+
ge as CheckmarkFilledIcon,
|
|
1941
|
+
me as ChevronDownIcon,
|
|
1942
|
+
fe as ChevronLeftIcon,
|
|
1943
|
+
be as ChevronRightIcon,
|
|
1944
|
+
b0 as CloseIcon,
|
|
1945
|
+
Le as DateRangePicker,
|
|
1946
|
+
T0 as DialogFooter,
|
|
1947
|
+
He as DialogHeader,
|
|
1948
|
+
Se as Drawer,
|
|
1949
|
+
Me as EditIcon,
|
|
1950
|
+
ye as FilterIcon,
|
|
1951
|
+
T0 as Footer,
|
|
1952
|
+
L0 as H1,
|
|
1953
|
+
Fe as H2,
|
|
1954
|
+
we as H3,
|
|
1955
|
+
Ce as HeartIcon,
|
|
1956
|
+
T as INTER,
|
|
1957
|
+
M as Icon,
|
|
1958
|
+
f0 as IconWeight,
|
|
1959
|
+
De as InstitutionLogo,
|
|
1960
|
+
xe as MXLogoCopyrightIcon,
|
|
1961
|
+
Te as MXLogoFilledIcon,
|
|
1962
|
+
ve as MXLogoIcon,
|
|
1963
|
+
ke as MXLogoOutlineIcon,
|
|
1964
|
+
Ne as MerchantLogo,
|
|
1965
|
+
Ie as P,
|
|
1966
|
+
C as TARGETS,
|
|
1967
|
+
k as THEMES,
|
|
1968
|
+
x as Text,
|
|
1969
|
+
Re as TextField,
|
|
1970
|
+
ze as Toast,
|
|
1971
|
+
Ee as TokenProvider,
|
|
1972
|
+
Oe as createMXTheme,
|
|
1973
|
+
Be as useTokens
|
|
1974
|
+
};
|
|
1975
|
+
//# sourceMappingURL=index.es.js.map
|