@mx-cartographer/experiences 7.0.57-alpha.mega1 → 7.0.57-alpha.mega3

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.
@@ -396,7 +396,7 @@ const xt = ({
396
396
  onConnectAccountsClick: o,
397
397
  createBudgetOnClick: i
398
398
  }) => {
399
- const { recalculateBudgets: s } = D(), { spendCategories: a } = j(), { budgets: n } = w(), { availableWidth: r } = te(), { isMobile: c } = se(r), d = c && t, [g, u] = l.useState(!1), [h, _] = l.useState(!1), [p, b] = l.useState(!1), B = l.useMemo(() => [...a.filter((C) => C.totalAverageAmount > 0)], [a]), f = async () => {
399
+ const { recalculateBudgets: s } = D(), { spendCategories: a } = j(), { budgets: n } = w(), { availableWidth: r } = te(), { isMobile: c } = se(r), d = t && c, [g, u] = l.useState(!1), [h, _] = l.useState(!1), [p, b] = l.useState(!1), B = l.useMemo(() => [...a.filter((C) => C.totalAverageAmount > 0)], [a]), f = async () => {
400
400
  b(!0);
401
401
  const { data: C, isSuccess: v } = await s(B);
402
402
  b(!1), v ? (C.length === 0 && _(!0), u(!1)) : u(!0);
@@ -419,7 +419,7 @@ const xt = ({
419
419
  width: 208,
420
420
  ...d && { mt: 16, button: { height: "max-content" } }
421
421
  },
422
- ...d && { mt: 0, svg: { height: 32, width: 32 } }
422
+ ...d && { justifyContent: "center", mt: 0, svg: { height: 32, width: 32 } }
423
423
  }
424
424
  }
425
425
  ) : /* @__PURE__ */ e(je, { children: h ? /* @__PURE__ */ e(
@@ -444,7 +444,7 @@ const xt = ({
444
444
  ...d && { mt: 16, button: { height: "max-content" } }
445
445
  },
446
446
  padding: t ? 5 : 0,
447
- ...d && { svg: { height: 32, width: 32 } }
447
+ ...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
448
448
  }
449
449
  }
450
450
  ) : /* @__PURE__ */ e(
@@ -469,7 +469,7 @@ const xt = ({
469
469
  ...d && { mt: 24, button: { height: "max-content" } }
470
470
  },
471
471
  padding: t ? 4 : 0,
472
- ...d && { svg: { height: 32, width: 32 } }
472
+ ...d && { justifyContent: "center", svg: { height: 32, width: 32 } }
473
473
  }
474
474
  }
475
475
  ) });
@@ -491,32 +491,39 @@ const xt = ({
491
491
  }, C = () => {
492
492
  b(!0), r(L.ACCOUNTS_CLICK_CONNECT);
493
493
  };
494
- return d ? /* @__PURE__ */ e(S, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(B), children: /* @__PURE__ */ e(G, {}) }) : /* @__PURE__ */ m(F, { ml: a || _ ? 0 : 24, sx: { alignSelf: "center" }, children: [
495
- a || !g ? /* @__PURE__ */ e(
496
- At,
497
- {
498
- createBudgetOnClick: t,
499
- isMiniWidget: s,
500
- onConnectAccountsClick: C
501
- }
502
- ) : /* @__PURE__ */ e(
503
- vt,
504
- {
505
- height: o,
506
- isDraggable: i,
507
- onClick: f,
508
- width: B
509
- }
510
- ),
511
- /* @__PURE__ */ e(
512
- We,
513
- {
514
- onClose: () => b(!1),
515
- showConnectionsWidget: p,
516
- title: u.manage_connections
517
- }
518
- )
519
- ] });
494
+ return d ? /* @__PURE__ */ e(S, { alignItems: "center", height: o, justifyContent: "center", width: Math.abs(B), children: /* @__PURE__ */ e(G, {}) }) : /* @__PURE__ */ m(
495
+ F,
496
+ {
497
+ ml: a || _ ? 0 : 24,
498
+ sx: { alignSelf: "center", ...s && { height: "100%" } },
499
+ children: [
500
+ a || !g ? /* @__PURE__ */ e(
501
+ At,
502
+ {
503
+ createBudgetOnClick: t,
504
+ isMiniWidget: s,
505
+ onConnectAccountsClick: C
506
+ }
507
+ ) : /* @__PURE__ */ e(
508
+ vt,
509
+ {
510
+ height: o,
511
+ isDraggable: i,
512
+ onClick: f,
513
+ width: B
514
+ }
515
+ ),
516
+ /* @__PURE__ */ e(
517
+ We,
518
+ {
519
+ onClose: () => b(!1),
520
+ showConnectionsWidget: p,
521
+ title: u.manage_connections
522
+ }
523
+ )
524
+ ]
525
+ }
526
+ );
520
527
  }
521
528
  ), Tt = ({
522
529
  budgetsCopy: t,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.0.57-alpha.mega1",
3
+ "version": "7.0.57-alpha.mega3",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",