@nutui/nutui-react 2.3.10 → 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 (217) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/esm/ActionSheet/style/style.css +1 -1
  3. package/dist/esm/ActionSheet.js +3 -13
  4. package/dist/esm/Address/style/style.css +1 -1
  5. package/dist/esm/Address.js +0 -13
  6. package/dist/esm/Animate/style/style.css +1 -1
  7. package/dist/esm/AnimatingNumbers.js +9 -25
  8. package/dist/esm/Audio/style/style.css +1 -1
  9. package/dist/esm/BackTop.js +1 -1
  10. package/dist/esm/Badge/style/style.css +1 -1
  11. package/dist/esm/Badge.js +0 -3
  12. package/dist/esm/Barrage/style/style.css +1 -1
  13. package/dist/esm/Button.js +0 -4
  14. package/dist/esm/Calendar/style/style.css +1 -1
  15. package/dist/esm/Card/style/style.css +1 -1
  16. package/dist/esm/Cascader/style/style.css +1 -1
  17. package/dist/esm/Cascader.js +0 -17
  18. package/dist/esm/Checkbox/style/style.css +1 -1
  19. package/dist/esm/Checkbox.js +0 -6
  20. package/dist/esm/CheckboxGroup/style/style.css +1 -1
  21. package/dist/esm/CheckboxGroup.js +0 -3
  22. package/dist/esm/Col/style/style.css +1 -1
  23. package/dist/esm/Collapse/style/style.css +1 -1
  24. package/dist/esm/CollapseItem/style/style.css +1 -1
  25. package/dist/esm/CollapseItem.js +0 -3
  26. package/dist/esm/ConfigProvider.js +0 -2
  27. package/dist/esm/DatePicker/style/style.css +1 -1
  28. package/dist/esm/Dialog/style/style.css +1 -1
  29. package/dist/esm/Dialog.js +2 -8
  30. package/dist/esm/Divider/style/style.css +1 -1
  31. package/dist/esm/Elevator.js +2 -1
  32. package/dist/esm/Empty.js +0 -1
  33. package/dist/esm/Form/style/style.css +1 -1
  34. package/dist/esm/FormItem/style/style.css +1 -1
  35. package/dist/esm/FormItem.js +0 -3
  36. package/dist/esm/Grid/style/style.css +1 -1
  37. package/dist/esm/Grid.js +0 -1
  38. package/dist/esm/GridItem/style/style.css +1 -1
  39. package/dist/esm/GridItem.js +0 -4
  40. package/dist/esm/ImagePreview/style/style.css +1 -1
  41. package/dist/esm/Indicator/style/style.css +1 -1
  42. package/dist/esm/Indicator.js +0 -2
  43. package/dist/esm/Input.js +4 -1
  44. package/dist/esm/InputNumber.js +107 -161
  45. package/dist/esm/Menu/style/style.css +1 -1
  46. package/dist/esm/Menu.js +0 -9
  47. package/dist/esm/MenuItem/style/style.css +1 -1
  48. package/dist/esm/MenuItem.js +0 -13
  49. package/dist/esm/NavBar/style/style.css +1 -1
  50. package/dist/esm/NoticeBar/style/style.css +1 -1
  51. package/dist/esm/Notify.js +10 -27
  52. package/dist/esm/NumberKeyboard/style/style.css +1 -1
  53. package/dist/esm/Overlay.js +0 -8
  54. package/dist/esm/Picker/style/style.css +1 -1
  55. package/dist/esm/Picker.js +0 -7
  56. package/dist/esm/Popover/style/style.css +1 -1
  57. package/dist/esm/Popover.js +0 -1
  58. package/dist/esm/Popup/style/style.css +1 -1
  59. package/dist/esm/Popup.js +0 -12
  60. package/dist/esm/Price/style/style.css +1 -1
  61. package/dist/esm/PullToRefresh.js +0 -1
  62. package/dist/esm/Radio/style/style.css +1 -1
  63. package/dist/esm/Radio.js +0 -6
  64. package/dist/esm/RadioGroup/style/style.css +1 -1
  65. package/dist/esm/RadioGroup.js +0 -3
  66. package/dist/esm/Range/style/style.css +1 -1
  67. package/dist/esm/SafeArea.js +0 -2
  68. package/dist/esm/SearchBar/style/style.css +1 -1
  69. package/dist/esm/ShortPassword/style/style.css +1 -1
  70. package/dist/esm/ShortPassword.js +1 -4
  71. package/dist/esm/SideNavBar/style/style.css +1 -1
  72. package/dist/esm/Skeleton/style/style.css +1 -1
  73. package/dist/esm/Skeleton.js +2 -4
  74. package/dist/esm/Step/style/style.css +1 -1
  75. package/dist/esm/Steps/style/style.css +1 -1
  76. package/dist/esm/Sticky.js +0 -1
  77. package/dist/esm/Swipe/style/style.css +1 -1
  78. package/dist/esm/Swiper/style/style.css +1 -1
  79. package/dist/esm/Switch/style/style.css +1 -1
  80. package/dist/esm/Tabbar/style/style.css +1 -1
  81. package/dist/esm/Tabbar.js +0 -1
  82. package/dist/esm/TabbarItem/style/style.css +1 -1
  83. package/dist/esm/TabbarItem.js +0 -4
  84. package/dist/esm/Table/style/style.css +1 -1
  85. package/dist/esm/Tabs/style/style.css +1 -1
  86. package/dist/esm/Tabs.js +0 -7
  87. package/dist/esm/TextArea/style/style.css +1 -1
  88. package/dist/esm/TimeSelect/style/style.css +1 -1
  89. package/dist/esm/Toast.js +10 -32
  90. package/dist/esm/Tour/style/style.css +1 -1
  91. package/dist/esm/VirtualList/style/style.css +1 -1
  92. package/dist/esm/cascader2.js +14 -15
  93. package/dist/esm/formitem2.js +10 -26
  94. package/dist/esm/types/src/packages/inputnumber/inputnumber.d.ts +15 -15
  95. package/dist/esm/types/src/packages/inputnumber/inputnumber.taro.d.ts +15 -17
  96. package/dist/locales/base.js +1 -1
  97. package/dist/locales/en-US.js +1 -1
  98. package/dist/locales/id-ID.js +1 -1
  99. package/dist/locales/tr-TR.js +1 -1
  100. package/dist/locales/zh-CN.js +1 -1
  101. package/dist/locales/zh-TW.js +1 -1
  102. package/dist/locales/zh-UG.js +1 -1
  103. package/dist/nutui.react.es.js +339 -367
  104. package/dist/nutui.react.umd.js +339 -367
  105. package/dist/packages/animate/animate.scss +0 -27
  106. package/dist/packages/audio/audio.scss +0 -5
  107. package/dist/packages/avatarcropper/avatarcropper.scss +0 -2
  108. package/dist/packages/badge/badge.scss +7 -0
  109. package/dist/packages/barrage/barrage.scss +22 -3
  110. package/dist/packages/button/button.scss +0 -1
  111. package/dist/packages/calendar/calendar.scss +4 -4
  112. package/dist/packages/calendarcard/calendarcard.scss +0 -1
  113. package/dist/packages/cascader/cascader.scss +0 -1
  114. package/dist/packages/checkbox/checkbox.scss +0 -2
  115. package/dist/packages/checkboxgroup/checkboxgroup.scss +1 -3
  116. package/dist/packages/col/col.scss +2 -2
  117. package/dist/packages/collapseitem/collapseitem.scss +2 -3
  118. package/dist/packages/dialog/dialog.scss +4 -0
  119. package/dist/packages/divider/divider.scss +1 -1
  120. package/dist/packages/fixednav/fixednav.scss +0 -2
  121. package/dist/packages/form/form.scss +24 -26
  122. package/dist/packages/formitem/formitem.scss +0 -1
  123. package/dist/packages/grid/grid.scss +1 -1
  124. package/dist/packages/griditem/griditem.scss +28 -26
  125. package/dist/packages/imagepreview/imagepreview.scss +0 -1
  126. package/dist/packages/indicator/indicator.scss +2 -3
  127. package/dist/packages/menu/menu.scss +0 -7
  128. package/dist/packages/menuitem/menuitem.scss +14 -10
  129. package/dist/packages/navbar/navbar.scss +3 -5
  130. package/dist/packages/noticebar/noticebar.scss +20 -0
  131. package/dist/packages/numberkeyboard/numberkeyboard.scss +25 -18
  132. package/dist/packages/pagination/pagination.scss +0 -2
  133. package/dist/packages/picker/picker.scss +9 -0
  134. package/dist/packages/popover/popover.scss +0 -4
  135. package/dist/packages/popup/popup.scss +3 -19
  136. package/dist/packages/price/price.scss +1 -0
  137. package/dist/packages/radio/radio.scss +0 -1
  138. package/dist/packages/radiogroup/radiogroup.scss +10 -1
  139. package/dist/packages/range/range.scss +127 -127
  140. package/dist/packages/rate/rate.scss +0 -1
  141. package/dist/packages/searchbar/searchbar.scss +3 -2
  142. package/dist/packages/shortpassword/shortpassword.scss +4 -0
  143. package/dist/packages/skeleton/skeleton.scss +13 -3
  144. package/dist/packages/space/space.scss +0 -1
  145. package/dist/packages/step/step.scss +21 -25
  146. package/dist/packages/swipe/swipe.scss +0 -15
  147. package/dist/packages/swiper/swiper.scss +0 -1
  148. package/dist/packages/switch/switch.scss +11 -0
  149. package/dist/packages/table/table.scss +4 -5
  150. package/dist/packages/tabs/tabs.scss +2 -4
  151. package/dist/packages/tag/tag.scss +0 -1
  152. package/dist/packages/textarea/textarea.scss +1 -6
  153. package/dist/packages/timeselect/timeselect.scss +1 -6
  154. package/dist/packages/tour/tour.scss +1 -5
  155. package/dist/packages/trendarrow/trendarrow.scss +0 -1
  156. package/dist/packages/uploader/uploader.scss +0 -1
  157. package/dist/packages/virtuallist/virtuallist.scss +12 -12
  158. package/dist/style.css +1 -1
  159. package/dist/style.mjs +1 -1
  160. package/dist/styles/variables.scss +11 -7
  161. package/dist/types/index.d.ts +98 -98
  162. package/dist/types/packages/actionsheet/actionsheet.d.ts +1 -1
  163. package/dist/types/packages/actionsheet/actionsheet.taro.d.ts +1 -1
  164. package/dist/types/packages/address/address.d.ts +1 -1
  165. package/dist/types/packages/address/address.taro.d.ts +1 -1
  166. package/dist/types/packages/address/customRender.d.ts +1 -1
  167. package/dist/types/packages/address/customRender.taro.d.ts +1 -1
  168. package/dist/types/packages/avatar/avatar.d.ts +1 -1
  169. package/dist/types/packages/avatar/avatar.taro.d.ts +1 -1
  170. package/dist/types/packages/calendaritem/calendaritem.d.ts +1 -1
  171. package/dist/types/packages/calendaritem/calendaritem.taro.d.ts +1 -1
  172. package/dist/types/packages/cascader/cascader.d.ts +1 -1
  173. package/dist/types/packages/cascader/cascader.taro.d.ts +1 -1
  174. package/dist/types/packages/cell/cell.d.ts +1 -1
  175. package/dist/types/packages/cell/cell.taro.d.ts +1 -1
  176. package/dist/types/packages/checkbox/checkbox.d.ts +2 -2
  177. package/dist/types/packages/checkbox/checkbox.taro.d.ts +2 -2
  178. package/dist/types/packages/checkboxgroup/checkboxgroup.d.ts +2 -2
  179. package/dist/types/packages/checkboxgroup/checkboxgroup.taro.d.ts +2 -2
  180. package/dist/types/packages/datepicker/datepicker.d.ts +1 -1
  181. package/dist/types/packages/datepicker/datepicker.taro.d.ts +1 -1
  182. package/dist/types/packages/dialog/dialogwrap.d.ts +1 -1
  183. package/dist/types/packages/empty/empty.d.ts +1 -1
  184. package/dist/types/packages/fixednav/fixednav.d.ts +1 -1
  185. package/dist/types/packages/fixednav/fixednav.taro.d.ts +1 -1
  186. package/dist/types/packages/form/form.d.ts +1 -1
  187. package/dist/types/packages/form/form.taro.d.ts +1 -1
  188. package/dist/types/packages/form/index.d.ts +1 -1
  189. package/dist/types/packages/form/index.taro.d.ts +1 -1
  190. package/dist/types/packages/inputnumber/inputnumber.d.ts +28 -28
  191. package/dist/types/packages/inputnumber/inputnumber.taro.d.ts +15 -17
  192. package/dist/types/packages/menu/menu.d.ts +1 -1
  193. package/dist/types/packages/menu/menu.taro.d.ts +1 -1
  194. package/dist/types/packages/numberkeyboard/numberkeyboard.d.ts +1 -1
  195. package/dist/types/packages/numberkeyboard/numberkeyboard.taro.d.ts +1 -1
  196. package/dist/types/packages/nutui.react.d.ts +98 -98
  197. package/dist/types/packages/nutui.react.taro.d.ts +98 -98
  198. package/dist/types/packages/nutui.taro.react.build.d.ts +98 -98
  199. package/dist/types/packages/picker/picker.d.ts +1 -1
  200. package/dist/types/packages/picker/picker.taro.d.ts +1 -1
  201. package/dist/types/packages/popover/popover.d.ts +1 -1
  202. package/dist/types/packages/popover/popover.taro.d.ts +1 -1
  203. package/dist/types/packages/popup/popup.d.ts +1 -1
  204. package/dist/types/packages/popup/popup.taro.d.ts +1 -1
  205. package/dist/types/packages/radio/radio.d.ts +2 -2
  206. package/dist/types/packages/radio/radio.taro.d.ts +2 -2
  207. package/dist/types/packages/shortpassword/shortpassword.d.ts +1 -1
  208. package/dist/types/packages/shortpassword/shortpassword.taro.d.ts +1 -1
  209. package/dist/types/packages/swiper/index.d.ts +1 -1
  210. package/dist/types/packages/swiper/index.taro.d.ts +1 -1
  211. package/dist/types/packages/tabs/tabs.d.ts +1 -1
  212. package/dist/types/packages/tabs/tabs.taro.d.ts +1 -1
  213. package/dist/types/packages/timedetail/timedetail.d.ts +1 -1
  214. package/dist/types/packages/timedetail/timedetail.taro.d.ts +1 -1
  215. package/dist/types/packages/tour/tour.d.ts +1 -1
  216. package/dist/types/packages/tour/tour.taro.d.ts +1 -1
  217. package/package.json +5 -5
