@orangecheck/app-design 0.5.5 → 0.5.7
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/components.js +3 -2
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +3 -2
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +8 -4
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -4
- package/dist/index.mjs.map +1 -1
- package/dist/primitives.d.mts +2 -1
- package/dist/primitives.d.ts +2 -1
- package/dist/primitives.js +5 -2
- package/dist/primitives.js.map +1 -1
- package/dist/primitives.mjs +5 -2
- package/dist/primitives.mjs.map +1 -1
- package/package.json +1 -1
package/dist/components.mjs
CHANGED
|
@@ -1212,10 +1212,11 @@ function UsdApprox({
|
|
|
1212
1212
|
}) {
|
|
1213
1213
|
if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
|
|
1214
1214
|
const usd = sats / 1e8 * usdPerBtc;
|
|
1215
|
-
const text = new Intl.NumberFormat("en-US", {
|
|
1215
|
+
const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
|
|
1216
1216
|
style: "currency",
|
|
1217
1217
|
currency: "USD",
|
|
1218
|
-
|
|
1218
|
+
minimumFractionDigits: 2,
|
|
1219
|
+
maximumFractionDigits: 2
|
|
1219
1220
|
}).format(usd);
|
|
1220
1221
|
return /* @__PURE__ */ jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
|
|
1221
1222
|
"\u2248 ",
|