dhre-ui-kit 0.0.242 → 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.mjs CHANGED
@@ -656,7 +656,8 @@ const BottomDrawer = ({
656
656
  titleStyle,
657
657
  titleVariant = "B2_REGULAR",
658
658
  showHeader = true,
659
- blurType = "light"
659
+ blurType = "light",
660
+ showSeparator = true
660
661
  }) => {
661
662
  const onSwipDown = (event) => {
662
663
  const { translationY } = event.nativeEvent;
@@ -685,7 +686,7 @@ const BottomDrawer = ({
685
686
  blurType,
686
687
  blurAmount
687
688
  }
688
- ) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
689
+ ) : null, /* @__PURE__ */ React.createElement(View, { style: [styles$z.modalContainer, modalContainerStyle] }, showHeader && /* @__PURE__ */ React.createElement(React.Fragment, null, showSeparator && /* @__PURE__ */ React.createElement(View, { style: styles$z.separator }), /* @__PURE__ */ React.createElement(View, { style: styles$z.headerContainer }, showLeftIcon && leftIcon ? React.cloneElement(leftIcon, {
689
690
  width: moderateScale(24),
690
691
  height: moderateScale(24),
691
692
  style: styles$z.leftIconStyle,
@@ -3402,7 +3403,8 @@ const CommonTextInput = (props) => {
3402
3403
  multiline = false,
3403
3404
  // Default multiline to false
3404
3405
  rightIcon,
3405
- onRightIconPress
3406
+ onRightIconPress,
3407
+ onlyErrorBorderLabel
3406
3408
  } = props;
3407
3409
  return /* @__PURE__ */ React.createElement(Pressable, { onPress: handlePress, style: styles$9.container }, /* @__PURE__ */ React.createElement(
3408
3410
  TextInput$1,
@@ -3414,7 +3416,7 @@ const CommonTextInput = (props) => {
3414
3416
  autoCorrect: false,
3415
3417
  outlineStyle: {
3416
3418
  ...styles$9.outlineStyle,
3417
- 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
3418
3420
  },
3419
3421
  label,
3420
3422
  value,
@@ -3424,12 +3426,12 @@ const CommonTextInput = (props) => {
3424
3426
  theme: {
3425
3427
  colors: {
3426
3428
  onSurfaceVariant: value?.length ? activeBorderColor : inactiveBorderColor,
3427
- 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,
3428
3430
  primary: labelColor ? errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : labelColor : DHRE_COLORS_TEXT.DH_BLACK
3429
3431
  }
3430
3432
  },
3431
3433
  style: [
3432
- errorMessage ? styles$9.errorInput : styles$9.input,
3434
+ errorMessage || onlyErrorBorderLabel ? styles$9.errorInput : styles$9.input,
3433
3435
  inputStyle,
3434
3436
  multiline && styles$9.multilineInput
3435
3437
  // Apply multiline style if true
@@ -3439,7 +3441,7 @@ const CommonTextInput = (props) => {
3439
3441
  placeholder: placeholderText,
3440
3442
  editable,
3441
3443
  pointerEvents,
3442
- error: errorMessage?.length ? true : false,
3444
+ error: errorMessage?.length || onlyErrorBorderLabel ? true : false,
3443
3445
  multiline,
3444
3446
  numberOfLines: multiline ? 4 : 1,
3445
3447
  right: rightIcon ? /* @__PURE__ */ React.createElement(