@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/index.js
CHANGED
|
@@ -2087,11 +2087,7 @@ function SplitBar({
|
|
|
2087
2087
|
children: /* @__PURE__ */ jsxRuntime.jsxs(
|
|
2088
2088
|
"span",
|
|
2089
2089
|
{
|
|
2090
|
-
className:
|
|
2091
|
-
"oca-tabular leading-none tracking-[-0.02em]",
|
|
2092
|
-
// A small share gets a smaller figure, so it fits its segment at any width.
|
|
2093
|
-
s.pct < 30 ? "text-[1.125rem] md:text-[1.375rem]" : "text-[1.25rem] md:text-[1.875rem]"
|
|
2094
|
-
),
|
|
2090
|
+
className: "oca-tabular text-[1.125rem] leading-none tracking-[-0.02em] md:text-[1.5rem]",
|
|
2095
2091
|
children: [
|
|
2096
2092
|
s.pct,
|
|
2097
2093
|
"%"
|
|
@@ -2210,10 +2206,11 @@ function UsdApprox({
|
|
|
2210
2206
|
}) {
|
|
2211
2207
|
if (sats == null || usdPerBtc == null || !Number.isFinite(sats) || !Number.isFinite(usdPerBtc)) return null;
|
|
2212
2208
|
const usd = sats / 1e8 * usdPerBtc;
|
|
2213
|
-
const text = new Intl.NumberFormat("en-US", {
|
|
2209
|
+
const text = usd > 0 && usd < 5e-3 ? "< $0.01" : new Intl.NumberFormat("en-US", {
|
|
2214
2210
|
style: "currency",
|
|
2215
2211
|
currency: "USD",
|
|
2216
|
-
|
|
2212
|
+
minimumFractionDigits: 2,
|
|
2213
|
+
maximumFractionDigits: 2
|
|
2217
2214
|
}).format(usd);
|
|
2218
2215
|
return /* @__PURE__ */ jsxRuntime.jsxs("span", { className: cn("oca-tabular text-muted-foreground", className), children: [
|
|
2219
2216
|
"\u2248 ",
|