@orangecheck/app-design 0.5.6 → 0.5.8
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 +4 -7
- package/dist/components.js.map +1 -1
- package/dist/components.mjs +4 -7
- package/dist/components.mjs.map +1 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +4 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/components.mjs
CHANGED
|
@@ -1089,11 +1089,7 @@ function SplitBar({
|
|
|
1089
1089
|
children: /* @__PURE__ */ jsxs(
|
|
1090
1090
|
"span",
|
|
1091
1091
|
{
|
|
1092
|
-
className:
|
|
1093
|
-
"oca-tabular leading-none tracking-[-0.02em]",
|
|
1094
|
-
// A small share gets a smaller figure, so it fits its segment at any width.
|
|
1095
|
-
s.pct < 30 ? "text-[1.125rem] md:text-[1.375rem]" : "text-[1.25rem] md:text-[1.875rem]"
|
|
1096
|
-
),
|
|
1092
|
+
className: "oca-tabular text-[1.125rem] leading-none tracking-[-0.02em] md:text-[1.5rem]",
|
|
1097
1093
|
children: [
|
|
1098
1094
|
s.pct,
|
|
1099
1095
|
"%"
|
|
@@ -1212,10 +1208,11 @@ function UsdApprox({
|
|
|
1212
1208
|
}) {
|
|
1213
1209
|
if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
|
|
1214
1210
|
const usd = sats / 1e8 * usdPerBtc;
|
|
1215
|
-
const text = new Intl.NumberFormat("en-US", {
|
|
1211
|
+
const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
|
|
1216
1212
|
style: "currency",
|
|
1217
1213
|
currency: "USD",
|
|
1218
|
-
|
|
1214
|
+
minimumFractionDigits: 2,
|
|
1215
|
+
maximumFractionDigits: 2
|
|
1219
1216
|
}).format(usd);
|
|
1220
1217
|
return /* @__PURE__ */ jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
|
|
1221
1218
|
"\u2248 ",
|