@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.mjs
CHANGED
|
@@ -5017,9 +5017,9 @@ var PulsingDot = styled10.span`
|
|
|
5017
5017
|
`;
|
|
5018
5018
|
function fmtCompactUsd(n) {
|
|
5019
5019
|
const abs = Math.abs(n);
|
|
5020
|
-
if (abs >= 1e6) return
|
|
5021
|
-
if (abs >= 1e3) return
|
|
5022
|
-
return
|
|
5020
|
+
if (abs >= 1e6) return `${(abs / 1e6).toFixed(2)}M`;
|
|
5021
|
+
if (abs >= 1e3) return `${(abs / 1e3).toFixed(1)}K`;
|
|
5022
|
+
return `${abs.toFixed(2)}`;
|
|
5023
5023
|
}
|
|
5024
5024
|
function useIsNarrow(maxWidthPx = 768) {
|
|
5025
5025
|
const query = `(max-width:${maxWidthPx}px)`;
|