@touchtech/baselayer-ui 8.3.22 → 8.3.23
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.
|
@@ -18,6 +18,7 @@ type SelectProps = {
|
|
|
18
18
|
loading?: boolean;
|
|
19
19
|
onChange?: (values: Array<string>) => void;
|
|
20
20
|
onFilter?: (option: OptionType, searchKeyword: string) => boolean;
|
|
21
|
+
showSelectedWithTick?: boolean;
|
|
21
22
|
};
|
|
22
|
-
declare function Select({ className, defaultValue, disabled, multiple, options, placeholder, label, selectAll, showExpandedGroup, scrollMenuIntoView, size, showSelectedAsTags, showSearch, width, loading, onChange, onFilter, }: SelectProps): JSX.Element;
|
|
23
|
+
declare function Select({ className, defaultValue, disabled, multiple, options, placeholder, label, selectAll, showExpandedGroup, scrollMenuIntoView, size, showSelectedAsTags, showSearch, showSelectedWithTick, width, loading, onChange, onFilter, }: SelectProps): JSX.Element;
|
|
23
24
|
export default Select;
|
|
@@ -8,6 +8,7 @@ type Props = {
|
|
|
8
8
|
showExpandedGroup?: boolean;
|
|
9
9
|
options: Array<OptionType | GroupOptionType>;
|
|
10
10
|
onChange?: (values: Array<string>) => void;
|
|
11
|
+
showSelectedWithTick?: boolean;
|
|
11
12
|
};
|
|
12
13
|
type SelectContextState = {
|
|
13
14
|
multiple?: boolean;
|
|
@@ -18,7 +19,8 @@ type SelectContextState = {
|
|
|
18
19
|
searchKeyword: string;
|
|
19
20
|
setSearchKeyword: (value: string) => void;
|
|
20
21
|
setSelectedOptions: (values: OptionType[]) => void;
|
|
22
|
+
showSelectedWithTick?: boolean;
|
|
21
23
|
};
|
|
22
24
|
declare const SelectContext: React.Context<SelectContextState>;
|
|
23
|
-
declare const SelectContextProvider: ({ children, defaultValue, multiple, selectAll, showExpandedGroup, options, onChange, }: Props) => JSX.Element;
|
|
25
|
+
declare const SelectContextProvider: ({ children, defaultValue, multiple, selectAll, showExpandedGroup, options, onChange, showSelectedWithTick, }: Props) => JSX.Element;
|
|
24
26
|
export { SelectContext, SelectContextProvider };
|