kaleido-ui 0.1.65 → 0.1.66

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.
@@ -191,7 +191,7 @@ function cn(...inputs) {
191
191
  }
192
192
 
193
193
  // src/web/utils/amount-display.ts
194
- var NUMBER_RE = /^(-?\d[\d,]*)(?:\.(\d+))?$/;
194
+ var NUMBER_RE = /^-?(?:\d{1,3}(?:,\d{3})+|\d+)(?:\.\d+)?$/;
195
195
  function formatDisplayAmountText(value, options = {}) {
196
196
  if (value === null || value === void 0 || value === "") return "";
197
197
  const unit = options.unit ?? "token";
package/dist/web/index.js CHANGED
@@ -8,7 +8,7 @@ function cn(...inputs) {
8
8
  }
9
9
 
10
10
  // src/web/utils/amount-display.ts
11
- var NUMBER_RE = /^(-?\d[\d,]*)(?:\.(\d+))?$/;
11
+ var NUMBER_RE = /^-?(?:\d{1,3}(?:,\d{3})+|\d+)(?:\.\d+)?$/;
12
12
  function formatDisplayAmountText(value, options = {}) {
13
13
  if (value === null || value === void 0 || value === "") return "";
14
14
  const unit = options.unit ?? "token";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kaleido-ui",
3
- "version": "0.1.65",
3
+ "version": "0.1.66",
4
4
  "description": "KaleidoSwap shared UI library — design tokens, web components (Tailwind + Radix), and React Native components extending WDK UI Kit",
5
5
  "license": "MIT",
6
6
  "type": "module",