mantine-datatable 0.1.3 → 0.1.6

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.
package/README.md CHANGED
@@ -1,10 +1,16 @@
1
- # Mantine DataTable
1
+ # [Mantine DataTable](https://icflorescu.github.io/mantine-datatable/)
2
2
 
3
- A table component for your Mantine data-rich applications, featuring asynchronous data loading support, column sorting, custom cell data rendering, row context menu and more.
3
+ [![NPM version][npm-image]][npm-url]
4
+ [![License][license-image]][license-url]
5
+ [![Downloads][downloads-image]][downloads-url]
4
6
 
5
- ## Documentation
7
+ A table component for your Mantine UI data-rich applications, featuring asynchronous data loading support, pagination, multple rows selection, column sorting, custom cell data rendering, row context menu and more.
6
8
 
7
- Coming soon.
9
+ ![Mantine DataTable](https://user-images.githubusercontent.com/581999/187723353-0e082dbc-925b-4d0d-a14e-94c00073ee08.png)
10
+
11
+ ## Documentation and examples
12
+
13
+ See [icflorescu.github.io/mantine-datatable](https://icflorescu.github.io/mantine-datatable/).
8
14
 
9
15
  ## Supporting the author
10
16
 
@@ -13,3 +19,10 @@ If you find this package useful, please star the repository, [tweet about it](ht
13
19
  ## License
14
20
 
15
21
  The [MIT License](https://github.com/icflorescu/mantine-datatable/blob/master/LICENSE).
22
+
23
+ [npm-image]: https://img.shields.io/npm/v/mantine-datatable.svg?style=flat-square
24
+ [npm-url]: https://npmjs.org/package/mantine-datatable
25
+ [license-image]: http://img.shields.io/npm/l/mantine-datatable.svg?style=flat-square
26
+ [license-url]: LICENSE
27
+ [downloads-image]: http://img.shields.io/npm/dm/mantine-datatable.svg?style=flat-square
28
+ [downloads-url]: https://npmjs.org/package/mantine-datatable
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataTableProps } from './DataTable.props';
3
2
  export default function DataTable<T extends Record<string, unknown>>({ withBorder, borderRadius, withColumnBorders, height, minHeight, verticalAlignment, fetching, columns, idAccessor, records, selectedRecords, onSelectedRecordsChange, sortStatus, onSortStatusChange, horizontalSpacing, page, onPageChange, totalRecords, recordsPerPage, paginationSize, loaderSize, loaderVariant, loaderBackgroundBlur, noRecordsText, striped, onRowClick, rowContextMenu, ...otherProps }: DataTableProps<T>): JSX.Element;
4
3
  //# sourceMappingURL=DataTable.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../DataTable.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgDnD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACnE,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,MAAe,EACf,SAAS,EACT,iBAA4B,EAC5B,QAAQ,EACR,OAAO,EACP,UAAiB,EACjB,OAAO,EACP,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAqB,EACrB,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,aAA4B,EAC5B,OAAO,EACP,UAAU,EACV,cAAc,EACd,GAAG,UAAU,EACd,EAAE,cAAc,CAAC,CAAC,CAAC,eAqPnB"}
1
+ {"version":3,"file":"DataTable.d.ts","sourceRoot":"","sources":["../DataTable.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAgDnD,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,EACnE,UAAU,EACV,YAAY,EACZ,iBAAiB,EACjB,MAAe,EACf,SAAS,EACT,iBAA4B,EAC5B,QAAQ,EACR,OAAO,EACP,UAAiB,EACjB,OAAO,EACP,eAAe,EACf,uBAAuB,EACvB,UAAU,EACV,kBAAkB,EAClB,iBAAiB,EACjB,IAAI,EACJ,YAAY,EACZ,YAAY,EACZ,cAAc,EACd,cAAqB,EACrB,UAAU,EACV,aAAa,EACb,oBAAoB,EACpB,aAA4B,EAC5B,OAAO,EACP,UAAU,EACV,cAAc,EACd,GAAG,UAAU,EACd,EAAE,cAAc,CAAC,CAAC,CAAC,eAqPnB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  declare type DataTableEmptyProps = {
3
2
  text: string;
4
3
  pt: number;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableEmpty.d.ts","sourceRoot":"","sources":["../DataTableEmpty.tsx"],"names":[],"mappings":";AA2BA,aAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,mBAAmB,eAYnF"}
1
+ {"version":3,"file":"DataTableEmpty.d.ts","sourceRoot":"","sources":["../DataTableEmpty.tsx"],"names":[],"mappings":"AA2BA,aAAK,mBAAmB,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,OAAO,CAAC;CACjB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,cAAc,CAAC,EAAE,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,mBAAmB,eAYnF"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { MantineSize, MantineTheme } from '@mantine/core';
3
2
  declare type DataTableLoaderProps = {
4
3
  pt: number;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableLoader.d.ts","sourceRoot":"","sources":["../DataTableLoader.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAgC,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAqBxF,aAAK,oBAAoB,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,WAAW,GAAG,SAAS,CAAC;IACpC,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,EAAE,EACF,EAAE,EACF,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,EAAE,oBAAoB,eAYtB"}
1
+ {"version":3,"file":"DataTableLoader.d.ts","sourceRoot":"","sources":["../DataTableLoader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgC,WAAW,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAqBxF,aAAK,oBAAoB,GAAG;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,oBAAoB,EAAE,MAAM,GAAG,SAAS,CAAC;IACzC,UAAU,EAAE,WAAW,GAAG,SAAS,CAAC;IACpC,aAAa,EAAE,YAAY,CAAC,QAAQ,CAAC,GAAG,SAAS,CAAC;CACnD,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,eAAe,CAAC,EACtC,EAAE,EACF,EAAE,EACF,QAAQ,EACR,oBAAoB,EACpB,UAAU,EACV,aAAa,GACd,EAAE,oBAAoB,eAYtB"}
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { DataTableColumn } from './DataTable.props';
3
2
  declare type DataTableRowCellProps<T> = {
4
3
  record: T;
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableRowCell.d.ts","sourceRoot":"","sources":["../DataTableRowCell.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAWpD,aAAK,qBAAqB,CAAC,CAAC,IAAI;IAC9B,MAAM,EAAE,CAAC,CAAC;CACX,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,mBAAmB,GAAG,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC,CAAC;AAEnH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,EAAE,EAC1C,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,aAAa,EACb,KAAK,EACL,QAAQ,EACR,MAAM,GACP,EAAE,qBAAqB,CAAC,CAAC,CAAC,sBAkB1B"}
1
+ {"version":3,"file":"DataTableRowCell.d.ts","sourceRoot":"","sources":["../DataTableRowCell.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAWpD,aAAK,qBAAqB,CAAC,CAAC,IAAI;IAC9B,MAAM,EAAE,CAAC,CAAC;CACX,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,mBAAmB,GAAG,eAAe,GAAG,OAAO,GAAG,UAAU,GAAG,QAAQ,CAAC,CAAC;AAEnH,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,CAAC,EAAE,EAC1C,iBAAiB,EACjB,MAAM,EACN,QAAQ,EACR,aAAa,EACb,KAAK,EACL,QAAQ,EACR,MAAM,GACP,EAAE,qBAAqB,CAAC,CAAC,CAAC,sBAkB1B"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "mantine-datatable",
3
- "version": "0.1.3",
4
- "description": "Datatable component for Mantine UI, featuring asynchronous data loading support, sorting, pagination, context menu and more",
3
+ "version": "0.1.6",
4
+ "description": "Datatable component for Mantine UI, featuring asynchronous data loading support, pagination, multple rows selection, column sorting, custom cell data rendering, row context menu and more",
5
5
  "keywords": [
6
6
  "ui",
7
7
  "mantine",
@@ -35,14 +35,14 @@
35
35
  ],
36
36
  "scripts": {
37
37
  "dev": "rm -rf dist",
38
- "build": "node build.mjs && tsc --emitDeclarationOnly",
38
+ "build": "rm -rf dist && NODE_NO_WARNINGS=1 node build.mjs && tsc --emitDeclarationOnly",
39
39
  "lint": "eslint *.ts* && tsc --noEmit"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@mantine/core": "^5.2.4",
43
43
  "@mantine/hooks": "^5.2.4",
44
44
  "@types/lodash": "^4.14.184",
45
- "@types/react": "^18.0.17",
45
+ "@types/react": "^18.0.18",
46
46
  "@types/react-dom": "^18.0.6",
47
47
  "esbuild": "^0.15.6",
48
48
  "lodash": "^4.17.21",