@flywire/react-headlessui
Advanced tools
Comparing version 0.0.14-3 to 0.0.14
@@ -89,8 +89,3 @@ "use strict"; | ||
}; | ||
const valueAsNumber = typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value; | ||
const money = (0, utils_1.toMoney)(valueAsNumber, options); | ||
console.log('format - value', value); | ||
console.log('format - valueAsNumber', valueAsNumber); | ||
console.log('format - money', valueAsNumber); | ||
return money; | ||
return (0, utils_1.toMoney)(typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value, options); | ||
} | ||
@@ -100,7 +95,2 @@ return (0, utils_1.formatNumber)((0, utils_1.parseNumber)(value), { decimals }); | ||
function parse(value) { | ||
const valueAsNumber = (0, utils_1.toNumber)(value.toString(), { | ||
decimal: decimalMark, | ||
}); | ||
console.log('parse - value', value); | ||
console.log('parse - valueAsNumber', valueAsNumber); | ||
return hasCustomFormatter | ||
@@ -107,0 +97,0 @@ ? (0, utils_1.toNumber)(value.toString(), { |
@@ -64,8 +64,3 @@ import { useEffect, useState, } from 'react'; | ||
}; | ||
const valueAsNumber = typeof value === 'string' ? toNumber(value.toString(), options) : value; | ||
const money = toMoney(valueAsNumber, options); | ||
console.log('format - value', value); | ||
console.log('format - valueAsNumber', valueAsNumber); | ||
console.log('format - money', valueAsNumber); | ||
return money; | ||
return toMoney(typeof value === 'string' ? toNumber(value.toString(), options) : value, options); | ||
} | ||
@@ -75,7 +70,2 @@ return formatNumber(parseNumber(value), { decimals }); | ||
function parse(value) { | ||
const valueAsNumber = toNumber(value.toString(), { | ||
decimal: decimalMark, | ||
}); | ||
console.log('parse - value', value); | ||
console.log('parse - valueAsNumber', valueAsNumber); | ||
return hasCustomFormatter | ||
@@ -82,0 +72,0 @@ ? toNumber(value.toString(), { |
@@ -98,8 +98,3 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
}; | ||
const valueAsNumber = typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value; | ||
const money = (0, utils_1.toMoney)(valueAsNumber, options); | ||
console.log('format - value', value); | ||
console.log('format - valueAsNumber', valueAsNumber); | ||
console.log('format - money', valueAsNumber); | ||
return money; | ||
return (0, utils_1.toMoney)(typeof value === 'string' ? (0, utils_1.toNumber)(value.toString(), options) : value, options); | ||
} | ||
@@ -109,7 +104,2 @@ return (0, utils_1.formatNumber)((0, utils_1.parseNumber)(value), { decimals }); | ||
function parse(value) { | ||
const valueAsNumber = (0, utils_1.toNumber)(value.toString(), { | ||
decimal: decimalMark, | ||
}); | ||
console.log('parse - value', value); | ||
console.log('parse - valueAsNumber', valueAsNumber); | ||
return hasCustomFormatter | ||
@@ -116,0 +106,0 @@ ? (0, utils_1.toNumber)(value.toString(), { |
{ | ||
"name": "@flywire/react-headlessui", | ||
"version": "0.0.14-3", | ||
"version": "0.0.14", | ||
"description": "Headless UI components", | ||
@@ -5,0 +5,0 @@ "main": "./dist/umd/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
321987
5215