@mxenabled/mxui 2.5.4-alpha.al0 → 2.6.1
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/components/tag/Tag.d.ts +11 -0
- package/dist/components/tag/index.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +409 -291
- package/dist/index.es.js.map +1 -1
- package/dist/themes/MXTheme.d.ts +2 -1
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
1
|
+
import { jsx as n, jsxs as b } from "react/jsx-runtime";
|
|
2
|
+
import N from "react";
|
|
3
3
|
import A from "@mui/material/Stack";
|
|
4
|
-
import { useTheme as
|
|
5
|
-
import { Icon as
|
|
6
|
-
import { endOfMonth as
|
|
7
|
-
import { endOfYear as
|
|
4
|
+
import { useTheme as O, createTheme as G } from "@mui/material/styles";
|
|
5
|
+
import { Icon as se, ExpandMore as ce, Close as de } from "@mxenabled/mx-icons";
|
|
6
|
+
import { endOfMonth as V } from "date-fns/endOfMonth";
|
|
7
|
+
import { endOfYear as pe } from "date-fns/endOfYear";
|
|
8
8
|
import { startOfToday as ue } from "date-fns/startOfToday";
|
|
9
|
-
import { startOfMonth as
|
|
10
|
-
import { startOfYear as
|
|
9
|
+
import { startOfMonth as W } from "date-fns/startOfMonth";
|
|
10
|
+
import { startOfYear as K } from "date-fns/startOfYear";
|
|
11
11
|
import { subDays as Y } from "date-fns/subDays";
|
|
12
|
-
import { subMonths as
|
|
12
|
+
import { subMonths as ge } from "date-fns/subMonths";
|
|
13
13
|
import { subYears as he } from "date-fns/subYears";
|
|
14
|
-
import
|
|
15
|
-
import { usePickerContext as
|
|
16
|
-
import { AdapterDateFns as
|
|
17
|
-
import { MultiInputDateRangeField as
|
|
18
|
-
import
|
|
19
|
-
import
|
|
14
|
+
import me from "@mui/material/useMediaQuery";
|
|
15
|
+
import { usePickerContext as Z, useIsValidValue as Q, LocalizationProvider as fe, StaticDateRangePicker as be } from "@mui/x-date-pickers-pro";
|
|
16
|
+
import { AdapterDateFns as xe } from "@mui/x-date-pickers-pro/AdapterDateFns";
|
|
17
|
+
import { MultiInputDateRangeField as Te } from "@mui/x-date-pickers-pro/MultiInputDateRangeField";
|
|
18
|
+
import k from "@mui/material/Box";
|
|
19
|
+
import Me from "@mui/material/ToggleButton";
|
|
20
20
|
import Re from "@mui/material/ToggleButtonGroup";
|
|
21
|
-
import
|
|
21
|
+
import Ce from "@mui/material/MenuItem";
|
|
22
22
|
import J from "@mui/material/TextField";
|
|
23
|
-
import { usePickerLayout as
|
|
23
|
+
import { usePickerLayout as Se, PickersLayoutRoot as ye, PickersLayoutContentWrapper as Ae, pickersLayoutClasses as w } from "@mui/x-date-pickers/PickersLayout";
|
|
24
24
|
import q from "@mui/material/Slide";
|
|
25
|
-
import
|
|
25
|
+
import $ from "@mui/material/Button";
|
|
26
26
|
import ee from "@mui/material/IconButton";
|
|
27
|
-
import
|
|
27
|
+
import re from "@mui/material/Typography";
|
|
28
28
|
import Ie from "@mui/material/Drawer";
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import { FormControlLabel as Fe, Box as
|
|
29
|
+
import Oe from "@mui/material/Snackbar";
|
|
30
|
+
import Ee from "@mui/material/Alert";
|
|
31
|
+
import { FormControlLabel as Fe, Box as P, Typography as X, Radio as B, Checkbox as ve, alpha as f, darken as L, lighten as E, getContrastRatio as Le } from "@mui/material";
|
|
32
32
|
import { circularProgressClasses as ke } from "@mui/material/CircularProgress";
|
|
33
33
|
import { LicenseInfo as Ne } from "@mui/x-license";
|
|
34
|
-
const
|
|
34
|
+
const H = ({
|
|
35
35
|
children: e,
|
|
36
36
|
height: i,
|
|
37
37
|
size: o = 16,
|
|
38
38
|
viewBox: s = "0 0 16 16",
|
|
39
|
-
width:
|
|
40
|
-
}) => /* @__PURE__ */
|
|
39
|
+
width: l
|
|
40
|
+
}) => /* @__PURE__ */ n(
|
|
41
41
|
"svg",
|
|
42
42
|
{
|
|
43
43
|
"aria-hidden": !0,
|
|
@@ -45,47 +45,47 @@ const N = ({
|
|
|
45
45
|
focusable: !1,
|
|
46
46
|
height: i || o,
|
|
47
47
|
viewBox: s,
|
|
48
|
-
width:
|
|
48
|
+
width: l || o,
|
|
49
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
50
50
|
children: e
|
|
51
51
|
}
|
|
52
|
-
), T = ({ color: e, fill: i = !1, name: o, size: s = 20, sx:
|
|
52
|
+
), T = ({ color: e, fill: i = !1, name: o, size: s = 20, sx: l, ...r }) => /* @__PURE__ */ n(se, { color: e, fill: i, name: o, size: s, sx: l, ...r }), Fr = ({
|
|
53
53
|
color: e = "currentColor",
|
|
54
54
|
...i
|
|
55
|
-
}) => /* @__PURE__ */ b(
|
|
56
|
-
/* @__PURE__ */
|
|
55
|
+
}) => /* @__PURE__ */ b(H, { ...i, children: [
|
|
56
|
+
/* @__PURE__ */ n(
|
|
57
57
|
"path",
|
|
58
58
|
{
|
|
59
59
|
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",
|
|
60
60
|
fill: e
|
|
61
61
|
}
|
|
62
62
|
),
|
|
63
|
-
/* @__PURE__ */
|
|
63
|
+
/* @__PURE__ */ n(
|
|
64
64
|
"path",
|
|
65
65
|
{
|
|
66
66
|
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",
|
|
67
67
|
fill: e
|
|
68
68
|
}
|
|
69
69
|
)
|
|
70
|
-
] }),
|
|
70
|
+
] }), vr = ({
|
|
71
71
|
color: e = "currentColor",
|
|
72
72
|
...i
|
|
73
|
-
}) => /* @__PURE__ */ b(
|
|
74
|
-
/* @__PURE__ */
|
|
73
|
+
}) => /* @__PURE__ */ b(H, { ...i, children: [
|
|
74
|
+
/* @__PURE__ */ n(
|
|
75
75
|
"path",
|
|
76
76
|
{
|
|
77
77
|
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",
|
|
78
78
|
fill: e
|
|
79
79
|
}
|
|
80
80
|
),
|
|
81
|
-
/* @__PURE__ */
|
|
81
|
+
/* @__PURE__ */ n(
|
|
82
82
|
"path",
|
|
83
83
|
{
|
|
84
84
|
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",
|
|
85
85
|
fill: e
|
|
86
86
|
}
|
|
87
87
|
),
|
|
88
|
-
/* @__PURE__ */
|
|
88
|
+
/* @__PURE__ */ n(
|
|
89
89
|
"path",
|
|
90
90
|
{
|
|
91
91
|
clipRule: "evenodd",
|
|
@@ -94,7 +94,7 @@ const N = ({
|
|
|
94
94
|
fillRule: "evenodd"
|
|
95
95
|
}
|
|
96
96
|
),
|
|
97
|
-
/* @__PURE__ */
|
|
97
|
+
/* @__PURE__ */ n(
|
|
98
98
|
"path",
|
|
99
99
|
{
|
|
100
100
|
clipRule: "evenodd",
|
|
@@ -103,10 +103,10 @@ const N = ({
|
|
|
103
103
|
fillRule: "evenodd"
|
|
104
104
|
}
|
|
105
105
|
)
|
|
106
|
-
] }),
|
|
106
|
+
] }), Lr = ({
|
|
107
107
|
color: e = "currentColor",
|
|
108
108
|
...i
|
|
109
|
-
}) => /* @__PURE__ */
|
|
109
|
+
}) => /* @__PURE__ */ n(H, { ...i, children: /* @__PURE__ */ n(
|
|
110
110
|
"path",
|
|
111
111
|
{
|
|
112
112
|
clipRule: "evenodd",
|
|
@@ -117,22 +117,22 @@ const N = ({
|
|
|
117
117
|
) }), kr = ({
|
|
118
118
|
color: e = "currentColor",
|
|
119
119
|
...i
|
|
120
|
-
}) => /* @__PURE__ */ b(
|
|
121
|
-
/* @__PURE__ */
|
|
120
|
+
}) => /* @__PURE__ */ b(H, { ...i, children: [
|
|
121
|
+
/* @__PURE__ */ n(
|
|
122
122
|
"path",
|
|
123
123
|
{
|
|
124
124
|
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",
|
|
125
125
|
fill: e
|
|
126
126
|
}
|
|
127
127
|
),
|
|
128
|
-
/* @__PURE__ */
|
|
128
|
+
/* @__PURE__ */ n(
|
|
129
129
|
"path",
|
|
130
130
|
{
|
|
131
131
|
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",
|
|
132
132
|
fill: e
|
|
133
133
|
}
|
|
134
134
|
),
|
|
135
|
-
/* @__PURE__ */
|
|
135
|
+
/* @__PURE__ */ n(
|
|
136
136
|
"path",
|
|
137
137
|
{
|
|
138
138
|
clipRule: "evenodd",
|
|
@@ -142,159 +142,159 @@ const N = ({
|
|
|
142
142
|
}
|
|
143
143
|
)
|
|
144
144
|
] });
|
|
145
|
-
var
|
|
146
|
-
const
|
|
147
|
-
guid:
|
|
145
|
+
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 || {}), He = /* @__PURE__ */ ((e) => (e.Basic = "basic", e.Filled = "filled", e.Transparent = "transparent", e.TwoTone = "two-tone", e))(He || {});
|
|
146
|
+
const te = {
|
|
147
|
+
guid: g.Uncategorized,
|
|
148
148
|
colorName: "uncategorized",
|
|
149
149
|
icon: "category"
|
|
150
150
|
}, De = [
|
|
151
151
|
{
|
|
152
|
-
guid:
|
|
152
|
+
guid: g.AutoTransport,
|
|
153
153
|
colorName: "autoTransport",
|
|
154
154
|
icon: "directions_car"
|
|
155
155
|
},
|
|
156
156
|
{
|
|
157
|
-
guid:
|
|
157
|
+
guid: g.BillsUtilities,
|
|
158
158
|
colorName: "billsUtilities",
|
|
159
159
|
icon: "electrical_services"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
guid:
|
|
162
|
+
guid: g.BusinessServices,
|
|
163
163
|
colorName: "businessServices",
|
|
164
164
|
icon: "business_center"
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
|
-
guid:
|
|
167
|
+
guid: g.Education,
|
|
168
168
|
colorName: "education",
|
|
169
169
|
icon: "school"
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
|
-
guid:
|
|
172
|
+
guid: g.Entertainment,
|
|
173
173
|
colorName: "entertainment",
|
|
174
174
|
icon: "stadium"
|
|
175
175
|
},
|
|
176
176
|
{
|
|
177
|
-
guid:
|
|
177
|
+
guid: g.FeesCharges,
|
|
178
178
|
colorName: "feesCharges",
|
|
179
179
|
icon: "problem"
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
guid:
|
|
182
|
+
guid: g.Financial,
|
|
183
183
|
colorName: "financial",
|
|
184
184
|
icon: "price_check"
|
|
185
185
|
},
|
|
186
186
|
{
|
|
187
|
-
guid:
|
|
187
|
+
guid: g.FoodDining,
|
|
188
188
|
colorName: "foodDining",
|
|
189
189
|
icon: "grocery"
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
|
-
guid:
|
|
192
|
+
guid: g.GiftsDonations,
|
|
193
193
|
colorName: "giftsDonations",
|
|
194
194
|
icon: "featured_seasonal_and_gifts"
|
|
195
195
|
},
|
|
196
196
|
{
|
|
197
|
-
guid:
|
|
197
|
+
guid: g.HealthFitness,
|
|
198
198
|
colorName: "healthFitness",
|
|
199
199
|
icon: "ecg_heart"
|
|
200
200
|
},
|
|
201
201
|
{
|
|
202
|
-
guid:
|
|
202
|
+
guid: g.Home,
|
|
203
203
|
colorName: "home",
|
|
204
204
|
icon: "cottage"
|
|
205
205
|
},
|
|
206
206
|
{
|
|
207
|
-
guid:
|
|
207
|
+
guid: g.Income,
|
|
208
208
|
colorName: "income",
|
|
209
209
|
icon: "monetization_on"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
|
-
guid:
|
|
212
|
+
guid: g.Investments,
|
|
213
213
|
colorName: "investments",
|
|
214
214
|
icon: "bid_landscape"
|
|
215
215
|
},
|
|
216
216
|
{
|
|
217
|
-
guid:
|
|
217
|
+
guid: g.Kids,
|
|
218
218
|
colorName: "kids",
|
|
219
219
|
icon: "face"
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
guid:
|
|
222
|
+
guid: g.PersonalCare,
|
|
223
223
|
colorName: "personalCare",
|
|
224
224
|
icon: "volunteer_activism"
|
|
225
225
|
},
|
|
226
226
|
{
|
|
227
|
-
guid:
|
|
227
|
+
guid: g.Pets,
|
|
228
228
|
colorName: "pets",
|
|
229
229
|
icon: "pet_supplies"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
|
-
guid:
|
|
232
|
+
guid: g.Shopping,
|
|
233
233
|
colorName: "shopping",
|
|
234
234
|
icon: "shopping_cart"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
|
-
guid:
|
|
237
|
+
guid: g.Taxes,
|
|
238
238
|
colorName: "taxes",
|
|
239
239
|
icon: "heap_snapshot_large"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
|
-
guid:
|
|
242
|
+
guid: g.Transfer,
|
|
243
243
|
colorName: "transfer",
|
|
244
244
|
icon: "compare_arrows"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
|
-
guid:
|
|
247
|
+
guid: g.Travel,
|
|
248
248
|
colorName: "travel",
|
|
249
249
|
icon: "airplane_ticket"
|
|
250
250
|
},
|
|
251
|
-
|
|
251
|
+
te
|
|
252
252
|
], we = 0.625, Pe = ({
|
|
253
253
|
categoryGuid: e,
|
|
254
254
|
icon_ratio: i = we,
|
|
255
255
|
size: o = 32,
|
|
256
256
|
sx: s = {},
|
|
257
|
-
variant:
|
|
257
|
+
variant: l = "filled"
|
|
258
258
|
}) => {
|
|
259
|
-
const r =
|
|
260
|
-
() => De.find((m) => m.guid === e) ??
|
|
259
|
+
const r = O(), a = N.useMemo(
|
|
260
|
+
() => De.find((m) => m.guid === e) ?? te,
|
|
261
261
|
[e]
|
|
262
|
-
), c = r.palette.categories[
|
|
263
|
-
return /* @__PURE__ */
|
|
262
|
+
), c = r.palette.categories[a.colorName];
|
|
263
|
+
return /* @__PURE__ */ n(
|
|
264
264
|
A,
|
|
265
265
|
{
|
|
266
266
|
alignItems: "center",
|
|
267
267
|
bgcolor: () => {
|
|
268
268
|
let m = c;
|
|
269
|
-
return
|
|
269
|
+
return l === "twotone" && (m = `${m}20`), l === "transparent" || l === "basic" ? "transparent" : m;
|
|
270
270
|
},
|
|
271
271
|
borderRadius: 1,
|
|
272
272
|
color: () => {
|
|
273
|
-
const m =
|
|
274
|
-
return
|
|
273
|
+
const m = l === "filled" ? r.palette.common.white : c;
|
|
274
|
+
return l === "basic" ? r.palette.text.primary : m;
|
|
275
275
|
},
|
|
276
276
|
height: o,
|
|
277
277
|
justifyContent: "center",
|
|
278
278
|
sx: [...Array.isArray(s) ? s : [s]],
|
|
279
279
|
width: o,
|
|
280
|
-
children: /* @__PURE__ */
|
|
280
|
+
children: /* @__PURE__ */ n(T, { name: a.icon, size: o * i })
|
|
281
281
|
}
|
|
282
282
|
);
|
|
283
283
|
}, Be = ({ items: e, selected: i }) => {
|
|
284
|
-
const o =
|
|
285
|
-
const c =
|
|
284
|
+
const o = O(), { setValue: s } = Z(), l = Q(), r = e?.map((a) => {
|
|
285
|
+
const c = a.getValue({ isValid: l });
|
|
286
286
|
return {
|
|
287
|
-
label:
|
|
287
|
+
label: a.label,
|
|
288
288
|
onClick: () => {
|
|
289
|
-
s(c, { changeImportance: "accept", shortcut:
|
|
289
|
+
s(c, { changeImportance: "accept", shortcut: a });
|
|
290
290
|
},
|
|
291
|
-
disabled: !
|
|
291
|
+
disabled: !l(c)
|
|
292
292
|
};
|
|
293
293
|
});
|
|
294
|
-
return /* @__PURE__ */
|
|
295
|
-
|
|
294
|
+
return /* @__PURE__ */ n(k, { sx: { gridColumn: 1, gridRow: "2/3", ml: 4, mt: 24, mr: 32 }, children: /* @__PURE__ */ n(Re, { color: "primary", orientation: "vertical", value: i, children: r?.map((a) => /* @__PURE__ */ n(
|
|
295
|
+
Me,
|
|
296
296
|
{
|
|
297
|
-
onClick:
|
|
297
|
+
onClick: a.onClick,
|
|
298
298
|
sx: {
|
|
299
299
|
borderWidth: 1,
|
|
300
300
|
color: "secondary.dark",
|
|
@@ -314,55 +314,55 @@ const re = {
|
|
|
314
314
|
color: "primary"
|
|
315
315
|
}
|
|
316
316
|
},
|
|
317
|
-
value:
|
|
318
|
-
children:
|
|
317
|
+
value: a.label,
|
|
318
|
+
children: a.label
|
|
319
319
|
},
|
|
320
|
-
|
|
320
|
+
a.label
|
|
321
321
|
)) }) });
|
|
322
322
|
}, _e = ({
|
|
323
323
|
items: e,
|
|
324
324
|
selected: i,
|
|
325
325
|
selectLabel: o
|
|
326
326
|
}) => {
|
|
327
|
-
const { setValue: s } =
|
|
328
|
-
const c =
|
|
327
|
+
const { setValue: s } = Z(), l = Q(), r = e?.map((a) => {
|
|
328
|
+
const c = a.getValue({ isValid: l });
|
|
329
329
|
return {
|
|
330
|
-
label:
|
|
330
|
+
label: a.label,
|
|
331
331
|
onClick: () => {
|
|
332
|
-
s(c, { changeImportance: "accept", shortcut:
|
|
332
|
+
s(c, { changeImportance: "accept", shortcut: a });
|
|
333
333
|
},
|
|
334
|
-
disabled: !
|
|
334
|
+
disabled: !l(c)
|
|
335
335
|
};
|
|
336
336
|
});
|
|
337
|
-
return /* @__PURE__ */
|
|
337
|
+
return /* @__PURE__ */ n(A, { sx: { py: 16 }, children: /* @__PURE__ */ n(
|
|
338
338
|
J,
|
|
339
339
|
{
|
|
340
340
|
defaultValue: i,
|
|
341
341
|
id: "select",
|
|
342
342
|
label: o,
|
|
343
343
|
select: !0,
|
|
344
|
-
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent:
|
|
344
|
+
slotProps: { inputLabel: { shrink: !0 }, select: { IconComponent: ce } },
|
|
345
345
|
sx: { width: "100%" },
|
|
346
346
|
value: i,
|
|
347
347
|
variant: "outlined",
|
|
348
|
-
children: r?.map((
|
|
348
|
+
children: r?.map((a) => /* @__PURE__ */ n(Ce, { onClick: a.onClick, value: a.label, children: a.label }, a.label))
|
|
349
349
|
}
|
|
350
350
|
) });
|
|
351
351
|
}, ze = (e) => {
|
|
352
|
-
const { toolbar: i, content: o, shortcuts: s, ownerState:
|
|
352
|
+
const { toolbar: i, content: o, shortcuts: s, ownerState: l } = Se(e);
|
|
353
353
|
return /* @__PURE__ */ b(
|
|
354
|
-
|
|
354
|
+
ye,
|
|
355
355
|
{
|
|
356
|
-
ownerState:
|
|
356
|
+
ownerState: l,
|
|
357
357
|
sx: {
|
|
358
358
|
gridTemplateColumns: "minmax(320px, 1fr)",
|
|
359
359
|
overflow: "auto",
|
|
360
360
|
p: 0,
|
|
361
|
-
[`.${
|
|
361
|
+
[`.${w.toolbar}`]: {
|
|
362
362
|
gridColumn: 1,
|
|
363
363
|
gridRow: 2
|
|
364
364
|
},
|
|
365
|
-
[`.${
|
|
365
|
+
[`.${w.contentWrapper}`]: {
|
|
366
366
|
alignItems: "center",
|
|
367
367
|
gridColumn: 1,
|
|
368
368
|
gridRow: 3
|
|
@@ -373,11 +373,11 @@ const re = {
|
|
|
373
373
|
s,
|
|
374
374
|
i
|
|
375
375
|
] }),
|
|
376
|
-
/* @__PURE__ */
|
|
376
|
+
/* @__PURE__ */ n(
|
|
377
377
|
Ae,
|
|
378
378
|
{
|
|
379
|
-
className:
|
|
380
|
-
ownerState:
|
|
379
|
+
className: w.contentWrapper,
|
|
380
|
+
ownerState: l,
|
|
381
381
|
children: o
|
|
382
382
|
}
|
|
383
383
|
)
|
|
@@ -389,18 +389,18 @@ const re = {
|
|
|
389
389
|
dateRange: i,
|
|
390
390
|
onRangeChanged: o,
|
|
391
391
|
selectedShortcut: s = e.dateRangeThisMonth,
|
|
392
|
-
sx:
|
|
392
|
+
sx: l = {}
|
|
393
393
|
}) => {
|
|
394
|
-
const r =
|
|
395
|
-
const t = ue(), m =
|
|
394
|
+
const r = O(), a = me(r.breakpoints.down("sm")), c = N.useMemo(() => {
|
|
395
|
+
const t = ue(), m = ge(t, 1), x = he(t, 1);
|
|
396
396
|
return [
|
|
397
397
|
{
|
|
398
398
|
label: e.dateRangeThisMonth,
|
|
399
|
-
getValue: () => [
|
|
399
|
+
getValue: () => [W(t), V(t)]
|
|
400
400
|
},
|
|
401
401
|
{
|
|
402
402
|
label: e.dateRangeLastMonth,
|
|
403
|
-
getValue: () => [
|
|
403
|
+
getValue: () => [W(m), V(m)]
|
|
404
404
|
},
|
|
405
405
|
{
|
|
406
406
|
label: e.dateRangeLast30Days,
|
|
@@ -412,11 +412,11 @@ const re = {
|
|
|
412
412
|
},
|
|
413
413
|
{
|
|
414
414
|
label: e.dateRangeYTD,
|
|
415
|
-
getValue: () => [
|
|
415
|
+
getValue: () => [K(t), t]
|
|
416
416
|
},
|
|
417
417
|
{
|
|
418
418
|
label: e.dateRangeLastYear,
|
|
419
|
-
getValue: () => [
|
|
419
|
+
getValue: () => [K(x), pe(x)]
|
|
420
420
|
},
|
|
421
421
|
{
|
|
422
422
|
label: e.dateRangeCustom,
|
|
@@ -427,8 +427,8 @@ const re = {
|
|
|
427
427
|
const x = m.shortcut;
|
|
428
428
|
o?.(t, x ? x.label : e.dateRangeCustom);
|
|
429
429
|
};
|
|
430
|
-
return /* @__PURE__ */
|
|
431
|
-
|
|
430
|
+
return /* @__PURE__ */ n(A, { gap: a ? 0 : 16, m: a ? 0 : 8, children: /* @__PURE__ */ n(fe, { dateAdapter: xe, children: /* @__PURE__ */ n(
|
|
431
|
+
be,
|
|
432
432
|
{
|
|
433
433
|
calendars: 1,
|
|
434
434
|
localeText: {
|
|
@@ -456,20 +456,20 @@ const re = {
|
|
|
456
456
|
}
|
|
457
457
|
},
|
|
458
458
|
slots: {
|
|
459
|
-
...
|
|
460
|
-
leftArrowIcon: () => /* @__PURE__ */
|
|
461
|
-
shortcuts: (t) =>
|
|
459
|
+
...a && { layout: ze },
|
|
460
|
+
leftArrowIcon: () => /* @__PURE__ */ n(T, { name: "chevron_left", size: 28 }),
|
|
461
|
+
shortcuts: (t) => a ? /* @__PURE__ */ n(
|
|
462
462
|
_e,
|
|
463
463
|
{
|
|
464
464
|
selectLabel: e.dateRangeSelectARange,
|
|
465
465
|
selected: s,
|
|
466
466
|
...t
|
|
467
467
|
}
|
|
468
|
-
) : /* @__PURE__ */
|
|
469
|
-
rightArrowIcon: () => /* @__PURE__ */
|
|
470
|
-
...
|
|
471
|
-
toolbar: (t) => /* @__PURE__ */
|
|
472
|
-
|
|
468
|
+
) : /* @__PURE__ */ n(Be, { selected: s, ...t }),
|
|
469
|
+
rightArrowIcon: () => /* @__PURE__ */ n(T, { name: "chevron_right", size: 28 }),
|
|
470
|
+
...a && {
|
|
471
|
+
toolbar: (t) => /* @__PURE__ */ n(
|
|
472
|
+
Te,
|
|
473
473
|
{
|
|
474
474
|
dateSeparator: "",
|
|
475
475
|
format: "MM/dd/yyyy",
|
|
@@ -484,20 +484,20 @@ const re = {
|
|
|
484
484
|
)
|
|
485
485
|
}
|
|
486
486
|
},
|
|
487
|
-
sx: { ...
|
|
487
|
+
sx: { ...l },
|
|
488
488
|
value: i
|
|
489
489
|
}
|
|
490
490
|
) }) });
|
|
491
|
-
}, Hr =
|
|
492
|
-
return /* @__PURE__ */
|
|
491
|
+
}, Hr = N.forwardRef(function(i, o) {
|
|
492
|
+
return /* @__PURE__ */ n(q, { direction: "up", ref: o, ...i });
|
|
493
493
|
}), $e = ({
|
|
494
494
|
hasSecondaryAction: e = !0,
|
|
495
495
|
isPrimaryDisabled: i,
|
|
496
496
|
onPrimaryAction: o,
|
|
497
497
|
onSecondaryAction: s,
|
|
498
|
-
primaryColor:
|
|
498
|
+
primaryColor: l = "primary",
|
|
499
499
|
primaryText: r = "Save",
|
|
500
|
-
secondaryColor:
|
|
500
|
+
secondaryColor: a = "primary",
|
|
501
501
|
secondaryText: c = "Cancel"
|
|
502
502
|
}) => /* @__PURE__ */ b(
|
|
503
503
|
A,
|
|
@@ -507,19 +507,19 @@ const re = {
|
|
|
507
507
|
justifyContent: "flex-end",
|
|
508
508
|
sx: { bgcolor: "background.paper", p: 24 },
|
|
509
509
|
children: [
|
|
510
|
-
e && /* @__PURE__ */
|
|
511
|
-
|
|
510
|
+
e && /* @__PURE__ */ n(
|
|
511
|
+
$,
|
|
512
512
|
{
|
|
513
|
-
color:
|
|
513
|
+
color: a,
|
|
514
514
|
onClick: s,
|
|
515
515
|
variant: o ? "outlined" : "contained",
|
|
516
516
|
children: c
|
|
517
517
|
}
|
|
518
518
|
),
|
|
519
|
-
o && /* @__PURE__ */
|
|
520
|
-
|
|
519
|
+
o && /* @__PURE__ */ n(
|
|
520
|
+
$,
|
|
521
521
|
{
|
|
522
|
-
color:
|
|
522
|
+
color: l,
|
|
523
523
|
disabled: i,
|
|
524
524
|
onClick: o,
|
|
525
525
|
variant: "contained",
|
|
@@ -533,12 +533,12 @@ const re = {
|
|
|
533
533
|
className: i = "",
|
|
534
534
|
children: o,
|
|
535
535
|
color: s,
|
|
536
|
-
sx:
|
|
536
|
+
sx: l = {},
|
|
537
537
|
truncate: r,
|
|
538
|
-
uppercase:
|
|
538
|
+
uppercase: a,
|
|
539
539
|
...c
|
|
540
|
-
}) => /* @__PURE__ */
|
|
541
|
-
|
|
540
|
+
}) => /* @__PURE__ */ n(
|
|
541
|
+
re,
|
|
542
542
|
{
|
|
543
543
|
className: `mx-kmui-text ${i}`,
|
|
544
544
|
color: s,
|
|
@@ -551,15 +551,15 @@ const re = {
|
|
|
551
551
|
textOverflow: "ellipsis",
|
|
552
552
|
whiteSpace: "nowrap"
|
|
553
553
|
} : {},
|
|
554
|
-
|
|
554
|
+
a ? {
|
|
555
555
|
textTransform: "uppercase"
|
|
556
556
|
} : {},
|
|
557
|
-
...Array.isArray(
|
|
557
|
+
...Array.isArray(l) ? l : [l]
|
|
558
558
|
],
|
|
559
559
|
...c,
|
|
560
560
|
children: o
|
|
561
561
|
}
|
|
562
|
-
), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */
|
|
562
|
+
), Ue = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text h1 ${e}`, component: "h1", variant: "h1", ...o, children: i }), Dr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text h2 ${e}`, component: "h2", variant: "h2", ...o, children: i }), wr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text h3 ${e}`, component: "h3", variant: "h3", ...o, children: i }), Pr = ({ className: e = "", children: i, ...o }) => /* @__PURE__ */ n(F, { className: `mx-mxui-text p ${e}`, component: "p", variant: "body1", ...o, children: i }), Br = ({ copy: e, onClose: i, truncate: o = !1 }) => /* @__PURE__ */ b(
|
|
563
563
|
A,
|
|
564
564
|
{
|
|
565
565
|
sx: {
|
|
@@ -570,8 +570,8 @@ const re = {
|
|
|
570
570
|
py: 14
|
|
571
571
|
},
|
|
572
572
|
children: [
|
|
573
|
-
/* @__PURE__ */
|
|
574
|
-
/* @__PURE__ */
|
|
573
|
+
/* @__PURE__ */ n(Ue, { truncate: o, variant: "h3", children: e.title }),
|
|
574
|
+
/* @__PURE__ */ n(ee, { "aria-label": e.close_aria, onClick: i, sx: { mr: -12 }, children: /* @__PURE__ */ n(de, {}) })
|
|
575
575
|
]
|
|
576
576
|
}
|
|
577
577
|
), _r = ({
|
|
@@ -579,9 +579,9 @@ const re = {
|
|
|
579
579
|
disableSave: i,
|
|
580
580
|
id: o,
|
|
581
581
|
isOpen: s,
|
|
582
|
-
onClose:
|
|
582
|
+
onClose: l,
|
|
583
583
|
onSave: r,
|
|
584
|
-
primaryText:
|
|
584
|
+
primaryText: a,
|
|
585
585
|
secondaryText: c,
|
|
586
586
|
children: d,
|
|
587
587
|
...t
|
|
@@ -591,63 +591,63 @@ const re = {
|
|
|
591
591
|
anchor: "right",
|
|
592
592
|
className: `mx-kmui-drawer ${e}`,
|
|
593
593
|
id: o ?? void 0,
|
|
594
|
-
onClose:
|
|
594
|
+
onClose: l,
|
|
595
595
|
open: s,
|
|
596
596
|
variant: "temporary",
|
|
597
597
|
...t,
|
|
598
598
|
children: [
|
|
599
599
|
d,
|
|
600
|
-
r && /* @__PURE__ */
|
|
600
|
+
r && /* @__PURE__ */ n(
|
|
601
601
|
$e,
|
|
602
602
|
{
|
|
603
603
|
isPrimaryDisabled: i,
|
|
604
604
|
onPrimaryAction: r,
|
|
605
|
-
onSecondaryAction:
|
|
606
|
-
primaryText:
|
|
605
|
+
onSecondaryAction: l,
|
|
606
|
+
primaryText: a,
|
|
607
607
|
secondaryText: c
|
|
608
608
|
}
|
|
609
609
|
)
|
|
610
610
|
]
|
|
611
611
|
}
|
|
612
|
-
),
|
|
612
|
+
), oe = 32, U = "https://content.moneydesktop.com/storage/MD_Assets", j = `${U}/serenity/default_institution_logo.png`, zr = ({
|
|
613
613
|
alt: e,
|
|
614
614
|
institutionGuid: i,
|
|
615
615
|
logoUrl: o,
|
|
616
|
-
size: s =
|
|
617
|
-
...
|
|
618
|
-
}) => /* @__PURE__ */
|
|
616
|
+
size: s = oe,
|
|
617
|
+
...l
|
|
618
|
+
}) => /* @__PURE__ */ n(
|
|
619
619
|
"img",
|
|
620
620
|
{
|
|
621
621
|
alt: e,
|
|
622
622
|
height: s,
|
|
623
623
|
onError: (r) => {
|
|
624
|
-
const
|
|
625
|
-
|
|
624
|
+
const a = r.target;
|
|
625
|
+
a.src !== j && (a.src = j);
|
|
626
626
|
},
|
|
627
|
-
src: o || `${
|
|
627
|
+
src: o || `${U}/Ipad%20Logos/100x100/${i}_100x100.png`,
|
|
628
628
|
style: {
|
|
629
629
|
borderRadius: 4
|
|
630
630
|
},
|
|
631
631
|
width: s,
|
|
632
|
-
...
|
|
632
|
+
...l
|
|
633
633
|
}
|
|
634
634
|
), $r = ({
|
|
635
635
|
alt: e = "",
|
|
636
636
|
categoryGuid: i,
|
|
637
637
|
merchantGuid: o,
|
|
638
|
-
size: s =
|
|
639
|
-
...
|
|
638
|
+
size: s = oe,
|
|
639
|
+
...l
|
|
640
640
|
}) => {
|
|
641
|
-
const [r,
|
|
642
|
-
return /* @__PURE__ */ b(
|
|
643
|
-
o && !r && /* @__PURE__ */
|
|
641
|
+
const [r, a] = N.useState(!1), c = O();
|
|
642
|
+
return /* @__PURE__ */ b(k, { display: "inline-block", position: "relative", ...l, children: [
|
|
643
|
+
o && !r && /* @__PURE__ */ n(
|
|
644
644
|
"img",
|
|
645
645
|
{
|
|
646
646
|
alt: e,
|
|
647
647
|
"aria-hidden": !e,
|
|
648
648
|
height: s,
|
|
649
|
-
onError: () =>
|
|
650
|
-
src: `${
|
|
649
|
+
onError: () => a(!0),
|
|
650
|
+
src: `${U}/merchant_logos/${o}.png`,
|
|
651
651
|
style: {
|
|
652
652
|
backgroundColor: c.palette.common.white,
|
|
653
653
|
borderRadius: 4,
|
|
@@ -657,16 +657,16 @@ const re = {
|
|
|
657
657
|
width: s
|
|
658
658
|
}
|
|
659
659
|
),
|
|
660
|
-
/* @__PURE__ */
|
|
660
|
+
/* @__PURE__ */ n(Pe, { categoryGuid: i, size: s })
|
|
661
661
|
] });
|
|
662
662
|
}, Ur = ({
|
|
663
663
|
disabled: e = !1,
|
|
664
664
|
label: i = "",
|
|
665
665
|
shrink: o = !0,
|
|
666
666
|
truncate: s = !1,
|
|
667
|
-
variant:
|
|
667
|
+
variant: l = "outlined",
|
|
668
668
|
...r
|
|
669
|
-
}) => /* @__PURE__ */
|
|
669
|
+
}) => /* @__PURE__ */ n(
|
|
670
670
|
J,
|
|
671
671
|
{
|
|
672
672
|
disabled: e,
|
|
@@ -684,48 +684,48 @@ const re = {
|
|
|
684
684
|
}
|
|
685
685
|
}
|
|
686
686
|
},
|
|
687
|
-
variant:
|
|
687
|
+
variant: l,
|
|
688
688
|
...r
|
|
689
689
|
}
|
|
690
690
|
);
|
|
691
691
|
function Ge(e) {
|
|
692
|
-
return /* @__PURE__ */
|
|
692
|
+
return /* @__PURE__ */ n(q, { ...e, direction: "left", mountOnEnter: !0, unmountOnExit: !0 });
|
|
693
693
|
}
|
|
694
694
|
const Gr = ({
|
|
695
695
|
open: e = !0,
|
|
696
696
|
handleClose: i,
|
|
697
697
|
closeAriaLabel: o,
|
|
698
698
|
message: s,
|
|
699
|
-
autoHideDuration:
|
|
699
|
+
autoHideDuration: l = 3e3,
|
|
700
700
|
severity: r = "success",
|
|
701
|
-
snackbarSx:
|
|
701
|
+
snackbarSx: a,
|
|
702
702
|
showAction: c = !1,
|
|
703
703
|
showClose: d = !1,
|
|
704
704
|
actionText: t = "Undo",
|
|
705
705
|
onActionClick: m
|
|
706
706
|
}) => {
|
|
707
|
-
const x =
|
|
708
|
-
return /* @__PURE__ */
|
|
709
|
-
|
|
707
|
+
const x = O(), v = d && /* @__PURE__ */ n(ee, { "aria-label": o, color: "inherit", onClick: i, size: "small", children: /* @__PURE__ */ n(T, { fill: !0, name: "close" }) }), h = `${r}.main`;
|
|
708
|
+
return /* @__PURE__ */ n(
|
|
709
|
+
Oe,
|
|
710
710
|
{
|
|
711
711
|
anchorOrigin: { vertical: "bottom", horizontal: "right" },
|
|
712
|
-
autoHideDuration:
|
|
712
|
+
autoHideDuration: l,
|
|
713
713
|
onClose: i,
|
|
714
714
|
open: e,
|
|
715
715
|
slots: { transition: Ge },
|
|
716
716
|
sx: {
|
|
717
|
-
...
|
|
717
|
+
...a,
|
|
718
718
|
maxWidth: 568,
|
|
719
719
|
minWidth: 288,
|
|
720
720
|
minHeight: 56
|
|
721
721
|
},
|
|
722
|
-
children: /* @__PURE__ */
|
|
723
|
-
|
|
722
|
+
children: /* @__PURE__ */ n(
|
|
723
|
+
Ee,
|
|
724
724
|
{
|
|
725
|
-
action:
|
|
725
|
+
action: v,
|
|
726
726
|
severity: r,
|
|
727
727
|
sx: {
|
|
728
|
-
backgroundColor:
|
|
728
|
+
backgroundColor: h,
|
|
729
729
|
display: "flex",
|
|
730
730
|
width: "100%",
|
|
731
731
|
py: 8,
|
|
@@ -752,7 +752,7 @@ const Gr = ({
|
|
|
752
752
|
columnGap: "16px"
|
|
753
753
|
},
|
|
754
754
|
children: [
|
|
755
|
-
/* @__PURE__ */
|
|
755
|
+
/* @__PURE__ */ n(
|
|
756
756
|
F,
|
|
757
757
|
{
|
|
758
758
|
sx: {
|
|
@@ -764,8 +764,8 @@ const Gr = ({
|
|
|
764
764
|
children: s
|
|
765
765
|
}
|
|
766
766
|
),
|
|
767
|
-
c && /* @__PURE__ */
|
|
768
|
-
|
|
767
|
+
c && /* @__PURE__ */ n(
|
|
768
|
+
$,
|
|
769
769
|
{
|
|
770
770
|
color: "inherit",
|
|
771
771
|
onClick: m || i,
|
|
@@ -788,29 +788,29 @@ const Gr = ({
|
|
|
788
788
|
}
|
|
789
789
|
);
|
|
790
790
|
}, Vr = ({
|
|
791
|
-
component: e =
|
|
791
|
+
component: e = B,
|
|
792
792
|
variant: i = "outlined",
|
|
793
793
|
selected: o,
|
|
794
794
|
onChange: s,
|
|
795
|
-
headline:
|
|
795
|
+
headline: l,
|
|
796
796
|
message: r,
|
|
797
|
-
name:
|
|
797
|
+
name: a,
|
|
798
798
|
value: c,
|
|
799
799
|
disabled: d = !1,
|
|
800
800
|
error: t = !1,
|
|
801
801
|
icon: m = !1,
|
|
802
802
|
sx: x = {},
|
|
803
|
-
...
|
|
803
|
+
...v
|
|
804
804
|
}) => {
|
|
805
|
-
const
|
|
806
|
-
return /* @__PURE__ */
|
|
805
|
+
const h = O(), ie = () => h.palette.background.paper, D = () => t ? `inset 0px 0px 0px 2px ${h.palette.error.main}` : d ? o ? `inset 0px 0px 0px 2px ${h.palette.action.disabled}` : i === "outlined" ? `inset 0px 0px 0px 1px ${h.palette.action.disabledBackground}` : `inset 0px 0px 0px 1px ${h.palette.action.disabled}` : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(h.palette.common.black, 0.23)}` : o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : h.shadows[1], ae = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.1), ne = () => d || t ? D() : i === "outlined" ? o ? `inset 0px 0px 0px 2px ${f(h.palette.primary.main, 0.5)}` : `inset 0px 0px 0px 1px ${f(h.palette.primary.main, 0.5)}` : D(), le = () => d || t ? h.palette.background.paper : f(h.palette.primary.main, 0.3);
|
|
806
|
+
return /* @__PURE__ */ n(
|
|
807
807
|
Fe,
|
|
808
808
|
{
|
|
809
809
|
checked: o,
|
|
810
|
-
control: e ===
|
|
811
|
-
|
|
810
|
+
control: e === B ? /* @__PURE__ */ n(
|
|
811
|
+
B,
|
|
812
812
|
{
|
|
813
|
-
name:
|
|
813
|
+
name: a,
|
|
814
814
|
sx: {
|
|
815
815
|
p: 0,
|
|
816
816
|
ml: 16,
|
|
@@ -820,12 +820,12 @@ const Gr = ({
|
|
|
820
820
|
fontSize: "20px"
|
|
821
821
|
}
|
|
822
822
|
},
|
|
823
|
-
...
|
|
823
|
+
...v
|
|
824
824
|
}
|
|
825
|
-
) : /* @__PURE__ */
|
|
826
|
-
|
|
825
|
+
) : /* @__PURE__ */ n(
|
|
826
|
+
ve,
|
|
827
827
|
{
|
|
828
|
-
name:
|
|
828
|
+
name: a,
|
|
829
829
|
sx: {
|
|
830
830
|
p: 0,
|
|
831
831
|
ml: 16,
|
|
@@ -835,15 +835,15 @@ const Gr = ({
|
|
|
835
835
|
fontSize: "20px"
|
|
836
836
|
}
|
|
837
837
|
},
|
|
838
|
-
...
|
|
838
|
+
...v
|
|
839
839
|
}
|
|
840
840
|
),
|
|
841
841
|
disabled: d,
|
|
842
|
-
label: /* @__PURE__ */ b(
|
|
843
|
-
m && /* @__PURE__ */
|
|
844
|
-
/* @__PURE__ */ b(
|
|
845
|
-
|
|
846
|
-
/* @__PURE__ */
|
|
842
|
+
label: /* @__PURE__ */ b(P, { sx: { display: "flex", alignItems: "flex-start", width: "100%" }, children: [
|
|
843
|
+
m && /* @__PURE__ */ n(P, { sx: { mr: 12, mt: "8px", flexShrink: 0 }, children: m }),
|
|
844
|
+
/* @__PURE__ */ b(P, { sx: { flex: 1, minWidth: 0, py: "8px" }, children: [
|
|
845
|
+
l && /* @__PURE__ */ n(X, { fontWeight: 600, sx: { lineHeight: "24px", pb: "4px" }, variant: "body1", children: l }),
|
|
846
|
+
/* @__PURE__ */ n(X, { sx: { lineHeight: "20px" }, variant: "subtitle2", children: r })
|
|
847
847
|
] })
|
|
848
848
|
] }),
|
|
849
849
|
labelPlacement: "start",
|
|
@@ -853,26 +853,26 @@ const Gr = ({
|
|
|
853
853
|
padding: "6px 16px",
|
|
854
854
|
alignItems: "flex-start",
|
|
855
855
|
justifyContent: "space-between",
|
|
856
|
-
borderRadius:
|
|
856
|
+
borderRadius: h.shape.borderRadius / 2,
|
|
857
857
|
mb: 16,
|
|
858
858
|
cursor: d ? "not-allowed" : "pointer",
|
|
859
859
|
opacity: d ? 0.6 : 1,
|
|
860
|
-
backgroundColor:
|
|
860
|
+
backgroundColor: ie(),
|
|
861
861
|
border: "none",
|
|
862
|
-
boxShadow:
|
|
862
|
+
boxShadow: D(),
|
|
863
863
|
boxSizing: "border-box",
|
|
864
|
-
transition:
|
|
865
|
-
duration:
|
|
864
|
+
transition: h.transitions.create(["background-color", "box-shadow"], {
|
|
865
|
+
duration: h.transitions.duration.short
|
|
866
866
|
}),
|
|
867
867
|
"&:hover": {
|
|
868
|
-
backgroundColor:
|
|
869
|
-
boxShadow:
|
|
868
|
+
backgroundColor: ae(),
|
|
869
|
+
boxShadow: ne()
|
|
870
870
|
},
|
|
871
871
|
"&:active": {
|
|
872
|
-
backgroundColor:
|
|
872
|
+
backgroundColor: le()
|
|
873
873
|
},
|
|
874
874
|
"&:focus-visible": {
|
|
875
|
-
outline: `2px solid ${
|
|
875
|
+
outline: `2px solid ${h.palette.info.main}`,
|
|
876
876
|
outlineOffset: "2px"
|
|
877
877
|
},
|
|
878
878
|
...x
|
|
@@ -880,20 +880,67 @@ const Gr = ({
|
|
|
880
880
|
value: c
|
|
881
881
|
}
|
|
882
882
|
);
|
|
883
|
-
},
|
|
883
|
+
}, y = {
|
|
884
884
|
LIGHT: "light"
|
|
885
|
-
},
|
|
885
|
+
}, Wr = ({ color: e = "neutral", icon: i, label: o, size: s = "small", sx: l, ...r }) => /* @__PURE__ */ b(
|
|
886
|
+
k,
|
|
887
|
+
{
|
|
888
|
+
component: "span",
|
|
889
|
+
sx: [
|
|
890
|
+
(a) => {
|
|
891
|
+
const c = a.palette.mode === y.LIGHT, d = e === "default" ? "neutral" : e;
|
|
892
|
+
return {
|
|
893
|
+
alignItems: "center",
|
|
894
|
+
borderRadius: 999,
|
|
895
|
+
// pill shape
|
|
896
|
+
display: "inline-flex",
|
|
897
|
+
gap: "4px",
|
|
898
|
+
height: s === "xsmall" ? "16px" : "24px",
|
|
899
|
+
paddingX: s === "xsmall" ? "6px" : "8px",
|
|
900
|
+
backgroundColor: a.palette[d][c ? 100 : 800],
|
|
901
|
+
color: c ? a.palette[d].dark : a.palette[d][100]
|
|
902
|
+
};
|
|
903
|
+
},
|
|
904
|
+
...Array.isArray(l) ? l : [l]
|
|
905
|
+
],
|
|
906
|
+
...r,
|
|
907
|
+
children: [
|
|
908
|
+
i && /* @__PURE__ */ n(
|
|
909
|
+
k,
|
|
910
|
+
{
|
|
911
|
+
"aria-hidden": !0,
|
|
912
|
+
component: "span",
|
|
913
|
+
sx: {
|
|
914
|
+
alignItems: "center",
|
|
915
|
+
display: "inline-flex",
|
|
916
|
+
"& .MuiSvgIcon-root": { fontSize: "16px" }
|
|
917
|
+
},
|
|
918
|
+
children: i
|
|
919
|
+
}
|
|
920
|
+
),
|
|
921
|
+
/* @__PURE__ */ n(
|
|
922
|
+
re,
|
|
923
|
+
{
|
|
924
|
+
component: "span",
|
|
925
|
+
sx: { fontWeight: "bold", textTransform: "uppercase" },
|
|
926
|
+
variant: "tiny",
|
|
927
|
+
children: o
|
|
928
|
+
}
|
|
929
|
+
)
|
|
930
|
+
]
|
|
931
|
+
}
|
|
932
|
+
), M = (e) => ({
|
|
886
933
|
50: E(e, 0.95),
|
|
887
934
|
100: E(e, 0.85),
|
|
888
935
|
200: E(e, 0.7),
|
|
889
936
|
300: E(e, 0.55),
|
|
890
937
|
400: E(e, 0.3),
|
|
891
938
|
500: e,
|
|
892
|
-
600:
|
|
893
|
-
700:
|
|
894
|
-
800:
|
|
895
|
-
900:
|
|
896
|
-
}),
|
|
939
|
+
600: L(e, 0.3),
|
|
940
|
+
700: L(e, 0.5),
|
|
941
|
+
800: L(e, 0.65),
|
|
942
|
+
900: L(e, 0.75)
|
|
943
|
+
}), R = "#FFFFFF", _ = "#000000", Ve = "#F9F9F9", We = "#000000", Ke = "#FFFFFF", Ye = "#000000", C = {
|
|
897
944
|
PRIMARY: "#2C64EF",
|
|
898
945
|
SECONDARY: "#808080",
|
|
899
946
|
INFO: "#2C64EF",
|
|
@@ -909,14 +956,14 @@ const Gr = ({
|
|
|
909
956
|
CHART5: "#60A9FF",
|
|
910
957
|
CHART6: "#C8BAEE",
|
|
911
958
|
CHART7: "#585E67"
|
|
912
|
-
},
|
|
959
|
+
}, I = {
|
|
913
960
|
CHART_MONO1: "#C3EAFF",
|
|
914
961
|
CHART_MONO2: "#8ED7FF",
|
|
915
962
|
CHART_MONO3: "#60A9FF",
|
|
916
963
|
CHART_MONO4: "#2F73DA",
|
|
917
964
|
CHART_MONO5: "#034AB3",
|
|
918
965
|
CHART_MONO6: "#002966"
|
|
919
|
-
},
|
|
966
|
+
}, p = {
|
|
920
967
|
AUTO_TRANSPORTT: "#00B0FF",
|
|
921
968
|
BILLS_UTILITIES: "#F949BD",
|
|
922
969
|
BUSINESS_SERVICES: "#2979FF",
|
|
@@ -939,7 +986,7 @@ const Gr = ({
|
|
|
939
986
|
TRANSFER: "#2B9580",
|
|
940
987
|
TRAVEL: "#3D5AFE",
|
|
941
988
|
UNCATEGORIZED: "#8495AD"
|
|
942
|
-
},
|
|
989
|
+
}, u = {
|
|
943
990
|
AUTO_TRANSPORTT: "#77DAFF",
|
|
944
991
|
BILLS_UTILITIES: "#FF81D4",
|
|
945
992
|
BUSINESS_SERVICES: "#4BBAFF",
|
|
@@ -962,13 +1009,13 @@ const Gr = ({
|
|
|
962
1009
|
TRANSFER: "#75C7B7",
|
|
963
1010
|
TRAVEL: "#76ACF7",
|
|
964
1011
|
UNCATEGORIZED: "#BCC6D4"
|
|
965
|
-
},
|
|
966
|
-
const o =
|
|
1012
|
+
}, Xe = (e, i) => {
|
|
1013
|
+
const o = M(i?.primary || C.PRIMARY), s = M(i?.secondary || C.SECONDARY), l = M(i?.error || C.ERROR), r = M(i?.warning || C.WARNING), a = M(i?.info || C.INFO), c = M(i?.success || C.SUCCESS), d = M(i?.grey || C.GREY), t = e === y.LIGHT;
|
|
967
1014
|
return {
|
|
968
1015
|
mode: e,
|
|
969
1016
|
common: {
|
|
970
|
-
white:
|
|
971
|
-
black:
|
|
1017
|
+
white: R,
|
|
1018
|
+
black: _
|
|
972
1019
|
},
|
|
973
1020
|
primary: {
|
|
974
1021
|
...o,
|
|
@@ -993,20 +1040,20 @@ const Gr = ({
|
|
|
993
1040
|
main: t ? d[500] : d[400],
|
|
994
1041
|
dark: t ? d[700] : d[200],
|
|
995
1042
|
darker: t ? d[800] : d[100],
|
|
996
|
-
contrastText:
|
|
1043
|
+
contrastText: Le(t ? d[700] : d[400], "#fff") > 4.5 ? R : d[900]
|
|
997
1044
|
},
|
|
998
1045
|
text: {
|
|
999
|
-
primary: t ? d[900] :
|
|
1000
|
-
secondary: t ? d[600] : f(
|
|
1001
|
-
disabled: t ? d[500] : f(
|
|
1046
|
+
primary: t ? d[900] : R,
|
|
1047
|
+
secondary: t ? d[600] : f(R, 0.7),
|
|
1048
|
+
disabled: t ? d[500] : f(R, 0.38)
|
|
1002
1049
|
},
|
|
1003
1050
|
error: {
|
|
1004
|
-
...
|
|
1005
|
-
lighter: t ?
|
|
1006
|
-
light: t ?
|
|
1007
|
-
main: t ?
|
|
1008
|
-
dark: t ?
|
|
1009
|
-
darker: t ?
|
|
1051
|
+
...l,
|
|
1052
|
+
lighter: t ? l[100] : l[700],
|
|
1053
|
+
light: t ? l[300] : l[600],
|
|
1054
|
+
main: t ? l[500] : l[400],
|
|
1055
|
+
dark: t ? l[700] : l[200],
|
|
1056
|
+
darker: t ? l[800] : l[100]
|
|
1010
1057
|
},
|
|
1011
1058
|
warning: {
|
|
1012
1059
|
...r,
|
|
@@ -1017,12 +1064,12 @@ const Gr = ({
|
|
|
1017
1064
|
darker: t ? r[800] : r[100]
|
|
1018
1065
|
},
|
|
1019
1066
|
info: {
|
|
1020
|
-
...
|
|
1021
|
-
lighter: t ?
|
|
1022
|
-
light: t ?
|
|
1023
|
-
main: t ?
|
|
1024
|
-
dark: t ?
|
|
1025
|
-
darker: t ?
|
|
1067
|
+
...a,
|
|
1068
|
+
lighter: t ? a[100] : a[700],
|
|
1069
|
+
light: t ? a[300] : a[600],
|
|
1070
|
+
main: t ? a[500] : a[400],
|
|
1071
|
+
dark: t ? a[700] : a[200],
|
|
1072
|
+
darker: t ? a[800] : a[100]
|
|
1026
1073
|
},
|
|
1027
1074
|
success: {
|
|
1028
1075
|
...c,
|
|
@@ -1034,41 +1081,41 @@ const Gr = ({
|
|
|
1034
1081
|
},
|
|
1035
1082
|
grey: d,
|
|
1036
1083
|
action: {
|
|
1037
|
-
active: t ? f(
|
|
1084
|
+
active: t ? f(_, 0.56) : f(R, 0.56),
|
|
1038
1085
|
hoverOpacity: t ? 0.1 : 0.2,
|
|
1039
1086
|
selectedOpacity: t ? 0.16 : 0.25,
|
|
1040
1087
|
focusOpacity: 0.3
|
|
1041
1088
|
},
|
|
1042
1089
|
background: {
|
|
1043
1090
|
default: t ? i?.background?.default?.light || Ve : i?.background?.default?.dark || We,
|
|
1044
|
-
paper: t ? i?.background?.paper?.light ||
|
|
1091
|
+
paper: t ? i?.background?.paper?.light || Ke : i?.background?.paper?.dark || Ye,
|
|
1045
1092
|
highlight: t ? d[200] : d[600],
|
|
1046
1093
|
highlightPrimary: t ? o[100] : o[500]
|
|
1047
1094
|
},
|
|
1048
|
-
divider: t ? f(
|
|
1095
|
+
divider: t ? f(_, 0.12) : f(R, 0.24),
|
|
1049
1096
|
categories: {
|
|
1050
|
-
autoTransport: t ?
|
|
1051
|
-
billsUtilities: t ?
|
|
1052
|
-
businessServices: t ?
|
|
1053
|
-
education: t ?
|
|
1054
|
-
entertainment: t ?
|
|
1055
|
-
feesCharges: t ?
|
|
1056
|
-
financial: t ?
|
|
1057
|
-
foodDining: t ?
|
|
1058
|
-
giftsDonations: t ?
|
|
1059
|
-
healthFitness: t ?
|
|
1060
|
-
home: t ?
|
|
1061
|
-
income: t ?
|
|
1062
|
-
investments: t ?
|
|
1063
|
-
kids: t ?
|
|
1064
|
-
others: t ?
|
|
1065
|
-
personalCare: t ?
|
|
1066
|
-
pets: t ?
|
|
1067
|
-
shopping: t ?
|
|
1068
|
-
taxes: t ?
|
|
1069
|
-
transfer: t ?
|
|
1070
|
-
travel: t ?
|
|
1071
|
-
uncategorized: t ?
|
|
1097
|
+
autoTransport: t ? p.AUTO_TRANSPORTT : u.AUTO_TRANSPORTT,
|
|
1098
|
+
billsUtilities: t ? p.BILLS_UTILITIES : u.BILLS_UTILITIES,
|
|
1099
|
+
businessServices: t ? p.BUSINESS_SERVICES : u.BUSINESS_SERVICES,
|
|
1100
|
+
education: t ? p.EDUCATION : u.EDUCATION,
|
|
1101
|
+
entertainment: t ? p.ENTERTAINMENT : u.ENTERTAINMENT,
|
|
1102
|
+
feesCharges: t ? p.FEES_CHARGES : u.FEES_CHARGES,
|
|
1103
|
+
financial: t ? p.FINANCIAL : u.FINANCIAL,
|
|
1104
|
+
foodDining: t ? p.FOOD_DINING : u.FOOD_DINING,
|
|
1105
|
+
giftsDonations: t ? p.GIFTS_DONATIONS : u.GIFTS_DONATIONS,
|
|
1106
|
+
healthFitness: t ? p.HEALTH_FITNESS : u.HEALTH_FITNESS,
|
|
1107
|
+
home: t ? p.HOME : u.HOME,
|
|
1108
|
+
income: t ? p.INCOME : u.INCOME,
|
|
1109
|
+
investments: t ? p.INVESTMENTS : u.INVESTMENTS,
|
|
1110
|
+
kids: t ? p.KIDS : u.KIDS,
|
|
1111
|
+
others: t ? p.OTHERS : u.OTHERS,
|
|
1112
|
+
personalCare: t ? p.PERSONAL_CARE : u.PERSONAL_CARE,
|
|
1113
|
+
pets: t ? p.PETS : u.PETS,
|
|
1114
|
+
shopping: t ? p.SHOPPING : u.SHOPPING,
|
|
1115
|
+
taxes: t ? p.TAXES : u.TAXES,
|
|
1116
|
+
transfer: t ? p.TRANSFER : u.TRANSFER,
|
|
1117
|
+
travel: t ? p.TRAVEL : u.TRAVEL,
|
|
1118
|
+
uncategorized: t ? p.UNCATEGORIZED : u.UNCATEGORIZED
|
|
1072
1119
|
},
|
|
1073
1120
|
chart: {
|
|
1074
1121
|
chart1: S.CHART1,
|
|
@@ -1080,16 +1127,16 @@ const Gr = ({
|
|
|
1080
1127
|
chart7: S.CHART7
|
|
1081
1128
|
},
|
|
1082
1129
|
chartMono: {
|
|
1083
|
-
chartMono1:
|
|
1084
|
-
chartMono2:
|
|
1085
|
-
chartMono3:
|
|
1086
|
-
chartMono4:
|
|
1087
|
-
chartMono5:
|
|
1088
|
-
chartMono6:
|
|
1130
|
+
chartMono1: I.CHART_MONO1,
|
|
1131
|
+
chartMono2: I.CHART_MONO2,
|
|
1132
|
+
chartMono3: I.CHART_MONO3,
|
|
1133
|
+
chartMono4: I.CHART_MONO4,
|
|
1134
|
+
chartMono5: I.CHART_MONO5,
|
|
1135
|
+
chartMono6: I.CHART_MONO6
|
|
1089
1136
|
}
|
|
1090
1137
|
};
|
|
1091
|
-
},
|
|
1092
|
-
const i = e?.fontFamily ? `${e?.fontFamily}, ${
|
|
1138
|
+
}, z = "Inter, Helvetica, Arial, sans-serif", je = (e) => {
|
|
1139
|
+
const i = e?.fontFamily ? `${e?.fontFamily}, ${z}` : z, o = e?.headerFontFamily ? `${e.headerFontFamily}, ${z}` : i;
|
|
1093
1140
|
return {
|
|
1094
1141
|
fontFamily: i,
|
|
1095
1142
|
fontSize: 15,
|
|
@@ -1150,9 +1197,9 @@ const Gr = ({
|
|
|
1150
1197
|
Ne.setLicenseKey(
|
|
1151
1198
|
"702b0c04dc7df078768d2d45cd3a98c6Tz0xMjEzMDYsRT0xNzkzNzUwMzk5MDAwLFM9cHJvLExNPXN1YnNjcmlwdGlvbixQVj1RMy0yMDI0LEtWPTI="
|
|
1152
1199
|
);
|
|
1153
|
-
const
|
|
1154
|
-
const o =
|
|
1155
|
-
return
|
|
1200
|
+
const Kr = (e, i) => {
|
|
1201
|
+
const o = Xe(e, i?.paletteOptions), s = je(i?.typographyOptions), l = [...G().shadows];
|
|
1202
|
+
return l[1] = "0px 2px 8px 0 rgba(0, 0, 0, 0.12)", l[8] = "0px 6px 12px 0 rgba(0, 0, 0, 0.16), 0px 3px 8px 0 rgba(0, 0, 0, 0.06)", l[16] = "0px 12px 20px 0 rgba(0, 0, 0, 0.22)", G({
|
|
1156
1203
|
breakpoints: i?.breakpoints || {
|
|
1157
1204
|
values: {
|
|
1158
1205
|
// TODO: Remove these default values in v3. Users should provide their own breakpoints if they want to.
|
|
@@ -1170,7 +1217,7 @@ const Wr = (e, i) => {
|
|
|
1170
1217
|
shape: {
|
|
1171
1218
|
borderRadius: i?.shapeOptions?.borderRadius || 4
|
|
1172
1219
|
},
|
|
1173
|
-
shadows:
|
|
1220
|
+
shadows: l,
|
|
1174
1221
|
...i?.useMUIStandardSpacing ? {} : { spacing: 1 },
|
|
1175
1222
|
// TODO: update spacing, we're back to a 8-base which is default for MUI 2.x
|
|
1176
1223
|
typography: s,
|
|
@@ -1178,18 +1225,18 @@ const Wr = (e, i) => {
|
|
|
1178
1225
|
MuiAlert: {
|
|
1179
1226
|
defaultProps: {
|
|
1180
1227
|
iconMapping: {
|
|
1181
|
-
success: /* @__PURE__ */
|
|
1182
|
-
error: /* @__PURE__ */
|
|
1183
|
-
warning: /* @__PURE__ */
|
|
1184
|
-
info: /* @__PURE__ */
|
|
1228
|
+
success: /* @__PURE__ */ n(T, { fill: !0, name: "check_circle", size: 24 }),
|
|
1229
|
+
error: /* @__PURE__ */ n(T, { fill: !0, name: "error", size: 24 }),
|
|
1230
|
+
warning: /* @__PURE__ */ n(T, { fill: !0, name: "warning", size: 24 }),
|
|
1231
|
+
info: /* @__PURE__ */ n(T, { fill: !0, name: "info", size: 24 })
|
|
1185
1232
|
},
|
|
1186
1233
|
variant: "outlined"
|
|
1187
1234
|
},
|
|
1188
1235
|
styleOverrides: {
|
|
1189
|
-
root: ({ theme: r, ownerState:
|
|
1190
|
-
const c =
|
|
1191
|
-
let d = r.palette.mode ===
|
|
1192
|
-
if (
|
|
1236
|
+
root: ({ theme: r, ownerState: a }) => {
|
|
1237
|
+
const c = a.severity || "info";
|
|
1238
|
+
let d = r.palette.mode === y.LIGHT ? r.palette[c]?.[50] : r.palette[c]?.[800];
|
|
1239
|
+
if (a.variant === "filled") {
|
|
1193
1240
|
const t = c === "warning";
|
|
1194
1241
|
d = r.palette[c]?.[t ? 400 : 600];
|
|
1195
1242
|
}
|
|
@@ -1281,6 +1328,76 @@ const Wr = (e, i) => {
|
|
|
1281
1328
|
}
|
|
1282
1329
|
}
|
|
1283
1330
|
},
|
|
1331
|
+
MuiChip: {
|
|
1332
|
+
defaultProps: {
|
|
1333
|
+
color: "primary",
|
|
1334
|
+
deleteIcon: /* @__PURE__ */ n("span", { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ n(T, { name: "close" }) })
|
|
1335
|
+
},
|
|
1336
|
+
styleOverrides: {
|
|
1337
|
+
root: ({ theme: r, ownerState: a }) => {
|
|
1338
|
+
const c = !a.color || a.color === "default" ? "primary" : a.color, d = a.size === "small", t = d ? r.typography.caption : r.typography.body2;
|
|
1339
|
+
return {
|
|
1340
|
+
borderRadius: r.shape.borderRadius,
|
|
1341
|
+
color: r.palette[c].main,
|
|
1342
|
+
fontSize: t.fontSize,
|
|
1343
|
+
lineHeight: t.lineHeight,
|
|
1344
|
+
"&.Mui-focusVisible": {
|
|
1345
|
+
outline: `2px solid ${r.palette.info.main}`,
|
|
1346
|
+
outlineOffset: "2px"
|
|
1347
|
+
},
|
|
1348
|
+
"& > .MuiSvgIcon-root": {
|
|
1349
|
+
marginLeft: "4px"
|
|
1350
|
+
},
|
|
1351
|
+
"& .MuiSvgIcon-root": {
|
|
1352
|
+
fontSize: d ? "16px" : "18px"
|
|
1353
|
+
},
|
|
1354
|
+
"& .MuiChip-avatar": {
|
|
1355
|
+
width: d ? "18px" : "24px",
|
|
1356
|
+
height: d ? "18px" : "24px"
|
|
1357
|
+
},
|
|
1358
|
+
"& .MuiChip-deleteIcon": {
|
|
1359
|
+
color: r.palette[c].main,
|
|
1360
|
+
"&:hover": {
|
|
1361
|
+
color: r.palette[c].dark
|
|
1362
|
+
}
|
|
1363
|
+
},
|
|
1364
|
+
"&.MuiChip-clickable:hover, &.Mui-focusVisible": {
|
|
1365
|
+
backgroundColor: f(
|
|
1366
|
+
r.palette[c].main,
|
|
1367
|
+
r.palette.action.hoverOpacity
|
|
1368
|
+
)
|
|
1369
|
+
},
|
|
1370
|
+
"&.MuiChip-clickable:active": {
|
|
1371
|
+
backgroundColor: f(
|
|
1372
|
+
r.palette[c].main,
|
|
1373
|
+
r.palette.action.focusOpacity
|
|
1374
|
+
)
|
|
1375
|
+
}
|
|
1376
|
+
};
|
|
1377
|
+
},
|
|
1378
|
+
label: ({ ownerState: r }) => ({
|
|
1379
|
+
...r.icon && {
|
|
1380
|
+
paddingLeft: "4px"
|
|
1381
|
+
}
|
|
1382
|
+
})
|
|
1383
|
+
},
|
|
1384
|
+
variants: [
|
|
1385
|
+
{
|
|
1386
|
+
props: { variant: "filled" },
|
|
1387
|
+
style: ({ theme: r }) => ({
|
|
1388
|
+
"& .MuiChip-label, & > .MuiSvgIcon-root": {
|
|
1389
|
+
color: r.palette.text.primary
|
|
1390
|
+
}
|
|
1391
|
+
})
|
|
1392
|
+
},
|
|
1393
|
+
...["primary", "secondary", "error", "warning", "info", "success", "neutral"].map((r) => ({
|
|
1394
|
+
props: { variant: "filled", color: r },
|
|
1395
|
+
style: ({ theme: a }) => ({
|
|
1396
|
+
backgroundColor: a.palette[r][a.palette.mode === y.LIGHT ? 100 : 800]
|
|
1397
|
+
})
|
|
1398
|
+
}))
|
|
1399
|
+
]
|
|
1400
|
+
},
|
|
1284
1401
|
MuiCircularProgress: {
|
|
1285
1402
|
styleOverrides: {
|
|
1286
1403
|
root: {
|
|
@@ -1849,7 +1966,7 @@ const Wr = (e, i) => {
|
|
|
1849
1966
|
"&:hover": {
|
|
1850
1967
|
backgroundColor: f(
|
|
1851
1968
|
r.palette.primary.main,
|
|
1852
|
-
o.mode ===
|
|
1969
|
+
o.mode === y.LIGHT ? 0.1 : 0.2
|
|
1853
1970
|
),
|
|
1854
1971
|
borderColor: r.palette.primary.main
|
|
1855
1972
|
},
|
|
@@ -1873,7 +1990,7 @@ const Wr = (e, i) => {
|
|
|
1873
1990
|
props: { color: "error" },
|
|
1874
1991
|
style: {
|
|
1875
1992
|
"&:hover": {
|
|
1876
|
-
backgroundColor: f(o.error.main, o.mode ===
|
|
1993
|
+
backgroundColor: f(o.error.main, o.mode === y.LIGHT ? 0.1 : 0.2),
|
|
1877
1994
|
borderColor: o.error.main
|
|
1878
1995
|
},
|
|
1879
1996
|
"&.Mui-selected": {
|
|
@@ -1897,7 +2014,7 @@ const Wr = (e, i) => {
|
|
|
1897
2014
|
"&:hover": {
|
|
1898
2015
|
backgroundColor: f(
|
|
1899
2016
|
o.secondary.main,
|
|
1900
|
-
o.mode ===
|
|
2017
|
+
o.mode === y.LIGHT ? 0.1 : 0.2
|
|
1901
2018
|
),
|
|
1902
2019
|
borderColor: o.secondary.main
|
|
1903
2020
|
},
|
|
@@ -1937,9 +2054,9 @@ const Wr = (e, i) => {
|
|
|
1937
2054
|
});
|
|
1938
2055
|
};
|
|
1939
2056
|
export {
|
|
1940
|
-
|
|
2057
|
+
H as BaseIcon,
|
|
1941
2058
|
Hr as BottomSheetTransition,
|
|
1942
|
-
|
|
2059
|
+
g as CategoryGuids,
|
|
1943
2060
|
Pe as CategoryIcon,
|
|
1944
2061
|
De as CategoryIconList,
|
|
1945
2062
|
He as CategoryIconVariants,
|
|
@@ -1951,19 +2068,20 @@ export {
|
|
|
1951
2068
|
Ue as H1,
|
|
1952
2069
|
Dr as H2,
|
|
1953
2070
|
wr as H3,
|
|
1954
|
-
|
|
2071
|
+
z as INTER,
|
|
1955
2072
|
T as Icon,
|
|
1956
2073
|
zr as InstitutionLogo,
|
|
1957
|
-
|
|
1958
|
-
|
|
2074
|
+
vr as MXLogoCopyrightIcon,
|
|
2075
|
+
Lr as MXLogoFilledIcon,
|
|
1959
2076
|
Fr as MXLogoIcon,
|
|
1960
2077
|
kr as MXLogoOutlineIcon,
|
|
1961
2078
|
$r as MerchantLogo,
|
|
1962
2079
|
Pr as P,
|
|
1963
2080
|
Vr as SelectionBox,
|
|
2081
|
+
Wr as Tag,
|
|
1964
2082
|
F as Text,
|
|
1965
2083
|
Ur as TextField,
|
|
1966
2084
|
Gr as Toast,
|
|
1967
|
-
|
|
2085
|
+
Kr as createMXTheme
|
|
1968
2086
|
};
|
|
1969
2087
|
//# sourceMappingURL=index.es.js.map
|