infinity-forge 0.35.9 → 0.36.0
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.
|
@@ -13,23 +13,22 @@ var __assign = (this && this.__assign) || function () {
|
|
|
13
13
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
14
|
exports.InputMask = void 0;
|
|
15
15
|
var jsx_runtime_1 = require("react/jsx-runtime");
|
|
16
|
-
var react_1 = require("react");
|
|
17
16
|
var formik_1 = require("formik");
|
|
18
|
-
|
|
17
|
+
// import { useMask } from '@react-input/mask'
|
|
19
18
|
var input_control_1 = require("../input-control/index.js");
|
|
20
19
|
function InputMask(props) {
|
|
21
20
|
var _a = (0, formik_1.useField)({ name: props.name }), field = _a[0], _ = _a[1], helpers = _a[2];
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
})
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}, [field.value])
|
|
32
|
-
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props
|
|
21
|
+
// const inputRef = useMask({
|
|
22
|
+
// mask: props.mask,
|
|
23
|
+
// replacement: { _: /\d/ },
|
|
24
|
+
// })
|
|
25
|
+
// useEffect(() => {
|
|
26
|
+
// if (field.value === undefined) {
|
|
27
|
+
// helpers.setValue('')
|
|
28
|
+
// inputRef.current.value = ''
|
|
29
|
+
// }
|
|
30
|
+
// }, [field.value])
|
|
31
|
+
return ((0, jsx_runtime_1.jsx)(input_control_1.InputControl, __assign({}, props)));
|
|
33
32
|
}
|
|
34
33
|
exports.InputMask = InputMask;
|
|
35
34
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-mask/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/ui/components/form/input-mask/index.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAEA,iCAAiC;AACjC,8CAA8C;AAE9C,kDAA+C;AAI/C,SAAgB,SAAS,CAAC,KAA0D;IAC5E,IAAA,KAAsB,IAAA,iBAAQ,EAAC,EAAE,IAAI,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC,EAAnD,KAAK,QAAA,EAAE,CAAC,QAAA,EAAE,OAAO,QAAkC,CAAA;IAE1D,6BAA6B;IAC7B,sBAAsB;IACtB,8BAA8B;IAC9B,KAAK;IAEL,oBAAoB;IACpB,qCAAqC;IACrC,2BAA2B;IAC3B,kCAAkC;IAClC,MAAM;IACN,oBAAoB;IAEpB,OAAO,CACL,uBAAC,4BAAY,eAAK,KAAK,EAER,CAChB,CAAA;AACH,CAAC;AApBD,8BAoBC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "infinity-forge",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.36.0",
|
|
4
4
|
"description": "codie Library",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -47,7 +47,6 @@
|
|
|
47
47
|
"@internationalized/date": "^3.5.3",
|
|
48
48
|
"@nextui-org/react": "^2.3.6",
|
|
49
49
|
"@react-aria/i18n": "^3.11.0",
|
|
50
|
-
"@react-input/mask": "^1.2.4",
|
|
51
50
|
"aos": "^2.3.4",
|
|
52
51
|
"axios": "^1.4.0",
|
|
53
52
|
"chroma-js": "^2.4.2",
|