@wealthx/shadcn 1.3.3 → 1.3.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wealthx/shadcn",
3
- "version": "1.3.3",
3
+ "version": "1.3.5",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./src/index.ts",
@@ -164,12 +164,7 @@ export function CashBalanceLineChart({
164
164
  return iso ? formatDateTooltip(iso) : "";
165
165
  },
166
166
  label: (ctx) => {
167
- const val = ctx.parsed.y;
168
- const formatted = Math.abs(val).toLocaleString(undefined, {
169
- minimumFractionDigits: 2,
170
- maximumFractionDigits: 2,
171
- });
172
- return `$ ${formatted}`;
167
+ return formatCurrency(ctx.parsed.y, { decimals: 2 });
173
168
  },
174
169
  },
175
170
  },