@xelto.npm/xc2-lib 0.0.44 → 0.0.46
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/index.js +45 -44
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/types/components/Inputs/datepicker/DatePickerProps.d.ts +2 -2
- package/dist/cjs/types/components/Inputs/select/Select.d.ts +4 -0
- package/dist/cjs/types/components/Inputs/select/SelectProps.d.ts +18 -0
- package/dist/cjs/types/components/Inputs/textfield/TextField.d.ts +5 -1
- package/dist/cjs/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
- package/dist/cjs/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
- package/dist/cjs/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
- package/dist/cjs/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
- package/dist/cjs/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
- package/dist/cjs/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
- package/dist/cjs/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
- package/dist/cjs/types/components/checkbox/CheckboxComponent.d.ts +3 -10
- package/dist/cjs/types/components/checkbox/CheckboxProps.d.ts +9 -0
- package/dist/cjs/types/components/foundations/icon/Icon.d.ts +3 -8
- package/dist/cjs/types/components/foundations/icon/IconProps.d.ts +9 -0
- package/dist/cjs/types/components/foundations/logo/Logo.d.ts +5 -6
- package/dist/esm/index.js +45 -44
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/types/components/Inputs/datepicker/DatePickerProps.d.ts +2 -2
- package/dist/esm/types/components/Inputs/select/Select.d.ts +4 -0
- package/dist/esm/types/components/Inputs/select/SelectProps.d.ts +18 -0
- package/dist/esm/types/components/Inputs/textfield/TextField.d.ts +5 -1
- package/dist/esm/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
- package/dist/esm/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
- package/dist/esm/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
- package/dist/esm/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
- package/dist/esm/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
- package/dist/esm/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
- package/dist/esm/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
- package/dist/esm/types/components/checkbox/CheckboxComponent.d.ts +3 -10
- package/dist/esm/types/components/checkbox/CheckboxProps.d.ts +9 -0
- package/dist/esm/types/components/foundations/icon/Icon.d.ts +3 -8
- package/dist/esm/types/components/foundations/icon/IconProps.d.ts +9 -0
- package/dist/esm/types/components/foundations/logo/Logo.d.ts +5 -6
- package/dist/index.d.ts +70 -66
- package/package.json +3 -3
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Ref } from "react";
|
|
1
|
+
import { Ref, SetStateAction } from "react";
|
|
2
2
|
export interface DatePickerProps {
|
|
3
3
|
value: string;
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
label?: string;
|
|
6
6
|
fluid?: boolean;
|
|
7
|
-
onChange: (value:
|
|
7
|
+
onChange: (value: SetStateAction<string>, keyboardInputValue?: string) => void;
|
|
8
8
|
forwardedRef?: Ref<HTMLInputElement>;
|
|
9
9
|
endAdornment?: string;
|
|
10
10
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ChangeEventHandler, RefObject } from "react";
|
|
2
|
+
export interface SelectProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
fluid?: boolean;
|
|
5
|
+
label?: string;
|
|
6
|
+
options?: {
|
|
7
|
+
label: string;
|
|
8
|
+
}[];
|
|
9
|
+
withRefresh?: boolean;
|
|
10
|
+
value?: object;
|
|
11
|
+
noOptionsText?: string;
|
|
12
|
+
placeholder?: string;
|
|
13
|
+
onChange?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
14
|
+
onBlur?: ChangeEventHandler<HTMLTextAreaElement | HTMLInputElement>;
|
|
15
|
+
forwardedRef?: (instance: HTMLDivElement | null) => void | RefObject<HTMLDivElement> | null;
|
|
16
|
+
onRefreshClick?: void;
|
|
17
|
+
endAdornment?: string;
|
|
18
|
+
}
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { TextFieldProps } from "./TextFieldProps";
|
|
3
|
-
|
|
3
|
+
interface ExtraProps {
|
|
4
|
+
fluid?: boolean;
|
|
5
|
+
small?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const StyledTextField: import("@emotion/styled").StyledComponent<(import("@mui/material/TextField").TextFieldProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>) & ExtraProps, {}, {}>;
|
|
4
8
|
declare const TextField: React.FunctionComponent<TextFieldProps>;
|
|
5
9
|
export default TextField;
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import React, { MouseEventHandler } from 'react';
|
|
2
|
+
interface ItemProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
fluid?: boolean;
|
|
5
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
6
|
+
type?: string;
|
|
7
|
+
text?: string;
|
|
8
|
+
color?: string;
|
|
9
|
+
size?: string;
|
|
10
|
+
}
|
|
11
|
+
declare const BottomBarComponent: React.FunctionComponent<{
|
|
12
|
+
buttons: ItemProps[];
|
|
13
|
+
}>;
|
|
6
14
|
export default BottomBarComponent;
|
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
import
|
|
3
|
-
declare const BottomInfoBar:
|
|
4
|
-
({ noLogo, leftText, rightText, onRightTextClick }: {
|
|
5
|
-
noLogo?: boolean | undefined;
|
|
6
|
-
leftText?: string | undefined;
|
|
7
|
-
rightText?: string | undefined;
|
|
8
|
-
onRightTextClick: any;
|
|
9
|
-
}): JSX.Element;
|
|
10
|
-
propTypes: {
|
|
11
|
-
noLogo: propTypes.Requireable<boolean>;
|
|
12
|
-
leftText: propTypes.Requireable<string>;
|
|
13
|
-
rightText: propTypes.Requireable<string>;
|
|
14
|
-
onRightTextClick: propTypes.Requireable<(...args: any[]) => any>;
|
|
15
|
-
};
|
|
16
|
-
};
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { BottomInfoBarProps } from "./BottomInfoBarProps";
|
|
3
|
+
declare const BottomInfoBar: React.FunctionComponent<BottomInfoBarProps>;
|
|
17
4
|
export default BottomInfoBar;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
type: any;
|
|
5
|
-
text: any;
|
|
6
|
-
size: any;
|
|
7
|
-
fluid: any;
|
|
8
|
-
color: any;
|
|
9
|
-
resolution: any;
|
|
10
|
-
width: any;
|
|
11
|
-
onClick: any;
|
|
12
|
-
disabled: any;
|
|
13
|
-
forwardedRef?: null | undefined;
|
|
14
|
-
}) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CustomButtonProps } from "./CustomButtonProps";
|
|
3
|
+
declare const CustomButtonComponent: React.FunctionComponent<CustomButtonProps>;
|
|
15
4
|
export default CustomButtonComponent;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Ref, MouseEventHandler } from "react";
|
|
2
|
+
export interface CustomButtonProps {
|
|
3
|
+
text?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
fluid?: boolean;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
10
|
+
forwardedRef?: Ref<HTMLButtonElement>;
|
|
11
|
+
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
type: any;
|
|
6
|
-
icon: any;
|
|
7
|
-
color: any;
|
|
8
|
-
fluid: any;
|
|
9
|
-
onClick: any;
|
|
10
|
-
forwardedRef?: null | undefined;
|
|
11
|
-
}): JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { IconButtonProps } from "./IconButtonProps";
|
|
3
|
+
declare const IconButtonComponent: React.FunctionComponent<IconButtonProps>;
|
|
4
|
+
export default IconButtonComponent;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Ref, MouseEventHandler } from "react";
|
|
2
|
+
export interface IconButtonProps {
|
|
3
|
+
text?: string;
|
|
4
|
+
type?: string;
|
|
5
|
+
icon: string;
|
|
6
|
+
color?: string;
|
|
7
|
+
fluid?: boolean;
|
|
8
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
9
|
+
forwardedRef?: Ref<HTMLButtonElement>;
|
|
10
|
+
}
|
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
disabled: any;
|
|
5
|
-
label: any;
|
|
6
|
-
checked: any;
|
|
7
|
-
onChange: any;
|
|
8
|
-
indeterminate: any;
|
|
9
|
-
forwardedRef?: null | undefined;
|
|
10
|
-
}) => JSX.Element;
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { CheckboxProps } from "./CheckboxProps";
|
|
3
|
+
declare const CheckboxComponent: React.FunctionComponent<CheckboxProps>;
|
|
11
4
|
export default CheckboxComponent;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Ref, ChangeEvent } from "react";
|
|
2
|
+
export interface CheckboxProps {
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
indeterminate?: boolean;
|
|
6
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
7
|
+
forwardedRef?: Ref<HTMLInputElement>;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
}
|
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
iconName?: string | undefined;
|
|
5
|
-
color?: string | undefined;
|
|
6
|
-
size?: string | undefined;
|
|
7
|
-
forwardedRef?: null | undefined;
|
|
8
|
-
}) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IconProps } from "./IconProps";
|
|
3
|
+
declare const Icon: React.FunctionComponent<IconProps>;
|
|
9
4
|
export default Icon;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
declare const Logo:
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}) => JSX.Element;
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const Logo: React.FunctionComponent<{
|
|
3
|
+
logoName: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
}>;
|
|
7
6
|
export default Logo;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import propTypes from 'prop-types';
|
|
3
2
|
import * as React from 'react';
|
|
4
|
-
import { Ref, ChangeEventHandler, RefObject } from 'react';
|
|
3
|
+
import React__default, { MouseEventHandler, Ref, ForwardedRef, ChangeEvent, SetStateAction, ChangeEventHandler, RefObject } from 'react';
|
|
5
4
|
|
|
6
5
|
declare const AppTileComponent: ({ header, description, illustrationName, forwardedRef, isBigType, size, color }: {
|
|
7
6
|
header: any;
|
|
@@ -20,30 +19,30 @@ declare const TypographyComponent: ({ text, type, forwardedRef, ...props }: {
|
|
|
20
19
|
forwardedRef?: null | undefined;
|
|
21
20
|
}) => JSX.Element;
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
type
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
fluid
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
disabled: any;
|
|
34
|
-
forwardedRef?: null | undefined;
|
|
35
|
-
}) => JSX.Element;
|
|
22
|
+
interface CustomButtonProps {
|
|
23
|
+
text?: string;
|
|
24
|
+
type?: string;
|
|
25
|
+
size?: string;
|
|
26
|
+
color?: string;
|
|
27
|
+
fluid?: boolean;
|
|
28
|
+
disabled?: boolean;
|
|
29
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
30
|
+
forwardedRef?: Ref<HTMLButtonElement>;
|
|
31
|
+
}
|
|
36
32
|
|
|
37
|
-
declare
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
33
|
+
declare const CustomButtonComponent: React.FunctionComponent<CustomButtonProps>;
|
|
34
|
+
|
|
35
|
+
interface IconButtonProps {
|
|
36
|
+
text?: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
icon: string;
|
|
39
|
+
color?: string;
|
|
40
|
+
fluid?: boolean;
|
|
41
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
42
|
+
forwardedRef?: Ref<HTMLButtonElement>;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
declare const IconButtonComponent: React.FunctionComponent<IconButtonProps>;
|
|
47
46
|
|
|
48
47
|
declare const Illustration: ({ illustrationName, color, size, isBigType }: {
|
|
49
48
|
illustrationName: any;
|
|
@@ -52,56 +51,61 @@ declare const Illustration: ({ illustrationName, color, size, isBigType }: {
|
|
|
52
51
|
isBigType: any;
|
|
53
52
|
}) => JSX.Element;
|
|
54
53
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
forwardedRef?:
|
|
61
|
-
|
|
54
|
+
interface IconProps {
|
|
55
|
+
iconName: string;
|
|
56
|
+
color?: string;
|
|
57
|
+
size?: string;
|
|
58
|
+
style?: object;
|
|
59
|
+
forwardedRef?: ForwardedRef<any>;
|
|
60
|
+
onClick?: MouseEventHandler<HTMLDivElement>;
|
|
61
|
+
}
|
|
62
62
|
|
|
63
|
-
declare const
|
|
64
|
-
[x: string]: any;
|
|
65
|
-
logoName: any;
|
|
66
|
-
color: any;
|
|
67
|
-
}) => JSX.Element;
|
|
63
|
+
declare const Icon: React__default.FunctionComponent<IconProps>;
|
|
68
64
|
|
|
69
|
-
declare const
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
}
|
|
65
|
+
declare const Logo: React__default.FunctionComponent<{
|
|
66
|
+
logoName: string;
|
|
67
|
+
color?: string;
|
|
68
|
+
}>;
|
|
73
69
|
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
70
|
+
interface ItemProps {
|
|
71
|
+
disabled?: boolean;
|
|
72
|
+
fluid?: boolean;
|
|
73
|
+
onClick?: MouseEventHandler<HTMLButtonElement>;
|
|
74
|
+
type?: string;
|
|
75
|
+
text?: string;
|
|
76
|
+
color?: string;
|
|
77
|
+
size?: string;
|
|
78
|
+
}
|
|
79
|
+
declare const BottomBarComponent: React__default.FunctionComponent<{
|
|
80
|
+
buttons: ItemProps[];
|
|
81
|
+
}>;
|
|
82
|
+
|
|
83
|
+
interface BottomInfoBarProps {
|
|
84
|
+
leftText?: string;
|
|
85
|
+
rightText?: string;
|
|
86
|
+
noLogo?: boolean;
|
|
87
|
+
onRightTextClick?: MouseEventHandler<HTMLButtonElement>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare const BottomInfoBar: React.FunctionComponent<BottomInfoBarProps>;
|
|
91
|
+
|
|
92
|
+
interface CheckboxProps {
|
|
93
|
+
disabled?: boolean;
|
|
94
|
+
label?: string;
|
|
95
|
+
indeterminate?: boolean;
|
|
96
|
+
onChange: (event: ChangeEvent<HTMLInputElement>, checked: boolean) => void;
|
|
97
|
+
forwardedRef?: Ref<HTMLInputElement>;
|
|
98
|
+
checked?: boolean;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare const CheckboxComponent: React.FunctionComponent<CheckboxProps>;
|
|
98
102
|
|
|
99
103
|
interface DatePickerProps {
|
|
100
104
|
value: string;
|
|
101
105
|
disabled?: boolean;
|
|
102
106
|
label?: string;
|
|
103
107
|
fluid?: boolean;
|
|
104
|
-
onChange: (value:
|
|
108
|
+
onChange: (value: SetStateAction<string>, keyboardInputValue?: string) => void;
|
|
105
109
|
forwardedRef?: Ref<HTMLInputElement>;
|
|
106
110
|
endAdornment?: string;
|
|
107
111
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xelto.npm/xc2-lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.46",
|
|
4
4
|
"author": "XELTO",
|
|
5
5
|
"description": "React component library based on MUI",
|
|
6
6
|
"license": "ISC",
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"build": "react-scripts build",
|
|
12
12
|
"test": "react-scripts test",
|
|
13
13
|
"eject": "react-scripts eject",
|
|
14
|
-
"storybook": "start-storybook -p 6006
|
|
15
|
-
"build-storybook": "build-storybook
|
|
14
|
+
"storybook": "start-storybook -p 6006 ",
|
|
15
|
+
"build-storybook": "build-storybook "
|
|
16
16
|
},
|
|
17
17
|
"eslintConfig": {
|
|
18
18
|
"extends": [
|