next-data-kit 0.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/LICENSE +21 -0
- package/README.md +478 -0
- package/dist/client/components/data-kit-table.d.ts +29 -0
- package/dist/client/components/data-kit.d.ts +19 -0
- package/dist/client/components/index.d.ts +3 -0
- package/dist/client/components/ui/button.d.ts +14 -0
- package/dist/client/components/ui/checkbox.d.ts +5 -0
- package/dist/client/components/ui/dropdown-menu.d.ts +28 -0
- package/dist/client/components/ui/index.d.ts +9 -0
- package/dist/client/components/ui/pagination.d.ts +14 -0
- package/dist/client/components/ui/popover.d.ts +10 -0
- package/dist/client/components/ui/select.d.ts +18 -0
- package/dist/client/components/ui/switch.d.ts +5 -0
- package/dist/client/components/ui/table.d.ts +11 -0
- package/dist/client/context/index.d.ts +22 -0
- package/dist/client/hooks/index.d.ts +7 -0
- package/dist/client/hooks/useDataKit.d.ts +9 -0
- package/dist/client/hooks/usePagination.d.ts +18 -0
- package/dist/client/hooks/useSelection.d.ts +13 -0
- package/dist/client/index.d.ts +11 -0
- package/dist/client/utils/cn.d.ts +10 -0
- package/dist/client/utils/index.d.ts +60 -0
- package/dist/client.d.ts +7 -0
- package/dist/index.d.cts +652 -0
- package/dist/index.d.ts +652 -0
- package/dist/react-data-kit-DmTzxNTc.d.cts +225 -0
- package/dist/react-data-kit-DmTzxNTc.d.ts +225 -0
- package/dist/server.cjs +222 -0
- package/dist/server.cjs.map +1 -0
- package/dist/server.d.cts +68 -0
- package/dist/server.d.ts +68 -0
- package/dist/server.js +216 -0
- package/dist/server.js.map +1 -0
- package/dist/types/component.d.ts +106 -0
- package/dist/types/database/mongo.d.ts +129 -0
- package/dist/types/hook.d.ts +100 -0
- package/dist/types/index.cjs +15 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +252 -0
- package/dist/types/index.d.ts +12 -0
- package/dist/types/index.js +13 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/react-data-kit.d.ts +95 -0
- package/dist/types/selectable.d.ts +43 -0
- package/package.json +127 -0
package/package.json
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "next-data-kit",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "A powerful table utility for server-side pagination, filtering, and sorting with React components",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"main": "./dist/index.cjs",
|
|
7
|
+
"module": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"import": {
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"default": "./dist/index.js"
|
|
14
|
+
},
|
|
15
|
+
"require": {
|
|
16
|
+
"types": "./dist/index.d.cts",
|
|
17
|
+
"default": "./dist/index.cjs"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"./server": {
|
|
21
|
+
"import": {
|
|
22
|
+
"types": "./dist/server.d.ts",
|
|
23
|
+
"default": "./dist/server.js"
|
|
24
|
+
},
|
|
25
|
+
"require": {
|
|
26
|
+
"types": "./dist/server.d.cts",
|
|
27
|
+
"default": "./dist/server.cjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"./client": {
|
|
31
|
+
"import": {
|
|
32
|
+
"types": "./dist/client.d.ts",
|
|
33
|
+
"default": "./dist/client.js"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"./types": {
|
|
37
|
+
"import": {
|
|
38
|
+
"types": "./dist/types/index.d.ts",
|
|
39
|
+
"default": "./dist/types/index.js"
|
|
40
|
+
},
|
|
41
|
+
"require": {
|
|
42
|
+
"types": "./dist/types/index.d.cts",
|
|
43
|
+
"default": "./dist/types/index.cjs"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"files": [
|
|
48
|
+
"dist"
|
|
49
|
+
],
|
|
50
|
+
"scripts": {
|
|
51
|
+
"build": "tsup && tsc -p tsconfig.client.build.json",
|
|
52
|
+
"test": "vitest run",
|
|
53
|
+
"test:coverage": "vitest run --coverage",
|
|
54
|
+
"playground:install": "npm --prefix playground install",
|
|
55
|
+
"playground:dev": "npm --prefix playground run dev",
|
|
56
|
+
"playground:build": "npm --prefix playground run build",
|
|
57
|
+
"playground:preview": "npm --prefix playground run preview",
|
|
58
|
+
"lint": "eslint src/",
|
|
59
|
+
"typecheck": "tsc --noEmit"
|
|
60
|
+
},
|
|
61
|
+
"repository": {
|
|
62
|
+
"type": "git",
|
|
63
|
+
"url": "git+https://github.com/muhgholy/next-data-kit.git"
|
|
64
|
+
},
|
|
65
|
+
"keywords": [
|
|
66
|
+
"table",
|
|
67
|
+
"pagination",
|
|
68
|
+
"filtering",
|
|
69
|
+
"sorting",
|
|
70
|
+
"react",
|
|
71
|
+
"server-action",
|
|
72
|
+
"mongodb",
|
|
73
|
+
"mongoose"
|
|
74
|
+
],
|
|
75
|
+
"author": "muhgholy",
|
|
76
|
+
"license": "MIT",
|
|
77
|
+
"bugs": {
|
|
78
|
+
"url": "https://github.com/muhgholy/next-data-kit/issues"
|
|
79
|
+
},
|
|
80
|
+
"homepage": "https://github.com/muhgholy/next-data-kit#readme",
|
|
81
|
+
"devDependencies": {
|
|
82
|
+
"@eslint/js": "^9.39.2",
|
|
83
|
+
"@radix-ui/react-checkbox": "^1.3.2",
|
|
84
|
+
"@radix-ui/react-dropdown-menu": "^2.1.16",
|
|
85
|
+
"@radix-ui/react-popover": "^1.1.15",
|
|
86
|
+
"@radix-ui/react-select": "^2.2.6",
|
|
87
|
+
"@radix-ui/react-slot": "^1.2.1",
|
|
88
|
+
"@radix-ui/react-switch": "^1.2.6",
|
|
89
|
+
"@semantic-release/changelog": "^6.0.3",
|
|
90
|
+
"@semantic-release/exec": "^7.1.0",
|
|
91
|
+
"@semantic-release/git": "^10.0.1",
|
|
92
|
+
"@types/node": "^22.10.2",
|
|
93
|
+
"@types/react": "^19.0.1",
|
|
94
|
+
"class-variance-authority": "^0.7.1",
|
|
95
|
+
"eslint": "^9.17.0",
|
|
96
|
+
"lucide-react": "^0.469.0",
|
|
97
|
+
"semantic-release": "^24.2.9",
|
|
98
|
+
"tsup": "^8.3.5",
|
|
99
|
+
"typescript": "^5.7.2",
|
|
100
|
+
"typescript-eslint": "^8.49.0",
|
|
101
|
+
"vitest": "^3.2.4",
|
|
102
|
+
"zod": "^3.25.76"
|
|
103
|
+
},
|
|
104
|
+
"peerDependencies": {
|
|
105
|
+
"@radix-ui/react-checkbox": ">=1.0.0",
|
|
106
|
+
"@radix-ui/react-dropdown-menu": ">=2.0.0",
|
|
107
|
+
"@radix-ui/react-popover": ">=1.0.0",
|
|
108
|
+
"@radix-ui/react-select": ">=2.0.0",
|
|
109
|
+
"@radix-ui/react-slot": ">=1.0.0",
|
|
110
|
+
"@radix-ui/react-switch": ">=1.0.0",
|
|
111
|
+
"class-variance-authority": ">=0.7.0",
|
|
112
|
+
"lucide-react": ">=0.0.0",
|
|
113
|
+
"react": ">=18.0.0",
|
|
114
|
+
"zod": ">=3.0.0"
|
|
115
|
+
},
|
|
116
|
+
"peerDependenciesMeta": {
|
|
117
|
+
"react": {
|
|
118
|
+
"optional": true
|
|
119
|
+
},
|
|
120
|
+
"zod": {
|
|
121
|
+
"optional": true
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
"publishConfig": {
|
|
125
|
+
"access": "public"
|
|
126
|
+
}
|
|
127
|
+
}
|