dhre-ui-kit 0.0.297 → 0.0.299

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
@@ -625,6 +625,7 @@ interface CommonTextInputProps extends TextInputProps$1 {
625
625
  rightIcon?: () => React$1.ReactElement;
626
626
  onRightIconPress?: () => void;
627
627
  onlyErrorBorderLabel?: boolean;
628
+ disableBorder?: boolean;
628
629
  }
629
630
  declare const CommonTextInput: (props: CommonTextInputProps) => React$1.JSX.Element;
630
631
 
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,