dhre-ui-kit 0.0.243 → 0.0.244
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 +6 -5
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +6 -5
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
package/lib/index.mjs
CHANGED
|
@@ -3403,7 +3403,8 @@ const CommonTextInput = (props) => {
|
|
|
3403
3403
|
multiline = false,
|
|
3404
3404
|
// Default multiline to false
|
|
3405
3405
|
rightIcon,
|
|
3406
|
-
onRightIconPress
|
|
3406
|
+
onRightIconPress,
|
|
3407
|
+
onlyErrorBorderLabel
|
|
3407
3408
|
} = props;
|
|
3408
3409
|
return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$9.container }, /* @__PURE__ */ React.createElement(
|
|
3409
3410
|
TextInput$1,
|
|
@@ -3415,7 +3416,7 @@ const CommonTextInput = (props) => {
|
|
|
3415
3416
|
autoCorrect: false,
|
|
3416
3417
|
outlineStyle: {
|
|
3417
3418
|
...styles$9.outlineStyle,
|
|
3418
|
-
borderColor: errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : value?.length ? activeBorderColor : inactiveBorderColor
|
|
3419
|
+
borderColor: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : value?.length ? activeBorderColor : inactiveBorderColor
|
|
3419
3420
|
},
|
|
3420
3421
|
label,
|
|
3421
3422
|
value,
|
|
@@ -3425,12 +3426,12 @@ const CommonTextInput = (props) => {
|
|
|
3425
3426
|
theme: {
|
|
3426
3427
|
colors: {
|
|
3427
3428
|
onSurfaceVariant: value?.length ? activeBorderColor : inactiveBorderColor,
|
|
3428
|
-
error: errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : DHRE_COLORS_TEXT.DH_BLACK,
|
|
3429
|
+
error: errorMessage?.length || onlyErrorBorderLabel ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : DHRE_COLORS_TEXT.DH_BLACK,
|
|
3429
3430
|
primary: labelColor ? errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : labelColor : DHRE_COLORS_TEXT.DH_BLACK
|
|
3430
3431
|
}
|
|
3431
3432
|
},
|
|
3432
3433
|
style: [
|
|
3433
|
-
errorMessage ? styles$9.errorInput : styles$9.input,
|
|
3434
|
+
errorMessage || onlyErrorBorderLabel ? styles$9.errorInput : styles$9.input,
|
|
3434
3435
|
inputStyle,
|
|
3435
3436
|
multiline && styles$9.multilineInput
|
|
3436
3437
|
// Apply multiline style if true
|
|
@@ -3440,7 +3441,7 @@ const CommonTextInput = (props) => {
|
|
|
3440
3441
|
placeholder: placeholderText,
|
|
3441
3442
|
editable,
|
|
3442
3443
|
pointerEvents,
|
|
3443
|
-
error: errorMessage?.length ? true : false,
|
|
3444
|
+
error: errorMessage?.length || onlyErrorBorderLabel ? true : false,
|
|
3444
3445
|
multiline,
|
|
3445
3446
|
numberOfLines: multiline ? 4 : 1,
|
|
3446
3447
|
right: rightIcon ? /* @__PURE__ */ React.createElement(
|