@inntechcorp/it-design 2.0.127 → 2.0.129

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,14 +1,14 @@
1
1
  import { ChildrenProps } from 'types/ChildrenProps';
2
2
  import { SelectValue } from 'types/SelectProps';
3
3
  type MenuProps = {
4
- value: SelectValue;
4
+ value?: SelectValue;
5
5
  position: string;
6
6
  direction: string;
7
- mode: string;
7
+ multi: boolean;
8
8
  children: ChildrenProps;
9
9
  onChange: (value: string | string[] | number | number[], label?: string) => void;
10
10
  onClose: () => void;
11
11
  isOpen: boolean;
12
12
  };
13
- export default function Menu({ value, position, direction, mode, isOpen, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function Menu({ position, direction, multi, isOpen, value, children, onChange, onClose }: MenuProps): import("react/jsx-runtime").JSX.Element;
14
14
  export {};
@@ -1,16 +1,16 @@
1
1
  /// <reference types="react" />
2
2
  import { ChildrenProps } from 'types/ChildrenProps';
3
+ import { SelectValue } from 'types/SelectProps';
3
4
  type OptionsRefProps = {
4
- getValue: () => string;
5
+ getValue: () => SelectValue;
5
6
  };
6
7
  type OptionsProps = {
7
8
  icon?: string;
8
9
  image?: string;
9
- value?: string;
10
- mode?: string;
10
+ value?: SelectValue;
11
+ multi?: boolean;
11
12
  checked?: false;
12
- autoScroll?: false;
13
- onChange?: (value: string, checked: boolean, children: ChildrenProps) => null;
13
+ onChange?: (value: SelectValue, checked: boolean, children: ChildrenProps) => null;
14
14
  children?: ChildrenProps;
15
15
  };
16
16
  declare const _default: import("react").MemoExoticComponent<import("react").ForwardRefExoticComponent<OptionsProps & import("react").RefAttributes<OptionsRefProps>>>;
@@ -19,4 +19,5 @@ export declare const Solid: Story;
19
19
  export declare const Filled: Story;
20
20
  export declare const Outline: Story;
21
21
  export declare const Custom: Story;
22
+ export declare const Multiple: Story;
22
23
  export declare const WithIcon: Story;
@@ -8,7 +8,7 @@ export type SelectProps = {
8
8
  label?: string;
9
9
  position?: SelectPosition;
10
10
  direction?: SelectDirection;
11
- mode?: string;
11
+ multi?: boolean;
12
12
  size?: ITDSize;
13
13
  variant?: SelectVariant;
14
14
  className?: string;
@@ -27,7 +27,7 @@ export type SelectProps = {
27
27
  export type SelectToggleProps = {
28
28
  id?: string;
29
29
  label: string;
30
- value: SelectValue;
30
+ value?: SelectValue;
31
31
  errorMessage: string;
32
32
  isOpen: boolean;
33
33
  showSearch: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inntechcorp/it-design",
3
- "version": "2.0.127",
3
+ "version": "2.0.129",
4
4
  "description": "All in one Design library for web applications.",
5
5
  "author": "Inn.Tech",
6
6
  "license": "ISC",