magneto365.ui 2.48.1 → 2.48.3

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.
@@ -5,13 +5,14 @@ import { ISelectInput } from './children/SelectInput/SelectInput.interface';
5
5
  * @experimental this component is early, so that the interface component and behavrior could change.
6
6
  * @deprecated this function will change soon.
7
7
  */
8
- export declare const Select: (<T>({ children, renderSelect, placeholder, options, value, onChange, inputReadonly }: ISelect<T>) => JSX.Element) & {
8
+ export declare const Select: (<T>({ children, renderSelect, placeholder, options, value, onChange, inputReadonly, className, getLabel }: ISelect<T>) => JSX.Element) & {
9
9
  useContext: <T_1>() => import("./Select.context").ISelectContext<T_1>;
10
- Input: <T_2>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, ...rest }: ISelectInput<T_2>) => JSX.Element;
11
- Clickout: React.FC<{
10
+ Input: <T_2>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, disabled, ...rest }: ISelectInput<T_2>) => JSX.Element;
11
+ Clickout: React.FC<Omit<{
12
12
  clickOut: boolean;
13
13
  setClickOut: (value: boolean) => void;
14
- }>;
14
+ children?: React.ReactNode;
15
+ }, "clickOut" | "setClickOut">>;
15
16
  Drawer: React.FC<import("./children/SelectDrawer").ISelectDrawer>;
16
17
  ListCheck: <T_3>({ className, renderItem, filter }: import("./children/SelectListCheck").ISelect2ListCheck<T_3>) => JSX.Element;
17
18
  };
@@ -1,6 +1,8 @@
1
1
  import React from 'react';
2
2
  import { ISelectInput } from './children/SelectInput/SelectInput.interface';
3
3
  export interface ISelect<T> {
4
+ className?: string;
5
+ getLabel?: ISelectInput<T>['getLabel'];
4
6
  value: IValueSelect<T>[];
5
7
  onChange?: (value: IValueSelect<T>[]) => void;
6
8
  options: IOption<T>[];
@@ -2,6 +2,7 @@ import React from 'react';
2
2
  declare type Props = {
3
3
  clickOut: boolean;
4
4
  setClickOut: (value: boolean) => void;
5
+ children?: React.ReactNode;
5
6
  };
6
- declare const _default: React.FC<Props>;
7
+ declare const _default: React.FC<Omit<Props, "clickOut" | "setClickOut">>;
7
8
  export default _default;
@@ -1,2 +1,2 @@
1
1
  import { ISelectInput } from './SelectInput.interface';
2
- export declare const SelectInput: <T>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, ...rest }: ISelectInput<T>) => JSX.Element;
2
+ export declare const SelectInput: <T>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, disabled, ...rest }: ISelectInput<T>) => JSX.Element;
package/dist/index.d.ts CHANGED
@@ -3886,6 +3886,8 @@ interface ISelectInput<T> extends IInput$1 {
3886
3886
  }
3887
3887
 
3888
3888
  interface ISelect<T> {
3889
+ className?: string;
3890
+ getLabel?: ISelectInput<T>['getLabel'];
3889
3891
  value: IValueSelect<T>[];
3890
3892
  onChange?: (value: IValueSelect<T>[]) => void;
3891
3893
  options: IOption<T>[];
@@ -3949,13 +3951,14 @@ interface ISelectContext<T> {
3949
3951
  * @experimental this component is early, so that the interface component and behavrior could change.
3950
3952
  * @deprecated this function will change soon.
3951
3953
  */
3952
- declare const Select: (<T>({ children, renderSelect, placeholder, options, value, onChange, inputReadonly }: ISelect<T>) => JSX.Element) & {
3954
+ declare const Select: (<T>({ children, renderSelect, placeholder, options, value, onChange, inputReadonly, className, getLabel }: ISelect<T>) => JSX.Element) & {
3953
3955
  useContext: <T_1>() => ISelectContext<T_1>;
3954
- Input: <T_2>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, ...rest }: ISelectInput<T_2>) => JSX.Element;
3955
- Clickout: React$1.FC<{
3956
+ Input: <T_2>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, disabled, ...rest }: ISelectInput<T_2>) => JSX.Element;
3957
+ Clickout: React$1.FC<Omit<{
3956
3958
  clickOut: boolean;
3957
3959
  setClickOut: (value: boolean) => void;
3958
- }>;
3960
+ children?: React$1.ReactNode;
3961
+ }, "clickOut" | "setClickOut">>;
3959
3962
  Drawer: React$1.FC<ISelectDrawer>;
3960
3963
  ListCheck: <T_3>({ className, renderItem, filter }: ISelect2ListCheck<T_3>) => JSX.Element;
3961
3964
  };
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/W170/talenta.magneto365.ui.git"
6
6
  },
7
- "version": "2.48.1",
7
+ "version": "2.48.3",
8
8
  "description": "Magneto365 UI common components",
9
9
  "scripts": {
10
10
  "lint": "eslint ./src --ext .js,.ts,.jsx,.tsx",