mantine-datatable 2.6.0 → 2.6.2
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 +23 -0
- package/dist/DataTableHeader.d.ts +1 -1
- package/dist/DataTableHeader.d.ts.map +1 -1
- package/dist/DataTableHeaderCell.d.ts.map +1 -1
- package/dist/DataTableScrollArea.d.ts +1 -1
- package/dist/DataTableScrollArea.d.ts.map +1 -1
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +3 -3
- package/dist/types/DataTableColumnProps.d.ts +2 -2
- package/dist/types/DataTableColumnProps.d.ts.map +1 -1
- package/dist/types/DataTableProps.d.ts +1 -1
- package/dist/types/DataTableProps.d.ts.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -13,6 +13,29 @@ The lightweight, dependency-free, "dark-theme aware" **table component** for you
|
|
|
13
13
|
|
|
14
14
|
[](https://icflorescu.github.io/mantine-datatable/)
|
|
15
15
|
|
|
16
|
+
## Features
|
|
17
|
+
|
|
18
|
+
- **Lightweight** - no external dependencies, no bloat
|
|
19
|
+
- **Dark theme aware** - works out of the box with Mantine's dark theme
|
|
20
|
+
- **Fully customizable** - you can customize the look and feel of the table and its components
|
|
21
|
+
- **[Asynchronous data loading](https://icflorescu.github.io/mantine-datatable/examples/asynchronous-data-loading)** - load data from a remote API endpoint and show a loading indicator while waiting for the response
|
|
22
|
+
- **[Pagination](https://icflorescu.github.io/mantine-datatable/examples/pagination)** - split large data sets into pages
|
|
23
|
+
- **[Column sorting](https://icflorescu.github.io/mantine-datatable/examples/sorting)** - sort data by one or more columns
|
|
24
|
+
- **[Custom cell data rendering](https://icflorescu.github.io/mantine-datatable/examples/column-properties)** - render cell data using custom components
|
|
25
|
+
- **[Row context menu](https://icflorescu.github.io/mantine-datatable/examples/row-context-menu)** - show a context menu when right-clicking on a row
|
|
26
|
+
- **[Row expansion](https://icflorescu.github.io/mantine-datatable/examples/expanding-rows)** - expand a row to show additional details
|
|
27
|
+
- **[Nesting](https://icflorescu.github.io/mantine-datatable/examples/nested-tables)** - nest tables to show hierarchical data
|
|
28
|
+
- **[Additive batch rows selection](https://icflorescu.github.io/mantine-datatable/examples/records-selection)** - select or deselect ranges of rows using the Shift key
|
|
29
|
+
- **[Automatically-scrollable](https://icflorescu.github.io/mantine-datatable/examples/scrollable-vs-auto-height)** - automatically scrollable or auto-height
|
|
30
|
+
- **[AutoAnimate support](https://icflorescu.github.io/mantine-datatable/examples/using-with-auto-animate)** - animate row sorting, addition and removal
|
|
31
|
+
- **More** - check out the [full documentation](https://icflorescu.github.io/mantine-datatable/)
|
|
32
|
+
|
|
33
|
+
## Trusted by the community
|
|
34
|
+
|
|
35
|
+
[Mantine DataTable](https://icflorescu.github.io/mantine-datatable/) is used by developers and startups around the world, including: [exdatis.ai](https://exdatis.ai/), [teachfloor](https://www.teachfloor.com/), [MARKUP](https://www.getmarkup.com/), [BookieBase](https://bookiebase.ie/), [zipline](https://zipline.diced.tech/), [Pachtop](https://github.com/pacholoamit/pachtop), [Ganymede](https://github.com/Zibbp/ganymede), [COH3 Stats](https://coh3stats.com/) and many more.
|
|
36
|
+
|
|
37
|
+
If you're using Mantine DataTable in your project, please drop me a line at the email address listed in my [GitHub profile](https://github.com/icflorescu) and I'll be happy to add your project to the list and on the [documentation website](https://icflorescu.github.io/mantine-datatable/).
|
|
38
|
+
|
|
16
39
|
## Full documentation and examples
|
|
17
40
|
|
|
18
41
|
Visit [icflorescu.github.io/mantine-datatable](https://icflorescu.github.io/mantine-datatable/) to view the full documentation and learn how to use it by browsing a comprehensive list of examples.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { type CSSObject } from '@mantine/core';
|
|
2
2
|
import { type ForwardedRef } from 'react';
|
|
3
3
|
import type { DataTableColumn, DataTableSortProps } from './types';
|
|
4
|
-
import { DataTableColumnGroup } from './types/DataTableColumnGroup';
|
|
4
|
+
import type { DataTableColumnGroup } from './types/DataTableColumnGroup';
|
|
5
5
|
type DataTableHeaderProps<T> = {
|
|
6
6
|
className?: string;
|
|
7
7
|
style?: CSSObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableHeader.d.ts","sourceRoot":"","sources":["../DataTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1E,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"DataTableHeader.d.ts","sourceRoot":"","sources":["../DataTableHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAgB,KAAK,SAAS,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,OAAO,CAAC;AAI1E,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACnE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAczE,KAAK,oBAAoB,CAAC,CAAC,IAAI;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;IAC7D,OAAO,EAAE,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC;IAC9B,MAAM,EAAE,SAAS,oBAAoB,CAAC,CAAC,CAAC,EAAE,GAAG,SAAS,CAAC;IACvD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,sBAAsB,EAAE,OAAO,CAAC;IAChC,iBAAiB,EAAE,CAAC,MAAM,IAAI,CAAC,GAAG,SAAS,CAAC;IAC5C,sBAAsB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChD,iBAAiB,EAAE,OAAO,CAAC;CAC5B,CAAC;;SAmFgD,aAAa,uBAAuB,CAAC;MAAO,WAAW;AAjFzG,wBAiF0G"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableHeaderCell.d.ts","sourceRoot":"","sources":["../DataTableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,YAAY,EAAE,KAAK,EAAE,EAAE,MAAM,eAAe,CAAC;AAGlH,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"DataTableHeaderCell.d.ts","sourceRoot":"","sources":["../DataTableHeaderCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAyD,KAAK,YAAY,EAAE,KAAK,EAAE,EAAE,MAAM,eAAe,CAAC;AAGlH,OAAO,KAAK,EAAsB,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAsCnE,KAAK,wBAAwB,CAAC,CAAC,IAAI;IACjC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,EAAE,CAAC,EAAE,EAAE,CAAC;IACR,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,iBAAiB,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,GAAG,SAAS,CAAC;IAC1E,KAAK,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,UAAU,EAAE,kBAAkB,CAAC,YAAY,CAAC,CAAC;IAC7C,SAAS,EAAE,kBAAkB,CAAC,WAAW,CAAC,CAAC;IAC3C,kBAAkB,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;CAC9D,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,UAAU,GAAG,UAAU,GAAG,eAAe,GAAG,OAAO,GAAG,QAAQ,GAAG,WAAW,CAAC,CAAC;AAuB3G,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,CAAC,EAAE,EAC7C,SAAS,EACT,EAAE,EACF,KAAK,EACL,QAAQ,EACR,iBAAiB,EACjB,KAAK,EACL,QAAQ,EACR,SAAS,EACT,aAAa,EACb,KAAK,EACL,UAAU,EACV,kBAAkB,EAClB,MAAM,EACN,SAAS,GACV,EAAE,wBAAwB,CAAC,CAAC,CAAC,kDAoE7B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTableScrollArea.d.ts","sourceRoot":"","sources":["../DataTableScrollArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"DataTableScrollArea.d.ts","sourceRoot":"","sources":["../DataTableScrollArea.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiC,eAAe,EAAE,MAAM,eAAe,CAAC;AAC/E,OAAO,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AA4E5C,KAAK,wBAAwB,GAAG;IAC9B,gBAAgB,EAAE,OAAO,CAAC;IAC1B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB,EAAE,MAAM,IAAI,CAAC;IACnC,WAAW,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;IACjC,eAAe,CAAC,EAAE,IAAI,CAAC,eAAe,EAAE,YAAY,GAAG,QAAQ,GAAG,wBAAwB,CAAC,CAAC;IAC5F,QAAQ,EAAE,SAAS,CAAC;CACrB,CAAC;AAEF,MAAM,CAAC,OAAO,UAAU,mBAAmB,CAAC,EAC1C,gBAAgB,EAChB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EACnB,YAAY,EACZ,YAAY,EACZ,sBAAsB,EACtB,QAAQ,EACR,WAAW,EACX,eAAe,GAChB,EAAE,wBAAwB,2CAwB1B"}
|