gantri-components 2.30.0-beta.3 → 2.30.0-beta.4

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.
@@ -1,3 +1,6 @@
1
- import { FC, PropsWithChildren } from 'react';
2
1
  import { SearchFieldProps } from './search-field.types';
3
- export declare const SearchField: FC<PropsWithChildren<SearchFieldProps<any>>>;
2
+ import { DropdownItemBase } from '../dropdown-menu/dropdown-menu.types';
3
+ export declare const SearchField: {
4
+ <T extends DropdownItemBase>(props: SearchFieldProps<T>): JSX.Element;
5
+ defaultProps: Partial<SearchFieldProps<any>>;
6
+ };
@@ -1,9 +1,9 @@
1
1
  import { CSSProperties, FocusEvent, ReactElement } from 'react';
2
2
  import { Property } from 'csstype';
3
- import { DropdownMenuProps } from '../dropdown-menu/dropdown-menu.types';
3
+ import { DropdownItemBase, DropdownMenuProps } from '../dropdown-menu/dropdown-menu.types';
4
4
  import { ErrorMessageType } from '../text-field';
5
5
  import { BlurChangeEvent, DropdownChangeEvent } from '../dropdown';
6
- export interface SearchFieldProps<T> extends Pick<DropdownMenuProps<T>, Exclude<keyof DropdownMenuProps<T>, 'items'>> {
6
+ export interface SearchFieldProps<T = DropdownItemBase> extends Pick<DropdownMenuProps<T>, Exclude<keyof DropdownMenuProps<T>, 'items'>> {
7
7
  borderless?: boolean;
8
8
  className?: string;
9
9
  disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.30.0-beta.3",
3
+ "version": "2.30.0-beta.4",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",