react-toolkits 0.8.26 → 0.8.27
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/CHANGELOG.md +6 -0
- package/lib/{index-PsmOxbH4.chunk.js → index-17PeasVp.chunk.js} +2 -2
- package/lib/{index-swTPwsII.chunk.js → index-C0Wd_02Z.chunk.js} +1 -1
- package/lib/{index-A7TKKduR.chunk.js → index-CmvBI3V9.chunk.js} +12 -12
- package/lib/{index-72uOa-8u.chunk.js → index-jc0hzWfp.chunk.js} +2 -2
- package/lib/{index-5cBU7xO-.chunk.js → index-o7lVHqyl.chunk.js} +3 -3
- package/lib/{index-8j7O7dTi.chunk.js → index-yYEnY21c.chunk.js} +3 -3
- package/lib/index.d.ts +5 -8
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { a as S, j as e, d as $ } from "./index-
|
|
1
|
+
import { a as S, j as e, d as $ } from "./index-CmvBI3V9.chunk.js";
|
|
2
2
|
import { Collapse as D, Checkbox as k, Row as G, Col as _, Skeleton as T, Typography as A, Divider as w, Card as K, Space as M, Select as E, Button as N, Empty as O } from "antd";
|
|
3
|
-
import { h as R, i as B } from "./index-
|
|
3
|
+
import { h as R, i as B } from "./index-C0Wd_02Z.chunk.js";
|
|
4
4
|
import { useState as P, useCallback as F, useEffect as b } from "react";
|
|
5
5
|
const q = (x) => {
|
|
6
6
|
const { permissions: l, readonly: t, expand: d, value: a, onChange: r } = x, [m, p] = P([]), [g, u] = P({}), [c, f] = P(a ?? []), C = S(), h = F((s) => {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as O, w as W, e as h, f as x, s as z, m as w, g as V, U as R, h as U, d as G, r as n, c as K } from "./index-
|
|
1
|
+
import { I as O, w as W, e as h, f as x, s as z, m as w, g as V, U as R, h as U, d as G, r as n, c as K } from "./index-CmvBI3V9.chunk.js";
|
|
2
2
|
import L, { useRef as o, useCallback as N, useState as $ } from "react";
|
|
3
3
|
const P = O ? (e) => {
|
|
4
4
|
e();
|
|
@@ -4763,9 +4763,9 @@ const cu = Cc, ou = (e) => {
|
|
|
4763
4763
|
}
|
|
4764
4764
|
) });
|
|
4765
4765
|
}, uu = lu, { Spin: fu, theme: du } = Kt, { Header: pu, Sider: hu, Content: Au } = Kt.Layout, gu = (e) => {
|
|
4766
|
-
const { children: t
|
|
4767
|
-
token: { colorBgContainer:
|
|
4768
|
-
} = du.useToken(), { appTitle:
|
|
4766
|
+
const { children: t } = e, {
|
|
4767
|
+
token: { colorBgContainer: r, colorBorder: n }
|
|
4768
|
+
} = du.useToken(), { appTitle: a, usePermissionApiV2: s, hideGameSelect: c, localeDropdownMenu: o, layoutHeaderExtras: l } = Re();
|
|
4769
4769
|
return /* @__PURE__ */ d.jsxs(Kt.Layout, { hasSider: !0, className: "h-screen", children: [
|
|
4770
4770
|
/* @__PURE__ */ d.jsxs(
|
|
4771
4771
|
hu,
|
|
@@ -4780,13 +4780,13 @@ const cu = Cc, ou = (e) => {
|
|
|
4780
4780
|
bottom: 0,
|
|
4781
4781
|
borderRightWidth: 1,
|
|
4782
4782
|
borderRightStyle: "solid",
|
|
4783
|
-
borderRightColor:
|
|
4783
|
+
borderRightColor: n
|
|
4784
4784
|
},
|
|
4785
4785
|
theme: "light",
|
|
4786
4786
|
children: [
|
|
4787
4787
|
/* @__PURE__ */ d.jsxs("div", { className: "flex items-center px-6 py-4", children: [
|
|
4788
4788
|
/* @__PURE__ */ d.jsx("img", { src: rn, alt: "logo", className: "w-8 h-8" }),
|
|
4789
|
-
/* @__PURE__ */ d.jsx("div", { className: "ml-2", children:
|
|
4789
|
+
/* @__PURE__ */ d.jsx("div", { className: "ml-2", children: a })
|
|
4790
4790
|
] }),
|
|
4791
4791
|
/* @__PURE__ */ d.jsx(cu, {})
|
|
4792
4792
|
]
|
|
@@ -4798,16 +4798,16 @@ const cu = Cc, ou = (e) => {
|
|
|
4798
4798
|
{
|
|
4799
4799
|
style: {
|
|
4800
4800
|
padding: "0 24px",
|
|
4801
|
-
background:
|
|
4801
|
+
background: r,
|
|
4802
4802
|
borderBottomWidth: 1,
|
|
4803
4803
|
borderBottomStyle: "solid",
|
|
4804
|
-
borderBottomColor:
|
|
4804
|
+
borderBottomColor: n
|
|
4805
4805
|
},
|
|
4806
4806
|
children: /* @__PURE__ */ d.jsxs("div", { className: "flex justify-between items-center h-full", children: [
|
|
4807
|
-
/* @__PURE__ */ d.jsx("div", { children:
|
|
4807
|
+
/* @__PURE__ */ d.jsx("div", { children: s && !c && /* @__PURE__ */ d.jsx(Kl, {}) }),
|
|
4808
4808
|
/* @__PURE__ */ d.jsxs(nt, { size: "small", split: /* @__PURE__ */ d.jsx(Za, { type: "vertical" }), children: [
|
|
4809
|
-
|
|
4810
|
-
|
|
4809
|
+
l == null ? void 0 : l.map((f) => /* @__PURE__ */ d.jsx("span", { children: f.children }, f.key)),
|
|
4810
|
+
o,
|
|
4811
4811
|
/* @__PURE__ */ d.jsx(uu, {})
|
|
4812
4812
|
] })
|
|
4813
4813
|
] })
|
|
@@ -4827,7 +4827,7 @@ const cu = Cc, ou = (e) => {
|
|
|
4827
4827
|
}
|
|
4828
4828
|
}
|
|
4829
4829
|
),
|
|
4830
|
-
children:
|
|
4830
|
+
children: s && !c ? /* @__PURE__ */ d.jsx(iu, { children: t }) : t
|
|
4831
4831
|
}
|
|
4832
4832
|
) })
|
|
4833
4833
|
] })
|
|
@@ -5497,7 +5497,7 @@ const Iu = /* @__PURE__ */ ln(Du), { Option: Ha } = sn, { Paragraph: Ya } = cn,
|
|
|
5497
5497
|
}, zu = Lu, Uu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
5498
5498
|
__proto__: null,
|
|
5499
5499
|
default: zu
|
|
5500
|
-
}, Symbol.toStringTag, { value: "Module" })), ku = ot(() => import("./index-
|
|
5500
|
+
}, Symbol.toStringTag, { value: "Module" })), ku = ot(() => import("./index-jc0hzWfp.chunk.js")), $u = ot(() => import("./index-o7lVHqyl.chunk.js")), Vu = ot(() => import("./index-yYEnY21c.chunk.js")), Wu = () => /* @__PURE__ */ d.jsxs(ts, { children: [
|
|
5501
5501
|
/* @__PURE__ */ d.jsx(He, { index: !0, element: /* @__PURE__ */ d.jsx(Mr, { to: "user" }) }),
|
|
5502
5502
|
/* @__PURE__ */ d.jsx(He, { path: "user", element: /* @__PURE__ */ d.jsx(ku, {}) }),
|
|
5503
5503
|
/* @__PURE__ */ d.jsx(He, { path: "role", element: /* @__PURE__ */ d.jsx($u, {}) }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { A as T, _ as N, u as j, a as b, j as e, P as h, H as R, Q as z, b as w } from "./index-
|
|
1
|
+
import { A as T, _ as N, u as j, a as b, j as e, P as h, H as R, Q as z, b as w } from "./index-CmvBI3V9.chunk.js";
|
|
2
2
|
import { App as U, Row as F, Col as P, Tag as A, Space as E, Card as G, Form as g, Input as L, Select as y } from "antd";
|
|
3
3
|
import { p as I } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as D } from "react-router-dom";
|
|
5
|
-
import { u as Q, a as _, b as k, c as $ } from "./index-
|
|
5
|
+
import { u as Q, a as _, b as k, c as $ } from "./index-C0Wd_02Z.chunk.js";
|
|
6
6
|
import * as M from "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
var q = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z" } }] }, name: "user-add", theme: "outlined" };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { A as O, _ as T, c as N, d as P, u as y, a as b, j as e, P as j, r as _, H as z, Q as $, b as S } from "./index-
|
|
1
|
+
import { A as O, _ as T, c as N, d as P, u as y, a as b, j as e, P as j, r as _, H as z, Q as $, b as S } from "./index-CmvBI3V9.chunk.js";
|
|
2
2
|
import { App as f, Space as F, Card as G, Form as g, Input as L } from "antd";
|
|
3
3
|
import { p as A } from "./immer-BLf7GM7E.chunk.js";
|
|
4
4
|
import { Link as B } from "react-router-dom";
|
|
5
|
-
import { P as k } from "./index-
|
|
6
|
-
import { d as E, e as q, f as D } from "./index-
|
|
5
|
+
import { P as k } from "./index-17PeasVp.chunk.js";
|
|
6
|
+
import { d as E, e as q, f as D } from "./index-C0Wd_02Z.chunk.js";
|
|
7
7
|
import * as v from "react";
|
|
8
8
|
import "react-dom";
|
|
9
9
|
var Q = { icon: { tag: "svg", attrs: { viewBox: "64 64 896 896", focusable: "false" }, children: [{ tag: "path", attrs: { d: "M892 772h-80v-80c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v80h-80c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h80v80c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8v-80h80c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM373.5 498.4c-.9-8.7-1.4-17.5-1.4-26.4 0-15.9 1.5-31.4 4.3-46.5.7-3.6-1.2-7.3-4.5-8.8-13.6-6.1-26.1-14.5-36.9-25.1a127.54 127.54 0 01-38.7-95.4c.9-32.1 13.8-62.6 36.3-85.6 24.7-25.3 57.9-39.1 93.2-38.7 31.9.3 62.7 12.6 86 34.4 7.9 7.4 14.7 15.6 20.4 24.4 2 3.1 5.9 4.4 9.3 3.2 17.6-6.1 36.2-10.4 55.3-12.4 5.6-.6 8.8-6.6 6.3-11.6-32.5-64.3-98.9-108.7-175.7-109.9-110.8-1.7-203.2 89.2-203.2 200 0 62.8 28.9 118.8 74.2 155.5-31.8 14.7-61.1 35-86.5 60.4-54.8 54.7-85.8 126.9-87.8 204a8 8 0 008 8.2h56.1c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5 29.4-29.4 65.4-49.8 104.7-59.7 3.8-1.1 6.4-4.8 5.9-8.8zM824 472c0-109.4-87.9-198.3-196.9-200C516.3 270.3 424 361.2 424 472c0 62.8 29 118.8 74.2 155.5a300.95 300.95 0 00-86.4 60.4C357 742.6 326 814.8 324 891.8a8 8 0 008 8.2h56c4.3 0 7.9-3.4 8-7.7 1.9-58 25.4-112.3 66.7-153.5C505.8 695.7 563 672 624 672c110.4 0 200-89.5 200-200zm-109.5 90.5C690.3 586.7 658.2 600 624 600s-66.3-13.3-90.5-37.5a127.26 127.26 0 01-37.5-91.8c.3-32.8 13.4-64.5 36.3-88 24-24.6 56.1-38.3 90.4-38.7 33.9-.3 66.8 12.9 91 36.6 24.8 24.3 38.4 56.8 38.4 91.4-.1 34.2-13.4 66.3-37.6 90.5z" } }] }, name: "usergroup-add", theme: "outlined" };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { a as t, j as i } from "./index-
|
|
1
|
+
import { a as t, j as i } from "./index-CmvBI3V9.chunk.js";
|
|
2
2
|
import { Breadcrumb as m, Card as n, Skeleton as a, Descriptions as l } from "antd";
|
|
3
3
|
import { useParams as c, Link as x } from "react-router-dom";
|
|
4
|
-
import { P as j } from "./index-
|
|
5
|
-
import { g as p } from "./index-
|
|
4
|
+
import { P as j } from "./index-17PeasVp.chunk.js";
|
|
5
|
+
import { g as p } from "./index-C0Wd_02Z.chunk.js";
|
|
6
6
|
import "react";
|
|
7
7
|
import "react-dom";
|
|
8
8
|
const k = () => {
|
package/lib/index.d.ts
CHANGED
|
@@ -40,6 +40,10 @@ export declare interface ContextState {
|
|
|
40
40
|
notFoundRedirectUrl?: string;
|
|
41
41
|
logoutRedirectUrl?: string;
|
|
42
42
|
idaasRedirectUrl: string;
|
|
43
|
+
layoutHeaderExtras?: {
|
|
44
|
+
key: Key;
|
|
45
|
+
children: ReactNode;
|
|
46
|
+
}[];
|
|
43
47
|
}
|
|
44
48
|
|
|
45
49
|
export declare const contextStore: StoreApi<ContextState>;
|
|
@@ -114,14 +118,7 @@ export declare interface InfiniteListProps<Item, Values, Response> extends Pick<
|
|
|
114
118
|
|
|
115
119
|
declare type Join<K, P> = K extends string | number ? P extends string | number ? `${K}${'' extends P ? '' : '.'}${P}` : never : never;
|
|
116
120
|
|
|
117
|
-
export declare const Layout: FC<
|
|
118
|
-
|
|
119
|
-
export declare interface LayoutProps extends PropsWithChildren {
|
|
120
|
-
extras?: {
|
|
121
|
-
key: Key;
|
|
122
|
-
children: ReactNode;
|
|
123
|
-
}[];
|
|
124
|
-
}
|
|
121
|
+
export declare const Layout: FC<PropsWithChildren>;
|
|
125
122
|
|
|
126
123
|
declare interface ListResponse<T = any> {
|
|
127
124
|
list: T[];
|
package/lib/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as r, D as u, F as n, G as m, H as d, i as l, L as p, N as L, k as S, O as g, l as y, P, n as x, Q as c, o as F, R as G, p as M, S as T, q as h, t as k, v as q, r as Q, b as R, x as v, y as B, z as C, c as N, B as f, u as w, E as D, J as E, d as H, a as I, K as O, M as W } from "./index-
|
|
1
|
+
import { C as r, D as u, F as n, G as m, H as d, i as l, L as p, N as L, k as S, O as g, l as y, P, n as x, Q as c, o as F, R as G, p as M, S as T, q as h, t as k, v as q, r as Q, b as R, x as v, y as B, z as C, c as N, B as f, u as w, E as D, J as E, d as H, a as I, K as O, M as W } from "./index-CmvBI3V9.chunk.js";
|
|
2
2
|
import "react";
|
|
3
3
|
import "antd";
|
|
4
4
|
import "react-dom";
|