@mx-cartographer/experiences 9.0.0-alpha.al9 → 9.0.0-ram1-bug-alpha-testing

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.
Files changed (59) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/dist/{AccountDetailsHeader-CfdnKyJK.mjs → AccountDetailsHeader-DIysk_4w.mjs} +1 -1
  3. package/dist/{AccountFields-CAy0x_4i.mjs → AccountFields-mwJ8NXsX.mjs} +18 -18
  4. package/dist/{AccountListItem-DJaIOxbb.mjs → AccountListItem-BDXHs4tV.mjs} +1 -1
  5. package/dist/{CategorySelectorDrawer-DVGuR3Ab.mjs → CategorySelectorDrawer-CmaDLhnf.mjs} +2 -2
  6. package/dist/{ConnectCard-CdXeMN22.mjs → ConnectCard-CCep7Zqe.mjs} +1 -1
  7. package/dist/{ConnectDrawer-CPsSusKE.mjs → ConnectDrawer-Cnjr3Ddg.mjs} +1 -1
  8. package/dist/{ConnectionsDrawer-DWPOixe6.mjs → ConnectionsDrawer-CtfPXk0M.mjs} +1 -1
  9. package/dist/{CurrencyInput-B59ugxPN.mjs → CurrencyInput-adTIRtL3.mjs} +28 -26
  10. package/dist/{Drawer-BNu88yNt.mjs → Drawer-BXqqBMxg.mjs} +29 -32
  11. package/dist/{EmbeddedCard-wENckl64.mjs → EmbeddedCard-DPwJjqMH.mjs} +1 -1
  12. package/dist/{ExportCsvAction-BkABqw52.mjs → ExportCsvAction-Bw02ZJEj.mjs} +1 -1
  13. package/dist/{Help-CNjuW34A.mjs → Help-DJ8PrVHX.mjs} +2 -2
  14. package/dist/{ManageIncome-D2hEHycu.mjs → ManageIncome-B1JfqslT.mjs} +5 -5
  15. package/dist/{NotificationSettings-CNsh4U5U.mjs → NotificationSettings-6p-h5phZ.mjs} +3 -3
  16. package/dist/{OriginalBalanceAction-BxOhy_ru.mjs → OriginalBalanceAction-CkJPnp2c.mjs} +1 -1
  17. package/dist/{RecurringSettings-Qqila2ld.mjs → RecurringSettings-cm6MK_aS.mjs} +1 -1
  18. package/dist/SearchBox-Cpgu_gdO.mjs +50 -0
  19. package/dist/{Select-KwuuoKM-.mjs → Select-BFt-HD-L.mjs} +15 -15
  20. package/dist/{SpendingData-PKlh8caU.mjs → SpendingData-xyRoRDHv.mjs} +1 -1
  21. package/dist/{ToggleListItem-BTDtw-N4.mjs → ToggleListItem-Dl1lXNwj.mjs} +7 -8
  22. package/dist/{TransactionDetails-CMUIncOc.mjs → TransactionDetails-C3dlAzYf.mjs} +10 -8
  23. package/dist/{ViewMoreMicroCard-DoVNDQVG.mjs → ViewMoreMicroCard-BD_MNc2z.mjs} +527 -526
  24. package/dist/{WidgetContainer-CmkRiOTH.mjs → WidgetContainer-DNuz_s7W.mjs} +1 -1
  25. package/dist/accounts/index.es.js +12 -12
  26. package/dist/budgets/index.es.js +8 -8
  27. package/dist/cashflow/index.es.js +6 -6
  28. package/dist/categories/index.es.js +1 -1
  29. package/dist/common/index.es.js +101 -100
  30. package/dist/common/utils/Theme.d.ts +4 -13
  31. package/dist/common/utils/index.d.ts +1 -1
  32. package/dist/core/types/AppData.d.ts +0 -14
  33. package/dist/core/types/Client.d.ts +13 -20
  34. package/dist/dashboard/index.es.js +33 -33
  35. package/dist/debts/index.es.js +6 -6
  36. package/dist/finstrong/index.es.js +9 -9
  37. package/dist/goals/index.es.js +5 -5
  38. package/dist/help/index.es.js +2 -2
  39. package/dist/insights/index.es.js +206 -209
  40. package/dist/investments/index.es.js +3 -3
  41. package/dist/merchants/index.es.js +1 -1
  42. package/dist/microinsights/MicroCardTemplate.d.ts +2 -4
  43. package/dist/microinsights/cards/InsightCard.d.ts +2 -2
  44. package/dist/microinsights/cards/NoRelevantInsightsCard.d.ts +3 -4
  45. package/dist/microinsights/cards/ViewMoreMicroCard.d.ts +3 -4
  46. package/dist/microinsights/cards/ZeroStateCard.d.ts +3 -4
  47. package/dist/microinsights/carousel/BeatList.d.ts +2 -2
  48. package/dist/microinsights/carousel/MicroBeatCarousel.d.ts +12 -1
  49. package/dist/microinsights/index.es.js +1 -1
  50. package/dist/microinsights/interfaces.d.ts +12 -4
  51. package/dist/networth/index.es.js +3 -3
  52. package/dist/notifications/index.es.js +2 -2
  53. package/dist/recurringtransactions/index.es.js +6 -6
  54. package/dist/settings/index.es.js +6 -6
  55. package/dist/spending/index.es.js +4 -4
  56. package/dist/transactions/index.es.js +35 -36
  57. package/dist/trends/index.es.js +39 -38
  58. package/package.json +4 -4
  59. package/dist/SearchBox-CwDgvWVJ.mjs +0 -48
