@nutui/nutui-react 2.3.11 → 2.3.12-beta.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.
Files changed (100) hide show
  1. package/dist/esm/ActionSheet.js +0 -10
  2. package/dist/esm/Address.js +0 -13
  3. package/dist/esm/AnimatingNumbers.js +9 -25
  4. package/dist/esm/Badge.js +0 -3
  5. package/dist/esm/Button.js +0 -4
  6. package/dist/esm/Cascader.js +0 -17
  7. package/dist/esm/Checkbox.js +0 -6
  8. package/dist/esm/CheckboxGroup.js +0 -3
  9. package/dist/esm/CollapseItem.js +0 -3
  10. package/dist/esm/ConfigProvider.js +0 -2
  11. package/dist/esm/Dialog.js +2 -8
  12. package/dist/esm/Elevator.js +2 -1
  13. package/dist/esm/Empty.js +0 -1
  14. package/dist/esm/FormItem.js +0 -3
  15. package/dist/esm/Grid.js +0 -1
  16. package/dist/esm/GridItem.js +0 -4
  17. package/dist/esm/Indicator.js +0 -2
  18. package/dist/esm/Menu.js +0 -9
  19. package/dist/esm/MenuItem.js +0 -13
  20. package/dist/esm/Notify.js +10 -27
  21. package/dist/esm/Overlay.js +0 -8
  22. package/dist/esm/Picker.js +0 -7
  23. package/dist/esm/Popover.js +0 -1
  24. package/dist/esm/Popup.js +0 -12
  25. package/dist/esm/PullToRefresh.js +0 -1
  26. package/dist/esm/Radio.js +0 -6
  27. package/dist/esm/RadioGroup.js +0 -3
  28. package/dist/esm/SafeArea.js +0 -2
  29. package/dist/esm/Sticky.js +0 -1
  30. package/dist/esm/Tabbar.js +0 -1
  31. package/dist/esm/TabbarItem.js +0 -4
  32. package/dist/esm/Tabs.js +0 -7
  33. package/dist/esm/Toast.js +10 -32
  34. package/dist/esm/cascader2.js +14 -15
  35. package/dist/esm/formitem2.js +10 -26
  36. package/dist/locales/base.js +1 -1
  37. package/dist/locales/en-US.js +1 -1
  38. package/dist/locales/id-ID.js +1 -1
  39. package/dist/locales/tr-TR.js +1 -1
  40. package/dist/locales/zh-CN.js +1 -1
  41. package/dist/locales/zh-TW.js +1 -1
  42. package/dist/locales/zh-UG.js +1 -1
  43. package/dist/nutui.react.es.js +224 -202
  44. package/dist/nutui.react.umd.js +224 -202
  45. package/dist/style.mjs +1 -1
  46. package/dist/types/index.d.ts +98 -98
  47. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  48. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  49. package/dist/types/packages/address/address.d.ts +1 -1
  50. package/dist/types/packages/address/address.taro.d.ts +1 -1
  51. package/dist/types/packages/address/customRender.d.ts +1 -1
  52. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  53. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  54. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  55. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  56. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  57. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  58. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  59. package/dist/types/packages/cell/cell.d.ts +1 -1
  60. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  61. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  62. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  63. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  64. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  65. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  66. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  67. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  68. package/dist/types/packages/empty/empty.d.ts +1 -1
  69. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  70. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  71. package/dist/types/packages/form/form.d.ts +1 -1
  72. package/dist/types/packages/form/form.taro.d.ts +1 -1
  73. package/dist/types/packages/form/index.d.ts +1 -1
  74. package/dist/types/packages/form/index.taro.d.ts +1 -1
  75. package/dist/types/packages/menu/menu.d.ts +1 -1
  76. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  77. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  78. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  79. package/dist/types/packages/nutui.react.d.ts +98 -98
  80. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  81. package/dist/types/packages/nutui.taro.react.build.d.ts +98 -98
  82. package/dist/types/packages/picker/picker.d.ts +1 -1
  83. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  84. package/dist/types/packages/popover/popover.d.ts +1 -1
  85. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  86. package/dist/types/packages/popup/popup.d.ts +1 -1
  87. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  88. package/dist/types/packages/radio/radio.d.ts +2 -2
  89. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  90. package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
  91. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
  92. package/dist/types/packages/swiper/index.d.ts +1 -1
  93. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  94. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  95. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  96. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  97. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  98. package/dist/types/packages/tour/tour.d.ts +1 -1
  99. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  100. package/package.json +1 -1
