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.js CHANGED
@@ -2016,21 +2016,33 @@ const styles$k = reactNative.StyleSheet.create({
2016
2016
  borderRadius: moderateScale(8),
2017
2017
  overflow: "hidden"
2018
2018
  },
2019
- toastContainer: { flex: 1, justifyContent: "center" },
2019
+ toastContainer: {
2020
+ flex: 1,
2021
+ justifyContent: "center"
2022
+ },
2020
2023
  innerContainer: {
2021
2024
  flexDirection: "row",
2022
2025
  alignItems: "center",
2026
+ // Center items vertically
2027
+ justifyContent: "center",
2028
+ // Center items horizontally
2023
2029
  paddingHorizontal: horizontalScale(12)
2024
2030
  },
2025
2031
  icon: {
2026
- marginRight: 9
2032
+ marginRight: horizontalScale(8)
2033
+ // Adjust spacing from the text
2027
2034
  },
2028
2035
  messageText: {
2029
2036
  flex: 1,
2030
- color: "#fff"
2037
+ // Ensures the message takes available space
2038
+ color: "#fff",
2039
+ textAlign: "center",
2040
+ // Centers the text
2041
+ marginHorizontal: horizontalScale(8)
2031
2042
  },
2032
2043
  button: {
2033
- marginLeft: 9
2044
+ marginLeft: horizontalScale(8)
2045
+ // Adjust spacing between text and button
2034
2046
  },
2035
2047
  buttonText: {
2036
2048
  textDecorationLine: "underline",
@@ -2090,11 +2102,11 @@ const Toast = React__default["default"].forwardRef(({ sucessIcon, errorIcon }, r
2090
2102
  style: [
2091
2103
  styles$k.container,
2092
2104
  { bottom },
2093
- { backgroundColor: isSuccess ? "#04743F" : "#DB3056" }
2105
+ { backgroundColor: isSuccess ? "#00B578" : "#EB0542" }
2094
2106
  ],
2095
2107
  testID: "TOAST"
2096
2108
  },
2097
- /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.toastContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.innerContainer }, isSuccess ? sucessIcon : errorIcon, /* @__PURE__ */ React__default["default"].createElement(
2109
+ /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.toastContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles$k.innerContainer }, /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: hideToast }, isSuccess ? sucessIcon : errorIcon), /* @__PURE__ */ React__default["default"].createElement(
2098
2110
  CustomTypography,
2099
2111
  {
2100
2112
  variant: "L2_REGULAR",
@@ -3297,6 +3309,7 @@ const CommonTextInput = (props) => {
3297
3309
  keyboardType,
3298
3310
  theme: {
3299
3311
  colors: {
3312
+ onSurfaceVariant: value?.length ? activeBorderColor : inactiveBorderColor,
3300
3313
  error: errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : DHRE_COLORS_TEXT.DH_BLACK,
3301
3314
  primary: labelColor ? errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : labelColor : DHRE_COLORS_TEXT.DH_BLACK
3302
3315
  }