@@ -24,22 +24,22 @@ import { a as Re, C as $e, b as Nt } from "../Category-DEKZGLYe.mjs";
24
24
  import { f as X, D as G } from "../DateFormats-HudZ3Bjs.mjs";
25
25
  import { f as re, a as Wt } from "../NumberFormatting--XMeeBfr.mjs";
26
26
  import { a as Ke, c as Ot, g as Gt } from "../TrendsUtil-D9z3kIj_.mjs";
27
- import { c as Bt, i as Pt, d as Vt, e as zt, g as at, b as it, f as Ye } from "../SpendingData-PKlh8caU.mjs";
27
+ import { c as Bt, i as Pt, d as Vt, e as zt, g as at, b as it, f as Ye } from "../SpendingData-xyRoRDHv.mjs";
28
28
  import Ft from "@mui/material/ToggleButton";
29
29
  import $t from "@mui/material/ToggleButtonGroup";
30
30
  import { parseISO as lt } from "date-fns/parseISO";
31
31
  import { H as ke } from "../HeaderCell-P8w6CmfO.mjs";
32
- import { T as W, a as Kt } from "../ViewMoreMicroCard-DoVNDQVG.mjs";
32
+ import { T as W, a as Kt } from "../ViewMoreMicroCard-BD_MNc2z.mjs";
33
33
  import { useGridApiContext as Yt, useGridRootProps as jt, DataGridPro as Ut } from "@mui/x-data-grid-pro";
34
34
  import Xt from "@mui/material/Badge";
35
35
  import Zt from "@mui/material/IconButton";
36
36
  import { A as w } from "../Analytics-CzGzz_sE.mjs";
37
- import { T as ct } from "../EmbeddedCard-wENckl64.mjs";
38
- import { T as dt } from "../TransactionDetails-CMUIncOc.mjs";
39
- import { D as Pe } from "../Drawer-BNu88yNt.mjs";
37
+ import { T as ct } from "../EmbeddedCard-DPwJjqMH.mjs";
38
+ import { T as dt } from "../TransactionDetails-C3dlAzYf.mjs";
39
+ import { D as Pe } from "../Drawer-BXqqBMxg.mjs";
40
40
  import { u as Ie } from "../useWidgetLoadTimer-CJb-RELP.mjs";
