@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
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:03 GMT+0800 (China Standard Time)
11
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:01 GMT+0800 (China Standard Time)
12
12
  * (c) 2023 @jdf2e.
13
13
  * Released under the MIT License.
14
14
  */
@@ -46,34 +46,44 @@ var __publicField = (obj, key, value) => {
46
46
  (function() {
47
47
  var hasOwn = {}.hasOwnProperty;
48
48
  function classNames2() {
49
- var classes = [];
49
+ var classes = "";
50
50
  for (var i = 0; i < arguments.length; i++) {
51
51
  var arg = arguments[i];
52
- if (!arg)
53
- continue;
54
- var argType = typeof arg;
55
- if (argType === "string" || argType === "number") {
56
- classes.push(arg);
57
- } else if (Array.isArray(arg)) {
58
- if (arg.length) {
59
- var inner = classNames2.apply(null, arg);
60
- if (inner) {
61
- classes.push(inner);
62
- }
63
- }
64
- } else if (argType === "object") {
65
- if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
66
- classes.push(arg.toString());
67
- continue;
68
- }
69
- for (var key in arg) {
70
- if (hasOwn.call(arg, key) && arg[key]) {
71
- classes.push(key);
72
- }
73
- }
52
+ if (arg) {
53
+ classes = appendClass(classes, parseValue(arg));
74
54
  }
75
55
  }
76
- return classes.join(" ");
56
+ return classes;
57
+ }
58
+ function parseValue(arg) {
59
+ if (typeof arg === "string" || typeof arg === "number") {
60
+ return arg;
61
+ }
62
+ if (typeof arg !== "object") {
63
+ return "";
64
+ }
65
+ if (Array.isArray(arg)) {
66
+ return classNames2.apply(null, arg);
67
+ }
68
+ if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
69
+ return arg.toString();
70
+ }
71
+ var classes = "";
72
+ for (var key in arg) {
73
+ if (hasOwn.call(arg, key) && arg[key]) {
74
+ classes = appendClass(classes, key);
75
+ }
76
+ }
77
+ return classes;
78
+ }
79
+ function appendClass(value, newClass) {
80
+ if (!newClass) {
81
+ return value;
82
+ }
83
+ if (value) {
84
+ return value + " " + newClass;
85
+ }
86
+ return value + newClass;
77
87
  }
78
88
  if (module2.exports) {
79
89
  classNames2.default = classNames2;
@@ -2665,72 +2675,111 @@ Check the top-level render call using <` + t2 + ">.");
2665
2675
  _setPrototypeOf$1(subClass, superClass);
2666
2676
  }
2667
2677
  var propTypes = { exports: {} };
2668
- var ReactPropTypesSecret_1;
2669
- var hasRequiredReactPropTypesSecret;
2670
- function requireReactPropTypesSecret() {
2671
- if (hasRequiredReactPropTypesSecret)
2672
- return ReactPropTypesSecret_1;
2673
- hasRequiredReactPropTypesSecret = 1;
2674
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
2675
- ReactPropTypesSecret_1 = ReactPropTypesSecret;
2676
- return ReactPropTypesSecret_1;
2677
- }
2678
- var factoryWithThrowingShims;
2679
- var hasRequiredFactoryWithThrowingShims;
2680
- function requireFactoryWithThrowingShims() {
2681
- if (hasRequiredFactoryWithThrowingShims)
2682
- return factoryWithThrowingShims;
2683
- hasRequiredFactoryWithThrowingShims = 1;
2684
- var ReactPropTypesSecret = requireReactPropTypesSecret();
2685
- function emptyFunction() {
2686
- }
2687
- function emptyFunctionWithReset() {
2688
- }
2689
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
2690
- factoryWithThrowingShims = function() {
2691
- function shim(props, propName, componentName, location, propFullName, secret) {
2692
- if (secret === ReactPropTypesSecret) {
2693
- return;
2678
+ var reactIs = { exports: {} };
2679
+ var reactIs_production_min = {};
2680
+ /** @license React v16.13.1
2681
+ * react-is.production.min.js
2682
+ *
2683
+ * Copyright (c) Facebook, Inc. and its affiliates.
2684
+ *
2685
+ * This source code is licensed under the MIT license found in the
2686
+ * LICENSE file in the root directory of this source tree.
2687
+ */
2688
+ var hasRequiredReactIs_production_min;
2689
+ function requireReactIs_production_min() {
2690
+ if (hasRequiredReactIs_production_min)
2691
+ return reactIs_production_min;
2692
+ hasRequiredReactIs_production_min = 1;
2693
+ 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;
2694
+ function z(a2) {
2695
+ if ("object" === typeof a2 && null !== a2) {
2696
+ var u = a2.$$typeof;
2697
+ switch (u) {
2698
+ case c6:
2699
+ switch (a2 = a2.type, a2) {
2700
+ case l2:
2701
+ case m:
2702
+ case e2:
2703
+ case g:
2704
+ case f:
2705
+ case p:
2706
+ return a2;
2707
+ default:
2708
+ switch (a2 = a2 && a2.$$typeof, a2) {
2709
+ case k:
2710
+ case n:
2711
+ case t2:
2712
+ case r2:
2713
+ case h:
2714
+ return a2;
2715
+ default:
2716
+ return u;
2717
+ }
2718
+ }
2719
+ case d:
2720
+ return u;
2694
2721
  }
2695
- var err = new Error(
2696
- "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"
2697
- );
2698
- err.name = "Invariant Violation";
2699
- throw err;
2700
- }
2701
- shim.isRequired = shim;
2702
- function getShim() {
2703
- return shim;
2704
2722
  }
2705
- var ReactPropTypes = {
2706
- array: shim,
2707
- bigint: shim,
2708
- bool: shim,
2709
- func: shim,
2710
- number: shim,
2711
- object: shim,
2712
- string: shim,
2713
- symbol: shim,
2714
- any: shim,
2715
- arrayOf: getShim,
2716
- element: shim,
2717
- elementType: shim,
2718
- instanceOf: getShim,
2719
- node: shim,
2720
- objectOf: getShim,
2721
- oneOf: getShim,
2722
- oneOfType: getShim,
2723
- shape: getShim,
2724
- exact: getShim,
2725
- checkPropTypes: emptyFunctionWithReset,
2726
- resetWarningCache: emptyFunction
2727
- };
2728
- ReactPropTypes.PropTypes = ReactPropTypes;
2729
- return ReactPropTypes;
2723
+ }
2724
+ function A(a2) {
2725
+ return z(a2) === m;
2726
+ }
2727
+ reactIs_production_min.AsyncMode = l2;
2728
+ reactIs_production_min.ConcurrentMode = m;
2729
+ reactIs_production_min.ContextConsumer = k;
2730
+ reactIs_production_min.ContextProvider = h;
2731
+ reactIs_production_min.Element = c6;
2732
+ reactIs_production_min.ForwardRef = n;
2733
+ reactIs_production_min.Fragment = e2;
2734
+ reactIs_production_min.Lazy = t2;
2735
+ reactIs_production_min.Memo = r2;
2736
+ reactIs_production_min.Portal = d;
2737
+ reactIs_production_min.Profiler = g;
2738
+ reactIs_production_min.StrictMode = f;
2739
+ reactIs_production_min.Suspense = p;
2740
+ reactIs_production_min.isAsyncMode = function(a2) {
2741
+ return A(a2) || z(a2) === l2;
2730
2742
  };
2731
- return factoryWithThrowingShims;
2743
+ reactIs_production_min.isConcurrentMode = A;
2744
+ reactIs_production_min.isContextConsumer = function(a2) {
2745
+ return z(a2) === k;
2746
+ };
2747
+ reactIs_production_min.isContextProvider = function(a2) {
2748
+ return z(a2) === h;
2749
+ };
2750
+ reactIs_production_min.isElement = function(a2) {
2751
+ return "object" === typeof a2 && null !== a2 && a2.$$typeof === c6;
2752
+ };
2753
+ reactIs_production_min.isForwardRef = function(a2) {
2754
+ return z(a2) === n;
2755
+ };
2756
+ reactIs_production_min.isFragment = function(a2) {
2757
+ return z(a2) === e2;
2758
+ };
2759
+ reactIs_production_min.isLazy = function(a2) {
2760
+ return z(a2) === t2;
2761
+ };
2762
+ reactIs_production_min.isMemo = function(a2) {
2763
+ return z(a2) === r2;
2764
+ };
2765
+ reactIs_production_min.isPortal = function(a2) {
2766
+ return z(a2) === d;
2767
+ };
2768
+ reactIs_production_min.isProfiler = function(a2) {
2769
+ return z(a2) === g;
2770
+ };
2771
+ reactIs_production_min.isStrictMode = function(a2) {
2772
+ return z(a2) === f;
2773
+ };
2774
+ reactIs_production_min.isSuspense = function(a2) {
2775
+ return z(a2) === p;
2776
+ };
2777
+ reactIs_production_min.isValidElementType = function(a2) {
2778
+ 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);
2779
+ };
2780
+ reactIs_production_min.typeOf = z;
2781
+ return reactIs_production_min;
2732
2782
  }
2733
- var reactIs = { exports: {} };
2734
2783
  var reactIs_development = {};
2735
2784
  /** @license React v16.13.1
2736
2785
  * react-is.development.js
@@ -2894,110 +2943,6 @@ Check the top-level render call using <` + t2 + ">.");
2894
2943
  }
2895
2944
  return reactIs_development;
2896
2945
  }
