@mx-cartographer/experiences 8.0.0-alpha.bb2 → 8.0.0-alpha.bb4
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 +128 -1
- package/dist/{Account-Bxw0_4FU.mjs → Account-B4CDD-zq.mjs} +1 -1
- package/dist/AccountDetailsContent-adZTkM52.mjs +683 -0
- package/dist/AccountDetailsHeader-DRjFuyJT.mjs +87 -0
- package/dist/{AccountFields-C9FlatNb.mjs → AccountFields-Cl4KHoSj.mjs} +14 -12
- package/dist/AccountListItem-wgmlex-_.mjs +90 -0
- package/dist/{AccountStore-BgNOyMdp.mjs → AccountStore-HbVblv86.mjs} +19 -8
- package/dist/{Accounts-BRf_YeTf.mjs → Accounts-CRUehOiy.mjs} +1 -1
- package/dist/{BeatApi-DhJpgCLz.mjs → BeatApi-De2IaqH2.mjs} +1 -1
- package/dist/{BeatStore-IBnXd4YK.mjs → BeatStore-D_NYuBSz.mjs} +1 -1
- package/dist/{BudgetUtil-B2ZXyw-g.mjs → BudgetUtil-Jv8h9H9l.mjs} +33 -33
- package/dist/{CashflowStore-D9Dpuz7X.mjs → CashflowStore-CA190BPF.mjs} +18 -25
- package/dist/{Category-CevNQ03n.mjs → Category-Ccoew_sA.mjs} +2 -2
- package/dist/{CategorySelectorDrawer-DUe4lH5-.mjs → CategorySelectorDrawer-Dl006GKy.mjs} +43 -41
- package/dist/{CategoryStore-yHI0hWmK.mjs → CategoryStore-MUwRWH9e.mjs} +13 -11
- package/dist/{CategoryUtil-pZRIYOgN.mjs → CategoryUtil-DfVKKkRf.mjs} +4 -4
- package/dist/{ConnectDrawer-BQNs-hjk.mjs → ConnectDrawer-DVp54lUH.mjs} +49 -48
- package/dist/{ConnectionsDrawer-ByGQE7D5.mjs → ConnectionsDrawer-Dsc04-4Z.mjs} +3 -3
- package/dist/CurrencyInput-D1cjbdCI.mjs +85 -0
- package/dist/{CurrencyText-kyC1aseI.mjs → CurrencyText-Dr0EZ7bp.mjs} +1 -1
- package/dist/{DateUtil-BcuH7ErC.mjs → DateUtil-CDPZw_-m.mjs} +3 -3
- package/dist/{DebtsStore-C9bblOgW.mjs → DebtsStore-pL63fmdT.mjs} +3 -3
- package/dist/{Dialog-CWW597AF.mjs → Dialog-CDV0kKxj.mjs} +24 -24
- package/dist/{Donut-oaQFlbit.mjs → Donut-Dmy3JTWd.mjs} +12 -12
- package/dist/Drawer-BF40nbsH.mjs +163 -0
- package/dist/{EmptyState-DA_lfRBv.mjs → EmptyState-DoxNUae-.mjs} +24 -22
- package/dist/{ExportCsvAction-sX8Rg4Ov.mjs → ExportCsvAction-QhQK4_FU.mjs} +4 -4
- package/dist/{Fetch-87LIQbEA.mjs → Fetch-DecPFeGU.mjs} +24 -22
- package/dist/FinstrongStore-BGf36b0z.mjs +451 -0
- package/dist/{GoalStore-D-aB35SY.mjs → GoalStore-C1-w3Y1E.mjs} +7 -7
- package/dist/HeaderCell-P8w6CmfO.mjs +6 -0
- package/dist/{Help-B6dIcujh.mjs → Help-DBfsTkAi.mjs} +125 -146
- package/dist/{Help-DhcC-C05.mjs → Help-c-zHlDbv.mjs} +8 -8
- package/dist/{IconBacking-B9oC6uL2.mjs → IconBacking-DgT8DCeh.mjs} +11 -11
- package/dist/LineChart-C1PxNf7P.mjs +581 -0
- package/dist/{ListItemAction-DHa3KJPs.mjs → ListItemAction-BNCWQAN_.mjs} +10 -10
- package/dist/Loader-Ckqi9Rx6.mjs +21 -0
- package/dist/{ManageIncome-1s_q5W4X.mjs → ManageIncome-8EsStyIQ.mjs} +195 -192
- package/dist/{MerchantStore-DrFvsUyy.mjs → MerchantStore-WvZ4gnQe.mjs} +1 -1
- package/dist/MicroWidgetContainer-BGpNl5ZS.mjs +45 -0
- package/dist/MiniWidgetContainer-CKzf_Ira.mjs +56 -0
- package/dist/{NetWorthStore-DCsTZpuS.mjs → NetWorthStore-Bti6u-d9.mjs} +4 -4
- package/dist/{NotificationSettings-DqrkNMod.mjs → NotificationSettings-B74rQVYC.mjs} +276 -273
- package/dist/{NotificationStore-BxP_P2dA.mjs → NotificationStore-Ck2KdNmT.mjs} +10 -10
- package/dist/{NumberFormatting-Buh7u8Oi.mjs → NumberFormatting-DjTD0t3W.mjs} +9 -9
- package/dist/{OriginalBalanceAction-CWuVvRq9.mjs → OriginalBalanceAction-2Y_3U_mg.mjs} +10 -10
- package/dist/{RecurringSettings-A_rAGCTP.mjs → RecurringSettings-DAncu--R.mjs} +17 -17
- package/dist/{RecurringTransactions-DK8dWldr.mjs → RecurringTransactions-CxcSL1dY.mjs} +106 -105
- package/dist/{RecurringTransactionsStore-C4YOD7_D.mjs → RecurringTransactionsStore-CNFxyGB6.mjs} +80 -73
- package/dist/{ResponsiveButton-DZFp78fJ.mjs → ResponsiveButton-Cn6-R7ue.mjs} +10 -10
- package/dist/SearchBox-B7km148n.mjs +39 -0
- package/dist/{SettingsStore-BcgS_Ohv.mjs → SettingsStore-BASMQSIp.mjs} +3 -3
- package/dist/{SingleSegmentDonut-BgbLgwHi.mjs → SingleSegmentDonut-7Uy6VEld.mjs} +6 -6
- package/dist/SkeletonLoader-BaNboJjD.mjs +38 -0
- package/dist/{SpendingData-D5vsfYKo.mjs → SpendingData-DPQ96k3x.mjs} +19 -19
- package/dist/SpendingLegend-6FqtMcBV.mjs +193 -0
- package/dist/{StatusBar-BK_uYHAB.mjs → StatusBar-CPfSXe80.mjs} +6 -6
- package/dist/{TabContentContainer-j01JYR_7.mjs → TabContentContainer-CnMXkVqr.mjs} +8 -8
- package/dist/{ToggleListItem-r0Kx56wF.mjs → ToggleListItem-ciFTiqRS.mjs} +19 -14
- package/dist/TransactionApi-CjBoLleL.mjs +86 -0
- package/dist/TransactionDetails-Bn0qY5Hw.mjs +1336 -0
- package/dist/{TransactionStore-ai3uII_r.mjs → TransactionStore-DbwAutwC.mjs} +146 -165
- package/dist/TrendsStore-_mRaFUdf.mjs +182 -0
- package/dist/{User-BQUxBeZV.mjs → User-BklmOUSd.mjs} +107 -107
- package/dist/{ViewMoreMicroCard-SCn2wt4i.mjs → ViewMoreMicroCard-DAkyNRlD.mjs} +706 -729
- package/dist/{WidgetContainer-BHWANqT4.mjs → WidgetContainer-CDh9fjpR.mjs} +36 -36
- package/dist/accounts/components/AccountsListCompact.d.ts +10 -0
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsChart.d.ts +4 -1
- package/dist/accounts/components/detailsdrawer/Accounts/AccountDetailsHeader.d.ts +2 -1
- package/dist/accounts/index.es.js +228 -199
- package/dist/accounts/stores/AccountStore.d.ts +2 -0
- package/dist/analytics/index.es.js +27 -27
- package/dist/budgets/index.es.js +459 -462
- package/dist/cashflow/index.es.js +419 -428
- package/dist/categories/index.es.js +2 -2
- package/dist/categories/stores/CategoryStore.d.ts +1 -1
- package/dist/common/components/ErrorBoundary.d.ts +1 -1
- package/dist/common/components/Loader.d.ts +1 -2
- package/dist/common/components/Select.d.ts +4 -2
- package/dist/common/components/SkeletonLoader.d.ts +7 -0
- package/dist/common/components/accountfilter/AccountFilterOptions.d.ts +1 -1
- package/dist/common/components/charts/LineChart.d.ts +12 -2
- package/dist/common/components/charts/index.d.ts +0 -3
- package/dist/common/components/charts/linechart/CustomLegend.d.ts +3 -1
- package/dist/common/components/charts/linechart/CustomMark.d.ts +5 -1
- package/dist/common/components/drawer/Drawer.d.ts +3 -0
- package/dist/common/components/drawer/Footer.d.ts +17 -0
- package/dist/common/components/index.d.ts +0 -1
- package/dist/common/hooks/index.d.ts +0 -1
- package/dist/common/hooks/useAriaLive.d.ts +1 -1
- package/dist/common/index.es.js +413 -674
- package/dist/common/stores/GlobalStore.d.ts +7 -1
- package/dist/common/stores/GlobalUiStore.d.ts +3 -2
- package/dist/common/types/Finstrong.d.ts +54 -0
- package/dist/common/types/Global.d.ts +1 -0
- package/dist/common/types/Widgets.d.ts +1 -0
- package/dist/common/types/index.d.ts +1 -1
- package/dist/common/types/localization/FinstrongCopy.d.ts +105 -2
- package/dist/common/types/localization/GoalsCopy.d.ts +1 -0
- package/dist/common/utils/Theme.d.ts +1 -3
- package/dist/dashboard/index.es.js +21 -21
- package/dist/debts/components/DebtsChart.d.ts +1 -2
- package/dist/debts/index.es.js +673 -665
- package/dist/exportTransactionsToCSV-BgV_wTLT.mjs +48 -0
- package/dist/finstrong/FinstrongWidget.d.ts +1 -1
- package/dist/finstrong/api/FinstrongApi.d.ts +5 -0
- package/dist/finstrong/components/ConnectMoreAccountsCard.d.ts +3 -1
- package/dist/finstrong/components/CreditScore/CreditScoreContent.d.ts +4 -0
- package/dist/finstrong/components/CreditScore/CreditScoreHeader.d.ts +4 -0
- package/dist/finstrong/components/FinancialStrengthGraph.d.ts +7 -1
- package/dist/finstrong/components/HaveManageableDebt/DebtPaymentTabContent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtComponent.d.ts +3 -0
- package/dist/finstrong/components/HaveManageableDebt/HaveManageableDebtProgressBar.d.ts +4 -0
- package/dist/finstrong/components/HaveManageableDebt/IncomeTabContent.d.ts +3 -0
- package/dist/finstrong/components/KeyIndicatorsBorrowTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsDrawer.d.ts +4 -1
- package/dist/finstrong/components/KeyIndicatorsSaveTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsSpendTab.d.ts +2 -2
- package/dist/finstrong/components/KeyIndicatorsTabItem.d.ts +4 -3
- package/dist/finstrong/components/KeyIndicatorsTabItemDrawer.d.ts +10 -0
- package/dist/finstrong/components/KeyIndicatorsTabsWidget.d.ts +2 -2
- package/dist/finstrong/components/MaintainingEmergencySavings/EstimatedContributionCalculator.d.ts +6 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsContent.d.ts +4 -0
- package/dist/finstrong/components/MaintainingEmergencySavings/MaintainingEmergencySavingsSticky.d.ts +4 -0
- package/dist/finstrong/components/ProgressBar.d.ts +15 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/AvailableTabContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnDrawerContent.d.ts +3 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SaveEnoughToLiveOnProgressBar.d.ts +4 -0
- package/dist/finstrong/components/SaveEnoughToLiveOn/SpendingTabContent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeComponent.d.ts +3 -0
- package/dist/finstrong/components/SpendLessThanYouMake/SpendLessThanYouMakeProgressBar.d.ts +4 -0
- package/dist/finstrong/components/StatusChip.d.ts +5 -0
- package/dist/finstrong/components/onboarding/Onboarding.d.ts +2 -0
- package/dist/finstrong/components/onboarding/OnboardingAddMonthlyIncome.d.ts +17 -0
- package/dist/finstrong/components/onboarding/OnboardingBirthday.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingCreditScore.d.ts +8 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsDrawer.d.ts +14 -0
- package/dist/finstrong/components/onboarding/OnboardingStepsHeader.d.ts +8 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeDrawerComponent.d.ts +4 -0
- package/dist/finstrong/components/paybillsontime/PayBillsOnTimeStickyComponent.d.ts +4 -0
- package/dist/finstrong/components/shared/Accounts.d.ts +8 -0
- package/dist/finstrong/components/shared/CustomDoubleBarPlot.d.ts +25 -0
- package/dist/finstrong/components/shared/DialScoreCard.d.ts +7 -1
- package/dist/finstrong/components/shared/DoubleBarChart.d.ts +28 -0
- package/dist/finstrong/components/shared/LineGraph.d.ts +7 -0
- package/dist/finstrong/components/shared/TotalCard.d.ts +8 -0
- package/dist/finstrong/components/shared/Transactions.d.ts +11 -0
- package/dist/finstrong/constants/index.d.ts +9 -0
- package/dist/finstrong/index.es.js +3175 -1067
- package/dist/finstrong/stores/FinstrongStore.d.ts +25 -2
- package/dist/finstrong/util/finstrongUtils.d.ts +58 -1
- package/dist/goals/index.es.js +580 -570
- package/dist/help/components/content/BottomImageContent.d.ts +1 -1
- package/dist/help/components/content/LeftImageContent.d.ts +1 -1
- package/dist/help/components/content/RightImageContent.d.ts +1 -1
- package/dist/help/components/content/TopImageContent.d.ts +1 -1
- package/dist/help/index.es.js +6 -6
- package/dist/{hooks-D6XlXHf4.mjs → hooks-C41HAxM5.mjs} +3 -3
- package/dist/insights/index.es.js +1 -1
- package/dist/investments/index.es.js +537 -536
- package/dist/merchants/index.es.js +9 -9
- package/dist/microinsights/beaticons/BeatIcon.d.ts +2 -9
- package/dist/microinsights/beaticons/BeatMerchantLogo.d.ts +3 -2
- package/dist/microinsights/beaticons/MonthlySpendComparisonIcon.d.ts +2 -1
- package/dist/microinsights/cards/{MicroInsightCard.d.ts → BaseCard.d.ts} +1 -8
- package/dist/microinsights/cards/{BeatCard.d.ts → InsightCard.d.ts} +2 -2
- package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +2 -5
- package/dist/microinsights/cards/ZeroStateCard.d.ts +2 -5
- package/dist/microinsights/carousel/BeatList.d.ts +10 -0
- package/dist/microinsights/carousel/CarouselControls.d.ts +1 -3
- package/dist/microinsights/carousel/CarouselHeader.d.ts +1 -2
- package/dist/microinsights/constants/App.d.ts +0 -1
- package/dist/microinsights/index.d.ts +3 -3
- package/dist/microinsights/index.es.js +7 -7
- package/dist/microinsights/interfaces.d.ts +0 -6
- package/dist/networth/components/NetWorthChange.d.ts +3 -1
- package/dist/networth/index.es.js +262 -254
- package/dist/notifications/index.es.js +90 -91
- package/dist/recurringtransactions/components/MicroWidgetContent.d.ts +3 -0
- package/dist/recurringtransactions/index.es.js +586 -562
- package/dist/recurringtransactions/stores/RecurringTransactionsStore.d.ts +1 -0
- package/dist/settings/index.es.js +371 -365
- package/dist/spending/index.es.js +267 -419
- package/dist/spending/utils/SpendingData.d.ts +2 -1
- package/dist/transactions/components/shared/TransactionDetails.d.ts +1 -0
- package/dist/transactions/components/shared/TransactionList.d.ts +1 -0
- package/dist/transactions/index.es.js +231 -226
- package/dist/transactions/stores/TransactionStore.d.ts +1 -1
- package/dist/transactions/stores/UiStore.d.ts +0 -2
- package/dist/trends/index.es.js +988 -612
- package/dist/{useAccountDisplayName-BUAApBIb.mjs → useAccountDisplayName-CcIp09Xc.mjs} +2 -2
- package/dist/{useCombineEvents-BUDIR1ba.mjs → useCombineEvents-kNzLTWCp.mjs} +3 -3
- package/dist/{useInsightsEnabled-DBpwEq10.mjs → useInsightsEnabled-CNjP5cfR.mjs} +1 -1
- package/dist/{useScreenSize-B6JyS_Lj.mjs → useScreenSize-B5afALev.mjs} +1 -1
- package/package.json +51 -56
- package/dist/AccountDetailsContent-CAM9y39M.mjs +0 -679
- package/dist/AccountDetailsHeader-JtSX6Uf9.mjs +0 -120
- package/dist/AccountListItem-JFMZROh7.mjs +0 -90
- package/dist/CurrencyInput-DUsQbkXb.mjs +0 -85
- package/dist/Drawer-kEE73B87.mjs +0 -113
- package/dist/FinstrongStore-F2c607dj.mjs +0 -101
- package/dist/HeaderCell-DjuifqHJ.mjs +0 -6
- package/dist/LineChart-D4GI7nVh.mjs +0 -541
- package/dist/Loader-DUaFpDGv.mjs +0 -24
- package/dist/MicroWidgetContainer-DpeqN9n3.mjs +0 -45
- package/dist/MiniWidgetContainer-D0gfmbaF.mjs +0 -56
- package/dist/SearchBox-B2_zLv8-.mjs +0 -42
- package/dist/TransactionApi-B3Tksf7L.mjs +0 -86
- package/dist/TransactionDetails-oP1eSuiS.mjs +0 -1334
- package/dist/TrendsStore-DCYbpXPO.mjs +0 -559
- package/dist/accounts/components/AccountsWidgetContent.d.ts +0 -3
- package/dist/common/components/barchart/Bar.d.ts +0 -25
- package/dist/common/components/barchart/BarChart.d.ts +0 -34
- package/dist/common/components/barchart/BarColumn.d.ts +0 -37
- package/dist/common/components/barchart/Legend.d.ts +0 -8
- package/dist/common/components/barchart/Util.d.ts +0 -42
- package/dist/common/components/barchart/index.d.ts +0 -1
- package/dist/common/hooks/usePrevious.d.ts +0 -2
- package/dist/exportTransactionsToCSV-7bVS7KXf.mjs +0 -47
- package/dist/finstrong/utils/Finstrong.d.ts +0 -6
- package/dist/transactions/components/shared/transactionlist/DateRow.d.ts +0 -7
- package/dist/useAriaLive-B3_pRUio.mjs +0 -35
|
@@ -1,541 +0,0 @@
|
|
|
1
|
-
import { jsxs as i, Fragment as B, jsx as e } from "react/jsx-runtime";
|
|
2
|
-
import nt from "@mui/material/Box";
|
|
3
|
-
import { useTheme as X } from "@mui/material/styles";
|
|
4
|
-
import { ResponsiveChartContainer as at, ChartsReferenceLine as rt, AreaPlot as it, LinePlot as ot, MarkPlot as lt, BarPlot as st, ChartsXAxis as ct, ChartsYAxis as dt, ChartsAxisHighlight as ht } from "@mui/x-charts";
|
|
5
|
-
import { f as b, c as mt } from "./NumberFormatting-Buh7u8Oi.mjs";
|
|
6
|
-
import ut from "@mui/material/useMediaQuery";
|
|
7
|
-
import { observer as xt } from "mobx-react-lite";
|
|
8
|
-
import { Stack as u, Box as N, useTheme as ft } from "@mui/material";
|
|
9
|
-
import { Text as l } from "@mxenabled/mxui";
|
|
10
|
-
import { u as gt } from "./hooks-D6XlXHf4.mjs";
|
|
11
|
-
import { ChartsTooltip as yt } from "@mui/x-charts/ChartsTooltip";
|
|
12
|
-
const pt = (t) => {
|
|
13
|
-
const r = X(), o = t.showLabel, s = t.style, y = Number(t.x), m = Number(t.y), x = t.handlers?.onMarkClick, f = t.handlers?.onMouseEnter, c = t.handlers?.onMouseLeave, d = ut(r.breakpoints.up("sm")), a = t.valueFormatterString ? b(t.yData[t.dataIndex], t.valueFormatterString) : String(t.yData[t.dataIndex]), h = d ? r.typography.Small?.fontSize : r.typography.XSmall?.fontSize, k = h ? parseFloat(h.toString()) * 0.6 : 8, D = a.length * k + 8 + 8, T = 24, $ = y - D / 2, M = m - 30;
|
|
14
|
-
return /* @__PURE__ */ i(B, { children: [
|
|
15
|
-
o && /* @__PURE__ */ i(B, { children: [
|
|
16
|
-
t.labelBackgroundColor && /* @__PURE__ */ e(
|
|
17
|
-
"rect",
|
|
18
|
-
{
|
|
19
|
-
fill: t.labelBackgroundColor,
|
|
20
|
-
height: T,
|
|
21
|
-
rx: "3",
|
|
22
|
-
width: D,
|
|
23
|
-
x: $,
|
|
24
|
-
y: M
|
|
25
|
-
}
|
|
26
|
-
),
|
|
27
|
-
/* @__PURE__ */ e(
|
|
28
|
-
"text",
|
|
29
|
-
{
|
|
30
|
-
className: "MuiLineChart-markLabel",
|
|
31
|
-
dominantBaseline: "middle",
|
|
32
|
-
fill: t.labelFontColor ? t.labelFontColor : r.palette.text.primary,
|
|
33
|
-
style: {
|
|
34
|
-
fontSize: t.labelFontSize ? t.labelFontSize : h
|
|
35
|
-
},
|
|
36
|
-
textAnchor: "middle",
|
|
37
|
-
x: y,
|
|
38
|
-
y: m - 28 + T / 2,
|
|
39
|
-
children: a
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ e(
|
|
44
|
-
"path",
|
|
45
|
-
{
|
|
46
|
-
cursor: x ? "pointer" : "unset",
|
|
47
|
-
d: "M4.514,0A4.514,4.514,0,1,1,-4.514,0A4.514,4.514,0,1,1,4.514,0",
|
|
48
|
-
height: "20px",
|
|
49
|
-
onClick: (R) => {
|
|
50
|
-
x?.(R, t.dataIndex);
|
|
51
|
-
},
|
|
52
|
-
onMouseEnter: () => {
|
|
53
|
-
f?.(t.dataIndex);
|
|
54
|
-
},
|
|
55
|
-
onMouseLeave: () => {
|
|
56
|
-
c?.();
|
|
57
|
-
},
|
|
58
|
-
style: {
|
|
59
|
-
fill: s?.fill ? s.fill : r.palette.background.paper,
|
|
60
|
-
stroke: s?.stroke ? s.stroke : r.palette.primary.main,
|
|
61
|
-
strokeWidth: 2,
|
|
62
|
-
transform: `translate(${t.x}px, ${t.y}px)`,
|
|
63
|
-
transformOrigin: `${t.x}px, ${t.y}px`,
|
|
64
|
-
filter: s?.filter ? s.filter : "none"
|
|
65
|
-
},
|
|
66
|
-
width: "20px"
|
|
67
|
-
}
|
|
68
|
-
)
|
|
69
|
-
] });
|
|
70
|
-
}, bt = (t) => /* @__PURE__ */ i(B, { children: [
|
|
71
|
-
/* @__PURE__ */ e("clipPath", { id: t.id, children: /* @__PURE__ */ e("rect", { height: t.height, width: t.width, x: "0", y: "0" }) }),
|
|
72
|
-
/* @__PURE__ */ e("g", { children: /* @__PURE__ */ e(
|
|
73
|
-
"path",
|
|
74
|
-
{
|
|
75
|
-
cursor: "unset",
|
|
76
|
-
d: t.d,
|
|
77
|
-
style: {
|
|
78
|
-
strokeWidth: 2,
|
|
79
|
-
strokeLinejoin: "round",
|
|
80
|
-
fill: "none",
|
|
81
|
-
stroke: t.lineColor ? t.lineColor : t.stroke,
|
|
82
|
-
transition: "opacity 0.2s ease-in, stroke 0.2s ease-in",
|
|
83
|
-
opacity: 1
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
) })
|
|
87
|
-
] }), kt = ({
|
|
88
|
-
label: t,
|
|
89
|
-
customLegendVariant: r
|
|
90
|
-
}) => {
|
|
91
|
-
const o = r || "Small";
|
|
92
|
-
return typeof t == "string" ? /* @__PURE__ */ e(l, { variant: o, children: t }) : typeof t == "object" && t.amount && t.label ? /* @__PURE__ */ i(B, { children: [
|
|
93
|
-
/* @__PURE__ */ e(l, { variant: o, children: t.label }),
|
|
94
|
-
/* @__PURE__ */ e(l, { bold: !0, sx: { marginLeft: 8 }, variant: o, children: b(t.amount, "0,0") })
|
|
95
|
-
] }) : null;
|
|
96
|
-
}, Ct = ({
|
|
97
|
-
average: t,
|
|
98
|
-
customLegendVariant: r,
|
|
99
|
-
labels: o = [],
|
|
100
|
-
series: s,
|
|
101
|
-
style: y,
|
|
102
|
-
title: m,
|
|
103
|
-
valueFormatterString: x
|
|
104
|
-
}) => {
|
|
105
|
-
const { common: f } = gt(), c = r || "Small";
|
|
106
|
-
return /* @__PURE__ */ i(u, { style: { flexDirection: "row", gap: 24, ...y }, children: [
|
|
107
|
-
s.map((d, a) => {
|
|
108
|
-
const h = o[a];
|
|
109
|
-
return h ? /* @__PURE__ */ i(
|
|
110
|
-
u,
|
|
111
|
-
{
|
|
112
|
-
style: { alignItems: "center", flexDirection: "row", flexWrap: "wrap" },
|
|
113
|
-
children: [
|
|
114
|
-
/* @__PURE__ */ e(
|
|
115
|
-
N,
|
|
116
|
-
{
|
|
117
|
-
sx: {
|
|
118
|
-
width: 10,
|
|
119
|
-
height: 10,
|
|
120
|
-
backgroundColor: d.color,
|
|
121
|
-
marginRight: 8
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
),
|
|
125
|
-
/* @__PURE__ */ e(kt, { customLegendVariant: r, label: h })
|
|
126
|
-
]
|
|
127
|
-
},
|
|
128
|
-
a
|
|
129
|
-
) : null;
|
|
130
|
-
}),
|
|
131
|
-
t && /* @__PURE__ */ i(u, { sx: { alignItems: "center", flexDirection: "row" }, children: [
|
|
132
|
-
/* @__PURE__ */ e(l, { bold: !0, sx: { marginRight: 8 }, variant: c, children: "– –" }),
|
|
133
|
-
/* @__PURE__ */ i(l, { variant: c, children: [
|
|
134
|
-
m || f.average,
|
|
135
|
-
" "
|
|
136
|
-
] }),
|
|
137
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: c, children: x ? b(t, x) : t })
|
|
138
|
-
] })
|
|
139
|
-
] });
|
|
140
|
-
}, Mt = xt(Ct);
|
|
141
|
-
function wt({
|
|
142
|
-
customLabels: t,
|
|
143
|
-
labels: r = [],
|
|
144
|
-
valueFormatterString: o = "0,0"
|
|
145
|
-
}) {
|
|
146
|
-
const s = ft();
|
|
147
|
-
return /* @__PURE__ */ e(
|
|
148
|
-
yt,
|
|
149
|
-
{
|
|
150
|
-
showCrosshair: !0,
|
|
151
|
-
slots: {
|
|
152
|
-
axisContent: (y) => {
|
|
153
|
-
const { axisValue: m, dataIndex: x, series: f } = y, c = x ?? 0;
|
|
154
|
-
if (t) {
|
|
155
|
-
const d = t[c]?.[0]?.header || String(m);
|
|
156
|
-
return /* @__PURE__ */ i(
|
|
157
|
-
u,
|
|
158
|
-
{
|
|
159
|
-
sx: {
|
|
160
|
-
backgroundColor: s.palette.background.paper,
|
|
161
|
-
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
162
|
-
flexDirection: "column",
|
|
163
|
-
alignItems: "flex-start",
|
|
164
|
-
borderRadius: "4px",
|
|
165
|
-
width: 250,
|
|
166
|
-
gap: 8,
|
|
167
|
-
px: 16,
|
|
168
|
-
py: 12
|
|
169
|
-
},
|
|
170
|
-
children: [
|
|
171
|
-
/* @__PURE__ */ i(
|
|
172
|
-
u,
|
|
173
|
-
{
|
|
174
|
-
sx: {
|
|
175
|
-
flexDirection: "row",
|
|
176
|
-
justifyContent: "space-between",
|
|
177
|
-
alignItems: "center",
|
|
178
|
-
alignSelf: "stretch",
|
|
179
|
-
gap: 8,
|
|
180
|
-
marginTop: 4
|
|
181
|
-
},
|
|
182
|
-
children: [
|
|
183
|
-
/* @__PURE__ */ e(l, { variant: "H3", children: d }),
|
|
184
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "H3", children: b(f[0]?.data[c], o) })
|
|
185
|
-
]
|
|
186
|
-
}
|
|
187
|
-
),
|
|
188
|
-
t[c]?.some((a) => (typeof a == "string" ? 0 : a.amount) !== 0) ? t[c]?.map((a) => {
|
|
189
|
-
const h = typeof a == "string" ? a : a.label, k = typeof a == "string" ? 0 : a.amount;
|
|
190
|
-
return k === 0 ? null : /* @__PURE__ */ i(
|
|
191
|
-
u,
|
|
192
|
-
{
|
|
193
|
-
sx: {
|
|
194
|
-
flexDirection: "row",
|
|
195
|
-
justifyContent: "space-between",
|
|
196
|
-
alignItems: "center",
|
|
197
|
-
alignSelf: "stretch",
|
|
198
|
-
gap: 8,
|
|
199
|
-
marginTop: 4
|
|
200
|
-
},
|
|
201
|
-
children: [
|
|
202
|
-
/* @__PURE__ */ i(
|
|
203
|
-
u,
|
|
204
|
-
{
|
|
205
|
-
sx: {
|
|
206
|
-
flexDirection: "row",
|
|
207
|
-
alignItems: "center",
|
|
208
|
-
gap: 8,
|
|
209
|
-
flex: 1,
|
|
210
|
-
minWidth: 0
|
|
211
|
-
},
|
|
212
|
-
children: [
|
|
213
|
-
/* @__PURE__ */ e(
|
|
214
|
-
N,
|
|
215
|
-
{
|
|
216
|
-
sx: {
|
|
217
|
-
width: "12px",
|
|
218
|
-
height: "12px",
|
|
219
|
-
backgroundColor: f[0]?.color,
|
|
220
|
-
borderRadius: "4px"
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
),
|
|
224
|
-
/* @__PURE__ */ e(l, { variant: "Body", children: h })
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
),
|
|
228
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(Math.abs(k), o) })
|
|
229
|
-
]
|
|
230
|
-
},
|
|
231
|
-
h
|
|
232
|
-
);
|
|
233
|
-
}) : /* @__PURE__ */ e(l, { variant: "Body", children: "No data" })
|
|
234
|
-
]
|
|
235
|
-
}
|
|
236
|
-
);
|
|
237
|
-
}
|
|
238
|
-
return /* @__PURE__ */ i(
|
|
239
|
-
u,
|
|
240
|
-
{
|
|
241
|
-
sx: {
|
|
242
|
-
backgroundColor: s.palette.background.paper,
|
|
243
|
-
boxShadow: "0 2px 8px 0 rgba(0, 0, 0, 0.12)",
|
|
244
|
-
flexDirection: "column",
|
|
245
|
-
alignItems: "flex-start",
|
|
246
|
-
borderRadius: "4px",
|
|
247
|
-
width: 225,
|
|
248
|
-
gap: 8,
|
|
249
|
-
px: 16,
|
|
250
|
-
py: 12
|
|
251
|
-
},
|
|
252
|
-
children: [
|
|
253
|
-
/* @__PURE__ */ e(l, { variant: "H3", children: String(m) }),
|
|
254
|
-
f.map((d, a) => /* @__PURE__ */ i(
|
|
255
|
-
u,
|
|
256
|
-
{
|
|
257
|
-
sx: {
|
|
258
|
-
flexDirection: "row",
|
|
259
|
-
justifyContent: "space-between",
|
|
260
|
-
alignItems: "center",
|
|
261
|
-
alignSelf: "stretch",
|
|
262
|
-
gap: 8,
|
|
263
|
-
marginTop: 4
|
|
264
|
-
},
|
|
265
|
-
children: [
|
|
266
|
-
/* @__PURE__ */ i(u, { sx: { flexDirection: "row", alignItems: "center", gap: 8 }, children: [
|
|
267
|
-
/* @__PURE__ */ e(
|
|
268
|
-
N,
|
|
269
|
-
{
|
|
270
|
-
sx: {
|
|
271
|
-
width: "12px",
|
|
272
|
-
height: "12px",
|
|
273
|
-
backgroundColor: d.color,
|
|
274
|
-
borderRadius: "4px"
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
),
|
|
278
|
-
/* @__PURE__ */ e(l, { variant: "Body", children: typeof r[a] == "string" ? r[a] : r[a]?.label })
|
|
279
|
-
] }),
|
|
280
|
-
/* @__PURE__ */ e(l, { bold: !0, variant: "Body", children: b(d.data[c], o) })
|
|
281
|
-
]
|
|
282
|
-
},
|
|
283
|
-
d.id
|
|
284
|
-
))
|
|
285
|
-
]
|
|
286
|
-
}
|
|
287
|
-
);
|
|
288
|
-
}
|
|
289
|
-
},
|
|
290
|
-
trigger: "axis"
|
|
291
|
-
}
|
|
292
|
-
);
|
|
293
|
-
}
|
|
294
|
-
const zt = ({
|
|
295
|
-
axisColor: t,
|
|
296
|
-
baseline: r = "max",
|
|
297
|
-
chartFor: o,
|
|
298
|
-
chartXaxisSx: s,
|
|
299
|
-
chartYaxisSx: y,
|
|
300
|
-
colors: m,
|
|
301
|
-
curveType: x = "linear",
|
|
302
|
-
customLegendVariant: f,
|
|
303
|
-
customTooltipLabels: c,
|
|
304
|
-
datasets: d,
|
|
305
|
-
height: a,
|
|
306
|
-
isGraphClippingXAxis: h = !1,
|
|
307
|
-
labels: k,
|
|
308
|
-
labelBackgroundColor: I,
|
|
309
|
-
labelFontColor: P,
|
|
310
|
-
labelFontSize: E,
|
|
311
|
-
margin: D,
|
|
312
|
-
markHandlers: T,
|
|
313
|
-
markStyles: $,
|
|
314
|
-
onItemClick: M,
|
|
315
|
-
showArea: R = !1,
|
|
316
|
-
showAverage: H = !1,
|
|
317
|
-
showAxisHighlight: Y = !1,
|
|
318
|
-
showBars: j = !1,
|
|
319
|
-
showLegend: q = !1,
|
|
320
|
-
showMarkLabel: G = !1,
|
|
321
|
-
showTooltip: O = !1,
|
|
322
|
-
showXAxis: Q = !1,
|
|
323
|
-
showXAxisTicks: U = !1,
|
|
324
|
-
showYAxis: V = !1,
|
|
325
|
-
showYAxisTicks: J = !1,
|
|
326
|
-
title: K,
|
|
327
|
-
useCustomMark: Z = !1,
|
|
328
|
-
valueFormatterString: C,
|
|
329
|
-
width: _
|
|
330
|
-
}) => {
|
|
331
|
-
const g = X(), tt = d.flat().map((n) => n.x), w = d.flat().map((n) => n.y), F = Math.round(w.reduce((n, v) => v + n, 0) / w.length), L = Math.floor(Math.min(...w) / 100) * 100, S = Math.ceil(Math.max(...w) / 100) * 100, z = d.map((n, v) => ({
|
|
332
|
-
type: j ? "bar" : "line",
|
|
333
|
-
curve: x,
|
|
334
|
-
color: j ? g.palette.chart?.chart6 : m[v] ?? g.palette.primary.main,
|
|
335
|
-
data: n.map((p) => p.y),
|
|
336
|
-
area: R,
|
|
337
|
-
baseline: r,
|
|
338
|
-
showMark: !0,
|
|
339
|
-
valueFormatter: (p) => C ? b(p || 0, C) : String(p)
|
|
340
|
-
})), et = {
|
|
341
|
-
...{
|
|
342
|
-
top: 60,
|
|
343
|
-
right: 35,
|
|
344
|
-
bottom: 50,
|
|
345
|
-
left: 50
|
|
346
|
-
},
|
|
347
|
-
...D
|
|
348
|
-
};
|
|
349
|
-
let A = L, W = S;
|
|
350
|
-
if (o === "networthChart") {
|
|
351
|
-
const n = S - L, v = n < S * 0.05 ? 0.25 : 0.2, p = Math.max(n * v, S * 0.015);
|
|
352
|
-
A = L - p < 0 ? L : L - p, W = S + p;
|
|
353
|
-
}
|
|
354
|
-
return /* @__PURE__ */ i(
|
|
355
|
-
nt,
|
|
356
|
-
{
|
|
357
|
-
sx: {
|
|
358
|
-
position: "relative",
|
|
359
|
-
touchAction: "pan-y",
|
|
360
|
-
// Allow vertical scrolling
|
|
361
|
-
"& svg": {
|
|
362
|
-
touchAction: "pan-y",
|
|
363
|
-
// Allow vertical scrolling on SVG
|
|
364
|
-
userSelect: "none"
|
|
365
|
-
// Prevent text selection
|
|
366
|
-
},
|
|
367
|
-
"& .recharts-wrapper": {
|
|
368
|
-
touchAction: "pan-y"
|
|
369
|
-
// For Recharts library specifically
|
|
370
|
-
}
|
|
371
|
-
},
|
|
372
|
-
children: [
|
|
373
|
-
/* @__PURE__ */ i(
|
|
374
|
-
at,
|
|
375
|
-
{
|
|
376
|
-
height: a,
|
|
377
|
-
margin: et,
|
|
378
|
-
series: z,
|
|
379
|
-
sx: {
|
|
380
|
-
p: 4,
|
|
381
|
-
"& .MuiBarLabel-root": {
|
|
382
|
-
fontSize: 10,
|
|
383
|
-
fontWeight: 600
|
|
384
|
-
},
|
|
385
|
-
"& .MuiAreaElement-root": {
|
|
386
|
-
opacity: 0.15
|
|
387
|
-
},
|
|
388
|
-
"& .MuiChartsAxis-tickLabel > tspan": {
|
|
389
|
-
fontFamily: g.typography.Small.fontFamily
|
|
390
|
-
},
|
|
391
|
-
"& .MuiLineChart-markLabel": {
|
|
392
|
-
fontFamily: g.typography.Small.fontFamily
|
|
393
|
-
}
|
|
394
|
-
},
|
|
395
|
-
width: _,
|
|
396
|
-
xAxis: [{ data: tt, scaleType: j ? "band" : "point" }],
|
|
397
|
-
yAxis: [
|
|
398
|
-
{
|
|
399
|
-
tickInterval: o === "networthChart" ? mt(A, W, 5) : void 0,
|
|
400
|
-
min: h ? -22 : A,
|
|
401
|
-
max: W || 100,
|
|
402
|
-
colorMap: R && z.length < 2 ? {
|
|
403
|
-
type: "continuous",
|
|
404
|
-
min: A,
|
|
405
|
-
max: W,
|
|
406
|
-
color: [
|
|
407
|
-
g.palette.background.paper,
|
|
408
|
-
m[0] ?? g.palette.primary.main
|
|
409
|
-
]
|
|
410
|
-
} : void 0,
|
|
411
|
-
valueFormatter: (n) => C ? b(n, C) : String(n)
|
|
412
|
-
}
|
|
413
|
-
],
|
|
414
|
-
children: [
|
|
415
|
-
H && /* @__PURE__ */ e(
|
|
416
|
-
rt,
|
|
417
|
-
{
|
|
418
|
-
lineStyle: {
|
|
419
|
-
stroke: I ? g.palette.neutral.main : g.palette.neutral.dark,
|
|
420
|
-
strokeDasharray: "10, 8",
|
|
421
|
-
strokeWidth: 2
|
|
422
|
-
},
|
|
423
|
-
y: F
|
|
424
|
-
}
|
|
425
|
-
),
|
|
426
|
-
/* @__PURE__ */ e(it, { onItemClick: M }),
|
|
427
|
-
/* @__PURE__ */ e(
|
|
428
|
-
ot,
|
|
429
|
-
{
|
|
430
|
-
onItemClick: M,
|
|
431
|
-
slots: {
|
|
432
|
-
line: (n) => /* @__PURE__ */ e(
|
|
433
|
-
bt,
|
|
434
|
-
{
|
|
435
|
-
...n,
|
|
436
|
-
lineColor: n.ownerState.color ?? g.palette.primary.main
|
|
437
|
-
}
|
|
438
|
-
)
|
|
439
|
-
}
|
|
440
|
-
}
|
|
441
|
-
),
|
|
442
|
-
/* @__PURE__ */ e(
|
|
443
|
-
lt,
|
|
444
|
-
{
|
|
445
|
-
onItemClick: M,
|
|
446
|
-
slots: Z ? {
|
|
447
|
-
mark: (n) => /* @__PURE__ */ e(
|
|
448
|
-
pt,
|
|
449
|
-
{
|
|
450
|
-
handlers: T,
|
|
451
|
-
labelBackgroundColor: I,
|
|
452
|
-
labelFontColor: P,
|
|
453
|
-
labelFontSize: E,
|
|
454
|
-
showLabel: G,
|
|
455
|
-
style: $?.(n.dataIndex) ?? {},
|
|
456
|
-
valueFormatterString: C,
|
|
457
|
-
yData: w,
|
|
458
|
-
...n
|
|
459
|
-
}
|
|
460
|
-
)
|
|
461
|
-
} : void 0
|
|
462
|
-
}
|
|
463
|
-
),
|
|
464
|
-
/* @__PURE__ */ e(
|
|
465
|
-
st,
|
|
466
|
-
{
|
|
467
|
-
barLabel: (n) => Number(n.value) > 0 ? `$${n.value}` : null,
|
|
468
|
-
borderRadius: 10
|
|
469
|
-
}
|
|
470
|
-
),
|
|
471
|
-
/* @__PURE__ */ e(
|
|
472
|
-
ct,
|
|
473
|
-
{
|
|
474
|
-
disableLine: !Q,
|
|
475
|
-
disableTicks: !U,
|
|
476
|
-
slotProps: t ? {
|
|
477
|
-
axisLine: {
|
|
478
|
-
style: {
|
|
479
|
-
stroke: t
|
|
480
|
-
}
|
|
481
|
-
},
|
|
482
|
-
axisTick: {
|
|
483
|
-
style: {
|
|
484
|
-
stroke: t
|
|
485
|
-
}
|
|
486
|
-
}
|
|
487
|
-
} : {},
|
|
488
|
-
sx: { ...s }
|
|
489
|
-
}
|
|
490
|
-
),
|
|
491
|
-
/* @__PURE__ */ e(
|
|
492
|
-
dt,
|
|
493
|
-
{
|
|
494
|
-
disableLine: !V,
|
|
495
|
-
disableTicks: !J,
|
|
496
|
-
sx: { ...y },
|
|
497
|
-
slotProps: t ? {
|
|
498
|
-
axisLine: {
|
|
499
|
-
style: {
|
|
500
|
-
stroke: t
|
|
501
|
-
}
|
|
502
|
-
},
|
|
503
|
-
axisTick: {
|
|
504
|
-
style: {
|
|
505
|
-
stroke: t
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
} : {}
|
|
509
|
-
}
|
|
510
|
-
),
|
|
511
|
-
Y && /* @__PURE__ */ e(ht, { x: "line" }),
|
|
512
|
-
O && /* @__PURE__ */ e(
|
|
513
|
-
wt,
|
|
514
|
-
{
|
|
515
|
-
customLabels: c,
|
|
516
|
-
labels: k,
|
|
517
|
-
valueFormatterString: C
|
|
518
|
-
}
|
|
519
|
-
)
|
|
520
|
-
]
|
|
521
|
-
}
|
|
522
|
-
),
|
|
523
|
-
q && /* @__PURE__ */ e(
|
|
524
|
-
Mt,
|
|
525
|
-
{
|
|
526
|
-
average: H ? F : void 0,
|
|
527
|
-
customLegendVariant: f,
|
|
528
|
-
labels: k,
|
|
529
|
-
series: z,
|
|
530
|
-
style: { position: "absolute", top: 16, left: 16 },
|
|
531
|
-
title: K,
|
|
532
|
-
valueFormatterString: C
|
|
533
|
-
}
|
|
534
|
-
)
|
|
535
|
-
]
|
|
536
|
-
}
|
|
537
|
-
);
|
|
538
|
-
};
|
|
539
|
-
export {
|
|
540
|
-
zt as L
|
|
541
|
-
};
|
package/dist/Loader-DUaFpDGv.mjs
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { jsxs as s, jsx as o } from "react/jsx-runtime";
|
|
2
|
-
import c from "@mui/material/CircularProgress";
|
|
3
|
-
import a from "@mui/material/Stack";
|
|
4
|
-
import { useTokens as i, Text as m } from "@mxenabled/mxui";
|
|
5
|
-
const p = ({ height: e = 250, label: r = "", size: t = 32 }) => {
|
|
6
|
-
const n = i();
|
|
7
|
-
return /* @__PURE__ */ s(
|
|
8
|
-
a,
|
|
9
|
-
{
|
|
10
|
-
alignItems: "center",
|
|
11
|
-
gap: n.Spacing.XLarge,
|
|
12
|
-
height: e,
|
|
13
|
-
justifyContent: "center",
|
|
14
|
-
sx: { backgroundColor: "background.paper" },
|
|
15
|
-
children: [
|
|
16
|
-
/* @__PURE__ */ o(c, { size: t }),
|
|
17
|
-
r && /* @__PURE__ */ o(m, { children: r })
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
);
|
|
21
|
-
}, k = p;
|
|
22
|
-
export {
|
|
23
|
-
k as L
|
|
24
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { jsx as r, jsxs as p, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Button";
|
|
3
|
-
import C from "@mui/material/Card";
|
|
4
|
-
import g from "@mui/material/CardContent";
|
|
5
|
-
import b from "@mui/material/CardHeader";
|
|
6
|
-
import { P as u, H3 as v } from "@mxenabled/mxui";
|
|
7
|
-
import { ChevronRight as W } from "@mxenabled/mx-icons";
|
|
8
|
-
import { u as M } from "./useDimensions-27p2evRx.mjs";
|
|
9
|
-
import { W as w } from "./hooks-D6XlXHf4.mjs";
|
|
10
|
-
const H = ({
|
|
11
|
-
children: e,
|
|
12
|
-
className: o,
|
|
13
|
-
ctaLabel: n,
|
|
14
|
-
onCTAClick: a,
|
|
15
|
-
subHeader: t,
|
|
16
|
-
sx: s,
|
|
17
|
-
title: c,
|
|
18
|
-
variant: d = "borderless"
|
|
19
|
-
}) => {
|
|
20
|
-
const [m, { height: l, width: h }] = M(), i = /* @__PURE__ */ p(f, { children: [
|
|
21
|
-
/* @__PURE__ */ r(
|
|
22
|
-
b,
|
|
23
|
-
{
|
|
24
|
-
action: /* @__PURE__ */ r(
|
|
25
|
-
x,
|
|
26
|
-
{
|
|
27
|
-
endIcon: /* @__PURE__ */ r(W, { size: 20 }),
|
|
28
|
-
onClick: a,
|
|
29
|
-
size: "small",
|
|
30
|
-
variant: "text",
|
|
31
|
-
children: n
|
|
32
|
-
}
|
|
33
|
-
),
|
|
34
|
-
subheader: t && /* @__PURE__ */ r(u, { sx: { color: "text.secondary" }, variant: "body2", children: t }),
|
|
35
|
-
sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
|
|
36
|
-
title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
|
|
37
|
-
}
|
|
38
|
-
),
|
|
39
|
-
/* @__PURE__ */ r(g, { ref: m, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: l, availableWidth: h, children: e }) })
|
|
40
|
-
] });
|
|
41
|
-
return d === "borderless" ? i : /* @__PURE__ */ r(C, { className: o, sx: { alignItems: "center", p: 16, ...s }, children: i });
|
|
42
|
-
}, F = H;
|
|
43
|
-
export {
|
|
44
|
-
F as M
|
|
45
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { jsxs as r, jsx as i, Fragment as g } from "react/jsx-runtime";
|
|
2
|
-
import x from "@mui/material/Box";
|
|
3
|
-
import C from "@mui/material/Button";
|
|
4
|
-
import u from "@mui/material/Card";
|
|
5
|
-
import v from "@mui/material/CardHeader";
|
|
6
|
-
import b from "@mui/material/CardContent";
|
|
7
|
-
import W from "@mui/material/IconButton";
|
|
8
|
-
import { Icon as z, ChevronRight as H } from "@mxenabled/mx-icons";
|
|
9
|
-
import { H3 as I, Text as B, P as M } from "@mxenabled/mxui";
|
|
10
|
-
import { u as S } from "./useDimensions-27p2evRx.mjs";
|
|
11
|
-
import { W as j } from "./hooks-D6XlXHf4.mjs";
|
|
12
|
-
const w = ({
|
|
13
|
-
children: a,
|
|
14
|
-
className: m = "mx-cmn-mini-widget",
|
|
15
|
-
closeLabel: l,
|
|
16
|
-
contentStyles: d,
|
|
17
|
-
onClose: e,
|
|
18
|
-
onPrimaryCtaClick: o,
|
|
19
|
-
primaryCtaLabel: s = "",
|
|
20
|
-
subTitle: n = "",
|
|
21
|
-
sx: c = {},
|
|
22
|
-
title: t = ""
|
|
23
|
-
}) => {
|
|
24
|
-
const [p, { height: h, width: f }] = S();
|
|
25
|
-
return /* @__PURE__ */ r(u, { className: m, sx: { ...c }, children: [
|
|
26
|
-
/* @__PURE__ */ i(
|
|
27
|
-
v,
|
|
28
|
-
{
|
|
29
|
-
sx: { pb: 8 },
|
|
30
|
-
title: /* @__PURE__ */ r(g, { children: [
|
|
31
|
-
/* @__PURE__ */ r(
|
|
32
|
-
x,
|
|
33
|
-
{
|
|
34
|
-
sx: {
|
|
35
|
-
alignItems: "center",
|
|
36
|
-
display: "grid",
|
|
37
|
-
gap: 2,
|
|
38
|
-
gridTemplateColumns: "1fr auto",
|
|
39
|
-
pb: 4
|
|
40
|
-
},
|
|
41
|
-
children: [
|
|
42
|
-
t && /* @__PURE__ */ i(I, { children: t }),
|
|
43
|
-
e ? /* @__PURE__ */ i(W, { "aria-label": l, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(C, { endIcon: /* @__PURE__ */ i(H, {}), onClick: o, size: "small", children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: s }) })
|
|
44
|
-
]
|
|
45
|
-
}
|
|
46
|
-
),
|
|
47
|
-
n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
|
|
48
|
-
] })
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...d }, children: /* @__PURE__ */ i(j, { availableHeight: h, availableWidth: f, children: a }) })
|
|
52
|
-
] });
|
|
53
|
-
}, G = w;
|
|
54
|
-
export {
|
|
55
|
-
G as M
|
|
56
|
-
};
|