@nutui/nutui-react-taro 3.0.6 → 3.0.7

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 (112) hide show
  1. package/CHANGELOG.md +34 -15
  2. package/dist/cjs/packages/actionsheet/style/style.css +4 -4
  3. package/dist/cjs/packages/address/style/style.css +4 -4
  4. package/dist/cjs/packages/audio/style/style.css +4 -16
  5. package/dist/cjs/packages/button/style/button.scss +4 -20
  6. package/dist/cjs/packages/button/style/style.css +4 -16
  7. package/dist/cjs/packages/button/style/style.harmony.css +2 -14
  8. package/dist/cjs/packages/calendar/style/style.css +4 -4
  9. package/dist/cjs/packages/cascader/style/style.css +4 -4
  10. package/dist/cjs/packages/collapse/style/style.css +22 -7
  11. package/dist/cjs/packages/collapseitem/collapseitem.js +63 -77
  12. package/dist/cjs/packages/collapseitem/style/collapseitem.scss +22 -5
  13. package/dist/cjs/packages/collapseitem/style/style.css +22 -7
  14. package/dist/cjs/packages/collapseitem/style/style.harmony.css +22 -7
  15. package/dist/cjs/packages/configprovider/types.d.ts +1 -1
  16. package/dist/cjs/packages/datepicker/style/style.css +4 -4
  17. package/dist/cjs/packages/dialog/content.d.ts +11 -3
  18. package/dist/cjs/packages/dialog/content.js +4 -4
  19. package/dist/cjs/packages/dialog/dialog.d.ts +39 -4
  20. package/dist/cjs/packages/dialog/dialog.js +14 -13
  21. package/dist/cjs/packages/dialog/index.d.ts +1 -1
  22. package/dist/cjs/packages/dialog/style/style.css +4 -16
  23. package/dist/cjs/packages/empty/style/style.css +4 -16
  24. package/dist/cjs/packages/imagepreview/style/style.css +4 -4
  25. package/dist/cjs/packages/numberkeyboard/style/style.css +4 -4
  26. package/dist/cjs/packages/picker/style/style.css +4 -4
  27. package/dist/cjs/packages/popover/popover.d.ts +0 -7
  28. package/dist/cjs/packages/popover/popover.js +114 -141
  29. package/dist/cjs/packages/popover/style/popover.scss +48 -51
  30. package/dist/cjs/packages/popover/style/style.css +64 -70
  31. package/dist/cjs/packages/popover/style/style.harmony.css +64 -60
  32. package/dist/cjs/packages/popup/style/popup.scss +4 -4
  33. package/dist/cjs/packages/popup/style/style.css +4 -4
  34. package/dist/cjs/packages/popup/style/style.harmony.css +4 -4
  35. package/dist/cjs/packages/resultpage/style/style.css +4 -16
  36. package/dist/cjs/packages/shortpassword/style/style.css +4 -4
  37. package/dist/cjs/packages/switch/switch.js +2 -2
  38. package/dist/cjs/packages/tabpane/tabpane.js +2 -2
  39. package/dist/cjs/packages/timeselect/style/style.css +4 -4
  40. package/dist/cjs/packages/tour/style/style.css +64 -70
  41. package/dist/cjs/packages/tour/tour.js +3 -4
  42. package/dist/cjs/types/spec/dialog/base.d.ts +50 -1
  43. package/dist/cjs/types/spec/dialog/base.js +7 -0
  44. package/dist/cjs/types/spec/dialog/h5.d.ts +4 -1
  45. package/dist/cjs/types/spec/dialog/taro.d.ts +8 -2
  46. package/dist/cjs/types/spec/popover/base.d.ts +7 -0
  47. package/dist/cjs/utils/get-rect-by-taro.js +10 -0
  48. package/dist/cjs/utils/lru.d.ts +8 -0
  49. package/dist/cjs/utils/lru.js +58 -0
  50. package/dist/es/packages/actionsheet/style/style.css +4 -4
  51. package/dist/es/packages/address/style/style.css +4 -4
  52. package/dist/es/packages/audio/style/style.css +4 -16
  53. package/dist/es/packages/button/style/button.scss +4 -20
  54. package/dist/es/packages/button/style/style.css +4 -16
  55. package/dist/es/packages/button/style/style.harmony.css +2 -14
  56. package/dist/es/packages/calendar/style/style.css +4 -4
  57. package/dist/es/packages/cascader/style/style.css +4 -4
  58. package/dist/es/packages/collapse/style/style.css +22 -7
  59. package/dist/es/packages/collapseitem/collapseitem.js +65 -79
  60. package/dist/es/packages/collapseitem/style/collapseitem.scss +22 -5
  61. package/dist/es/packages/collapseitem/style/style.css +22 -7
  62. package/dist/es/packages/collapseitem/style/style.harmony.css +22 -7
  63. package/dist/es/packages/configprovider/types.d.ts +1 -1
  64. package/dist/es/packages/datepicker/style/style.css +4 -4
  65. package/dist/es/packages/dialog/content.d.ts +11 -3
  66. package/dist/es/packages/dialog/content.js +4 -4
  67. package/dist/es/packages/dialog/dialog.d.ts +39 -4
  68. package/dist/es/packages/dialog/dialog.js +14 -13
  69. package/dist/es/packages/dialog/index.d.ts +1 -1
  70. package/dist/es/packages/dialog/style/style.css +4 -16
  71. package/dist/es/packages/empty/style/style.css +4 -16
  72. package/dist/es/packages/imagepreview/style/style.css +4 -4
  73. package/dist/es/packages/numberkeyboard/style/style.css +4 -4
  74. package/dist/es/packages/picker/style/style.css +4 -4
  75. package/dist/es/packages/popover/popover.d.ts +0 -7
  76. package/dist/es/packages/popover/popover.js +115 -142
  77. package/dist/es/packages/popover/style/popover.scss +48 -51
  78. package/dist/es/packages/popover/style/style.css +64 -70
  79. package/dist/es/packages/popover/style/style.harmony.css +64 -60
  80. package/dist/es/packages/popup/style/popup.scss +4 -4
  81. package/dist/es/packages/popup/style/style.css +4 -4
  82. package/dist/es/packages/popup/style/style.harmony.css +4 -4
  83. package/dist/es/packages/resultpage/style/style.css +4 -16
  84. package/dist/es/packages/shortpassword/style/style.css +4 -4
  85. package/dist/es/packages/switch/switch.js +2 -2
  86. package/dist/es/packages/tabpane/tabpane.js +2 -2
  87. package/dist/es/packages/timeselect/style/style.css +4 -4
  88. package/dist/es/packages/tour/style/style.css +64 -70
  89. package/dist/es/packages/tour/tour.js +3 -4
  90. package/dist/es/types/spec/dialog/base.d.ts +83 -1
  91. package/dist/es/types/spec/dialog/base.js +1 -1
  92. package/dist/es/types/spec/dialog/h5.d.ts +4 -1
  93. package/dist/es/types/spec/dialog/taro.d.ts +8 -2
  94. package/dist/es/types/spec/popover/base.d.ts +7 -0
  95. package/dist/es/utils/get-rect-by-taro.js +9 -0
  96. package/dist/es/utils/lru.d.ts +8 -0
  97. package/dist/es/utils/lru.js +49 -0
  98. package/dist/nutui.react.umd.js +266 -260
  99. package/dist/style.css +1 -1
  100. package/dist/style.scss +46 -46
  101. package/dist/styles/theme-jmapp.scss +1 -0
  102. package/dist/styles/themes/jmapp.css +1 -1
  103. package/dist/styles/variables-jmapp.scss +214 -49
  104. package/dist/styles/variables-jrkf.scss +2 -13
  105. package/dist/styles/variables.scss +3 -14
  106. package/package.json +1 -1
  107. package/dist/cjs/packages/dialog/types.d.ts +0 -57
  108. package/dist/cjs/packages/dialog/types.js +0 -4
  109. package/dist/cjs/packages/dialog/types.taro.d.ts +0 -10
  110. package/dist/es/packages/dialog/types.d.ts +0 -57
  111. package/dist/es/packages/dialog/types.js +0 -1
  112. package/dist/es/packages/dialog/types.taro.d.ts +0 -10
