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.
- package/dist/cjs/css/magneto.ui.lib.min.css +1 -1
- package/dist/cjs/index.js +39 -32
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/organism/Select/Select.component.d.ts +5 -4
- package/dist/cjs/types/components/UI/organism/Select/Select.interface.d.ts +2 -0
- package/dist/cjs/types/components/UI/organism/Select/children/SelectClickout/SelectClickout.component.d.ts +2 -1
- package/dist/cjs/types/components/UI/organism/Select/children/SelectInput/SelectInput.component.d.ts +1 -1
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +39 -32
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/organism/Select/Select.component.d.ts +5 -4
- package/dist/esm/types/components/UI/organism/Select/Select.interface.d.ts +2 -0
- package/dist/esm/types/components/UI/organism/Select/children/SelectClickout/SelectClickout.component.d.ts +2 -1
- package/dist/esm/types/components/UI/organism/Select/children/SelectInput/SelectInput.component.d.ts +1 -1
- package/dist/index.d.ts +7 -4
- package/package.json +1 -1
|
@@ -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;
|
package/dist/esm/types/components/UI/organism/Select/children/SelectInput/SelectInput.component.d.ts
CHANGED
|
@@ -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