@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/index.mjs CHANGED
@@ -2053,11 +2053,7 @@ function SplitBar({
2053
2053
  children: /* @__PURE__ */ jsxs(
2054
2054
  "span",
2055
2055
  {
2056
- className: cn(
2057
- "oca-tabular leading-none tracking-[-0.02em]",
2058
- // A small share gets a smaller figure, so it fits its segment at any width.
2059
- s.pct < 30 ? "text-[1.125rem] md:text-[1.375rem]" : "text-[1.25rem] md:text-[1.875rem]"
2060
- ),
2056
+ className: "oca-tabular text-[1.125rem] leading-none tracking-[-0.02em] md:text-[1.5rem]",
2061
2057
  children: [
2062
2058
  s.pct,
2063
2059
  "%"
@@ -2176,10 +2172,11 @@ function UsdApprox({
2176
2172
  }) {
2177
2173
  if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
2178
2174
  const usd = sats / 1e8 * usdPerBtc;
2179
- const text = new Intl.NumberFormat("en-US", {
2175
+ const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
2180
2176
  style: "currency",
2181
2177
  currency: "USD",
2182
- maximumFractionDigits: usd < 1 ? 4 : 2
2178
+ minimumFractionDigits: 2,
2179
+ maximumFractionDigits: 2
2183
2180
  }).format(usd);
2184
2181
  return /* @__PURE__ */ jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
2185
2182
  "\u2248 ",