gantri-components 2.30.0-beta.8 → 2.30.0-beta.9

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,5 +1,5 @@
1
- import { DropdownMenuProps, DropdownItemBase } from './dropdown-menu.types';
1
+ import { DropdownMenuProps } from './dropdown-menu.types';
2
2
  export declare const DropdownMenu: {
3
- <T extends DropdownItemBase>(props: DropdownMenuProps<T>): JSX.Element;
4
- defaultProps: Partial<DropdownMenuProps<DropdownItemBase>>;
3
+ <T>(props: DropdownMenuProps<T>): JSX.Element;
4
+ defaultProps: Partial<DropdownMenuProps<import("./dropdown-menu.types").DropdownItemBase>>;
5
5
  };
@@ -1,6 +1,5 @@
1
1
  import { SearchFieldProps } from './search-field.types';
2
- import { DropdownItemBase } from '../dropdown-menu/dropdown-menu.types';
3
2
  export declare const SearchField: {
4
- <T extends DropdownItemBase>(props: SearchFieldProps<T>): JSX.Element;
3
+ <T>(props: SearchFieldProps<T>): JSX.Element;
5
4
  defaultProps: Partial<SearchFieldProps<any>>;
6
5
  };
@@ -11,6 +11,7 @@ export interface SearchFieldProps<T = DropdownItemBase> extends Pick<DropdownMen
11
11
  errorMessage?: ErrorMessageType;
12
12
  hideErrors?: boolean;
13
13
  icon?: ReactElement;
14
+ /** Can optionally include `disabled: true` to any index to disable that item. */
14
15
  items?: T[];
15
16
  keyProperty?: (option?: T) => string;
16
17
  labelPosition?: 'top' | 'left';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "2.30.0-beta.8",
3
+ "version": "2.30.0-beta.9",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",