1mpacto-react-ui 0.0.83 → 0.0.84

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.
@@ -4,5 +4,5 @@ import { ITable, IVirtualizationHead, IVirtualizationTable, ITableConfig } from
4
4
  export declare const ConfigTable: () => ITableConfig;
5
5
  export declare const VirtualizationHead: React.ForwardRefExoticComponent<Omit<IVirtualizationHead, "ref"> & React.RefAttributes<HTMLTableSectionElement>>;
6
6
  export declare const VirtualizationTable: ({ style, context, ...props }: IVirtualizationTable) => import("react/jsx-runtime").JSX.Element;
7
- declare const Table: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
7
+ declare const Table: <T>({ tableInstance, classNameWrapperTable, classNameTable, collapseAll, handlerRowClick, privillageRowClick, virtualization, virtualizationProps, headerId, tbodyTrId, maxHeight, idCalculateHeight, kind, componentSortASC, componentSortDESC, scrollTop, emptyPlaceholder, variant, renderSubComponent, }: ITable<T>) => import("react/jsx-runtime").JSX.Element;
8
8
  export default Table;
@@ -22,6 +22,7 @@ export interface ITable<T = unknown> {
22
22
  componentSortDESC?: Element | React.ReactNode | React.ReactNode[];
23
23
  scrollTop?: boolean;
24
24
  emptyPlaceholder?: Element | React.ReactNode | React.ReactNode[];
25
+ renderSubComponent?: (original: T, row: Row<T>) => React.ReactNode | React.ReactNode[];
25
26
  }
26
27
  export interface INonVirtualization<T = unknown> {
27
28
  tableInstance: ITableTanstack<T>;
@@ -37,11 +38,13 @@ export interface INonVirtualization<T = unknown> {
37
38
  componentSortDESC: Element | React.ReactNode | React.ReactNode[];
38
39
  classNamePointer: string;
39
40
  emptyPlaceholder?: Element | React.ReactNode | React.ReactNode[];
41
+ renderSubComponent?: (original: T, row: Row<T>) => React.ReactNode | React.ReactNode[];
40
42
  }
41
- export interface IVirtualizationProps extends Omit<ITableVirtualization, 'typeHight' | 'itemContent' | 'fixedHeaderContent'> {
43
+ export interface IVirtualizationProps extends Omit<ITableVirtualization, 'typeHight' | 'itemContent' | 'fixedHeaderContent' | 'itemSizeNames'> {
42
44
  typeHight?: 'min-max' | 'container';
43
45
  itemContent?: (Wrapper: React.ComponentType<IWrapperProps>, index: number, data: unknown, context: unknown) => React.ReactNode;
44
46
  fixedHeaderContent?: (() => React.ReactNode) | (() => React.ReactNode[]);
47
+ itemSizeNames?: string[];
45
48
  }
46
49
  export interface IVirtualization<T = unknown> {
47
50
  tableInstance: ITableTanstack<T>;
@@ -56,6 +59,7 @@ export interface IVirtualization<T = unknown> {
56
59
  componentSortDESC: Element | React.ReactNode | React.ReactNode[];
57
60
  classNamePointer: string;
58
61
  emptyPlaceholder?: Element | React.ReactNode | React.ReactNode[];
62
+ renderSubComponent?: (original: T, row: Row<T>) => React.ReactNode | React.ReactNode[];
59
63
  }
60
64
  export interface IVirtualizationHead extends React.HTMLAttributes<HTMLTableSectionElement> {
61
65
  context?: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "1mpacto-react-ui",
3
3
  "private": false,
4
- "version": "0.0.83",
4
+ "version": "0.0.84",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "copy:toastify-css": "cp ./node_modules/react-toastify/dist/ReactToastify.css ./dist/assets/toast.css",