@loafmarkets/ui 0.1.376 → 0.1.377
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.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -5042,9 +5042,9 @@ var PulsingDot = styled10__default.default.span`
|
|
|
5042
5042
|
`;
|
|
5043
5043
|
function fmtCompactUsd(n) {
|
|
5044
5044
|
const abs = Math.abs(n);
|
|
5045
|
-
if (abs >= 1e6) return
|
|
5046
|
-
if (abs >= 1e3) return
|
|
5047
|
-
return
|
|
5045
|
+
if (abs >= 1e6) return `${(abs / 1e6).toFixed(2)}M`;
|
|
5046
|
+
if (abs >= 1e3) return `${(abs / 1e3).toFixed(1)}K`;
|
|
5047
|
+
return `${abs.toFixed(2)}`;
|
|
5048
5048
|
}
|
|
5049
5049
|
function useIsNarrow(maxWidthPx = 768) {
|
|
5050
5050
|
const query = `(max-width:${maxWidthPx}px)`;
|