41
41
  import { L as Le } from "../Loader-CxeBwuPG.mjs";
42
- import { W as ut } from "../WidgetContainer-CmkRiOTH.mjs";
42
+ import { W as ut } from "../WidgetContainer-DNuz_s7W.mjs";
43
43
  import { L as Ve } from "../LineChart-CejWS_rh.mjs";
44
44
  import { M as Qt } from "../MiniWidgetContainer-BdPiUU-u.mjs";
45
45
  import { subMonths as qt } from "date-fns";
@@ -55,10 +55,10 @@ import { g as Oe } from "../TransactionUtils-BphBJBbU.mjs";
55
55
  import { L as uo } from "../ListItemRow-kH1rn8Xu.mjs";
56
56
  import { Stack as mo } from "@mui/material";
57
57
  import ho from "@mui/material/ListItemAvatar";
58
- import { E as go } from "../ExportCsvAction-BkABqw52.mjs";
58
+ import { E as go } from "../ExportCsvAction-Bw02ZJEj.mjs";
59
59
  import { u as po } from "../useInsightsEnabled-DaNLPmUU.mjs";
60
60
  import { E as fo } from "../EmptyState-CJUDc3kD.mjs";
61
- import { C as yo } from "../ConnectDrawer-CPsSusKE.mjs";
61
+ import { C as yo } from "../ConnectDrawer-Cnjr3Ddg.mjs";
62
62
  const gt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
63
63
  const { categories: s } = R(), { getCategoryName: o } = q(), r = o(t);
