react-toolkits 2.0.1 → 2.2.0
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 +12 -0
- package/lib/index.css +330 -1
- package/lib/index.css.map +1 -0
- package/lib/index.d.ts +132 -33
- package/lib/index.js +2647 -14
- package/lib/index.js.map +1 -0
- package/locale/context.js +6 -2
- package/locale/context.js.map +1 -0
- package/locale/en_GB.js +93 -2
- package/locale/en_GB.js.map +1 -0
- package/locale/hooks.js +111 -2
- package/locale/hooks.js.map +1 -0
- package/locale/index.js +117 -2
- package/locale/index.js.map +1 -0
- package/locale/ja_JP.js +93 -2
- package/locale/ja_JP.js.map +1 -0
- package/locale/ko_KR.js +93 -2
- package/locale/ko_KR.js.map +1 -0
- package/locale/zh_CN.js +93 -2
- package/locale/zh_CN.js.map +1 -0
- package/package.json +4 -3
package/CHANGELOG.md
CHANGED
package/lib/index.css
CHANGED
|
@@ -1 +1,330 @@
|
|
|
1
|
-
|
|
1
|
+
/* src/styles/index.css */
|
|
2
|
+
*,
|
|
3
|
+
::before,
|
|
4
|
+
::after {
|
|
5
|
+
--tw-border-spacing-x: 0;
|
|
6
|
+
--tw-border-spacing-y: 0;
|
|
7
|
+
--tw-translate-x: 0;
|
|
8
|
+
--tw-translate-y: 0;
|
|
9
|
+
--tw-rotate: 0;
|
|
10
|
+
--tw-skew-x: 0;
|
|
11
|
+
--tw-skew-y: 0;
|
|
12
|
+
--tw-scale-x: 1;
|
|
13
|
+
--tw-scale-y: 1;
|
|
14
|
+
--tw-pan-x: ;
|
|
15
|
+
--tw-pan-y: ;
|
|
16
|
+
--tw-pinch-zoom: ;
|
|
17
|
+
--tw-scroll-snap-strictness: proximity;
|
|
18
|
+
--tw-gradient-from-position: ;
|
|
19
|
+
--tw-gradient-via-position: ;
|
|
20
|
+
--tw-gradient-to-position: ;
|
|
21
|
+
--tw-ordinal: ;
|
|
22
|
+
--tw-slashed-zero: ;
|
|
23
|
+
--tw-numeric-figure: ;
|
|
24
|
+
--tw-numeric-spacing: ;
|
|
25
|
+
--tw-numeric-fraction: ;
|
|
26
|
+
--tw-ring-inset: ;
|
|
27
|
+
--tw-ring-offset-width: 0px;
|
|
28
|
+
--tw-ring-offset-color: #fff;
|
|
29
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
30
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
31
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
32
|
+
--tw-shadow: 0 0 #0000;
|
|
33
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
34
|
+
--tw-blur: ;
|
|
35
|
+
--tw-brightness: ;
|
|
36
|
+
--tw-contrast: ;
|
|
37
|
+
--tw-grayscale: ;
|
|
38
|
+
--tw-hue-rotate: ;
|
|
39
|
+
--tw-invert: ;
|
|
40
|
+
--tw-saturate: ;
|
|
41
|
+
--tw-sepia: ;
|
|
42
|
+
--tw-drop-shadow: ;
|
|
43
|
+
--tw-backdrop-blur: ;
|
|
44
|
+
--tw-backdrop-brightness: ;
|
|
45
|
+
--tw-backdrop-contrast: ;
|
|
46
|
+
--tw-backdrop-grayscale: ;
|
|
47
|
+
--tw-backdrop-hue-rotate: ;
|
|
48
|
+
--tw-backdrop-invert: ;
|
|
49
|
+
--tw-backdrop-opacity: ;
|
|
50
|
+
--tw-backdrop-saturate: ;
|
|
51
|
+
--tw-backdrop-sepia: ;
|
|
52
|
+
--tw-contain-size: ;
|
|
53
|
+
--tw-contain-layout: ;
|
|
54
|
+
--tw-contain-paint: ;
|
|
55
|
+
--tw-contain-style: ;
|
|
56
|
+
}
|
|
57
|
+
::backdrop {
|
|
58
|
+
--tw-border-spacing-x: 0;
|
|
59
|
+
--tw-border-spacing-y: 0;
|
|
60
|
+
--tw-translate-x: 0;
|
|
61
|
+
--tw-translate-y: 0;
|
|
62
|
+
--tw-rotate: 0;
|
|
63
|
+
--tw-skew-x: 0;
|
|
64
|
+
--tw-skew-y: 0;
|
|
65
|
+
--tw-scale-x: 1;
|
|
66
|
+
--tw-scale-y: 1;
|
|
67
|
+
--tw-pan-x: ;
|
|
68
|
+
--tw-pan-y: ;
|
|
69
|
+
--tw-pinch-zoom: ;
|
|
70
|
+
--tw-scroll-snap-strictness: proximity;
|
|
71
|
+
--tw-gradient-from-position: ;
|
|
72
|
+
--tw-gradient-via-position: ;
|
|
73
|
+
--tw-gradient-to-position: ;
|
|
74
|
+
--tw-ordinal: ;
|
|
75
|
+
--tw-slashed-zero: ;
|
|
76
|
+
--tw-numeric-figure: ;
|
|
77
|
+
--tw-numeric-spacing: ;
|
|
78
|
+
--tw-numeric-fraction: ;
|
|
79
|
+
--tw-ring-inset: ;
|
|
80
|
+
--tw-ring-offset-width: 0px;
|
|
81
|
+
--tw-ring-offset-color: #fff;
|
|
82
|
+
--tw-ring-color: rgb(59 130 246 / 0.5);
|
|
83
|
+
--tw-ring-offset-shadow: 0 0 #0000;
|
|
84
|
+
--tw-ring-shadow: 0 0 #0000;
|
|
85
|
+
--tw-shadow: 0 0 #0000;
|
|
86
|
+
--tw-shadow-colored: 0 0 #0000;
|
|
87
|
+
--tw-blur: ;
|
|
88
|
+
--tw-brightness: ;
|
|
89
|
+
--tw-contrast: ;
|
|
90
|
+
--tw-grayscale: ;
|
|
91
|
+
--tw-hue-rotate: ;
|
|
92
|
+
--tw-invert: ;
|
|
93
|
+
--tw-saturate: ;
|
|
94
|
+
--tw-sepia: ;
|
|
95
|
+
--tw-drop-shadow: ;
|
|
96
|
+
--tw-backdrop-blur: ;
|
|
97
|
+
--tw-backdrop-brightness: ;
|
|
98
|
+
--tw-backdrop-contrast: ;
|
|
99
|
+
--tw-backdrop-grayscale: ;
|
|
100
|
+
--tw-backdrop-hue-rotate: ;
|
|
101
|
+
--tw-backdrop-invert: ;
|
|
102
|
+
--tw-backdrop-opacity: ;
|
|
103
|
+
--tw-backdrop-saturate: ;
|
|
104
|
+
--tw-backdrop-sepia: ;
|
|
105
|
+
--tw-contain-size: ;
|
|
106
|
+
--tw-contain-layout: ;
|
|
107
|
+
--tw-contain-paint: ;
|
|
108
|
+
--tw-contain-style: ;
|
|
109
|
+
}
|
|
110
|
+
.container {
|
|
111
|
+
width: 100%;
|
|
112
|
+
}
|
|
113
|
+
@media (min-width: 640px) {
|
|
114
|
+
.container {
|
|
115
|
+
max-width: 640px;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
@media (min-width: 768px) {
|
|
119
|
+
.container {
|
|
120
|
+
max-width: 768px;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
@media (min-width: 1024px) {
|
|
124
|
+
.container {
|
|
125
|
+
max-width: 1024px;
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
@media (min-width: 1280px) {
|
|
129
|
+
.container {
|
|
130
|
+
max-width: 1280px;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
@media (min-width: 1536px) {
|
|
134
|
+
.container {
|
|
135
|
+
max-width: 1536px;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
.fixed {
|
|
139
|
+
position: fixed;
|
|
140
|
+
}
|
|
141
|
+
.absolute {
|
|
142
|
+
position: absolute;
|
|
143
|
+
}
|
|
144
|
+
.relative {
|
|
145
|
+
position: relative;
|
|
146
|
+
}
|
|
147
|
+
.bottom-0 {
|
|
148
|
+
bottom: 0px;
|
|
149
|
+
}
|
|
150
|
+
.left-0 {
|
|
151
|
+
left: 0px;
|
|
152
|
+
}
|
|
153
|
+
.left-14 {
|
|
154
|
+
left: 3.5rem;
|
|
155
|
+
}
|
|
156
|
+
.right-0 {
|
|
157
|
+
right: 0px;
|
|
158
|
+
}
|
|
159
|
+
.right-16 {
|
|
160
|
+
right: 4rem;
|
|
161
|
+
}
|
|
162
|
+
.top-0 {
|
|
163
|
+
top: 0px;
|
|
164
|
+
}
|
|
165
|
+
.top-1\/2 {
|
|
166
|
+
top: 50%;
|
|
167
|
+
}
|
|
168
|
+
.top-16 {
|
|
169
|
+
top: 4rem;
|
|
170
|
+
}
|
|
171
|
+
.top-6 {
|
|
172
|
+
top: 1.5rem;
|
|
173
|
+
}
|
|
174
|
+
.z-10 {
|
|
175
|
+
z-index: 10;
|
|
176
|
+
}
|
|
177
|
+
.my-12 {
|
|
178
|
+
margin-top: 3rem;
|
|
179
|
+
margin-bottom: 3rem;
|
|
180
|
+
}
|
|
181
|
+
.mb-0 {
|
|
182
|
+
margin-bottom: 0px;
|
|
183
|
+
}
|
|
184
|
+
.mb-12 {
|
|
185
|
+
margin-bottom: 3rem;
|
|
186
|
+
}
|
|
187
|
+
.mb-4 {
|
|
188
|
+
margin-bottom: 1rem;
|
|
189
|
+
}
|
|
190
|
+
.mb-6 {
|
|
191
|
+
margin-bottom: 1.5rem;
|
|
192
|
+
}
|
|
193
|
+
.ml-4 {
|
|
194
|
+
margin-left: 1rem;
|
|
195
|
+
}
|
|
196
|
+
.mr-6 {
|
|
197
|
+
margin-right: 1.5rem;
|
|
198
|
+
}
|
|
199
|
+
.mt-2 {
|
|
200
|
+
margin-top: 0.5rem;
|
|
201
|
+
}
|
|
202
|
+
.mt-4 {
|
|
203
|
+
margin-top: 1rem;
|
|
204
|
+
}
|
|
205
|
+
.block {
|
|
206
|
+
display: block;
|
|
207
|
+
}
|
|
208
|
+
.inline {
|
|
209
|
+
display: inline;
|
|
210
|
+
}
|
|
211
|
+
.flex {
|
|
212
|
+
display: flex;
|
|
213
|
+
}
|
|
214
|
+
.h-10 {
|
|
215
|
+
height: 2.5rem;
|
|
216
|
+
}
|
|
217
|
+
.h-full {
|
|
218
|
+
height: 100%;
|
|
219
|
+
}
|
|
220
|
+
.h-screen {
|
|
221
|
+
height: 100vh;
|
|
222
|
+
}
|
|
223
|
+
.w-10\/12 {
|
|
224
|
+
width: 83.333333%;
|
|
225
|
+
}
|
|
226
|
+
.w-\[650px\] {
|
|
227
|
+
width: 650px;
|
|
228
|
+
}
|
|
229
|
+
.w-full {
|
|
230
|
+
width: 100%;
|
|
231
|
+
}
|
|
232
|
+
.w-screen {
|
|
233
|
+
width: 100vw;
|
|
234
|
+
}
|
|
235
|
+
.flex-1 {
|
|
236
|
+
flex: 1 1 0%;
|
|
237
|
+
}
|
|
238
|
+
.flex-grow-0 {
|
|
239
|
+
flex-grow: 0;
|
|
240
|
+
}
|
|
241
|
+
.-translate-y-1\/2 {
|
|
242
|
+
--tw-translate-y: -50%;
|
|
243
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
244
|
+
}
|
|
245
|
+
.-translate-y-10 {
|
|
246
|
+
--tw-translate-y: -2.5rem;
|
|
247
|
+
transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));
|
|
248
|
+
}
|
|
249
|
+
.flex-col {
|
|
250
|
+
flex-direction: column;
|
|
251
|
+
}
|
|
252
|
+
.items-center {
|
|
253
|
+
align-items: center;
|
|
254
|
+
}
|
|
255
|
+
.justify-center {
|
|
256
|
+
justify-content: center;
|
|
257
|
+
}
|
|
258
|
+
.justify-between {
|
|
259
|
+
justify-content: space-between;
|
|
260
|
+
}
|
|
261
|
+
.gap-2 {
|
|
262
|
+
gap: 0.5rem;
|
|
263
|
+
}
|
|
264
|
+
.overflow-hidden {
|
|
265
|
+
overflow: hidden;
|
|
266
|
+
}
|
|
267
|
+
.bg-slate-50 {
|
|
268
|
+
--tw-bg-opacity: 1;
|
|
269
|
+
background-color: rgb(248 250 252 / var(--tw-bg-opacity));
|
|
270
|
+
}
|
|
271
|
+
.px-36 {
|
|
272
|
+
padding-left: 9rem;
|
|
273
|
+
padding-right: 9rem;
|
|
274
|
+
}
|
|
275
|
+
.px-6 {
|
|
276
|
+
padding-left: 1.5rem;
|
|
277
|
+
padding-right: 1.5rem;
|
|
278
|
+
}
|
|
279
|
+
.py-4 {
|
|
280
|
+
padding-top: 1rem;
|
|
281
|
+
padding-bottom: 1rem;
|
|
282
|
+
}
|
|
283
|
+
.filter {
|
|
284
|
+
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);
|
|
285
|
+
}
|
|
286
|
+
.transition {
|
|
287
|
+
transition-property:
|
|
288
|
+
color,
|
|
289
|
+
background-color,
|
|
290
|
+
border-color,
|
|
291
|
+
text-decoration-color,
|
|
292
|
+
fill,
|
|
293
|
+
stroke,
|
|
294
|
+
opacity,
|
|
295
|
+
box-shadow,
|
|
296
|
+
transform,
|
|
297
|
+
filter,
|
|
298
|
+
-webkit-backdrop-filter;
|
|
299
|
+
transition-property:
|
|
300
|
+
color,
|
|
301
|
+
background-color,
|
|
302
|
+
border-color,
|
|
303
|
+
text-decoration-color,
|
|
304
|
+
fill,
|
|
305
|
+
stroke,
|
|
306
|
+
opacity,
|
|
307
|
+
box-shadow,
|
|
308
|
+
transform,
|
|
309
|
+
filter,
|
|
310
|
+
backdrop-filter;
|
|
311
|
+
transition-property:
|
|
312
|
+
color,
|
|
313
|
+
background-color,
|
|
314
|
+
border-color,
|
|
315
|
+
text-decoration-color,
|
|
316
|
+
fill,
|
|
317
|
+
stroke,
|
|
318
|
+
opacity,
|
|
319
|
+
box-shadow,
|
|
320
|
+
transform,
|
|
321
|
+
filter,
|
|
322
|
+
backdrop-filter,
|
|
323
|
+
-webkit-backdrop-filter;
|
|
324
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
325
|
+
transition-duration: 150ms;
|
|
326
|
+
}
|
|
327
|
+
.ease-in-out {
|
|
328
|
+
transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
|
|
329
|
+
}
|
|
330
|
+
/*# sourceMappingURL=index.css.map */
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/styles/index.css"],"sourcesContent":["*, ::before, ::after {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n::backdrop {\n --tw-border-spacing-x: 0;\n --tw-border-spacing-y: 0;\n --tw-translate-x: 0;\n --tw-translate-y: 0;\n --tw-rotate: 0;\n --tw-skew-x: 0;\n --tw-skew-y: 0;\n --tw-scale-x: 1;\n --tw-scale-y: 1;\n --tw-pan-x: ;\n --tw-pan-y: ;\n --tw-pinch-zoom: ;\n --tw-scroll-snap-strictness: proximity;\n --tw-gradient-from-position: ;\n --tw-gradient-via-position: ;\n --tw-gradient-to-position: ;\n --tw-ordinal: ;\n --tw-slashed-zero: ;\n --tw-numeric-figure: ;\n --tw-numeric-spacing: ;\n --tw-numeric-fraction: ;\n --tw-ring-inset: ;\n --tw-ring-offset-width: 0px;\n --tw-ring-offset-color: #fff;\n --tw-ring-color: rgb(59 130 246 / 0.5);\n --tw-ring-offset-shadow: 0 0 #0000;\n --tw-ring-shadow: 0 0 #0000;\n --tw-shadow: 0 0 #0000;\n --tw-shadow-colored: 0 0 #0000;\n --tw-blur: ;\n --tw-brightness: ;\n --tw-contrast: ;\n --tw-grayscale: ;\n --tw-hue-rotate: ;\n --tw-invert: ;\n --tw-saturate: ;\n --tw-sepia: ;\n --tw-drop-shadow: ;\n --tw-backdrop-blur: ;\n --tw-backdrop-brightness: ;\n --tw-backdrop-contrast: ;\n --tw-backdrop-grayscale: ;\n --tw-backdrop-hue-rotate: ;\n --tw-backdrop-invert: ;\n --tw-backdrop-opacity: ;\n --tw-backdrop-saturate: ;\n --tw-backdrop-sepia: ;\n --tw-contain-size: ;\n --tw-contain-layout: ;\n --tw-contain-paint: ;\n --tw-contain-style: \n}\n.container {\n width: 100%\n}\n@media (min-width: 640px) {\n .container {\n max-width: 640px\n }\n}\n@media (min-width: 768px) {\n .container {\n max-width: 768px\n }\n}\n@media (min-width: 1024px) {\n .container {\n max-width: 1024px\n }\n}\n@media (min-width: 1280px) {\n .container {\n max-width: 1280px\n }\n}\n@media (min-width: 1536px) {\n .container {\n max-width: 1536px\n }\n}\n.fixed {\n position: fixed\n}\n.absolute {\n position: absolute\n}\n.relative {\n position: relative\n}\n.bottom-0 {\n bottom: 0px\n}\n.left-0 {\n left: 0px\n}\n.left-14 {\n left: 3.5rem\n}\n.right-0 {\n right: 0px\n}\n.right-16 {\n right: 4rem\n}\n.top-0 {\n top: 0px\n}\n.top-1\\/2 {\n top: 50%\n}\n.top-16 {\n top: 4rem\n}\n.top-6 {\n top: 1.5rem\n}\n.z-10 {\n z-index: 10\n}\n.my-12 {\n margin-top: 3rem;\n margin-bottom: 3rem\n}\n.mb-0 {\n margin-bottom: 0px\n}\n.mb-12 {\n margin-bottom: 3rem\n}\n.mb-4 {\n margin-bottom: 1rem\n}\n.mb-6 {\n margin-bottom: 1.5rem\n}\n.ml-4 {\n margin-left: 1rem\n}\n.mr-6 {\n margin-right: 1.5rem\n}\n.mt-2 {\n margin-top: 0.5rem\n}\n.mt-4 {\n margin-top: 1rem\n}\n.block {\n display: block\n}\n.inline {\n display: inline\n}\n.flex {\n display: flex\n}\n.h-10 {\n height: 2.5rem\n}\n.h-full {\n height: 100%\n}\n.h-screen {\n height: 100vh\n}\n.w-10\\/12 {\n width: 83.333333%\n}\n.w-\\[650px\\] {\n width: 650px\n}\n.w-full {\n width: 100%\n}\n.w-screen {\n width: 100vw\n}\n.flex-1 {\n flex: 1 1 0%\n}\n.flex-grow-0 {\n flex-grow: 0\n}\n.-translate-y-1\\/2 {\n --tw-translate-y: -50%;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.-translate-y-10 {\n --tw-translate-y: -2.5rem;\n transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))\n}\n.flex-col {\n flex-direction: column\n}\n.items-center {\n align-items: center\n}\n.justify-center {\n justify-content: center\n}\n.justify-between {\n justify-content: space-between\n}\n.gap-2 {\n gap: 0.5rem\n}\n.overflow-hidden {\n overflow: hidden\n}\n.bg-slate-50 {\n --tw-bg-opacity: 1;\n background-color: rgb(248 250 252 / var(--tw-bg-opacity))\n}\n.px-36 {\n padding-left: 9rem;\n padding-right: 9rem\n}\n.px-6 {\n padding-left: 1.5rem;\n padding-right: 1.5rem\n}\n.py-4 {\n padding-top: 1rem;\n padding-bottom: 1rem\n}\n.filter {\n 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)\n}\n.transition {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, -webkit-backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter, -webkit-backdrop-filter;\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n transition-duration: 150ms\n}\n.ease-in-out {\n transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1)\n}\n"],"mappings":";AAAA;AAAG;AAAU;AACT,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA;AACI,yBAAuB;AACvB,yBAAuB;AACvB,oBAAkB;AAClB,oBAAkB;AAClB,eAAa;AACb,eAAa;AACb,eAAa;AACb,gBAAc;AACd,gBAAc;AACd;AACA;AACA;AACA,+BAA6B;AAC7B;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,0BAAwB;AACxB,0BAAwB;AACxB,mBAAiB,IAAI,GAAG,IAAI,IAAI,EAAE;AAClC,2BAAyB,EAAE,EAAE;AAC7B,oBAAkB,EAAE,EAAE;AACtB,eAAa,EAAE,EAAE;AACjB,uBAAqB,EAAE,EAAE;AACzB;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACJ;AACA,CAAC;AACG,SAAO;AACX;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAJH;AAKO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GATH;AAUO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAdH;AAeO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAnBH;AAoBO,eAAW;AACf;AACJ;AACA,OAAO,CAAC,SAAS,EAAE;AACf,GAxBH;AAyB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","names":[]}
|
package/lib/index.d.ts
CHANGED
|
@@ -10,27 +10,9 @@ import { StateStorage } from 'zustand/middleware';
|
|
|
10
10
|
import { FormInstance, ButtonProps, ModalProps, FormProps } from 'antd';
|
|
11
11
|
import { TableProps } from 'antd/es/table';
|
|
12
12
|
import { AnyObject } from 'antd/es/_util/type';
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
status: number;
|
|
17
|
-
code?: number;
|
|
18
|
-
constructor(opts: {
|
|
19
|
-
message?: string;
|
|
20
|
-
status: number;
|
|
21
|
-
code?: number;
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
interface RequestOptions extends Omit<RequestInit, 'body'> {
|
|
25
|
-
body?: Record<string | number, any> | FormData | null;
|
|
26
|
-
params?: Record<string | number, any> | URLSearchParams | null;
|
|
27
|
-
responseType?: 'json' | 'blob' | 'text';
|
|
28
|
-
isGlobal?: boolean;
|
|
29
|
-
}
|
|
30
|
-
type RequestResponse<T> = Pick<Response, 'headers' | 'status' | 'statusText' | 'url'> & {
|
|
31
|
-
data: T;
|
|
32
|
-
};
|
|
33
|
-
declare function request<T = any>(url: string, opts?: RequestOptions): Promise<RequestResponse<T>>;
|
|
13
|
+
import * as use_http from 'use-http';
|
|
14
|
+
import { IncomingOptions } from 'use-http';
|
|
15
|
+
import { MutatorCallback, MutatorOptions } from 'swr';
|
|
34
16
|
|
|
35
17
|
declare const GameSelect: () => react_jsx_runtime.JSX.Element;
|
|
36
18
|
|
|
@@ -182,7 +164,6 @@ interface ContextState {
|
|
|
182
164
|
children: ReactNode;
|
|
183
165
|
}[];
|
|
184
166
|
gameFilter?: (game: Game) => boolean;
|
|
185
|
-
responseInterceptor?: (response: Response, opts: RequestOptions) => Promise<any>;
|
|
186
167
|
}
|
|
187
168
|
|
|
188
169
|
declare const contextStore: zustand.StoreApi<ContextState>;
|
|
@@ -271,6 +252,8 @@ interface QueryListRef<Item, Value, Response> {
|
|
|
271
252
|
dataSource: Item[] | undefined;
|
|
272
253
|
form: FormInstance<Value>;
|
|
273
254
|
}
|
|
255
|
+
type BodyProp = Record<string | number, any> | FormData | null;
|
|
256
|
+
type ParamsProp = Record<string | number, any> | URLSearchParams | null;
|
|
274
257
|
interface QueryListProps<Item extends AnyObject = AnyObject, Value = any, Response = any> extends Omit<TableProps<Item>, 'pagination' | 'dataSource' | 'loading'> {
|
|
275
258
|
code?: string;
|
|
276
259
|
isGlobal?: boolean;
|
|
@@ -279,10 +262,10 @@ interface QueryListProps<Item extends AnyObject = AnyObject, Value = any, Respon
|
|
|
279
262
|
refreshInterval?: number;
|
|
280
263
|
onePage?: boolean;
|
|
281
264
|
defaultSize?: number;
|
|
282
|
-
headers?:
|
|
265
|
+
headers?: IncomingOptions['headers'];
|
|
283
266
|
buttonsAlign?: 'left' | 'right';
|
|
284
|
-
body?:
|
|
285
|
-
params?:
|
|
267
|
+
body?: BodyProp | ((payload: QueryListPayload<Value>) => BodyProp);
|
|
268
|
+
params?: ParamsProp | ((payload: QueryListPayload<Value>) => ParamsProp);
|
|
286
269
|
tableExtra?: ReactNode | ((form: FormInstance<Value>) => ReactNode);
|
|
287
270
|
renderForm?: (form: FormInstance<Value>) => ReactElement;
|
|
288
271
|
extra?: (opts: {
|
|
@@ -351,17 +334,138 @@ declare function useFormModal<Values extends AnyObject = AnyObject, ExtraValues
|
|
|
351
334
|
modal: react_jsx_runtime.JSX.Element;
|
|
352
335
|
};
|
|
353
336
|
|
|
354
|
-
declare function usePermissions(codes: string[], isGlobal?: boolean
|
|
337
|
+
declare function usePermissions(codes: string[], isGlobal?: boolean): {
|
|
355
338
|
data: Record<string, boolean> | undefined;
|
|
356
339
|
isValidating: boolean;
|
|
357
340
|
isLoading: boolean;
|
|
358
341
|
};
|
|
359
|
-
declare function usePermission(code: string | undefined, isGlobal?: boolean
|
|
342
|
+
declare function usePermission(code: string | undefined, isGlobal?: boolean): {
|
|
360
343
|
accessible: boolean;
|
|
361
344
|
isValidating: boolean;
|
|
362
345
|
isLoading: boolean;
|
|
363
346
|
};
|
|
364
347
|
|
|
348
|
+
type Params = Record<string | number, string | number> | URLSearchParams | null;
|
|
349
|
+
declare const useRequest: <T>(opts?: Omit<IncomingOptions, "interceptors"> & {
|
|
350
|
+
isGlobal?: boolean;
|
|
351
|
+
responseType?: "json" | "blob" | "text";
|
|
352
|
+
}) => {
|
|
353
|
+
get: (route?: string, params?: Params) => Promise<T>;
|
|
354
|
+
0: use_http.Req<T>;
|
|
355
|
+
1: use_http.Res<T>;
|
|
356
|
+
2: boolean;
|
|
357
|
+
3: Error;
|
|
358
|
+
length: 4;
|
|
359
|
+
toString(): string;
|
|
360
|
+
toLocaleString(): string;
|
|
361
|
+
toLocaleString(locales: string | string[], options?: Intl.NumberFormatOptions & Intl.DateTimeFormatOptions): string;
|
|
362
|
+
pop(): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
|
|
363
|
+
push(...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): number;
|
|
364
|
+
concat(...items: ConcatArray<boolean | Error | use_http.Req<T> | use_http.Res<T>>[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
365
|
+
concat(...items: (boolean | Error | use_http.Req<T> | use_http.Res<T> | ConcatArray<boolean | Error | use_http.Req<T> | use_http.Res<T>>)[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
366
|
+
join(separator?: string): string;
|
|
367
|
+
reverse(): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
368
|
+
shift(): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
|
|
369
|
+
slice(start?: number, end?: number): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
370
|
+
sort(compareFn?: ((a: boolean | Error | use_http.Req<T> | use_http.Res<T>, b: boolean | Error | use_http.Req<T> | use_http.Res<T>) => number) | undefined): use_http.UseFetch<T>;
|
|
371
|
+
splice(start: number, deleteCount?: number): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
372
|
+
splice(start: number, deleteCount: number, ...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
373
|
+
unshift(...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): number;
|
|
374
|
+
indexOf(searchElement: boolean | Error | use_http.Req<T> | use_http.Res<T>, fromIndex?: number): number;
|
|
375
|
+
lastIndexOf(searchElement: boolean | Error | use_http.Req<T> | use_http.Res<T>, fromIndex?: number): number;
|
|
376
|
+
every<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): this is S[];
|
|
377
|
+
every(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean;
|
|
378
|
+
some(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean;
|
|
379
|
+
forEach(callbackfn: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => void, thisArg?: any): void;
|
|
380
|
+
map<U>(callbackfn: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U, thisArg?: any): U[];
|
|
381
|
+
filter<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): S[];
|
|
382
|
+
filter(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
383
|
+
reduce(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
|
|
384
|
+
reduce(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>, initialValue: boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
|
|
385
|
+
reduce<U>(callbackfn: (previousValue: U, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U, initialValue: U): U;
|
|
386
|
+
reduceRight(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
|
|
387
|
+
reduceRight(callbackfn: (previousValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => boolean | Error | use_http.Req<T> | use_http.Res<T>, initialValue: boolean | Error | use_http.Req<T> | use_http.Res<T>): boolean | Error | use_http.Req<T> | use_http.Res<T>;
|
|
388
|
+
reduceRight<U>(callbackfn: (previousValue: U, currentValue: boolean | Error | use_http.Req<T> | use_http.Res<T>, currentIndex: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U, initialValue: U): U;
|
|
389
|
+
find<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, obj: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): S | undefined;
|
|
390
|
+
find(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, obj: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
|
|
391
|
+
findIndex(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, obj: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): number;
|
|
392
|
+
fill(value: boolean | Error | use_http.Req<T> | use_http.Res<T>, start?: number, end?: number): use_http.UseFetch<T>;
|
|
393
|
+
copyWithin(target: number, start: number, end?: number): use_http.UseFetch<T>;
|
|
394
|
+
entries(): IterableIterator<[number, boolean | Error | use_http.Req<T> | use_http.Res<T>]>;
|
|
395
|
+
keys(): IterableIterator<number>;
|
|
396
|
+
values(): IterableIterator<boolean | Error | use_http.Req<T> | use_http.Res<T>>;
|
|
397
|
+
includes(searchElement: boolean | Error | use_http.Req<T> | use_http.Res<T>, fromIndex?: number): boolean;
|
|
398
|
+
flatMap<U, This = undefined>(callback: (this: This, value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => U | readonly U[], thisArg?: This | undefined): U[];
|
|
399
|
+
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
|
|
400
|
+
at(index: number): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
|
|
401
|
+
findLast<S extends boolean | Error | use_http.Req<T> | use_http.Res<T>>(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => value is S, thisArg?: any): S | undefined;
|
|
402
|
+
findLast(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): boolean | Error | use_http.Req<T> | use_http.Res<T> | undefined;
|
|
403
|
+
findLastIndex(predicate: (value: boolean | Error | use_http.Req<T> | use_http.Res<T>, index: number, array: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]) => unknown, thisArg?: any): number;
|
|
404
|
+
toReversed(): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
405
|
+
toSorted(compareFn?: ((a: boolean | Error | use_http.Req<T> | use_http.Res<T>, b: boolean | Error | use_http.Req<T> | use_http.Res<T>) => number) | undefined): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
406
|
+
toSpliced(start: number, deleteCount: number, ...items: (boolean | Error | use_http.Req<T> | use_http.Res<T>)[]): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
407
|
+
toSpliced(start: number, deleteCount?: number): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
408
|
+
with(index: number, value: boolean | Error | use_http.Req<T> | use_http.Res<T>): (boolean | Error | use_http.Req<T> | use_http.Res<T>)[];
|
|
409
|
+
[Symbol.iterator](): IterableIterator<boolean | Error | use_http.Req<T> | use_http.Res<T>>;
|
|
410
|
+
[Symbol.unscopables]: {
|
|
411
|
+
[x: number]: boolean | undefined;
|
|
412
|
+
length?: boolean | undefined;
|
|
413
|
+
toString?: boolean | undefined;
|
|
414
|
+
toLocaleString?: boolean | undefined;
|
|
415
|
+
pop?: boolean | undefined;
|
|
416
|
+
push?: boolean | undefined;
|
|
417
|
+
concat?: boolean | undefined;
|
|
418
|
+
join?: boolean | undefined;
|
|
419
|
+
reverse?: boolean | undefined;
|
|
420
|
+
shift?: boolean | undefined;
|
|
421
|
+
slice?: boolean | undefined;
|
|
422
|
+
sort?: boolean | undefined;
|
|
423
|
+
splice?: boolean | undefined;
|
|
424
|
+
unshift?: boolean | undefined;
|
|
425
|
+
indexOf?: boolean | undefined;
|
|
426
|
+
lastIndexOf?: boolean | undefined;
|
|
427
|
+
every?: boolean | undefined;
|
|
428
|
+
some?: boolean | undefined;
|
|
429
|
+
forEach?: boolean | undefined;
|
|
430
|
+
map?: boolean | undefined;
|
|
431
|
+
filter?: boolean | undefined;
|
|
432
|
+
reduce?: boolean | undefined;
|
|
433
|
+
reduceRight?: boolean | undefined;
|
|
434
|
+
find?: boolean | undefined;
|
|
435
|
+
findIndex?: boolean | undefined;
|
|
436
|
+
fill?: boolean | undefined;
|
|
437
|
+
copyWithin?: boolean | undefined;
|
|
438
|
+
entries?: boolean | undefined;
|
|
439
|
+
keys?: boolean | undefined;
|
|
440
|
+
values?: boolean | undefined;
|
|
441
|
+
includes?: boolean | undefined;
|
|
442
|
+
flatMap?: boolean | undefined;
|
|
443
|
+
flat?: boolean | undefined;
|
|
444
|
+
at?: boolean | undefined;
|
|
445
|
+
findLast?: boolean | undefined;
|
|
446
|
+
findLastIndex?: boolean | undefined;
|
|
447
|
+
toReversed?: boolean | undefined;
|
|
448
|
+
toSorted?: boolean | undefined;
|
|
449
|
+
toSpliced?: boolean | undefined;
|
|
450
|
+
with?: boolean | undefined;
|
|
451
|
+
[Symbol.iterator]?: boolean | undefined;
|
|
452
|
+
readonly [Symbol.unscopables]?: boolean | undefined;
|
|
453
|
+
};
|
|
454
|
+
data: T | undefined;
|
|
455
|
+
loading: boolean;
|
|
456
|
+
error: Error | undefined;
|
|
457
|
+
cache: use_http.Cache;
|
|
458
|
+
post: use_http.FetchData<T>;
|
|
459
|
+
patch: use_http.FetchData<T>;
|
|
460
|
+
put: use_http.FetchData<T>;
|
|
461
|
+
del: use_http.FetchData<T>;
|
|
462
|
+
delete: use_http.FetchData<T>;
|
|
463
|
+
query: (query: string, variables?: BodyInit | object) => Promise<T>;
|
|
464
|
+
mutate: (mutation: string, variables?: BodyInit | object) => Promise<T>;
|
|
465
|
+
abort: () => void;
|
|
466
|
+
request: use_http.Req<T>;
|
|
467
|
+
};
|
|
468
|
+
|
|
365
469
|
interface UserInfo {
|
|
366
470
|
authorityId: string;
|
|
367
471
|
exp: number;
|
|
@@ -395,15 +499,10 @@ declare const OperationLogList: FC;
|
|
|
395
499
|
|
|
396
500
|
declare const PermissionRoutes: () => react_jsx_runtime.JSX.Element;
|
|
397
501
|
|
|
398
|
-
declare const useRedirectToSignIn: () => (notRegistered?: boolean) => void;
|
|
399
|
-
interface RedirectToSignInProps {
|
|
400
|
-
notRegistered?: boolean;
|
|
401
|
-
}
|
|
402
|
-
declare const RedirectToSignIn: FC<RedirectToSignInProps>;
|
|
403
502
|
declare const SignIn: FC;
|
|
404
503
|
|
|
405
504
|
declare const withLayout: (WrappedComponent: ComponentType, props?: Partial<ContextState>) => () => react_jsx_runtime.JSX.Element;
|
|
406
505
|
|
|
407
506
|
declare const mixedStorage: StateStorage;
|
|
408
507
|
|
|
409
|
-
export { ContextProvider, type ContextState, DynamicTags, type DynamicTagsProps, ExpandableParagraph, FilterFormWrapper, type FilterFormWrapperProps, type Game, GameSelect, type GameState, Highlight, type HighlightTextsProps, InfiniteList, type InfiniteListProps, Layout, NavMenu, type NavMenuItem, NotFound, OperationLogList, PermissionButton, type PermissionButtonProps, PermissionGuard, type PermissionGuardProps, PermissionRoutes, QueryList, QueryListAction, type QueryListProps, type QueryListRef,
|
|
508
|
+
export { ContextProvider, type ContextState, DynamicTags, type DynamicTagsProps, ExpandableParagraph, FilterFormWrapper, type FilterFormWrapperProps, type Game, GameSelect, type GameState, Highlight, type HighlightTextsProps, InfiniteList, type InfiniteListProps, Layout, NavMenu, type NavMenuItem, NotFound, OperationLogList, PermissionButton, type PermissionButtonProps, PermissionGuard, type PermissionGuardProps, PermissionRoutes, QueryList, QueryListAction, type QueryListProps, type QueryListRef, SignIn, type TokenState, type UseFormModalProps, UserWidget, contextStore, mixedStorage, useFormModal, useGameStore, useModal, useModalStore, usePermission, usePermissions, useQueryListStore, useRequest, useTokenStore, useTokenValidation, useToolkitsContext, withLayout };
|