dhre-ui-kit 0.0.245 → 0.0.246

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.mjs CHANGED
@@ -3981,7 +3981,8 @@ const styles$5 = StyleSheet.create({
3981
3981
  flexDirection: "row",
3982
3982
  justifyContent: "space-between",
3983
3983
  marginTop: verticalScale(8)
3984
- }
3984
+ },
3985
+ timerIconContainer: { flexDirection: "row", gap: horizontalScale(8) }
3985
3986
  });
3986
3987
 
3987
3988
  const OTPInput = React.forwardRef(
@@ -4001,7 +4002,8 @@ const OTPInput = React.forwardRef(
4001
4002
  mode,
4002
4003
  disabled,
4003
4004
  maxResendCount = 2,
4004
- timerToResend = 6e4
4005
+ timerToResend = 6e4,
4006
+ timerIcon
4005
4007
  }, ref) => {
4006
4008
  const [otp, setOTP] = useState("");
4007
4009
  const [isResendOtpEnable, setIsResendOtpEnable] = useState(false);
@@ -4156,16 +4158,14 @@ const OTPInput = React.forwardRef(
4156
4158
  autoComplete: "sms-otp",
4157
4159
  selectionColor: theme$1.CONTENT_PRIMARY
4158
4160
  }
4159
- ))), !errorMessageMaxReachCount && /* @__PURE__ */ React.createElement(View, { style: styles$5.timerContainer }, /* @__PURE__ */ React.createElement(
4161
+ ))), !errorMessageMaxReachCount && /* @__PURE__ */ React.createElement(View, { style: styles$5.timerContainer }, timeLeft !== 0 && /* @__PURE__ */ React.createElement(View, { style: styles$5.timerIconContainer }, timerIcon, /* @__PURE__ */ React.createElement(
4160
4162
  CustomTypography,
4161
4163
  {
4162
4164
  text: `${timeLeft} sec`,
4163
4165
  variant: FontStyle.L2_REGULAR,
4164
- style: {
4165
- ...resendTextStyle
4166
- }
4166
+ style: { color: theme$1.CONTENT_PRIMARY }
4167
4167
  }
4168
- ), /* @__PURE__ */ React.createElement(
4168
+ )), /* @__PURE__ */ React.createElement(
4169
4169
  Pressable,
4170
4170
  {
4171
4171
  onPress: onClickResendOTP,