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 +2 -0
- package/lib/index.js +13 -1
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +13 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3226,8 +3226,10 @@ const CommonTextInput = (props) => {
|
|
|
3226
3226
|
labelColor,
|
|
3227
3227
|
handlePress,
|
|
3228
3228
|
pointerEvents,
|
|
3229
|
-
multiline = false
|
|
3229
|
+
multiline = false,
|
|
3230
3230
|
// Default multiline to false
|
|
3231
|
+
rightIcon,
|
|
3232
|
+
onRightIconPress
|
|
3231
3233
|
} = props;
|
|
3232
3234
|
return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React.createElement(
|
|
3233
3235
|
TextInput$1,
|
|
@@ -3260,6 +3262,16 @@ const CommonTextInput = (props) => {
|
|
|
3260
3262
|
pointerEvents,
|
|
3261
3263
|
multiline,
|
|
3262
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,
|
|
3263
3275
|
...props
|
|
3264
3276
|
}
|
|
3265
3277
|
), errorMessage ? /* @__PURE__ */ React.createElement(
|