argous 1.2.199 → 1.2.200
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/utils/index.d.ts +1 -1
- package/dist/utils/index.js +1 -1
- package/lib/utils/index.ts +1 -1
- package/package.json +1 -1
package/dist/utils/index.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const formataTelefone: (value: string) => string;
|
|
|
58
58
|
export declare const useWebSocket: () => {};
|
|
59
59
|
export declare const formataCpf: (value: string) => string;
|
|
60
60
|
export declare const numbersOnly: (value: string, type: string) => string;
|
|
61
|
-
export declare const currencyMask: (value: string | number) => string
|
|
61
|
+
export declare const currencyMask: (value: string | number) => string;
|
|
62
62
|
export declare const toFloat: (value: string) => number | undefined;
|
|
63
63
|
export declare const copyToClipboard: (text: string) => void;
|
|
64
64
|
export declare const confirm: (props: BasicModalProps | string) => Promise<boolean>;
|
package/dist/utils/index.js
CHANGED
package/lib/utils/index.ts
CHANGED
|
@@ -283,7 +283,7 @@ export const numbersOnly = (value: string, type: string) => value ? value.replac
|
|
|
283
283
|
|
|
284
284
|
export const currencyMask = (value: string | number) => {
|
|
285
285
|
if (value === 0) return `${value.toString()},00`;
|
|
286
|
-
if (!value) return;
|
|
286
|
+
if (!value) return '';
|
|
287
287
|
if (isNumber(value)) value = value.toFixed(2);
|
|
288
288
|
value = value.toString();
|
|
289
289
|
value = value.replace(/\D/g, '');
|