dhre-ui-kit 0.0.180 → 0.0.182

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 CHANGED
@@ -631,6 +631,7 @@ interface CustomDropdownProps {
631
631
  itemContainerStyle?: ViewStyle;
632
632
  menuContainerStyle?: ViewStyle;
633
633
  activeColor?: string;
634
+ renderRightIcon?: (visible?: boolean) => JSX.Element | null | undefined;
634
635
  }
635
636
  declare const CustomDropdown: (props: CustomDropdownProps) => React$1.JSX.Element;
636
637
 
package/lib/index.js CHANGED
@@ -3294,7 +3294,8 @@ const CommonTextInput = (props) => {
3294
3294
  keyboardType,
3295
3295
  theme: {
3296
3296
  colors: {
3297
- primary: labelColor ? labelColor : DHRE_COLORS_TEXT.DH_BLACK
3297
+ error: errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : DHRE_COLORS_TEXT.DH_BLACK,
3298
+ primary: labelColor ? errorMessage?.length ? DHRE_DEFAULT.DH_SEMENTIC_ERROR : labelColor : DHRE_COLORS_TEXT.DH_BLACK
3298
3299
  }
3299
3300
  },
3300
3301
  style: [
@@ -3354,7 +3355,7 @@ const styles$8 = reactNative.StyleSheet.create({
3354
3355
  justifyContent: "center"
3355
3356
  },
3356
3357
  multilineInput: {
3357
- minHeight: verticalScale(100),
3358
+ height: verticalScale(100),
3358
3359
  // Increased height for multiline
3359
3360
  paddingVertical: verticalScale(8)
3360
3361
  },
@@ -3370,6 +3371,7 @@ const styles$8 = reactNative.StyleSheet.create({
3370
3371
 
3371
3372
  const CustomDropdown = (props) => {
3372
3373
  const {
3374
+ data,
3373
3375
  labelField = "label",
3374
3376
  valueField = "value",
3375
3377
  label,
@@ -3419,6 +3421,7 @@ const CustomDropdown = (props) => {
3419
3421
  return /* @__PURE__ */ React__default["default"].createElement(reactNative.View, { style: [styles$7.container, containerStyle] }, label && renderLabel(), /* @__PURE__ */ React__default["default"].createElement(
3420
3422
  reactNativeElementDropdown.Dropdown,
3421
3423
  {
3424
+ ...props,
3422
3425
  style: [
3423
3426
  styles$7.dropdown,
3424
3427
  dropdownStyle,
@@ -3427,6 +3430,7 @@ const CustomDropdown = (props) => {
3427
3430
  placeholderStyle: [styles$7.placeholderStyle, placeholderStyle],
3428
3431
  selectedTextStyle: [styles$7.selectedTextStyle, selectedTextStyle],
3429
3432
  iconStyle: [styles$7.iconStyle, iconStyle],
3433
+ data: data ?? [],
3430
3434
  labelField,
3431
3435
  valueField,
3432
3436
  placeholder: !isFocus ? placeholder : "",
@@ -3439,8 +3443,7 @@ const CustomDropdown = (props) => {
3439
3443
  itemTextStyle,
3440
3444
  containerStyle: menuContainerStyle,
3441
3445
  activeColor,
3442
- itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle],
3443
- ...props
3446
+ itemContainerStyle: [styles$7.itemListStyle, itemContainerStyle]
3444
3447
  }
3445
3448
  ));
3446
3449
  };