@nutui/nutui-react-taro 3.0.7 → 3.0.9-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 (233) hide show
  1. package/CHANGELOG.md +30 -14
  2. package/dist/cjs/hooks/index.d.ts +12 -0
  3. package/dist/cjs/hooks/index.js +19 -0
  4. package/dist/cjs/hooks/{use-custom-event.js → taro/use-custom-event.js} +1 -1
  5. package/dist/cjs/hooks/{use-lock-scoll-taro.js → taro/use-lock-scoll.js} +1 -1
  6. package/dist/cjs/hooks/use-memo.d.ts +1 -1
  7. package/dist/cjs/hooks/use-memo.js +1 -1
  8. package/dist/cjs/hooks/use-refs.d.ts +1 -1
  9. package/dist/cjs/hooks/use-refs.js +1 -1
  10. package/dist/cjs/hooks/use-uuid.d.ts +1 -1
  11. package/dist/cjs/hooks/use-uuid.js +1 -1
  12. package/dist/cjs/hooks/use-watch.d.ts +2 -2
  13. package/dist/cjs/hooks/use-watch.js +2 -3
  14. package/dist/cjs/packages/address/address.d.ts +1 -1
  15. package/dist/cjs/packages/avatar/avatar.js +6 -6
  16. package/dist/cjs/packages/avatar/style/style.css +4 -0
  17. package/dist/cjs/packages/avatarcropper/avatarcropper.js +1 -1
  18. package/dist/cjs/packages/badge/badge.js +5 -5
  19. package/dist/cjs/packages/barrage/barrage.js +3 -3
  20. package/dist/cjs/packages/button/button.js +3 -3
  21. package/dist/cjs/packages/cascader/cascader.js +2 -1
  22. package/dist/cjs/packages/cell/cell.js +2 -2
  23. package/dist/cjs/packages/col/col.js +3 -3
  24. package/dist/cjs/packages/collapseitem/collapseitem.js +4 -4
  25. package/dist/cjs/packages/configprovider/configprovider.js +2 -2
  26. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  27. package/dist/cjs/packages/countdown/countdown.js +2 -2
  28. package/dist/cjs/packages/dialog/dialog.js +5 -5
  29. package/dist/cjs/packages/dialog/style/dialog.scss +1 -0
  30. package/dist/cjs/packages/dialog/style/style.css +1 -0
  31. package/dist/cjs/packages/dialog/style/style.harmony.css +1 -0
  32. package/dist/cjs/packages/drag/drag.js +5 -5
  33. package/dist/cjs/packages/elevator/elevator.js +4 -4
  34. package/dist/cjs/packages/ellipsis/ellipsis.js +4 -4
  35. package/dist/cjs/packages/griditem/griditem.js +4 -4
  36. package/dist/cjs/packages/hoverbutton/hoverbutton.js +2 -2
  37. package/dist/cjs/packages/hoverbuttonitem/hoverbuttonitem.js +2 -2
  38. package/dist/cjs/packages/image/image.js +12 -11
  39. package/dist/cjs/packages/image/style/image.scss +4 -1
  40. package/dist/cjs/packages/image/style/style.css +4 -0
  41. package/dist/cjs/packages/image/style/style.harmony.css +4 -0
  42. package/dist/cjs/packages/imagepreview/style/style.css +4 -0
  43. package/dist/cjs/packages/indicator/indicator.js +2 -2
  44. package/dist/cjs/packages/infiniteloading/infiniteloading.js +2 -2
  45. package/dist/cjs/packages/lottie/lottiemp.js +3 -3
  46. package/dist/cjs/packages/menuitem/menuitem.js +4 -4
  47. package/dist/cjs/packages/noticebar/noticebar.js +4 -4
  48. package/dist/cjs/packages/notify/notify.js +5 -5
  49. package/dist/cjs/packages/nutui.react.build.d.ts +2 -0
  50. package/dist/cjs/packages/nutui.react.build.js +2 -0
  51. package/dist/cjs/packages/nutui.react.d.ts +2 -0
  52. package/dist/cjs/packages/nutui.react.js +2 -0
  53. package/dist/cjs/packages/overlay/overlay.js +2 -2
  54. package/dist/cjs/packages/pagination/pagination.js +3 -3
  55. package/dist/cjs/packages/picker/picker.js +2 -2
  56. package/dist/cjs/packages/pickerview/pickerroller.js +7 -7
  57. package/dist/cjs/packages/popover/popover.js +15 -15
  58. package/dist/cjs/packages/popup/popup.js +4 -4
  59. package/dist/cjs/packages/price/price.js +2 -2
  60. package/dist/cjs/packages/progress/progress.js +13 -13
  61. package/dist/cjs/packages/pulltorefresh/pulltorefresh.js +4 -4
  62. package/dist/cjs/packages/range/range.js +13 -13
  63. package/dist/cjs/packages/rate/rate.js +4 -4
  64. package/dist/cjs/packages/sidebar/sidebar.js +13 -5
  65. package/dist/cjs/packages/skeleton/skeleton.js +1 -2
  66. package/dist/cjs/packages/sticky/sticky.js +7 -7
  67. package/dist/cjs/packages/swipe/swipe.js +11 -11
  68. package/dist/cjs/packages/swiper/swiper.js +4 -4
  69. package/dist/cjs/packages/switch/switch.js +53 -8
  70. package/dist/cjs/packages/tabs/tabs.js +2 -2
  71. package/dist/cjs/packages/toast/toast.js +3 -3
  72. package/dist/cjs/packages/tour/tour.js +2 -2
  73. package/dist/cjs/packages/trendarrow/trendarrow.js +3 -3
  74. package/dist/cjs/packages/virtuallist/virtuallist.js +1 -1
  75. package/dist/cjs/utils/clamp.d.ts +1 -0
  76. package/dist/cjs/utils/clamp.js +13 -0
  77. package/dist/cjs/utils/event-mocker.d.ts +21 -0
  78. package/dist/cjs/utils/index.d.ts +28 -6
  79. package/dist/cjs/utils/index.js +35 -54
  80. package/dist/cjs/utils/interceptor.js +2 -2
  81. package/dist/cjs/utils/is-function.d.ts +1 -0
  82. package/dist/cjs/utils/is-function.js +14 -0
  83. package/dist/cjs/utils/is-object.d.ts +1 -0
  84. package/dist/cjs/utils/is-object.js +14 -0
  85. package/dist/cjs/utils/is-promise.d.ts +1 -0
  86. package/dist/cjs/utils/is-promise.js +15 -0
  87. package/dist/cjs/utils/lru.d.ts +1 -1
  88. package/dist/cjs/utils/lru.js +1 -1
  89. package/dist/cjs/utils/merge.d.ts +0 -1
  90. package/dist/cjs/utils/merge.js +0 -4
  91. package/dist/cjs/utils/prevent-default.d.ts +1 -0
  92. package/dist/cjs/utils/prevent-default.js +18 -0
  93. package/dist/cjs/utils/raf.d.ts +0 -1
  94. package/dist/cjs/utils/raf.js +3 -6
  95. package/dist/cjs/utils/{add-color-for-harmony.js → taro/add-color-for-harmony.js} +5 -11
  96. package/dist/cjs/{hooks/use-taro-rect.js → utils/taro/get-rect-by-id.js} +3 -3
  97. package/dist/cjs/utils/{get-rect-by-taro.js → taro/get-rect.js} +9 -10
  98. package/dist/cjs/utils/{px-transform.js → taro/px-transform.js} +3 -3
  99. package/dist/cjs/utils/upper-case-first.d.ts +1 -0
  100. package/dist/cjs/utils/upper-case-first.js +17 -0
  101. package/dist/es/hooks/index.d.ts +12 -0
  102. package/dist/es/hooks/index.js +14 -0
  103. package/dist/es/hooks/{use-custom-event.js → taro/use-custom-event.js} +1 -1
  104. package/dist/es/hooks/{use-lock-scoll-taro.js → taro/use-lock-scoll.js} +1 -1
  105. package/dist/es/hooks/use-memo.d.ts +1 -1
  106. package/dist/es/hooks/use-memo.js +1 -1
  107. package/dist/es/hooks/use-refs.d.ts +1 -1
  108. package/dist/es/hooks/use-refs.js +1 -1
  109. package/dist/es/hooks/use-uuid.d.ts +1 -1
  110. package/dist/es/hooks/use-uuid.js +1 -1
  111. package/dist/es/hooks/use-watch.d.ts +2 -2
  112. package/dist/es/hooks/use-watch.js +1 -2
  113. package/dist/es/packages/address/address.d.ts +1 -1
  114. package/dist/es/packages/avatar/avatar.js +2 -2
  115. package/dist/es/packages/avatar/style/style.css +4 -0
  116. package/dist/es/packages/avatarcropper/avatarcropper.js +1 -1
  117. package/dist/es/packages/badge/badge.js +2 -2
  118. package/dist/es/packages/barrage/barrage.js +3 -3
  119. package/dist/es/packages/button/button.js +1 -1
  120. package/dist/es/packages/cascader/cascader.js +2 -1
  121. package/dist/es/packages/cell/cell.js +1 -1
  122. package/dist/es/packages/col/col.js +1 -1
  123. package/dist/es/packages/collapseitem/collapseitem.js +3 -3
  124. package/dist/es/packages/configprovider/configprovider.js +1 -1
  125. package/dist/es/packages/configprovider/types.d.ts +1 -1
  126. package/dist/es/packages/countdown/countdown.js +1 -1
  127. package/dist/es/packages/dialog/dialog.js +3 -3
  128. package/dist/es/packages/dialog/style/dialog.scss +1 -0
  129. package/dist/es/packages/dialog/style/style.css +1 -0
  130. package/dist/es/packages/dialog/style/style.harmony.css +1 -0
  131. package/dist/es/packages/drag/drag.js +4 -4
  132. package/dist/es/packages/elevator/elevator.js +2 -2
  133. package/dist/es/packages/ellipsis/ellipsis.js +4 -4
  134. package/dist/es/packages/griditem/griditem.js +1 -1
  135. package/dist/es/packages/hoverbutton/hoverbutton.js +1 -1
  136. package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +1 -1
  137. package/dist/es/packages/image/image.js +11 -11
  138. package/dist/es/packages/image/style/image.scss +4 -1
  139. package/dist/es/packages/image/style/style.css +4 -0
  140. package/dist/es/packages/image/style/style.harmony.css +4 -0
  141. package/dist/es/packages/imagepreview/style/style.css +4 -0
  142. package/dist/es/packages/indicator/indicator.js +1 -1
  143. package/dist/es/packages/infiniteloading/infiniteloading.js +1 -1
  144. package/dist/es/packages/lottie/lottiemp.js +2 -2
  145. package/dist/es/packages/menuitem/menuitem.js +4 -4
  146. package/dist/es/packages/noticebar/noticebar.js +4 -4
  147. package/dist/es/packages/notify/notify.js +3 -3
  148. package/dist/es/packages/nutui.react.build.d.ts +2 -0
  149. package/dist/es/packages/nutui.react.build.js +2 -0
  150. package/dist/es/packages/overlay/overlay.js +1 -1
  151. package/dist/es/packages/pagination/pagination.js +1 -1
  152. package/dist/es/packages/picker/picker.js +1 -1
  153. package/dist/es/packages/pickerview/pickerroller.js +4 -4
  154. package/dist/es/packages/popover/popover.js +6 -6
  155. package/dist/es/packages/popup/popup.js +2 -2
  156. package/dist/es/packages/price/price.js +1 -1
  157. package/dist/es/packages/progress/progress.js +3 -3
  158. package/dist/es/packages/pulltorefresh/pulltorefresh.js +2 -2
  159. package/dist/es/packages/range/range.js +5 -5
  160. package/dist/es/packages/rate/rate.js +3 -3
  161. package/dist/es/packages/sidebar/sidebar.js +12 -4
  162. package/dist/es/packages/skeleton/skeleton.js +1 -2
  163. package/dist/es/packages/sticky/sticky.js +6 -6
  164. package/dist/es/packages/swipe/swipe.js +9 -9
  165. package/dist/es/packages/swiper/swiper.js +1 -1
  166. package/dist/es/packages/switch/switch.js +53 -8
  167. package/dist/es/packages/tabs/tabs.js +1 -1
  168. package/dist/es/packages/toast/toast.js +2 -2
  169. package/dist/es/packages/tour/tour.js +2 -2
  170. package/dist/es/packages/trendarrow/trendarrow.js +1 -1
  171. package/dist/es/packages/virtuallist/virtuallist.js +1 -1
  172. package/dist/es/utils/clamp.d.ts +1 -0
  173. package/dist/es/utils/clamp.js +3 -0
  174. package/dist/es/utils/event-mocker.d.ts +21 -0
  175. package/dist/es/utils/index.d.ts +28 -6
  176. package/dist/es/utils/index.js +34 -29
  177. package/dist/es/utils/interceptor.js +1 -1
  178. package/dist/es/utils/is-function.d.ts +1 -0
  179. package/dist/es/utils/is-function.js +4 -0
  180. package/dist/es/utils/is-object.d.ts +1 -0
  181. package/dist/es/utils/is-object.js +4 -0
  182. package/dist/es/utils/is-promise.d.ts +1 -0
  183. package/dist/es/utils/is-promise.js +5 -0
  184. package/dist/es/utils/lru.d.ts +1 -1
  185. package/dist/es/utils/lru.js +1 -2
  186. package/dist/es/utils/merge.d.ts +0 -1
  187. package/dist/es/utils/merge.js +0 -1
  188. package/dist/es/utils/prevent-default.d.ts +1 -0
  189. package/dist/es/utils/prevent-default.js +8 -0
  190. package/dist/es/utils/raf.d.ts +0 -1
  191. package/dist/es/utils/raf.js +1 -1
  192. package/dist/es/utils/{add-color-for-harmony.js → taro/add-color-for-harmony.js} +2 -3
  193. package/dist/es/{hooks/use-taro-rect.js → utils/taro/get-rect-by-id.js} +1 -1
  194. package/dist/es/utils/{get-rect-by-taro.js → taro/get-rect.js} +4 -4
  195. package/dist/es/utils/{px-transform.js → taro/px-transform.js} +2 -2
  196. package/dist/es/utils/upper-case-first.d.ts +1 -0
  197. package/dist/es/utils/upper-case-first.js +7 -0
  198. package/dist/nutui.react.umd.js +578 -242
  199. package/dist/style.css +1 -1
  200. package/dist/style.scss +45 -45
  201. package/dist/styles/themes/dark.css +1 -1
  202. package/dist/styles/themes/default.css +1 -1
  203. package/dist/styles/themes/jmapp.css +1 -1
  204. package/dist/styles/themes/jrkf.css +1 -1
  205. package/dist/styles/variables-jmapp.scss +1 -0
  206. package/dist/styles/variables.scss +4 -0
  207. package/package.json +1 -1
  208. package/dist/cjs/hooks/use-custom-event.d.ts +0 -7
  209. package/dist/cjs/hooks/use-lock-scoll-taro.d.ts +0 -1
  210. package/dist/cjs/hooks/use-taro-rect.d.ts +0 -1
  211. package/dist/cjs/utils/add-color-for-harmony.d.ts +0 -9
  212. package/dist/cjs/utils/get-rect-by-taro.d.ts +0 -12
  213. package/dist/cjs/utils/get-system-info.d.ts +0 -19
  214. package/dist/cjs/utils/platform-taro.d.ts +0 -3
  215. package/dist/cjs/utils/px-transform.d.ts +0 -1
  216. package/dist/es/hooks/use-custom-event.d.ts +0 -7
  217. package/dist/es/hooks/use-lock-scoll-taro.d.ts +0 -1
  218. package/dist/es/hooks/use-taro-rect.d.ts +0 -1
  219. package/dist/es/utils/add-color-for-harmony.d.ts +0 -9
  220. package/dist/es/utils/get-rect-by-taro.d.ts +0 -12
  221. package/dist/es/utils/get-system-info.d.ts +0 -19
  222. package/dist/es/utils/platform-taro.d.ts +0 -3
  223. package/dist/es/utils/px-transform.d.ts +0 -1
  224. /package/dist/cjs/utils/{test/event.js → event-mocker.js} +0 -0
  225. /package/dist/cjs/{hooks/use-client-rect.d.ts → utils/get-rect.d.ts} +0 -0
  226. /package/dist/cjs/{hooks/use-client-rect.js → utils/get-rect.js} +0 -0
  227. /package/dist/cjs/utils/{get-system-info.js → taro/get-system-info.js} +0 -0
  228. /package/dist/cjs/utils/{platform-taro.js → taro/platform.js} +0 -0
  229. /package/dist/es/utils/{test/event.js → event-mocker.js} +0 -0
  230. /package/dist/es/{hooks/use-client-rect.d.ts → utils/get-rect.d.ts} +0 -0
  231. /package/dist/es/{hooks/use-client-rect.js → utils/get-rect.js} +0 -0
  232. /package/dist/es/utils/{get-system-info.js → taro/get-system-info.js} +0 -0
  233. /package/dist/es/utils/{platform-taro.js → taro/platform.js} +0 -0
