@espresso-lab/mantine-data-table 1.0.0 → 1.0.1
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 +10 -50
- package/package.json +7 -6
package/README.md
CHANGED
|
@@ -1,54 +1,14 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Mantine Data Table 🚀
|
|
2
2
|
|
|
3
|
-
This
|
|
3
|
+
This is a simple wrapper for the [Mantine Datatable](https://icflorescu.github.io/mantine-datatable/) library to work
|
|
4
|
+
with a single configuration object.
|
|
4
5
|
|
|
5
|
-
|
|
6
|
+
[](#license)
|
|
7
|
+
[](https://www.npmjs.com/package/@espresso-lab/mantine-data-table)
|
|
8
|
+
[](https://www.npmjs.com/package/@espresso-lab/mantine-data-table)
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
- [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
|
|
10
|
+
## Installation
|
|
9
11
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
```js
|
|
15
|
-
export default tseslint.config({
|
|
16
|
-
extends: [
|
|
17
|
-
// Remove ...tseslint.configs.recommended and replace with this
|
|
18
|
-
...tseslint.configs.recommendedTypeChecked,
|
|
19
|
-
// Alternatively, use this for stricter rules
|
|
20
|
-
...tseslint.configs.strictTypeChecked,
|
|
21
|
-
// Optionally, add this for stylistic rules
|
|
22
|
-
...tseslint.configs.stylisticTypeChecked,
|
|
23
|
-
],
|
|
24
|
-
languageOptions: {
|
|
25
|
-
// other options...
|
|
26
|
-
parserOptions: {
|
|
27
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
28
|
-
tsconfigRootDir: import.meta.dirname,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
})
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
|
|
35
|
-
|
|
36
|
-
```js
|
|
37
|
-
// eslint.config.js
|
|
38
|
-
import reactX from 'eslint-plugin-react-x'
|
|
39
|
-
import reactDom from 'eslint-plugin-react-dom'
|
|
40
|
-
|
|
41
|
-
export default tseslint.config({
|
|
42
|
-
plugins: {
|
|
43
|
-
// Add the react-x and react-dom plugins
|
|
44
|
-
'react-x': reactX,
|
|
45
|
-
'react-dom': reactDom,
|
|
46
|
-
},
|
|
47
|
-
rules: {
|
|
48
|
-
// other rules...
|
|
49
|
-
// Enable its recommended typescript rules
|
|
50
|
-
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
-
...reactDom.configs.recommended.rules,
|
|
52
|
-
},
|
|
53
|
-
})
|
|
54
|
-
```
|
|
12
|
+
```bash
|
|
13
|
+
npm i @espresso-lab/mantine-data-table
|
|
14
|
+
```
|
package/package.json
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
"name": "@espresso-lab/mantine-data-table",
|
|
3
3
|
"private": false,
|
|
4
4
|
"description": "Mantine UI Data Table component",
|
|
5
|
-
"version": "1.0.
|
|
5
|
+
"version": "1.0.1",
|
|
6
6
|
"type": "module",
|
|
7
|
-
"main": "dist/index.umd.js",
|
|
8
|
-
"module": "dist/index.es.js",
|
|
9
|
-
"types": "dist/index.d.ts",
|
|
7
|
+
"main": "./dist/index.umd.js",
|
|
8
|
+
"module": "./dist/index.es.js",
|
|
9
|
+
"types": "./dist/index.d.ts",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"author": {
|
|
12
12
|
"name": "Espresso Lab",
|
|
@@ -20,12 +20,13 @@
|
|
|
20
20
|
".": {
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"import": "./dist/index.es.js",
|
|
23
|
-
"require": "./dist/index.umd.js"
|
|
23
|
+
"require": "./dist/index.umd.js",
|
|
24
|
+
"default": "./dist/index.es.js"
|
|
24
25
|
},
|
|
25
26
|
"./styles": "./dist/style.css"
|
|
26
27
|
},
|
|
27
28
|
"files": [
|
|
28
|
-
"
|
|
29
|
+
"dist"
|
|
29
30
|
],
|
|
30
31
|
"publishConfig": {
|
|
31
32
|
"access": "public"
|