@fattureincloud/fic-design-system 0.19.33 → 0.19.34

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.
@@ -11,11 +11,14 @@ export declare const ModalBody: import("styled-components").StyledComponent<"div
11
11
  export declare const ModalIcon: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
12
12
  export declare const ModalHeaderClose: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
13
  export declare const H3: import("styled-components").StyledComponent<"h3", import("styled-components").DefaultTheme, {}, never>;
14
- export declare const ModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const ModalHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
15
+ headerFooterCustomHeight?: number | undefined;
16
+ }, never>;
15
17
  export declare const ModalSimpleHeader: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
16
18
  export declare const ModalSimpleFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
17
19
  export declare const ModalFooter: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
18
20
  hideFooterTopBorder?: boolean | undefined;
21
+ headerFooterCustomHeight?: number | undefined;
19
22
  }, never>;
20
23
  export declare const TopAttachment: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
21
24
  height: number | null;
@@ -1,4 +1,7 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalProps, UknObj } from './types';
3
+ export declare const useStepModalContext: () => {
4
+ headerFooterCustomHeight?: number | undefined;
5
+ };
3
6
  declare const StepModal: <T extends UknObj>({ allowBackdropClose, className, steps, ...otherProps }: StepModalProps<T>) => JSX.Element | null;
4
7
  export default StepModal;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { StepModalBodyProps } from '../types';
3
- declare const StepModalBody: ({ children, ...otherProps }: StepModalBodyProps) => JSX.Element;
3
+ declare const StepModalBody: ({ children, headerFooterCustomHeight, ...otherProps }: 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, className }: StepModalFooterProps) => JSX.Element;
3
+ declare const StepModalFooter: ({ buttons, children, className, headerFooterCustomHeight, }: 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, className, currentStep, setIsOpen, setStep, subtitle, title, customAction, }: StepModalHeaderProps) => JSX.Element;
3
+ declare const StepModalHeader: ({ children, className, currentStep, customAction, headerFooterCustomHeight, setIsOpen, setStep, subtitle, title, }: StepModalHeaderProps) => JSX.Element;
4
4
  export default StepModalHeader;
@@ -1,11 +1,19 @@
1
1
  import { MappedHeight } from './utils';
2
- export declare const StepModalHeaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
2
+ export declare const StepModalHeaderWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
3
+ headerFooterCustomHeight?: number | undefined;
4
+ } & {
5
+ headerFooterCustomHeight?: number | undefined;
6
+ }, never>;
3
7
  export declare const StepModalHeaderTitle: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
8
  export declare const FooterButtonsWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
5
9
  hideFooterTopBorder?: boolean | undefined;
10
+ headerFooterCustomHeight?: number | undefined;
11
+ } & {
12
+ headerFooterCustomHeight?: number | undefined;
6
13
  }, never>;
7
14
  export declare type BodyProps = {
8
15
  height?: number;
16
+ headerFooterCustomHeight?: number;
9
17
  minHeight?: number;
10
18
  withoutFooter?: boolean;
11
19
  withoutHeader?: boolean;
@@ -5,4 +5,4 @@ export declare type MappedHeight = {
5
5
  height?: number;
6
6
  minHeight?: number;
7
7
  };
8
- export declare const mapStepModalHeight: ({ height, minHeight, withoutFooter, withoutHeader }: BodyProps) => MappedHeight;
8
+ export declare const mapStepModalHeight: ({ headerFooterCustomHeight, height, minHeight, withoutFooter, withoutHeader, }: BodyProps) => MappedHeight;
@@ -4,4 +4,5 @@ import { ContentWrapperProps } from './types';
4
4
  export declare const ModalBodyWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, ContentWrapperProps, never>;
5
5
  export declare const StyledModal: import("styled-components").StyledComponent<typeof Modal, import("styled-components").DefaultTheme, {
6
6
  children: ReactNode;
7
+ headerFooterCustomHeight?: number | undefined;
7
8
  }, never>;
@@ -4,6 +4,7 @@ export declare type UknObj = Record<string, unknown>;
4
4
  export declare type StepModalCommonProps = {
5
5
  currentStep: number;
6
6
  height?: number;
7
+ headerFooterCustomHeight?: number;
7
8
  isOpen: boolean;
8
9
  minHeight?: number;
9
10
  setIsOpen?: (o: boolean) => void;
@@ -38,10 +39,12 @@ export declare type ContentWrapperProps = {
38
39
  export declare type StepModalFooterProps = HasChildren & {
39
40
  className?: string;
40
41
  buttons?: ButtonProps[];
42
+ headerFooterCustomHeight?: number;
41
43
  hideFooterTopBorder?: boolean;
42
44
  };
43
45
  export declare type StepModalHeaderProps = Partial<StepModalCommonProps> & HasChildren & {
44
46
  className?: string;
47
+ headerFooterCustomHeight?: number;
45
48
  subtitle?: string;
46
49
  title?: string;
47
50
  customAction?: JSX.Element;
@@ -16,6 +16,7 @@ export interface ModalPropsInterface {
16
16
  footer?: () => JSX.Element;
17
17
  footerButtons?: ButtonProps[];
18
18
  header?: () => JSX.Element;
19
+ headerFooterCustomHeight?: number;
19
20
  height?: number;
20
21
  hideFooterTopBorder?: boolean;
21
22
  hideOverlay?: boolean;
@@ -1,11 +1,9 @@
1
1
  /// <reference types="react" />
2
2
  import { Row as RowType } from '@tanstack/react-table';
3
3
  import { TableProps } from '../../types';
4
- interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip' | 'renderEmptyState' | 'isRowActionDisabled' | 'customAction'> {
4
+ interface BodyProps<T> extends Pick<TableProps<T>, 'isLoading' | 'isRowDisabled' | 'isRowHighlighted' | 'onRowClick' | 'rowActions' | 'rowHighlightColor' | 'rowSelection' | 'rowTooltip' | 'isRowActionDisabled' | 'customAction'> {
5
5
  pageIndex: number;
6
6
  rows: RowType<T>[];
7
- columnsCount: number;
8
- isTableEmpty?: boolean;
9
7
  }
10
- declare const Body: <T>({ columnsCount, customAction, isLoading, isRowActionDisabled, isRowDisabled, isRowHighlighted, isTableEmpty, onRowClick, pageIndex, renderEmptyState, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
8
+ declare const Body: <T>({ customAction, isLoading, isRowActionDisabled, isRowDisabled, isRowHighlighted, onRowClick, pageIndex, rowActions, rowHighlightColor, rowSelection, rowTooltip, rows, }: BodyProps<T>) => JSX.Element;
11
9
  export default Body;
@@ -8,4 +8,3 @@ export declare const HorizontalScroll: import("styled-components").StyledCompone
8
8
  export declare const DSTable: import("styled-components").StyledComponent<"table", import("styled-components").DefaultTheme, {}, never>;
9
9
  export declare const SortIndicator: import("styled-components").StyledComponent<({ isDisabled, onClick, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
10
10
  export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
11
- export declare const EmptyStateContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;