@@ -19,6 +19,7 @@
19
19
  return Object.freeze(n);
20
20
  }
21
21
  const React__namespace = /* @__PURE__ */ _interopNamespaceDefault(React);
22
+ const ReactDOM__namespace = /* @__PURE__ */ _interopNamespaceDefault(ReactDOM);
22
23
  function _define_property(obj, key2, value2) {
23
24
  if (key2 in obj) {
24
25
  Object.defineProperty(obj, key2, { value: value2, enumerable: true, configurable: true, writable: true });
@@ -186,7 +187,7 @@
186
187
  const handleClick = (e) => {
187
188
  onClick && onClick(e);
188
189
  };
189
- const pxCheck = (value2) => {
190
+ const pxCheck2 = (value2) => {
190
191
  if (value2 === "")
191
192
  return "";
192
193
  return isNaN(Number(value2)) ? String(value2) : value2 + "px";
@@ -196,8 +197,8 @@
196
197
  return `${fallback ? globalConfig.fontClassName : ""} ${classPrefix2} ${classPrefix2}-${iconName} ${className}`;
197
198
  };
198
199
  const props2Style = {};
199
- const checkedWidth = pxCheck(width2 || size || "");
200
- const checkedHeight = pxCheck(height2 || size || "");
200
+ const checkedWidth = pxCheck2(width2 || size || "");
201
+ const checkedHeight = pxCheck2(height2 || size || "");
201
202
  if (checkedWidth) {
202
203
  props2Style["width"] = checkedWidth;
203
204
  }
@@ -255,7 +256,7 @@
255
256
  const handleClick = (e) => {
256
257
  onClick && onClick(e);
257
258
  };
258
- const pxCheck = (value2) => {
259
+ const pxCheck2 = (value2) => {
259
260
  if (value2 === "")
260
261
  return 0;
261
262
  return parseInt(value2);
@@ -265,8 +266,8 @@
265
266
  return `${fallback ? globalConfig.fontClassName : ""} ${classPrefix2} ${classPrefix2}-${iconName} ${className}`;
266
267
  };
267
268
  const props2Style = {};
268
- const checkedWidth = pxCheck(width2 || size || "");
269
- const checkedHeight = pxCheck(height2 || size || "");
269
+ const checkedWidth = pxCheck2(width2 || size || "");
270
+ const checkedHeight = pxCheck2(height2 || size || "");
270
271
  if (checkedWidth) {
271
272
  props2Style["width"] = checkedWidth;
272
273
  }
@@ -449,6 +450,11 @@
449
450
  "web"
450
451
  ].includes(Taro.getEnv().toLowerCase());
451
452
  };
453
+ var miniprogram = function() {
454
+ return [
455
+ "mini"
456
+ ].includes(Taro.getEnv().toLowerCase());
457
+ };
452
458
  var prefixCls$2 = "nut-button";
453
459
  var defaultProps$1A = _object_spread_props(_object_spread({}, ComponentDefaults), {
454
460
  color: "",
@@ -1175,7 +1181,7 @@
1175
1181
  };
1176
1182
  ConfigProvider.displayName = "NutConfigProvider";
1177
1183
  function pxTransform(value2, radix) {
1178
- if (harmony()) return Taro.pxTransform(value2, 375);
1184
+ if (harmony()) return Taro.pxTransform(value2, radix || 375);
1179
1185
  return "".concat(value2, "px");
1180
1186
  }
1181
1187
  var defaultProps$1y = _object_spread_props(_object_spread({}, ComponentDefaults), {
@@ -1301,7 +1307,7 @@
1301
1307
  ]);
1302
1308
  var _useState = _sliced_to_array(React.useState(true), 2), innerLoading = _useState[0], setInnerLoading = _useState[1];
1303
1309
  var _useState1 = _sliced_to_array(React.useState(false), 2), isError = _useState1[0], setIsError = _useState1[1];
1304
- var pxCheck = function(value2) {
1310
+ var pxCheck2 = function(value2) {
1305
1311
  return Number.isNaN(Number(value2)) ? String(value2) : pxTransform(+value2);
1306
1312
  };
1307
1313
  var handleLoad = function(e) {
@@ -1316,17 +1322,14 @@
1316
1322
  onError && onError(e);
1317
1323
  }
1318
1324
  };
1319
- var containerStyle = {
1320
- // eslint-disable-next-line no-nested-ternary
1321
- height: height2 ? pxCheck(height2) : Taro.getEnv() === "WEB" ? "" : "100%",
1322
- // eslint-disable-next-line no-nested-ternary
1323
- width: width2 ? pxCheck(width2) : Taro.getEnv() === "WEB" ? "" : "100%",
1324
- overflow: radius !== void 0 && radius !== null ? "hidden" : "",
1325
- borderRadius: (
1326
- // eslint-disable-next-line no-nested-ternary
1327
- radius !== void 0 && radius != null ? pxCheck(radius) : ""
1328
- )
1329
- };
1325
+ var containerStyle = _object_spread({}, height2 ? {
1326
+ height: pxCheck2(height2)
1327
+ } : {}, width2 ? {
1328
+ width: pxCheck2(width2)
1329
+ } : {}, radius !== void 0 && radius !== null ? {
1330
+ overflow: "hidden",
1331
+ borderRadius: pxCheck2(radius)
1332
+ } : {});
1330
1333
  var imgStyle = _object_spread_props(_object_spread({}, style), {
1331
1334
  width: width2,
1332
1335
  height: height2
@@ -1367,7 +1370,7 @@
1367
1370
  innerLoading
1368
1371
  ]);
1369
1372
  return /* @__PURE__ */ React.createElement(components.View, {
1370
- className: classNames(classPrefix2, className),
1373
+ className: classNames(classPrefix2, _define_property({}, "".concat(classPrefix2, "-basic"), Taro.getEnv() !== "WEB"), className),
1371
1374
  style: containerStyle
1372
1375
  }, /* @__PURE__ */ React.createElement(components.Image, _object_spread_props(_object_spread({}, rest), {
1373
1376
  className: "".concat(classPrefix2, "-default ").concat(className ? "".concat(className, "-image") : ""),
@@ -2591,7 +2594,7 @@
2591
2594
  setTimeout(this.nextCallback, timeout);
2592
2595
  }
2593
2596
  };
2594
- _proto.render = function render() {
2597
+ _proto.render = function render2() {
2595
2598
  var status = this.state.status;
2596
2599
  if (status === UNMOUNTED) {
2597
2600
  return null;
@@ -2932,7 +2935,7 @@
2932
2935
  removeClass(node, doneClassName);
2933
2936
  }
2934
2937
  };
2935
- _proto.render = function render() {
2938
+ _proto.render = function render2() {
2936
2939
  var _this$props = this.props;
2937
2940
  _this$props.classNames;
2938
2941
  var props = _objectWithoutPropertiesLoose$1(_this$props, ["classNames"]);
@@ -3194,12 +3197,27 @@
3194
3197
  }
3195
3198
  return root2;
3196
3199
  }
3197
- var passiveSupported = false;
3200
+ function getAllScrollableParents(element) {
3201
+ var scrollableParents = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
3202
+ if (!element) {
3203
+ return scrollableParents;
3204
+ }
3205
+ var isScrollable = element.scrollHeight > element.clientHeight || element.scrollWidth > element.clientWidth;
3206
+ if (isScrollable) {
3207
+ if (element.nodeName === "HTML") {
3208
+ scrollableParents.push(document);
3209
+ } else {
3210
+ scrollableParents.push(element);
3211
+ }
3212
+ }
3213
+ return getAllScrollableParents(element.parentElement, scrollableParents);
3214
+ }
3215
+ exports.passiveSupported = false;
3198
3216
  if (canUseDom) {
3199
3217
  try {
3200
3218
  var opts = Object.defineProperty({}, "passive", {
3201
3219
  get: function get() {
3202
- passiveSupported = true;
3220
+ exports.passiveSupported = true;
3203
3221
  }
3204
3222
  });
3205
3223
  window.addEventListener("test-passive-supported", null, opts);
@@ -3248,7 +3266,7 @@
3248
3266
  };
3249
3267
  var lock = function() {
3250
3268
  document.addEventListener("touchstart", touch.start);
3251
- document.addEventListener("touchmove", onTouchMove, passiveSupported ? {
3269
+ document.addEventListener("touchmove", onTouchMove, exports.passiveSupported ? {
3252
3270
  passive: false
3253
3271
  } : false);
3254
3272
  if (!totalLockCount) {
@@ -3754,6 +3772,9 @@
3754
3772
  var getWindowInfo = function() {
3755
3773
  return Taro.canIUse("getWindowInfo") ? Taro.getWindowInfo() : Taro.getSystemInfoSync();
3756
3774
  };
3775
+ var getAppBaseInfo = function() {
3776
+ return Taro.canIUse("getAppBaseInfo") ? Taro.getAppBaseInfo() : Taro.getSystemInfoSync();
3777
+ };
3757
3778
  function useWatch$1(dep, callback) {
3758
3779
  var config2 = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
3759
3780
  immediate: false
@@ -3844,7 +3865,7 @@
3844
3865
  ]);
3845
3866
  return MiniLru2;
3846
3867
  }();
3847
- var inBrowser$1 = typeof document !== "undefined" && !!document.scripts;
3868
+ var inBrowser = typeof document !== "undefined" && !!document.scripts;
3848
3869
  function isWindow(val2) {
3849
3870
  return val2 === window;
3850
3871
  }
@@ -3886,14 +3907,14 @@
3886
3907
  height: height2
3887
3908
  };
3888
3909
  }
3889
- var getRectByTaro = /* @__PURE__ */ function() {
3910
+ var getRectInMultiPlatform = /* @__PURE__ */ function() {
3890
3911
  var _ref = _async_to_generator(function(element) {
3891
3912
  var harmonyId;
3892
3913
  var _arguments = arguments;
3893
3914
  return __generator(this, function(_state) {
3894
3915
  harmonyId = _arguments.length > 1 && _arguments[1] !== void 0 ? _arguments[1] : "";
3895
3916
  if (element) {
3896
- if (inBrowser$1) {
3917
+ if (inBrowser) {
3897
3918
  return [
3898
3919
  2,
3899
3920
  Promise.resolve(getRect(element))
@@ -3922,7 +3943,7 @@
3922
3943
  ];
3923
3944
  });
3924
3945
  });
3925
- return function getRectByTaro2(element) {
3946
+ return function getRectInMultiPlatform2(element) {
3926
3947
  return _ref.apply(this, arguments);
3927
3948
  };
3928
3949
  }();
@@ -4002,13 +4023,13 @@
4002
4023
  case 0:
4003
4024
  return [
4004
4025
  4,
4005
- getRectByTaro(rootRef.current)
4026
+ getRectInMultiPlatform(rootRef.current)
4006
4027
  ];
4007
4028
  case 1:
4008
4029
  curRootRect = _state.sent();
4009
4030
  return [
4010
4031
  4,
4011
- getRectByTaro(stickyRef.current)
4032
+ getRectInMultiPlatform(stickyRef.current)
4012
4033
  ];
4013
4034
  case 2:
4014
4035
  stickyRect = _state.sent();
@@ -4032,7 +4053,7 @@
4032
4053
  ];
4033
4054
  return [
4034
4055
  4,
4035
- getRectByTaro(container.current)
4056
+ getRectInMultiPlatform(container.current)
4036
4057
  ];
4037
4058
  case 3:
4038
4059
  containerRect = _state.sent();
@@ -4748,7 +4769,6 @@
4748
4769
  setState
4749
4770
  ];
4750
4771
  }
4751
- var inBrowser = typeof window !== "undefined";
4752
4772
  function requestAniFrame() {
4753
4773
  if (inBrowser) {
4754
4774
  var _window = window;
@@ -4760,6 +4780,14 @@
4760
4780
  setTimeout(callback, 1e3 / 60);
4761
4781
  };
4762
4782
  }
4783
+ function cancelRaf(id) {
4784
+ if (inBrowser) {
4785
+ var _window = window;
4786
+ (_window.cancelAnimationFrame || _window.webkitCancelAnimationFrame)(id);
4787
+ } else {
4788
+ clearTimeout(id);
4789
+ }
4790
+ }
4763
4791
  const requestAniFrame$1 = requestAniFrame();
4764
4792
  function mergeProps() {
4765
4793
  for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
@@ -4777,6 +4805,17 @@
4777
4805
  });
4778
4806
  return ret;
4779
4807
  }
4808
+ function mergeProp(defaultProp) {
4809
+ for (var _len = arguments.length, propList = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4810
+ propList[_key - 1] = arguments[_key];
4811
+ }
4812
+ for (var i2 = propList.length - 1; i2 >= 0; i2 -= 1) {
4813
+ if (propList[i2] !== void 0) {
4814
+ return propList[i2];
4815
+ }
4816
+ }
4817
+ return defaultProp;
4818
+ }
4780
4819
  var defaultProps$1i = {
4781
4820
  title: "",
4782
4821
  value: "",
@@ -4865,11 +4904,19 @@
4865
4904
  var titleRectRef = React.useRef([]);
4866
4905
  var _useState = _sliced_to_array(React.useState(0), 2), scrollTop = _useState[0], setScrollTop = _useState[1];
4867
4906
  var scrollDirection = function(to) {
4907
+ if (sidebarDuration === 0) {
4908
+ setScrollTop(to);
4909
+ return;
4910
+ }
4911
+ var from = scrollTop;
4912
+ var frames2 = Math.round(sidebarDuration / 16);
4868
4913
  var count = 0;
4869
- var frames2 = sidebarDuration === 0 ? 1 : Math.round(sidebarDuration / 16);
4870
4914
  function animate() {
4871
- setScrollTop(to);
4872
- if (++count < frames2) {
4915
+ var progress = count / frames2;
4916
+ var current = from + (to - from) * progress;
4917
+ setScrollTop(current);
4918
+ if (count < frames2) {
4919
+ count++;
4873
4920
  requestAniFrame$1(animate);
4874
4921
  }
4875
4922
  }
@@ -5696,6 +5743,7 @@
5696
5743
  });
5697
5744
  next.push({
5698
5745
  selected: val2,
5746
+ selectedText: opt === null || opt === void 0 ? void 0 : opt.text,
5699
5747
  pane: currentOptions
5700
5748
  });
5701
5749
  pathNodes.current[index2] = opt;
@@ -5985,7 +6033,7 @@
5985
6033
  }
5986
6034
  }, levels.map(function(pane, index2) {
5987
6035
  return /* @__PURE__ */ React.createElement(Tabs.TabPane, {
5988
- title: pane.selected || locale.select,
6036
+ title: pane.selectedText || locale.select,
5989
6037
  key: index2
5990
6038
  }, /* @__PURE__ */ React.createElement(components.View, {
5991
6039
  className: classPane
@@ -6388,6 +6436,9 @@
6388
6436
  };
6389
6437
  var getDaysStatus = function(type2, year, month) {
6390
6438
  var days = Utils.getMonthDays("".concat(year), "".concat(month));
6439
+ if (type2 === "prev" && days >= 7) {
6440
+ days -= 7;
6441
+ }
6391
6442
  return Array.from(Array(days), function(v, k) {
6392
6443
  return {
6393
6444
  day: k + 1,
@@ -6406,7 +6457,7 @@
6406
6457
  }
6407
6458
  var days = Utils.getMonthPreDay(+year, +month);
6408
6459
  days -= firstDayOfWeek;
6409
- if (days >= 7) {
6460
+ if (type2 === "prev" && days >= 7) {
6410
6461
  days -= 7;
6411
6462
  }
6412
6463
  var preDates = Utils.getMonthDays("".concat(preYear), "".concat(preMonth));
@@ -7905,6 +7956,142 @@
7905
7956
  CheckboxGroup.displayName = "NutCheckboxGroup";
7906
7957
  var InnerCheckbox = Checkbox;
7907
7958
  InnerCheckbox.Group = CheckboxGroup;
7959
+ function addColorForHarmony(maybeElement, color) {
7960
+ if (React.isValidElement(maybeElement) && harmony()) {
7961
+ return React.cloneElement(maybeElement, {
7962
+ color
7963
+ });
7964
+ }
7965
+ return maybeElement;
7966
+ }
7967
+ function bound(position2, min, max) {
7968
+ var ret = position2;
7969
+ if (min !== void 0) {
7970
+ ret = Math.max(position2, min);
7971
+ }
7972
+ if (max !== void 0) {
7973
+ ret = Math.min(ret, max);
7974
+ }
7975
+ return ret;
7976
+ }
7977
+ var UPPERCASE = RegExp("[\\p{Lu}]", "u");
7978
+ var LOWERCASE = RegExp("[\\p{Ll}]", "u");
7979
+ var LEADING_CAPITAL = RegExp("^[\\p{Lu}](?![\\p{Lu}])", "gu");
7980
+ var IDENTIFIER = RegExp("([\\p{Alpha}\\p{N}_]|$)", "u");
7981
+ var SEPARATORS = /[_.\- ]+/;
7982
+ var LEADING_SEPARATORS = new RegExp("^".concat(SEPARATORS.source));
7983
+ var SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, "gu");
7984
+ var NUMBERS_AND_IDENTIFIER = new RegExp("\\d+".concat(IDENTIFIER.source), "gu");
7985
+ var preserveCamelCase = function(string2, toLowerCase, toUpperCase) {
7986
+ var isLastCharLower = false;
7987
+ var isLastCharUpper = false;
7988
+ var isLastLastCharUpper = false;
7989
+ for (var index2 = 0; index2 < string2.length; index2++) {
7990
+ var character = string2[index2];
7991
+ if (isLastCharLower && UPPERCASE.test(character)) {
7992
+ string2 = "".concat(string2.slice(0, index2), "-").concat(string2.slice(index2));
7993
+ isLastCharLower = false;
7994
+ isLastLastCharUpper = isLastCharUpper;
7995
+ isLastCharUpper = true;
7996
+ index2++;
7997
+ } else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character)) {
7998
+ string2 = "".concat(string2.slice(0, index2 - 1), "-").concat(string2.slice(index2 - 1));
7999
+ isLastLastCharUpper = isLastCharUpper;
8000
+ isLastCharUpper = false;
8001
+ isLastCharLower = true;
8002
+ } else {
8003
+ isLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;
8004
+ isLastLastCharUpper = isLastCharUpper;
8005
+ isLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;
8006
+ }
8007
+ }
8008
+ return string2;
8009
+ };
8010
+ var preserveConsecutiveUppercase = function(input, toLowerCase) {
8011
+ LEADING_CAPITAL.lastIndex = 0;
8012
+ return input.replace(LEADING_CAPITAL, function(m1) {
8013
+ return toLowerCase(m1);
8014
+ });
8015
+ };
8016
+ var postProcess = function(input, toUpperCase) {
8017
+ SEPARATORS_AND_IDENTIFIER.lastIndex = 0;
8018
+ NUMBERS_AND_IDENTIFIER.lastIndex = 0;
8019
+ return input.replace(SEPARATORS_AND_IDENTIFIER, function(_, identifier) {
8020
+ return toUpperCase(identifier);
8021
+ }).replace(NUMBERS_AND_IDENTIFIER, function(m) {
8022
+ return toUpperCase(m);
8023
+ });
8024
+ };
8025
+ var camelCase = function(input, options) {
8026
+ if (!(typeof input === "string" || Array.isArray(input))) {
8027
+ throw new TypeError("Expected the input to be `string | string[]`");
8028
+ }
8029
+ options = _object_spread({
8030
+ pascalCase: false,
8031
+ preserveConsecutiveUppercase: false
8032
+ }, options);
8033
+ if (Array.isArray(input)) {
8034
+ input = input.map(function(x) {
8035
+ return x.trim();
8036
+ }).filter(function(x) {
8037
+ return x.length;
8038
+ }).join("-");
8039
+ } else {
8040
+ input = input.trim();
8041
+ }
8042
+ if (input.length === 0) {
8043
+ return "";
8044
+ }
8045
+ var toLowerCase = options.locale === false ? function(string2) {
8046
+ return string2.toLowerCase();
8047
+ } : function(string2) {
8048
+ return string2.toLocaleLowerCase(options.locale);
8049
+ };
8050
+ var toUpperCase = options.locale === false ? function(string2) {
8051
+ return string2.toUpperCase();
8052
+ } : function(string2) {
8053
+ return string2.toLocaleUpperCase(options.locale);
8054
+ };
8055
+ if (input.length === 1) {
8056
+ if (SEPARATORS.test(input)) {
8057
+ return "";
8058
+ }
8059
+ return options.pascalCase ? toUpperCase(input) : toLowerCase(input);
8060
+ }
8061
+ var hasUpperCase = input !== toLowerCase(input);
8062
+ if (hasUpperCase) {
8063
+ input = preserveCamelCase(input, toLowerCase, toUpperCase);
8064
+ }
8065
+ input = input.replace(LEADING_SEPARATORS, "");
8066
+ input = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);
8067
+ if (options.pascalCase) {
8068
+ input = toUpperCase(input.charAt(0)) + input.slice(1);
8069
+ }
8070
+ return postProcess(input, toUpperCase);
8071
+ };
8072
+ var clamp = function(num, min, max) {
8073
+ return Math.min(Math.max(num, min), max);
8074
+ };
8075
+ var getRectById = function(id) {
8076
+ return new Promise(function(resolve, reject) {
8077
+ if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
8078
+ var t = document ? document.querySelector("#".concat(id)) : "";
8079
+ if (t) {
8080
+ resolve(t === null || t === void 0 ? void 0 : t.getBoundingClientRect());
8081
+ }
8082
+ reject();
8083
+ } else {
8084
+ var query = Taro.createSelectorQuery();
8085
+ query.select("#".concat(id)).boundingClientRect().exec(function(rect) {
8086
+ if (rect[0]) {
8087
+ resolve(rect[0]);
8088
+ } else {
8089
+ reject();
8090
+ }
8091
+ });
8092
+ }
8093
+ });
8094
+ };
7908
8095
  var isObject = function(val2) {
7909
8096
  return val2 !== null && (typeof val2 === "undefined" ? "undefined" : _type_of(val2)) === "object";
7910
8097
  };
@@ -7914,8 +8101,110 @@
7914
8101
  var isPromise = function(val2) {
7915
8102
  return isObject(val2) && isFunction(val2.then) && isFunction(val2.catch);
7916
8103
  };
7917
- var clamp = function(num, min, max) {
7918
- return Math.min(Math.max(num, min), max);
8104
+ var funcInterceptor = function(interceptor, param) {
8105
+ var _param_args = param.args, args = _param_args === void 0 ? [] : _param_args, done = param.done, canceled = param.canceled;
8106
+ if (interceptor) {
8107
+ var returnVal = interceptor.apply(null, args);
8108
+ if (isPromise(returnVal)) {
8109
+ returnVal.then(function(value2) {
8110
+ if (value2) {
8111
+ done(value2);
8112
+ } else if (canceled) {
8113
+ canceled();
8114
+ }
8115
+ }).catch(function() {
8116
+ });
8117
+ } else if (returnVal) {
8118
+ done();
8119
+ } else if (canceled) {
8120
+ canceled();
8121
+ }
8122
+ } else {
8123
+ done();
8124
+ }
8125
+ };
8126
+ var isDate = function(val2) {
8127
+ return Object.prototype.toString.call(val2) === "[object Date]" && !Number.isNaN(val2.getTime());
8128
+ };
8129
+ function isForwardRefComponent(component) {
8130
+ return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
8131
+ React.forwardRef(
8132
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
8133
+ // @ts-ignore
8134
+ function() {
8135
+ }
8136
+ ).$$typeof === component.type.$$typeof;
8137
+ }
8138
+ function main() {
8139
+ for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
8140
+ items[_key] = arguments[_key];
8141
+ }
8142
+ return merge.apply(void 0, _to_consumable_array(items));
8143
+ }
8144
+ main.clone = clone;
8145
+ main.isPlainObject = isPlainObject;
8146
+ main.recursive = recursive;
8147
+ function merge() {
8148
+ for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
8149
+ items[_key] = arguments[_key];
8150
+ }
8151
+ return _merge(items[0] === true, false, items);
8152
+ }
8153
+ function recursive() {
8154
+ for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
8155
+ items[_key] = arguments[_key];
8156
+ }
8157
+ return _merge(items[0] === true, true, items);
8158
+ }
8159
+ function clone(input) {
8160
+ if (Array.isArray(input)) {
8161
+ var output = [];
8162
+ for (var index2 = 0; index2 < input.length; ++index2) output.push(clone(input[index2]));
8163
+ return output;
8164
+ }
8165
+ if (isPlainObject(input)) {
8166
+ var output1 = {};
8167
+ for (var index1 in input) output1[index1] = clone(input[index1]);
8168
+ return output1;
8169
+ }
8170
+ return input;
8171
+ }
8172
+ function isPlainObject(input) {
8173
+ if (input === null || (typeof input === "undefined" ? "undefined" : _type_of(input)) !== "object") return false;
8174
+ if (Object.getPrototypeOf(input) === null) return true;
8175
+ var ref = input;
8176
+ while (Object.getPrototypeOf(ref) !== null) ref = Object.getPrototypeOf(ref);
8177
+ return Object.getPrototypeOf(input) === ref;
8178
+ }
8179
+ function _recursiveMerge(base, extend) {
8180
+ if (!isPlainObject(base) || !isPlainObject(extend)) return extend;
8181
+ for (var key2 in extend) {
8182
+ if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") continue;
8183
+ base[key2] = isPlainObject(base[key2]) && isPlainObject(extend[key2]) ? _recursiveMerge(base[key2], extend[key2]) : extend[key2];
8184
+ }
8185
+ return base;
8186
+ }
8187
+ function _merge(isClone, isRecursive, items) {
8188
+ var result;
8189
+ if (isClone || !isPlainObject(result = items.shift())) result = {};
8190
+ for (var index2 = 0; index2 < items.length; ++index2) {
8191
+ var item = items[index2];
8192
+ if (!isPlainObject(item)) continue;
8193
+ for (var key2 in item) {
8194
+ if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") continue;
8195
+ var value2 = isClone ? clone(item[key2]) : item[key2];
8196
+ result[key2] = isRecursive ? _recursiveMerge(result[key2], value2) : value2;
8197
+ }
8198
+ }
8199
+ return result;
8200
+ }
8201
+ var padZero = function(num) {
8202
+ var targetLength = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
8203
+ var str = "".concat(num);
8204
+ while (str.length < targetLength) {
8205
+ str = "0".concat(str);
8206
+ }
8207
+ return str;
7919
8208
  };
7920
8209
  function preventDefault$1(event, isStopPropagation) {
7921
8210
  if (typeof event.cancelable !== "boolean" || event.cancelable) {
@@ -7925,6 +8214,100 @@
7925
8214
  event.stopPropagation();
7926
8215
  }
7927
8216
  }
8217
+ var pxCheck = function(value2) {
8218
+ return parseFloat(value2.toString());
8219
+ };
8220
+ var fullClone = _object_spread({}, ReactDOM__namespace);
8221
+ var version = fullClone.version, reactRender = fullClone.render, unmountComponentAtNode = fullClone.unmountComponentAtNode;
8222
+ var createRoot;
8223
+ try {
8224
+ var mainVersion = Number((version || "").split(".")[0]);
8225
+ if (mainVersion >= 18 && fullClone.createRoot) {
8226
+ createRoot = fullClone.createRoot;
8227
+ }
8228
+ } catch (e) {
8229
+ }
8230
+ function toggleWarning(skip) {
8231
+ var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = fullClone.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
8232
+ if (__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED && (typeof __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED === "undefined" ? "undefined" : _type_of(__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)) === "object") {
8233
+ __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.usingClientEntryPoint = skip;
8234
+ }
8235
+ }
8236
+ var MARK = "__nutui_react_root__";
8237
+ function legacyRender(node, container) {
8238
+ reactRender(node, container);
8239
+ }
8240
+ function concurrentRender(node, container) {
8241
+ toggleWarning(true);
8242
+ var root2 = container[MARK] || createRoot(container);
8243
+ toggleWarning(false);
8244
+ root2.render(node);
8245
+ container[MARK] = root2;
8246
+ }
8247
+ function render(node, container) {
8248
+ if (createRoot) {
8249
+ concurrentRender(node, container);
8250
+ return;
8251
+ }
8252
+ legacyRender(node, container);
8253
+ }
8254
+ function legacyUnmount(container) {
8255
+ return unmountComponentAtNode(container);
8256
+ }
8257
+ function concurrentUnmount(container) {
8258
+ return _concurrentUnmount.apply(this, arguments);
8259
+ }
8260
+ function _concurrentUnmount() {
8261
+ _concurrentUnmount = _async_to_generator(function(container) {
8262
+ return __generator(this, function(_state) {
8263
+ return [
8264
+ 2,
8265
+ Promise.resolve().then(function() {
8266
+ var _container_MARK;
8267
+ (_container_MARK = container[MARK]) === null || _container_MARK === void 0 ? void 0 : _container_MARK.unmount();
8268
+ delete container[MARK];
8269
+ })
8270
+ ];
8271
+ });
8272
+ });
8273
+ return _concurrentUnmount.apply(this, arguments);
8274
+ }
8275
+ function unmount(container) {
8276
+ if (createRoot) {
8277
+ return concurrentUnmount(container);
8278
+ }
8279
+ return legacyUnmount(container);
8280
+ }
8281
+ function rubberband(distance, dimension, constant) {
8282
+ return distance * dimension * constant / (dimension + constant * distance);
8283
+ }
8284
+ function rubberbandIfOutOfBounds(position2, min, max, dimension) {
8285
+ var constant = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0.15;
8286
+ if (constant === 0) return bound(position2, min, max);
8287
+ if (position2 < min) return -rubberband(min - position2, dimension, constant) + min;
8288
+ if (position2 > max) return +rubberband(position2 - max, dimension, constant) + max;
8289
+ return position2;
8290
+ }
8291
+ var sleep = function(time2) {
8292
+ return new Promise(function(resolve) {
8293
+ return setTimeout(resolve, time2);
8294
+ });
8295
+ };
8296
+ function toArray(value2) {
8297
+ if (value2 === void 0 || value2 === null) {
8298
+ return [];
8299
+ }
8300
+ return Array.isArray(value2) ? value2 : [
8301
+ value2
8302
+ ];
8303
+ }
8304
+ var upperCaseFirst = function(str) {
8305
+ str = str.toLowerCase();
8306
+ str = str.replace(/\b\w+\b/g, function(word) {
8307
+ return word.substring(0, 1).toUpperCase() + word.substring(1);
8308
+ });
8309
+ return str;
8310
+ };
7928
8311
  var momentum = function(distance, duration) {
7929
8312
  var speed = Math.abs(distance / duration);
7930
8313
  return speed / 3e-3 * (distance < 0 ? -1 : 1);
@@ -8064,7 +8447,7 @@
8064
8447
  ]);
8065
8448
  return [
8066
8449
  4,
8067
- getRectByTaro(placeholderRef.current)
8450
+ getRectInMultiPlatform(placeholderRef.current)
8068
8451
  ];
8069
8452
  case 1:
8070
8453
  placeholder = _state.sent();
@@ -8130,7 +8513,7 @@
8130
8513
  });
8131
8514
  React.useEffect(function() {
8132
8515
  var _pickerRollerRef_current, _pickerRollerRef_current1, _pickerRollerRef_current2;
8133
- var eventOptions = passiveSupported ? {
8516
+ var eventOptions = exports.passiveSupported ? {
8134
8517
  passive: false,
8135
8518
  once: true
8136
8519
  } : false;
@@ -8526,17 +8909,6 @@
8526
8909
  })));
8527
8910
  };
8528
8911
  var Picker = /* @__PURE__ */ React.forwardRef(InternalPicker$1);
8529
- var isDate = function(val2) {
8530
- return Object.prototype.toString.call(val2) === "[object Date]" && !Number.isNaN(val2.getTime());
8531
- };
8532
- var padZero = function(num) {
8533
- var targetLength = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 2;
8534
- var str = "".concat(num);
8535
- while (str.length < targetLength) {
8536
- str = "0".concat(str);
8537
- }
8538
- return str;
8539
- };
8540
8912
  function getLastDayOfMonth(year, month) {
8541
8913
  return new Date(year, month, 0).getDate();
8542
8914
  }
@@ -10024,60 +10396,6 @@
10024
10396
  Schema.warning = warning;
10025
10397
  Schema.messages = messages;
10026
10398
  Schema.validators = validators;
10027
- function merge() {
10028
- for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
10029
- items[_key] = arguments[_key];
10030
- }
10031
- return _merge(items[0] === true, false, items);
10032
- }
10033
- function recursive() {
10034
- for (var _len = arguments.length, items = new Array(_len), _key = 0; _key < _len; _key++) {
10035
- items[_key] = arguments[_key];
10036
- }
10037
- return _merge(items[0] === true, true, items);
10038
- }
10039
- function clone(input) {
10040
- if (Array.isArray(input)) {
10041
- var output = [];
10042
- for (var index2 = 0; index2 < input.length; ++index2) output.push(clone(input[index2]));
10043
- return output;
10044
- }
10045
- if (isPlainObject(input)) {
10046
- var output1 = {};
10047
- for (var index1 in input) output1[index1] = clone(input[index1]);
10048
- return output1;
10049
- }
10050
- return input;
10051
- }
10052
- function isPlainObject(input) {
10053
- if (input === null || (typeof input === "undefined" ? "undefined" : _type_of(input)) !== "object") return false;
10054
- if (Object.getPrototypeOf(input) === null) return true;
10055
- var ref = input;
10056
- while (Object.getPrototypeOf(ref) !== null) ref = Object.getPrototypeOf(ref);
10057
- return Object.getPrototypeOf(input) === ref;
10058
- }
10059
- function _recursiveMerge(base, extend) {
10060
- if (!isPlainObject(base) || !isPlainObject(extend)) return extend;
10061
- for (var key2 in extend) {
10062
- if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") continue;
10063
- base[key2] = isPlainObject(base[key2]) && isPlainObject(extend[key2]) ? _recursiveMerge(base[key2], extend[key2]) : extend[key2];
10064
- }
10065
- return base;
10066
- }
10067
- function _merge(isClone, isRecursive, items) {
10068
- var result;
10069
- if (isClone || !isPlainObject(result = items.shift())) result = {};
10070
- for (var index2 = 0; index2 < items.length; ++index2) {
10071
- var item = items[index2];
10072
- if (!isPlainObject(item)) continue;
10073
- for (var key2 in item) {
10074
- if (key2 === "__proto__" || key2 === "constructor" || key2 === "prototype") continue;
10075
- var value2 = isClone ? clone(item[key2]) : item[key2];
10076
- result[key2] = isRecursive ? _recursiveMerge(result[key2], value2) : value2;
10077
- }
10078
- }
10079
- return result;
10080
- }
10081
10399
  var SECRET = "NUT_FORM_INTERNAL";
10082
10400
  var FormStore = /* @__PURE__ */ function() {
10083
10401
  function FormStore2() {
@@ -10570,23 +10888,6 @@
10570
10888
  subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } });
10571
10889
  if (superClass) _set_prototype_of(subClass, superClass);
10572
10890
  }
10573
- function isForwardRefComponent(component) {
10574
- return component.type && component.type.$$typeof && // eslint-disable-next-line react/display-name
10575
- React.forwardRef(
10576
- // eslint-disable-next-line @typescript-eslint/ban-ts-comment
10577
- // @ts-ignore
10578
- function() {
10579
- }
10580
- ).$$typeof === component.type.$$typeof;
10581
- }
10582
- function toArray(value2) {
10583
- if (value2 === void 0 || value2 === null) {
10584
- return [];
10585
- }
10586
- return Array.isArray(value2) ? value2 : [
10587
- value2
10588
- ];
10589
- }
10590
10891
  var defaultProps$Z = _object_spread_props(_object_spread({}, ComponentDefaults), {
10591
10892
  required: false,
10592
10893
  name: "",
@@ -10762,7 +11063,7 @@
10762
11063
  },
10763
11064
  {
10764
11065
  key: "render",
10765
- value: function render() {
11066
+ value: function render2() {
10766
11067
  var children = this.props.children;
10767
11068
  var child = Array.isArray(children) ? children[0] : children;
10768
11069
  var returnChildNode;
@@ -10992,16 +11293,6 @@
10992
11293
  })));