@@ -8,7 +8,7 @@ var __publicField = (obj, key, value) => {
8
8
  return value;
9
9
  };
10
10
  /*!
11
- * @nutui/nutui-react v2.3.10 Tue Feb 06 2024 16:12:46 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));
54
+ }
55
+ }
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);
74
75
  }
75
76
  }
76
- return classes.join(" ");
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
2722
  }
2701
- shim.isRequired = shim;
2702
- function getShim() {
2703
- return shim;
2704
- }
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;
@@ -5218,7 +5228,7 @@ Check the top-level render call using <` + t2 + ">.");
5218
5228
  startTime = otime;
5219
5229
  duration > 0 ? scrollAnimation() : scroll();
5220
5230
  };
5221
- const styles = style ? {
5231
+ const styles = Object.keys(style || {}).length !== 0 ? {
5222
5232
  zIndex,
5223
5233
  ...style
5224
5234
  } : {
@@ -10459,7 +10469,7 @@ Please add \`${key}Action\` when creating your handler.`);
10459
10469
  onDragEnd: ({ offset }) => {
10460
10470
  touchState.current.y2 = offset[1];
10461
10471
  const delta = (touchState.current.y2 - touchState.current.y1) / spaceHeight || 0;
10462
- const cacheIndex = state.current.anchorIndex + Math.ceil(delta);
10472
+ const cacheIndex = state.current.anchorIndex + Math.round(delta);
10463
10473
  setCodeIndex(cacheIndex);
10464
10474
  scrollTo(cacheIndex);
10465
10475
  resetScrollState();
@@ -10489,7 +10499,8 @@ Please add \`${key}Action\` when creating your handler.`);
10489
10499
  calculateHeight();
10490
10500
  }
10491
10501
  const target = e2.target;
10492
- const { scrollTop } = target;
10502
+ let { scrollTop } = target;
10503
+ scrollTop = Math.ceil(scrollTop);
10493
10504
  state.current.scrollY = scrollTop;
10494
10505
  setScrollY(scrollTop);
10495
10506
  for (let i = 0; i < listHeight.length - 1; i++) {
@@ -11653,7 +11664,6 @@ Please add \`${key}Action\` when creating your handler.`);
11653
11664
  return pathNodes;
11654
11665
  }
11655
11666
  }
11656
- const Tree$1 = Tree;
11657
11667
  const defaultProps$16 = {
11658
11668
  ...ComponentDefaults,
11659
11669
  activeColor: "",
@@ -11729,7 +11739,7 @@ Please add \`${key}Action\` when creating your handler.`);
11729
11739
  paneKey: ""
11730
11740
  }
11731
11741
  ],
11732
- tree: new Tree$1([], {}),
11742
+ tree: new Tree([], {}),
11733
11743
  tabsCursor: 0,
11734
11744
  // 选中的tab项
11735
11745
  initLoading: false,
@@ -11759,7 +11769,7 @@ Please add \`${key}Action\` when creating your handler.`);
11759
11769
  } else {
11760
11770
  state.optionsData = options2;
11761
11771
  }
11762
- state.tree = new Tree$1(state.optionsData, {
11772
+ state.tree = new Tree(state.optionsData, {
11763
11773
  value: state.configs.optionKey.valueKey,
11764
11774
  text: state.configs.optionKey.textKey,
11765
11775
  children: state.configs.optionKey.childrenKey
@@ -16415,7 +16425,10 @@ Please add \`${key}Action\` when creating your handler.`);
16415
16425
  name,
16416
16426
  className: "nut-input-native",
16417
16427
  ref: inputRef,
16418
- style: { textAlign: align },
16428
+ style: {
16429
+ textAlign: `${// eslint-disable-next-line no-nested-ternary
16430
+ align === "right" ? "end" : align === "left" ? "start" : "center"}`
16431
+ },
16419
16432
  type: inputType(type2),
16420
16433
  maxLength,
16421
16434
  placeholder: placeholder || locale.placeholder,
@@ -16466,11 +16479,10 @@ Please add \`${key}Action\` when creating your handler.`);
16466
16479
  const defaultProps$U = {
16467
16480
  ...ComponentDefaults,
16468
16481
  disabled: false,
16469
- min: 1,
16470
- max: 9999,
16471
16482
  readOnly: false,
16472
16483
  allowEmpty: false,
16473
- defaultValue: 0,
16484
+ min: 1,
16485
+ max: 9999,
16474
16486
  step: 1,
16475
16487
  digits: 0,
16476
16488
  async: false
@@ -16503,199 +16515,159 @@ Please add \`${key}Action\` when creating your handler.`);
16503
16515
  ...defaultProps$U,
16504
16516
  ...props
16505
16517
  };
16506
- const inputRef = React.useRef("");
16507
- const [_checked, setChecked] = usePropsValue({
16508
- value,
16509
- defaultValue
16518
+ const classes = classNames(classPrefix$g, {
16519
+ [`${classPrefix$g}-disabled`]: disabled
16510
16520
  });
16521
+ const [focused, setFocused] = React.useState(false);
16522
+ const inputRef = React.useRef(null);
16511
16523
  React.useEffect(() => {
16512
- if (formatter) {
16513
- if (_checked || _checked === 0) {
16514
- inputRef.current = formatter(_checked);
16515
- setChecked(formatter(_checked));
16516
- }
16517
- }
16518
- }, []);
16519
- const classes = classNames(
16520
- {
16521
- [`${classPrefix$g}`]: true,
16522
- [`${classPrefix$g}-disabled`]: disabled
16523
- },
16524
- className
16525
- );
16526
- const styles = {
16527
- ...style
16528
- };
16529
- const addAllow = (value2 = _checked) => {
16530
- if (formatter) {
16531
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
16532
- return Number(numValue) < Number(max) && !disabled;
16524
+ var _a2, _b;
16525
+ if (focused) {
16526
+ (_b = (_a2 = inputRef.current) == null ? void 0 : _a2.select) == null ? void 0 : _b.call(_a2);
16533
16527
  }
16534
- return Number(value2) < Number(max) && !disabled;
16535
- };
16536
- const reduceAllow = (value2 = _checked) => {
16537
- if (formatter) {
16538
- const numValue = String(value2).replace(/[^0-9|.]/gi, "");
16539
- return Number(numValue) > Number(min) && !disabled;
16528
+ }, [focused]);
16529
+ const [shadowValue, setShadowValue] = usePropsValue({
16530
+ value: typeof value === "string" ? parseFloat(value) : value,
16531
+ defaultValue: typeof defaultValue === "string" ? parseFloat(defaultValue) : defaultValue,
16532
+ onChange: (value2) => {
16540
16533
  }
16541
- return Number(value2) > Number(min) && !disabled;
16542
- };
16543
- const iconMinusClasses = classNames("nut-inputnumber-icon icon-minus", {
16544
- "nut-inputnumber-icon-disabled": !reduceAllow()
16545
16534
  });
16546
- const iconAddClasses = classNames("nut-inputnumber-icon icon-plus", {
16547
- "nut-inputnumber-icon-disabled": !addAllow()
16548
- });
16549
- const fixedDecimalPlaces = (v) => {
16550
- return Number(v).toFixed(Number(digits));
16551
- };
16552
- const emitChange = (value2, e2) => {
16553
- const outputValue = fixedDecimalPlaces(value2);
16554
- onChange && onChange(outputValue, e2);
16555
- if (!async) {
16556
- if (Number(outputValue) < Number(min)) {
16557
- formatter ? setChecked(formatter(Number(min))) : setChecked(Number(min));
16558
- } else if (Number(outputValue) > Number(max)) {
16559
- formatter ? setChecked(formatter(Number(max))) : setChecked(Number(max));
16560
- } else {
16561
- formatter ? setChecked(formatter(outputValue)) : setChecked(outputValue);
16562
- }
16535
+ const bound2 = (value2, min2, max2) => {
16536
+ let res = value2;
16537
+ if (min2 !== void 0) {
16538
+ res = Math.max(Number(min2), res);
16563
16539
  }
16564
- };
16565
- const reduceNumber = (e2) => {
16566
- onMinus && onMinus(e2);
16567
- if (reduceAllow()) {
16568
- if (formatter) {
16569
- const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
16570
- const outputValue = Number(numValue) - Number(step);
16571
- inputRef.current = formatter(outputValue);
16572
- emitChange(outputValue, e2);
16573
- } else {
16574
- const outputValue = Number(_checked) - Number(step);
16575
- emitChange(outputValue, e2);
16576
- }
16577
- } else {
16578
- onOverlimit && onOverlimit(e2);
16540
+ if (max2 !== void 0) {
16541
+ res = Math.min(Number(max2), res);
16579
16542
  }
16543
+ return res;
16580
16544
  };
16581
- const addNumber = (e2) => {
16582
- onPlus && onPlus(e2);
16583
- if (addAllow()) {
16584
- if (formatter) {
16585
- const numValue = String(_checked).replace(/[^0-9|.]/gi, "");
16586
- const outputValue = Number(numValue) + Number(step);
16587
- inputRef.current = formatter(outputValue);
16588
- emitChange(outputValue, e2);
16589
- } else {
16590
- const outputValue = Number(_checked) + Number(step);
16591
- emitChange(outputValue, e2);
16592
- }
16593
- } else {
16594
- onOverlimit && onOverlimit(e2);
16545
+ const format2 = (value2) => {
16546
+ if (value2 === null)
16547
+ return "";
16548
+ if (typeof value2 === "string")
16549
+ value2 = parseFloat(value2);
16550
+ const fixedValue = bound2(value2, Number(min), Number(max));
16551
+ if (formatter) {
16552
+ return formatter(fixedValue);
16595
16553
  }
16596
- };
16597
- const changeValue = (e2) => {
16598
- const input = e2.target;
16599
- onChange && onChange(input.valueAsNumber, e2);
16600
- if (!async) {
16601
- if (Number.isNaN(input.valueAsNumber)) {
16602
- setChecked("");
16603
- } else {
16604
- setChecked(input.valueAsNumber);
16605
- }
16554
+ if (digits) {
16555
+ return fixedValue.toFixed(digits).toString();
16606
16556
  }
16557
+ return fixedValue.toString();
16607
16558
  };
16608
- const changeFormatValue = (e2) => {
16609
- const input = e2.target.value;
16610
- const numReg = /^[0-9]*$/;
16611
- const numValue = input.replace(/[^0-9|.]/gi, "");
16612
- if (formatter) {
16613
- if (!numReg.test(input[0]) && numValue) {
16614
- setChecked(formatter(numValue));
16615
- } else if (!numReg.test(input[0]) && !numValue) {
16616
- setChecked(input);
16617
- } else if (numReg.test(input[0])) {
16618
- if (formatter(numValue) === inputRef.current) {
16619
- setChecked(numValue);
16620
- } else {
16621
- setChecked(formatter(numValue));
16622
- inputRef.current = formatter(numValue);
16623
- }
16624
- }
16559
+ const [inputValue, setInputValue] = React.useState(format2(shadowValue));
16560
+ React.useEffect(() => {
16561
+ if (!focused && !async) {
16562
+ setShadowValue(bound2(Number(shadowValue), Number(min), Number(max)));
16563
+ setInputValue(format2(shadowValue));
16625
16564
  }
16626
- };
16627
- const burFormatValue = (e2) => {
16628
- const input = e2.target.value;
16629
- const numReg = /^[0-9]*$/;
16630
- const numValue = input.replace(/[^0-9|.]/gi, "");
16631
- if (formatter) {
16632
- if (formatter(numValue) === input) {
16633
- emitChange(numValue, e2);
16634
- return;
16635
- }
16636
- if (!numReg.test(input) || !input) {
16637
- setChecked(formatter(""));
16565
+ }, [focused, shadowValue]);
16566
+ React.useEffect(() => {
16567
+ if (async) {
16568
+ setShadowValue(bound2(Number(value), Number(min), Number(max)));
16569
+ setInputValue(format2(value));
16570
+ }
16571
+ }, [value]);
16572
+ const calcNextValue = (current, step2, symbol) => {
16573
+ const dig = digits + 1;
16574
+ return (parseFloat(current || "0") * dig + parseFloat(step2) * dig * symbol) / dig;
16575
+ };
16576
+ const update2 = (negative, e2) => {
16577
+ if (step !== void 0) {
16578
+ const shouldOverBoundary = calcNextValue(
16579
+ shadowValue,
16580
+ step,
16581
+ negative ? -1 : 1
16582
+ );
16583
+ const nextValue = bound2(shouldOverBoundary, Number(min), Number(max));
16584
+ setShadowValue(nextValue);
16585
+ if (negative ? shouldOverBoundary < min : shouldOverBoundary > max) {
16586
+ onOverlimit == null ? void 0 : onOverlimit(e2);
16587
+ } else {
16588
+ onChange == null ? void 0 : onChange(nextValue, e2);
16638
16589
  }
16639
16590
  }
16640
16591
  };
16641
- const focusValue = (e2) => {
16592
+ const handleReduce = (e2) => {
16642
16593
  if (disabled)
16643
16594
  return;
16644
- if (readOnly)
16645
- return;
16646
- onFocus && onFocus(e2);
16595
+ onMinus == null ? void 0 : onMinus(e2);
16596
+ update2(true, e2);
16647
16597
  };
16648
- const burValue = (e2) => {
16598
+ const handlePlus = (e2) => {
16649
16599
  if (disabled)
16650
16600
  return;
16651
- if (readOnly)
16652
- return;
16653
- const input = e2.target;
16654
- let value2 = input.valueAsNumber;
16655
- if (Number.isNaN(value2) && !allowEmpty) {
16656
- value2 = Number(defaultValue);
16601
+ onPlus == null ? void 0 : onPlus(e2);
16602
+ update2(false, e2);
16603
+ };
16604
+ const parseValue = (text) => {
16605
+ if (text === "")
16606
+ return null;
16607
+ if (text === "-")
16608
+ return null;
16609
+ return text;
16610
+ };
16611
+ const handleInputChange = (e2) => {
16612
+ setInputValue(e2.target.value);
16613
+ const valueStr = parseValue(e2.target.value);
16614
+ if (valueStr === null) {
16615
+ if (allowEmpty) {
16616
+ setShadowValue(null);
16617
+ } else {
16618
+ setShadowValue(defaultValue);
16619
+ }
16620
+ } else {
16621
+ setShadowValue(valueStr);
16657
16622
  }
16658
- if (value2 < Number(min)) {
16659
- value2 = Number(min);
16660
- } else if (value2 > Number(max)) {
16661
- value2 = Number(max);
16623
+ if (!async) {
16624
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
16662
16625
  }
16663
- emitChange(value2, e2);
16626
+ };
16627
+ const handleFocus = (e2) => {
16628
+ setFocused(true);
16629
+ setInputValue(
16630
+ shadowValue !== void 0 && shadowValue !== null ? bound2(Number(shadowValue), Number(min), Number(max)).toString() : ""
16631
+ );
16632
+ onFocus && onFocus(e2);
16633
+ };
16634
+ const handleBlur = (e2) => {
16635
+ setFocused(false);
16664
16636
  onBlur && onBlur(e2);
16637
+ if (async) {
16638
+ const valueStr = parseValue(e2.target.value);
16639
+ onChange == null ? void 0 : onChange(parseFloat(valueStr || "0").toFixed(digits), e2);
16640
+ }
16665
16641
  };
16666
- return /* @__PURE__ */ React.createElement("div", { className: classes, style: styles, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
16642
+ return /* @__PURE__ */ React.createElement("div", { className: classes, style, ...restProps }, /* @__PURE__ */ React.createElement("div", { className: "nut-input-minus" }, /* @__PURE__ */ React.createElement(
16667
16643
  o,
16668
16644
  {
16669
- className: iconMinusClasses,
16670
- onClick: (e2) => reduceNumber(e2)
16645
+ className: classNames("nut-inputnumber-icon icon-minus", {
16646
+ [`${classPrefix$g}-icon-disabled`]: shadowValue === min || disabled
16647
+ }),
16648
+ onClick: handleReduce
16671
16649
  }
16672
- )), /* @__PURE__ */ React.createElement(React.Fragment, null, formatter ? /* @__PURE__ */ React.createElement(
16650
+ )), /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(
16673
16651
  "input",
16674
16652
  {
16675
- type: "text",
16676
- min,
16677
- max,
16653
+ ref: inputRef,
16654
+ inputMode: "decimal",
16678
16655
  disabled,
16679
16656
  readOnly,
16680
- value: _checked,
16681
- onInput: changeFormatValue,
16682
- onBlur: burFormatValue,
16683
- onFocus: focusValue
16657
+ value: inputValue,
16658
+ onInput: handleInputChange,
16659
+ onBlur: handleBlur,
16660
+ onFocus: handleFocus
16684
16661
  }
16685
- ) : /* @__PURE__ */ React.createElement(
16686
- "input",
16662
+ )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(
16663
+ l$2,
16687
16664
  {
16688
- type: "number",
16689
- min,
16690
- max,
16691
- disabled,
16692
- readOnly,
16693
- value: _checked,
16694
- onInput: changeValue,
16695
- onBlur: burValue,
16696
- onFocus: focusValue
16665
+ className: classNames("nut-inputnumber-icon icon-plus", {
16666
+ [`${classPrefix$g}-icon-disabled`]: shadowValue === max || disabled
16667
+ }),
16668
+ onClick: handlePlus
16697
16669
  }
16698
- )), /* @__PURE__ */ React.createElement("div", { className: "nut-input-add" }, /* @__PURE__ */ React.createElement(l$2, { className: iconAddClasses, onClick: (e2) => addNumber(e2) })));
16670
+ )));
16699
16671
  };