@@ -1,40 +1,25 @@
1
- import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
2
- import _inherits from "@babel/runtime/helpers/inherits";
3
1
  import _possibleConstructorReturn from "@babel/runtime/helpers/possibleConstructorReturn";
4
2
  import _getPrototypeOf2 from "@babel/runtime/helpers/getPrototypeOf";
3
+ import _assertThisInitialized from "@babel/runtime/helpers/assertThisInitialized";
4
+ import _inherits from "@babel/runtime/helpers/inherits";
5
5
  import _toConsumableArray from "@babel/runtime/helpers/toConsumableArray";
6
6
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
7
7
  import _createClass from "@babel/runtime/helpers/createClass";
8
8
  import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
9
9
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
10
10
  import _typeof from "@babel/runtime/helpers/typeof";
11
- function _createSuper(Derived) {
12
- var hasNativeReflectConstruct = _isNativeReflectConstruct2();
13
- return function _createSuperInternal() {
14
- var Super = _getPrototypeOf2(Derived), result;
15
- if (hasNativeReflectConstruct) {
16
- var NewTarget = _getPrototypeOf2(this).constructor;
17
- result = Reflect.construct(Super, arguments, NewTarget);
18
- } else {
19
- result = Super.apply(this, arguments);
20
- }
21
- return _possibleConstructorReturn(this, result);
22
- };
11
+ function _callSuper(t, o, e) {
12
+ return o = _getPrototypeOf2(o), _possibleConstructorReturn(t, _isNativeReflectConstruct2() ? Reflect.construct(o, e || [], _getPrototypeOf2(t).constructor) : o.apply(t, e));
23
13
  }
24
14
  function _isNativeReflectConstruct2() {
25
- if (typeof Reflect === "undefined" || !Reflect.construct)
26
- return false;
27
- if (Reflect.construct.sham)
28
- return false;
29
- if (typeof Proxy === "function")
30
- return true;
31
15
  try {
32
- Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
16
+ var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
33
17
  }));
34
- return true;
35
- } catch (e) {
36
- return false;
18
+ } catch (t2) {
37
19
  }
20
+ return (_isNativeReflectConstruct2 = function _isNativeReflectConstruct22() {
21
+ return !!t;
22
+ })();
38
23
  }
39
24
  import _regeneratorRuntime from "@babel/runtime/regenerator";
