@fattureincloud/fic-design-system 0.7.3 → 0.7.5-tmp

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,5 +22,6 @@ export interface DatePickerImplProps extends Omit<ReactDatePickerProps, 'onChang
22
22
  customButtons?: CustomButtonProps[];
23
23
  renderCustomFooter?: RenderCustomFooterType;
24
24
  isPrefilled?: boolean;
25
+ onChangeManually?: (date: Date | null) => void;
25
26
  }
26
27
  export declare type DatePickerProps = LabelProps & DatePickerImplProps;
@@ -10,6 +10,8 @@ export declare const CodeInputWrapper: import("styled-components").StyledCompone
10
10
  gap: number | undefined;
11
11
  }, never>;
12
12
  export declare const SingleInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
+ export declare const SeparatorWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
+ export declare const Separator: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
13
15
  export declare const TelSelectWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
14
16
  export declare const TelInputWrapper: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, {}, never>;
15
17
  export {};
@@ -27,6 +27,8 @@ export declare type InputCodeProps = LabelProps & CommonFormTypes & Omit<HTMLInp
27
27
  inputType?: 'code';
28
28
  onChange?: (code: (string | null)[]) => void;
29
29
  style?: CSSProperties;
30
+ separatorEvery?: number;
31
+ separator?: JSX.Element;
30
32
  };
31
33
  export declare type InputTelephoneProps = LabelProps & CommonFormTypes & {
32
34
  className?: string;
@@ -7,6 +7,6 @@ declare type Props<CellProps> = {
7
7
  hover?: boolean;
8
8
  rowSize?: RowSize;
9
9
  onRowClick?: (row: Row<CellProps>) => void;
10
- } & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef;
10
+ } & CustomCellProps & AccessorColumnDef<CellProps> & ActionColumnDef<CellProps> & AdditionalColumnDef<CellProps>;
11
11
  declare const CustomCell: <CellProps>({ content, isEditable, tag, unitSymbol, headline, leadingIcon, avatar, actionType, row, rowSize, onActionChange, isFavorite, isToggled, hover, onChange, trailingMicroTag, minWidth, rowActions, context, onRowClick, }: Props<CellProps>) => JSX.Element;
12
12
  export default CustomCell;
@@ -4,6 +4,6 @@ import { AccessorColumnDef, AdditionalColumnDef, CustomCellProps } from '../../.
4
4
  declare type CustomInputProps<CellProps> = {
5
5
  row: Row<CellProps>;
6
6
  hover?: boolean;
7
- } & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'> & AdditionalColumnDef;
7
+ } & CustomCellProps & Omit<AccessorColumnDef<CellProps>, 'isEditable'> & AdditionalColumnDef<CellProps>;
8
8
  declare const CustomInput: <CellProps>({ hover, onChange, row, unitSymbol, content, }: CustomInputProps<CellProps>) => JSX.Element;
9
9
  export default CustomInput;
@@ -0,0 +1 @@
1
+ export declare const THead: import("styled-components").StyledComponent<"thead", import("styled-components").DefaultTheme, {}, never>;
@@ -1,6 +1,7 @@
1
1
  import { CellProps } from '../types';
2
2
  export interface DataType {
3
3
  id: string;
4
+ customCell?: CellProps;
4
5
  supplier: CellProps;
5
6
  description: CellProps;
6
7
  payment: CellProps;
@@ -37,7 +37,7 @@ export interface TableProps<T> {
37
37
  paginationNextText?: string;
38
38
  onPaginationChange?: (pagination: PaginationState) => void;
39
39
  renderEmptyState?: () => JSX.Element;
40
- onRowClick?: (row: Row<CellProps>) => void;
40
+ onRowClick?: (row: Row<T>) => void;
41
41
  }
42
42
  interface SettingsDropdownConfig {
43
43
  settingsTooltip?: TooltipProps;
@@ -85,26 +85,28 @@ export declare type ActionColumnDef<T> = {
85
85
  rowActions?: RowActions<T>;
86
86
  settingsDropdownConfig?: SettingsDropdownConfig;
87
87
  } & IdentifiedColumnDef<T, CellProps>;
88
- export declare type AdditionalColumnDef = {
88
+ export declare type AdditionalColumnDef<T> = {
89
89
  unitSymbol?: string;
90
90
  minWidth?: number;
91
91
  headerTooltip?: TooltipProps;
92
+ customCell?: (row: Row<T>) => JSX.Element;
92
93
  };
93
94
  export declare type ColumnsType<T> = ({
94
95
  columnDefType: ColumnDefType.ACCESSOR;
95
- columnDef: AccessorColumnDef<T> & AdditionalColumnDef;
96
+ columnDef: AccessorColumnDef<T> & AdditionalColumnDef<T>;
96
97
  } & BaseColumnsType<T>) | ({
97
98
  columnDefType: ColumnDefType.DISPLAY;
98
- columnDef: DisplayColumnDef<T, unknown> & AdditionalColumnDef;
99
+ columnDef: DisplayColumnDef<T, unknown> & AdditionalColumnDef<T>;
99
100
  } & BaseColumnsType<T>) | ({
100
101
  columnDefType: ColumnDefType.ACTION;
101
- columnDef: ActionColumnDef<T> & AdditionalColumnDef;
102
+ columnDef: ActionColumnDef<T> & AdditionalColumnDef<T>;
102
103
  } & BaseColumnsType<T>) | ({
103
104
  columnDefType: ColumnDefType.GROUP;
104
105
  columnDef: GroupColumnDef<T, unknown>;
105
106
  } & BaseColumnsType<T>);
106
107
  interface BaseColumnsType<T> {
107
108
  key: keyof T | Lowercase<keyof typeof ActionType>;
109
+ customCell?: () => JSX.Element;
108
110
  }
109
111
  interface CustomCellWithAvatar extends BasicCustomCell {
110
112
  avatar?: AvatarProps;