fone-design-system_v2 1.0.301 → 1.0.303

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,3 +1,3 @@
1
1
  import { Table2Props } from './types';
2
- declare const Table2: <T extends object>({ data, columns, onChange, checkbox, no, radio, selectedCell, focusedCell, onRowClick, onRowDoubleClick, isLoading, rowCountChangeScrollPosition, scrollTo, isEditMode, rowClickTriggerIdx, resetTriggerOnDataChange, noTriggerOnDataChange, reorderMode, onReorder, onCellClick, getRowProps, rowHeight, headerRowHeight, sx, }: Table2Props) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Table2: <T extends object>({ data, columns, onChange, checkbox, no, radio, selectedCell, focusedCell, onRowClick, onRowDoubleClick, isLoading, rowCountChangeScrollPosition, scrollTo, isEditMode, rowClickTriggerIdx, resetTriggerOnDataChange, noTriggerOnDataChange, reorderMode, onReorder, onCellClick, getRowProps, rowHeight, headerRowHeight, sx, emptyText, emptyIcon, emptySlot, }: Table2Props) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Table2;
@@ -1 +1,7 @@
1
- export default function EmptyMessage(): import("react/jsx-runtime").JSX.Element;
1
+ type EmptyMessageProps = {
2
+ emptyText?: string;
3
+ emptyIcon?: string | React.ReactNode;
4
+ emptySlot?: React.ReactNode;
5
+ };
6
+ export default function EmptyMessage({ emptyText, emptyIcon, emptySlot, }: EmptyMessageProps): import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -41,6 +41,9 @@ interface Props<T extends object = any> {
41
41
  rowIndex: number;
42
42
  colIndex: number;
43
43
  } | null>>;
44
+ emptyText?: string;
45
+ emptyIcon?: string | React.ReactNode;
46
+ emptySlot?: React.ReactNode;
44
47
  }
45
48
  declare const Rows: import('react').ForwardRefExoticComponent<Props<any> & import('react').RefAttributes<HTMLDivElement>>;
46
49
  export default Rows;
@@ -158,5 +158,8 @@ export interface Table2Props {
158
158
  isActive: boolean;
159
159
  isHovered: boolean;
160
160
  }) => React.HTMLAttributes<HTMLTableRowElement>;
161
+ emptyText?: string;
162
+ emptyIcon?: React.ReactNode;
163
+ emptySlot?: React.ReactNode;
161
164
  }
162
165
  export {};
@@ -1,8 +1,8 @@
1
1
  import { default as React } from 'react';
2
2
  interface FileDropZoneProps {
3
- onDropFile: (file: File) => void;
3
+ onDropFile: (files: File | File[]) => void;
4
4
  children: React.ReactNode;
5
- accept?: string;
5
+ multiple?: boolean;
6
6
  }
7
7
  declare const FileDropZone: React.ForwardRefExoticComponent<FileDropZoneProps & React.RefAttributes<HTMLDivElement>>;
8
8
  export default FileDropZone;