@ofgdev/ui-components 1.2.9 → 1.2.11

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.
@@ -6,6 +6,7 @@ type CheckBoxInputGroupProps = {
6
6
  defaultValue?: string | string[];
7
7
  value?: string | string[];
8
8
  onChange?: (value: string | string[]) => void;
9
+ onBlur?: () => void;
9
10
  multiple?: boolean;
10
11
  errorMessage?: string;
11
12
  description?: string;
@@ -6,6 +6,7 @@ type CheckBoxTabGroupProps = {
6
6
  defaultValue?: string | string[];
7
7
  value?: string | string[];
8
8
  onChange?: (value: string | string[]) => void;
9
+ onBlur?: () => void;
9
10
  multiple?: boolean;
10
11
  errorMessage?: string;
11
12
  description?: string;
@@ -3,9 +3,9 @@ interface Option {
3
3
  value: string | number;
4
4
  label: string;
5
5
  }
6
- interface SelectProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, "defaultValue"> {
6
+ interface SelectProps {
7
7
  options: Option[];
8
- value?: string | number;
8
+ value?: (string | number)[];
9
9
  defaultValue?: (string | number)[];
10
10
  placeholder?: string;
11
11
  className?: string;
@@ -18,6 +18,8 @@ interface SelectProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>,
18
18
  required?: boolean;
19
19
  optional?: boolean;
20
20
  readOnly?: boolean;
21
+ onChange?: (value: (string | number)[]) => void;
22
+ onBlur?: () => void;
21
23
  }
22
24
  export declare const MultiSelect: React.ForwardRefExoticComponent<SelectProps & React.RefAttributes<HTMLInputElement>>;
23
25
  export default MultiSelect;