gantri-components 3.0.0-beta.43 → 3.0.0-beta.44

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
1
  import { DropdownMenuProps } from './dropdown-menu.types';
2
2
  export declare const DropdownMenu: {
3
- <T extends Record<string, unknown>>(props: DropdownMenuProps<T>): JSX.Element;
3
+ <T extends Record<any, any>>(props: DropdownMenuProps<T>): JSX.Element;
4
4
  defaultProps: Partial<DropdownMenuProps<Record<string, unknown>>>;
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { MultiSelectListProps } from './multi-select-list.types';
2
2
  export declare const MultiSelectList: {
3
- <Item extends Record<string, unknown>>(props: MultiSelectListProps<Item>): JSX.Element;
3
+ <Item extends Record<any, any>>(props: MultiSelectListProps<Item>): JSX.Element;
4
4
  defaultProps: import("./multi-select-list.types").MultiSelectListDefaultProps<Record<string, unknown>>;
5
5
  };
@@ -1,11 +1,11 @@
1
1
  import { Dispatch, SetStateAction } from 'react';
2
2
  import { FlexProps } from '../flex/flex.types';
3
- export interface MultiSelectListProps<Item extends Record<string, unknown>> extends Partial<MultiSelectListDefaultProps<Item>>, Partial<FlexProps> {
3
+ export interface MultiSelectListProps<Item extends Record<any, any>> extends Partial<MultiSelectListDefaultProps<Item>>, Partial<FlexProps> {
4
4
  items: Item[];
5
5
  labelPropertyTx?: (item?: Item) => string;
6
6
  setItems: Dispatch<SetStateAction<Item[]>>;
7
7
  }
8
- export interface MultiSelectListDefaultProps<Item extends Record<string, unknown>> {
8
+ export interface MultiSelectListDefaultProps<Item extends Record<any, any>> {
9
9
  idProperty: keyof Item;
10
10
  labelProperty: keyof Item | ((item?: Item) => string);
11
11
  }
@@ -1,5 +1,5 @@
1
1
  import { SearchFieldProps } from './search-field.types';
2
2
  export declare const SearchField: {
3
- <T extends Record<string, unknown>>(props: SearchFieldProps<T>): JSX.Element;
3
+ <T extends Record<any, any>>(props: SearchFieldProps<T>): JSX.Element;
4
4
  defaultProps: Partial<SearchFieldProps<any>>;
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "3.0.0-beta.43",
3
+ "version": "3.0.0-beta.44",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",