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.
- package/dist/web/index.cjs +1 -1
- package/dist/web/index.js +1 -1
- package/package.json +1 -1
package/dist/web/index.cjs
CHANGED
|
@@ -191,7 +191,7 @@ function cn(...inputs) {
|
|
|
191
191
|
}
|
|
192
192
|
|
|
193
193
|
// src/web/utils/amount-display.ts
|
|
194
|
-
var NUMBER_RE =
|
|
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 =
|
|
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