magneto365.ui 2.48.3 → 2.48.5
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 +16 -9
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/UI/atoms/Checkbox/Checkbox.interface.d.ts +9 -0
- package/dist/cjs/types/components/UI/organism/Select/Select.component.d.ts +1 -1
- package/dist/cjs/types/components/UI/organism/Select/children/SelectInput/SelectInput.component.d.ts +1 -1
- package/dist/cjs/types/components/UI/organism/Select/children/SelectInput/SelectInput.interface.d.ts +14 -6
- package/dist/esm/css/magneto.ui.lib.min.css +1 -1
- package/dist/esm/index.js +16 -9
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/UI/atoms/Checkbox/Checkbox.interface.d.ts +9 -0
- package/dist/esm/types/components/UI/organism/Select/Select.component.d.ts +1 -1
- package/dist/esm/types/components/UI/organism/Select/children/SelectInput/SelectInput.component.d.ts +1 -1
- package/dist/esm/types/components/UI/organism/Select/children/SelectInput/SelectInput.interface.d.ts +14 -6
- package/dist/index.d.ts +14 -7
- package/package.json +1 -1
|
@@ -14,4 +14,13 @@ export interface ICheckbox extends Omit<React.InputHTMLAttributes<HTMLInputEleme
|
|
|
14
14
|
* change display behavior for checkbox.
|
|
15
15
|
*/
|
|
16
16
|
display?: 'inline' | 'block';
|
|
17
|
+
/**
|
|
18
|
+
* renderProp to create check component.
|
|
19
|
+
* @param props
|
|
20
|
+
* @returns
|
|
21
|
+
*/
|
|
22
|
+
renderCheck?: (props: {
|
|
23
|
+
checked: ICheckbox['checked'];
|
|
24
|
+
type: ICheckbox['type'];
|
|
25
|
+
}) => React.ReactNode;
|
|
17
26
|
}
|
|
@@ -7,7 +7,7 @@ import { ISelectInput } from './children/SelectInput/SelectInput.interface';
|
|
|
7
7
|
*/
|
|
8
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, disabled, ...rest }: ISelectInput<T_2>) => JSX.Element;
|
|
10
|
+
Input: <T_2>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, disabled, placeholder, type, ...rest }: ISelectInput<T_2>) => JSX.Element;
|
|
11
11
|
Clickout: React.FC<Omit<{
|
|
12
12
|
clickOut: boolean;
|
|
13
13
|
setClickOut: (value: boolean) => void;
|
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, disabled, ...rest }: ISelectInput<T>) => JSX.Element;
|
|
2
|
+
export declare const SelectInput: <T>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, disabled, placeholder, type, ...rest }: ISelectInput<T>) => JSX.Element;
|
package/dist/esm/types/components/UI/organism/Select/children/SelectInput/SelectInput.interface.d.ts
CHANGED
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import { IInput } from '
|
|
1
|
+
import { IInput } from '../../../../molecules/Input/Input.interface';
|
|
2
2
|
import { ISelect, IValueSelect } from '../../Select.interface';
|
|
3
|
-
export interface ISelectInput<T> extends IInput {
|
|
3
|
+
export interface ISelectInput<T> extends Omit<IInput, 'onChange' | 'value' | 'placeholder' | 'type'> {
|
|
4
|
+
/**
|
|
5
|
+
* input value.
|
|
6
|
+
*/
|
|
7
|
+
value?: IInput['value'];
|
|
8
|
+
/**
|
|
9
|
+
* event to request change.
|
|
10
|
+
*/
|
|
11
|
+
onChange?: IInput['onChange'];
|
|
4
12
|
/**
|
|
5
13
|
* placeholder for input.
|
|
6
14
|
*/
|
|
7
|
-
placeholder
|
|
15
|
+
placeholder?: IInput['placeholder'];
|
|
8
16
|
/**
|
|
9
17
|
* type for input.
|
|
10
18
|
*/
|
|
11
|
-
type
|
|
19
|
+
type?: IInput['type'];
|
|
12
20
|
/**
|
|
13
21
|
* to know if the select is open.
|
|
14
22
|
*/
|
|
@@ -16,11 +24,11 @@ export interface ISelectInput<T> extends IInput {
|
|
|
16
24
|
/**
|
|
17
25
|
* select value.
|
|
18
26
|
*/
|
|
19
|
-
selected
|
|
27
|
+
selected?: ISelect<T>['value'];
|
|
20
28
|
/**
|
|
21
29
|
* onClick on input container.
|
|
22
30
|
*/
|
|
23
|
-
onClick
|
|
31
|
+
onClick?: () => void;
|
|
24
32
|
/**
|
|
25
33
|
* display values selected in input.
|
|
26
34
|
*/
|
package/dist/index.d.ts
CHANGED
|
@@ -17,7 +17,6 @@ import { IJobVideo as IJobVideo$1 } from '@components/UI/molecules/JobVideo';
|
|
|
17
17
|
import { IMobileDatePicker as IMobileDatePicker$2 } from '@components/UI/organism/MobileDatePicker/MobileDatePicker.interface';
|
|
18
18
|
import { IActions as IActions$1 } from '@components/UI/molecules/Actions';
|
|
19
19
|
import { INavMenuAnalystProps as INavMenuAnalystProps$1 } from '@components/UI/organism/NavMenuAnalyst';
|
|
20
|
-
import { IInput as IInput$1 } from '@components/UI/molecules/Input/Input.interface';
|
|
21
20
|
import { IJobCard as IJobCard$1 } from '@components/UI/molecules/JobCard/JobCard.interface';
|
|
22
21
|
import { ISortBar as ISortBar$1 } from '@components/UI/template/SortBar/SortBar.interface';
|
|
23
22
|
import { ISideFilter as ISideFilter$1 } from '@components/UI/template';
|
|
@@ -3850,15 +3849,23 @@ declare type StepDetails = {
|
|
|
3850
3849
|
|
|
3851
3850
|
declare const Timeline: React$1.FC<ITimelineProps>;
|
|
3852
3851
|
|
|
3853
|
-
interface ISelectInput<T> extends IInput
|
|
3852
|
+
interface ISelectInput<T> extends Omit<IInput, 'onChange' | 'value' | 'placeholder' | 'type'> {
|
|
3853
|
+
/**
|
|
3854
|
+
* input value.
|
|
3855
|
+
*/
|
|
3856
|
+
value?: IInput['value'];
|
|
3857
|
+
/**
|
|
3858
|
+
* event to request change.
|
|
3859
|
+
*/
|
|
3860
|
+
onChange?: IInput['onChange'];
|
|
3854
3861
|
/**
|
|
3855
3862
|
* placeholder for input.
|
|
3856
3863
|
*/
|
|
3857
|
-
placeholder
|
|
3864
|
+
placeholder?: IInput['placeholder'];
|
|
3858
3865
|
/**
|
|
3859
3866
|
* type for input.
|
|
3860
3867
|
*/
|
|
3861
|
-
type
|
|
3868
|
+
type?: IInput['type'];
|
|
3862
3869
|
/**
|
|
3863
3870
|
* to know if the select is open.
|
|
3864
3871
|
*/
|
|
@@ -3866,11 +3873,11 @@ interface ISelectInput<T> extends IInput$1 {
|
|
|
3866
3873
|
/**
|
|
3867
3874
|
* select value.
|
|
3868
3875
|
*/
|
|
3869
|
-
selected
|
|
3876
|
+
selected?: ISelect<T>['value'];
|
|
3870
3877
|
/**
|
|
3871
3878
|
* onClick on input container.
|
|
3872
3879
|
*/
|
|
3873
|
-
onClick
|
|
3880
|
+
onClick?: () => void;
|
|
3874
3881
|
/**
|
|
3875
3882
|
* display values selected in input.
|
|
3876
3883
|
*/
|
|
@@ -3953,7 +3960,7 @@ interface ISelectContext<T> {
|
|
|
3953
3960
|
*/
|
|
3954
3961
|
declare const Select: (<T>({ children, renderSelect, placeholder, options, value, onChange, inputReadonly, className, getLabel }: ISelect<T>) => JSX.Element) & {
|
|
3955
3962
|
useContext: <T_1>() => ISelectContext<T_1>;
|
|
3956
|
-
Input: <T_2>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, disabled, ...rest }: ISelectInput<T_2>) => JSX.Element;
|
|
3963
|
+
Input: <T_2>({ onChange, value, className, onClick, open, actionIcon, selected, getLabel, readOnly, disabled, placeholder, type, ...rest }: ISelectInput<T_2>) => JSX.Element;
|
|
3957
3964
|
Clickout: React$1.FC<Omit<{
|
|
3958
3965
|
clickOut: boolean;
|
|
3959
3966
|
setClickOut: (value: boolean) => void;
|
package/package.json
CHANGED