dhre-ui-kit 0.0.157 → 0.0.158

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
@@ -601,6 +601,8 @@ interface CommonTextInputProps extends TextInputProps$1 {
601
601
  labelColor?: string;
602
602
  pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto' | undefined;
603
603
  handlePress?: () => void;
604
+ rightIcon?: () => React$1.ReactElement;
605
+ onRightIconPress?: () => void;
604
606
  }
605
607
  declare const CommonTextInput: (props: CommonTextInputProps) => React$1.JSX.Element;
606
608
 
package/lib/index.js CHANGED
@@ -3259,8 +3259,10 @@ const CommonTextInput = (props) => {
3259
3259
  labelColor,
3260
3260
  handlePress,
3261
3261
  pointerEvents,
3262
- multiline = false
3262
+ multiline = false,
3263
3263
  // Default multiline to false
3264
+ rightIcon,
3265
+ onRightIconPress
3264
3266
  } = props;
3265
3267
  return /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React__default["default"].createElement(
3266
3268
  reactNativePaper.TextInput,
@@ -3293,6 +3295,16 @@ const CommonTextInput = (props) => {
3293
3295
  pointerEvents,
3294
3296
  multiline,
3295
3297
  numberOfLines: multiline ? 4 : 1,
3298
+ right: isSecureTextEntry ? /* @__PURE__ */ React__default["default"].createElement(
3299
+ reactNativePaper.TextInput.Icon,
3300
+ {
3301
+ icon: rightIcon ?? "",
3302
+ size: 24,
3303
+ onPress: () => {
3304
+ onRightIconPress?.();
3305
+ }
3306
+ }
3307
+ ) : null,
3296
3308
  ...props
3297
3309
  }
3298
3310
  ), errorMessage ? /* @__PURE__ */ React__default["default"].createElement(