@fattureincloud/fic-design-system 0.6.2 → 0.6.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,6 @@
1
1
  export declare const isNumber: (n: number | string | undefined) => boolean;
2
2
  export declare const parseDimension: (d: number | string) => string;
3
+ export declare const pixelToNumber: (s: string) => number;
3
4
  export declare const generateRandomId: () => string;
4
5
  export declare const stringToFloat: (n: string) => number;
5
6
  export declare const isNumeric: (n: string) => boolean;
@@ -12,6 +12,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../label").Label
12
12
  required?: boolean | undefined;
13
13
  } & {
14
14
  actionIcon?: import("../../icon").IconProps | undefined;
15
+ hideStatusIcon?: boolean | undefined;
15
16
  inputType?: "number" | "text" | "password" | undefined;
16
17
  isPrefilled?: boolean | undefined;
17
18
  isTransparent?: boolean | undefined;
@@ -17,6 +17,7 @@ declare const _default: React.ForwardRefExoticComponent<import("../../common/typ
17
17
  required?: boolean | undefined;
18
18
  } & {
19
19
  actionIcon?: import("../../../icon").IconProps | undefined;
20
+ hideStatusIcon?: boolean | undefined;
20
21
  inputType?: "number" | "text" | "password" | undefined;
21
22
  isPrefilled?: boolean | undefined;
22
23
  isTransparent?: boolean | undefined;
@@ -9,6 +9,7 @@ export declare type inputTypes = typeof inputTypesArray[number];
9
9
  declare type HTMLInputProps = Pick<InputHTMLAttributes<HTMLInputElement>, 'autoFocus' | 'className' | 'name' | 'onBlur' | 'onChange' | 'onFocus' | 'onKeyDown' | 'onKeyPress' | 'onKeyUp' | 'required'>;
10
10
  export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
11
11
  actionIcon?: IconProps;
12
+ hideStatusIcon?: boolean;
12
13
  inputType?: 'password' | 'text' | 'number';
13
14
  isPrefilled?: boolean;
14
15
  isTransparent?: boolean;
@@ -23,13 +24,13 @@ export declare type InputElementProps = CommonFormTypes & HTMLInputProps & {
23
24
  export declare type InputCodeProps = LabelProps & CommonFormTypes & Omit<HTMLInputProps, 'onChange'> & {
24
25
  fieldsCount: number;
25
26
  fieldsGap?: number;
26
- inputType: 'code';
27
+ inputType?: 'code';
27
28
  onChange?: (code: (string | null)[]) => void;
28
29
  style?: CSSProperties;
29
30
  };
30
31
  export declare type InputTelephoneProps = LabelProps & CommonFormTypes & {
31
32
  className?: string;
32
- inputType: 'telephone';
33
+ inputType?: 'telephone';
33
34
  placeholder?: ReactText;
34
35
  required?: boolean;
35
36
  setValue: Dispatch<SetStateAction<string>>;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalBodyProps } from '../types';
3
- declare const StepModalBody: ({ children, height, isFullscreen, minHeight }: StepModalBodyProps) => JSX.Element;
3
+ declare const StepModalBody: ({ children, className, height, minHeight }: StepModalBodyProps) => JSX.Element;
4
4
  export default StepModalBody;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalFooterProps } from '../types';
3
- declare const StepModalFooter: ({ buttons, children }: StepModalFooterProps) => JSX.Element;
3
+ declare const StepModalFooter: ({ buttons, children, className }: StepModalFooterProps) => JSX.Element;
4
4
  export default StepModalFooter;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalHeaderProps } from '../types';
3
- declare const StepModalHeader: ({ children, currentStep, setIsOpen, setStep, subtitle, title, }: StepModalHeaderProps) => JSX.Element;
3
+ declare const StepModalHeader: ({ children, className, currentStep, setIsOpen, setStep, subtitle, title, }: StepModalHeaderProps) => JSX.Element;
4
4
  export default StepModalHeader;
@@ -1,4 +1,11 @@
1
+ import { MappedHeight } from './utils';
1
2
  export declare const StepModalHeaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
3
  export declare const StepModalHeaderTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
3
4
  export declare const FooterButtonsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
- export declare const StyledBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../types").ModalPropsInterface, never>;
5
+ export declare type BodyProps = {
6
+ height?: number;
7
+ minHeight?: number;
8
+ withoutFooter?: boolean;
9
+ withoutHeader?: boolean;
10
+ };
11
+ export declare const StyledBody: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, import("../../types").ModalPropsInterface & MappedHeight & BodyProps, keyof MappedHeight>;
@@ -0,0 +1,8 @@
1
+ import { BodyProps } from './styled';
2
+ export declare type MappedHeight = {
3
+ calcHeight: number;
4
+ calcMinHeight: number;
5
+ height?: number;
6
+ minHeight?: number;
7
+ };
8
+ export declare const mapStepModalHeight: ({ height, minHeight, withoutFooter, withoutHeader }: BodyProps) => MappedHeight;
@@ -34,13 +34,16 @@ export declare type ContentWrapperProps = {
34
34
  isSmall?: boolean;
35
35
  };
36
36
  export declare type StepModalFooterProps = HasChildren & {
37
+ className?: string;
37
38
  buttons?: ButtonProps[];
38
39
  };
39
40
  export declare type StepModalHeaderProps = Partial<StepModalCommonProps> & HasChildren & {
41
+ className?: string;
40
42
  subtitle?: string;
41
43
  title?: string;
42
44
  };
43
45
  export declare type StepModalBodyProps = Partial<StepModalCommonProps> & HasChildren & {
46
+ className?: string;
44
47
  isFullscreen?: boolean;
45
48
  };
46
49
  export {};