@os-design/input-number-utils
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -7,6 +7,6 @@ "use strict"; | ||
exports["default"] = void 0; | ||
var _transform = _interopRequireDefault(require("./transform")); | ||
var _extractNumber = _interopRequireDefault(require("./decorators/extractNumber")); | ||
var _omitThousandsSeparator = _interopRequireDefault(require("./decorators/omitThousandsSeparator")); | ||
var _extractNumber = _interopRequireDefault(require("./decorators/extractNumber")); | ||
var _revertDefaultDecimalSeparator = _interopRequireDefault(require("./decorators/revertDefaultDecimalSeparator")); | ||
var _transform = _interopRequireDefault(require("./transform")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -13,0 +13,0 @@ var fromFormattedString = function fromFormattedString(value, options) { |
@@ -8,4 +8,4 @@ "use strict"; | ||
var _fromFormattedString = _interopRequireDefault(require("./fromFormattedString")); | ||
var _numberToFormattedString = _interopRequireDefault(require("./numberToFormattedString")); | ||
var _stringToNumber = _interopRequireDefault(require("./stringToNumber")); | ||
var _numberToFormattedString = _interopRequireDefault(require("./numberToFormattedString")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -12,0 +12,0 @@ var getNextState = function getNextState(value, options) { |
@@ -7,6 +7,6 @@ "use strict"; | ||
exports["default"] = void 0; | ||
var _addPrefixSuffix = _interopRequireDefault(require("./decorators/addPrefixSuffix")); | ||
var _addThousandsSeparator = _interopRequireDefault(require("./decorators/addThousandsSeparator")); | ||
var _replaceDefaultDecimalSeparator = _interopRequireDefault(require("./decorators/replaceDefaultDecimalSeparator")); | ||
var _transform = _interopRequireDefault(require("./transform")); | ||
var _replaceDefaultDecimalSeparator = _interopRequireDefault(require("./decorators/replaceDefaultDecimalSeparator")); | ||
var _addThousandsSeparator = _interopRequireDefault(require("./decorators/addThousandsSeparator")); | ||
var _addPrefixSuffix = _interopRequireDefault(require("./decorators/addPrefixSuffix")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -13,0 +13,0 @@ var toFormattedString = function toFormattedString(value, options) { |
@@ -7,4 +7,4 @@ "use strict"; | ||
exports["default"] = void 0; | ||
var _escapeStringRegexp = _interopRequireDefault(require("@os-team/escape-string-regexp")); | ||
var _react = require("react"); | ||
var _escapeStringRegexp = _interopRequireDefault(require("@os-team/escape-string-regexp")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } | ||
@@ -11,0 +11,0 @@ /* eslint-disable no-console */ |
@@ -1,7 +0,7 @@ | ||
import transform from './transform'; | ||
import extractNumber from './decorators/extractNumber'; | ||
import omitThousandsSeparator from './decorators/omitThousandsSeparator'; | ||
import extractNumber from './decorators/extractNumber'; | ||
import revertDefaultDecimalSeparator from './decorators/revertDefaultDecimalSeparator'; | ||
import transform from './transform'; | ||
const fromFormattedString = (value, options) => transform(value, [omitThousandsSeparator, extractNumber, revertDefaultDecimalSeparator], options); | ||
export default fromFormattedString; | ||
//# sourceMappingURL=fromFormattedString.js.map |
import fromFormattedString from './fromFormattedString'; | ||
import numberToFormattedString from './numberToFormattedString'; | ||
import stringToNumber from './stringToNumber'; | ||
import numberToFormattedString from './numberToFormattedString'; | ||
const getNextState = (value, options) => { | ||
@@ -5,0 +5,0 @@ const { |
@@ -0,7 +1,7 @@ | ||
import addPrefixSuffix from './decorators/addPrefixSuffix'; | ||
import addThousandsSeparator from './decorators/addThousandsSeparator'; | ||
import replaceDefaultDecimalSeparator from './decorators/replaceDefaultDecimalSeparator'; | ||
import transform from './transform'; | ||
import replaceDefaultDecimalSeparator from './decorators/replaceDefaultDecimalSeparator'; | ||
import addThousandsSeparator from './decorators/addThousandsSeparator'; | ||
import addPrefixSuffix from './decorators/addPrefixSuffix'; | ||
const toFormattedString = (value, options) => transform(value, [replaceDefaultDecimalSeparator, addThousandsSeparator, addPrefixSuffix], options); | ||
export default toFormattedString; | ||
//# sourceMappingURL=toFormattedString.js.map |
@@ -0,3 +1,3 @@ | ||
import escapeStringRegexp from '@os-team/escape-string-regexp'; | ||
import { useMemo } from 'react'; | ||
import escapeStringRegexp from '@os-team/escape-string-regexp'; | ||
/* eslint-disable no-console */ | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "@os-design/input-number-utils", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"license": "UNLICENSED", | ||
@@ -37,3 +37,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git", | ||
}, | ||
"gitHead": "88df07f5c7c0c5534a24b84689854528fa514153" | ||
"gitHead": "0e88d3afc41e36cee61222a039ef1aa4d08115b5" | ||
} |
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
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
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
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
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
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
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
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
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
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
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
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
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
102175