@xelto.npm/xc2-lib 0.0.45 → 0.0.47
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 +227 -38
- package/dist/cjs/index.js.map +1 -1
- 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/select/index.d.ts +1 -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/cjs/types/components/index.d.ts +1 -0
- package/dist/esm/index.js +227 -39
- package/dist/esm/index.js.map +1 -1
- 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/select/index.d.ts +1 -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/esm/types/components/index.d.ts +1 -0
- package/dist/index.d.ts +90 -66
- package/package.json +3 -3
|
@@ -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
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default } from './Select';
|
|
@@ -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;
|
|
@@ -10,3 +10,4 @@ export { default as BottomInfoBar } from "./bottomInfoBar";
|
|
|
10
10
|
export { default as Checkbox } from "./checkbox";
|
|
11
11
|
export { default as DatePicker } from "./Inputs/datepicker";
|
|
12
12
|
export { default as TextField } from "./Inputs/textfield";
|
|
13
|
+
export { default as Select } from "./Inputs/select";
|