react-toolkits 0.8.2 → 0.8.4

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 { u as o, j as t } from "./index-A2meL2i_.chunk.js";
1
+ import { u as o, j as t } from "./index-XNXQcl_9.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,69 +1,70 @@
1
- import { A as M, _ as N, f as b, u as U, j as e, P as h, H as z, Q as H, h as S } from "./index-A2meL2i_.chunk.js";
2
- import { App as y, Row as R, Col as E, Tag as L, Space as G, Card as D, Form as c, Input as j, Select as f } from "antd";
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-XNXQcl_9.chunk.js";
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
- import { Link as P } from "react-router-dom";
5
- import { f as Q, g as _, h as k, i as $ } from "./index-Lbg2JdEX.chunk.js";
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-LCYw_fOi.chunk.js";
6
6
  import * as O from "react";
7
7
  import "react-dom";
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" };
9
- const B = q;
10
- var T = function(r, i) {
11
- return /* @__PURE__ */ O.createElement(M, N({}, r, {
12
- ref: i,
13
- icon: B
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" };
9
+ const q = $;
10
+ var v = function(c, a) {
11
+ return /* @__PURE__ */ O.createElement(M, N({}, c, {
12
+ ref: a,
13
+ icon: q
14
14
  }));
15
15
  };
16
- process.env.NODE_ENV !== "production" && (T.displayName = "UserAddOutlined");
17
- const F = /* @__PURE__ */ O.forwardRef(T), { Option: V } = f, g = "/api/usystem/user/list";
16
+ process.env.NODE_ENV !== "production" && (v.displayName = "UserAddOutlined");
17
+ const B = /* @__PURE__ */ O.forwardRef(v), { Option: F } = f, g = "/api/usystem/user/list";
18
18
  function K() {
19
- const { message: d } = y.useApp(), r = _(), { data: i, isLoading: m } = k(), { setPayload: p } = b(), l = U();
20
- return S({
21
- title: l("UserList.createTitle"),
22
- content: (n) => /* @__PURE__ */ e.jsxs(c, { form: n, labelCol: { flex: "80px" }, children: [
23
- /* @__PURE__ */ e.jsx(c.Item, { label: l("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(j, {}) }),
24
- /* @__PURE__ */ e.jsx(c.Item, { label: l("global.role"), name: "roles", children: /* @__PURE__ */ e.jsx(f, { allowClear: !0, mode: "multiple", loading: m, children: (i ?? []).map((o) => /* @__PURE__ */ e.jsx(V, { value: o.name, children: o.name }, o.id)) }) })
19
+ const { message: d } = y.useApp(), c = Q(), { data: a, isLoading: m } = k(), { setPayload: p } = b(), n = U();
20
+ return A({
21
+ title: n("UserList.createTitle"),
22
+ content: (o) => /* @__PURE__ */ e.jsxs(u, { form: o, labelCol: { flex: "80px" }, children: [
23
+ /* @__PURE__ */ e.jsx(u.Item, { label: n("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(L, {}) }),
24
+ /* @__PURE__ */ e.jsx(u.Item, { label: n("global.role"), name: "roles", children: /* @__PURE__ */ e.jsx(f, { allowClear: !0, mode: "multiple", loading: m, children: (a ?? []).map((r) => /* @__PURE__ */ e.jsx(F, { value: r.name, children: r.name }, r.id)) }) })
25
25
  ] }),
26
- async onConfirm(n) {
27
- await r.trigger(n), p(g, { page: 1 }), d.success(l("UserList.createSuccessfully"));
26
+ async onConfirm(o) {
27
+ await c.trigger(o), p(g, { page: 1 }), d.success(n("UserList.createSuccessfully"));
28
28
  }
29
29
  });
30
30
  }
31
31
  function J() {
32
- const { message: d } = y.useApp(), r = $(), { data: i, isLoading: m } = k(), { mutate: p } = b(), l = U();
33
- return S({
34
- title: l("UserList.updateTitle"),
35
- content: (n) => /* @__PURE__ */ e.jsxs(c, { form: n, labelCol: { flex: "80px" }, children: [
36
- /* @__PURE__ */ e.jsx(c.Item, { hidden: !0, name: "id", children: /* @__PURE__ */ e.jsx(j, {}) }),
37
- /* @__PURE__ */ e.jsx(c.Item, { label: l("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(j, { readOnly: !0 }) }),
38
- /* @__PURE__ */ e.jsx(c.Item, { label: l("global.role"), name: "roles", children: /* @__PURE__ */ e.jsx(
32
+ const { message: d } = y.useApp(), c = V(), { data: a, isLoading: m } = k(), { mutate: p } = b(), n = U();
33
+ return A({
34
+ title: n("UserList.updateTitle"),
35
+ content: (o) => /* @__PURE__ */ e.jsxs(u, { form: o, labelCol: { flex: "80px" }, children: [
36
+ /* @__PURE__ */ e.jsx(u.Item, { label: n("global.name"), name: "name", rules: [{ required: !0 }], children: /* @__PURE__ */ e.jsx(L, { readOnly: !0 }) }),
37
+ /* @__PURE__ */ e.jsx(u.Item, { label: n("global.role"), name: "roles", children: /* @__PURE__ */ e.jsx(
39
38
  f,
40
39
  {
41
40
  allowClear: !0,
42
41
  mode: "multiple",
43
42
  loading: m,
44
- options: i == null ? void 0 : i.map((o) => ({
45
- label: o.name,
46
- value: o.name
43
+ options: a == null ? void 0 : a.map((r) => ({
44
+ label: r.name,
45
+ value: r.name
47
46
  })),
48
47
  dropdownStyle: { zIndex: 9999 }
49
48
  }
50
49
  ) })
51
50
  ] }),
52
- async onConfirm(n) {
53
- await r.trigger(n), p(
51
+ async onConfirm(o, r, s) {
52
+ await c.trigger(o), p(
54
53
  g,
55
- (o) => I(o, (s) => {
56
- var t;
57
- const x = (t = s == null ? void 0 : s.list) == null ? void 0 : t.find((a) => a.id === n.id);
58
- x && (x.roles = n.roles);
54
+ (h) => I(h, (t) => {
55
+ var l;
56
+ if (t != null && t.dataSource) {
57
+ const i = (l = t.dataSource) == null ? void 0 : l.findIndex((x) => x.id === s.id);
58
+ i !== -1 && (t.dataSource[i].roles = o.roles);
59
+ }
59
60
  }),
60
61
  { revalidate: !1 }
61
- ), d.success(l("UserList.updateSuccessfully"));
62
+ ), d.success(n("UserList.updateSuccessfully"));
62
63
  }
63
64
  });
64
65
  }
65
66
  const se = () => {
66
- const { modal: d, message: r } = y.useApp(), i = Q(), { mutate: m } = b(), { show: p, contextHolder: l } = K(), { show: n, contextHolder: o } = J(), s = U(), x = [
67
+ const { modal: d, message: c } = y.useApp(), a = P(), { mutate: m } = b(), { show: p, contextHolder: n } = K(), { show: o, contextHolder: r } = J(), s = U(), h = [
67
68
  {
68
69
  title: s("global.name"),
69
70
  dataIndex: "name",
@@ -80,7 +81,7 @@ const se = () => {
80
81
  key: "roles",
81
82
  width: "40%",
82
83
  render(t) {
83
- return /* @__PURE__ */ e.jsx(R, { gutter: [4, 4], children: (t || []).map((a) => /* @__PURE__ */ e.jsx(E, { children: a === "root" ? /* @__PURE__ */ e.jsx(L, { color: "#f50", children: a }) : /* @__PURE__ */ e.jsx(L, { color: "#ff5a00", children: /* @__PURE__ */ e.jsx(P, { to: `/permission/role/${a}`, children: a }) }) }, a)) });
84
+ return /* @__PURE__ */ e.jsx(R, { gutter: [4, 4], children: (t || []).map((l) => /* @__PURE__ */ e.jsx(E, { children: l === "root" ? /* @__PURE__ */ e.jsx(w, { color: "#f50", children: l }) : /* @__PURE__ */ e.jsx(w, { color: "#ff5a00", children: /* @__PURE__ */ e.jsx(D, { to: `/permission/role/${l}`, children: l }) }) }, l)) });
84
85
  }
85
86
  },
86
87
  {
@@ -94,18 +95,20 @@ const se = () => {
94
95
  align: "center",
95
96
  render: (t) => /* @__PURE__ */ e.jsxs(G, { children: [
96
97
  /* @__PURE__ */ e.jsx(
97
- h,
98
+ j,
98
99
  {
99
100
  isGlobalNS: !0,
100
101
  size: "small",
101
102
  type: "link",
102
103
  code: "100003",
103
104
  onClick: () => {
104
- n({
105
+ o({
105
106
  initialValues: {
106
- id: t.id,
107
107
  name: t.name,
108
108
  roles: t.roles
109
+ },
110
+ extraValues: {
111
+ id: t.id
109
112
  }
110
113
  });
111
114
  },
@@ -113,7 +116,7 @@ const se = () => {
113
116
  }
114
117
  ),
115
118
  /* @__PURE__ */ e.jsx(
116
- h,
119
+ j,
117
120
  {
118
121
  isGlobalNS: !0,
119
122
  danger: !0,
@@ -125,14 +128,14 @@ const se = () => {
125
128
  title: s("UserList.deleteTitle"),
126
129
  content: /* @__PURE__ */ e.jsx(z, { texts: [t.name], children: s("UserList.deleteContent", { user: t.name }) }),
127
130
  async onOk() {
128
- await i.trigger({
131
+ await a.trigger({
129
132
  id: t.id,
130
133
  name: t.name
131
- }), m(g, (a) => I(a, (u) => {
132
- var w, A;
133
- const C = (w = u == null ? void 0 : u.list) == null ? void 0 : w.findIndex((v) => v.id === t.id);
134
- C && ((A = u == null ? void 0 : u.list) == null || A.splice(C, 1));
135
- })), r.success(s("UserList.deleteSuccessfully"));
134
+ }), m(g, (l) => I(l, (i) => {
135
+ var C, S;
136
+ const x = (C = i == null ? void 0 : i.dataSource) == null ? void 0 : C.findIndex((T) => T.id === t.id);
137
+ x && ((S = i == null ? void 0 : i.dataSource) == null || S.splice(x, 1));
138
+ })), c.success(s("UserList.deleteSuccessfully"));
136
139
  }
137
140
  });
138
141
  },
@@ -143,15 +146,15 @@ const se = () => {
143
146
  }
144
147
  ];
145
148
  return /* @__PURE__ */ e.jsxs(
146
- D,
149
+ _,
147
150
  {
148
151
  title: s("global.user"),
149
152
  extra: /* @__PURE__ */ e.jsx(
150
- h,
153
+ j,
151
154
  {
152
155
  isGlobalNS: !0,
153
156
  type: "primary",
154
- icon: /* @__PURE__ */ e.jsx(F, {}),
157
+ icon: /* @__PURE__ */ e.jsx(B, {}),
155
158
  code: "100002",
156
159
  onClick: () => {
157
160
  p();
@@ -167,13 +170,13 @@ const se = () => {
167
170
  code: "100001",
168
171
  action: g,
169
172
  rowKey: "id",
170
- columns: x,
173
+ columns: h,
171
174
  getTotal: (t) => t.Total,
172
175
  getDataSource: (t) => t.List
173
176
  }
174
177
  ),
175
- l,
176
- o
178
+ n,
179
+ r
177
180
  ]
178
181
  }
179
182
  );
@@ -1,8 +1,8 @@
1
- import { u as t, j as i } from "./index-A2meL2i_.chunk.js";
1
+ import { u as t, j as i } from "./index-XNXQcl_9.chunk.js";
2
2
  import { Breadcrumb as m, Card as n, Skeleton as a, Descriptions as r } from "antd";
3
3
  import { useParams as c, Link as p } from "react-router-dom";
4
- import { P as u } from "./index-ZZxjG73i.chunk.js";
5
- import { u as x } from "./index-Lbg2JdEX.chunk.js";
4
+ import { P as u } from "./index-LK_X4lB0.chunk.js";
5
+ import { u as x } from "./index-LCYw_fOi.chunk.js";
6
6
  import "react";
7
7
  import "react-dom";
8
8
  const k = () => {
package/lib/index.d.ts CHANGED
@@ -253,7 +253,7 @@ declare interface QueryListDataType<Item> {
253
253
  total: number;
254
254
  }
255
255
 
256
- declare type QueryListMutator = <T = any>(key: string, data?: ListResponse<T> | Promise<ListResponse<T>> | MutatorCallback<ListResponse<T>>, opts?: MutatorOptions<ListResponse<T>>) => void;
256
+ declare type QueryListMutator = <T = any>(key: string, data?: QueryListDataType<T> | Promise<QueryListDataType<T>> | MutatorCallback<QueryListDataType<T>>, opts?: MutatorOptions<QueryListDataType<T>>) => void;
257
257
 
258
258
  declare interface QueryListPayload<Arg = any> {
259
259
  page?: number;
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-A2meL2i_.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-XNXQcl_9.chunk.js";
2
2
  import "react";
3
3
  import "antd";
4
4
  import "react-router-dom";
package/lib/style.css CHANGED
@@ -1 +1 @@
1
- *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.left-14{left:3.5rem}.right-0{right:0}.right-16{right:4rem}.top-0{top:0}.top-1\/2{top:50%}.top-16{top:4rem}.top-6{top:1.5rem}.z-10{z-index:10}.my-12{margin-top:3rem;margin-bottom:3rem}.-mb-0{margin-bottom:-0px}.-mb-0\.5{margin-bottom:-.125rem}.mb-12{margin-bottom:3rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-64{margin-left:16rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.h-10{height:2.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:8rem}.w-10\/12{width:83.333333%}.w-8{width:2rem}.w-\[18px\]{width:18px}.w-\[650px\]{width:650px}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.p-6{padding:1.5rem}.px-36{padding-left:9rem;padding-right:9rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}html,body{padding:0;margin:0}.toolkits-modal .ant-modal-confirm .ant-modal-confirm-paragraph{max-width:100%!important}
1
+ *,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.left-0{left:0}.left-14{left:3.5rem}.right-0{right:0}.right-16{right:4rem}.top-0{top:0}.top-1\/2{top:50%}.top-16{top:4rem}.top-6{top:1.5rem}.z-10{z-index:10}.my-12{margin-top:3rem;margin-bottom:3rem}.-mb-0{margin-bottom:-0px}.-mb-0\.5{margin-bottom:-.125rem}.mb-12{margin-bottom:3rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-2{margin-left:.5rem}.ml-64{margin-left:16rem}.ml-8{margin-left:2rem}.mr-2{margin-right:.5rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.h-10{height:2.5rem}.h-8{height:2rem}.h-full{height:100%}.h-screen{height:100vh}.max-h-32{max-height:8rem}.w-10\/12{width:83.333333%}.w-8{width:2rem}.w-\[18px\]{width:18px}.w-\[650px\]{width:650px}.w-full{width:100%}.w-screen{width:100vw}.flex-1{flex:1 1 0%}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-10{--tw-translate-y: -2.5rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-col{flex-direction:column}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.overflow-auto{overflow:auto}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity))}.bg-slate-50{--tw-bg-opacity: 1;background-color:rgb(248 250 252 / var(--tw-bg-opacity))}.p-6{padding:1.5rem}.px-36{padding-left:9rem;padding-right:9rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.font-bold{font-weight:700}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}html,body{padding:0;margin:0}.toolkits-modal .ant-modal-confirm .ant-modal-confirm-paragraph{max-width:100%!important}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-toolkits",
3
- "version": "0.8.2",
3
+ "version": "0.8.4",
4
4
  "packageManager": "^pnpm@8.7.5",
5
5
  "sideEffects": [
6
6
  "**/*.css"
@@ -70,8 +70,8 @@
70
70
  "vite": "^5.0.10",
71
71
  "vite-plugin-dts": "^3.6.4",
72
72
  "@flow97/eslint-config-mono": "0.0.4",
73
- "tailwind-config": "0.1.1",
74
- "tsconfig": "0.0.5"
73
+ "tsconfig": "0.0.5",
74
+ "tailwind-config": "0.1.1"
75
75
  },
76
76
  "peerDependencies": {
77
77
  "antd": "^5.12.2",