dhre-ui-kit 0.0.146 → 0.0.148
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 +1 -0
- package/lib/index.js +18 -7
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +18 -7
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3048,7 +3048,7 @@ const FeedbackForm = ({
|
|
|
3048
3048
|
}) => {
|
|
3049
3049
|
const maxChars = 200;
|
|
3050
3050
|
const { theme } = useTheme();
|
|
3051
|
-
const styles = createStyles$1(
|
|
3051
|
+
const styles = createStyles$1(theme);
|
|
3052
3052
|
return /* @__PURE__ */ React.createElement(View, { style: styles.container }, /* @__PURE__ */ React.createElement(
|
|
3053
3053
|
CustomText$1,
|
|
3054
3054
|
{
|
|
@@ -3232,7 +3232,9 @@ const CommonTextInput = ({
|
|
|
3232
3232
|
textColor = theme.CONTENT_PRIMARY["light"],
|
|
3233
3233
|
labelColor,
|
|
3234
3234
|
handlePress,
|
|
3235
|
-
pointerEvents
|
|
3235
|
+
pointerEvents,
|
|
3236
|
+
multiline = false
|
|
3237
|
+
// Default multiline to false
|
|
3236
3238
|
}) => {
|
|
3237
3239
|
return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React.createElement(
|
|
3238
3240
|
TextInput$1,
|
|
@@ -3252,12 +3254,19 @@ const CommonTextInput = ({
|
|
|
3252
3254
|
primary: labelColor ? labelColor : DHRE_COLORS_TEXT.DH_BLACK
|
|
3253
3255
|
}
|
|
3254
3256
|
},
|
|
3255
|
-
style: [
|
|
3257
|
+
style: [
|
|
3258
|
+
errorMessage ? styles$8.errorInput : styles$8.input,
|
|
3259
|
+
inputStyle,
|
|
3260
|
+
multiline && styles$8.multilineInput
|
|
3261
|
+
// Apply multiline style if true
|
|
3262
|
+
],
|
|
3256
3263
|
maxLength,
|
|
3257
3264
|
textColor,
|
|
3258
3265
|
placeholder: placeholderText,
|
|
3259
3266
|
editable,
|
|
3260
|
-
pointerEvents
|
|
3267
|
+
pointerEvents,
|
|
3268
|
+
multiline,
|
|
3269
|
+
numberOfLines: multiline ? 4 : 1
|
|
3261
3270
|
}
|
|
3262
3271
|
), errorMessage ? /* @__PURE__ */ React.createElement(
|
|
3263
3272
|
CustomTypography,
|
|
@@ -3275,9 +3284,6 @@ const styles$8 = StyleSheet.create({
|
|
|
3275
3284
|
container: {
|
|
3276
3285
|
justifyContent: "center"
|
|
3277
3286
|
},
|
|
3278
|
-
touchable: {
|
|
3279
|
-
width: "100%"
|
|
3280
|
-
},
|
|
3281
3287
|
input: {
|
|
3282
3288
|
marginVertical: verticalScale(8),
|
|
3283
3289
|
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE,
|
|
@@ -3292,6 +3298,11 @@ const styles$8 = StyleSheet.create({
|
|
|
3292
3298
|
height: verticalScale(48),
|
|
3293
3299
|
justifyContent: "center"
|
|
3294
3300
|
},
|
|
3301
|
+
multilineInput: {
|
|
3302
|
+
minHeight: verticalScale(100),
|
|
3303
|
+
// Increased height for multiline
|
|
3304
|
+
paddingVertical: verticalScale(8)
|
|
3305
|
+
},
|
|
3295
3306
|
outlineStyle: {
|
|
3296
3307
|
borderWidth: 1,
|
|
3297
3308
|
height: verticalScale(48),
|