2897
- var reactIs_production_min = {};
2898
- /** @license React v16.13.1
2899
- * react-is.production.min.js
2900
- *
2901
- * Copyright (c) Facebook, Inc. and its affiliates.
2902
- *
2903
- * This source code is licensed under the MIT license found in the
2904
- * LICENSE file in the root directory of this source tree.
2905
- */
2906
- var hasRequiredReactIs_production_min;
2907
- function requireReactIs_production_min() {
2908
- if (hasRequiredReactIs_production_min)
2909
- return reactIs_production_min;
2910
- hasRequiredReactIs_production_min = 1;
2911
- 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;
2912
- function z(a2) {
2913
- if ("object" === typeof a2 && null !== a2) {
2914
- var u = a2.$$typeof;
2915
- switch (u) {
2916
- case c6:
2917
- switch (a2 = a2.type, a2) {
2918
- case l2:
2919
- case m:
2920
- case e2:
2921
- case g:
2922
- case f:
2923
- case p:
2924
- return a2;
2925
- default:
2926
- switch (a2 = a2 && a2.$$typeof, a2) {
2927
- case k:
2928
- case n:
2929
- case t2:
2930
- case r2:
2931
- case h:
2932
- return a2;
2933
- default:
2934
- return u;
2935
- }
2936
- }
2937
- case d:
2938
- return u;
2939
- }
2940
- }
2941
- }
2942
- function A(a2) {
2943
- return z(a2) === m;
2944
- }
2945
- reactIs_production_min.AsyncMode = l2;
2946
- reactIs_production_min.ConcurrentMode = m;
2947
- reactIs_production_min.ContextConsumer = k;
2948
- reactIs_production_min.ContextProvider = h;
2949
- reactIs_production_min.Element = c6;
2950
- reactIs_production_min.ForwardRef = n;
2951
- reactIs_production_min.Fragment = e2;
2952
- reactIs_production_min.Lazy = t2;
2953
- reactIs_production_min.Memo = r2;
2954
- reactIs_production_min.Portal = d;
2955
- reactIs_production_min.Profiler = g;
2956
- reactIs_production_min.StrictMode = f;
2957
- reactIs_production_min.Suspense = p;
2958
- reactIs_production_min.isAsyncMode = function(a2) {
2959
- return A(a2) || z(a2) === l2;
2960
- };
2961
- reactIs_production_min.isConcurrentMode = A;
2962
- reactIs_production_min.isContextConsumer = function(a2) {
2963
- return z(a2) === k;
2964
- };
2965
- reactIs_production_min.isContextProvider = function(a2) {
2966
- return z(a2) === h;
2967
- };
2968
- reactIs_production_min.isElement = function(a2) {
2969
- return "object" === typeof a2 && null !== a2 && a2.$$typeof === c6;
2970
- };
2971
- reactIs_production_min.isForwardRef = function(a2) {
2972
- return z(a2) === n;
2973
- };
2974
- reactIs_production_min.isFragment = function(a2) {
2975
- return z(a2) === e2;
2976
- };
2977
- reactIs_production_min.isLazy = function(a2) {
2978
- return z(a2) === t2;
2979
- };
2980
- reactIs_production_min.isMemo = function(a2) {
2981
- return z(a2) === r2;
2982
- };
2983
- reactIs_production_min.isPortal = function(a2) {
2984
- return z(a2) === d;
2985
- };
2986
- reactIs_production_min.isProfiler = function(a2) {
2987
- return z(a2) === g;
2988
- };
2989
- reactIs_production_min.isStrictMode = function(a2) {
2990
- return z(a2) === f;
2991
- };
2992
- reactIs_production_min.isSuspense = function(a2) {
2993
- return z(a2) === p;
2994
- };
2995
- reactIs_production_min.isValidElementType = function(a2) {
2996
- 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);
2997
- };
2998
- reactIs_production_min.typeOf = z;
2999
- return reactIs_production_min;
3000
- }
3001
2946
  var hasRequiredReactIs;
