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.d.ts
CHANGED
|
@@ -1097,6 +1097,11 @@ declare const DHRE_COLORS_TEXT: {
|
|
|
1097
1097
|
DH_TEXTDISABLED: string;
|
|
1098
1098
|
DH_LIGHTGREEN: string;
|
|
1099
1099
|
DH_SURFACE_SECONDARY: string;
|
|
1100
|
+
DH_HONEY_DEW: string;
|
|
1101
|
+
DH_DEEP_TEAL: string;
|
|
1102
|
+
DH_DARK_TEAL: string;
|
|
1103
|
+
DH_BRIGHT_RED: string;
|
|
1104
|
+
DH_TRANPARENT_WHITE: string;
|
|
1100
1105
|
};
|
|
1101
1106
|
|
|
1102
1107
|
interface AppointmentCardProps {
|
package/lib/index.js
CHANGED
|
@@ -603,7 +603,12 @@ const DHRE_COLORS_TEXT = {
|
|
|
603
603
|
DH_TEXTLIGHTEST: "#A7A7A7",
|
|
604
604
|
DH_TEXTDISABLED: "#CCCCCC",
|
|
605
605
|
DH_LIGHTGREEN: "#00B578",
|
|
606
|
-
DH_SURFACE_SECONDARY: "#212121"
|
|
606
|
+
DH_SURFACE_SECONDARY: "#212121",
|
|
607
|
+
DH_HONEY_DEW: "#E6FFF1",
|
|
608
|
+
DH_DEEP_TEAL: "#103932",
|
|
609
|
+
DH_DARK_TEAL: "#0F332D",
|
|
610
|
+
DH_BRIGHT_RED: "#D92D2733",
|
|
611
|
+
DH_TRANPARENT_WHITE: "#FFFFFF00"
|
|
607
612
|
};
|
|
608
613
|
|
|
609
614
|
const styles$A = reactNative.StyleSheet.create({
|
|
@@ -4219,12 +4224,6 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
4219
4224
|
onComplete?.(otp);
|
|
4220
4225
|
}
|
|
4221
4226
|
}, [otp]);
|
|
4222
|
-
console.log("errorMessage ==>", errorMessage);
|
|
4223
|
-
console.log("isInValidOtp ==>", isInValidOtp);
|
|
4224
|
-
console.log(
|
|
4225
|
-
"errorMessage || isInValidOtp ==>",
|
|
4226
|
-
errorMessage || isInValidOtp
|
|
4227
|
-
);
|
|
4228
4227
|
return /* @__PURE__ */ React__default["default"].createElement(ThemeProvider, null, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: { ...otpContainerStyle }, "data-testid": testId }, /* @__PURE__ */ React__default["default"].createElement(
|
|
4229
4228
|
CustomTypography,
|
|
4230
4229
|
{
|
|
@@ -4243,7 +4242,7 @@ const OTPInput = React__default["default"].forwardRef(
|
|
|
4243
4242
|
style: {
|
|
4244
4243
|
...styles$5.textInputStyle,
|
|
4245
4244
|
color: theme$1.CONTENT_PRIMARY,
|
|
4246
|
-
borderColor: errorMessage || isInValidOtp ? theme$1.ERROR : otp.length === length ? theme$1.SUCCESS : activeInput === index ? theme$1.BORDER_INVERTED : theme$1.BORDER_PRIMARY,
|
|
4245
|
+
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,
|
|
4247
4246
|
...textInputStyle
|
|
4248
4247
|
},
|
|
4249
4248
|
onFocus: () => setActiveInput(index),
|