gantri-components 1.95.0 → 1.95.1

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,7 +1,7 @@
1
1
  import { ChangeEvent, CSSProperties, FocusEvent, ReactElement } from 'react';
2
2
  import { DropdownMenuProps } from '../dropdown-menu/dropdown-menu.types';
3
3
  import { ErrorMessageType } from '../text-field';
4
- export interface DropdownProps<T = Record<string, unknown>> extends Pick<DropdownMenuProps<T>, Exclude<keyof DropdownMenuProps<T>, 'items'>> {
4
+ export interface DropdownProps<T = DefaultDropdownRecord> extends Pick<DropdownMenuProps<T>, Exclude<keyof DropdownMenuProps<T>, 'items'>> {
5
5
  borderless?: boolean;
6
6
  className?: string;
7
7
  disabled?: boolean;
@@ -46,5 +46,5 @@ export interface BlurChangeEvent extends Pick<FocusEvent<HTMLDivElement>, Exclud
46
46
  }
47
47
  export declare type DefaultDropdownRecord = {
48
48
  label: string;
49
- value: string;
49
+ value: string | number;
50
50
  };
@@ -1,8 +1,8 @@
1
1
  import { CSSProperties, FocusEvent, ReactElement } from 'react';
2
2
  import { DropdownMenuProps } from '../dropdown-menu/dropdown-menu.types';
3
3
  import { ErrorMessageType } from '../text-field';
4
- import { BlurChangeEvent, DropdownChangeEvent } from '../dropdown';
5
- export interface SearchFieldProps<T = Record<string, unknown>> extends Pick<DropdownMenuProps<T>, Exclude<keyof DropdownMenuProps<T>, 'items'>> {
4
+ import { BlurChangeEvent, DefaultDropdownRecord, DropdownChangeEvent } from '../dropdown';
5
+ export interface SearchFieldProps<T = DefaultDropdownRecord> extends Pick<DropdownMenuProps<T>, Exclude<keyof DropdownMenuProps<T>, 'items'>> {
6
6
  borderless?: boolean;
7
7
  className?: string;
8
8
  disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gantri-components",
3
- "version": "1.95.0",
3
+ "version": "1.95.1",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "umd": "dist/index.umd.js",