64
64
  return /* @__PURE__ */ C(S, { alignItems: "center", direction: "column", gap: "8", justifyContent: "center", mb: 4, children: [
@@ -219,7 +219,7 @@ const gt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
219
219
  hoveredAreaData: null,
220
220
  isAreaHovered: !1,
221
221
  cursorPos: { x: 0, y: 0 }
222
- }), { hoveredSeriesId: L, hoveredAreaData: M, isAreaHovered: E, cursorPos: v } = N, K = E && L && M, ae = !K, Y = [...r, ...c], J = Y[0]?.dataset.length ?? 0, P = Y.flatMap((l) => l.dataset.map((b) => b.x)), V = Y.flatMap((l) => l.dataset.map((b) => b.y)), O = r[0]?.dataset?.map(
222
+ }), { hoveredSeriesId: L, hoveredAreaData: E, isAreaHovered: M, cursorPos: v } = N, K = M && L && E, ae = !K, Y = [...r, ...c], J = Y[0]?.dataset.length ?? 0, P = Y.flatMap((l) => l.dataset.map((b) => b.x)), V = Y.flatMap((l) => l.dataset.map((b) => b.y)), O = r[0]?.dataset?.map(
223
223
  (l, b) => r.reduce((I, z) => I + z.dataset[b]?.y || 0, 0)
224
224
  ) ?? [0], ee = Math.max(...O), Ce = Math.max(
225
225
  ...c.flatMap((l) => l.dataset.map((b) => b.y))
@@ -411,7 +411,7 @@ const gt = ({ categoryGuid: t, topLevelCategoryGuid: n }) => {
411
411
  categoryGuids: B(L),
412
412
  chartContainerRef: _,
413
413
  cursorPosition: v,
414
- hoveredAreaData: M.map((l) => ({
414
+ hoveredAreaData: E.map((l) => ({
415
415
  ...l,
416
416
  x: X(l.x, G.MONTH_SHORT_YEAR)
417
417
  }))
@@ -686,7 +686,7 @@ const Lo = g.memo(Io), Qe = ({
686
686
  {}
687
687
  )
688
688
  };
689
- return /* @__PURE__ */ C(
689
+ return console.log({ incomeRows: f, spendingRows: m, totalSpendingRow: _ }), /* @__PURE__ */ C(
690
690
  S,
691
691
  {
692
692
  gap: 24,
@@ -762,7 +762,7 @@ const Lo = g.memo(Io), Qe = ({
762
762
  isTransactionDataLoaded: y,
763
763
  loadTransactionData: T,
764
764
  sortedTransactions: N
765
- } = we(), { selectedDateRange: x, setSelectedDateRange: L } = ye(), { isInitialized: M, selectedAccounts: E } = fe(), { trends: v } = R(), [K, ae] = g.useState(!1), [Y, J] = g.useState(!1), [P, V] = g.useState("Chart"), [O, ee] = g.useState(""), [Ce, ie] = g.useState(window.innerHeight), j = Ce - (a ? 315 : 345);
765
+ } = we(), { selectedDateRange: x, setSelectedDateRange: L } = ye(), { isInitialized: E, selectedAccounts: M } = fe(), { trends: v } = R(), [K, ae] = g.useState(!1), [Y, J] = g.useState(!1), [P, V] = g.useState("Chart"), [O, ee] = g.useState(""), [Ce, ie] = g.useState(window.innerHeight), j = Ce - (a ? 315 : 345);
766
766
  Ie({
767
767
  widgetName: "TrendsFullWidget",
768
768
  isLoaded: K
@@ -770,9 +770,9 @@ const Lo = g.memo(Io), Qe = ({
770
770
  const D = () => ie(window.innerHeight);
771
771
  return window.addEventListener("resize", D), d || u().finally(), i || f().finally(), y || T().finally(), () => window.removeEventListener("resize", D);
772
772
  }, []), g.useEffect(() => {
773
- M && m(E, x.start, x.end).then(() => {
773
+ E && m(M, x.start, x.end).then(() => {
774
774
  _(
775
- E,
775
+ M,
776
776
  x.start,
777
777
  x.end
778
778
  );
@@ -782,7 +782,7 @@ const Lo = g.memo(Io), Qe = ({
782
782
  time_period: `${Se(x.end, x.start)}M`
783
783
  });
784
784
  });
785
- }, [M, E, x]);
785
+ }, [E, M, x]);
786
786
  const ne = g.useMemo(() => {
787
787
  if (!K) return { stackedDatasets: [], unstackedDatasets: [] };
788
788
  const D = Gt(
@@ -816,7 +816,7 @@ const Lo = g.memo(Io), Qe = ({
816
816
  }, me = (D) => {
817
817
  o(w.TRENDS_HOVER_POINT, { category: D });
818
818
  };
819
- return !M || !K ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ C(
819
+ return !E || !K ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ C(
820
820
  ut,
821
821
  {
822
822
  calendarActions: { onRangeChanged: de },
@@ -1055,9 +1055,9 @@ const Lo = g.memo(Io), Qe = ({
1055
1055
  incomeData: at(c, u)
1056
1056
  }),
1057
1057
  [c, u]
1058
- ), [p, y] = _, [T, N] = h, x = Ye(y.y, p.y), L = Ye(N.y, T.y), M = m && !o?.length, E = () => {
1058
+ ), [p, y] = _, [T, N] = h, x = Ye(y.y, p.y), L = Ye(N.y, T.y), E = m && !o?.length, M = () => {
1059
1059
  r(
1060
- M ? w.TRENDS_CLICK_GET_STARTED : w.TRENDS_CLICK_VIEW_MORE
1060
+ E ? w.TRENDS_CLICK_GET_STARTED : w.TRENDS_CLICK_VIEW_MORE
1061
1061
  ), t();
1062
1062
  };
1063
1063
  return !d || !m ? /* @__PURE__ */ e(Le, {}) : /* @__PURE__ */ e(
@@ -1065,10 +1065,10 @@ const Lo = g.memo(Io), Qe = ({
1065
1065
  {
1066
1066
  className: "mx-trends-microwidget",
1067
1067
  ctaLabel: i.micro_primary_cta_label,
1068
- onCTAClick: E,
1069
- subHeader: M ? void 0 : i.micro_subheader,
1068
+ onCTAClick: M,
1069
+ subHeader: E ? void 0 : i.micro_subheader,
1070
1070
  title: i.title,
1071
- children: M ? /* @__PURE__ */ e(Oo, {}) : /* @__PURE__ */ C(
1071
+ children: E ? /* @__PURE__ */ e(Oo, {}) : /* @__PURE__ */ C(
1072
1072
  S,
1073
1073
  {
1074
1074
  sx: {
@@ -1226,18 +1226,17 @@ const Lo = g.memo(Io), Qe = ({
1226
1226
  {
1227
1227
  areBeatsLoading: a.isLoading,
1228
1228
  beats: t,
1229
+ cardStyle: "border",
1229
1230
  endpoint: d,
1230
1231
  headerSx: { p: 0 },
1231
1232
  logOutUser: m,
1232
1233
  onCardClick: _,
1233
- showBorder: !0,
1234
1234
  showCarouselControls: !0,
1235
1235
  showHeader: i,
1236
1236
  showIcon: !0,
1237
1237
  showWithMargin: !1,
1238
1238
  token: u,
1239
1239
  userHasFullInsightFeedBeats: !1,
1240
- variant: "outlined",
1241
1240
  visibleCardsCount: f
1242
1241
  }
1243
1242
  ) });
@@ -1281,7 +1280,7 @@ const Lo = g.memo(Io), Qe = ({
1281
1280
  const { guid: _, name: h, is_income: p, totalAmount: y } = d, T = Oe(_, t), N = p ? a.income_label : a.spending_label, x = ` ${d.transactions.length === 1 ? a.transaction : a.transactions} (${d.transactions.length})`, L = g.useMemo(
1282
1281
  () => i.find((v) => v.guid === f),
1283
1282
  [f, i]
1284
- ), M = i.length > 0 && !n && (s || r && !o), E = (v) => v.category_guid === _ || v.top_level_category_guid === _;
1283
+ ), E = i.length > 0 && !n && (s || r && !o), M = (v) => v.category_guid === _ || v.top_level_category_guid === _;
1285
1284
  return /* @__PURE__ */ C(S, { sx: { alignItems: "center", height: "100%" }, children: [
1286
1285
  /* @__PURE__ */ C(S, { sx: { borderRadius: 0, pb: 4, pt: 16, px: 12, width: "100%" }, children: [
1287
1286
  /* @__PURE__ */ e(We, { sx: { px: 12 }, children: /* @__PURE__ */ C(mt, { children: [
@@ -1302,14 +1301,14 @@ const Lo = g.memo(Io), Qe = ({
1302
1301
  /* @__PURE__ */ e(zo, { chartColor: T, chartLabel: N }),
1303
1302
  /* @__PURE__ */ C(S, { alignItems: "center", direction: "row", justifyContent: "space-between", sx: { mx: 12 }, children: [
1304
1303
  /* @__PURE__ */ e(F, { bold: !0, variant: "body1", children: x }),
1305
- M && /* @__PURE__ */ e(go, { filter: E })
1304
+ E && /* @__PURE__ */ e(go, { filter: M })
1306
1305
  ] })
1307
1306
  ] }),
1308
1307
  /* @__PURE__ */ e(
1309
1308
  ct,
1310
1309
  {
1311
1310
  bgcolor: "transparent",
1312
- filter: E,
1311
+ filter: M,
1313
1312
  height: "calc(100vh - 475px)",
1314
1313
  onClick: m
1315
1314
  }
@@ -1346,10 +1345,14 @@ const Lo = g.memo(Io), Qe = ({
1346
1345
  totals: o
1347
1346
  }) => {
1348
1347
  const r = Z(), { onEvent: c } = $(), { trends: a } = R(), { isSmallMobile: d, isMobile: u, isSmallTablet: i, isTablet: f } = Q(), m = [r.palette.chart?.chart1, r.palette.chart?.chart2], _ = $o(o, s), h = Ko(_, a), [p, y] = g.useState(0), T = 458, N = 195, x = 56, L = u || d ? N : i || f ? T : p;
1349
- return g.useEffect(() => {
1350
- const E = Math.max(t - x, n);
1351
- y(E);
1352
- }, [t]), /* @__PURE__ */ e(
1348
+ g.useEffect(() => {
1349
+ const M = Math.max(t - x, n);
1350
+ y(M);
1351
+ }, [t]);
1352
+ const E = () => {
1353
+ c(w.TRENDS_CLICK_CHART, W);
1354
+ };
1355
+ return console.log({ datasets: _, totals: o }), /* @__PURE__ */ e(
1353
1356
  Ve,
1354
1357
  {
1355
1358
  baseline: "min",
@@ -1358,9 +1361,7 @@ const Lo = g.memo(Io), Qe = ({
1358
1361
  datasets: _,
1359
1362
  height: L,
1360
1363
  labels: h,
1361
- onItemClick: () => {
1362
- c(w.TRENDS_CLICK_CHART, W);
1363
- },
1364
+ onItemClick: E,
1364
1365
  showArea: !0,
1365
1366
  showAxisHighlight: !0,
1366
1367
  showLegend: !0,
@@ -1424,7 +1425,7 @@ const Lo = g.memo(Io), Qe = ({
1424
1425
  loadMonthlyCategoryTotals: y,
1425
1426
  monthlyCategoryTotals: T,
1426
1427
  monthlyTotalsLoaded: N
1427
- } = q(), { isTransactionDataLoaded: x, loadTransactionData: L, setFilter: M } = we(), { selectedCategoryData: E, selectedDateRange: v, setSelectedCategoryData: K, setSelectedDateRange: ae } = ye(), { isInitialized: Y, selectedAccounts: J, selectedAccountGuids: P } = fe(), { trends: V, connect: O } = R(), { beatStore: ee } = Be(), ie = po() && c.show_insights_widget_in_master, te = a || d, [j, ne] = g.useState(!1), [U, de] = g.useState(!1), [B, ue] = g.useState("Chart"), [se, le] = g.useState(""), [ce, me] = g.useState(window.innerHeight), D = te ? 56 : 0, l = ce - 208, b = ce - (ie ? 550 + D : 266), [I, z] = g.useState(!1), Ee = c.show_connections_widget_in_master;
1428
+ } = q(), { isTransactionDataLoaded: x, loadTransactionData: L, setFilter: E } = we(), { selectedCategoryData: M, selectedDateRange: v, setSelectedCategoryData: K, setSelectedDateRange: ae } = ye(), { isInitialized: Y, selectedAccounts: J, selectedAccountGuids: P } = fe(), { trends: V, connect: O } = R(), { beatStore: ee } = Be(), ie = po() && c.show_insights_widget_in_master, te = a || d, [j, ne] = g.useState(!1), [U, de] = g.useState(!1), [B, ue] = g.useState("Chart"), [se, le] = g.useState(""), [ce, me] = g.useState(window.innerHeight), D = te ? 56 : 0, l = ce - 208, b = ce - (ie ? 550 + D : 266), [I, z] = g.useState(!1), Ee = c.show_connections_widget_in_master;
1428
1429
  Ie({
1429
1430
  widgetName: "TrendsWidget",
1430
1431
  isLoaded: j
@@ -1452,7 +1453,7 @@ const Lo = g.memo(Io), Qe = ({
1452
1453
  accounts: P,
1453
1454
  dateRange: { start: v.start, end: v.end }
1454
1455
  };
1455
- M({
1456
+ E({
1456
1457
  ...k,
1457
1458
  custom: (oe) => !!T.find(
1458
1459
  (ge) => ge.top_level_category_guid === oe.top_level_category_guid || ge.category_guid === oe.category_guid
@@ -1584,11 +1585,11 @@ const Lo = g.memo(Io), Qe = ({
1584
1585
  Pe,
1585
1586
  {
1586
1587
  ariaLabelClose: V.close_category_details,
1587
- isOpen: !!E,
1588
+ isOpen: !!M,
1588
1589
  onClose: Me,
1589
1590
  shouldShowHeaderShadow: !0,
1590
- title: E?.is_income ? V.category_income : V.category_spending,
1591
- children: E && /* @__PURE__ */ e(Fo, {})
1591
+ title: M?.is_income ? V.category_income : V.category_spending,
1592
+ children: M && /* @__PURE__ */ e(Fo, {})
1592
1593
  }
1593
1594
  )
1594
1595
  ]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "9.0.0-alpha.al9",
3
+ "version": "9.0.0-ram1-bug-alpha-testing",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",
@@ -192,15 +192,15 @@
192
192
  "@emotion/react": "^11.14.0",
193
193
  "@emotion/styled": "^11.14.1",
194
194
  "@mui/lab": "^7",
195
- "@mui/material": "^7",
196
- "@mui/system": "^7",
195
+ "@mui/material": "7.3.11",
196
+ "@mui/system": "7.3.11",
197
197
  "@mui/x-charts": "^8.28.2",
198
198
  "@mui/x-data-grid-pro": "^7.29.12",
199
199
  "@mui/x-date-pickers": "^7.29.4",
200
200
  "@mui/x-date-pickers-pro": "^7.29.4",
201
201
  "@mxenabled/cssinjs": "^0.6.0",
202
202
  "@mxenabled/mx-icons": "^2",
203
- "@mxenabled/mxui": "2.5.3-alpha.al3",
203
+ "@mxenabled/mxui": "2.5.3",
204
204
  "@mxenabled/web-widget-sdk": "^0.0.15",
205
205
  "@tanstack/react-virtual": "^3.13.24",
206
206
  "bowser": "^2.14.1",
@@ -1,48 +0,0 @@
1
- import { jsx as o } from "react/jsx-runtime";
2
- import { observer as s } from "mobx-react-lite";
3
- import m from "@mui/material/Box";
4
- import p from "@mui/material/IconButton";
5
- import t from "@mui/material/InputAdornment";
6
- import { TextField as d, Icon as n } from "@mxenabled/mxui";
7
- const x = ({
8
- ariaLabel: c = "Search",
9
- cancelAriaLabel: a = "Cancel Search",
10
- onChange: e,
11
- placeholder: i = "Search",
12
- searchValue: r
13
- }) => /* @__PURE__ */ o(m, { className: "mx-cmn-search-box", px: 24, py: 16, children: /* @__PURE__ */ o(
14
- d,
15
- {
16
- InputProps: {
17
- startAdornment: /* @__PURE__ */ o(t, { position: "start", children: /* @__PURE__ */ o(n, { name: "search", size: 26, sx: { color: "action.active" } }) }),
18
- endAdornment: /* @__PURE__ */ o(t, { position: "end", sx: { p: 0 }, children: r ? /* @__PURE__ */ o(
19
- p,
20
- {
21
- "aria-label": a,
22
- className: "mx-cat-cancel-search-button",
23
- color: "primary",
24
- onClick: () => e(""),
25
- children: /* @__PURE__ */ o(n, { name: "cancel", size: 24 })
26
- }
27
- ) : null }),
28
- sx: {
29
- "& .MuiOutlinedInput-notchedOutline": {
30
- borderColor: "text.secondary",
31
- opacity: 0.5
32
- },
33
- "& input::placeholder": { color: "text.secondary", opacity: 1 }
34
- }
35
- },
36
- "aria-label": c,
37
- name: "search",
38
- onChange: (l) => e(l.target.value),
39
- placeholder: i,
40
- sx: {
41
- width: "100%"
42
- },
43
- value: r
44
- }
45
- ) }), I = s(x);
46
- export {
47
- I as S
48
- };