@mx-cartographer/experiences 7.0.48 → 7.0.49

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 CHANGED
@@ -1,3 +1,7 @@
1
+ ## [7.0.49] - 10-09-2025
2
+
3
+ - **FIXED** - MiniWidget CTA Button Breaking UI fix.
4
+
1
5
  ## [7.0.48] - 10-08-2025
2
6
 
3
7
  - **UPDATED** - Mini Widget Header Style Changed.
@@ -0,0 +1,55 @@
1
+ import { jsxs as r, jsx as i, Fragment as f } from "react/jsx-runtime";
2
+ import g from "@mui/material/Box";
3
+ import x from "@mui/material/Button";
4
+ import C from "@mui/material/Card";
5
+ import u from "@mui/material/CardHeader";
6
+ import v from "@mui/material/CardContent";
7
+ import b from "@mui/material/IconButton";
8
+ import { Icon as W, ChevronRight as z } from "@mxenabled/mx-icons";
9
+ import { H3 as H, Text as I, P as B } from "@mxenabled/mxui";
10
+ import { u as M } from "./useDimensions-27p2evRx.mjs";
11
+ import { W as S } from "./hooks-CE2TKk4a.mjs";
12
+ const j = ({
13
+ className: a = "mx-cmn-mini-widget",
14
+ closeLabel: m,
15
+ children: l,
16
+ onClose: e,
17
+ onPrimaryCtaClick: o,
18
+ primaryCtaLabel: d = "",
19
+ subTitle: n = "",
20
+ sx: s = {},
21
+ title: t = ""
22
+ }) => {
23
+ const [c, { height: p, width: h }] = M();
24
+ return /* @__PURE__ */ r(C, { className: a, sx: { ...s }, children: [
25
+ /* @__PURE__ */ i(
26
+ u,
27
+ {
28
+ sx: { pb: 8 },
29
+ title: /* @__PURE__ */ r(f, { children: [
30
+ /* @__PURE__ */ r(
31
+ g,
32
+ {
33
+ sx: {
34
+ alignItems: "center",
35
+ display: "grid",
36
+ gap: 2,
37
+ gridTemplateColumns: "1fr auto",
38
+ pb: 4
39
+ },
40
+ children: [
41
+ t && /* @__PURE__ */ i(H, { children: t }),
42
+ e ? /* @__PURE__ */ i(b, { "aria-label": m, onClick: e, size: "small", children: /* @__PURE__ */ i(W, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(x, { endIcon: /* @__PURE__ */ i(z, {}), onClick: o, size: "small", children: /* @__PURE__ */ i(I, { bold: !0, variant: "Small", children: d }) })
43
+ ]
44
+ }
45
+ ),
46
+ n && /* @__PURE__ */ i(B, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
47
+ ] })
48
+ }
49
+ ),
50
+ /* @__PURE__ */ i(v, { ref: c, sx: { p: 0 }, children: /* @__PURE__ */ i(S, { availableHeight: p, availableWidth: h, children: l }) })
51
+ ] });
52
+ }, E = j;
53
+ export {
54
+ E as M
55
+ };
@@ -23,7 +23,7 @@ import { L as R } from "../Loader-DUaFpDGv.mjs";
23
23
  import { k as U, l as e1 } from "../ConnectDrawer-SHjB2fpB.mjs";
24
24
  import { F as G1, M as K1 } from "../ConnectDrawer-SHjB2fpB.mjs";
25
25
  import t1 from "@mui/material/ListItem";
26
- import { M as $ } from "../MiniWidgetContainer-Bg0bELc2.mjs";
26
+ import { M as $ } from "../MiniWidgetContainer-CldJb_TI.mjs";
27
27
  import l1 from "@mui/material/Stack";
28
28
  import { A as P1, a as Y1 } from "../AccountStore-XZqHTKm3.mjs";
29
29
  const i1 = () => {
@@ -8,7 +8,7 @@ import a from "@mui/material/Stack";
8
8
  import _ from "@mui/material/styles/useTheme";
9
9
  import { Text as u, TextField as L } from "@mxenabled/mxui";
10
10
  import { L as W } from "../Loader-DUaFpDGv.mjs";
11
- import { M as j } from "../MiniWidgetContainer-Bg0bELc2.mjs";
11
+ import { M as j } from "../MiniWidgetContainer-CldJb_TI.mjs";
12
12
  import { k as f, u as b, g as q, b as E } from "../hooks-CE2TKk4a.mjs";
13
13
  import Q from "@mui/material/ToggleButton";
14
14
  import G from "@mui/material/ToggleButtonGroup";
@@ -29,7 +29,7 @@ import { D as M } from "../Drawer-kEE73B87.mjs";
29
29
  import We from "@mui/material/ListItemSecondaryAction";
30
30
  import { C as He } from "../CurrencyInput-CRtdzs3o.mjs";
31
31
  import { a as N } from "../Dialog-CWW597AF.mjs";
32
- import { M as Xe } from "../MiniWidgetContainer-Bg0bELc2.mjs";
32
+ import { M as Xe } from "../MiniWidgetContainer-CldJb_TI.mjs";
33
33
  import { isAfter as Ke } from "date-fns/isAfter";
34
34
  import { startOfToday as q } from "date-fns/startOfToday";
35
35
  import Ve from "@mui/material/Alert";
@@ -16,7 +16,7 @@ import { L as se } from "../Loader-DUaFpDGv.mjs";
16
16
  import { I as he } from "../CashflowStore-D9Dpuz7X.mjs";
17
17
  import { C as Wn } from "../CashflowStore-D9Dpuz7X.mjs";
18
18
  import { b as X } from "../Localization-2MODESHW.mjs";
19
- import { M as Qe } from "../MiniWidgetContainer-Bg0bELc2.mjs";
19
+ import { M as Qe } from "../MiniWidgetContainer-CldJb_TI.mjs";
20
20
  import { R as Ve } from "../RecurringSettings-CHuS8Ik_.mjs";
21
21
  import Ke from "@mui/material/Tabs";
22
22
  import ye from "@mui/material/Tab";
@@ -11,7 +11,7 @@ import { C as gs, b as ps, L as ms, a as _s } from "../User-DaJAQ09j.mjs";
11
11
  import { H as ot } from "../Help-DhcC-C05.mjs";
12
12
  import { E as ys } from "../Help-DhcC-C05.mjs";
13
13
  import { M as bs } from "../MicroWidgetContainer-C4QQHfD7.mjs";
14
- import { M as xs } from "../MiniWidgetContainer-Bg0bELc2.mjs";
14
+ import { M as xs } from "../MiniWidgetContainer-CldJb_TI.mjs";
15
15
  import { A as vs, D as Ds, W as As } from "../WidgetContainer-hsbxZmZB.mjs";
16
16
  import { j as Ts, a as Bs, e as Is, n as Ns, A as Ms, f as ks, k as $s, d as Rs, m as Ps, E as Os, i as Us, N as Ls, h as Gs, P as Hs, o as Fs, S as Ws } from "../ConnectDrawer-SHjB2fpB.mjs";
17
17
  import { C as Ys } from "../CurrencyInput-CRtdzs3o.mjs";
@@ -51,7 +51,7 @@ import O from "@mui/material/Box";
51
51
  import { S as ke } from "../StatusBar-BK_uYHAB.mjs";
52
52
  import { u as xe } from "../useScreenSize-B6JyS_Lj.mjs";
53
53
  import { L as V } from "../Loader-DUaFpDGv.mjs";
54
- import { M as pt } from "../MiniWidgetContainer-Bg0bELc2.mjs";
54
+ import { M as pt } from "../MiniWidgetContainer-CldJb_TI.mjs";
55
55
  import { u as gt } from "../useDimensions-27p2evRx.mjs";
56
56
  import { M as ht } from "../MicroWidgetContainer-C4QQHfD7.mjs";
57
57
  const Q = {
@@ -18,7 +18,7 @@ import { u as w, b as R, m as z, d as rt, a as st, h as Ct, g as _t } from "../h
18
18
  import { u as ct } from "../useScreenSize-B6JyS_Lj.mjs";
19
19
  import { D as bt } from "../Donut-1UMNcG67.mjs";
20
20
  import { L as F } from "../Loader-DUaFpDGv.mjs";
21
- import { M as St } from "../MiniWidgetContainer-Bg0bELc2.mjs";
21
+ import { M as St } from "../MiniWidgetContainer-CldJb_TI.mjs";
22
22
  import { startOfToday as U } from "date-fns/startOfToday";
23
23
  import { T as Tt, a as Mt } from "../TransactionDetails-Cl8xcpbh.mjs";
24
24
  import Dt from "@mui/material/Collapse";
@@ -27,7 +27,7 @@ import { D as Ce } from "../Drawer-kEE73B87.mjs";
27
27
  import { L as J } from "../Loader-DUaFpDGv.mjs";
28
28
  import { useTheme as Ne } from "@mui/material/styles";
29
29
  import { L as Te } from "../LineChart-B2Y7zwMu.mjs";
30
- import { M as ht } from "../MiniWidgetContainer-Bg0bELc2.mjs";
30
+ import { M as ht } from "../MiniWidgetContainer-CldJb_TI.mjs";
31
31
  import { subMonths as ut } from "date-fns";
32
32
  import { TrendingUp as mt, TrendingDown as gt, MultilineChart as pt, ExpandLess as Ct, ExpandMore as ft } from "@mxenabled/mx-icons";
33
33
  import { a as Tt, f as Z } from "../NumberFormatting-CtWHhyBX.mjs";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.48",
3
+ "version": "7.0.49",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,43 +0,0 @@
1
- import { jsxs as e, jsx as i } from "react/jsx-runtime";
2
- import x from "@mui/material/Button";
3
- import g from "@mui/material/Card";
4
- import C from "@mui/material/CardHeader";
5
- import u from "@mui/material/CardContent";
6
- import v from "@mui/material/IconButton";
7
- import a from "@mui/material/Stack";
8
- import { Icon as b, ChevronRight as W } from "@mxenabled/mx-icons";
9
- import { H3 as w, Text as z, P as H } from "@mxenabled/mxui";
10
- import { u as I } from "./useDimensions-27p2evRx.mjs";
11
- import { W as S } from "./hooks-CE2TKk4a.mjs";
12
- const j = ({
13
- className: m = "mx-cmn-mini-widget",
14
- closeLabel: l,
15
- children: c,
16
- onClose: r,
17
- onPrimaryCtaClick: t,
18
- primaryCtaLabel: s = "",
19
- subTitle: n = "",
20
- sx: d = {},
21
- title: o = ""
22
- }) => {
23
- const [h, { height: p, width: f }] = I();
24
- return /* @__PURE__ */ e(g, { className: m, sx: { ...d }, children: [
25
- /* @__PURE__ */ i(
26
- C,
27
- {
28
- sx: { pb: 8 },
29
- title: /* @__PURE__ */ e(a, { children: [
30
- /* @__PURE__ */ e(a, { direction: "row", sx: { justifyContent: "space-between", alignItems: "center" }, children: [
31
- o && /* @__PURE__ */ i(w, { children: o }),
32
- r ? /* @__PURE__ */ i(v, { "aria-label": l, onClick: r, size: "small", children: /* @__PURE__ */ i(b, { name: "close", size: 24 }) }) : t && /* @__PURE__ */ i(x, { endIcon: /* @__PURE__ */ i(W, {}), onClick: t, size: "small", children: /* @__PURE__ */ i(z, { bold: !0, variant: "Small", children: s }) })
33
- ] }),
34
- n && /* @__PURE__ */ i(H, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
35
- ] })
36
- }
37
- ),
38
- /* @__PURE__ */ i(u, { ref: h, sx: { p: 0 }, children: /* @__PURE__ */ i(S, { availableHeight: p, availableWidth: f, children: c }) })
39
- ] });
40
- }, F = j;
41
- export {
42
- F as M
43
- };