@@ -3784,6 +3784,66 @@
3784
3784
  stop.current = true;
3785
3785
  };
3786
3786
  }
3787
+ function _class_call_check(instance, Constructor) {
3788
+ if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
3789
+ }
3790
+ function _defineProperties(target, props) {
3791
+ for (var i2 = 0; i2 < props.length; i2++) {
3792
+ var descriptor = props[i2];
3793
+ descriptor.enumerable = descriptor.enumerable || false;
3794
+ descriptor.configurable = true;
3795
+ if ("value" in descriptor) descriptor.writable = true;
3796
+ Object.defineProperty(target, descriptor.key, descriptor);
3797
+ }
3798
+ }
3799
+ function _create_class(Constructor, protoProps, staticProps) {
3800
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
3801
+ return Constructor;
3802
+ }
3803
+ var MiniLru = /* @__PURE__ */ function() {
3804
+ function MiniLru2(capacity) {
3805
+ _class_call_check(this, MiniLru2);
3806
+ _define_property(this, "cache", void 0);
3807
+ _define_property(this, "capacity", void 0);
3808
+ if (capacity <= 0) {
3809
+ throw new Error("Cache capacity must be a positive number");
3810
+ }
3811
+ this.cache = /* @__PURE__ */ new Map();
3812
+ this.capacity = capacity;
3813
+ }
3814
+ _create_class(MiniLru2, [
3815
+ {
3816
+ key: "get",
3817
+ value: function get(key2) {
3818
+ if (this.cache.has(key2)) {
3819
+ var value2 = this.cache.get(key2);
3820
+ this.cache.delete(key2);
3821
+ this.cache.set(key2, value2);
3822
+ return value2;
3823
+ }
3824
+ return null;
3825
+ }
3826
+ },
3827
+ {
3828
+ key: "set",
3829
+ value: function set(key2, value2) {
3830
+ if (this.cache.has(key2)) {
3831
+ this.cache.delete(key2);
3832
+ } else if (this.cache.size >= this.capacity) {
3833
+ this.cache.delete(this.cache.keys().next().value);
3834
+ }
3835
+ this.cache.set(key2, value2);
3836
+ }
3837
+ },
3838
+ {
3839
+ key: "has",
3840
+ value: function has2(key2) {
3841
+ return this.cache.has(key2);
3842
+ }
3843
+ }
3844
+ ]);
3845
+ return MiniLru2;
3846
+ }();
3787
3847
  var inBrowser$1 = typeof document !== "undefined" && !!document.scripts;
3788
3848
  function isWindow(val2) {
3789
3849
  return val2 === window;
@@ -3815,6 +3875,7 @@
3815
3875
  height: 0
3816
3876
  };
3817
3877
  };
