@fattureincloud/fic-design-system 0.10.2-tmp-4 → 0.11.0

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
+ import { SizeProp } from '@fortawesome/fontawesome-svg-core';
1
2
  import { ReactNode } from 'react';
2
- import { ButtonProps } from '../buttons/button/Button';
3
+ import { ButtonProps } from '../buttons';
3
4
  export interface ModalStateInterface {
4
5
  topAttachmentHeight: number;
5
6
  fullScreenHeight: number;
@@ -28,6 +29,8 @@ export interface ModalPropsInterface {
28
29
  contentEl: HTMLDivElement;
29
30
  }) => void;
30
31
  isConfirmModal?: boolean;
32
+ sizeCloseX?: SizeProp;
33
+ zIndex?: number;
31
34
  }
32
35
  export interface StyledModalBoxProps {
33
36
  isFullscreen?: boolean;
@@ -29,8 +29,6 @@ import { TableProps } from './types';
29
29
  * @param {function} onRowClick Callback called after a click on a row, returns the row
30
30
  * @param {number} rowIdHighlight id of the row that will be highlighted
31
31
  * @param {number} actionColumnWidth used to determine the width of the action column
32
- * @param {string} columnsBreakpointWidth fixed length that columns get below the breakpoint set with {tableBreakpoint} prop
33
- * @param {string} tableBreakpoint table breakpoint below which the columns of the table get a fixed length
34
32
  */
35
- declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowIdHighlight, rowHighlightColor, rowSelection, onRowSelection, forceHideSettings, renderBulkActions, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, rowSize, actionColumnWidth, resetPageIndex, columnsBreakpointWidth, tableBreakpoint, }: TableProps<T>) => JSX.Element;
33
+ declare const Table: <T>({ data, columns, isSelectable, toggles, onTogglesChange, headerSize, isTogglesSortable, sortable, sortDescFirst, enableSettings, settingsDropdownConfig, rowActions, bulkActions, isLoading, allSelectedCTA, noPagination, pageSize: pageLength, listSize, paginationPreviousText, paginationNextText, onPaginationChange, uniqueId, onSort, renderEmptyState, onRowClick, bodyHeight, totalPages, rowIdHighlight, rowHighlightColor, rowSelection, onRowSelection, forceHideSettings, renderBulkActions, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, rowSize, actionColumnWidth, disableScrollX, resetPageIndex, }: TableProps<T>) => JSX.Element;
36
34
  export default Table;
@@ -7,8 +7,7 @@ interface BodyProps<T> extends Pick<TableProps<T>, 'rowSize' | 'bodyHeight' | 'r
7
7
  onRowClick?: (row: Row<T>) => void;
8
8
  pageIndex: number;
9
9
  actionColumnWidth: number;
10
- fixedWidthCells: boolean;
11
- columnsBreakpointWidth: number;
10
+ disableScrollX?: boolean;
12
11
  }
13
- declare const Body: <T>({ rows, rowSize, isLoading, onRowClick, bodyHeight, rowIdHighlight, rowHighlightColor, pageIndex, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: BodyProps<T>) => JSX.Element;
12
+ declare const Body: <T>({ rows, rowSize, isLoading, onRowClick, bodyHeight, rowIdHighlight, rowHighlightColor, pageIndex, actionColumnWidth, disableScrollX, }: BodyProps<T>) => JSX.Element;
14
13
  export default Body;
@@ -9,8 +9,6 @@ interface Props<T> {
9
9
  isLoading?: boolean;
10
10
  onRowClick?: (row: Row<T>) => void;
11
11
  actionColumnWidth: number;
12
- fixedWidthCells: boolean;
13
- columnsBreakpointWidth: number;
14
12
  }
15
- declare const Cell: <T>({ cell, row, hover, rowSize, isLoading, onRowClick, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: Props<T>) => JSX.Element;
13
+ declare const Cell: <T>({ cell, row, hover, rowSize, isLoading, onRowClick, actionColumnWidth }: Props<T>) => JSX.Element;
16
14
  export default Cell;
@@ -8,8 +8,6 @@ declare type Props<CellProps> = {
8
8
  rowSize?: RowSize;
9
9
  actionColumnWidth: number;
10
10
  onRowClick?: (row: Row<CellProps>) => void;
11
- fixedWidthCells: boolean;
12
- columnsBreakpointWidth: number;
13
11
  } & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef<CellProps>;
14
- declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, onRowClick, maxWidth, align, disableClick, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: Props<CellProps>) => JSX.Element;
12
+ declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, onRowClick, maxWidth, align, disableClick, actionColumnWidth, }: Props<CellProps>) => JSX.Element;
15
13
  export default CustomCell;
@@ -4,10 +4,6 @@ interface LoadingCellProps {
4
4
  minWidth?: number;
5
5
  maxWidth?: number;
6
6
  align: 'center' | 'right' | 'left';
7
- isRowActionCell?: boolean;
8
- columnsBreakpointWidth: number;
9
- fixedWidthCells: boolean;
10
- isCheckboxCell: boolean;
11
7
  }
12
- declare const LoadingCell: ({ isActionCell, minWidth, maxWidth, align, isRowActionCell, columnsBreakpointWidth, fixedWidthCells, isCheckboxCell, }: LoadingCellProps) => JSX.Element;
8
+ declare const LoadingCell: ({ isActionCell, minWidth, maxWidth, align }: LoadingCellProps) => JSX.Element;
13
9
  export default LoadingCell;
@@ -3,8 +3,6 @@ export declare const Td: import("styled-components").StyledComponent<"div", impo
3
3
  minWidth?: number | undefined;
