dhre-ui-kit 0.0.156 → 0.0.157
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 +3 -5
- package/lib/index.js +23 -21
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +23 -21
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3208,26 +3208,27 @@ 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
|
+
} = props;
|
|
3231
3232
|
return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React.createElement(
|
|
3232
3233
|
TextInput$1,
|
|
3233
3234
|
{
|
|
@@ -3258,7 +3259,8 @@ const CommonTextInput = ({
|
|
|
3258
3259
|
editable,
|
|
3259
3260
|
pointerEvents,
|
|
3260
3261
|
multiline,
|
|
3261
|
-
numberOfLines: multiline ? 4 : 1
|
|
3262
|
+
numberOfLines: multiline ? 4 : 1,
|
|
3263
|
+
...props
|
|
3262
3264
|
}
|
|
3263
3265
|
), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3264
3266
|
CustomTypography,
|