@hybr1d-tech/charizard 0.4.22 → 0.4.24

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.
@@ -76,14 +76,11 @@ export interface TableV2Props {
76
76
  items_on_page: number;
77
77
  page_no: number;
78
78
  };
79
- loader: React.ReactNode;
80
- fetchNextPage: () => void;
81
- fetchPrevPage: () => void;
82
79
  page: number;
83
80
  setPage: (page: number) => void;
84
81
  limit: number;
85
82
  setLimit: (limit: number) => void;
86
- defaultLimit?: string;
83
+ defaultLimit: string;
87
84
  };
88
85
  emptyStateConfig?: {
89
86
  icon: string;
@@ -102,5 +99,13 @@ export interface TableV2Props {
102
99
  tableStyleConfig?: {
103
100
  maxHeight: string;
104
101
  };
102
+ /**
103
+ * custom columns
104
+ */
105
+ customColumnConfig?: {};
106
+ /**
107
+ * export config (csv)
108
+ */
109
+ exportConfig?: {};
105
110
  }
106
- export declare function TableV2({ data, loaderConfig, columns, filterConfig, sortConfig, rowSelectionConfig, actionsConfig, searchConfig, totalText, paginationConfig, emptyStateConfig, headerText, tableStyleConfig, }: TableV2Props): import("react/jsx-runtime").JSX.Element;
111
+ export declare function TableV2({ data, loaderConfig, columns, filterConfig, sortConfig, rowSelectionConfig, actionsConfig, searchConfig, totalText, paginationConfig, emptyStateConfig, headerText, tableStyleConfig, customColumnConfig, exportConfig, }: TableV2Props): import("react/jsx-runtime").JSX.Element;
@@ -2,7 +2,7 @@ interface InventoryStore {
2
2
  query: InventoryQueries;
3
3
  dispatch: (action: {
4
4
  type: INV_ACTION_TYPES;
5
- payload: Partial<InventoryQueries> | null;
5
+ payload: string | number | null;
6
6
  }) => void;
7
7
  }
8
8
  declare const invInitialQueries: {
@@ -28,7 +28,9 @@ export declare enum INV_ACTION_TYPES {
28
28
  FILTER = "filter",
29
29
  RESET_FILTERS = "reset_filters",
30
30
  RESET_ALL = "reset_all",
31
- SELECTOR_FILTER = "selector_filter"
31
+ SELECTOR_FILTER = "selector_filter",
32
+ PAGE = "page",
33
+ LIMIT = "limit"
32
34
  }
33
35
  export declare const invQueryReducer: (query: any, { payload, type }: {
34
36
  payload: any;
@@ -5,8 +5,10 @@ interface TableMetaHeaderProps {
5
5
  totalText: TableV2Props['totalText'];
6
6
  searchConfig: TableV2Props['searchConfig'];
7
7
  filterConfig: TableV2Props['filterConfig'];
8
+ customColumnConfig: TableV2Props['customColumnConfig'];
9
+ exportConfig: TableV2Props['exportConfig'];
8
10
  rowSelection: {};
9
11
  setRowSelection: React.Dispatch<React.SetStateAction<{}>>;
10
12
  }
11
- export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, rowSelection, setRowSelection, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
13
+ export default function TableMetaHeader({ rowSelectionConfig, totalText, searchConfig, filterConfig, customColumnConfig, exportConfig, rowSelection, setRowSelection, }: TableMetaHeaderProps): import("react/jsx-runtime").JSX.Element;
12
14
  export {};
@@ -1,6 +1,6 @@
1
1
  interface TableLimitProps {
2
2
  setLimit: (l: number) => void;
3
- defaultLimit?: string;
3
+ defaultLimit: string;
4
4
  totalItems?: number;
5
5
  }
6
6
  export default function TableLimit({ setLimit, defaultLimit, totalItems }: TableLimitProps): import("react/jsx-runtime").JSX.Element;