@para-ui/core 4.0.53 → 4.0.55

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