@fattureincloud/fic-design-system 0.7.0 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
|
|
1
1
|
import React from 'react';
|
2
|
-
declare const useOutsideClick: (ref: React.MutableRefObject<HTMLDivElement | null>,
|
2
|
+
declare const useOutsideClick: (ref: React.MutableRefObject<HTMLDivElement | null>, showComponent?: boolean | undefined, closeAction?: (() => void) | undefined) => void;
|
3
3
|
export default useOutsideClick;
|
@@ -10,5 +10,5 @@ export interface OptionType extends OptionTypeBase {
|
|
10
10
|
interface Props<O extends OptionType = OptionType, IsMulti extends boolean = false> extends Omit<OptionProps<O, IsMulti>, 'data'> {
|
11
11
|
data: OptionType;
|
12
12
|
}
|
13
|
-
declare const Option: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ innerProps: { onClick }, data: { label, icon }, }: Props<O, IsMulti>) => JSX.Element;
|
13
|
+
declare const Option: <O extends OptionType = OptionType, IsMulti extends boolean = false>({ innerProps: { onClick }, data: { label, icon }, isSelected, }: Props<O, IsMulti>) => JSX.Element;
|
14
14
|
export default Option;
|