@mx-cartographer/experiences 7.0.37-alpha-recurring-transactions-divider-padding-ram3 → 7.0.37-alpha-testing-mr-ram1
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/CHANGELOG.md +4 -0
- package/dist/{ManageIncome-BaZyK1CD.mjs → ManageIncome-4_bSdxXr.mjs} +74 -73
- package/dist/RecurringSettings-RduF8gt3.mjs +88 -0
- package/dist/budgets/index.es.js +117 -120
- package/dist/cashflow/index.es.js +2 -2
- package/dist/finstrong/index.es.js +1 -1
- package/dist/recurringtransactions/index.es.js +285 -286
- package/package.json +1 -1
- package/dist/RecurringSettings-DHPyexin.mjs +0 -79
package/package.json
CHANGED
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { jsx as e, Fragment as b, jsxs as t } from "react/jsx-runtime";
|
|
2
|
-
import m from "react";
|
|
3
|
-
import { observer as u } from "mobx-react-lite";
|
|
4
|
-
import c from "@mui/material/Box";
|
|
5
|
-
import p from "@mui/material/Tab";
|
|
6
|
-
import R from "@mui/material/Tabs";
|
|
7
|
-
import l from "@mui/material/Divider";
|
|
8
|
-
import T from "@mui/material/List";
|
|
9
|
-
import C from "@mui/material/Stack";
|
|
10
|
-
import { R as x, A as S, a as E, M as A } from "./ManageIncome-BaZyK1CD.mjs";
|
|
11
|
-
import { u as h, i as y, f as _ } from "./hooks-BAAimqdq.mjs";
|
|
12
|
-
import { R as v, F as N } from "./RepeatingTransaction-BW4J-jeJ.mjs";
|
|
13
|
-
import { A as d } from "./WidgetContainer-ztkGgdIH.mjs";
|
|
14
|
-
const I = u(() => {
|
|
15
|
-
const { recurring: r } = h(), { repeatingTransactions: s } = y(), { onEvent: o } = _(), a = (n) => {
|
|
16
|
-
o(d.RECURRING_TRANSACTIONS_CLICK_EXPENSE, {
|
|
17
|
-
repeating_transaction_guid: n.guid
|
|
18
|
-
});
|
|
19
|
-
}, g = () => {
|
|
20
|
-
o(d.RECURRING_TRANSACTIONS_CLICK_ADD_EXPENSE);
|
|
21
|
-
}, i = s.filter(
|
|
22
|
-
(n) => n.repeating_transaction_type !== v.Income && (n.transactions.length > 0 || n.recurrence_type === N.EveryYear)
|
|
23
|
-
);
|
|
24
|
-
return /* @__PURE__ */ e(b, { children: i.length !== 0 ? /* @__PURE__ */ t(C, { sx: { justifyContent: "space-between", height: "calc(100% - 57px)" }, children: [
|
|
25
|
-
/* @__PURE__ */ e(T, { sx: { bgcolor: "background.paper" }, children: i.map((n, f) => /* @__PURE__ */ t(m.Fragment, { children: [
|
|
26
|
-
/* @__PURE__ */ e(x, { onClick: a, repeatingTransaction: n }),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
l,
|
|
29
|
-
{
|
|
30
|
-
variant: f < i.length - 1 ? "inset" : "fullWidth"
|
|
31
|
-
}
|
|
32
|
-
)
|
|
33
|
-
] }, n.guid)) }),
|
|
34
|
-
/* @__PURE__ */ t(c, { children: [
|
|
35
|
-
/* @__PURE__ */ e(l, {}),
|
|
36
|
-
/* @__PURE__ */ e(
|
|
37
|
-
c,
|
|
38
|
-
{
|
|
39
|
-
sx: {
|
|
40
|
-
alignContent: "center",
|
|
41
|
-
bgcolor: "background.paper",
|
|
42
|
-
justifyContent: "flex-end",
|
|
43
|
-
px: 24,
|
|
44
|
-
py: 12,
|
|
45
|
-
textAlign: "right"
|
|
46
|
-
},
|
|
47
|
-
children: /* @__PURE__ */ e(S, { label: r.add_expense, onAddRecurringTransaction: g })
|
|
48
|
-
}
|
|
49
|
-
)
|
|
50
|
-
] })
|
|
51
|
-
] }) : /* @__PURE__ */ e(E, { zeroStateFor: "expenses" }) });
|
|
52
|
-
}), X = u(() => {
|
|
53
|
-
const [r, s] = m.useState(0), { onEvent: o } = _(), { recurring: a } = h();
|
|
54
|
-
return /* @__PURE__ */ t(c, { bgcolor: "background.default", height: "100%", children: [
|
|
55
|
-
/* @__PURE__ */ t(
|
|
56
|
-
R,
|
|
57
|
-
{
|
|
58
|
-
onChange: (i, n) => {
|
|
59
|
-
s(n), o(
|
|
60
|
-
n === 0 ? "recurring_transactions_widget_manage_expenses" : "recurring_transactions_widget_edit_income"
|
|
61
|
-
);
|
|
62
|
-
},
|
|
63
|
-
sx: { bgcolor: "background.paper" },
|
|
64
|
-
value: r,
|
|
65
|
-
variant: "fullWidth",
|
|
66
|
-
children: [
|
|
67
|
-
/* @__PURE__ */ e(p, { label: a.expenses }),
|
|
68
|
-
/* @__PURE__ */ e(p, { label: a.income })
|
|
69
|
-
]
|
|
70
|
-
}
|
|
71
|
-
),
|
|
72
|
-
r === 0 && /* @__PURE__ */ e(I, {}),
|
|
73
|
-
r === 1 && /* @__PURE__ */ e(A, {})
|
|
74
|
-
] });
|
|
75
|
-
});
|
|
76
|
-
export {
|
|
77
|
-
I as M,
|
|
78
|
-
X as R
|
|
79
|
-
};
|