@bluemarble/bm-components 0.0.85 → 0.0.87

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,4 +1,4 @@
1
- export declare type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'in';
1
+ export declare type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'in' | 'notEqual' | 'notIn';
2
2
  export declare type FilterProps = {
3
3
  id?: string;
4
4
  prop: string;
@@ -8,7 +8,7 @@ export declare type FilterProps = {
8
8
  export declare function useFilter(): {
9
9
  filters: FilterProps[];
10
10
  filterBy: (newFilter: FilterProps) => void;
11
- removeFilter: (prop: string) => void;
11
+ removeFilter: (prop: string, isId?: boolean) => void;
12
12
  createFilter: typeof createFilter;
13
13
  clearAllFilters: () => void;
14
14
  };
package/dist/index.d.ts CHANGED
@@ -228,7 +228,7 @@ interface GridProps {
228
228
  }
229
229
  declare function BaseGrid({ columns, children, fixedColumns, paperProps, tableBodyProps, tableHeadProps, tableProps, sortedDirection, sortedBy, onSortBy, dense, striped, bordered, currentPage, totalNumberOfPages, onPageChange, rowsPerPage, setRowsPerPage, rowsPerPageOptions, hideFooter, isLoading }: GridProps): JSX.Element;
230
230
 
231
- declare type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'in';
231
+ declare type FilterCompareType = 'gte' | 'lte' | 'lt' | 'gt' | 'equal' | 'in' | 'notEqual' | 'notIn';
232
232
  declare type FilterProps = {
233
233
  id?: string;
234
234
  prop: string;
@@ -238,7 +238,7 @@ declare type FilterProps = {
238
238
  declare function useFilter(): {
239
239
  filters: FilterProps[];
240
240
  filterBy: (newFilter: FilterProps) => void;
241
- removeFilter: (prop: string) => void;
241
+ removeFilter: (prop: string, isId?: boolean) => void;
242
242
  createFilter: typeof createFilter;
243
243
  clearAllFilters: () => void;
244
244
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bluemarble/bm-components",
3
- "version": "0.0.85",
3
+ "version": "0.0.87",
4
4
  "description": "BM components",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -9,6 +9,7 @@
9
9
  ],
10
10
  "types": "dist/index.d.ts",
11
11
  "scripts": {
12
+ "dev": "npx rollup -c --watch",
12
13
  "rollup": "rollup -c",
13
14
  "deploy": "rollup -c && npm publish"
14
15
  },