@mx-cartographer/experiences 6.26.22 → 6.26.23

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
+ ## [6.26.23] - 09-09-2025
2
+
3
+ - **UPDATED** - new trends widget category detail chart now displays subcategories and amounts in chart tooltip so they aren't negative
4
+
1
5
  ## [6.26.22] - 09-09-2025
2
6
 
3
7
  - **UPDATED** - new trends widget category detail chart now displays subcategories and amounts in chart tooltip
package/dist/index.es.js CHANGED
@@ -21941,22 +21941,20 @@ const e0 = (e) => e.reduce((i, a) => {
21941
21941
  const h = _.monthlyAmounts.slice(-n).find((m) => o(m.label) === s);
21942
21942
  return {
21943
21943
  label: _.name,
21944
- amount: h?.amount || 0,
21944
+ amount: Math.abs(h?.amount || 0),
21945
21945
  header: s
21946
21946
  };
21947
21947
  }), l = e.monthlyAmounts.slice(-n).find((_) => o(_.label) === s);
21948
21948
  return [{
21949
21949
  label: e.name,
21950
- amount: l?.amount || 0,
21950
+ amount: Math.abs(l?.amount || 0),
21951
21951
  header: s
21952
- }, ...c].sort(
21953
- (_, h) => Math.abs(h.amount) - Math.abs(_.amount)
21954
- );
21952
+ }, ...c].sort((_, h) => h.amount - _.amount);
21955
21953
  });
21956
21954
  }, a0 = (e, n) => {
21957
21955
  const i = e ? e.totalMonthlyAmounts.slice(-n).map((o) => ({
21958
21956
  x: o.label.substring(0, 3),
21959
- y: o.amount
21957
+ y: Math.abs(o.amount)
21960
21958
  })) : [], a = e ? i0(e, n) : [];
21961
21959
  return { monthlyAmounts: i, tooltipLabels: a };
21962
21960
  }, Sl = ({ selectedTab: e, onTabChange: n }) => /* @__PURE__ */ t(