40
25
  function _createForOfIteratorHelper(o, allowArrayLike) {
@@ -1450,11 +1435,10 @@ var defaultProps = _objectSpread(_objectSpread({}, ComponentDefaults), {}, {
1450
1435
  });
1451
1436
  var FormItem = /* @__PURE__ */ function(_React__default$Compo) {
1452
1437
  _inherits(FormItem2, _React__default$Compo);
1453
- var _super = _createSuper(FormItem2);
1454
1438
  function FormItem2(props) {
1455
1439
  var _this4;
1456
1440
  _classCallCheck(this, FormItem2);
1457
- _this4 = _super.call(this, props);
1441
+ _this4 = _callSuper(this, FormItem2, [props]);
1458
1442
  _defineProperty(_assertThisInitialized(_this4), "cancelRegister", void 0);
1459
1443
  _defineProperty(_assertThisInitialized(_this4), "componentRef", void 0);
1460
1444
  _defineProperty(_assertThisInitialized(_this4), "eventOff", void 0);
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:40 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:40 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:40 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:40 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:40 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:40 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:40 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:36 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */
@@ -5,7 +5,7 @@ var __publicField = (obj, key, value) => {
5
5
  return value;
6
6
  };
7
7
  /*!
8
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:03 GMT+0800 (China Standard Time)
8
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:01 GMT+0800 (China Standard Time)
9
9
  * (c) 2023 @jdf2e.
10
10
  * Released under the MIT License.
11
11
  */
@@ -28,34 +28,44 @@ var classnames = { exports: {} };
28
28
  (function() {
29
29
  var hasOwn = {}.hasOwnProperty;
30
30
  function classNames2() {
31
- var classes = [];
31
+ var classes = "";
32
32
  for (var i = 0; i < arguments.length; i++) {
33
33
  var arg = arguments[i];
34
- if (!arg)
35
- continue;
36
- var argType = typeof arg;
37
- if (argType === "string" || argType === "number") {
38
- classes.push(arg);
39
- } else if (Array.isArray(arg)) {
40
- if (arg.length) {
41
- var inner = classNames2.apply(null, arg);
42
- if (inner) {
43
- classes.push(inner);
44
- }
45
- }
46
- } else if (argType === "object") {
47
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
48
- classes.push(arg.toString());
49
- continue;
50
- }
51
- for (var key in arg) {
52
- if (hasOwn.call(arg, key) && arg[key]) {
53
- classes.push(key);
54
- }
55
- }
34
+ if (arg) {
35
+ classes = appendClass(classes, parseValue(arg));
56
36
  }
57
37
  }
58
- return classes.join(" ");
38
+ return classes;
39
+ }
40
+ function parseValue(arg) {
41
+ if (typeof arg === "string" || typeof arg === "number") {
42
+ return arg;
43
+ }
44
+ if (typeof arg !== "object") {
45
+ return "";
46
+ }
47
+ if (Array.isArray(arg)) {
48
+ return classNames2.apply(null, arg);
49
+ }
50
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
51
+ return arg.toString();
52
+ }
53
+ var classes = "";
54
+ for (var key in arg) {
55
+ if (hasOwn.call(arg, key) && arg[key]) {
56
+ classes = appendClass(classes, key);
57
+ }
58
+ }
59
+ return classes;
60
+ }
61
+ function appendClass(value, newClass) {
62
+ if (!newClass) {
63
+ return value;
64
+ }
65
+ if (value) {
66
+ return value + " " + newClass;
67
+ }
68
+ return value + newClass;
59
69
  }
60
70
  if (module.exports) {
61
71
  classNames2.default = classNames2;
@@ -2647,72 +2657,111 @@ function _inheritsLoose$1(subClass, superClass) {
2647
2657
  _setPrototypeOf$1(subClass, superClass);
2648
2658
  }
2649
2659
  var propTypes = { exports: {} };
2650
- var ReactPropTypesSecret_1;
2651
- var hasRequiredReactPropTypesSecret;
2652
- function requireReactPropTypesSecret() {
2653
- if (hasRequiredReactPropTypesSecret)
2654
- return ReactPropTypesSecret_1;
2655
- hasRequiredReactPropTypesSecret = 1;
2656
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2657
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
2658
- return ReactPropTypesSecret_1;
2659
- }
2660
- var factoryWithThrowingShims;
2661
- var hasRequiredFactoryWithThrowingShims;
2662
- function requireFactoryWithThrowingShims() {
2663
- if (hasRequiredFactoryWithThrowingShims)
2664
- return factoryWithThrowingShims;
2665
- hasRequiredFactoryWithThrowingShims = 1;
2666
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2667
- function emptyFunction() {
2668
- }
2669
- function emptyFunctionWithReset() {
2670
- }
2671
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
2672
- factoryWithThrowingShims = function() {
2673
- function shim(props, propName, componentName, location, propFullName, secret) {
2674
- if (secret === ReactPropTypesSecret) {
2675
- return;
2660
+ var reactIs = { exports: {} };
2661
+ var reactIs_production_min = {};
2662
+ /** @license React v16.13.1
2663
+ * react-is.production.min.js
2664
+ *
2665
+ * Copyright (c) Facebook, Inc. and its affiliates.
2666
+ *
2667
+ * This source code is licensed under the MIT license found in the
2668
+ * LICENSE file in the root directory of this source tree.
2669
+ */
2670
+ var hasRequiredReactIs_production_min;
2671
+ function requireReactIs_production_min() {
2672
+ if (hasRequiredReactIs_production_min)
2673
+ return reactIs_production_min;
2674
+ hasRequiredReactIs_production_min = 1;
2675
+ var b = "function" === typeof Symbol && Symbol.for, c6 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
2676
+ function z(a2) {
2677
+ if ("object" === typeof a2 && null !== a2) {
2678
+ var u = a2.$$typeof;
2679
+ switch (u) {
2680
+ case c6:
2681
+ switch (a2 = a2.type, a2) {
2682
+ case l2:
2683
+ case m:
2684
+ case e2:
2685
+ case g:
2686
+ case f:
2687
+ case p:
2688
+ return a2;
2689
+ default:
2690
+ switch (a2 = a2 && a2.$$typeof, a2) {
2691
+ case k:
2692
+ case n:
2693
+ case t2:
2694
+ case r2:
2695
+ case h:
2696
+ return a2;
2697
+ default:
2698
+ return u;
2699
+ }
2700
+ }
2701
+ case d:
2702
+ return u;
2676
2703
  }
2677
- var err = new Error(
2678
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
2679
- );
2680
- err.name = "Invariant Violation";
2681
- throw err;
2682
- }
2683
- shim.isRequired = shim;
2684
- function getShim() {
2685
- return shim;
2686
2704
  }
2687
- var ReactPropTypes = {
2688
- array: shim,
2689
- bigint: shim,
2690
- bool: shim,
2691
- func: shim,
2692
- number: shim,
2693
- object: shim,
2694
- string: shim,
2695
- symbol: shim,
2696
- any: shim,
2697
- arrayOf: getShim,
2698
- element: shim,
2699
- elementType: shim,
2700
- instanceOf: getShim,
2701
- node: shim,
2702
- objectOf: getShim,
2703
- oneOf: getShim,
2704
- oneOfType: getShim,
2705
- shape: getShim,
2706
- exact: getShim,
2707
- checkPropTypes: emptyFunctionWithReset,
2708
- resetWarningCache: emptyFunction
2709
- };
2710
- ReactPropTypes.PropTypes = ReactPropTypes;
2711
- return ReactPropTypes;
2705
+ }
2706
+ function A(a2) {
2707
+ return z(a2) === m;
2708
+ }
2709
+ reactIs_production_min.AsyncMode = l2;
2710
+ reactIs_production_min.ConcurrentMode = m;
2711
+ reactIs_production_min.ContextConsumer = k;
2712
+ reactIs_production_min.ContextProvider = h;
2713
+ reactIs_production_min.Element = c6;
2714
+ reactIs_production_min.ForwardRef = n;
2715
+ reactIs_production_min.Fragment = e2;
2716
+ reactIs_production_min.Lazy = t2;
2717
+ reactIs_production_min.Memo = r2;
2718
+ reactIs_production_min.Portal = d;
2719
+ reactIs_production_min.Profiler = g;
2720
+ reactIs_production_min.StrictMode = f;
2721
+ reactIs_production_min.Suspense = p;
2722
+ reactIs_production_min.isAsyncMode = function(a2) {
2723
+ return A(a2) || z(a2) === l2;
2712
2724
  };
2713
- return factoryWithThrowingShims;
2725
+ reactIs_production_min.isConcurrentMode = A;
2726
+ reactIs_production_min.isContextConsumer = function(a2) {
2727
+ return z(a2) === k;
2728
+ };
2729
+ reactIs_production_min.isContextProvider = function(a2) {
2730
+ return z(a2) === h;
2731
+ };
2732
+ reactIs_production_min.isElement = function(a2) {
2733
+ return "object" === typeof a2 && null !== a2 && a2.$$typeof === c6;
2734
+ };
2735
+ reactIs_production_min.isForwardRef = function(a2) {
2736
+ return z(a2) === n;
2737
+ };
2738
+ reactIs_production_min.isFragment = function(a2) {
2739
+ return z(a2) === e2;
2740
+ };
2741
+ reactIs_production_min.isLazy = function(a2) {
2742
+ return z(a2) === t2;
2743
+ };
2744
+ reactIs_production_min.isMemo = function(a2) {
2745
+ return z(a2) === r2;
2746
+ };
2747
+ reactIs_production_min.isPortal = function(a2) {
2748
+ return z(a2) === d;
2749
+ };
2750
+ reactIs_production_min.isProfiler = function(a2) {
2751
+ return z(a2) === g;
2752
+ };
2753
+ reactIs_production_min.isStrictMode = function(a2) {
2754
+ return z(a2) === f;
2755
+ };
2756
+ reactIs_production_min.isSuspense = function(a2) {
2757
+ return z(a2) === p;
2758
+ };
2759
+ reactIs_production_min.isValidElementType = function(a2) {
2760
+ return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r2 || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
2761
+ };
2762
+ reactIs_production_min.typeOf = z;
2763
+ return reactIs_production_min;
2714
2764
  }
2715
- var reactIs = { exports: {} };
2716
2765
  var reactIs_development = {};
2717
2766
  /** @license React v16.13.1
2718
2767
  * react-is.development.js
@@ -2876,110 +2925,6 @@ function requireReactIs_development() {
2876
2925
  }
2877
2926
  return reactIs_development;
2878
2927
  }
2879
- var reactIs_production_min = {};
2880
- /** @license React v16.13.1
2881
- * react-is.production.min.js
2882
- *
2883
- * Copyright (c) Facebook, Inc. and its affiliates.
2884
- *
2885
- * This source code is licensed under the MIT license found in the
2886
- * LICENSE file in the root directory of this source tree.
2887
- */
2888
- var hasRequiredReactIs_production_min;
2889
- function requireReactIs_production_min() {
2890
- if (hasRequiredReactIs_production_min)
2891
- return reactIs_production_min;
2892
- hasRequiredReactIs_production_min = 1;
2893
- var b = "function" === typeof Symbol && Symbol.for, c6 = b ? Symbol.for("react.element") : 60103, d = b ? Symbol.for("react.portal") : 60106, e2 = b ? Symbol.for("react.fragment") : 60107, f = b ? Symbol.for("react.strict_mode") : 60108, g = b ? Symbol.for("react.profiler") : 60114, h = b ? Symbol.for("react.provider") : 60109, k = b ? Symbol.for("react.context") : 60110, l2 = b ? Symbol.for("react.async_mode") : 60111, m = b ? Symbol.for("react.concurrent_mode") : 60111, n = b ? Symbol.for("react.forward_ref") : 60112, p = b ? Symbol.for("react.suspense") : 60113, q = b ? Symbol.for("react.suspense_list") : 60120, r2 = b ? Symbol.for("react.memo") : 60115, t2 = b ? Symbol.for("react.lazy") : 60116, v = b ? Symbol.for("react.block") : 60121, w = b ? Symbol.for("react.fundamental") : 60117, x = b ? Symbol.for("react.responder") : 60118, y = b ? Symbol.for("react.scope") : 60119;
2894
- function z(a2) {
2895
- if ("object" === typeof a2 && null !== a2) {
2896
- var u = a2.$$typeof;
2897
- switch (u) {
2898
- case c6:
2899
- switch (a2 = a2.type, a2) {
2900
- case l2:
2901
- case m:
2902
- case e2:
2903
- case g:
2904
- case f:
2905
- case p:
2906
- return a2;
2907
- default:
2908
- switch (a2 = a2 && a2.$$typeof, a2) {
2909
- case k:
2910
- case n:
2911
- case t2:
2912
- case r2:
2913
- case h:
2914
- return a2;
2915
- default:
2916
- return u;
2917
- }
2918
- }
2919
- case d:
2920
- return u;
2921
- }
2922
- }
2923
- }
2924
- function A(a2) {
2925
- return z(a2) === m;
2926
- }
2927
- reactIs_production_min.AsyncMode = l2;
2928
- reactIs_production_min.ConcurrentMode = m;
2929
- reactIs_production_min.ContextConsumer = k;
2930
- reactIs_production_min.ContextProvider = h;
2931
- reactIs_production_min.Element = c6;
2932
- reactIs_production_min.ForwardRef = n;
2933
- reactIs_production_min.Fragment = e2;
2934
- reactIs_production_min.Lazy = t2;
2935
- reactIs_production_min.Memo = r2;
2936
- reactIs_production_min.Portal = d;
2937
- reactIs_production_min.Profiler = g;
2938
- reactIs_production_min.StrictMode = f;
2939
- reactIs_production_min.Suspense = p;
2940
- reactIs_production_min.isAsyncMode = function(a2) {
2941
- return A(a2) || z(a2) === l2;
2942
- };
2943
- reactIs_production_min.isConcurrentMode = A;
2944
- reactIs_production_min.isContextConsumer = function(a2) {
2945
- return z(a2) === k;
2946
- };
2947
- reactIs_production_min.isContextProvider = function(a2) {
2948
- return z(a2) === h;
2949
- };
2950
- reactIs_production_min.isElement = function(a2) {
2951
- return "object" === typeof a2 && null !== a2 && a2.$$typeof === c6;
2952
- };
2953
- reactIs_production_min.isForwardRef = function(a2) {
2954
- return z(a2) === n;
2955
- };
2956
- reactIs_production_min.isFragment = function(a2) {
2957
- return z(a2) === e2;
2958
- };
2959
- reactIs_production_min.isLazy = function(a2) {
2960
- return z(a2) === t2;
2961
- };
2962
- reactIs_production_min.isMemo = function(a2) {
2963
- return z(a2) === r2;
2964
- };
2965
- reactIs_production_min.isPortal = function(a2) {
2966
- return z(a2) === d;
2967
- };
2968
- reactIs_production_min.isProfiler = function(a2) {
2969
- return z(a2) === g;
2970
- };
2971
- reactIs_production_min.isStrictMode = function(a2) {
2972
- return z(a2) === f;
2973
- };
2974
- reactIs_production_min.isSuspense = function(a2) {
2975
- return z(a2) === p;
2976
- };
2977
- reactIs_production_min.isValidElementType = function(a2) {
2978
- return "string" === typeof a2 || "function" === typeof a2 || a2 === e2 || a2 === m || a2 === g || a2 === f || a2 === p || a2 === q || "object" === typeof a2 && null !== a2 && (a2.$$typeof === t2 || a2.$$typeof === r2 || a2.$$typeof === h || a2.$$typeof === k || a2.$$typeof === n || a2.$$typeof === w || a2.$$typeof === x || a2.$$typeof === y || a2.$$typeof === v);
2979
- };
2980
- reactIs_production_min.typeOf = z;
2981
- return reactIs_production_min;
2982
- }
2983
2928
  var hasRequiredReactIs;
2984
2929
  function requireReactIs() {
2985
2930
  if (hasRequiredReactIs)
@@ -3068,6 +3013,16 @@ function requireObjectAssign() {
3068
3013
  };
3069
3014
  return objectAssign;
3070
3015
  }
3016
+ var ReactPropTypesSecret_1;
3017
+ var hasRequiredReactPropTypesSecret;
3018
+ function requireReactPropTypesSecret() {
3019
+ if (hasRequiredReactPropTypesSecret)
3020
+ return ReactPropTypesSecret_1;
3021
+ hasRequiredReactPropTypesSecret = 1;
3022
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
3023
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
3024
+ return ReactPropTypesSecret_1;
3025
+ }
3071
3026
  var has;
3072
3027
  var hasRequiredHas;
3073
3028
  function requireHas() {
@@ -3585,6 +3540,61 @@ function requireFactoryWithTypeCheckers() {
3585
3540
  };
3586
3541
  return factoryWithTypeCheckers;
3587
3542
  }
3543
+ var factoryWithThrowingShims;
3544
+ var hasRequiredFactoryWithThrowingShims;
3545
+ function requireFactoryWithThrowingShims() {
3546
+ if (hasRequiredFactoryWithThrowingShims)
3547
+ return factoryWithThrowingShims;
3548
+ hasRequiredFactoryWithThrowingShims = 1;
3549
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
3550
+ function emptyFunction() {
3551
+ }
3552
+ function emptyFunctionWithReset() {
3553
+ }
3554
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
3555
+ factoryWithThrowingShims = function() {
3556
+ function shim(props, propName, componentName, location, propFullName, secret) {
3557
+ if (secret === ReactPropTypesSecret) {
3558
+ return;
3559
+ }
3560
+ var err = new Error(
3561
+ "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
3562
+ );
3563
+ err.name = "Invariant Violation";
3564
+ throw err;
3565
+ }
3566
+ shim.isRequired = shim;
3567
+ function getShim() {
3568
+ return shim;
3569
+ }
3570
+ var ReactPropTypes = {
3571
+ array: shim,
3572
+ bigint: shim,
3573
+ bool: shim,
3574
+ func: shim,
3575
+ number: shim,
3576
+ object: shim,
3577
+ string: shim,
3578
+ symbol: shim,
3579
+ any: shim,
3580
+ arrayOf: getShim,
3581
+ element: shim,
3582
+ elementType: shim,
3583
+ instanceOf: getShim,
3584
+ node: shim,
3585
+ objectOf: getShim,
3586
+ oneOf: getShim,
3587
+ oneOfType: getShim,
3588
+ shape: getShim,
3589
+ exact: getShim,
3590
+ checkPropTypes: emptyFunctionWithReset,
3591
+ resetWarningCache: emptyFunction
3592
+ };
3593
+ ReactPropTypes.PropTypes = ReactPropTypes;
3594
+ return ReactPropTypes;
3595
+ };
3596
+ return factoryWithThrowingShims;
3597
+ }
3588
3598
  if (process.env.NODE_ENV !== "production") {
3589
3599
  var ReactIs = requireReactIs();
3590
3600
  var throwOnDirectAccess = true;
@@ -4430,6 +4440,19 @@ function getAllScrollableParents(element, scrollableParents = []) {
4430
4440
  }
4431
4441
  return getAllScrollableParents(element.parentElement, scrollableParents);
4432
4442
  }
4443
+ let passiveSupported = false;
4444
+ if (canUseDom) {
4445
+ try {
4446
+ const opts = Object.defineProperty({}, "passive", {
4447
+ get() {
4448
+ passiveSupported = true;
4449
+ }
4450
+ });
4451
+ window.addEventListener("test-passive-supported", null, opts);
4452
+ } catch (e2) {
4453
+ console.log(e2);
4454
+ }
4455
+ }
4433
4456
  let totalLockCount = 0;
4434
4457
  const BODY_LOCK_CLASS = "nut-overflow-hidden";
4435
4458
  function getScrollableElement(el) {
@@ -4478,7 +4501,7 @@ function useLockScroll(rootRef, shouldLock) {
4478
4501
  document.addEventListener(
4479
4502
  "touchmove",
4480
4503
  onTouchMove,
4481
- false
4504
+ passiveSupported ? { passive: false } : false
4482
4505
  );
4483
4506
  if (!totalLockCount) {
4484
4507
  document.body.classList.add(BODY_LOCK_CLASS);
@@ -10428,7 +10451,7 @@ const Elevator = (props) => {
10428
10451
  onDragEnd: ({ offset }) => {
10429
10452
  touchState.current.y2 = offset[1];
10430
10453
  const delta = (touchState.current.y2 - touchState.current.y1) / spaceHeight || 0;
10431
- const cacheIndex = state.current.anchorIndex + Math.ceil(delta);
10454
+ const cacheIndex = state.current.anchorIndex + Math.round(delta);
10432
10455
  setCodeIndex(cacheIndex);
10433
10456
  scrollTo(cacheIndex);
10434
10457
  resetScrollState();
@@ -10458,7 +10481,8 @@ const Elevator = (props) => {
10458
10481
  calculateHeight();
10459
10482
  }
10460
10483
  const target = e2.target;
10461
- const { scrollTop } = target;
10484
+ let { scrollTop } = target;
10485
+ scrollTop = Math.ceil(scrollTop);
10462
10486
  state.current.scrollY = scrollTop;
10463
10487
  setScrollY(scrollTop);
10464
10488
  for (let i = 0; i < listHeight.length - 1; i++) {
@@ -11622,7 +11646,6 @@ class Tree {
11622
11646
  return pathNodes;
11623
11647
  }
11624
11648
  }
11625
- const Tree$1 = Tree;
11626
11649
  const defaultProps$16 = {
11627
11650
  ...ComponentDefaults,
11628
11651
  activeColor: "",
@@ -11698,7 +11721,7 @@ const InternalCascader = (props, ref) => {
11698
11721
  paneKey: ""
11699
11722
  }
11700
11723
  ],
11701
- tree: new Tree$1([], {}),
11724
+ tree: new Tree([], {}),
11702
11725
  tabsCursor: 0,
11703
11726
  // 选中的tab项
11704
11727
  initLoading: false,
@@ -11728,7 +11751,7 @@ const InternalCascader = (props, ref) => {
11728
11751
  } else {
11729
11752
  state.optionsData = options2;
11730
11753
  }
11731
- state.tree = new Tree$1(state.optionsData, {
11754
+ state.tree = new Tree(state.optionsData, {
11732
11755
  value: state.configs.optionKey.valueKey,
11733
11756
  text: state.configs.optionKey.textKey,
11734
11757
  children: state.configs.optionKey.childrenKey
@@ -14081,7 +14104,7 @@ const InternalPickerPanel = (props, ref) => {
14081
14104
  }));
14082
14105
  useEffect(() => {
14083
14106
  var _a2, _b, _c;
14084
- const options22 = false;
14107
+ const options22 = passiveSupported ? { passive: false } : false;
14085
14108
  (_a2 = PickerPanelRef.current) == null ? void 0 : _a2.addEventListener("touchstart", touchStart, options22);
14086
14109
  (_b = PickerPanelRef.current) == null ? void 0 : _b.addEventListener("touchmove", touchMove, options22);
14087
14110
  (_c = PickerPanelRef.current) == null ? void 0 : _c.addEventListener("touchend", touchEnd, options22);
@@ -19334,7 +19357,6 @@ const confirm = (config2, renderFunc) => {
19334
19357
  update: update2
19335
19358
  };
19336
19359
  };
19337
- const confirm$1 = confirm;
19338
19360
  const Content = (props) => {
19339
19361
  const {
19340
19362
  visible,
@@ -19549,11 +19571,11 @@ const BaseDialog = (props, ref) => {
19549
19571
  };
19550
19572
  const Dialog = forwardRef(BaseDialog);
19551
19573
  Dialog.confirm = (props) => {
19552
- return confirm$1(props);
19574
+ return confirm(props);
19553
19575
  };
19554
19576
  ["alert"].forEach((type4) => {
19555
19577
  Dialog[type4] = (props) => {
19556
- return confirm$1({
19578
+ return confirm({
19557
19579
  ...props,
19558
19580
  isNotice: false,
19559
19581
  noticeType: type4
@@ -20901,7 +20923,7 @@ const PullToRefresh = (p) => {
20901
20923
  axis: "y",
20902
20924
  target: elementRef,
20903
20925
  enabled: !props.disabled,
20904
- eventOptions: false
20926
+ eventOptions: passiveSupported ? { passive: false } : false
20905
20927
  }
20906
20928
  );
20907
20929
  const renderIcons = (status2) => {