16700
16672
  InputNumber.defaultProps = defaultProps$U;
16701
16673
  InputNumber.displayName = "NutInputNumber";
@@ -18247,7 +18219,7 @@ Please add \`${key}Action\` when creating your handler.`);
18247
18219
  },
18248
18220
  /* @__PURE__ */ React.createElement("div", { className: classNames(classPrefix2, className), style }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-title` }, title || locale.shortpassword.title), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-description` }, description || locale.shortpassword.description), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input`, onClick: onFocus }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-site` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake` }, [...new Array(comLen).keys()].map((item, index) => {
18249
18221
  return /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li`, key: index }, inputValue.length > index && /* @__PURE__ */ React.createElement(React.Fragment, null, plain ? inputValue[index] : /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-input-fake-li-icon` })));
18250
- }))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(s, { width: 11, height: 11, style: { marginRight: "3px" } }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
18222
+ }))), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-error` }, error), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-message-forget`, onClick: onTips }, tips || /* @__PURE__ */ React.createElement(React.Fragment, null, /* @__PURE__ */ React.createElement(s, { width: 11, height: 11 }), locale.shortpassword.tips))), !hideFooter && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer` }, /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-cancel`, onClick: onCancel }, locale.cancel), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-footer-sure`, onClick: sure }, locale.confirm)))
18251
18223
  );
