@para-ui/core 4.0.52 → 4.0.54
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/Button/index.js +2 -2
- package/Cascader/Cascader.d.ts +3 -0
- package/Cascader/index.js +11 -8
- package/ComboSelect/index.js +5 -5
- package/CycleSelector/index.js +2 -2
- package/DatePicker/index.js +2 -2
- package/DynamicMultiBox/index.js +7 -7
- package/DynamicMultiBox/interface.d.ts +1 -1
- package/FieldForm/ErrorList.d.ts +16 -0
- package/FieldForm/FieldFormItem/ItemHolder.d.ts +18 -0
- package/FieldForm/FieldFormItem/MemoInput.d.ts +14 -0
- package/FieldForm/FieldFormItem/StatusProvider.d.ts +20 -0
- package/FieldForm/FieldFormItem/index.d.ts +58 -0
- package/FieldForm/Form.d.ts +36 -0
- package/FieldForm/FormItemInput.d.ts +21 -0
- package/FieldForm/FormItemLabel.d.ts +21 -0
- package/FieldForm/FormList.d.ts +23 -0
- package/FieldForm/context.d.ts +33 -0
- package/FieldForm/hooks/useChildren.d.ts +2 -0
- package/FieldForm/hooks/useDebounce.d.ts +1 -0
- package/FieldForm/hooks/useForm.d.ts +6 -0
- package/FieldForm/hooks/useFormInstance.d.ts +2 -0
- package/FieldForm/hooks/useFormItemStatus.d.ts +9 -0
- package/FieldForm/hooks/useFrameState.d.ts +3 -0
- package/FieldForm/hooks/useItemRef.d.ts +3 -0
- package/FieldForm/index.d.ts +30 -0
- package/FieldForm/index.js +5326 -0
- package/FieldForm/interface.d.ts +2 -0
- package/FieldForm/lang/en_US.d.ts +51 -0
- package/FieldForm/lang/index.d.ts +105 -0
- package/FieldForm/lang/zh_CN.d.ts +51 -0
- package/FieldForm/util.d.ts +21 -0
- package/Form/index.js +6 -6
- package/FormItem/index.js +6 -6
- package/FunctionModal/index.js +2 -2
- package/Image/index.js +5 -55
- package/PopMenu/index.js +2 -2
- package/README.md +15 -0
- package/Result/index.js +2 -2
- package/Selector/index.js +1 -1
- package/SelectorPicker/index.js +1 -1
- package/Switch/index.d.ts +4 -0
- package/Switch/index.js +3 -2
- package/Table/index.js +433 -498
- package/Tag/index.js +2 -2
- package/TextEditor/index.d.ts +2 -0
- package/TextEditor/index.js +27 -6
- package/TimePicker/index.js +2 -2
- package/Tooltip/index.js +26 -27
- package/Transfer/index.d.ts +1 -0
- package/Transfer/index.js +120 -119
- package/Tree/index.js +4 -4
- package/Upload/index.js +9 -7
- package/_verture/{Portal-f9bedb3a.js → Portal-502bb85e.js} +29 -481
- package/_verture/{index-5b0d1c7d.js → index-0a300edb.js} +387 -700
- package/_verture/index-1856bbeb.js +480 -0
- package/_verture/{index-ba8815d0.js → index-320d67c4.js} +2 -2
- package/_verture/{index-887e5e11.js → index-43c653bb.js} +1 -1
- package/_verture/isEqual-30b6f859.js +56 -0
- package/_verture/{slicedToArray-75fa4188.js → slicedToArray-61604a6c.js} +1 -1
- package/_verture/{toConsumableArray-c7a8028f.js → toConsumableArray-599cd94a.js} +1 -1
- package/_verture/useState-f2419d68.js +353 -0
- package/index.d.ts +2 -0
- package/index.js +15 -11
- package/locale/en-US.d.ts +46 -0
- package/locale/index.d.ts +92 -0
- package/locale/index.js +92 -0
- package/locale/zh-CN.d.ts +46 -0
- package/package.json +3 -1
- package/umd/Anchor.js +5 -5
- package/umd/Argv.js +5 -5
- package/umd/AutoBox.js +5 -5
- package/umd/AutoButton.js +6 -6
- package/umd/AutoTips.js +5 -5
- package/umd/Breadcrumbs.js +4 -4
- package/umd/Button.js +5 -5
- package/umd/ButtonGroup.js +6 -6
- package/umd/Cascader.js +5 -5
- package/umd/Checkbox.js +4 -4
- package/umd/CheckboxGroup.js +4 -4
- package/umd/Collapse.js +1 -1
- package/umd/ComboSelect.js +5 -5
- package/umd/CopyText.js +5 -5
- package/umd/CycleSelector.js +5 -5
- package/umd/DatePicker.js +5 -5
- package/umd/Descriptions.js +6 -6
- package/umd/Desktop.js +5 -5
- package/umd/Drawer.js +5 -5
- package/umd/Dropdown.js +4 -4
- package/umd/DynamicMultiBox.js +5 -5
- package/umd/FieldForm.js +43 -0
- package/umd/Form.js +5 -5
- package/umd/FormItem.js +5 -5
- package/umd/FunctionModal.js +5 -5
- package/umd/Help.js +5 -5
- package/umd/Image.js +3 -3
- package/umd/InputCode.js +5 -5
- package/umd/InputLang.js +5 -5
- package/umd/InputNumber.js +4 -4
- package/umd/Label.js +4 -4
- package/umd/Menu.js +4 -4
- package/umd/Modal.js +5 -5
- package/umd/MultiBox.js +6 -6
- package/umd/Notification.js +3 -3
- package/umd/OperateBtn.js +5 -5
- package/umd/PageHeader.js +5 -5
- package/umd/Pagination.js +5 -5
- package/umd/PopConfirm.js +5 -5
- package/umd/PopMenu.js +5 -5
- package/umd/Popover.js +5 -5
- package/umd/QuickReply.js +5 -5
- package/umd/Radio.js +4 -4
- package/umd/RadioGroup.js +4 -4
- package/umd/RangeInput.js +5 -5
- package/umd/Result.js +4 -4
- package/umd/Search.js +5 -5
- package/umd/Select.js +5 -5
- package/umd/SelectInput.js +5 -5
- package/umd/Selector.js +5 -5
- package/umd/SelectorPicker.js +5 -5
- package/umd/SingleBox.js +5 -5
- package/umd/Slider.js +4 -4
- package/umd/Stepper.js +4 -4
- package/umd/Switch.js +4 -4
- package/umd/Table.js +6 -6
- package/umd/Tabs.js +4 -4
- package/umd/Tag.js +5 -5
- package/umd/TextEditor.js +6 -6
- package/umd/TextField.js +5 -5
- package/umd/TimePicker.js +5 -5
- package/umd/Title.js +3 -3
- package/umd/ToggleButton.js +5 -5
- package/umd/Tooltip.js +4 -4
- package/umd/Transfer.js +7 -7
- package/umd/Tree.js +3 -3
- package/umd/Upload.js +5 -5
- package/umd/locale.js +1 -1
- /package/_verture/{modalContext-f68b51a2.js → modalContext-6ac2e323.js} +0 -0
package/Upload/index.js
CHANGED
|
@@ -4,10 +4,10 @@ import { useState, useRef, useMemo, useEffect, memo, forwardRef, useCallback, us
|
|
|
4
4
|
import RcUpload from 'rc-upload';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
6
|
import UploadIcon from '@para-ui/icons/UploadFile';
|
|
7
|
-
import
|
|
8
|
-
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-
|
|
7
|
+
import Loading from '@para-ui/icons/Loading';
|
|
8
|
+
import { _ as _toConsumableArray } from '../_verture/toConsumableArray-599cd94a.js';
|
|
9
9
|
import { _ as _typeof } from '../_verture/typeof-adeedc13.js';
|
|
10
|
-
import { _ as _slicedToArray } from '../_verture/slicedToArray-
|
|
10
|
+
import { _ as _slicedToArray } from '../_verture/slicedToArray-61604a6c.js';
|
|
11
11
|
import { r as regenerator } from '../_verture/index-8ac46bd9.js';
|
|
12
12
|
import EditOutline from '@para-ui/icons/EditOutline';
|
|
13
13
|
import Close from '@para-ui/icons/Close';
|
|
@@ -36,10 +36,12 @@ import { Modal } from '../Modal/index.js';
|
|
|
36
36
|
import '../_verture/typeof-6ec38efd.js';
|
|
37
37
|
import 'rc-tooltip';
|
|
38
38
|
import 'rc-tooltip/lib/placements';
|
|
39
|
-
import '../_verture/
|
|
40
|
-
import 'react-dom';
|
|
39
|
+
import '../_verture/index-1856bbeb.js';
|
|
41
40
|
import '../_verture/defineProperty-6f62bb2a.js';
|
|
41
|
+
import '../_verture/Portal-502bb85e.js';
|
|
42
|
+
import 'react-dom';
|
|
42
43
|
import 'rc-dialog';
|
|
44
|
+
import '../_verture/isEqual-30b6f859.js';
|
|
43
45
|
import 'rc-motion';
|
|
44
46
|
import '@para-ui/icons/Sort';
|
|
45
47
|
import '@para-ui/icons/Switch';
|
|
@@ -1036,7 +1038,7 @@ var ImageUpload = function ImageUpload(props) {
|
|
|
1036
1038
|
}))]
|
|
1037
1039
|
}));
|
|
1038
1040
|
var uploadNode = jsxs(Fragment, {
|
|
1039
|
-
children: [showLoading ? jsx(
|
|
1041
|
+
children: [showLoading ? jsx(Loading, {
|
|
1040
1042
|
className: 'upload-image-loading'
|
|
1041
1043
|
}) : jsx(UploadIcon, {
|
|
1042
1044
|
className: 'upload-image-icon'
|
|
@@ -1912,7 +1914,7 @@ const InternalUpload = props => {
|
|
|
1912
1914
|
areaDesc = hint
|
|
1913
1915
|
} = dragArea !== null && dragArea !== void 0 ? dragArea : {};
|
|
1914
1916
|
if (showLoading) {
|
|
1915
|
-
areaIcon = jsx(
|
|
1917
|
+
areaIcon = jsx(Loading, {
|
|
1916
1918
|
className: 'upload-drag-loading'
|
|
1917
1919
|
});
|
|
1918
1920
|
areaText = jsxs("span", Object.assign({
|
|
@@ -1,74 +1,10 @@
|
|
|
1
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
1
|
+
import { _ as _slicedToArray } from './slicedToArray-61604a6c.js';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import { version, isValidElement } from 'react';
|
|
3
4
|
import { createPortal } from 'react-dom';
|
|
5
|
+
import { r as reactIs, _ as _objectSpread2, d as warningOnce } from './index-1856bbeb.js';
|
|
4
6
|
import { _ as _typeof } from './typeof-adeedc13.js';
|
|
5
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
6
|
-
import { _ as _defineProperty } from './defineProperty-6f62bb2a.js';
|
|
7
|
-
|
|
8
|
-
function _extends() {
|
|
9
|
-
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
10
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
11
|
-
var source = arguments[i];
|
|
12
|
-
for (var key in source) {
|
|
13
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
14
|
-
target[key] = source[key];
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return target;
|
|
19
|
-
};
|
|
20
|
-
return _extends.apply(this, arguments);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
function ownKeys(e, r) {
|
|
24
|
-
var t = Object.keys(e);
|
|
25
|
-
if (Object.getOwnPropertySymbols) {
|
|
26
|
-
var o = Object.getOwnPropertySymbols(e);
|
|
27
|
-
r && (o = o.filter(function (r) {
|
|
28
|
-
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
29
|
-
})), t.push.apply(t, o);
|
|
30
|
-
}
|
|
31
|
-
return t;
|
|
32
|
-
}
|
|
33
|
-
function _objectSpread2(e) {
|
|
34
|
-
for (var r = 1; r < arguments.length; r++) {
|
|
35
|
-
var t = null != arguments[r] ? arguments[r] : {};
|
|
36
|
-
r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {
|
|
37
|
-
_defineProperty(e, r, t[r]);
|
|
38
|
-
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {
|
|
39
|
-
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
return e;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
46
|
-
if (source == null) return {};
|
|
47
|
-
var target = {};
|
|
48
|
-
for (var key in source) {
|
|
49
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
50
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
51
|
-
target[key] = source[key];
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
return target;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
function _objectWithoutProperties(source, excluded) {
|
|
58
|
-
if (source == null) return {};
|
|
59
|
-
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
60
|
-
var key, i;
|
|
61
|
-
if (Object.getOwnPropertySymbols) {
|
|
62
|
-
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
63
|
-
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
64
|
-
key = sourceSymbolKeys[i];
|
|
65
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
66
|
-
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
67
|
-
target[key] = source[key];
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
return target;
|
|
71
|
-
}
|
|
7
|
+
import { _ as _toConsumableArray } from './toConsumableArray-599cd94a.js';
|
|
72
8
|
|
|
73
9
|
function useEvent(callback) {
|
|
74
10
|
var fnRef = React.useRef();
|
|
@@ -199,153 +135,6 @@ function useMergedState(defaultStateValue, option) {
|
|
|
199
135
|
return [postMergedValue, triggerChange];
|
|
200
136
|
}
|
|
201
137
|
|
|
202
|
-
/* eslint-disable no-console */
|
|
203
|
-
var warned = {};
|
|
204
|
-
var preWarningFns = [];
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Pre warning enable you to parse content before console.error.
|
|
208
|
-
* Modify to null will prevent warning.
|
|
209
|
-
*/
|
|
210
|
-
var preMessage = function preMessage(fn) {
|
|
211
|
-
preWarningFns.push(fn);
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
/**
|
|
215
|
-
* Warning if condition not match.
|
|
216
|
-
* @param valid Condition
|
|
217
|
-
* @param message Warning message
|
|
218
|
-
* @example
|
|
219
|
-
* ```js
|
|
220
|
-
* warning(false, 'some error'); // print some error
|
|
221
|
-
* warning(true, 'some error'); // print nothing
|
|
222
|
-
* warning(1 === 2, 'some error'); // print some error
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
function warning(valid, message) {
|
|
226
|
-
if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
|
|
227
|
-
var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {
|
|
228
|
-
return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'warning');
|
|
229
|
-
}, message);
|
|
230
|
-
if (finalMessage) {
|
|
231
|
-
console.error("Warning: ".concat(finalMessage));
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
|
|
236
|
-
/** @see Similar to {@link warning} */
|
|
237
|
-
function note(valid, message) {
|
|
238
|
-
if (process.env.NODE_ENV !== 'production' && !valid && console !== undefined) {
|
|
239
|
-
var finalMessage = preWarningFns.reduce(function (msg, preMessageFn) {
|
|
240
|
-
return preMessageFn(msg !== null && msg !== void 0 ? msg : '', 'note');
|
|
241
|
-
}, message);
|
|
242
|
-
if (finalMessage) {
|
|
243
|
-
console.warn("Note: ".concat(finalMessage));
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
function resetWarned() {
|
|
248
|
-
warned = {};
|
|
249
|
-
}
|
|
250
|
-
function call(method, valid, message) {
|
|
251
|
-
if (!valid && !warned[message]) {
|
|
252
|
-
method(false, message);
|
|
253
|
-
warned[message] = true;
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/** @see Same as {@link warning}, but only warn once for the same message */
|
|
258
|
-
function warningOnce(valid, message) {
|
|
259
|
-
call(warning, valid, message);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
/** @see Same as {@link warning}, but only warn once for the same message */
|
|
263
|
-
function noteOnce(valid, message) {
|
|
264
|
-
call(note, valid, message);
|
|
265
|
-
}
|
|
266
|
-
warningOnce.preMessage = preMessage;
|
|
267
|
-
warningOnce.resetWarned = resetWarned;
|
|
268
|
-
warningOnce.noteOnce = noteOnce;
|
|
269
|
-
|
|
270
|
-
var classnames = {exports: {}};
|
|
271
|
-
|
|
272
|
-
/*!
|
|
273
|
-
Copyright (c) 2018 Jed Watson.
|
|
274
|
-
Licensed under the MIT License (MIT), see
|
|
275
|
-
http://jedwatson.github.io/classnames
|
|
276
|
-
*/
|
|
277
|
-
|
|
278
|
-
(function (module) {
|
|
279
|
-
/* global define */
|
|
280
|
-
|
|
281
|
-
(function () {
|
|
282
|
-
|
|
283
|
-
var hasOwn = {}.hasOwnProperty;
|
|
284
|
-
|
|
285
|
-
function classNames () {
|
|
286
|
-
var classes = '';
|
|
287
|
-
|
|
288
|
-
for (var i = 0; i < arguments.length; i++) {
|
|
289
|
-
var arg = arguments[i];
|
|
290
|
-
if (arg) {
|
|
291
|
-
classes = appendClass(classes, parseValue(arg));
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
|
|
295
|
-
return classes;
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
function parseValue (arg) {
|
|
299
|
-
if (typeof arg === 'string' || typeof arg === 'number') {
|
|
300
|
-
return arg;
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
if (typeof arg !== 'object') {
|
|
304
|
-
return '';
|
|
305
|
-
}
|
|
306
|
-
|
|
307
|
-
if (Array.isArray(arg)) {
|
|
308
|
-
return classNames.apply(null, arg);
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {
|
|
312
|
-
return arg.toString();
|
|
313
|
-
}
|
|
314
|
-
|
|
315
|
-
var classes = '';
|
|
316
|
-
|
|
317
|
-
for (var key in arg) {
|
|
318
|
-
if (hasOwn.call(arg, key) && arg[key]) {
|
|
319
|
-
classes = appendClass(classes, key);
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
|
|
323
|
-
return classes;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
function appendClass (value, newClass) {
|
|
327
|
-
if (!newClass) {
|
|
328
|
-
return value;
|
|
329
|
-
}
|
|
330
|
-
|
|
331
|
-
if (value) {
|
|
332
|
-
return value + ' ' + newClass;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
return value + newClass;
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
if (module.exports) {
|
|
339
|
-
classNames.default = classNames;
|
|
340
|
-
module.exports = classNames;
|
|
341
|
-
} else {
|
|
342
|
-
window.classNames = classNames;
|
|
343
|
-
}
|
|
344
|
-
}());
|
|
345
|
-
} (classnames));
|
|
346
|
-
|
|
347
|
-
var clsx = classnames.exports;
|
|
348
|
-
|
|
349
138
|
/**
|
|
350
139
|
* @ignore
|
|
351
140
|
* some key-codes definition and utils from closure-library
|
|
@@ -884,271 +673,6 @@ var KeyCode = {
|
|
|
884
673
|
}
|
|
885
674
|
};
|
|
886
675
|
|
|
887
|
-
var reactIs = {exports: {}};
|
|
888
|
-
|
|
889
|
-
var reactIs_production_min = {};
|
|
890
|
-
|
|
891
|
-
/**
|
|
892
|
-
* @license React
|
|
893
|
-
* react-is.production.min.js
|
|
894
|
-
*
|
|
895
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
896
|
-
*
|
|
897
|
-
* This source code is licensed under the MIT license found in the
|
|
898
|
-
* LICENSE file in the root directory of this source tree.
|
|
899
|
-
*/
|
|
900
|
-
|
|
901
|
-
var hasRequiredReactIs_production_min;
|
|
902
|
-
|
|
903
|
-
function requireReactIs_production_min () {
|
|
904
|
-
if (hasRequiredReactIs_production_min) return reactIs_production_min;
|
|
905
|
-
hasRequiredReactIs_production_min = 1;
|
|
906
|
-
var b=Symbol.for("react.element"),c=Symbol.for("react.portal"),d=Symbol.for("react.fragment"),e=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),g=Symbol.for("react.provider"),h=Symbol.for("react.context"),k=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),n=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),t=Symbol.for("react.offscreen"),u;u=Symbol.for("react.module.reference");
|
|
907
|
-
function v(a){if("object"===typeof a&&null!==a){var r=a.$$typeof;switch(r){case b:switch(a=a.type,a){case d:case f:case e:case m:case n:return a;default:switch(a=a&&a.$$typeof,a){case k:case h:case l:case q:case p:case g:return a;default:return r}}case c:return r}}}reactIs_production_min.ContextConsumer=h;reactIs_production_min.ContextProvider=g;reactIs_production_min.Element=b;reactIs_production_min.ForwardRef=l;reactIs_production_min.Fragment=d;reactIs_production_min.Lazy=q;reactIs_production_min.Memo=p;reactIs_production_min.Portal=c;reactIs_production_min.Profiler=f;reactIs_production_min.StrictMode=e;reactIs_production_min.Suspense=m;
|
|
908
|
-
reactIs_production_min.SuspenseList=n;reactIs_production_min.isAsyncMode=function(){return !1};reactIs_production_min.isConcurrentMode=function(){return !1};reactIs_production_min.isContextConsumer=function(a){return v(a)===h};reactIs_production_min.isContextProvider=function(a){return v(a)===g};reactIs_production_min.isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===b};reactIs_production_min.isForwardRef=function(a){return v(a)===l};reactIs_production_min.isFragment=function(a){return v(a)===d};reactIs_production_min.isLazy=function(a){return v(a)===q};reactIs_production_min.isMemo=function(a){return v(a)===p};
|
|
909
|
-
reactIs_production_min.isPortal=function(a){return v(a)===c};reactIs_production_min.isProfiler=function(a){return v(a)===f};reactIs_production_min.isStrictMode=function(a){return v(a)===e};reactIs_production_min.isSuspense=function(a){return v(a)===m};reactIs_production_min.isSuspenseList=function(a){return v(a)===n};
|
|
910
|
-
reactIs_production_min.isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===d||a===f||a===e||a===m||a===n||a===t||"object"===typeof a&&null!==a&&(a.$$typeof===q||a.$$typeof===p||a.$$typeof===g||a.$$typeof===h||a.$$typeof===l||a.$$typeof===u||void 0!==a.getModuleId)?!0:!1};reactIs_production_min.typeOf=v;
|
|
911
|
-
return reactIs_production_min;
|
|
912
|
-
}
|
|
913
|
-
|
|
914
|
-
var reactIs_development = {};
|
|
915
|
-
|
|
916
|
-
/**
|
|
917
|
-
* @license React
|
|
918
|
-
* react-is.development.js
|
|
919
|
-
*
|
|
920
|
-
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
921
|
-
*
|
|
922
|
-
* This source code is licensed under the MIT license found in the
|
|
923
|
-
* LICENSE file in the root directory of this source tree.
|
|
924
|
-
*/
|
|
925
|
-
|
|
926
|
-
var hasRequiredReactIs_development;
|
|
927
|
-
|
|
928
|
-
function requireReactIs_development () {
|
|
929
|
-
if (hasRequiredReactIs_development) return reactIs_development;
|
|
930
|
-
hasRequiredReactIs_development = 1;
|
|
931
|
-
|
|
932
|
-
if (process.env.NODE_ENV !== "production") {
|
|
933
|
-
(function() {
|
|
934
|
-
|
|
935
|
-
// ATTENTION
|
|
936
|
-
// When adding new symbols to this file,
|
|
937
|
-
// Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
|
|
938
|
-
// The Symbol used to tag the ReactElement-like types.
|
|
939
|
-
var REACT_ELEMENT_TYPE = Symbol.for('react.element');
|
|
940
|
-
var REACT_PORTAL_TYPE = Symbol.for('react.portal');
|
|
941
|
-
var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
|
|
942
|
-
var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
|
|
943
|
-
var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
|
|
944
|
-
var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
|
|
945
|
-
var REACT_CONTEXT_TYPE = Symbol.for('react.context');
|
|
946
|
-
var REACT_SERVER_CONTEXT_TYPE = Symbol.for('react.server_context');
|
|
947
|
-
var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
|
|
948
|
-
var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
|
|
949
|
-
var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
|
|
950
|
-
var REACT_MEMO_TYPE = Symbol.for('react.memo');
|
|
951
|
-
var REACT_LAZY_TYPE = Symbol.for('react.lazy');
|
|
952
|
-
var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
|
|
953
|
-
|
|
954
|
-
// -----------------------------------------------------------------------------
|
|
955
|
-
|
|
956
|
-
var enableScopeAPI = false; // Experimental Create Event Handle API.
|
|
957
|
-
var enableCacheElement = false;
|
|
958
|
-
var enableTransitionTracing = false; // No known bugs, but needs performance testing
|
|
959
|
-
|
|
960
|
-
var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
|
|
961
|
-
// stuff. Intended to enable React core members to more easily debug scheduling
|
|
962
|
-
// issues in DEV builds.
|
|
963
|
-
|
|
964
|
-
var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
|
|
965
|
-
|
|
966
|
-
var REACT_MODULE_REFERENCE;
|
|
967
|
-
|
|
968
|
-
{
|
|
969
|
-
REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
|
|
970
|
-
}
|
|
971
|
-
|
|
972
|
-
function isValidElementType(type) {
|
|
973
|
-
if (typeof type === 'string' || typeof type === 'function') {
|
|
974
|
-
return true;
|
|
975
|
-
} // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
|
|
979
|
-
return true;
|
|
980
|
-
}
|
|
981
|
-
|
|
982
|
-
if (typeof type === 'object' && type !== null) {
|
|
983
|
-
if (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || // This needs to include all possible module reference object
|
|
984
|
-
// types supported by any Flight configuration anywhere since
|
|
985
|
-
// we don't know which Flight build this will end up being used
|
|
986
|
-
// with.
|
|
987
|
-
type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
|
|
988
|
-
return true;
|
|
989
|
-
}
|
|
990
|
-
}
|
|
991
|
-
|
|
992
|
-
return false;
|
|
993
|
-
}
|
|
994
|
-
|
|
995
|
-
function typeOf(object) {
|
|
996
|
-
if (typeof object === 'object' && object !== null) {
|
|
997
|
-
var $$typeof = object.$$typeof;
|
|
998
|
-
|
|
999
|
-
switch ($$typeof) {
|
|
1000
|
-
case REACT_ELEMENT_TYPE:
|
|
1001
|
-
var type = object.type;
|
|
1002
|
-
|
|
1003
|
-
switch (type) {
|
|
1004
|
-
case REACT_FRAGMENT_TYPE:
|
|
1005
|
-
case REACT_PROFILER_TYPE:
|
|
1006
|
-
case REACT_STRICT_MODE_TYPE:
|
|
1007
|
-
case REACT_SUSPENSE_TYPE:
|
|
1008
|
-
case REACT_SUSPENSE_LIST_TYPE:
|
|
1009
|
-
return type;
|
|
1010
|
-
|
|
1011
|
-
default:
|
|
1012
|
-
var $$typeofType = type && type.$$typeof;
|
|
1013
|
-
|
|
1014
|
-
switch ($$typeofType) {
|
|
1015
|
-
case REACT_SERVER_CONTEXT_TYPE:
|
|
1016
|
-
case REACT_CONTEXT_TYPE:
|
|
1017
|
-
case REACT_FORWARD_REF_TYPE:
|
|
1018
|
-
case REACT_LAZY_TYPE:
|
|
1019
|
-
case REACT_MEMO_TYPE:
|
|
1020
|
-
case REACT_PROVIDER_TYPE:
|
|
1021
|
-
return $$typeofType;
|
|
1022
|
-
|
|
1023
|
-
default:
|
|
1024
|
-
return $$typeof;
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
}
|
|
1028
|
-
|
|
1029
|
-
case REACT_PORTAL_TYPE:
|
|
1030
|
-
return $$typeof;
|
|
1031
|
-
}
|
|
1032
|
-
}
|
|
1033
|
-
|
|
1034
|
-
return undefined;
|
|
1035
|
-
}
|
|
1036
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
1037
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
1038
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
1039
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
1040
|
-
var Fragment = REACT_FRAGMENT_TYPE;
|
|
1041
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
1042
|
-
var Memo = REACT_MEMO_TYPE;
|
|
1043
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
1044
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
1045
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
1046
|
-
var Suspense = REACT_SUSPENSE_TYPE;
|
|
1047
|
-
var SuspenseList = REACT_SUSPENSE_LIST_TYPE;
|
|
1048
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
1049
|
-
var hasWarnedAboutDeprecatedIsConcurrentMode = false; // AsyncMode should be deprecated
|
|
1050
|
-
|
|
1051
|
-
function isAsyncMode(object) {
|
|
1052
|
-
{
|
|
1053
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
1054
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1055
|
-
|
|
1056
|
-
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
|
|
1060
|
-
return false;
|
|
1061
|
-
}
|
|
1062
|
-
function isConcurrentMode(object) {
|
|
1063
|
-
{
|
|
1064
|
-
if (!hasWarnedAboutDeprecatedIsConcurrentMode) {
|
|
1065
|
-
hasWarnedAboutDeprecatedIsConcurrentMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
1066
|
-
|
|
1067
|
-
console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, ' + 'and will be removed in React 18+.');
|
|
1068
|
-
}
|
|
1069
|
-
}
|
|
1070
|
-
|
|
1071
|
-
return false;
|
|
1072
|
-
}
|
|
1073
|
-
function isContextConsumer(object) {
|
|
1074
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
1075
|
-
}
|
|
1076
|
-
function isContextProvider(object) {
|
|
1077
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
1078
|
-
}
|
|
1079
|
-
function isElement(object) {
|
|
1080
|
-
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
1081
|
-
}
|
|
1082
|
-
function isForwardRef(object) {
|
|
1083
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
1084
|
-
}
|
|
1085
|
-
function isFragment(object) {
|
|
1086
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
1087
|
-
}
|
|
1088
|
-
function isLazy(object) {
|
|
1089
|
-
return typeOf(object) === REACT_LAZY_TYPE;
|
|
1090
|
-
}
|
|
1091
|
-
function isMemo(object) {
|
|
1092
|
-
return typeOf(object) === REACT_MEMO_TYPE;
|
|
1093
|
-
}
|
|
1094
|
-
function isPortal(object) {
|
|
1095
|
-
return typeOf(object) === REACT_PORTAL_TYPE;
|
|
1096
|
-
}
|
|
1097
|
-
function isProfiler(object) {
|
|
1098
|
-
return typeOf(object) === REACT_PROFILER_TYPE;
|
|
1099
|
-
}
|
|
1100
|
-
function isStrictMode(object) {
|
|
1101
|
-
return typeOf(object) === REACT_STRICT_MODE_TYPE;
|
|
1102
|
-
}
|
|
1103
|
-
function isSuspense(object) {
|
|
1104
|
-
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
1105
|
-
}
|
|
1106
|
-
function isSuspenseList(object) {
|
|
1107
|
-
return typeOf(object) === REACT_SUSPENSE_LIST_TYPE;
|
|
1108
|
-
}
|
|
1109
|
-
|
|
1110
|
-
reactIs_development.ContextConsumer = ContextConsumer;
|
|
1111
|
-
reactIs_development.ContextProvider = ContextProvider;
|
|
1112
|
-
reactIs_development.Element = Element;
|
|
1113
|
-
reactIs_development.ForwardRef = ForwardRef;
|
|
1114
|
-
reactIs_development.Fragment = Fragment;
|
|
1115
|
-
reactIs_development.Lazy = Lazy;
|
|
1116
|
-
reactIs_development.Memo = Memo;
|
|
1117
|
-
reactIs_development.Portal = Portal;
|
|
1118
|
-
reactIs_development.Profiler = Profiler;
|
|
1119
|
-
reactIs_development.StrictMode = StrictMode;
|
|
1120
|
-
reactIs_development.Suspense = Suspense;
|
|
1121
|
-
reactIs_development.SuspenseList = SuspenseList;
|
|
1122
|
-
reactIs_development.isAsyncMode = isAsyncMode;
|
|
1123
|
-
reactIs_development.isConcurrentMode = isConcurrentMode;
|
|
1124
|
-
reactIs_development.isContextConsumer = isContextConsumer;
|
|
1125
|
-
reactIs_development.isContextProvider = isContextProvider;
|
|
1126
|
-
reactIs_development.isElement = isElement;
|
|
1127
|
-
reactIs_development.isForwardRef = isForwardRef;
|
|
1128
|
-
reactIs_development.isFragment = isFragment;
|
|
1129
|
-
reactIs_development.isLazy = isLazy;
|
|
1130
|
-
reactIs_development.isMemo = isMemo;
|
|
1131
|
-
reactIs_development.isPortal = isPortal;
|
|
1132
|
-
reactIs_development.isProfiler = isProfiler;
|
|
1133
|
-
reactIs_development.isStrictMode = isStrictMode;
|
|
1134
|
-
reactIs_development.isSuspense = isSuspense;
|
|
1135
|
-
reactIs_development.isSuspenseList = isSuspenseList;
|
|
1136
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
1137
|
-
reactIs_development.typeOf = typeOf;
|
|
1138
|
-
})();
|
|
1139
|
-
}
|
|
1140
|
-
return reactIs_development;
|
|
1141
|
-
}
|
|
1142
|
-
|
|
1143
|
-
(function (module) {
|
|
1144
|
-
|
|
1145
|
-
if (process.env.NODE_ENV === 'production') {
|
|
1146
|
-
module.exports = requireReactIs_production_min();
|
|
1147
|
-
} else {
|
|
1148
|
-
module.exports = requireReactIs_development();
|
|
1149
|
-
}
|
|
1150
|
-
} (reactIs));
|
|
1151
|
-
|
|
1152
676
|
function useMemo(getValue, condition, shouldUpdate) {
|
|
1153
677
|
var cacheRef = React.useRef({});
|
|
1154
678
|
if (!('value' in cacheRef.current) || shouldUpdate(cacheRef.current.condition, condition)) {
|
|
@@ -1210,6 +734,30 @@ var supportRef = function supportRef(nodeOrComponent) {
|
|
|
1210
734
|
}
|
|
1211
735
|
return true;
|
|
1212
736
|
};
|
|
737
|
+
function isReactElement(node) {
|
|
738
|
+
return /*#__PURE__*/isValidElement(node) && !reactIs.exports.isFragment(node);
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
/**
|
|
742
|
+
* In React 19. `ref` is not a property from node.
|
|
743
|
+
* But a property from `props.ref`.
|
|
744
|
+
* To check if `props.ref` exist or fallback to `ref`.
|
|
745
|
+
*/
|
|
746
|
+
Number(version.split('.')[0]) >= 19 ?
|
|
747
|
+
// >= React 19
|
|
748
|
+
function (node) {
|
|
749
|
+
if (isReactElement(node)) {
|
|
750
|
+
return node.props.ref;
|
|
751
|
+
}
|
|
752
|
+
return null;
|
|
753
|
+
} :
|
|
754
|
+
// < React 19
|
|
755
|
+
function (node) {
|
|
756
|
+
if (isReactElement(node)) {
|
|
757
|
+
return node.ref;
|
|
758
|
+
}
|
|
759
|
+
return null;
|
|
760
|
+
};
|
|
1213
761
|
|
|
1214
762
|
var raf = function raf(callback) {
|
|
1215
763
|
return +setTimeout(callback, 16);
|
|
@@ -1695,4 +1243,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1695
1243
|
Portal.displayName = 'Portal';
|
|
1696
1244
|
}
|
|
1697
1245
|
|
|
1698
|
-
export { KeyCode as K, Portal as P,
|
|
1246
|
+
export { KeyCode as K, Portal as P, useEvent as a, useLayoutEffect as b, composeRef as c, useMergedState as d, canUseDom as e, fillRef as f, useMemo as g, supportRef as s, useComposeRef as u, wrapperRaf as w };
|