ding-react-admin 2.0.4 → 2.0.6
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
|
@@ -1,15 +1,19 @@
|
|
|
1
1
|
# ding-react-admin
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/ding-react-admin)
|
|
4
|
-
[](https://github.com/Muhammadinaam/ding-react-admin/blob/
|
|
5
|
-
[](https://github.com/Muhammadinaam/ding-react-admin/blob/master/LICENSE)
|
|
5
|
+
[](https://github.com/Muhammadinaam/ding-react-admin/actions/workflows/ci.yml)
|
|
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
|
+
# -> Tutorial
|
|
14
|
+
|
|
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
|
+
|
|
13
17
|
Interactive demo on GitHub Pages — sign in with **`admin` / `admin`** or **`user` / `user`**.
|
|
14
18
|
|
|
15
19
|
## Installation
|
|
@@ -45,10 +49,6 @@ export function App() {
|
|
|
45
49
|
|
|
46
50
|
For CRUD pages, add `DataProvider` and `PermissionsProvider` — see [Getting started](#getting-started) and [docs/quick-start.md](docs/quick-start.md).
|
|
47
51
|
|
|
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
52
|
## Features
|
|
53
53
|
|
|
54
54
|
- **Declarative CRUD** — describe list and form pages in JSX; field `source` names map to your API
|
package/dist/index.css
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
1
|
.ding-admin-scroll{scrollbar-width:thin;scrollbar-color:var(--ding-scroll-thumb) transparent}.ding-admin-scroll::-webkit-scrollbar{width:6px;height:6px}.ding-admin-scroll::-webkit-scrollbar-track{background:0 0}.ding-admin-scroll::-webkit-scrollbar-thumb{background-color:var(--ding-scroll-thumb);background-clip:padding-box;border:1px solid #0000;border-radius:999px}.ding-admin-scroll::-webkit-scrollbar-thumb:hover{background-color:var(--ding-scroll-thumb-hover)}.ding-admin-scroll::-webkit-scrollbar-corner{background:0 0}.ding-admin-nav-menu .ant-menu-title-content{min-width:0;overflow:hidden}.ding-admin-menu-label{text-overflow:ellipsis;white-space:nowrap;width:100%;min-width:0;max-width:100%;display:block;overflow:hidden}.ant-drawer .ding-admin-menu-label{white-space:normal;text-overflow:clip;overflow:visible}
|
|
2
|
-
/*$vite$:1*/
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Fragment as G, jsx as K, jsxs as q } from "react/jsx-runtime";
|
|
|
5
5
|
import { ArrowLeftOutlined as ae, CaretDownOutlined as oe, CaretUpOutlined as se, ColumnHeightOutlined as ce, DeleteOutlined as le, DesktopOutlined as ue, EditOutlined as de, LayoutOutlined as fe, LogoutOutlined as pe, MenuOutlined as me, MoonOutlined as he, PaperClipOutlined as ge, PlusOutlined as _e, SearchOutlined as J, SettingOutlined as ve, SunOutlined as ye, UploadOutlined as be, UserOutlined as xe } from "@ant-design/icons";
|
|
6
6
|
import { Controller as Se, FormProvider as Ce, useFieldArray as we, useForm as Te, useFormContext as Ee, useFormState as De, useWatch as Oe } from "react-hook-form";
|
|
7
7
|
import ke from "dayjs";
|
|
8
|
-
|
|
8
|
+
import './index.css';//#region src/context/AppThemeProvider.tsx
|
|
9
9
|
var Ae = t(null);
|
|
10
10
|
function je(e) {
|
|
11
11
|
try {
|
|
@@ -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.6",
|
|
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.",
|
|
@@ -31,11 +31,16 @@
|
|
|
31
31
|
"main": "./dist/index.js",
|
|
32
32
|
"module": "./dist/index.js",
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
34
|
+
"sideEffects": [
|
|
35
|
+
"**/*.css",
|
|
36
|
+
"dist/index.css"
|
|
37
|
+
],
|
|
34
38
|
"exports": {
|
|
35
39
|
".": {
|
|
36
40
|
"types": "./dist/index.d.ts",
|
|
37
41
|
"import": "./dist/index.js"
|
|
38
|
-
}
|
|
42
|
+
},
|
|
43
|
+
"./style.css": "./dist/index.css"
|
|
39
44
|
},
|
|
40
45
|
"files": [
|
|
41
46
|
"dist",
|
|
@@ -73,6 +78,7 @@
|
|
|
73
78
|
"typescript": "~6.0.2",
|
|
74
79
|
"vite": "^8.0.9",
|
|
75
80
|
"vite-plugin-dts": "^4.5.4",
|
|
81
|
+
"vite-plugin-lib-inject-css": "^2.2.2",
|
|
76
82
|
"vitest": "^3.2.4"
|
|
77
83
|
},
|
|
78
84
|
"dependencies": {}
|
|
@@ -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,
|