dhre-ui-kit 2.0.21 → 2.0.22
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/components/dropDown/DropDown.d.ts +2 -0
- package/lib/index.js +10 -2
- package/lib/index.js.map +1 -1
- package/lib/index.mjs +10 -2
- package/lib/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -20,6 +20,8 @@ interface CustomDropdownProps {
|
|
|
20
20
|
iconColor?: string;
|
|
21
21
|
itemTextStyle?: TextStyle;
|
|
22
22
|
onValueChange?: (value: string) => void;
|
|
23
|
+
onFocus?: () => void;
|
|
24
|
+
onBlur?: () => void;
|
|
23
25
|
itemContainerStyle?: ViewStyle;
|
|
24
26
|
keepPlaceholderOnFocus?: boolean;
|
|
25
27
|
selectedItemTextStyle?: TextStyle;
|
package/lib/index.js
CHANGED
|
@@ -9861,6 +9861,8 @@ const CustomDropdown = (props) => {
|
|
|
9861
9861
|
iconColor,
|
|
9862
9862
|
itemTextStyle,
|
|
9863
9863
|
onValueChange,
|
|
9864
|
+
onFocus,
|
|
9865
|
+
onBlur,
|
|
9864
9866
|
itemContainerStyle,
|
|
9865
9867
|
menuContainerStyle,
|
|
9866
9868
|
activeColor,
|
|
@@ -9933,8 +9935,14 @@ const CustomDropdown = (props) => {
|
|
|
9933
9935
|
valueField,
|
|
9934
9936
|
placeholder: keepPlaceholderOnFocus || !isFocus ? placeholder : "",
|
|
9935
9937
|
value,
|
|
9936
|
-
onFocus: () =>
|
|
9937
|
-
|
|
9938
|
+
onFocus: () => {
|
|
9939
|
+
setIsFocus(true);
|
|
9940
|
+
onFocus?.();
|
|
9941
|
+
},
|
|
9942
|
+
onBlur: () => {
|
|
9943
|
+
setIsFocus(false);
|
|
9944
|
+
onBlur?.();
|
|
9945
|
+
},
|
|
9938
9946
|
onChange: handleValueChange,
|
|
9939
9947
|
iconColor,
|
|
9940
9948
|
dropdownPosition: "bottom",
|