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/cjs/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;
|