mantine-datatable 2.3.6 → 2.4.0

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,7 +1,9 @@
1
+ import type { ReactNode } from 'react';
1
2
  import type { DataTableSortStatus } from './DataTableSortStatus';
2
3
  export type DataTableSortProps = {
3
4
  sortStatus?: never;
4
5
  onSortStatusChange?: never;
6
+ sortIcons?: never;
5
7
  } | {
6
8
  /**
7
9
  * Current sort status (sort column accessor & direction)
@@ -11,5 +13,19 @@ export type DataTableSortProps = {
11
13
  * Callback fired after change of sort status
12
14
  */
13
15
  onSortStatusChange?: (sortStatus: DataTableSortStatus) => void;
16
+ /**
17
+ * Custom sort icons
18
+ */
19
+ sortIcons?: {
20
+ /**
21
+ * Icon to display when column is sorted ascending;
22
+ * will be rotated 180deg for descending sort
23
+ */
24
+ sorted: ReactNode;
25
+ /**
26
+ * Icon to display when column is not sorted
27
+ */
28
+ unsorted: ReactNode;
29
+ };
14
30
  };
15
31
  //# sourceMappingURL=DataTableSortProps.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"DataTableSortProps.d.ts","sourceRoot":"","sources":["../../types/DataTableSortProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAC1B;IACE,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC;CAC5B,GACD;IACE;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,mBAAmB,KAAK,IAAI,CAAC;CAChE,CAAC"}
1
+ {"version":3,"file":"DataTableSortProps.d.ts","sourceRoot":"","sources":["../../types/DataTableSortProps.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAEjE,MAAM,MAAM,kBAAkB,GAC1B;IACE,UAAU,CAAC,EAAE,KAAK,CAAC;IACnB,kBAAkB,CAAC,EAAE,KAAK,CAAC;IAC3B,SAAS,CAAC,EAAE,KAAK,CAAC;CACnB,GACD;IACE;;OAEG;IACH,UAAU,EAAE,mBAAmB,CAAC;IAEhC;;OAEG;IACH,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,mBAAmB,KAAK,IAAI,CAAC;IAE/D;;OAEG;IACH,SAAS,CAAC,EAAE;QACV;;;WAGG;QACH,MAAM,EAAE,SAAS,CAAC;QAClB;;WAEG;QACH,QAAQ,EAAE,SAAS,CAAC;KACrB,CAAC;CACH,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mantine-datatable",
3
- "version": "2.3.6",
3
+ "version": "2.4.0",
4
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, row expansion and more",
5
5
  "keywords": [
6
6
  "ui",
@@ -45,7 +45,7 @@
45
45
  "@mantine/core": "^6.0.7",
46
46
  "@mantine/hooks": "^6.0.7",
47
47
  "@tabler/icons-react": "^2.15.0",
48
- "@types/react": "^18.0.34",
48
+ "@types/react": "^18.0.35",
49
49
  "@types/react-dom": "^18.0.11",
50
50
  "esbuild": "^0.17.16",
51
51
  "react": "^18.2.0",
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataTableFooter.d.ts","sourceRoot":"","sources":["../DataTableFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,EAKL,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAkC,KAAK,YAAY,EAAkB,MAAM,OAAO,CAAC;AAE1F,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,SAAS,CAAC;AACxD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAiChE,KAAK,oBAAoB,GAAG,YAAY,CACtC,YAAY,CACV,wBAAwB,EACxB,aAAa,GAAG,gBAAgB,GAAG,qBAAqB,GAAG,0BAA0B,CACtF,EACD,wBAAwB,GAAG,uBAAuB,CACnD,GAAG;IACF,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,cAAc,EAAE,MAAM,GAAG,CAAC,CAAC,KAAK,EAAE,YAAY,KAAK,MAAM,CAAC,CAAC;IAC3D,QAAQ,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B,aAAa,EAAE,MAAM,GAAG,SAAS,CAAC;IAClC,iBAAiB,EAAE,iBAAiB,GAAG,SAAS,CAAC;IACjD,aAAa,EAAE,MAAM,CAAC;CACvB,CAAC;gCAqEY,oBAAoB,GAAG;IAAE,GAAG,EAAE,aAAa,cAAc,CAAC,CAAA;CAAE,KAAK,WAAW;AAnE1F,wBAmE2F"}
@@ -1,12 +0,0 @@
1
- import { type MantineColor, type MantineSize } from '@mantine/core';
2
- type DataTablePageSizeSelectorProps = {
3
- size: MantineSize;
4
- label: string;
5
- values: number[];
6
- value: number;
7
- onChange: (value: number) => void;
8
- color?: MantineColor;
9
- };
10
- export default function DataTablePageSizeSelector({ size, label, values, value, onChange, color, }: DataTablePageSizeSelectorProps): JSX.Element;
11
- export {};
12
- //# sourceMappingURL=DataTablePageSizeSelector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DataTablePageSizeSelector.d.ts","sourceRoot":"","sources":["../DataTablePageSizeSelector.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA6B,KAAK,YAAY,EAAE,KAAK,WAAW,EAAE,MAAM,eAAe,CAAC;AAE/F,KAAK,8BAA8B,GAAG;IACpC,IAAI,EAAE,WAAW,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,yBAAyB,CAAC,EAChD,IAAI,EACJ,KAAK,EACL,MAAM,EACN,KAAK,EACL,QAAQ,EACR,KAAK,GACN,EAAE,8BAA8B,eA+ChC"}