@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.
@@ -1111,11 +1111,7 @@ function SplitBar({
1111
1111
  children: /* @__PURE__ */ jsxRuntime.jsxs(
1112
1112
  "span",
1113
1113
  {
1114
- className: cn(
1115
- "oca-tabular leading-none tracking-[-0.02em]",
1116
- // A small share gets a smaller figure, so it fits its segment at any width.
1117
- s.pct < 30 ? "text-[1.125rem] md:text-[1.375rem]" : "text-[1.25rem] md:text-[1.875rem]"
1118
- ),
1114
+ className: "oca-tabular text-[1.125rem] leading-none tracking-[-0.02em] md:text-[1.5rem]",
1119
1115
  children: [
1120
1116
  s.pct,
1121
1117
  "%"
@@ -1234,10 +1230,11 @@ function UsdApprox({
1234
1230
  }) {
1235
1231
  if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
1236
1232
  const usd = sats / 1e8 * usdPerBtc;
1237
- const text = new Intl.NumberFormat("en-US", {
1233
+ const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
1238
1234
  style: "currency",
1239
1235
  currency: "USD",
1240
- maximumFractionDigits: usd < 1 ? 4 : 2
1236
+ minimumFractionDigits: 2,
1237
+ maximumFractionDigits: 2
1241
1238
  }).format(usd);
1242
1239
  return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
1243
1240
  "\u2248 ",