gantri-components 1.95.3 → 1.96.0
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/dist/components/dropdown/dropdown.presets.d.ts +1 -1
- package/dist/components/search-field/search-field.presets.d.ts +1 -1
- package/dist/components/search-field/search-field.types.d.ts +6 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DropdownProps } from './dropdown.types';
|
|
2
|
-
export declare const DropdownPresets: Partial<DropdownProps
|
|
2
|
+
export declare const DropdownPresets: Partial<DropdownProps<any>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SearchFieldProps } from './search-field.types';
|
|
2
|
-
export declare const SearchFieldPresets: Partial<SearchFieldProps
|
|
2
|
+
export declare const SearchFieldPresets: Partial<SearchFieldProps<any>>;
|
|
@@ -27,6 +27,12 @@ export interface SearchFieldProps<T> extends Pick<DropdownMenuProps<T>, Exclude<
|
|
|
27
27
|
};
|
|
28
28
|
renderPlaceholder?: (option?: T) => JSX.Element;
|
|
29
29
|
resetSelectionOnDisabled?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* If internal, the component will search over the provided list of items,
|
|
32
|
+
* If external, the onTextChange event is emitted, so an external search can be executed
|
|
33
|
+
* the new items must be provided after.
|
|
34
|
+
* */
|
|
35
|
+
searchMode?: 'internal' | 'external';
|
|
30
36
|
style?: CSSProperties;
|
|
31
37
|
variant?: 'line' | 'filled';
|
|
32
38
|
}
|