3002
2947
  function requireReactIs() {
3003
2948
  if (hasRequiredReactIs)
@@ -3086,6 +3031,16 @@ Check the top-level render call using <` + t2 + ">.");
3086
3031
  };
3087
3032
  return objectAssign;
3088
3033
  }
3034
+ var ReactPropTypesSecret_1;
3035
+ var hasRequiredReactPropTypesSecret;
3036
+ function requireReactPropTypesSecret() {
3037
+ if (hasRequiredReactPropTypesSecret)
3038
+ return ReactPropTypesSecret_1;
3039
+ hasRequiredReactPropTypesSecret = 1;
3040
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
3041
+ ReactPropTypesSecret_1 = ReactPropTypesSecret;
3042
+ return ReactPropTypesSecret_1;
3043
+ }
3089
3044
  var has;
3090
3045
  var hasRequiredHas;
3091
3046
  function requireHas() {
@@ -3603,6 +3558,61 @@ Check the top-level render call using <` + t2 + ">.");
3603
3558
  };
3604
3559
  return factoryWithTypeCheckers;
3605
3560
  }
3561
+ var factoryWithThrowingShims;
3562
+ var hasRequiredFactoryWithThrowingShims;
3563
+ function requireFactoryWithThrowingShims() {
3564
+ if (hasRequiredFactoryWithThrowingShims)
3565
+ return factoryWithThrowingShims;
3566
+ hasRequiredFactoryWithThrowingShims = 1;
3567
+ var ReactPropTypesSecret = requireReactPropTypesSecret();
3568
+ function emptyFunction() {
3569
+ }
3570
+ function emptyFunctionWithReset() {
3571
+ }
3572
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
3573
+ factoryWithThrowingShims = function() {
3574
+ function shim(props, propName, componentName, location, propFullName, secret) {
3575
+ if (secret === ReactPropTypesSecret) {
3576
+ return;
3577
+ }
3578
+ var err = new Error(
3579
+ "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"
3580
+ );
3581
+ err.name = "Invariant Violation";
3582
+ throw err;
3583
+ }
3584
+ shim.isRequired = shim;
3585
+ function getShim() {
3586
+ return shim;
3587
+ }
3588
+ var ReactPropTypes = {
3589
+ array: shim,
3590
+ bigint: shim,
3591
+ bool: shim,
3592
+ func: shim,
3593
+ number: shim,
3594
+ object: shim,
3595
+ string: shim,
3596
+ symbol: shim,
3597
+ any: shim,
3598
+ arrayOf: getShim,
3599
+ element: shim,
3600
+ elementType: shim,
3601
+ instanceOf: getShim,
3602
+ node: shim,
3603
+ objectOf: getShim,
3604
+ oneOf: getShim,
3605
+ oneOfType: getShim,
3606
+ shape: getShim,
3607
+ exact: getShim,
3608
+ checkPropTypes: emptyFunctionWithReset,
3609
+ resetWarningCache: emptyFunction
3610
+ };
3611
+ ReactPropTypes.PropTypes = ReactPropTypes;
3612
+ return ReactPropTypes;
3613
+ };
3614
+ return factoryWithThrowingShims;
3615
+ }
3606
3616
  if (process.env.NODE_ENV !== "production") {
3607
3617
  var ReactIs = requireReactIs();
3608
3618
  var throwOnDirectAccess = true;
@@ -4448,6 +4458,19 @@ Check the top-level render call using <` + t2 + ">.");
4448
4458
  }
4449
4459
  return getAllScrollableParents(element.parentElement, scrollableParents);
4450
4460
  }
4461
+ let passiveSupported = false;
4462
+ if (canUseDom) {
4463
+ try {
4464
+ const opts = Object.defineProperty({}, "passive", {
4465
+ get() {
4466
+ passiveSupported = true;
4467
+ }
4468
+ });
4469
+ window.addEventListener("test-passive-supported", null, opts);
4470
+ } catch (e2) {
4471
+ console.log(e2);
4472
+ }
4473
+ }
4451
4474
  let totalLockCount = 0;
4452
4475
  const BODY_LOCK_CLASS = "nut-overflow-hidden";
4453
4476
  function getScrollableElement(el) {
@@ -4496,7 +4519,7 @@ Check the top-level render call using <` + t2 + ">.");
4496
4519
  document.addEventListener(
4497
4520
  "touchmove",
4498
4521
  onTouchMove,
4499
- false
4522
+ passiveSupported ? { passive: false } : false
4500
4523
  );
