@bluemarble/bm-components 0.0.46 → 0.0.48

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.
@@ -7,10 +7,10 @@ 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;
13
+ defaultData: T[];
14
14
  sortedDirection: "desc" | "asc";
15
15
  columns: ColumnsProps[];
16
16
  currentPage: number;
@@ -14,3 +14,4 @@ export { FilterCompareType, FilterProps, createFilter, useFilter, } from "./hook
14
14
  export { useEvent } from "./hooks/useEvent";
15
15
  export { useLoading } from "./hooks/useLoading";
16
16
  export { Modal } from "./Modal";
17
+ export { GetInputLabel } from "./utils/GetInputLabel";
@@ -0,0 +1,2 @@
1
+ import { ColumnsProps } from "../BaseGrid";
2
+ export declare function GetInputLabel(columns: ColumnsProps[]): (columnName: string) => string;
package/dist/index.d.ts CHANGED
@@ -249,10 +249,10 @@ 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;
255
+ defaultData: T[];
256
256
  sortedDirection: "desc" | "asc";
257
257
  columns: ColumnsProps[];
258
258
  currentPage: number;
@@ -276,4 +276,6 @@ declare type ModalProps = {
276
276
  } & ModalProps$1;
277
277
  declare const Modal: ({ open, onClose, ...rest }: ModalProps) => JSX.Element;
278
278
 
279
- export { Autocomplete, BaseGrid, Checkbox, ColumnTitleProps, ColumnsProps, EditableTableCell, FilterCompareType, FilterProps, Grid, IFilter, Input, InputMask, LargeButton, Modal, Radio, Select, Switch, TabPanel, TabPanelProps, Td, Tr, createFilter, filterData, getTabProps, useEvent, useFilter, useGrid, useLoading };
279
+ declare function GetInputLabel(columns: ColumnsProps[]): (columnName: string) => string;
280
+
281
+ export { Autocomplete, BaseGrid, Checkbox, ColumnTitleProps, ColumnsProps, EditableTableCell, FilterCompareType, FilterProps, GetInputLabel, Grid, IFilter, Input, InputMask, LargeButton, Modal, Radio, Select, Switch, TabPanel, TabPanelProps, Td, Tr, createFilter, filterData, getTabProps, useEvent, useFilter, useGrid, useLoading };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluemarble/bm-components",
3
- "version": "0.0.46",
3
+ "version": "0.0.48",
4
4
  "description": "BM components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",