@mx-cartographer/experiences 7.11.7 → 7.11.8

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.11.8] - 03-04-2026
2
+
3
+ - **UPDATED** - `categoryBudget` cta button
4
+
1
5
  ## [7.11.7] - 03-04-2026
2
6
 
3
7
  - **UPDATED** - Transaction Details | Added "Add a Merchant Budgets" | Without "Manage merchant Budget Flow"
@@ -3,6 +3,7 @@ export interface CategoryBudgetProps extends CommonBeatProps {
3
3
  amount: string;
4
4
  budgetPercentage: number;
5
5
  label: string;
6
+ hasBudget?: boolean;
6
7
  avatarBgColor?: string;
7
8
  leftLabel: string;
8
9
  rightLabel: string;
@@ -2403,44 +2403,54 @@ const Ae = ({
2403
2403
  label: n,
2404
2404
  beat: i,
2405
2405
  budgetPercentage: l,
2406
- leftLabel: o,
2407
- rightLabel: a,
2408
- buttonProps: s,
2409
- ...h
2406
+ hasBudget: o = !1,
2407
+ leftLabel: a,
2408
+ rightLabel: s,
2409
+ buttonProps: h,
2410
+ ...d
2410
2411
  }) => {
2411
- const { category_guid: d } = i.payload, m = () => l > 100 ? "error.main" : l > 50 ? "warning.main" : "success.main", p = Ze(), u = Se(d, p);
2412
+ const { category_guid: m } = i.payload, p = () => l > 100 ? "error.main" : l > 50 ? "warning.main" : "success.main", u = Ze(), C = Se(m, u);
2412
2413
  return /* @__PURE__ */ e(
2413
2414
  v,
2414
2415
  {
2415
- ...h,
2416
+ ...d,
2416
2417
  beat: i,
2417
- button: /* @__PURE__ */ e(H, { ...s, beat: i }),
2418
+ button: /* @__PURE__ */ e(
2419
+ H,
2420
+ {
2421
+ ...h,
2422
+ beat: {
2423
+ ...i,
2424
+ call_to_action: o ? i.supporting_action : i.call_to_action
2425
+ }
2426
+ }
2427
+ ),
2418
2428
  contentProps: { sx: { "& p": { px: 0, pb: 16, pt: 20 } } },
2419
- header: { ...h.header, sx: { mb: 20 } },
2429
+ header: { ...d.header, sx: { mb: 20 } },
2420
2430
  children: /* @__PURE__ */ e(
2421
2431
  re,
2422
2432
  {
2423
2433
  amount: r,
2424
2434
  borderRadius: "6px",
2425
- completeColor: m(),
2435
+ completeColor: p(),
2426
2436
  icon: /* @__PURE__ */ e(
2427
2437
  y1,
2428
2438
  {
2429
- categoryGuid: d,
2439
+ categoryGuid: m,
2430
2440
  size: 44,
2431
2441
  sx: {
2432
2442
  color: "text.primary",
2433
- bgcolor: R1(u, 0.25),
2434
- borderColor: u,
2443
+ bgcolor: R1(C, 0.25),
2444
+ borderColor: C,
2435
2445
  borderWidth: 1,
2436
2446
  borderStyle: "solid"
2437
2447
  }
2438
2448
  }
2439
2449
  ),
2440
2450
  label: n,
2441
- leftLabel: o,
2451
+ leftLabel: a,
2442
2452
  percentComplete: l,
2443
- rightLabel: a,
2453
+ rightLabel: s,
2444
2454
  sx: { p: 0, "& .details-container": { gap: 12 } }
2445
2455
  }
2446
2456
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mx-cartographer/experiences",
3
- "version": "7.11.7",
3
+ "version": "7.11.8",
4
4
  "description": "Library containing experience widgets",
5
5
  "author": "MX",
6
6
  "license": "MIT",