4
4
  maxWidth?: number | undefined;
5
5
  align?: "center" | "left" | "right" | undefined;
6
- fixedWidthCells: boolean;
7
- columnsBreakpointWidth: number;
8
6
  }, never>;
9
7
  export declare const Wrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
10
8
  export declare const LeadingIconContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -17,8 +17,6 @@ interface HeaderProps<T> {
17
17
  onChangeTableSettings?: onChangeTableSettings;
18
18
  isLoading: boolean;
19
19
  actionColumnWidth: number;
20
- fixedWidthCells: boolean;
21
- columnsBreakpointWidth: number;
22
20
  }
23
- declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, isLoading, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: HeaderProps<T>) => JSX.Element;
21
+ declare const Header: <T>({ headerGroup, headerSize, onSort, forceHideSettings, rowSelection, setRowSelection, preSettedTableSettings, onChangeTableSettings, notRemovableColumns, isLoading, actionColumnWidth, }: HeaderProps<T>) => JSX.Element;
24
22
  export default Header;
@@ -15,8 +15,6 @@ interface HeaderCellProps<T> {
15
15
  onChangeTableSettings?: onChangeTableSettings;
16
16
  isLoading: boolean;
17
17
  actionColumnWidth: number;
18
- fixedWidthCells: boolean;
19
- columnsBreakpointWidth: number;
20
18
  }
21
- declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: HeaderCellProps<T>) => JSX.Element;
19
+ declare const HeaderCell: <T>({ header, headerSize, onSort, customSorted, setCustomSorted, forceHideSettings, rowSelection, setRowSelection, notRemovableColumns, dimensionRow, onChangeTableSettings, isLoading, actionColumnWidth, }: HeaderCellProps<T>) => JSX.Element;
22
20
  export default HeaderCell;
@@ -6,9 +6,6 @@ export declare const Th: import("styled-components").StyledComponent<"div", impo
6
6
  maxWidth?: number | undefined;
7
7
  sortable: boolean;
8
8
  isActionColumn: boolean;
9
- isCheckboxColumn: boolean;
10
- fixedWidthCells: boolean;
11
- columnsBreakpointWidth: number;
12
9
  }, never>;
13
10
  export declare const TextHeaderCellWrapper: import("styled-components").StyledComponent<"span", import("styled-components").DefaultTheme, {}, never>;
14
11
  export declare const ActionCell: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
@@ -9,8 +9,6 @@ interface TrProps<T> extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLTa
9
9
  isRowHighlighted: boolean;
10
10
  rowHighlightColor?: TableProps<T>['rowHighlightColor'];
11
11
  actionColumnWidth: number;
12
- fixedWidthCells: boolean;
13
- columnsBreakpointWidth: number;
14
12
  }
15
- declare const Tr: <T>({ row, isLoading, onRowClick, isRowHighlighted, rowHighlightColor, defaultRowSize, actionColumnWidth, fixedWidthCells, columnsBreakpointWidth, }: TrProps<T>) => JSX.Element;
13
+ declare const Tr: <T>({ row, isLoading, onRowClick, isRowHighlighted, rowHighlightColor, defaultRowSize, actionColumnWidth, }: TrProps<T>) => JSX.Element;
16
14
  export default Tr;
@@ -4,8 +4,3 @@ export declare const ScrollableContent: import("styled-components").StyledCompon
4
4
  export declare const TableWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
5
5
  export declare const SortIndicator: import("styled-components").StyledComponent<({ onClick, isDisabled, ...props }: import("../icon").IconProps) => JSX.Element, import("styled-components").DefaultTheme, {}, never>;
6
6
  export declare const PaginationContainer: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
7
- export declare const HeaderBodyWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {
8
- isLoading: boolean;
9
- fixedWidthCells: boolean;
10
- isTableEmpty?: boolean | undefined;
11
- }, never>;
@@ -52,9 +52,8 @@ export interface TableProps<T> {
52
52
  notRemovableColumns?: string[];
53
53
  onChangeTableSettings?: onChangeTableSettings;
54
54
  actionColumnWidth?: number;
55
+ disableScrollX?: boolean;
55
56
  resetPageIndex?: boolean;
56
- columnsBreakpointWidth?: number;
57
- tableBreakpoint?: number;
58
57
  }
59
58
  export declare type onChangeTableSettings = (key: keyof PreSettedTableSettings, valueChange: Pick<PreSettedTableSettings, 'orderColumns' | 'dimensionRow' | 'notVisibleColumns'>) => void;
60
59
  export interface PreSettedTableSettings {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { SwitchProps } from '.';
3
- declare const Switch: ({ checked, onChange, color }: SwitchProps) => JSX.Element;
3
+ declare const Switch: ({ checked, color, onChange }: SwitchProps) => JSX.Element;
4
4
  export default Switch;
@@ -1,5 +1,4 @@
1
1
  import { colors } from '../../styles/types';
2
- export declare const Label: import("styled-components").StyledComponent<"label", import("styled-components").DefaultTheme, {}, never>;
3
2
  export declare const SwitchButton: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
4
3
  export declare const Input: import("styled-components").StyledComponent<"input", import("styled-components").DefaultTheme, {
5
4
  color: colors;
@@ -1,7 +1,6 @@
1
- import { InputHTMLAttributes } from 'react';
2
1
  export declare type switchColors = 'blue' | 'green';
3
2
  export interface SwitchProps {
4
3
  checked: boolean;
5
- onChange: InputHTMLAttributes<HTMLInputElement>['onChange'];
4
+ onChange: (e: boolean) => void;
6
5
  color?: switchColors;
7
6
  }