dhre-ui-kit 0.0.220 → 0.0.222

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
@@ -3421,7 +3421,8 @@ const CustomDropdown = (props) => {
3421
3421
  menuContainerStyle,
3422
3422
  activeColor,
3423
3423
  keepPlaceholderOnFocus = false,
3424
- selectedItemTextStyle
3424
+ selectedItemTextStyle,
3425
+ disable
3425
3426
  } = props;
3426
3427
  const [value, setValue] = useState(defaultValue);
3427
3428
  const [isFocus, setIsFocus] = useState(false);
@@ -3472,7 +3473,9 @@ const CustomDropdown = (props) => {
3472
3473
  style: [
3473
3474
  styles$8.dropdown,
3474
3475
  dropdownStyle,
3475
- isFocus && (dropdownFocusStyle ?? { borderColor: theme.BORDER_INVERTED["light"] })
3476
+ isFocus && (dropdownFocusStyle ?? {
3477
+ borderColor: theme.BORDER_INVERTED["light"]
3478
+ })
3476
3479
  ],
3477
3480
  placeholderStyle: [styles$8.placeholderStyle, placeholderStyle],
3478
3481
  selectedTextStyle: [styles$8.selectedTextStyle, selectedTextStyle],
@@ -3480,7 +3483,7 @@ const CustomDropdown = (props) => {
3480
3483
  data: data ?? [],
3481
3484
  labelField,
3482
3485
  valueField,
3483
- placeholder,
3486
+ placeholder: keepPlaceholderOnFocus || !isFocus ? placeholder : "",
3484
3487
  value,
3485
3488
  onFocus: () => setIsFocus(true),
3486
3489
  onBlur: () => setIsFocus(false),
@@ -3491,7 +3494,8 @@ const CustomDropdown = (props) => {
3491
3494
  itemTextStyle,
3492
3495
  containerStyle: menuContainerStyle,
3493
3496
  activeColor,
3494
- itemContainerStyle: [styles$8.itemListStyle, itemContainerStyle]
3497
+ itemContainerStyle: [styles$8.itemListStyle, itemContainerStyle],
3498
+ disable
3495
3499
  }
3496
3500
  ));
3497
3501
  };