10993
11294
  });
10994
11295
  Input.displayName = "NutInput";
10995
- function bound(position2, min, max) {
10996
- var ret = position2;
10997
- if (min !== void 0) {
10998
- ret = Math.max(position2, min);
10999
- }
11000
- if (max !== void 0) {
11001
- ret = Math.min(ret, max);
11002
- }
11003
- return ret;
11004
- }
11005
11296
  var defaultProps$X = _object_spread_props(_object_spread({}, ComponentDefaults), {
11006
11297
  disabled: false,
11007
11298
  readOnly: false,
@@ -11294,7 +11585,7 @@
11294
11585
  p = parent2.menuRef.current;
11295
11586
  return [
11296
11587
  4,
11297
- getRectByTaro(p)
11588
+ getRectInMultiPlatform(p)
11298
11589
  ];
11299
11590
  case 1:
11300
11591
  rect = _state.sent();
@@ -11323,7 +11614,7 @@
11323
11614
  var updateItemOffset = React.useCallback(function() {
11324
11615
  if (!parent2.lockScroll) return;
11325
11616
  var p = parent2.menuRef.current;
11326
- getRectByTaro(p).then(function(rect) {
11617
+ getRectInMultiPlatform(p).then(function(rect) {
11327
11618
  if (rect) {
11328
11619
  setPosition({
11329
11620
  height: rect.height,
@@ -12208,7 +12499,7 @@
12208
12499
  setDragStatus("");
12209
12500
  return [
12210
12501
  4,
12211
- getRectByTaro(root2.current)
12502
+ getRectInMultiPlatform(root2.current)
12212
12503
  ];
12213
12504
  case 1:
12214
12505
  rect = _state.sent();
@@ -12296,7 +12587,7 @@
12296
12587
  setDragStatus("draging");
12297
12588
  return [
12298
12589
  4,
12299
- getRectByTaro(root2.current)
12590
+ getRectInMultiPlatform(root2.current)
12300
12591
  ];
12301
12592
  case 1:
12302
12593
  rect = _state.sent();
@@ -12618,7 +12909,7 @@
12618
12909
  var _loop = function(index3) {
12619
12910
  var item = refs[index3];
12620
12911
  if (item) {
12621
- getRectByTaro(item).then(function(res) {
12912
+ getRectInMultiPlatform(item).then(function(res) {
12622
12913
  rateRects.current[index3] = res;
12623
12914
  });
12624
12915
  }
@@ -13170,14 +13461,56 @@
13170
13461
  (_obj2 = {}, _define_property(_obj2, "".concat(classPrefix2, "-close"), !value2), _define_property(_obj2, "".concat(classPrefix2, "-disabled"), disabled), _define_property(_obj2, "".concat(classPrefix2, "-disabled-close"), disabled && !value2), _obj2)
13171
13462
  ]);
13172
13463
  };
13173
- var onClick = function() {
13174
- if (disabled || changing) return;
13175
- if (onChange) {
13176
- setChanging(true);
13177
- onChange(!value2);
13178
- }
13179
- setValue(!value2);
13180
- };
13464
+ var onClick = /* @__PURE__ */ function() {
13465
+ var _ref2 = _async_to_generator(function() {
13466
+ return __generator(this, function(_state) {
13467
+ switch (_state.label) {
13468
+ case 0:
13469
+ if (disabled || changing) return [
13470
+ 2
13471
+ ];
13472
+ if (!onChange) return [
13473
+ 3,
13474
+ 4
13475
+ ];
13476
+ setChanging(true);
13477
+ _state.label = 1;
13478
+ case 1:
13479
+ _state.trys.push([
13480
+ 1,
13481
+ 3,
13482
+ ,
13483
+ 4
13484
+ ]);
13485
+ return [
13486
+ 4,
13487
+ onChange(!value2)
13488
+ ];
13489
+ case 2:
13490
+ _state.sent();
13491
+ return [
13492
+ 3,
13493
+ 4
13494
+ ];
13495
+ case 3:
13496
+ _state.sent();
13497
+ setChanging(false);
13498
+ return [
13499
+ 3,
13500
+ 4
13501
+ ];
13502
+ case 4:
13503
+ setValue(!value2);
13504
+ return [
13505
+ 2
13506
+ ];
13507
+ }
13508
+ });
13509
+ });
13510
+ return function onClick2() {
13511
+ return _ref2.apply(this, arguments);
13512
+ };
13513
+ }();
13181
13514
  var _obj, _obj1;
13182
13515
  return /* @__PURE__ */ React.createElement(components.View, _object_spread({
13183
13516
  className: classes(),
@@ -13298,28 +13631,6 @@
13298
13631
  }, inputValue.length, "/", maxLength < 0 ? 0 : maxLength)));
13299
13632
  };
13300
13633
  TextArea.displayName = "NutTextArea";
13301
- var funcInterceptor = function(interceptor, param) {
13302
- var _param_args = param.args, args = _param_args === void 0 ? [] : _param_args, done = param.done, canceled = param.canceled;
13303
- if (interceptor) {
13304
- var returnVal = interceptor.apply(null, args);
13305
- if (isPromise(returnVal)) {
13306
- returnVal.then(function(value2) {
13307
- if (value2) {
13308
- done(value2);
13309
- } else if (canceled) {
13310
- canceled();
13311
- }
13312
- }).catch(function() {
13313
- });
13314
- } else if (returnVal) {
13315
- done();
13316
- } else if (canceled) {
13317
- canceled();
13318
- }
13319
- } else {
13320
- done();
13321
- }
13322
- };
13323
13634
  var defaultProps$K = _object_spread_props(_object_spread({}, ComponentDefaults), {
13324
13635
  percent: 0,
13325
13636
  showText: false,
@@ -14468,7 +14779,7 @@
14468
14779
  _getWindowInfo = getWindowInfo(), screenWidth = _getWindowInfo.screenWidth, windowHeight = _getWindowInfo.windowHeight;
14469
14780
  return [
14470
14781
  4,
14471
- getRectByTaro(dragRef.current)
14782
+ getRectInMultiPlatform(dragRef.current)
14472
14783
  ];
14473
14784
  case 1:
14474
14785
  _ref2 = _state.sent(), width2 = _ref2.width, height2 = _ref2.height, dragTop = _ref2.top, dragLeft = _ref2.left;
@@ -23177,7 +23488,7 @@
23177
23488
  }
23178
23489
  this.renderModifiers();
23179
23490
  };
23180
- SVGShapeElement.prototype.searchShapes = function(arr, itemsData, prevViewData, container, level, transformers, render) {
23491
+ SVGShapeElement.prototype.searchShapes = function(arr, itemsData, prevViewData, container, level, transformers, render2) {
23181
23492
  var ownTransformers = [].concat(transformers);
23182
23493
  var i2;
23183
23494
  var len2 = arr.length - 1;
@@ -23191,7 +23502,7 @@
23191
23502
  for (i2 = len2; i2 >= 0; i2 -= 1) {
23192
23503
  processedPos = this.searchProcessedElement(arr[i2]);
23193
23504
  if (!processedPos) {
23194
- arr[i2]._render = render;
23505
+ arr[i2]._render = render2;
23195
23506
  } else {
23196
23507
  itemsData[i2] = prevViewData[processedPos - 1];
23197
23508
  }
@@ -23216,7 +23527,7 @@
23216
23527
  itemsData[i2].prevViewData[j] = itemsData[i2].it[j];
23217
23528
  }
23218
23529
  }
23219
- this.searchShapes(arr[i2].it, itemsData[i2].it, itemsData[i2].prevViewData, itemsData[i2].gr, level + 1, ownTransformers, render);
23530
+ this.searchShapes(arr[i2].it, itemsData[i2].it, itemsData[i2].prevViewData, itemsData[i2].gr, level + 1, ownTransformers, render2);
23220
23531
  if (arr[i2]._render) {
23221
23532
  if (itemsData[i2].gr.parentNode !== container) {
23222
23533
  container.appendChild(itemsData[i2].gr);
@@ -23250,7 +23561,7 @@
23250
23561
  itemsData[i2] = modifier;
23251
23562
  modifier.init(this, arr, i2, itemsData);
23252
23563
  this.shapeModifiers.push(modifier);
23253
- render = false;
23564
+ render2 = false;
23254
23565
  } else {
23255
23566
  modifier = itemsData[i2];
23256
23567
  modifier.closed = true;
@@ -31817,7 +32128,7 @@
31817
32128
  "function" == typeof t2 && t2(Date.now());
31818
32129
  }, 16);
31819
32130
  } };
31820
- S.window = { devicePixelRatio: x.pixelRatio }, S.document = S.window.document = { body: {}, createElement: v }, S.navigator = S.window.navigator = { userAgent: "" }, XMLHttpRequest = u;
32131
+ S.window = { devicePixelRatio: x.pixelRatio }, S.document = S.window.document = { body: {}, createElement: v }, S.navigator = S.window.navigator = { userAgent: "" }, S.window.XMLHttpRequest = u;
31821
32132
  var E = function(t2) {
31822
32133
  var e2 = S.window, r2 = S.document;
31823
32134
  S._requestAnimationFrame = e2.requestAnimationFrame, S._cancelAnimationFrame = e2.cancelAnimationFrame, e2.requestAnimationFrame = function(e3) {
@@ -35570,13 +35881,13 @@
35570
35881
  }
35571
35882
  return [
35572
35883
  4,
35573
- getRectByTaro(wrapRef.current)
35884
+ getRectInMultiPlatform(wrapRef.current)
35574
35885
  ];
35575
35886
  case 1:
35576
35887
  warpRes = _state.sent();
35577
35888
  return [
35578
35889
  4,
35579
- getRectByTaro(contentRef.current)
35890
+ getRectInMultiPlatform(contentRef.current)
35580
35891
  ];
35581
35892
  case 2:
35582
35893
  contentRes = _state.sent();
@@ -35667,7 +35978,7 @@
35667
35978
  case 0:
35668
35979
  return [
35669
35980
  4,
35670
- getRectByTaro(container === null || container === void 0 ? void 0 : container.current)
35981
+ getRectInMultiPlatform(container === null || container === void 0 ? void 0 : container.current)
35671
35982
  ];
35672
35983
  case 1:
35673
35984
  rects = _state.sent();
@@ -36071,7 +36382,7 @@
36071
36382
  ];
36072
36383
  return [
36073
36384
  4,
36074
- getRectByTaro(document.querySelector("#".concat(targetId)), targetId)
36385
+ getRectInMultiPlatform(document.querySelector("#".concat(targetId)), targetId)
36075
36386
  ];
36076
36387
  case 1:
36077
36388
  _tmp = _state2.sent();
@@ -36082,7 +36393,7 @@
36082
36393
  case 2:
36083
36394
  return [
36084
36395
  4,
36085
- getRectByTaro(popoverRef.current, popoverId)
36396
+ getRectInMultiPlatform(popoverRef.current, popoverId)
36086
36397
  ];
36087
36398
  case 3:
36088
36399
  _tmp = _state2.sent();
@@ -36123,7 +36434,7 @@
36123
36434
  case 0:
36124
36435
  return [
36125
36436
  4,
36126
- getRectByTaro(popoverContentRef.current)
36437
+ getRectInMultiPlatform(popoverContentRef.current)
36127
36438
  ];
36128
36439
  case 1:
36129
36440
  rectContent = _state2.sent();
@@ -36318,21 +36629,6 @@
36318
36629
  })));
36319
36630
  };
36320
36631
  Popover.displayName = "NutPopover";
36321
- function rubberband(distance, dimension, constant) {
36322
- return distance * dimension * constant / (dimension + constant * distance);
36323
- }
36324
- function rubberbandIfOutOfBounds(position2, min, max, dimension) {
36325
- var constant = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0.15;
36326
- if (constant === 0) return bound(position2, min, max);
36327
- if (position2 < min) return -rubberband(min - position2, dimension, constant) + min;
36328
- if (position2 > max) return +rubberband(position2 - max, dimension, constant) + max;
36329
- return position2;
36330
- }
36331
- var sleep = function(time2) {
36332
- return new Promise(function(resolve) {
36333
- return setTimeout(resolve, time2);
36334
- });
36335
- };
36336
36632
  var defaultProps$z = _object_spread_props(_object_spread({}, ComponentDefaults), {
36337
36633
  type: "default",
36338
36634
  pullingText: "",
@@ -36561,8 +36857,7 @@
36561
36857
  visible: false,
36562
36858
  size: "normal",
36563
36859
  shape: "round",
36564
- duration: 0.6,
36565
- inline: false
36860
+ duration: 0.6
36566
36861
  });
36567
36862
  var Skeleton = function(props) {
36568
36863
  var shapeStyle = function shapeStyle2() {
@@ -36664,7 +36959,7 @@
36664
36959
  ];
36665
36960
  return [
36666
36961
  4,
36667
- getRectByTaro(leftWrapper.current, leftId)
36962
+ getRectInMultiPlatform(leftWrapper.current, leftId)
36668
36963
  ];
36669
36964
  case 1:
36670
36965
  leftRect = _state.sent();
@@ -36681,7 +36976,7 @@
36681
36976
  ];
36682
36977
  return [
36683
36978
  4,
36684
- getRectByTaro(rightWrapper.current, rightId)
36979
+ getRectInMultiPlatform(rightWrapper.current, rightId)
36685
36980
  ];
36686
36981
  case 3:
36687
36982
  rightRect = _state.sent();
@@ -36702,7 +36997,7 @@
36702
36997
  return _ref.apply(this, arguments);
36703
36998
  };
36704
36999
  }();
36705
- setTimeout(function() {
37000
+ Taro.nextTick(function() {
36706
37001
  return getWidth();
36707
37002
  });
36708
37003
  });
@@ -36748,7 +37043,7 @@
36748
37043
  ];
