react-toolkits 0.8.5 → 0.8.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.
@@ -1,4 +1,4 @@
1
- import { c as st, g as at, u as it, j as c, Q as ut } from "./index-r8dt7z9n.chunk.js";
1
+ import { c as st, g as at, u as it, j as c, Q as ut } from "./index-ITJdh6Vx.chunk.js";
2
2
  import { Card as ot, Form as H, Row as ct, Col as E, Input as Z, Select as K, Typography as lt } from "antd";
3
3
  import "react";
4
4
  import "react-router-dom";
@@ -1,4 +1,4 @@
1
- import { u as o, j as t } from "./index-r8dt7z9n.chunk.js";
1
+ import { u as o, j as t } from "./index-ITJdh6Vx.chunk.js";
2
2
  import { Result as r, Button as i } from "antd";
3
3
  import { useNavigate as n } from "react-router-dom";
4
4
  import "react";
@@ -1,4 +1,4 @@
1
- import { a as y, u as M, b as S, d as G, r as f, j as c, l as h } from "./index-r8dt7z9n.chunk.js";
1
+ import { a as y, u as M, b as S, d as G, r as f, j as c, l as h } from "./index-ITJdh6Vx.chunk.js";
2
2
  import { Typography as i, Space as g, Alert as z, Form as s, Input as _, Button as o, Divider as C } from "antd";
3
3
  import { useSearchParams as u, useLocation as m, Navigate as F } from "react-router-dom";
4
4
  import "react";
@@ -1,6 +1,6 @@
1
- import { u as S, j as e, b as $ } from "./index-r8dt7z9n.chunk.js";
1
+ import { u as S, j as e, b as $ } from "./index-ITJdh6Vx.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 { d as R, e as B } from "./index-BL87dGBQ.chunk.js";
3
+ import { d as R, e as B } from "./index-H1iSH6BQ.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: r, onChange: a } = x, [m, p] = P([]), [g, u] = P({}), [c, f] = P(r ?? []), C = S(), h = F((s) => {
@@ -1,8 +1,8 @@
1
- import { A as M, _ as N, f as b, u as U, j as e, P as j, H as z, Q as H, h as A } from "./index-r8dt7z9n.chunk.js";
1
+ import { A as M, _ as N, f as b, u as U, j as e, P as j, H as z, Q as H, h as A } from "./index-ITJdh6Vx.chunk.js";
2
2
  import { App as y, Row as R, Col as E, Tag as w, Space as G, Card as _, Form as u, Input as L, Select as f } 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 { f as P, g as Q, h as k, i as V } from "./index-BL87dGBQ.chunk.js";
5
+ import { f as P, g as Q, h as k, i as V } from "./index-H1iSH6BQ.chunk.js";
6
6
  import * as O from "react";
7
7
  import "react-dom";
8
8
  var $ = { 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" };
package/lib/index.d.ts CHANGED
@@ -226,7 +226,7 @@ declare type Paths<T, D extends number = 10> = [D] extends [never] ? never : T e
226
226
  export declare const PermissionButton: FC<PropsWithChildren<PermissionButtonProps>>;
227
227
 
228
228
  export declare interface PermissionButtonProps extends Omit<ButtonProps, 'disabled'> {
229
- code: string;
229
+ code: string | string[];
230
230
  showLoading?: boolean;
231
231
  isGlobalNS?: boolean;
232
232
  }
package/lib/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { C as i, D as u, F as n, G as m, H as p, p as l, L as d, N as x, P as y, q as L, Q as P, t as S, R as g, v as G, x as T, y as c, z as h, r as q, h as F, B as Q, e as R, E as f, f as k, a as v, J as B, b as C, u as D, K as E } from "./index-r8dt7z9n.chunk.js";
1
+ import { C as i, D as u, F as n, G as m, H as p, p as l, L as d, N as x, P as y, q as L, Q as P, t as S, R as g, v as G, x as T, y as c, z as h, r as q, h as F, B as Q, e as R, E as f, f as k, a as v, J as B, b as C, u as D, K as E } from "./index-ITJdh6Vx.chunk.js";
2
2
  import "react";
3
3
  import "antd";
4
4
  import "react-router-dom";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-toolkits",
3
- "version": "0.8.5",
3
+ "version": "0.8.7",
4
4
  "packageManager": "^pnpm@8.7.5",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -69,9 +69,9 @@
69
69
  "typescript": "^5.3.3",
70
70
  "vite": "^5.0.10",
71
71
  "vite-plugin-dts": "^3.6.4",
72
- "@flow97/eslint-config-mono": "0.0.4",
72
+ "tailwind-config": "0.1.1",
73
73
  "tsconfig": "0.0.5",
74
- "tailwind-config": "0.1.1"
74
+ "@flow97/eslint-config-mono": "0.0.4"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "antd": "^5.12.2",