ding-react-admin 2.0.5 → 2.0.7
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
|
@@ -6,23 +6,19 @@
|
|
|
6
6
|
|
|
7
7
|
Composable admin shell for React apps: **Ant Design 6** layout, **CRUD field system** (lists, forms, filters, inlines, bulk actions), **theme/density** controls, **`AuthProvider`** + **`useAuth`**, **data / permissions providers** (react-admin–style naming, intentionally small), and **React Router** helpers.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
# -> Live demo
|
|
10
10
|
|
|
11
11
|
[](https://muhammadinaam.github.io/ding-react-admin/)
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
# -> Tutorial
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
[Build an admin app and add a Users page](docs/tutorial-one-entity.md) — step-by-step from `yarn create vite` through CRUD and routes.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
npm install ding-react-admin antd @ant-design/icons dayjs react-hook-form react-router-dom
|
|
19
|
-
```
|
|
17
|
+
Interactive demo on GitHub Pages — sign in with **`admin` / `admin`** or **`user` / `user`**.
|
|
20
18
|
|
|
21
|
-
|
|
22
|
-
yarn add ding-react-admin antd @ant-design/icons dayjs react-hook-form react-router-dom
|
|
23
|
-
```
|
|
19
|
+
## Installation
|
|
24
20
|
|
|
25
|
-
|
|
21
|
+
Install **`ding-react-admin`** plus its peer dependencies in one command — versions depend on whether you already have React. See **[docs/install.md](docs/install.md)** (yarn and npm, new vs existing app).
|
|
26
22
|
|
|
27
23
|
## Quick start
|
|
28
24
|
|
|
@@ -45,10 +41,6 @@ export function App() {
|
|
|
45
41
|
|
|
46
42
|
For CRUD pages, add `DataProvider` and `PermissionsProvider` — see [Getting started](#getting-started) and [docs/quick-start.md](docs/quick-start.md).
|
|
47
43
|
|
|
48
|
-
## Tutorial
|
|
49
|
-
|
|
50
|
-
[Build an admin app and add a Users page](docs/tutorial-one-entity.md) — step-by-step from `yarn create vite` through CRUD and routes.
|
|
51
|
-
|
|
52
44
|
## Features
|
|
53
45
|
|
|
54
46
|
- **Declarative CRUD** — describe list and form pages in JSX; field `source` names map to your API
|
package/dist/index.js
CHANGED
|
@@ -186,6 +186,7 @@ var We = r(function({ children: e, className: t, style: n, variant: r = "default
|
|
|
186
186
|
ref: i,
|
|
187
187
|
className: ["ding-admin-scroll", t].filter(Boolean).join(" "),
|
|
188
188
|
style: {
|
|
189
|
+
overflow: "auto",
|
|
189
190
|
...n,
|
|
190
191
|
"--ding-scroll-thumb": o,
|
|
191
192
|
"--ding-scroll-thumb-hover": s
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScrollableArea.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollableArea.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,sDAAsD;IACtD,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"ScrollableArea.d.ts","sourceRoot":"","sources":["../../../src/components/ScrollableArea.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACtD,OAAO,kBAAkB,CAAC;AAE1B,MAAM,MAAM,mBAAmB,GAAG;IAChC,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;IACtB,sDAAsD;IACtD,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,cAAc,gHAiC1B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ding-react-admin",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "Composable admin shell (Ant Design + React Router): quick-start AdminApp or build your own layout.",
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@ant-design/icons": "^6.0.0",
|
|
69
|
+
"@types/node": "^24.12.2",
|
|
69
70
|
"@types/react": "^19.2.14",
|
|
70
71
|
"@types/react-dom": "^19.2.3",
|
|
71
72
|
"@vitejs/plugin-react": "^6.0.1",
|
|
@@ -33,6 +33,7 @@ export const ScrollableArea = forwardRef<HTMLDivElement, ScrollableAreaProps>(
|
|
|
33
33
|
className={["ding-admin-scroll", className].filter(Boolean).join(" ")}
|
|
34
34
|
style={
|
|
35
35
|
{
|
|
36
|
+
overflow: "auto",
|
|
36
37
|
...style,
|
|
37
38
|
"--ding-scroll-thumb": thumb,
|
|
38
39
|
"--ding-scroll-thumb-hover": thumbHover,
|