4501
4524
  if (!totalLockCount) {
4502
4525
  document.body.classList.add(BODY_LOCK_CLASS);
@@ -10446,7 +10469,7 @@ Please add \`${key}Action\` when creating your handler.`);
10446
10469
  onDragEnd: ({ offset }) => {
10447
10470
  touchState.current.y2 = offset[1];
10448
10471
  const delta = (touchState.current.y2 - touchState.current.y1) / spaceHeight || 0;
10449
- const cacheIndex = state.current.anchorIndex + Math.ceil(delta);
10472
+ const cacheIndex = state.current.anchorIndex + Math.round(delta);
10450
10473
  setCodeIndex(cacheIndex);
10451
10474
  scrollTo(cacheIndex);
10452
10475
  resetScrollState();
@@ -10476,7 +10499,8 @@ Please add \`${key}Action\` when creating your handler.`);
10476
10499
  calculateHeight();
10477
10500
  }
10478
10501
  const target = e2.target;
10479
- const { scrollTop } = target;
10502
+ let { scrollTop } = target;
10503
+ scrollTop = Math.ceil(scrollTop);
10480
10504
  state.current.scrollY = scrollTop;
10481
10505
  setScrollY(scrollTop);
10482
10506
  for (let i = 0; i < listHeight.length - 1; i++) {
@@ -11640,7 +11664,6 @@ Please add \`${key}Action\` when creating your handler.`);
11640
11664
  return pathNodes;
