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.d.ts
CHANGED
|
@@ -600,6 +600,7 @@ interface CommonTextInputProps {
|
|
|
600
600
|
labelColor?: string;
|
|
601
601
|
pointerEvents?: 'box-none' | 'none' | 'box-only' | 'auto' | undefined;
|
|
602
602
|
handlePress?: () => void;
|
|
603
|
+
multiline?: boolean;
|
|
603
604
|
}
|
|
604
605
|
declare const CommonTextInput: React$1.FC<CommonTextInputProps>;
|
|
605
606
|
|
package/lib/index.js
CHANGED
|
@@ -3081,7 +3081,7 @@ const FeedbackForm = ({
|
|
|
3081
3081
|
}) => {
|
|
3082
3082
|
const maxChars = 200;
|
|
3083
3083
|
const { theme } = useTheme();
|
|
3084
|
-
const styles = createStyles$1(
|
|
3084
|
+
const styles = createStyles$1(theme);
|
|
3085
3085
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: styles.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
3086
3086
|
CustomText$1,
|
|
3087
3087
|
{
|
|
@@ -3265,7 +3265,9 @@ const CommonTextInput = ({
|
|
|
3265
3265
|
textColor = theme.CONTENT_PRIMARY["light"],
|
|
3266
3266
|
labelColor,
|
|
3267
3267
|
handlePress,
|
|
3268
|
-
pointerEvents
|
|
3268
|
+
pointerEvents,
|
|
3269
|
+
multiline = false
|
|
3270
|
+
// Default multiline to false
|
|
3269
3271
|
}) => {
|
|
3270
3272
|
return /* @__PURE__ */ React__default["default"].createElement(reactNative.Pressable, { onPress: handlePress, style: styles$8.container }, /* @__PURE__ */ React__default["default"].createElement(
|
|
3271
3273
|
reactNativePaper.TextInput,
|
|
@@ -3285,12 +3287,19 @@ const CommonTextInput = ({
|
|
|
3285
3287
|
primary: labelColor ? labelColor : DHRE_COLORS_TEXT.DH_BLACK
|
|
3286
3288
|
}
|
|
3287
3289
|
},
|
|
3288
|
-
style: [
|
|
3290
|
+
style: [
|
|
3291
|
+
errorMessage ? styles$8.errorInput : styles$8.input,
|
|
3292
|
+
inputStyle,
|
|
3293
|
+
multiline && styles$8.multilineInput
|
|
3294
|
+
// Apply multiline style if true
|
|
3295
|
+
],
|
|
3289
3296
|
maxLength,
|
|
3290
3297
|
textColor,
|
|
3291
3298
|
placeholder: placeholderText,
|
|
3292
3299
|
editable,
|
|
3293
|
-
pointerEvents
|
|
3300
|
+
pointerEvents,
|
|
3301
|
+
multiline,
|
|
3302
|
+
numberOfLines: multiline ? 4 : 1
|
|
3294
3303
|
}
|
|
3295
3304
|
), errorMessage ? /* @__PURE__ */ React__default["default"].createElement(
|
|
3296
3305
|
CustomTypography,
|
|
@@ -3308,9 +3317,6 @@ const styles$8 = reactNative.StyleSheet.create({
|
|
|
3308
3317
|
container: {
|
|
3309
3318
|
justifyContent: "center"
|
|
3310
3319
|
},
|
|
3311
|
-
touchable: {
|
|
3312
|
-
width: "100%"
|
|
3313
|
-
},
|
|
3314
3320
|
input: {
|
|
3315
3321
|
marginVertical: verticalScale(8),
|
|
3316
3322
|
backgroundColor: DHRE_COLORS_TEXT.DH_WHITE,
|
|
@@ -3325,6 +3331,11 @@ const styles$8 = reactNative.StyleSheet.create({
|
|
|
3325
3331
|
height: verticalScale(48),
|
|
3326
3332
|
justifyContent: "center"
|
|
3327
3333
|
},
|
|
3334
|
+
multilineInput: {
|
|
3335
|
+
minHeight: verticalScale(100),
|
|
3336
|
+
// Increased height for multiline
|
|
3337
|
+
paddingVertical: verticalScale(8)
|
|
3338
|
+
},
|
|
3328
3339
|
outlineStyle: {
|
|
3329
3340
|
borderWidth: 1,
|
|
3330
3341
|
height: verticalScale(48),
|