dhre-ui-kit 0.0.312 → 0.0.314
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 +5 -0
- package/lib/index.js +7 -8
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +7 -8
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -566,7 +566,12 @@ const DHRE_COLORS_TEXT = {
|
|
|
566
566
|
DH_TEXTLIGHTEST: "#A7A7A7",
|
|
567
567
|
DH_TEXTDISABLED: "#CCCCCC",
|
|
568
568
|
DH_LIGHTGREEN: "#00B578",
|
|
569
|
-
DH_SURFACE_SECONDARY: "#212121"
|
|
569
|
+
DH_SURFACE_SECONDARY: "#212121",
|
|
570
|
+
DH_HONEY_DEW: "#E6FFF1",
|
|
571
|
+
DH_DEEP_TEAL: "#103932",
|
|
572
|
+
DH_DARK_TEAL: "#0F332D",
|
|
573
|
+
DH_BRIGHT_RED: "#D92D2733",
|
|
574
|
+
DH_TRANPARENT_WHITE: "#FFFFFF00"
|
|
570
575
|
};
|
|
571
576
|
|
|
572
577
|
const styles$A = StyleSheet.create({
|
|
@@ -4182,12 +4187,6 @@ const OTPInput = React.forwardRef(
|
|
|
4182
4187
|
onComplete?.(otp);
|
|
4183
4188
|
}
|
|
4184
4189
|
}, [otp]);
|
|
4185
|
-
console.log("errorMessage ==>", errorMessage);
|
|
4186
|
-
console.log("isInValidOtp ==>", isInValidOtp);
|
|
4187
|
-
console.log(
|
|
4188
|
-
"errorMessage || isInValidOtp ==>",
|
|
4189
|
-
errorMessage || isInValidOtp
|
|
4190
|
-
);
|
|
4191
4190
|
return /* @__PURE__ */ React.createElement(ThemeProvider, null, /* @__PURE__ */ React.createElement(View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React.createElement(
|
|
4192
4191
|
CustomTypography,
|
|
4193
4192
|
{
|
|
@@ -4206,7 +4205,7 @@ const OTPInput = React.forwardRef(
|
|
|
4206
4205
|
style: {
|
|
4207
4206
|
...styles$5.textInputStyle,
|
|
4208
4207
|
color: theme$1.CONTENT_PRIMARY,
|
|
4209
|
-
borderColor: errorMessage || isInValidOtp ? theme$1.ERROR : otp.length === length ? theme$1.SUCCESS : activeInput === index ? theme$1.BORDER_INVERTED : theme$1.BORDER_PRIMARY,
|
|
4208
|
+
borderColor: errorMessage || isInValidOtp && otp?.length === length ? theme$1.ERROR : otp.length === length ? theme$1.SUCCESS : activeInput === index ? theme$1.BORDER_INVERTED : theme$1.BORDER_PRIMARY,
|
|
4210
4209
|
...textInputStyle
|
|
4211
4210
|
},
|
|
4212
4211
|
onFocus: () => setActiveInput(index),
|