albinasoft-ui-package 1.0.102 → 1.0.104
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.
@@ -22,15 +22,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
22
|
__setModuleDefault(result, mod);
|
23
23
|
return result;
|
24
24
|
};
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
27
|
-
};
|
28
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
29
26
|
exports.InputType = exports.CustomInput = void 0;
|
30
27
|
var react_1 = __importStar(require("react"));
|
31
28
|
var react_bootstrap_1 = require("react-bootstrap");
|
32
29
|
var fa_1 = require("react-icons/fa");
|
33
|
-
var
|
30
|
+
var react_imask_1 = require("react-imask");
|
34
31
|
var InputType;
|
35
32
|
(function (InputType) {
|
36
33
|
InputType["TEXT"] = "text";
|
@@ -53,7 +50,9 @@ var CustomInput = function (_a) {
|
|
53
50
|
var renderInput = function () {
|
54
51
|
// If inputType is TEL, use ReactInputMask
|
55
52
|
if (inputType === InputType.TEL) {
|
56
|
-
return (react_1.default.createElement(
|
53
|
+
return (react_1.default.createElement(react_imask_1.IMaskInput, { mask: "0(000) 000 00 00", value: value, onAccept: function (val) {
|
54
|
+
return onChange({ target: { name: name, value: val } });
|
55
|
+
}, className: "form-control ".concat(className), style: style, required: required, disabled: disabled, readOnly: readOnly, autoComplete: "new-password" }));
|
57
56
|
}
|
58
57
|
// Otherwise, return a normal input element
|
59
58
|
return (react_1.default.createElement("input", { id: id, name: name, type: handleType, value: value, placeholder: placeholder, onChange: onChange, onKeyDown: onKeyDown, className: "form-control ".concat(className), style: style, required: required, disabled: disabled, readOnly: readOnly, autoComplete: "new-password" }));
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "albinasoft-ui-package",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.104",
|
4
4
|
"main": "dist/index.js",
|
5
5
|
"types": "dist/index.d.ts",
|
6
6
|
"scripts": {
|
@@ -12,7 +12,6 @@
|
|
12
12
|
"@mui/x-tree-view": "^7.23.2",
|
13
13
|
"ag-grid-community": "^33.1.1",
|
14
14
|
"ag-grid-react": "^33.1.1",
|
15
|
-
"comigo-tech-react-input-mask": "^3.0.0-alpha.3",
|
16
15
|
"date-fns": "^4.1.0",
|
17
16
|
"react": "18.3.1",
|
18
17
|
"react-bootstrap": "^2.10.6",
|
@@ -20,7 +19,7 @@
|
|
20
19
|
"react-datepicker": "^7.6.0",
|
21
20
|
"react-dom": "18.3.1",
|
22
21
|
"react-icons": "5.4.0",
|
23
|
-
"react-
|
22
|
+
"react-imask": "^7.6.1",
|
24
23
|
"react-quill": "^2.0.0",
|
25
24
|
"react-router-dom": "^7.1.1",
|
26
25
|
"react-toastify": "^10.0.6"
|