36749
37044
  return [
36750
37045
  4,
36751
- getRectByTaro(leftWrapper.current, leftId)
37046
+ getRectInMultiPlatform(leftWrapper.current, leftId)
36752
37047
  ];
36753
37048
  case 1:
36754
37049
  leftRect = _state.sent();
@@ -36765,7 +37060,7 @@
36765
37060
  ];
36766
37061
  return [
36767
37062
  4,
36768
- getRectByTaro(rightWrapper.current, rightId)
37063
+ getRectInMultiPlatform(rightWrapper.current, rightId)
36769
37064
  ];
36770
37065
  case 3:
36771
37066
  rightRect = _state.sent();
@@ -37242,7 +37537,7 @@
37242
37537
  _create_class(AnimatingNumbers2, [
37243
37538
  {
37244
37539
  key: "render",
37245
- value: function render() {
37540
+ value: function render2() {
37246
37541
  return /* @__PURE__ */ React.createElement(components.View, {
37247
37542
  className: "nut-animatingnumbers"
37248
37543
  });
@@ -37766,7 +38061,7 @@
37766
38061
  case 0:
37767
38062
  return [
37768
38063
  4,
37769
- getRectByTaro(contentRef.current, target)
38064
+ getRectInMultiPlatform(contentRef.current, target)
37770
38065
  ];
37771
38066
  case 1:
37772
38067
  res = _state.sent();
@@ -38197,7 +38492,7 @@
38197
38492
  case 0:
38198
38493
  return [
38199
38494
  4,
38200
- getRectByTaro(symbolContain === null || symbolContain === void 0 ? void 0 : symbolContain.current)
38495
+ getRectInMultiPlatform(symbolContain === null || symbolContain === void 0 ? void 0 : symbolContain.current)
38201
38496
  ];
38202
38497
  case 1:
38203
38498
  refe = _state.sent();
@@ -38268,7 +38563,7 @@
38268
38563
  case 0:
38269
38564
  return [
38270
38565
  4,
38271
- getRectByTaro(rootContain.current)
38566
+ getRectInMultiPlatform(rootContain.current)
38272
38567
  ];
38273
38568
  case 1:
38274
38569
  refe = _state.sent();
@@ -38311,7 +38606,7 @@
38311
38606
  case 0:
38312
38607
  return [
38313
38608
  4,
38314
- getRectByTaro(rootContain.current)
38609
+ getRectInMultiPlatform(rootContain.current)
38315
38610
  ];
38316
38611
  case 1:
38317
38612
  refe = _state.sent();
@@ -38853,14 +39148,6 @@
38853
39148
  }, closeIcon === true ? /* @__PURE__ */ React.createElement(IconSVG$p, null) : closeIcon));
38854
39149
  };
38855
39150
  ImagePreview.displayName = "NutImagePreview";
38856
- function addColorForHarmony(maybeElement, color) {
38857
- if (React.isValidElement(maybeElement) && harmony()) {
38858
- return React.cloneElement(maybeElement, {
38859
- color
38860
- });
38861
- }
38862
- return maybeElement;
38863
- }
38864
39151
  var defaultPaginationOptions = {
38865
39152
  current: 0,
38866
39153
  itemsPerPage: 10,
@@ -39430,12 +39717,12 @@
39430
39717
  };
39431
39718
  var renderBodyTds = function(item, rowIndex) {
39432
39719
  return sortDataItem().map(function(param) {
39433
- var _param = _sliced_to_array(param, 2), value2 = _param[0], render = _param[1];
39720
+ var _param = _sliced_to_array(param, 2), value2 = _param[0], render2 = _param[1];
39434
39721
  return /* @__PURE__ */ React.createElement(components.View, {
39435
39722
  className: classNames("".concat(bodyClassPrefix, "-td"), cellClasses(getColumnItem(value2)), getStickyClass(value2)),
39436
39723
  key: value2,
39437
39724
  style: getStickyStyle(value2)
39438
- }, typeof item[value2] === "function" || typeof render === "function" ? /* @__PURE__ */ React.createElement(components.View, null, render ? render(item, rowIndex) : item[value2](item)) : item[value2]);
39725
+ }, typeof item[value2] === "function" || typeof render2 === "function" ? /* @__PURE__ */ React.createElement(components.View, null, render2 ? render2(item, rowIndex) : item[value2](item)) : item[value2]);
39439
39726
  });
