dhre-ui-kit 0.0.156 → 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.mjs CHANGED
@@ -3208,26 +3208,29 @@ const styles$9 = StyleSheet.create({
3208
3208
  }
3209
3209
  });
3210
3210
 
3211
- const CommonTextInput = ({
3212
- label,
3213
- value,
3214
- onChangeText,
3215
- isSecureTextEntry = false,
3216
- keyboardType = "default",
3217
- placeholderText,
3218
- activeBorderColor = theme.CONTENT_PRIMARY["light"],
3219
- inactiveBorderColor = theme.BORDER_PRIMARY["light"],
3220
- inputStyle,
3221
- maxLength,
3222
- errorMessage,
3223
- editable = true,
3224
- textColor = theme.CONTENT_PRIMARY["light"],
3225
- labelColor,
3226
- handlePress,
3227
- pointerEvents,
3228
- multiline = false
3229
- // Default multiline to false
3230
- }) => {
3211
+ const CommonTextInput = (props) => {
3212
+ const {
3213
+ label,
3214
+ value,
3215
+ onChangeText,
3216
+ isSecureTextEntry = false,
3217
+ keyboardType = "default",
3218
+ placeholderText,
3219
+ activeBorderColor = theme.CONTENT_PRIMARY["light"],
3220
+ inactiveBorderColor = theme.BORDER_PRIMARY["light"],
3221
+ inputStyle,
3222
+ maxLength,
3223
+ errorMessage,
3224
+ editable = true,
3225
+ textColor = theme.CONTENT_PRIMARY["light"],
3226
+ labelColor,
3227
+ handlePress,
3228
+ pointerEvents,
3229
+ multiline = false,
3230
+ // Default multiline to false
3231
+ rightIcon,
3232
+ onRightIconPress
3233
+ } = props;
3231
3234
  return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React.createElement(
3232
3235
  TextInput$1,
3233
3236
  {
@@ -3258,7 +3261,18 @@ const CommonTextInput = ({
3258
3261
  editable,
3259
3262
  pointerEvents,
3260
3263
  multiline,
3261
- numberOfLines: multiline ? 4 : 1
3264
+ numberOfLines: multiline ? 4 : 1,
3265
+ right: isSecureTextEntry ? /* @__PURE__ */ React.createElement(
3266
+ TextInput$1.Icon,
3267
+ {
3268
+ icon: rightIcon ?? "",
3269
+ size: 24,
3270
+ onPress: () => {
3271
+ onRightIconPress?.();
3272
+ }
3273
+ }
3274
+ ) : null,
3275
+ ...props
3262
3276
  }
3263
3277
  ), errorMessage ? /* @__PURE__ */ React.createElement(
3264
3278
  CustomTypography,