mantine-datatable 0.1.2 → 0.1.5

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,10 @@
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
+ 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.
4
4
 
5
- ## Documentation
5
+ ## Documentation and examples
6
6
 
7
- Coming soon.
7
+ See [icflorescu.github.io/mantine-datatable](https://icflorescu.github.io/mantine-datatable/).
8
8
 
9
9
  ## Supporting the author
10
10
 
@@ -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.2",
4
- "description": "Datatable component for Mantine UI, featuring asynchronous data loading support, sorting, pagination, context menu and more",
3
+ "version": "0.1.5",
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",
@@ -15,6 +15,7 @@
15
15
  "typescript"
16
16
  ],
17
17
  "repository": "icflorescu/mantine-datatable",
18
+ "homepage": "https://icflorescu.github.io/mantine-datatable/",
18
19
  "bugs": {
19
20
  "url": "https://github.com/icflorescu/mantine-datatable/issues"
20
21
  },
@@ -34,14 +35,14 @@
34
35
  ],
35
36
  "scripts": {
36
37
  "dev": "rm -rf dist",
37
- "build": "node build.mjs && tsc --emitDeclarationOnly",
38
+ "build": "rm -rf dist && NODE_NO_WARNINGS=1 node build.mjs && tsc --emitDeclarationOnly",
38
39
  "lint": "eslint *.ts* && tsc --noEmit"
39
40
  },
40
41
  "devDependencies": {
41
42
  "@mantine/core": "^5.2.4",
42
43
  "@mantine/hooks": "^5.2.4",
43
44
  "@types/lodash": "^4.14.184",
44
- "@types/react": "^18.0.17",
45
+ "@types/react": "^18.0.18",
45
46
  "@types/react-dom": "^18.0.6",
46
47
  "esbuild": "^0.15.6",
47
48
  "lodash": "^4.17.21",