dhre-ui-kit 0.0.183 → 0.0.185

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
@@ -1983,21 +1983,33 @@ const styles$k = StyleSheet.create({
1983
1983
  borderRadius: moderateScale(8),
1984
1984
  overflow: "hidden"
1985
1985
  },
1986
- toastContainer: { flex: 1, justifyContent: "center" },
1986
+ toastContainer: {
1987
+ flex: 1,
1988
+ justifyContent: "center"
1989
+ },
1987
1990
  innerContainer: {
1988
1991
  flexDirection: "row",
1989
1992
  alignItems: "center",
1993
+ // Center items vertically
1994
+ justifyContent: "center",
1995
+ // Center items horizontally
1990
1996
  paddingHorizontal: horizontalScale(12)
1991
1997
  },
1992
1998
  icon: {
1993
- marginRight: 9
1999
+ marginRight: horizontalScale(8)
2000
+ // Adjust spacing from the text
1994
2001
  },
1995
2002
  messageText: {
1996
2003
  flex: 1,
1997
- color: "#fff"
2004
+ // Ensures the message takes available space
2005
+ color: "#fff",
2006
+ textAlign: "center",
2007
+ // Centers the text
2008
+ marginHorizontal: horizontalScale(8)
1998
2009
  },
1999
2010
  button: {
2000
- marginLeft: 9
2011
+ marginLeft: horizontalScale(8)
2012
+ // Adjust spacing between text and button
2001
2013
  },
2002
2014
  buttonText: {
2003
2015
  textDecorationLine: "underline",
@@ -2057,11 +2069,11 @@ const Toast = React.forwardRef(({ sucessIcon, errorIcon }, ref) => {
2057
2069
  style: [
2058
2070
  styles$k.container,
2059
2071
  { bottom },
2060
- { backgroundColor: isSuccess ? "#04743F" : "#DB3056" }
2072
+ { backgroundColor: isSuccess ? "#00B578" : "#EB0542" }
2061
2073
  ],
2062
2074
  testID: "TOAST"
2063
2075
  },
2064
- /* @__PURE__ */ React.createElement(View, { style: styles$k.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$k.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React.createElement(
2076
+ /* @__PURE__ */ React.createElement(View, { style: styles$k.toastContainer }, /* @__PURE__ */ React.createElement(View, { style: styles$k.innerContainer }, /* @__PURE__ */ React.createElement(Pressable, { onPress: hideToast }, isSuccess ? sucessIcon : errorIcon), /* @__PURE__ */ React.createElement(
2065
2077
  CustomTypography,
2066
2078
  {
2067
2079
  variant: "L2_REGULAR",
@@ -3264,6 +3276,7 @@ const CommonTextInput = (props) => {
3264
3276
  keyboardType,
3265
3277
  theme: {
3266
3278
  colors: {
3279
+ onSurfaceVariant: value?.length ? activeBorderColor : inactiveBorderColor,
3267
3280
  error: errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : DHRE_COLORS_TEXT.DH_BLACK,
3268
3281
  primary: labelColor ? errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : labelColor : DHRE_COLORS_TEXT.DH_BLACK
3269
3282
  }