dhre-ui-kit 0.0.245 → 0.0.247
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.
- package/lib/index.d.ts +1 -0
- package/lib/index.js +13 -10
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +13 -10
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -4010,13 +4010,17 @@ const styles$5 = reactNative.StyleSheet.create({
|
|
|
4010
4010
|
textDecorationLine: "underline"
|
|
4011
4011
|
},
|
|
4012
4012
|
resendOTPStyle: {
|
|
4013
|
-
alignSelf: "flex-end"
|
|
4014
|
-
marginTop: verticalScale(8)
|
|
4013
|
+
alignSelf: "flex-end"
|
|
4015
4014
|
},
|
|
4016
4015
|
timerContainer: {
|
|
4017
4016
|
flexDirection: "row",
|
|
4018
4017
|
justifyContent: "space-between",
|
|
4019
4018
|
marginTop: verticalScale(8)
|
|
4019
|
+
},
|
|
4020
|
+
timerIconContainer: {
|
|
4021
|
+
flexDirection: "row",
|
|
4022
|
+
gap: horizontalScale(8),
|
|
4023
|
+
alignItems: "center"
|
|
4020
4024
|
}
|
|
4021
4025
|
});
|
|
4022
4026
|
|
|
@@ -4037,7 +4041,8 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
4037
4041
|
mode,
|
|
4038
4042
|
disabled,
|
|
4039
4043
|
maxResendCount = 2,
|
|
4040
|
-
timerToResend = 6e4
|
|
4044
|
+
timerToResend = 6e4,
|
|
4045
|
+
timerIcon
|
|
4041
4046
|
}, ref) => {
|
|
4042
4047
|
const [otp, setOTP] = React.useState("");
|
|
4043
4048
|
const [isResendOtpEnable, setIsResendOtpEnable] = React.useState(false);
|
|
@@ -4192,16 +4197,14 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
4192
4197
|
autoComplete: "sms-otp",
|
|
4193
4198
|
selectionColor: theme$1.CONTENT_PRIMARY
|
|
4194
4199
|
}
|
|
4195
|
-
))), !errorMessageMaxReachCount && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$5.timerContainer }, /* @__PURE__ */ React__default["default"].createElement(
|
|
4200
|
+
))), !errorMessageMaxReachCount && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$5.timerContainer }, (disableResendButton() || !isResendOtpEnable) && /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$5.timerIconContainer }, timerIcon, /* @__PURE__ */ React__default["default"].createElement(
|
|
4196
4201
|
CustomTypography,
|
|
4197
4202
|
{
|
|
4198
|
-
text:
|
|
4199
|
-
variant: FontStyle.
|
|
4200
|
-
style: {
|
|
4201
|
-
...resendTextStyle
|
|
4202
|
-
}
|
|
4203
|
+
text: `00:${timeLeft} secs`,
|
|
4204
|
+
variant: FontStyle.L1_REGULAR,
|
|
4205
|
+
style: { color: theme$1.INFO }
|
|
4203
4206
|
}
|
|
4204
|
-
), /* @__PURE__ */ React__default["default"].createElement(
|
|
4207
|
+
)), /* @__PURE__ */ React__default["default"].createElement(
|
|
4205
4208
|
reactNative.Pressable,
|
|
4206
4209
|
{
|
|
4207
4210
|
onPress: onClickResendOTP,
|