dhre-ui-kit 0.0.296 → 0.0.298

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 CHANGED
@@ -621,6 +621,7 @@ interface CommonTextInputProps extends TextInputProps$1 {
621
621
  rightIcon?: () => React$1.ReactElement;
622
622
  onRightIconPress?: () => void;
623
623
  onlyErrorBorderLabel?: boolean;
624
+ disableBorder?: boolean;
624
625
  }
625
626
  declare const CommonTextInput: (props: CommonTextInputProps) => React$1.JSX.Element;
626
627
 
package/lib/index.js CHANGED
@@ -3440,7 +3440,8 @@ const CommonTextInput = (props) => {
3440
3440
  // Default multiline to false
3441
3441
  rightIcon,
3442
3442
  onRightIconPress,
3443
- onlyErrorBorderLabel
3443
+ onlyErrorBorderLabel,
3444
+ disableBorder = false
3444
3445
  } = props;
3445
3446
  return /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handlePress, style: styles$9.container }, /* @__PURE__ */ React__default["default"].createElement(
3446
3447
  reactNativePaper.TextInput,
@@ -3452,7 +3453,7 @@ const CommonTextInput = (props) => {
3452
3453
  autoCorrect: false,
3453
3454
  outlineStyle: {
3454
3455
  ...styles$9.outlineStyle,
3455
- borderColor: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : value?.length ? activeBorderColor : inactiveBorderColor
3456
+ borderColor: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : value?.length && disableBorder ? theme.BORDER_SECONDRY["light"] : value?.length ? activeBorderColor : inactiveBorderColor
3456
3457
  },
3457
3458
  label,
3458
3459
  value,