tek-wallet 0.0.94 → 0.0.96

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.
@@ -43,7 +43,7 @@ var CustomOtpInput = (0, react_1.forwardRef)(function (props, ref) {
43
43
  (_a = blurButtonRef.current) === null || _a === void 0 ? void 0 : _a.click();
44
44
  },
45
45
  }); });
46
- return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { ref: blurButtonRef }), otpInputType === OtpInputType.PASSWORD && ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { inputType: "password", inputStyle: {
46
+ return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [(0, jsx_runtime_1.jsx)("button", { ref: blurButtonRef, style: { display: "none" } }), otpInputType === OtpInputType.PASSWORD && ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { inputType: "password", inputStyle: {
47
47
  border: "1px solid #ffffff58",
48
48
  borderRadius: "0.75rem",
49
49
  width: "2.8rem",
@@ -52,7 +52,7 @@ var CustomOtpInput = (0, react_1.forwardRef)(function (props, ref) {
52
52
  outline: "none",
53
53
  color: "#ffffff",
54
54
  backgroundColor: "#ffffff29",
55
- }, renderInput: function (props) { return (0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal" })); } }))), otpInputType !== OtpInputType.TEXT && ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { renderInput: function (props) { return (0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "text" })); } })))] }));
55
+ }, renderInput: function (props) { return (0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "decimal" })); } }))), otpInputType !== OtpInputType.PASSWORD && ((0, jsx_runtime_1.jsx)(react_otp_input_1.default, __assign({}, rest, { renderInput: function (props) { return (0, jsx_runtime_1.jsx)("input", __assign({}, props, { inputMode: "text" })); } })))] }));
56
56
  });
57
57
  CustomOtpInput.displayName = "CustomOtpInput";
58
58
  exports.default = CustomOtpInput;
@@ -72,7 +72,6 @@ var CreateWalletView = function (props) {
72
72
  var swiperControlledRef = (0, react_2.useRef)(null);
73
73
  var childPageLayoutRef = (0, react_2.useRef)(null);
74
74
  var _c = (0, react_2.useState)(CreateWalletViewStep.CREATE_PASSCODE), currentStep = _c[0], setCurrentStep = _c[1];
75
- var otpInputRef = (0, react_2.useRef)(null);
76
75
  var createWallet = (0, useWalletData_1.default)().createWallet;
77
76
  var gotoStep = function (step) {
78
77
  var _a;
@@ -117,9 +116,7 @@ var CreateWalletView = function (props) {
117
116
  }, 1500);
118
117
  };
119
118
  var handleConfirmOtpChange = function (value) {
120
- var _a;
121
119
  setConfirmOtp(value);
122
- (_a = otpInputRef.current) === null || _a === void 0 ? void 0 : _a.blur();
123
120
  console.warn("🚀 ~ handleConfirmOtpChange ~ value:", value);
124
121
  /**
125
122
  * validate otp here
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tek-wallet",
3
- "version": "0.0.94",
3
+ "version": "0.0.96",
4
4
  "description": "A custom React provider with TypeScript support",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",