@mx-cartographer/experiences 7.5.1 → 7.5.3

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.
@@ -31,16 +31,16 @@ import { parseISO as Pe } from "date-fns/parseISO";
31
31
  import { DataGridPro as Ht } from "@mui/x-data-grid-pro";
32
32
  import { H as Re } from "../HeaderCell-DjuifqHJ.mjs";
33
33
  import { T as B, b as Nt } from "../ViewMoreMicroCard-DwR0v_ll.mjs";
34
- import { A as I, W as qe } from "../WidgetContainer-CoFDmQRE.mjs";
35
- import { a as Je, T as et } from "../TransactionDetails-m5PddMQn.mjs";
34
+ import { A as I, W as qe } from "../WidgetContainer-30Dy7US7.mjs";
35
+ import { a as Je, T as et } from "../TransactionDetails-h9zr6QKo.mjs";
36
36
  import { D as Ne } from "../Drawer-By9V-B5L.mjs";
37
37
  import { u as we } from "../useWidgetLoadTimer-hIOioiKx.mjs";
38
38
  import { L as ge } from "../Loader-DUaFpDGv.mjs";
39
39
  import { L as Oe } from "../LineChart-BQRxZF3p.mjs";
40
- import { M as Wt } from "../MiniWidgetContainer-Bg02sF1Y.mjs";
40
+ import { M as Wt } from "../MiniWidgetContainer-98-hKFqm.mjs";
41
41
  import { subMonths as Ot } from "date-fns";
42
42
  import { TrendingUp as Gt, TrendingDown as Bt, MultilineChart as Vt, ExpandLess as Ft, ExpandMore as Pt } from "@mxenabled/mx-icons";
43
- import { M as $t } from "../MicroWidgetContainer-r6mtxRer.mjs";
43
+ import { M as $t } from "../MicroWidgetContainer-B2hO9rOG.mjs";
44
44
  import zt from "@mui/material/Collapse";
45
45
  import Kt from "@mui/material/List";
46
46
  import Yt from "@mui/material/ListItem";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.5.1",
3
+ "version": "7.5.3",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -1,52 +0,0 @@
1
- import { jsx as r, jsxs as h, Fragment as f } from "react/jsx-runtime";
2
- import x from "@mui/material/Button";
3
- import u from "@mui/material/Card";
4
- import C from "@mui/material/CardContent";
5
- import b from "@mui/material/CardHeader";
6
- import { P as g, 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-ZMp65DFz.mjs";
10
- const y = ({
11
- children: o,
12
- className: e,
13
- ctaLabel: n,
14
- onCTAClick: a,
15
- subHeader: i,
16
- sx: s,
17
- title: c,
18
- variant: l = "borderless"
19
- }) => {
20
- const [d, { height: m, width: p }] = M(), t = /* @__PURE__ */ h(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
- sx: {
31
- "&:focus-visible, &:focus": {
32
- outline: "2px solid",
33
- outlineColor: "primary.main",
34
- outlineOffset: "2px"
35
- }
36
- },
37
- variant: "text",
38
- children: n
39
- }
40
- ),
41
- subheader: i && /* @__PURE__ */ r(g, { sx: { color: "text.secondary" }, variant: "body2", children: i }),
42
- sx: { p: 0, pb: 8, width: "calc(100% - 8px)", "& .MuiCardHeader-action": { mt: 0 } },
43
- title: /* @__PURE__ */ r(v, { sx: { width: "calc(100% - 10px)" }, children: c })
44
- }
45
- ),
46
- /* @__PURE__ */ r(C, { ref: d, sx: { p: 0, ":last-child": { pb: 0 } }, children: /* @__PURE__ */ r(w, { availableHeight: m, availableWidth: p, children: o }) })
47
- ] });
48
- return l === "borderless" ? t : /* @__PURE__ */ r(u, { className: e, sx: { alignItems: "center", p: 16, ...s }, children: t });
49
- }, F = y;
50
- export {
51
- F as M
52
- };
@@ -1,71 +0,0 @@
1
- import { jsxs as r, jsx as i, Fragment as x } from "react/jsx-runtime";
2
- import g from "@mui/material/Box";
3
- import u from "@mui/material/Button";
4
- import C 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-ZMp65DFz.mjs";
12
- const w = ({
13
- children: a,
14
- className: l = "mx-cmn-mini-widget",
15
- closeLabel: m,
16
- contentStyles: s,
17
- onClose: e,
18
- onPrimaryCtaClick: o,
19
- primaryCtaLabel: d = "",
20
- subTitle: n = "",
21
- sx: c = {},
22
- title: t = ""
23
- }) => {
24
- const [p, { height: f, width: h }] = S();
25
- return /* @__PURE__ */ r(C, { className: l, sx: { ...c }, children: [
26
- /* @__PURE__ */ i(
27
- v,
28
- {
29
- sx: { pb: 8 },
30
- title: /* @__PURE__ */ r(x, { children: [
31
- /* @__PURE__ */ r(
32
- g,
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": m, onClick: e, size: "small", children: /* @__PURE__ */ i(z, { name: "close", size: 24 }) }) : o && /* @__PURE__ */ i(
44
- u,
45
- {
46
- endIcon: /* @__PURE__ */ i(H, {}),
47
- onClick: o,
48
- size: "small",
49
- sx: {
50
- "&:focus-visible, &:focus": {
51
- outline: "2px solid",
52
- outlineColor: "primary.main",
53
- outlineOffset: "2px"
54
- }
55
- },
56
- children: /* @__PURE__ */ i(B, { bold: !0, variant: "Small", children: d })
57
- }
58
- )
59
- ]
60
- }
61
- ),
62
- n && /* @__PURE__ */ i(M, { color: "text.secondary", sx: { fontSize: 15, lineHeight: "20px" }, variant: "Small", children: n })
63
- ] })
64
- }
65
- ),
66
- /* @__PURE__ */ i(b, { ref: p, sx: { p: 0, ...s }, children: /* @__PURE__ */ i(j, { availableHeight: f, availableWidth: h, children: a }) })
67
- ] });
68
- }, E = w;
69
- export {
70
- E as M
71
- };