@fattureincloud/fic-design-system 0.6.3 → 0.6.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.
@@ -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;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalBodyProps } from '../types';
3
- declare const StepModalBody: ({ children, className, 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,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;