11641
11665
  }
11642
11666
  }
11643
- const Tree$1 = Tree;
11644
11667
  const defaultProps$16 = {
11645
11668
  ...ComponentDefaults,
11646
11669
  activeColor: "",
@@ -11716,7 +11739,7 @@ Please add \`${key}Action\` when creating your handler.`);
11716
11739
  paneKey: ""
11717
11740
  }
11718
11741
  ],
11719
- tree: new Tree$1([], {}),
11742
+ tree: new Tree([], {}),
11720
11743
  tabsCursor: 0,
11721
11744
  // 选中的tab项
11722
11745
  initLoading: false,
@@ -11746,7 +11769,7 @@ Please add \`${key}Action\` when creating your handler.`);
11746
11769
  } else {
11747
11770
  state.optionsData = options2;
11748
11771
  }
11749
- state.tree = new Tree$1(state.optionsData, {
11772
+ state.tree = new Tree(state.optionsData, {
11750
11773
  value: state.configs.optionKey.valueKey,
11751
11774
  text: state.configs.optionKey.textKey,
11752
11775
  children: state.configs.optionKey.childrenKey
@@ -14099,7 +14122,7 @@ Please add \`${key}Action\` when creating your handler.`);
14099
14122
  }));
14100
14123
  React.useEffect(() => {
14101
14124
  var _a2, _b, _c;
14102
- const options22 = false;
14125
+ const options22 = passiveSupported ? { passive: false } : false;
14103
14126
  (_a2 = PickerPanelRef.current) == null ? void 0 : _a2.addEventListener("touchstart", touchStart, options22);
14104
14127
  (_b = PickerPanelRef.current) == null ? void 0 : _b.addEventListener("touchmove", touchMove, options22);
14105
14128
  (_c = PickerPanelRef.current) == null ? void 0 : _c.addEventListener("touchend", touchEnd, options22);
@@ -19352,7 +19375,6 @@ Please add \`${key}Action\` when creating your handler.`);
19352
19375
  update: update2
19353
19376
  };
19354
19377
  };
19355
- const confirm$1 = confirm;
19356
19378
  const Content = (props) => {
19357
19379
  const {
19358
19380
  visible,
@@ -19567,11 +19589,11 @@ Please add \`${key}Action\` when creating your handler.`);
19567
19589
  };
19568
19590
  const Dialog = React.forwardRef(BaseDialog);
19569
19591
  Dialog.confirm = (props) => {
19570
- return confirm$1(props);
19592
+ return confirm(props);
19571
19593
  };
19572
19594
  ["alert"].forEach((type2) => {
19573
19595
  Dialog[type2] = (props) => {
19574
- return confirm$1({
19596
+ return confirm({
19575
19597
  ...props,
19576
19598
  isNotice: false,
19577
19599
  noticeType: type2
@@ -20919,7 +20941,7 @@ Please add \`${key}Action\` when creating your handler.`);
20919
20941
  axis: "y",
20920
20942
  target: elementRef,
20921
20943
  enabled: !props.disabled,
20922
- eventOptions: false
20944
+ eventOptions: passiveSupported ? { passive: false } : false
20923
20945
  }
20924
20946
  );
20925
20947
  const renderIcons = (status2) => {
package/dist/style.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * @nutui/nutui-react v2.3.11 Fri Feb 23 2024 19:38:29 GMT+0800 (China Standard Time)
2
+ * @nutui/nutui-react v2.3.12-beta.0 Thu Feb 29 2024 14:38:25 GMT+0800 (China Standard Time)
3
3
  * (c) 2023 @jdf2e.
4
4
  * Released under the MIT License.
5
5
  */