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.d.ts +5 -5
- package/lib/index.js +35 -21
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +35 -21
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3208,26 +3208,29 @@ const styles$9 = StyleSheet.create({
|
|
|
3208
3208
|
}
|
|
3209
3209
|
});
|
|
3210
3210
|
|
|
3211
|
-
const CommonTextInput = ({
|
|
3212
|
-
|
|
3213
|
-
|
|
3214
|
-
|
|
3215
|
-
|
|
3216
|
-
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
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,
|