@fattureincloud/fic-design-system 0.6.3 → 0.6.5
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/common/utils/dsUtils.d.ts +1 -0
- package/dist/components/modals/stepModal/components/StepModalBody.d.ts +1 -1
- package/dist/components/modals/stepModal/components/styled.d.ts +8 -1
- package/dist/components/modals/stepModal/components/utils.d.ts +8 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
@@ -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,
|
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
|
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;
|