@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.
Files changed (40) hide show
  1. package/dist/cjs/index.js +227 -38
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/components/Inputs/select/Select.d.ts +4 -0
  4. package/dist/cjs/types/components/Inputs/select/SelectProps.d.ts +18 -0
  5. package/dist/cjs/types/components/Inputs/select/index.d.ts +1 -0
  6. package/dist/cjs/types/components/Inputs/textfield/TextField.d.ts +5 -1
  7. package/dist/cjs/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
  8. package/dist/cjs/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
  9. package/dist/cjs/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
  10. package/dist/cjs/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
  11. package/dist/cjs/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
  12. package/dist/cjs/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
  13. package/dist/cjs/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
  14. package/dist/cjs/types/components/checkbox/CheckboxComponent.d.ts +3 -10
  15. package/dist/cjs/types/components/checkbox/CheckboxProps.d.ts +9 -0
  16. package/dist/cjs/types/components/foundations/icon/Icon.d.ts +3 -8
  17. package/dist/cjs/types/components/foundations/icon/IconProps.d.ts +9 -0
  18. package/dist/cjs/types/components/foundations/logo/Logo.d.ts +5 -6
  19. package/dist/cjs/types/components/index.d.ts +1 -0
  20. package/dist/esm/index.js +227 -39
  21. package/dist/esm/index.js.map +1 -1
  22. package/dist/esm/types/components/Inputs/select/Select.d.ts +4 -0
  23. package/dist/esm/types/components/Inputs/select/SelectProps.d.ts +18 -0
  24. package/dist/esm/types/components/Inputs/select/index.d.ts +1 -0
  25. package/dist/esm/types/components/Inputs/textfield/TextField.d.ts +5 -1
  26. package/dist/esm/types/components/bottomBar/BottomBarComponent.d.ts +13 -5
  27. package/dist/esm/types/components/bottomInfoBar/BottomInfoBar.d.ts +3 -16
  28. package/dist/esm/types/components/bottomInfoBar/BottomInfoBarProps.d.ts +7 -0
  29. package/dist/esm/types/components/buttons/customButton/CustomButtonComponent.d.ts +3 -14
  30. package/dist/esm/types/components/buttons/customButton/CustomButtonProps.d.ts +11 -0
  31. package/dist/esm/types/components/buttons/iconButton/IconButtonComponent.d.ts +4 -11
  32. package/dist/esm/types/components/buttons/iconButton/IconButtonProps.d.ts +10 -0
  33. package/dist/esm/types/components/checkbox/CheckboxComponent.d.ts +3 -10
  34. package/dist/esm/types/components/checkbox/CheckboxProps.d.ts +9 -0
  35. package/dist/esm/types/components/foundations/icon/Icon.d.ts +3 -8
  36. package/dist/esm/types/components/foundations/icon/IconProps.d.ts +9 -0
  37. package/dist/esm/types/components/foundations/logo/Logo.d.ts +5 -6
  38. package/dist/esm/types/components/index.d.ts +1 -0
  39. package/dist/index.d.ts +90 -66
  40. package/package.json +3 -3
@@ -0,0 +1,4 @@
1
+ import * as React from 'react';
2
+ import { SelectProps } from "./SelectProps";
3
+ declare const Select: React.FunctionComponent<SelectProps>;
4
+ export default Select;
@@ -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
- export declare const StyledTextField: import("@emotion/styled").StyledComponent<import("@mui/material/TextField").TextFieldProps & import("@mui/system").MUIStyledCommonProps<import("@mui/material/styles").Theme>, {}, {}>;
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
- /// <reference types="react" />
2
- declare const BottomBarComponent: ({ buttons, ...props }: {
3
- [x: string]: any;
4
- buttons: any;
5
- }) => JSX.Element;
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
- /// <reference types="react" />
2
- import propTypes from "prop-types";
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;
@@ -0,0 +1,7 @@
1
+ import { MouseEventHandler } from "react";
2
+ export interface BottomInfoBarProps {
3
+ leftText?: string;
4
+ rightText?: string;
5
+ noLogo?: boolean;
6
+ onRightTextClick?: MouseEventHandler<HTMLButtonElement>;
7
+ }
@@ -1,15 +1,4 @@
1
- /// <reference types="react" />
2
- declare const CustomButtonComponent: ({ type, text, size, fluid, color, resolution, width, onClick, disabled, forwardedRef, ...props }: {
3
- [x: string]: any;
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
- /// <reference types="react" />
2
- export default function IconButtonComponent({ text, type, icon, color, fluid, onClick, forwardedRef, ...props }: {
3
- [x: string]: any;
4
- text: any;
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
- /// <reference types="react" />
2
- declare const CheckboxComponent: ({ disabled, label, checked, onChange, indeterminate, forwardedRef, ...props }: {
3
- [x: string]: any;
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
- /// <reference types="react" />
2
- declare const Icon: ({ iconName, color, size, forwardedRef, ...rest }: {
3
- [x: string]: any;
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;
@@ -0,0 +1,9 @@
1
+ import { ForwardedRef, MouseEventHandler } from "react";
2
+ export interface IconProps {
3
+ iconName: string;
4
+ color?: string;
5
+ size?: string;
6
+ style?: object;
7
+ forwardedRef?: ForwardedRef<any>;
8
+ onClick?: MouseEventHandler<HTMLDivElement>;
9
+ }
@@ -1,7 +1,6 @@
1
- /// <reference types="react" />
2
- declare const Logo: ({ logoName, color, ...props }: {
3
- [x: string]: any;
4
- logoName: any;
5
- color: any;
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";