3878
+ var lru = new MiniLru(10);
3818
3879
  function makeRect(width2, height2) {
3819
3880
  return {
3820
3881
  top: 0,
@@ -3841,8 +3902,15 @@
3841
3902
  return [
3842
3903
  2,
3843
3904
  new Promise(function(resolve, reject) {
3905
+ if (lru.has(element)) {
3906
+ resolve(lru.get(element));
3907
+ return;
3908
+ }
3844
3909
  Taro.createSelectorQuery().select("#".concat(harmonyId || element.uid)).boundingClientRect().exec(function(param) {
3845
3910
  var _param = _sliced_to_array(param, 1), rects = _param[0];
3911
+ if (rects) {
3912
+ lru.set(element, rects);
3913
+ }
3846
3914
  resolve(rects);
3847
3915
  });
3848
3916
  })
@@ -5047,9 +5115,9 @@
5047
5115
  var classes = classNames(classPrefix2, {
5048
5116
  active: !disabled && props.active
5049
5117
  }, autoHeightClassName, className);
5050
- return children && /* @__PURE__ */ React.createElement(components.View, {
5118
+ return children ? /* @__PURE__ */ React.createElement(components.View, {
5051
5119
  className: classes
5052
- }, !disabled && children);
5120
+ }, !disabled && children) : null;
5053
5121
  };
5054
5122
  var defaultProps$1d = _object_spread_props(_object_spread({}, ComponentDefaults), {
5055
5123
  tabStyle: {},
@@ -8910,22 +8978,6 @@
8910
8978
  };
8911
8979
  DatePickerView.displayName = "NutDatePickerView";
8912
8980
  var Context = React.createContext({});
8913
- function _class_call_check(instance, Constructor) {
8914
- if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
8915
- }
8916
- function _defineProperties(target, props) {
8917
- for (var i2 = 0; i2 < props.length; i2++) {
8918
- var descriptor = props[i2];
8919
- descriptor.enumerable = descriptor.enumerable || false;
8920
- descriptor.configurable = true;
8921
- if ("value" in descriptor) descriptor.writable = true;
8922
- Object.defineProperty(target, descriptor.key, descriptor);
8923
- }
8924
- }
8925
- function _create_class(Constructor, protoProps, staticProps) {
8926
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
8927
- return Constructor;
8928
- }
8929
8981
  function _extends() {
8930
8982
  _extends = Object.assign ? Object.assign.bind() : function(target) {
8931
8983
  for (var i2 = 1; i2 < arguments.length; i2++) {
@@ -13087,9 +13139,7 @@
13087
13139
  loadingIcon: /* @__PURE__ */ React.createElement(IconSVG$h, null)
13088
13140
  });
13089
13141
  var Switch = function(props) {
13090
- var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, loadingIcon = _ref.loadingIcon, className = _ref.className, style = _ref.style;
13091
- _ref.onChange;
13092
- var rest = _object_without_properties(_ref, [
13142
+ var _ref = _object_spread({}, defaultProps$M, props), checked = _ref.checked, defaultChecked = _ref.defaultChecked, disabled = _ref.disabled, activeText = _ref.activeText, inactiveText = _ref.inactiveText, loadingIcon = _ref.loadingIcon, className = _ref.className, style = _ref.style, onChange = _ref.onChange, rest = _object_without_properties(_ref, [
13093
13143
  "checked",
13094
13144
  "defaultChecked",
13095
13145
  "disabled",
@@ -13122,9 +13172,9 @@
13122
13172
  };
13123
13173
  var onClick = function() {
13124
13174
  if (disabled || changing) return;
13125
- if (props.onChange) {
13175
+ if (onChange) {
13126
13176
  setChanging(true);
13127
- props.onChange(!value2);
13177
+ onChange(!value2);
13128
13178
  }
13129
13179
  setValue(!value2);
13130
13180
  };
@@ -14086,7 +14136,7 @@
14086
14136
  }
14087
14137
  };
14088
14138
  var Content = function(props) {
14089
- var _$_object_spread = _object_spread({}, defaultContentProps, props), visible = _$_object_spread.visible, title = _$_object_spread.title, header = _$_object_spread.header, footer = _$_object_spread.footer, close2 = _$_object_spread.close, footerDirection = _$_object_spread.footerDirection, children = _$_object_spread.children, onClick = _$_object_spread.onClick;
14139
+ var _$_object_spread = _object_spread({}, defaultContentProps, props), visible = _$_object_spread.visible, title = _$_object_spread.title, header = _$_object_spread.header, footer = _$_object_spread.footer, close2 = _$_object_spread.close, footerDirection = _$_object_spread.footerDirection, children = _$_object_spread.children, style = _$_object_spread.style, className = _$_object_spread.className, onClick = _$_object_spread.onClick;
14090
14140
  var classPrefix2 = "nut-dialog";
14091
14141
  var renderHeader = function() {
14092
14142
  return title && /* @__PURE__ */ React.createElement(components.View, {
@@ -14099,11 +14149,11 @@
14099
14149
  }, footer);
14100
14150
  };
14101
14151
  var handleClick = function(e) {
14102
- onClick && onClick(e);
14152
+ onClick(e);
14103
14153
  };
14104
14154
  return /* @__PURE__ */ React.createElement(components.View, {
14105
- className: classNames("".concat(classPrefix2, "-outer"), props.className),
14106
- style: props.style,
14155
+ className: classNames("".concat(classPrefix2, "-outer"), className),
14156
+ style,
14107
14157
  onClick: function(e) {
14108
14158
  return handleClick(e);
14109
14159
  }
@@ -14170,15 +14220,15 @@
14170
14220
  footer: "",
14171
14221
  confirmText: "",
14172
14222
  cancelText: "",
14173
- overlay: true,
14174
- overlayStyle: {},
14175
- overlayClassName: "nut-dialog-overlay",
14176
14223
  hideConfirmButton: false,
14177
14224
  hideCancelButton: false,
14178
14225
  disableConfirmButton: false,
14179
14226
  footerDirection: "horizontal",
14180
14227
  closeIconPosition: "bottom",
14181
14228
  closeIcon: false,
14229
+ overlay: true,
14230
+ overlayStyle: {},
14231
+ overlayClassName: "nut-dialog-overlay",
14182
14232
  zIndex: 1200,
14183
14233
  beforeCancel: function() {
14184
14234
  return true;
@@ -14190,15 +14240,17 @@
14190
14240
  },
14191
14241
  onClose: function() {
14192
14242
  },
14243
+ onConfirm: function() {
14244
+ },
14193
14245
  onOverlayClick: function() {
14194
14246
  return true;
14195
14247
  }
14196
14248
  });
14197
14249
  var BaseDialog = function(props) {
14250
+ var _useParams = useParams(mergeProps(defaultProps$H, props)), _useParams_params = _useParams.params, id = _useParams_params.id, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, children = _useParams_params.children, className = _useParams_params.className, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, content2 = _useParams_params.content, disableConfirmButton = _useParams_params.disableConfirmButton, footer = _useParams_params.footer, footerDirection = _useParams_params.footerDirection, header = _useParams_params.header, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, style = _useParams_params.style, title = _useParams_params.title, visible = _useParams_params.visible, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
14198
14251
  var classPrefix2 = "nut-dialog";
14199
14252
  var locale = useConfig().locale;
14200
14253
  var _useState = _sliced_to_array(React.useState(false), 2), loading = _useState[0], setLoading = _useState[1];
14201
- var _useParams = useParams(mergeProps(defaultProps$H, props)), _useParams_params = _useParams.params, id = _useParams_params.id, className = _useParams_params.className, style = _useParams_params.style, visible = _useParams_params.visible, footer = _useParams_params.footer, title = _useParams_params.title, header = _useParams_params.header, content2 = _useParams_params.content, children = _useParams_params.children, footerDirection = _useParams_params.footerDirection, hideConfirmButton = _useParams_params.hideConfirmButton, hideCancelButton = _useParams_params.hideCancelButton, lockScroll = _useParams_params.lockScroll, disableConfirmButton = _useParams_params.disableConfirmButton, closeOnOverlayClick = _useParams_params.closeOnOverlayClick, confirmText = _useParams_params.confirmText, cancelText = _useParams_params.cancelText, overlay = _useParams_params.overlay, overlayStyle = _useParams_params.overlayStyle, overlayClassName = _useParams_params.overlayClassName, closeIconPosition = _useParams_params.closeIconPosition, closeIcon = _useParams_params.closeIcon, zIndex = _useParams_params.zIndex, beforeCancel = _useParams_params.beforeCancel, beforeClose = _useParams_params.beforeClose, onClose = _useParams_params.onClose, onCancel = _useParams_params.onCancel, onConfirm = _useParams_params.onConfirm, onOverlayClick = _useParams_params.onOverlayClick, setParams = _useParams.setParams;
14202
14254
  useCustomEvent(id, function(param) {
14203
14255
  var status = param.status, options = param.options;
14204
14256
  setParams(_object_spread_props(_object_spread({}, options), {
@@ -14212,8 +14264,8 @@
14212
14264
  e.stopPropagation();
14213
14265
  if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
14214
14266
  if (!(beforeClose === null || beforeClose === void 0 ? void 0 : beforeClose())) return;
14215
- onClose === null || onClose === void 0 ? void 0 : onClose();
14216
- onCancel === null || onCancel === void 0 ? void 0 : onCancel();
14267
+ onClose();
14268
+ onCancel();
14217
14269
  };
14218
14270
  var handleOk = /* @__PURE__ */ function() {
14219
14271
  var _ref = _async_to_generator(function(e) {
@@ -14237,7 +14289,7 @@
14237
14289
  case 2:
14238
14290
  _state.sent();
14239
14291
  setLoading(false);
14240
- onClose === null || onClose === void 0 ? void 0 : onClose();
14292
+ onClose();
14241
14293
  return [
14242
14294
  3,
14243
14295
  4
@@ -14281,8 +14333,8 @@
14281
14333
  };
14282
14334
  var renderConfirm = function() {
14283
14335
  return !hideConfirmButton && /* @__PURE__ */ React.createElement(Button, {
14284
- size: "large",
14285
14336
  type: "primary",
14337
+ size: "large",
14286
14338
  className: classNames("".concat(classPrefix2, "-footer-ok ").concat(btnClass), {
14287
14339
  disabled: disableConfirmButton
14288
14340
  }),
@@ -14300,8 +14352,8 @@
14300
14352
  var handleCancel = function() {
14301
14353
  if (!(beforeCancel === null || beforeCancel === void 0 ? void 0 : beforeCancel())) return;
14302
14354
  if (!(beforeClose === null || beforeClose === void 0 ? void 0 : beforeClose())) return;
14303
- onClose === null || onClose === void 0 ? void 0 : onClose();
14304
- onCancel === null || onCancel === void 0 ? void 0 : onCancel();
14355
+ onClose();
14356
+ onCancel();
14305
14357
  };
14306
14358
  var _obj;
14307
14359
  var closeClasses = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-close"), true), _define_property(_obj, "".concat(classPrefix2, "-close-").concat(closeIconPosition), true), _obj));
@@ -14314,8 +14366,8 @@
14314
14366
  var onHandleClickOverlay = function(e) {
14315
14367
  if (closeOnOverlayClick && visible && e.target === e.currentTarget) {
14316
14368
  var closed = onOverlayClick && onOverlayClick(e);
14317
- closed && onClose && onClose();
14318
- closed && onCancel && onCancel();
14369
+ closed && onClose();
14370
+ closed && onCancel();
14319
14371
  }
14320
14372
  };
14321
14373
  var renderContent = function() {
@@ -35955,7 +36007,6 @@
35955
36007
  ],
35956
36008
  arrowOffset: 0,
35957
36009
  targetId: "",
35958
- className: "",
35959
36010
  showArrow: true,
35960
36011
  closeOnOutsideClick: true,
35961
36012
  closeOnActionClick: true,
@@ -35993,129 +36044,100 @@
35993
36044
  var popoverRef = React.useRef(null);
35994
36045
  var popoverContentRef = React.useRef(null);
35995
36046
  var _useState = _sliced_to_array(React.useState(false), 2), showPopup = _useState[0], setShowPopup = _useState[1];
35996
- var _useState1 = _sliced_to_array(React.useState(0), 2), elWidth = _useState1[0], setElWidth = _useState1[1];
35997
- var _useState2 = _sliced_to_array(React.useState(0), 2), elHeight = _useState2[0], setElHeight = _useState2[1];
35998
- var _useState3 = _sliced_to_array(React.useState(), 2), rootPosition = _useState3[0], setRootPosition = _useState3[1];
36047
+ var _useState1 = _sliced_to_array(React.useState(0), 2), popWidth = _useState1[0], setPopWidth = _useState1[1];
36048
+ var _useState2 = _sliced_to_array(React.useState(0), 2), popHeight = _useState2[0], setPopHeight = _useState2[1];
36049
+ var _useState3 = _sliced_to_array(React.useState(), 2), wrapperPosition = _useState3[0], setWrapperPosition = _useState3[1];
35999
36050
  React.useEffect(function() {
36000
36051
  setShowPopup(visible);
36001
36052
  if (visible) {
36002
- setTimeout(function() {
36003
- getContentWidth();
36004
- }, 0);
36053
+ getWrapperPosition();
36005
36054
  }
36006
36055
  }, [
36007
36056
  visible
36008
36057
  ]);
36009
- var getContentWidth = /* @__PURE__ */ function() {
36058
+ var uid = useUuid();
36059
+ var popoverId = "popover-".concat(uid);
36060
+ var getWrapperPosition = /* @__PURE__ */ function() {
36010
36061
  var _ref2 = _async_to_generator(function() {
36011
- var rect;
36012
36062
  return __generator(this, function(_state) {
36013
- Taro.createSelectorQuery().selectViewport().scrollOffset(/* @__PURE__ */ function() {
36014
- var _ref3 = _async_to_generator(function(res) {
36015
- var distance;
36016
- return __generator(this, function(_state2) {
36017
- switch (_state2.label) {
36018
- case 0:
36019
- distance = res.scrollTop;
36020
- if (!targetId) return [
36021
- 3,
36022
- 4
36023
- ];
36024
- if (!(Taro.getEnv() === Taro.ENV_TYPE.WEB)) return [
36025
- 3,
36026
- 1
36027
- ];
36028
- rect = getRect(document.querySelector("#".concat(targetId)));
36029
- return [
36030
- 3,
36031
- 3
36032
- ];
36033
- case 1:
36034
- return [
36035
- 4,
36036
- getRectTaro(targetId)
36037
- ];
36038
- case 2:
36039
- rect = _state2.sent();
36040
- _state2.label = 3;
36041
- case 3:
36042
- return [
36043
- 3,
36044
- 6
36045
- ];
36046
- case 4:
36047
- return [
36048
- 4,
36049
- getRectByTaro(popoverRef.current)
36050
- ];
36051
- case 5:
36052
- rect = _state2.sent();
36053
- _state2.label = 6;
36054
- case 6:
36055
- setRootPosition({
36056
- width: rect.width,
36057
- height: rect.height,
36058
- left: rtl ? rect.right : rect.left,
36059
- top: rect.top + distance,
36060
- right: rtl ? rect.left : rect.right
36061
- });
36062
- return [
36063
- 2
36064
- ];
36065
- }
36066
- });
36063
+ Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
36064
+ var rect, _tmp, width2, height2, right2, left2, top;
36065
+ return __generator(this, function(_state2) {
36066
+ switch (_state2.label) {
36067
+ case 0:
36068
+ if (!targetId) return [
36069
+ 3,
36070
+ 2
36071
+ ];
36072
+ return [
36073
+ 4,
36074
+ getRectByTaro(document.querySelector("#".concat(targetId)), targetId)
36075
+ ];
36076
+ case 1:
36077
+ _tmp = _state2.sent();
36078
+ return [
36079
+ 3,
36080
+ 4
36081
+ ];
36082
+ case 2:
36083
+ return [
36084
+ 4,
36085
+ getRectByTaro(popoverRef.current, popoverId)
36086
+ ];
36087
+ case 3:
36088
+ _tmp = _state2.sent();
36089
+ _state2.label = 4;
36090
+ case 4:
36091
+ rect = _tmp;
36092
+ width2 = rect.width, height2 = rect.height, right2 = rect.right, left2 = rect.left, top = rect.top;
36093
+ setWrapperPosition({
36094
+ width: width2,
36095
+ height: height2,
36096
+ left: rtl ? right2 : left2,
36097
+ top,
36098
+ right: rtl ? left2 : right2
36099
+ });
36100
+ getPopoverContentW();
36101
+ return [
36102
+ 2
36103
+ ];
36104
+ }
36067
36105
  });
36068
- return function(res) {
36069
- return _ref3.apply(this, arguments);
36070
- };
36071
- }()).exec();
36072
- setTimeout(function() {
36073
- getPopoverContentW();
36074
- }, 300);
36106
+ }));
36075
36107
  return [
36076
36108
  2
36077
36109
  ];
36078
36110
  });
36079
36111
  });
36080
- return function getContentWidth2() {
36081
- return _ref2.apply(this, arguments);
36082
- };
36083
- }();
36084
- var getRectTaro = /* @__PURE__ */ function() {
36085
- var _ref2 = _async_to_generator(function(targetId2) {
36086
- return __generator(this, function(_state) {
36087
- return [
36088
- 2,
36089
- new Promise(function(resolve) {
36090
- Taro.createSelectorQuery().select("#".concat(targetId2)).boundingClientRect().exec(function(res) {
36091
- resolve(res[0]);
36092
- });
36093
- })
36094
- ];
36095
- });
36096
- });
36097
- return function getRectTaro2(targetId2) {
36112
+ return function getWrapperPosition2() {
36098
36113
  return _ref2.apply(this, arguments);
36099
36114
  };
36100
36115
  }();
36101
36116
  var getPopoverContentW = /* @__PURE__ */ function() {
36102
36117
  var _ref2 = _async_to_generator(function() {
36103
- var rectContent;
36104
36118
  return __generator(this, function(_state) {
36105
- switch (_state.label) {
36106
- case 0:
36107
- return [
36108
- 4,
36109
- getRectByTaro(popoverContentRef.current)
36110
- ];
36111
- case 1:
36112
- rectContent = _state.sent();
36113
- setElWidth(rectContent.width);
36114
- setElHeight(rectContent.height);
36115
- return [
36116
- 2
36117
- ];
36118
- }
36119
+ Taro.nextTick(/* @__PURE__ */ _async_to_generator(function() {
36120
+ var rectContent;
36121
+ return __generator(this, function(_state2) {
36122
+ switch (_state2.label) {
36123
+ case 0:
36124
+ return [
36125
+ 4,
36126
+ getRectByTaro(popoverContentRef.current)
36127
+ ];
36128
+ case 1:
36129
+ rectContent = _state2.sent();
36130
+ setPopWidth(rectContent.width);
36131
+ setPopHeight(rectContent.height);
36132
+ return [
36133
+ 2
36134
+ ];
36135
+ }
36136
+ });
36137
+ }));
36138
+ return [
36139
+ 2
36140
+ ];
36119
36141
  });
36120
36142
  });
36121
36143
  return function getPopoverContentW2() {
@@ -36124,23 +36146,23 @@
36124
36146
  }();
36125
36147
  var clickAway = function() {
36126
36148
  if (closeOnOutsideClick) {
36127
- onClick && onClick();
36128
- onClose && onClose();
36149
+ onClick === null || onClick === void 0 ? void 0 : onClick();
36150
+ onClose === null || onClose === void 0 ? void 0 : onClose();
36129
36151
  }
36130
36152
  };
36131
- var _obj;
36132
- var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix$b), true), _define_property(_obj, "".concat(classPrefix$b, "-").concat(theme), theme === "dark"), _obj), className);
36153
+ var classes = classNames(classPrefix$b, _define_property({}, "".concat(classPrefix$b, "-").concat(theme), theme === "dark"), className);
36133
36154
  var popoverArrow = function() {
36134
36155
  var prefixCls2 = "nut-popover-arrow";
36135
- return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(location.split("-")[0], " ").concat(prefixCls2, "-").concat(location);
36156
+ var direction = location.split("-")[0];
36157
+ return "".concat(prefixCls2, " ").concat(prefixCls2, "-").concat(direction, " ").concat(prefixCls2, "-").concat(location);
36136
36158
  };
36137
- var getRootPosition = function() {
36159
+ var getPopoverPosition = function() {
36138
36160
  var styles = {};
36139
- if (!rootPosition) {
36161
+ if (!wrapperPosition) {
36140
36162
  styles.visibility = "hidden";
36141
36163
  return styles;
36142
36164
  }
36143
- var width2 = rootPosition.width, height2 = rootPosition.height, left2 = rootPosition.left, top = rootPosition.top, right2 = rootPosition.right;
36165
+ var width2 = wrapperPosition.width, height2 = wrapperPosition.height, left2 = wrapperPosition.left, top = wrapperPosition.top, right2 = wrapperPosition.right;
36144
36166
  var direction = location.split("-")[0];
36145
36167
  var skew = location.split("-")[1];
36146
36168
  var cross = 0;
@@ -36156,36 +36178,36 @@
36156
36178
  "bottom",
36157
36179
  "top"
36158
36180
  ].includes(direction)) {
36159
- var h = direction === "bottom" ? height2 + cross : -(elHeight + cross);
36160
- styles.top = "".concat(top + h, "px");
36181
+ var h = direction === "bottom" ? height2 + cross : -(popHeight + cross);
36182
+ styles.top = pxTransform(top + h);
36161
36183
  if (!skew) {
36162
- styles[dir] = "".concat(-(elWidth - width2) / 2 + rootPosition[dir] + parallel, "px");
36184
+ styles[dir] = pxTransform(-(popWidth - width2) / 2 + wrapperPosition[dir] + parallel);
36163
36185
  }
36164
- if (skew === "start") {
36165
- styles.left = "".concat(left2 + parallel, "px");
36186
+ if (skew === "left") {
36187
+ styles.left = pxTransform(left2 + parallel);
36166
36188
  }
36167
- if (skew === "end") {
36168
- styles.left = "".concat(right2 + parallel, "px");
36189
+ if (skew === "right") {
36190
+ styles.left = pxTransform(right2 + parallel);
36169
36191
  }
36170
36192
  }
36171
36193
  if ([
36172
36194
  "left",
36173
36195
  "right"
36174
36196
  ].includes(direction)) {
36175
- var contentW = direction === "left" ? -(elWidth + cross) : width2 + cross;
36176
- styles.left = "".concat(left2 + contentW, "px");
36197
+ var contentW = direction === "left" ? -(popWidth + cross) : width2 + cross;
36198
+ styles.left = pxTransform(left2 + contentW);
36177
36199
  if (!skew) {
36178
- styles.top = "".concat(top - elHeight / 2 + height2 / 2 - 4 + parallel, "px");
36200
+ styles.top = pxTransform(top - popHeight / 2 + height2 / 2 - 4 + parallel);
36179
36201
  }
36180
- if (skew === "start") {
36181
- styles.top = "".concat(top + parallel, "px");
36202
+ if (skew === "top") {
36203
+ styles.top = pxTransform(top + parallel);
36182
36204
  }
36183
- if (skew === "end") {
36184
- styles.top = "".concat(top + height2 + parallel, "px");
36205
+ if (skew === "bottom") {
36206
+ styles.top = pxTransform(top + height2 + parallel);
36185
36207
  }
36186
36208
  }
36187
36209
  }
36188
- styles.visibility = elWidth === 0 ? "hidden" : "initial";
36210
+ styles.visibility = popWidth === 0 ? "hidden" : "initial";
36189
36211
  return styles;
36190
36212
  };
36191
36213
  var popoverArrowStyle = function() {
@@ -36203,10 +36225,10 @@
36203
36225
  if (!skew) {
36204
36226
  styles[dir] = "calc(50% + ".concat(arrowOffset, "px)");
36205
36227
  }
36206
- if (skew === "start") {
36228
+ if (skew === "left") {
36207
36229
  styles[dir] = "".concat(base + arrowOffset, "px");
36208
36230
  }
36209
- if (skew === "end") {
36231
+ if (skew === "right") {
36210
36232
  styles[dir2] = "".concat(base - arrowOffset, "px");
36211
36233
  }
36212
36234
  }
@@ -36217,10 +36239,10 @@
36217
36239
  if (!skew) {
36218
36240
  styles.top = "calc(50% - ".concat(arrowOffset, "px)");
36219
36241
  }
36220
- if (skew === "start") {
36242
+ if (skew === "top") {
36221
36243
  styles.top = "".concat(base - arrowOffset, "px");
36222
36244
  }
36223
- if (skew === "end") {
36245
+ if (skew === "bottom") {
36224
36246
  styles.bottom = "".concat(base + arrowOffset, "px");
36225
36247
  }
36226
36248
  }
@@ -36239,6 +36261,7 @@
36239
36261
  return /* @__PURE__ */ React.createElement(React.Fragment, null, !targetId && /* @__PURE__ */ React.createElement(components.View, {
36240
36262
  className: "nut-popover-wrapper",
36241
36263
  ref: popoverRef,
36264
+ id: popoverId,
36242
36265
  onClick: function() {
36243
36266
  var _props_onClick;
36244
36267
  props === null || props === void 0 ? void 0 : (_props_onClick = props.onClick) === null || _props_onClick === void 0 ? void 0 : _props_onClick.call(props);
@@ -36251,7 +36274,7 @@
36251
36274
  style
36252
36275
  }, Array.isArray(children) ? children[0] : children), /* @__PURE__ */ React.createElement(components.View, {
36253
36276
  className: classes,
36254
- style: getRootPosition()
36277
+ style: _object_spread({}, getPopoverPosition(), style)
36255
36278
  }, /* @__PURE__ */ React.createElement(Popup, _object_spread({
36256
36279
  className: "nut-popover-content nut-popover-content-".concat(location),
36257
36280
  position: "none",
@@ -36266,25 +36289,26 @@
36266
36289
  }, /* @__PURE__ */ React.createElement(IconSVG$x, {
36267
36290
  width: 8,
36268
36291
  height: 4
36269
- })), Array.isArray(children) ? children[1] : "", list.map(function(item, index2) {
36292
+ })), Array.isArray(children) ? children[1] : null, list.map(function(item, index2) {
36293
+ var _item_action;
36270
36294
  return /* @__PURE__ */ React.createElement(components.View, {
36271
36295
  className: classNames({
36272
- "nut-popover-menu-item": true,
36273
- "nut-popover-menu-disabled": item.disabled
36296
+ "nut-popover-item": true,
36297
+ "nut-popover-item-disabled": item.disabled
36274
36298
  }, item.className),
36275
36299
  key: item.key || index2,
36276
36300
  onClick: function() {
36277
36301
  return handleSelect(item, index2);
36278
36302
  }
36279
36303
  }, item.icon && /* @__PURE__ */ React.createElement(components.View, {
36280
- className: "nut-popover-menu-item-icon"
36281
- }, item.icon), /* @__PURE__ */ React.createElement(components.View, {
36282
- className: "nut-popover-menu-item-name"
36283
- }, item.name), item.action && item.action.icon && /* @__PURE__ */ React.createElement(components.View, {
36284
- className: "nut-popover-menu-item-action-icon",
36304
+ className: "nut-popover-item-icon"
36305
+ }, item.icon), /* @__PURE__ */ React.createElement(components.Text, {
36306
+ className: "nut-popover-item-name"
36307
+ }, item.name), ((_item_action = item.action) === null || _item_action === void 0 ? void 0 : _item_action.icon) && /* @__PURE__ */ React.createElement(components.View, {
36308
+ className: "nut-popover-item-action-icon",
36285
36309
  onClick: function(e) {
36286
- var _item_action_onClick, _item_action;
36287
- return (_item_action = item.action) === null || _item_action === void 0 ? void 0 : (_item_action_onClick = _item_action.onClick) === null || _item_action_onClick === void 0 ? void 0 : _item_action_onClick.call(_item_action, e);
36310
+ var _item_action_onClick, _item_action2;
36311
+ return (_item_action2 = item.action) === null || _item_action2 === void 0 ? void 0 : (_item_action_onClick = _item_action2.onClick) === null || _item_action_onClick === void 0 ? void 0 : _item_action_onClick.call(_item_action2, e);
36288
36312
  }
36289
36313
  }, item.action.icon));
36290
36314
  }))), showPopup && closeOnOutsideClick && /* @__PURE__ */ React.createElement(components.View, {
@@ -37710,10 +37734,8 @@
37710
37734
  var context2 = React.useContext(CollapseContext);
37711
37735
  var wrapperRef = React.useRef(null);
37712
37736
  var contentRef = React.useRef(null);
37713
- var _useState = _sliced_to_array(React.useState(function() {
37714
- return Math.random().toString(36).slice(-8);
37715
- }), 1), refRandomId = _useState[0];
37716
- var target = "#nut-collapse-content-".concat(refRandomId);
37737
+ var uid = useUuid();
37738
+ var target = "nut-collapse-content-".concat(uid);
37717
37739
  var expanded = React.useMemo(function() {
37718
37740
  if (context2) {
37719
37741
  return context2.isOpen(name2);
@@ -37733,82 +37755,64 @@
37733
37755
  expanded,
37734
37756
  rotate
37735
37757
  ]);
37736
- var handleClick = function() {
37737
- if (!disabled) {
37738
- context2.updateValue(name2);
37739
- }
37740
- };
37741
- var _useState1 = _sliced_to_array(React.useState(null), 2), timer = _useState1[0], setTimer = _useState1[1];
37742
- var _useState2 = _sliced_to_array(React.useState("auto"), 2), currentHeight = _useState2[0], setCurrentHeight = _useState2[1];
37743
- var inAnimation = React.useRef(false);
37744
- var _useState3 = _sliced_to_array(React.useState(function() {
37745
- return expanded ? "auto" : "0px";
37746
- }), 2), wrapperHeight = _useState3[0], setWrapperHeight = _useState3[1];
37747
- var getRect2 = function(selector) {
37748
- return new Promise(function(resolve) {
37749
- Taro.createSelectorQuery().select(selector).boundingClientRect().exec(function() {
37750
- var rect = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : [];
37751
- resolve(rect[0]);
37758
+ var _useState = _sliced_to_array(React.useState(0), 2), tran = _useState[0], setTran = _useState[1];
37759
+ var _useRefState = _sliced_to_array(useRefState(0), 2), currentHeight = _useRefState[0], setCurrentHeight = _useRefState[1];
37760
+ var _useState1 = _sliced_to_array(React.useState(0), 2), wrapperHeight = _useState1[0], setWrapperHeight = _useState1[1];
37761
+ var updateRectHeight = /* @__PURE__ */ function() {
37762
+ var _ref2 = _async_to_generator(function() {
37763
+ var res;
37764
+ return __generator(this, function(_state) {
37765
+ switch (_state.label) {
37766
+ case 0:
37767
+ return [
37768
+ 4,
37769
+ getRectByTaro(contentRef.current, target)
37770
+ ];
37771
+ case 1:
37772
+ res = _state.sent();
37773
+ if (res === null || res === void 0 ? void 0 : res.height) {
37774
+ setCurrentHeight(res.height);
37775
+ setWrapperHeight(expanded ? res.height : 0);
37776
+ Taro.nextTick(function() {
37777
+ setTran(1);
37778
+ });
37779
+ }
37780
+ return [
37781
+ 2
37782
+ ];
37783
+ }
37752
37784
  });
37753
37785
  });
37754
- };
37786
+ return function updateRectHeight2() {
37787
+ return _ref2.apply(this, arguments);
37788
+ };
37789
+ }();
37755
37790
  React.useEffect(function() {
37756
- setTimeout(function() {
37757
- getRect2(target).then(function(res) {
37758
- if (res === null || res === void 0 ? void 0 : res.height) {
37759
- setCurrentHeight("".concat(res.height, "px"));
37760
- }
37761
- });
37762
- }, 200);
37791
+ Taro.nextTick(function() {
37792
+ updateRectHeight();
37793
+ });
37763
37794
  }, [
37764
- children
37795
+ children,
37796
+ expanded
37765
37797
  ]);
37766
- React.useEffect(function() {
37767
- setTimeout(function() {
37768
- getRect2(target).then(function(res) {
37769
- if (res === null || res === void 0 ? void 0 : res.height) {
37770
- setCurrentHeight("".concat(res.height, "px"));
37771
- }
37772
- });
37773
- }, 100);
37774
- }, []);
37775
37798
  var toggle = function() {
37776
- if (timer) {
37777
- clearTimeout(timer);
37778
- setTimer(timer);
37779
- }
37780
- var start = expanded ? "0px" : currentHeight;
37781
- var end = expanded ? currentHeight : "0px";
37782
- inAnimation.current = true;
37783
- setWrapperHeight(start);
37784
- setTimeout(function() {
37785
- setWrapperHeight(end);
37786
- inAnimation.current = false;
37787
- if (expanded) {
37788
- var timer2 = setTimeout(function() {
37789
- setWrapperHeight("auto");
37790
- }, 300);
37791
- setTimer(timer2);
37792
- }
37793
- }, 100);
37799
+ var end = !expanded ? currentHeight.current : 0;
37800
+ setWrapperHeight(end);
37794
37801
  };
37795
- var init = React.useRef(true);
37796
- React.useEffect(function() {
37797
- if (init.current) {
37798
- init.current = false;
37799
- } else {
37800
- toggle();
37802
+ var handleClick = function() {
37803
+ if (!disabled) {
37804
+ context2.updateValue(name2);
37805
+ setTimeout(function() {
37806
+ toggle();
37807
+ }, 150);
37801
37808
  }
37802
- }, [
37803
- expanded
37804
- ]);
37809
+ };
37810
+ var _obj;
37805
37811
  return /* @__PURE__ */ React.createElement("div", _object_spread({
37806
37812
  className: classNames(classPrefix2, className),
37807
37813
  style
37808
37814
  }, rest), /* @__PURE__ */ React.createElement(components.View, {
37809
- className: classNames("".concat(classPrefix2, "-header"), {
37810
- disabled
37811
- }),
37815
+ className: classNames("".concat(classPrefix2, "-header"), _define_property({}, "".concat(classPrefix2, "-header-disabled"), disabled)),
37812
37816
  onClick: handleClick
37813
37817
  }, /* @__PURE__ */ React.createElement(components.View, {
37814
37818
  className: "".concat(classPrefix2, "-title")
@@ -37820,17 +37824,18 @@
37820
37824
  className: "".concat(classPrefix2, "-icon"),
37821
37825
  style: iconStyle
37822
37826
  }, expandIcon || context2.expandIcon))), /* @__PURE__ */ React.createElement(components.View, {
37823
- className: "".concat(classPrefix2, "-content"),
37824
- ref: wrapperRef,
37825
- style: {
37826
- willChange: "height",
37827
+ className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix2, "-content-wrapper"), true), _define_property(_obj, "".concat(classPrefix2, "-content-wrapper-tran"), true), _obj)),
37828
+ style: tran ? {
37827
37829
  height: wrapperHeight
37828
- }
37830
+ } : {},
37831
+ ref: wrapperRef
37829
37832
  }, /* @__PURE__ */ React.createElement(components.View, {
37833
+ className: "".concat(classPrefix2, "-content"),
37830
37834
  ref: contentRef,
37831
- className: "".concat(classPrefix2, "-content-text"),
37832
- id: "nut-collapse-content-".concat(refRandomId)
37833
- }, children)));
37835
+ id: target
37836
+ }, /* @__PURE__ */ React.createElement(components.View, {
37837
+ className: "".concat(classPrefix2, "-content-text")
37838
+ }, children))));
37834
37839
  };
37835
37840
  CollapseItem.displayName = "NutCollapseItem";
37836
37841
  var defaultProps$m = _object_spread_props(_object_spread({}, ComponentDefaults), {
@@ -39625,7 +39630,6 @@
39625
39630
  ]);
39626
39631
  var getRootPosition = function() {
39627
39632
  getTaroRectById(list[active2].target).then(function(rect) {
39628
- console.log("rect", rect);
39629
39633
  setMaskRect({
39630
39634
  top: rect.top,
39631
39635
  left: rect.left,
@@ -39687,16 +39691,16 @@
39687
39691
  }
39688
39692
  }, index2 === active2 && /* @__PURE__ */ React.createElement(React.Fragment, null, showTour && /* @__PURE__ */ React.createElement(components.View, {
39689
39693
  className: "".concat(mask2 ? "nut-tour-mask" : "nut-tour-mask nut-tour-mask-none"),
39690
- id: "nut-tour-popid",
39694
+ id: "nut-tour-popid".concat(index2),
39691
39695
  style: maskStyle()
39692
39696
  }), /* @__PURE__ */ React.createElement(Popover, {
39693
39697
  visible: showPopup,
39694
39698
  location: item.location || location,
39695
- targetId: "nut-tour-popid",
39699
+ targetId: "nut-tour-popid".concat(index2 === active2 ? index2 : ""),
39696
39700
  closeOnOutsideClick: false,
39697
39701
  offset: item.popoverOffset || [
39698
39702
  0,
39699
- 12
39703
+ 8
39700
39704
  ],
39701
39705
  arrowOffset: item.arrowOffset || 0
39702
39706
  }, /* @__PURE__ */ React.createElement(React.Fragment, null), /* @__PURE__ */ React.createElement(React.Fragment, null, children || /* @__PURE__ */ React.createElement(React.Fragment, null, type2 === "step" && /* @__PURE__ */ React.createElement(components.View, {
@@ -41243,6 +41247,7 @@
41243
41247
  });
41244
41248
  };
41245
41249
  WaterMark.displayName = "NutWaterMark";
41250
+ var destroyList = [];
41246
41251
  exports.ActionSheet = ActionSheet;
41247
41252
  exports.Address = Address;
41248
41253
  exports.Animate = Animate;
@@ -41347,6 +41352,7 @@
41347
41352
  exports.Video = Video;
41348
41353
  exports.VirtualList = VirtualList;
41349
41354
  exports.WaterMark = WaterMark;
41355
+ exports.destroyList = destroyList;
41350
41356
  exports.getDefaultConfig = getDefaultConfig;
41351
41357
  exports.setDefaultConfig = setDefaultConfig;
41352
41358
  exports.useConfig = useConfig;