@bluemarble/bm-components 0.0.36 → 0.0.37

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,4 @@
1
+ /// <reference types="react" />
1
2
  declare type GridPaginationProps = {
2
3
  dense: boolean;
3
4
  currentPage: number;
@@ -7,11 +7,11 @@ interface UseGridProps {
7
7
  }
8
8
  export declare function useGrid<T extends Record<string, any>>({ columns, filters, rowsPerPageOptions, }: UseGridProps): {
9
9
  data: any[];
10
- defaultData: T[];
11
10
  set: (data: T[]) => void;
12
11
  onSortBy: (prop: string) => void;
13
12
  sortedBy: string;
14
- sortedDirection: "asc" | "desc";
13
+ defaultData: T[];
14
+ sortedDirection: "desc" | "asc";
15
15
  columns: ColumnsProps[];
16
16
  currentPage: number;
17
17
  totalNumberOfPages: number;
package/dist/index.d.ts CHANGED
@@ -249,11 +249,11 @@ interface UseGridProps {
249
249
  }
250
250
  declare function useGrid<T extends Record<string, any>>({ columns, filters, rowsPerPageOptions, }: UseGridProps): {
251
251
  data: any[];
252
- defaultData: T[];
253
252
  set: (data: T[]) => void;
254
253
  onSortBy: (prop: string) => void;
255
254
  sortedBy: string;
256
- sortedDirection: "asc" | "desc";
255
+ defaultData: T[];
256
+ sortedDirection: "desc" | "asc";
257
257
  columns: ColumnsProps[];
258
258
  currentPage: number;
259
259
  totalNumberOfPages: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluemarble/bm-components",
3
- "version": "0.0.36",
3
+ "version": "0.0.37",
4
4
  "description": "BM components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",