18252
18224
  };
18253
18225
  const ShortPassword = React.forwardRef(InternalShortPassword);
@@ -19226,6 +19198,7 @@ Please add \`${key}Action\` when creating your handler.`);
19226
19198
  return /* @__PURE__ */ React.createElement(
19227
19199
  Popup,
19228
19200
  {
19201
+ ...rest,
19229
19202
  round: true,
19230
19203
  visible,
19231
19204
  position: "bottom",
@@ -19236,7 +19209,7 @@ Please add \`${key}Action\` when creating your handler.`);
19236
19209
  onCancel && onCancel();
19237
19210
  }
19238
19211
  },
19239
- /* @__PURE__ */ React.createElement("div", { className: `${className}`, style, ...rest }, options2.length ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-list` }, options2.map((item, index) => {
19212
+ /* @__PURE__ */ React.createElement("div", { className: `${className}`, style }, options2.length ? /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-list` }, options2.map((item, index) => {
19240
19213
  return /* @__PURE__ */ React.createElement(
19241
19214
  "div",
19242
19215
  {
@@ -19402,7 +19375,6 @@ Please add \`${key}Action\` when creating your handler.`);
19402
19375
  update: update2
19403
19376
  };
19404
19377
  };
19405
- const confirm$1 = confirm;
19406
19378
  const Content = (props) => {
19407
19379
  const {
19408
19380
  visible,
@@ -19617,11 +19589,11 @@ Please add \`${key}Action\` when creating your handler.`);
19617
19589
  };
19618
19590
  const Dialog = React.forwardRef(BaseDialog);
19619
19591
  Dialog.confirm = (props) => {
19620
- return confirm$1(props);
19592
+ return confirm(props);
19621
19593
  };
19622
19594
  ["alert"].forEach((type2) => {
19623
19595
  Dialog[type2] = (props) => {
19624
- return confirm$1({
19596
+ return confirm({
19625
19597
  ...props,
19626
19598
  isNotice: false,
19627
19599
  noticeType: type2
@@ -21186,7 +21158,7 @@ Please add \`${key}Action\` when creating your handler.`);
21186
21158
  const classPrefix2 = "nut-skeleton";
21187
21159
  const classes = classNames(classPrefix2, className);
21188
21160
  const avatarClass = classNames({
21189
- avatar: true,
21161
+ [`nut-avatar`]: true,
21190
21162
  [`avatar-${avatarShape}`]: avatarShape
21191
21163
  });
21192
21164
  const repeatLines = (num) => {
@@ -21204,7 +21176,7 @@ Please add \`${key}Action\` when creating your handler.`);
21204
21176
  height: "50px"
21205
21177
  };
21206
21178
  };
21207
- return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement("div", null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated2 && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React.createElement(
21179
+ return /* @__PURE__ */ React.createElement(React.Fragment, null, visible ? /* @__PURE__ */ React.createElement(React.Fragment, null, children) : /* @__PURE__ */ React.createElement("div", { className: classes, ...rest }, animated2 && /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-animation` }), /* @__PURE__ */ React.createElement("div", { className: `${classPrefix2}-content` }, avatar && /* @__PURE__ */ React.createElement(
21208
21180
  Avatar,
21209
21181
  {
21210
21182
  className: avatarClass,