39440
39727
  };
39441
39728
  var renderBodyTrs = function() {
@@ -39556,26 +39843,6 @@
39556
39843
  }, children)));
39557
39844
  };
39558
39845
  Tag.displayName = "NutTag";
39559
- var getTaroRectById = function(id) {
39560
- return new Promise(function(resolve, reject) {
39561
- if (Taro.getEnv() === Taro.ENV_TYPE.WEB) {
39562
- var t = document ? document.querySelector("#".concat(id)) : "";
39563
- if (t) {
39564
- resolve(t === null || t === void 0 ? void 0 : t.getBoundingClientRect());
39565
- }
39566
- reject();
39567
- } else {
39568
- var query = Taro.createSelectorQuery();
39569
- query.select("#".concat(id)).boundingClientRect().exec(function(rect) {
39570
- if (rect[0]) {
39571
- resolve(rect[0]);
39572
- } else {
39573
- reject();
39574
- }
39575
- });
39576
- }
39577
- });
39578
- };
39579
39846
  var defaultProps$9 = _object_spread_props(_object_spread({}, ComponentDefaults), {
39580
39847
  visible: false,
39581
39848
  type: "step",
@@ -39629,7 +39896,7 @@
39629
39896
  active2
39630
39897
  ]);
39631
39898
  var getRootPosition = function() {
39632
- getTaroRectById(list[active2].target).then(function(rect) {
39899
+ getRectById(list[active2].target).then(function(rect) {
39633
39900
  setMaskRect({
39634
39901
  top: rect.top,
39635
39902
  left: rect.left,
@@ -40655,7 +40922,7 @@
40655
40922
  ];
40656
40923
  return [
40657
40924
  4,
40658
- getRectByTaro(node)
40925
+ getRectInMultiPlatform(node)
40659
40926
  ];
40660
40927
  case 1:
40661
40928
  refe = _state.sent();
@@ -40752,7 +41019,7 @@
40752
41019
  ];
40753
41020
  return [
40754
41021
  4,
40755
- getRectByTaro(el)
41022
+ getRectInMultiPlatform(el)
40756
41023
  ];
40757
41024
  case 1:
40758
41025
  refe = _state.sent();
@@ -41248,6 +41515,7 @@
41248
41515
  };
41249
41516
  WaterMark.displayName = "NutWaterMark";
41250
41517
  var destroyList = [];
41518
+ var useIsomorphicLayoutEffect = canUseDom ? React.useLayoutEffect : React.useEffect;
41251
41519
  exports.ActionSheet = ActionSheet;
41252
41520
  exports.Address = Address;
41253
41521
  exports.Animate = Animate;
@@ -41273,6 +41541,7 @@
41273
41541
  exports.Col = Col;
41274
41542
  exports.Collapse = Collapse;
41275
41543
  exports.CollapseItem = CollapseItem;
41544
+ exports.ComponentDefaults = ComponentDefaults;
41276
41545
  exports.ConfigProvider = ConfigProvider;
41277
41546
  exports.CountDown = CountDown;
41278
41547
  exports.DatePicker = DatePicker;
@@ -41301,6 +41570,7 @@
41301
41570
  exports.Lottie = Lottie;
41302
41571
  exports.Menu = Menu;
41303
41572
  exports.MenuItem = MenuItem;
41573
+ exports.MiniLru = MiniLru;
41304
41574
  exports.NavBar = NavBar;
41305
41575
  exports.NoticeBar = NoticeBar;
41306
41576
  exports.Notify = Notify;
@@ -41349,13 +41619,79 @@
41349
41619
  exports.Tour = Tour;
41350
41620
  exports.TrendArrow = TrendArrow;
41351
41621
  exports.Uploader = Uploader;
41622
+ exports.Utils = Utils;
41352
41623
  exports.Video = Video;
41353
41624
  exports.VirtualList = VirtualList;
41354
41625
  exports.WaterMark = WaterMark;
41626
+ exports.addColorForHarmony = addColorForHarmony;
41627
+ exports.bound = bound;
41628
+ exports.camelCase = camelCase;
41629
+ exports.canUseDom = canUseDom;
41630
+ exports.cancelRaf = cancelRaf;
41631
+ exports.clamp = clamp;
41632
+ exports.clone = clone;
41633
+ exports.customEvents = customEvents;
41355
41634
  exports.destroyList = destroyList;
41635
+ exports.funcInterceptor = funcInterceptor;
41636
+ exports.getAllScrollableParents = getAllScrollableParents;
41637
+ exports.getAppBaseInfo = getAppBaseInfo;
41638
+ exports.getCurrMonthData = getCurrMonthData;
41639
+ exports.getDaysStatus = getDaysStatus;
41356
41640
  exports.getDefaultConfig = getDefaultConfig;
41641
+ exports.getDeviceInfo = getDeviceInfo;
41642
+ exports.getPreMonthDates = getPreMonthDates;
41643
+ exports.getRect = getRect;
41644
+ exports.getRectById = getRectById;
41645
+ exports.getRectInMultiPlatform = getRectInMultiPlatform;
41646
+ exports.getRefValue = getRefValue;
41647
+ exports.getScrollParent = getScrollParent;
41648
+ exports.getWindowInfo = getWindowInfo;
41649
+ exports.harmony = harmony;
41650
+ exports.inBrowser = inBrowser;
41651
+ exports.isDate = isDate;
41652
+ exports.isEmpty = isEmpty;
41653
+ exports.isForwardRefComponent = isForwardRefComponent;
41654
+ exports.isFunction = isFunction;
41655
+ exports.isObject = isObject;
41656
+ exports.isPlainObject = isPlainObject;
41657
+ exports.isPromise = isPromise;
41658
+ exports.isWindow = isWindow;
41659
+ exports.main = main;
41660
+ exports.makeRect = makeRect;
41661
+ exports.merge = merge;
41662
+ exports.mergeProp = mergeProp;
41663
+ exports.mergeProps = mergeProps;
41664
+ exports.miniprogram = miniprogram;
41665
+ exports.padZero = padZero;
41666
+ exports.preventDefault = preventDefault$1;
41667
+ exports.pxCheck = pxCheck;
41668
+ exports.pxTransform = pxTransform;
41669
+ exports.recursive = recursive;
41670
+ exports.render = render;
41671
+ exports.rubberband = rubberband;
41672
+ exports.rubberbandIfOutOfBounds = rubberbandIfOutOfBounds;
41357
41673
  exports.setDefaultConfig = setDefaultConfig;
41674
+ exports.sleep = sleep;
41675
+ exports.toArray = toArray;
41676
+ exports.unmount = unmount;
41677
+ exports.upperCaseFirst = upperCaseFirst;
41358
41678
  exports.useConfig = useConfig;
41679
+ exports.useCustomEvent = useCustomEvent;
41680
+ exports.useCustomEventsPath = useCustomEventsPath;
41681
+ exports.useForceUpdate = useForceUpdate;
41682
+ exports.useIsomorphicLayoutEffect = useIsomorphicLayoutEffect;
41683
+ exports.useLockScroll = useLockScroll;
41684
+ exports.useLockScrollTaro = useLockScrollTaro;
41685
+ exports.useMemo = useMemo;
41686
+ exports.usePagination = usePagination;
41687
+ exports.useParams = useParams;
41688
+ exports.usePropsValue = usePropsValue;
41689
+ exports.useRefState = useRefState;
41690
+ exports.useRefs = useRefs;
41359
41691
  exports.useRtl = useRtl;
41692
+ exports.useTouch = useTouch;
41693
+ exports.useUuid = useUuid;
41694
+ exports.useWatch = useWatch$1;
41695
+ exports.web = web;
41360
41696
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
41361
41697
  });