dhre-component-lib 0.8.30 → 0.8.31

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.
@@ -5,7 +5,7 @@ export type value = {
5
5
  value: string;
6
6
  isNotClickable?: boolean;
7
7
  };
8
- declare function Dropdown(props: {
8
+ export interface DropdownProps {
9
9
  placeholder: string;
10
10
  getSelectedValue: (value: value) => void;
11
11
  dropdownList: value[];
@@ -14,5 +14,10 @@ declare function Dropdown(props: {
14
14
  value?: value;
15
15
  className?: string;
16
16
  onDropdownOpen?: (data: boolean) => void;
17
- }): React.JSX.Element;
17
+ isSearchable?: boolean;
18
+ searchPlaceholder?: string;
19
+ noResultsText?: string;
20
+ searchClearIcon?: React.ReactNode;
21
+ }
22
+ declare function Dropdown(props: DropdownProps): React.JSX.Element;
18
23
  export default Dropdown;
package/dist/index.d.ts CHANGED
@@ -300,7 +300,7 @@ type value = {
300
300
  value: string;
301
301
  isNotClickable?: boolean;
302
302
  };
303
- declare function Dropdown(props: {
303
+ interface DropdownProps {
304
304
  placeholder: string;
305
305
  getSelectedValue: (value: value) => void;
306
306
  dropdownList: value[];
@@ -309,7 +309,12 @@ declare function Dropdown(props: {
309
309
  value?: value;
310
310
  className?: string;
311
311
  onDropdownOpen?: (data: boolean) => void;
312
- }): React.JSX.Element;
312
+ isSearchable?: boolean;
313
+ searchPlaceholder?: string;
314
+ noResultsText?: string;
315
+ searchClearIcon?: React.ReactNode;
316
+ }
317
+ declare function Dropdown(props: DropdownProps): React.JSX.Element;
313
318
 
314
319
  declare function TextArea(props: {
315
320
  value?: string;