@nutui/nutui-react-taro 3.0.21-cpp → 3.0.22-cpp

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 +9 -2
  2. package/dist/cjs/hooks/use-props-value.js +1 -1
  3. package/dist/cjs/hooks/use-touch.js +4 -4
  4. package/dist/cjs/packages/address/cascaderRender.js +1 -1
  5. package/dist/cjs/packages/address/existRender.js +1 -1
  6. package/dist/cjs/packages/audio/audio.js +1 -1
  7. package/dist/cjs/packages/avatar/avatar.js +1 -1
  8. package/dist/cjs/packages/avatarcropper/avatarcropper.js +1 -1
  9. package/dist/cjs/packages/badge/badge.js +1 -1
  10. package/dist/cjs/packages/barrage/barrage.js +2 -1
  11. package/dist/cjs/packages/button/button.js +1 -1
  12. package/dist/cjs/packages/card/card.js +1 -1
  13. package/dist/cjs/packages/cascader/utils.js +4 -4
  14. package/dist/cjs/packages/cellgroup/cellgroup.js +1 -1
  15. package/dist/cjs/packages/checkboxgroup/checkboxgroup.js +3 -3
  16. package/dist/cjs/packages/circleprogress/circleprogress.js +1 -1
  17. package/dist/cjs/packages/collapseitem/collapseitem.js +1 -1
  18. package/dist/cjs/packages/countdown/countdown.js +1 -1
  19. package/dist/cjs/packages/datepicker/datepicker.js +1 -1
  20. package/dist/cjs/packages/dialog/dialog.js +2 -2
  21. package/dist/cjs/packages/divider/divider.js +1 -1
  22. package/dist/cjs/packages/elevator/elevator.js +1 -1
  23. package/dist/cjs/packages/ellipsis/ellipsis.js +1 -1
  24. package/dist/cjs/packages/form/form.js +1 -1
  25. package/dist/cjs/packages/grid/grid.js +1 -1
  26. package/dist/cjs/packages/griditem/griditem.js +1 -1
  27. package/dist/cjs/packages/image/image.js +1 -1
  28. package/dist/cjs/packages/imagepreview/imagepreview.js +3 -2
  29. package/dist/cjs/packages/indicator/indicator.js +1 -1
  30. package/dist/cjs/packages/infiniteloading/infiniteloading.js +3 -3
  31. package/dist/cjs/packages/input/input.js +1 -1
  32. package/dist/cjs/packages/inputnumber/inputnumber.js +1 -1
  33. package/dist/cjs/packages/loading/loading.js +1 -1
  34. package/dist/cjs/packages/menu/menu.js +1 -1
  35. package/dist/cjs/packages/overlay/overlay.js +1 -1
  36. package/dist/cjs/packages/pagination/pagination.js +1 -1
  37. package/dist/cjs/packages/picker/picker.js +1 -1
  38. package/dist/cjs/packages/pickerview/pickerroller.js +1 -1
  39. package/dist/cjs/packages/popover/popover.js +2 -2
  40. package/dist/cjs/packages/progress/progress.js +6 -9
  41. package/dist/cjs/packages/quickenter/quickenter.js +2 -2
  42. package/dist/cjs/packages/radio/radio.js +1 -1
  43. package/dist/cjs/packages/radiogroup/radiogroup.js +3 -3
  44. package/dist/cjs/packages/range/range.js +3 -3
  45. package/dist/cjs/packages/shortpassword/shortpassword.js +1 -1
  46. package/dist/cjs/packages/sidebar/sidebar.js +1 -1
  47. package/dist/cjs/packages/signature/signature.js +2 -2
  48. package/dist/cjs/packages/skeleton/skeleton.js +1 -1
  49. package/dist/cjs/packages/sticky/sticky.js +3 -3
  50. package/dist/cjs/packages/swipe/swipe.js +1 -0
  51. package/dist/cjs/packages/swiper/swiper.js +1 -1
  52. package/dist/cjs/packages/switch/switch.js +1 -1
  53. package/dist/cjs/packages/tabbaritem/tabbaritem.js +1 -1
  54. package/dist/cjs/packages/table/table.js +1 -1
  55. package/dist/cjs/packages/tabs/tabs.js +1 -1
  56. package/dist/cjs/packages/textarea/textarea.js +1 -1
  57. package/dist/cjs/packages/timeselect/timeselect.js +1 -1
  58. package/dist/cjs/packages/toast/toast.js +2 -2
  59. package/dist/cjs/packages/trendarrow/trendarrow.js +1 -1
  60. package/dist/cjs/packages/uploader/uploader.js +1 -1
  61. package/dist/cjs/packages/video/video.js +2 -2
  62. package/dist/cjs/packages/virtuallist/utils.js +1 -1
  63. package/dist/cjs/packages/virtuallist/virtuallist.js +1 -1
  64. package/dist/es/hooks/taro/use-custom-event.js +3 -3
  65. package/dist/es/hooks/taro/use-lock-scoll.js +1 -1
  66. package/dist/es/hooks/use-click-away.js +2 -2
  67. package/dist/es/hooks/use-lock-scroll.js +3 -3
  68. package/dist/es/hooks/use-pagination.js +1 -1
  69. package/dist/es/hooks/use-ref-state.js +3 -3
  70. package/dist/es/hooks/use-touch.js +13 -13
  71. package/dist/es/hooks/use-watch.js +1 -1
  72. package/dist/es/locales/en-US.js +4 -4
  73. package/dist/es/locales/id-ID.js +4 -4
  74. package/dist/es/locales/ja-JP.js +4 -4
  75. package/dist/es/locales/tr-TR.js +4 -4
  76. package/dist/es/locales/zh-CN.js +4 -4
  77. package/dist/es/locales/zh-TW.js +4 -4
  78. package/dist/es/locales/zh-UG.js +4 -4
  79. package/dist/es/packages/actionsheet/actionsheet.js +8 -8
  80. package/dist/es/packages/address/address.js +10 -10
  81. package/dist/es/packages/address/cascaderRender.js +4 -4
  82. package/dist/es/packages/address/elevatorRender.js +17 -17
  83. package/dist/es/packages/address/existRender.js +5 -5
  84. package/dist/es/packages/address/utils.js +5 -5
  85. package/dist/es/packages/animate/animate.js +3 -3
  86. package/dist/es/packages/animatingnumbers/countup.js +1 -1
  87. package/dist/es/packages/audio/audio.js +16 -16
  88. package/dist/es/packages/avatar/avatar.js +4 -4
  89. package/dist/es/packages/avatarcropper/avatarcropper.js +25 -25
  90. package/dist/es/packages/avatargroup/avatargroup.js +1 -1
  91. package/dist/es/packages/backtop/backtop.js +3 -3
  92. package/dist/es/packages/badge/badge.js +3 -3
  93. package/dist/es/packages/barrage/barrage.js +10 -9
  94. package/dist/es/packages/button/button.js +4 -4
  95. package/dist/es/packages/calendar/calendar.js +12 -12
  96. package/dist/es/packages/calendar/utils.js +7 -7
  97. package/dist/es/packages/calendarcard/calendarcard.js +24 -24
  98. package/dist/es/packages/calendarcard/icon.js +5 -5
  99. package/dist/es/packages/calendarcard/utils.js +5 -5
  100. package/dist/es/packages/calendaritem/calendaritem.js +32 -32
  101. package/dist/es/packages/card/card.js +2 -2
  102. package/dist/es/packages/cascader/cascader.js +15 -15
  103. package/dist/es/packages/cascader/utils.js +6 -6
  104. package/dist/es/packages/cell/cell.js +4 -4
  105. package/dist/es/packages/cellgroup/cellgroup.js +2 -2
  106. package/dist/es/packages/checkbox/checkbox.js +10 -10
  107. package/dist/es/packages/checkboxgroup/checkboxgroup.js +7 -7
  108. package/dist/es/packages/circleprogress/circleprogress.js +7 -7
  109. package/dist/es/packages/col/col.js +2 -2
  110. package/dist/es/packages/collapse/collapse.js +3 -3
  111. package/dist/es/packages/collapse/context.js +2 -2
  112. package/dist/es/packages/collapseitem/collapseitem.js +5 -5
  113. package/dist/es/packages/configprovider/configprovider.js +5 -5
  114. package/dist/es/packages/countdown/countdown.js +15 -15
  115. package/dist/es/packages/datepicker/datepicker.js +12 -12
  116. package/dist/es/packages/datepicker/utils.js +7 -7
  117. package/dist/es/packages/datepickerview/datepickerview.js +5 -5
  118. package/dist/es/packages/dialog/content.js +6 -6
  119. package/dist/es/packages/dialog/dialog.js +24 -24
  120. package/dist/es/packages/divider/divider.js +3 -3
  121. package/dist/es/packages/drag/drag.js +5 -5
  122. package/dist/es/packages/elevator/elevator.js +17 -17
  123. package/dist/es/packages/ellipsis/ellipsis.js +14 -14
  124. package/dist/es/packages/empty/empty.js +1 -1
  125. package/dist/es/packages/fixednav/fixednav.js +7 -7
  126. package/dist/es/packages/form/form.js +7 -7
  127. package/dist/es/packages/form/useform.js +4 -4
  128. package/dist/es/packages/formitem/formitem.js +1 -1
  129. package/dist/es/packages/grid/context.js +1 -1
  130. package/dist/es/packages/grid/grid.js +4 -4
  131. package/dist/es/packages/griditem/griditem.js +6 -6
  132. package/dist/es/packages/hoverbutton/hoverbutton.js +1 -1
  133. package/dist/es/packages/hoverbuttonitem/hoverbuttonitem.js +6 -6
  134. package/dist/es/packages/hoverbuttonitem/utils.js +1 -1
  135. package/dist/es/packages/image/image.js +7 -7
  136. package/dist/es/packages/imagepreview/imagepreview.js +16 -15
  137. package/dist/es/packages/indicator/indicator.js +5 -5
  138. package/dist/es/packages/infiniteloading/infiniteloading.js +14 -14
  139. package/dist/es/packages/input/input.js +13 -13
  140. package/dist/es/packages/inputnumber/inputnumber.js +12 -12
  141. package/dist/es/packages/layout/layout.js +1 -1
  142. package/dist/es/packages/loading/loading.js +3 -3
  143. package/dist/es/packages/lottie/index.js +1 -1
  144. package/dist/es/packages/lottie/lottiemp.js +1 -1
  145. package/dist/es/packages/menu/menu.js +13 -13
  146. package/dist/es/packages/menuitem/menuitem.js +12 -12
  147. package/dist/es/packages/navbar/navbar.js +7 -7
  148. package/dist/es/packages/noticebar/noticebar.js +22 -22
  149. package/dist/es/packages/notify/notify.js +8 -8
  150. package/dist/es/packages/numberkeyboard/numberkeyboard.js +12 -12
  151. package/dist/es/packages/overlay/overlay.js +7 -7
  152. package/dist/es/packages/pagination/pagination.js +8 -8
  153. package/dist/es/packages/picker/picker.js +15 -15
  154. package/dist/es/packages/pickerview/pickerroller.js +12 -12
  155. package/dist/es/packages/pickerview/pickerview.js +3 -3
  156. package/dist/es/packages/pickerview/utils.js +6 -6
  157. package/dist/es/packages/popover/popover.js +16 -16
  158. package/dist/es/packages/popup/popup.js +13 -13
  159. package/dist/es/packages/price/price.js +8 -8
  160. package/dist/es/packages/progress/progress.js +16 -19
  161. package/dist/es/packages/pulltorefresh/pulltorefresh.js +8 -8
  162. package/dist/es/packages/quickenter/quickenter.js +14 -14
  163. package/dist/es/packages/radio/radio.js +11 -11
  164. package/dist/es/packages/radiogroup/radiogroup.js +6 -6
  165. package/dist/es/packages/range/range.js +12 -12
  166. package/dist/es/packages/rate/rate.js +11 -11
  167. package/dist/es/packages/resultpage/resultpage.js +1 -1
  168. package/dist/es/packages/row/row.js +4 -4
  169. package/dist/es/packages/safearea/safearea.js +1 -1
  170. package/dist/es/packages/searchbar/searchbar.js +4 -4
  171. package/dist/es/packages/segmented/segmented.js +4 -4
  172. package/dist/es/packages/shortpassword/shortpassword.js +7 -7
  173. package/dist/es/packages/sidebar/sidebar.js +11 -11
  174. package/dist/es/packages/sidebar/utils.js +1 -1
  175. package/dist/es/packages/sidebaritem/sidebaritem.js +1 -1
  176. package/dist/es/packages/signature/signature.js +15 -15
  177. package/dist/es/packages/skeleton/skeleton.js +4 -4
  178. package/dist/es/packages/space/space.js +1 -1
  179. package/dist/es/packages/step/step.js +1 -1
  180. package/dist/es/packages/steps/steps.js +1 -1
  181. package/dist/es/packages/sticky/sticky.js +5 -5
  182. package/dist/es/packages/swipe/swipe.js +17 -16
  183. package/dist/es/packages/swiper/swiper.js +7 -7
  184. package/dist/es/packages/swiperitem/swiperitem.js +1 -1
  185. package/dist/es/packages/switch/switch.js +6 -6
  186. package/dist/es/packages/tabbar/tabbar.js +2 -2
  187. package/dist/es/packages/tabbaritem/tabbaritem.js +10 -10
  188. package/dist/es/packages/table/table.js +10 -10
  189. package/dist/es/packages/tabpane/tabpane.js +1 -1
  190. package/dist/es/packages/tabs/tabs.js +11 -11
  191. package/dist/es/packages/tag/tag.js +10 -10
  192. package/dist/es/packages/textarea/textarea.js +11 -11
  193. package/dist/es/packages/timedetail/timedetail.js +3 -3
  194. package/dist/es/packages/timeselect/timeselect.js +6 -6
  195. package/dist/es/packages/toast/toast.js +10 -10
  196. package/dist/es/packages/tour/tour.js +10 -10
  197. package/dist/es/packages/trendarrow/trendarrow.js +4 -4
  198. package/dist/es/packages/uploader/preview.js +8 -8
  199. package/dist/es/packages/uploader/uploader.js +19 -19
  200. package/dist/es/packages/video/video.js +3 -3
  201. package/dist/es/packages/virtuallist/utils.js +5 -5
  202. package/dist/es/packages/virtuallist/virtuallist.js +8 -8
  203. package/dist/es/packages/watermark/watermark.js +2 -2
  204. package/dist/es/utils/clamp.js +1 -1
  205. package/dist/es/utils/date.js +3 -3
  206. package/dist/es/utils/get-rect.js +1 -1
  207. package/dist/es/utils/interceptor.js +1 -1
  208. package/dist/es/utils/is-date.js +1 -1
  209. package/dist/es/utils/is-empty.js +1 -1
  210. package/dist/es/utils/is-function.js +1 -1
  211. package/dist/es/utils/is-object.js +1 -1
  212. package/dist/es/utils/is-promise.js +1 -1
  213. package/dist/es/utils/pad-zero.js +1 -1
  214. package/dist/es/utils/px-check.js +1 -1
  215. package/dist/es/utils/sleep.js +1 -1
  216. package/dist/es/utils/taro/ConfigurableCSSTransition.js +1 -1
  217. package/dist/es/utils/taro/get-rect-by-id.js +1 -1
  218. package/dist/es/utils/taro/get-rect.js +2 -2
  219. package/dist/es/utils/taro/get-system-info.js +2 -2
  220. package/dist/es/utils/taro/platform.js +4 -4
  221. package/dist/es/utils/upper-case-first.js +1 -1
  222. package/dist/nutui.react.umd.js +1147 -1142
  223. package/dist/style-jmapp.css +1 -1
  224. package/dist/style-jmapp.scss +31 -31
  225. package/dist/style-jrkf.css +1 -1
  226. package/dist/style-jrkf.scss +24 -24
  227. package/dist/style.css +1 -1
  228. package/dist/style.scss +40 -40
  229. package/package.json +1 -1
  230. package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.d.ts +0 -15
  231. package/dist/cjs/utils/taro/ConfigurableCSSTransition copy.js +0 -130
  232. package/dist/es/utils/taro/ConfigurableCSSTransition copy.d.ts +0 -15
  233. package/dist/es/utils/taro/ConfigurableCSSTransition copy.js +0 -119
@@ -16,11 +16,11 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
16
16
  lockScroll: true,
17
17
  overlay: true,
18
18
  icon: null,
19
- onOpen: function(index, from) {},
20
- onClose: function(index, from) {}
19
+ onOpen: function onOpen(index, from) {},
20
+ onClose: function onClose(index, from) {}
21
21
  });
22
- export var Menu = function(props) {
23
- var _ref = _object_spread({}, defaultProps, props), className = _ref.className, icon = _ref.icon, scrollFixed = _ref.scrollFixed, lockScroll = _ref.lockScroll, overlay = _ref.overlay, closeOnOverlayClick = _ref.closeOnOverlayClick, children = _ref.children, activeColor = _ref.activeColor, onClose = _ref.onClose, onOpen = _ref.onOpen, rest = _object_without_properties(_ref, [
22
+ export var Menu = function Menu(props) {
23
+ var _$_object_spread = _object_spread({}, defaultProps, props), className = _$_object_spread.className, icon = _$_object_spread.icon, scrollFixed = _$_object_spread.scrollFixed, lockScroll = _$_object_spread.lockScroll, overlay = _$_object_spread.overlay, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, children = _$_object_spread.children, activeColor = _$_object_spread.activeColor, onClose = _$_object_spread.onClose, onOpen = _$_object_spread.onOpen, rest = _object_without_properties(_$_object_spread, [
24
24
  "className",
25
25
  "icon",
26
26
  "scrollFixed",
@@ -39,7 +39,7 @@ export var Menu = function(props) {
39
39
  var cls = classNames("nut-menu", className, {
40
40
  'scroll-fixed': isScrollFixed
41
41
  });
42
- var getScrollTop = function(el) {
42
+ var getScrollTop = function getScrollTop(el) {
43
43
  return Math.max(0, el === window ? window.scrollY : el.scrollTop);
44
44
  };
45
45
  var onScroll = useCallback(function() {
@@ -60,7 +60,7 @@ export var Menu = function(props) {
60
60
  scrollFixed,
61
61
  onScroll
62
62
  ]);
63
- var toggleMenuItem = function(index) {
63
+ var toggleMenuItem = function toggleMenuItem(index) {
64
64
  var from = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'NORMAL';
65
65
  showMenuItem[index] = !showMenuItem[index];
66
66
  if (showMenuItem[index]) {
@@ -73,17 +73,17 @@ export var Menu = function(props) {
73
73
  });
74
74
  setShowMenuItem(_to_consumable_array(temp));
75
75
  };
76
- var hideMenuItem = function(index) {
76
+ var hideMenuItem = function hideMenuItem(index) {
77
77
  var from = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 'NORMAL';
78
78
  showMenuItem[index] = false;
79
79
  setShowMenuItem(_to_consumable_array(showMenuItem));
80
80
  onClose && onClose(index, from);
81
81
  };
82
- var updateTitle = function(text, index) {
82
+ var updateTitle = function updateTitle(text, index) {
83
83
  menuItemTitle[index] = text;
84
84
  setMenuItemTitle(_to_consumable_array(menuItemTitle));
85
85
  };
86
- var cloneChildren = function() {
86
+ var cloneChildren = function cloneChildren() {
87
87
  return React.Children.map(children, function(child, index) {
88
88
  return /*#__PURE__*/ React.cloneElement(child, _object_spread_props(_object_spread({}, child.props), {
89
89
  show: showMenuItem[index],
@@ -101,20 +101,20 @@ export var Menu = function(props) {
101
101
  }));
102
102
  });
103
103
  };
104
- var menuTitle = function() {
104
+ var menuTitle = function menuTitle() {
105
105
  return React.Children.map(children, function(child, index) {
106
106
  if (/*#__PURE__*/ React.isValidElement(child)) {
107
107
  var _child_props = child.props, title = _child_props.title, titleIcon = _child_props.titleIcon, options = _child_props.options, value = _child_props.value, defaultValue = _child_props.defaultValue, disabled = _child_props.disabled, direction = _child_props.direction;
108
108
  var selected = options === null || options === void 0 ? void 0 : options.filter(function(option) {
109
109
  return option.value === (value !== undefined ? value : defaultValue);
110
110
  });
111
- var finallyTitle = function() {
111
+ var finallyTitle = function finallyTitle() {
112
112
  if (title) return title;
113
113
  if (menuItemTitle && menuItemTitle[index]) return menuItemTitle[index];
114
114
  if (selected && selected.length && selected[0].text) return selected[0].text;
115
115
  return '';
116
116
  };
117
- var finallyIcon = function() {
117
+ var finallyIcon = function finallyIcon() {
118
118
  if (titleIcon) return titleIcon;
119
119
  if (icon) return icon;
120
120
  return direction === 'up' ? /*#__PURE__*/ React.createElement(ArrowUp, {
@@ -136,7 +136,7 @@ export var Menu = function(props) {
136
136
  color: showMenuItem[index] ? activeColor : ''
137
137
  },
138
138
  key: index,
139
- onClick: function() {
139
+ onClick: function onClick() {
140
140
  if ((!options || !options.length) && !child.props.children) return;
141
141
  !disabled && toggleMenuItem(index);
142
142
  }
@@ -23,7 +23,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
23
23
  closeOnClickAway: true,
24
24
  activeTitleClass: '',
25
25
  inactiveTitleClass: '',
26
- onChange: function(value) {
26
+ onChange: function onChange(value) {
27
27
  return undefined;
28
28
  }
29
29
  });
@@ -34,7 +34,7 @@ export var MenuItem = /*#__PURE__*/ forwardRef(function(props, ref) {
34
34
  defaultValue: defaultValue,
35
35
  value: value,
36
36
  finalValue: undefined,
37
- onChange: function(v) {
37
+ onChange: function onChange1(v) {
38
38
  var _options_filter = _sliced_to_array(options.filter(function(o) {
39
39
  return o.value === v;
40
40
  }), 1), option = _options_filter[0];
@@ -104,22 +104,22 @@ export var MenuItem = /*#__PURE__*/ forwardRef(function(props, ref) {
104
104
  usePageScroll(updateItemOffset);
105
105
  useImperativeHandle(ref, function() {
106
106
  return {
107
- toggle: function(s) {
107
+ toggle: function toggle(s) {
108
108
  var from = 'REF';
109
109
  s ? parent.toggleMenuItem(index, from) : parent.hideMenuItem(index, from);
110
110
  }
111
111
  };
112
112
  });
113
- var getIconCName = function(optionVal, value) {
113
+ var getIconCName = function getIconCName(optionVal, value) {
114
114
  var _obj;
115
115
  return classNames((_obj = {}, _define_property(_obj, activeTitleClass, optionVal === value), _define_property(_obj, inactiveTitleClass, optionVal !== value), _obj));
116
116
  };
117
- var setTitle = function(text) {
117
+ var setTitle = function setTitle(text) {
118
118
  if (!title) {
119
119
  parent.updateTitle(text, index);
120
120
  }
121
121
  };
122
- var handleClick = function(item) {
122
+ var handleClick = function handleClick(item) {
123
123
  parent.toggleMenuItem(index);
124
124
  setTitle(item.text);
125
125
  setValue(item.value);
@@ -128,13 +128,13 @@ export var MenuItem = /*#__PURE__*/ forwardRef(function(props, ref) {
128
128
  top: 0,
129
129
  height: 0
130
130
  }), 2), position = _useState1[0], setPosition = _useState1[1];
131
- var isShow = function() {
131
+ var isShow = function isShow() {
132
132
  if (showPopup) return {};
133
133
  return {
134
134
  display: 'none'
135
135
  };
136
136
  };
137
- var getPosition = function() {
137
+ var getPosition = function getPosition() {
138
138
  return direction === 'down' ? {
139
139
  top: "".concat(position.top + position.height, "px"),
140
140
  bottom: '0',
@@ -145,7 +145,7 @@ export var MenuItem = /*#__PURE__*/ forwardRef(function(props, ref) {
145
145
  height: 'initial'
146
146
  };
147
147
  };
148
- var placeholderStyle = function() {
148
+ var placeholderStyle = function placeholderStyle() {
149
149
  if (direction === 'down') {
150
150
  return _object_spread({
151
151
  height: "".concat(position.top + position.height, "px")
@@ -163,7 +163,7 @@ export var MenuItem = /*#__PURE__*/ forwardRef(function(props, ref) {
163
163
  up: direction === 'up'
164
164
  })),
165
165
  style: placeholderStyle(),
166
- onClick: function() {
166
+ onClick: function onClick() {
167
167
  return parent.toggleMenuItem(index);
168
168
  }
169
169
  }) : null, parent.overlay ? /*#__PURE__*/ React.createElement(Overlay, {
@@ -172,7 +172,7 @@ export var MenuItem = /*#__PURE__*/ forwardRef(function(props, ref) {
172
172
  lockScroll: parent.lockScroll,
173
173
  visible: showPopup,
174
174
  closeOnOverlayClick: parent.closeOnOverlayClick,
175
- onClick: function() {
175
+ onClick: function onClick() {
176
176
  parent.closeOnOverlayClick && parent.hideMenuItem(index);
177
177
  }
178
178
  }) : null, /*#__PURE__*/ React.createElement(View, {
@@ -197,7 +197,7 @@ export var MenuItem = /*#__PURE__*/ forwardRef(function(props, ref) {
197
197
  style: {
198
198
  flexBasis: "".concat(100 / columns, "%")
199
199
  },
200
- onClick: function() {
200
+ onClick: function onClick() {
201
201
  handleClick(item);
202
202
  }
203
203
  }, item.value === innerValue ? /*#__PURE__*/ React.createElement(React.Fragment, null, icon ? /*#__PURE__*/ React.cloneElement(icon, {
@@ -16,42 +16,42 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
16
16
  placeholder: false,
17
17
  zIndex: 10
18
18
  });
19
- export var NavBar = function(props) {
19
+ export var NavBar = function NavBar(props) {
20
20
  var _$_object_spread = _object_spread({}, defaultProps, props), right = _$_object_spread.right, left = _$_object_spread.left, title = _$_object_spread.title, className = _$_object_spread.className, style = _$_object_spread.style, back = _$_object_spread.back, fixed = _$_object_spread.fixed, safeAreaInsetTop = _$_object_spread.safeAreaInsetTop, placeholder = _$_object_spread.placeholder, zIndex = _$_object_spread.zIndex, onBackClick = _$_object_spread.onBackClick;
21
21
  var classPrefix = 'nut-navbar';
22
22
  var rtl = useRtl();
23
23
  var children = Array.isArray(props.children) ? props.children : [
24
24
  props.children
25
25
  ];
26
- var styles = function() {
26
+ var styles = function styles() {
27
27
  return _object_spread_props(_object_spread({}, style), {
28
28
  zIndex: zIndex
29
29
  });
30
30
  };
31
- var renderLeft = function() {
31
+ var renderLeft = function renderLeft() {
32
32
  var _obj, _obj1;
33
33
  return /*#__PURE__*/ React.createElement(View, {
34
34
  className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-left"), true), _define_property(_obj, "".concat(classPrefix, "-left-maxwidth"), title), _define_property(_obj, "".concat(classPrefix, "-left-hidden"), !left && !back), _define_property(_obj, "".concat(classPrefix, "-left-rtl"), rtl), _obj))
35
35
  }, back ? /*#__PURE__*/ React.createElement(View, {
36
36
  className: classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix, "-left-back"), true), _define_property(_obj1, "".concat(classPrefix, "-left-back-children"), left), _define_property(_obj1, "".concat(classPrefix, "-left-back-children-rtl"), left && rtl), _obj1)),
37
- onClick: function(e) {
37
+ onClick: function onClick(e) {
38
38
  return onBackClick(e);
39
39
  }
40
40
  }, back) : null, left);
41
41
  };
42
- var renderContent = function() {
42
+ var renderContent = function renderContent() {
43
43
  var _obj;
44
44
  return /*#__PURE__*/ React.createElement(View, {
45
45
  className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-title"), true), _define_property(_obj, "".concat(classPrefix, "-title-center"), title), _obj))
46
46
  }, title || children);
47
47
  };
48
- var renderRight = function() {
48
+ var renderRight = function renderRight() {
49
49
  var _obj;
50
50
  return /*#__PURE__*/ React.createElement(View, {
51
51
  className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-right"), true), _define_property(_obj, "".concat(classPrefix, "-right-maxwidth"), title), _define_property(_obj, "".concat(classPrefix, "-right-rtl"), rtl), _obj))
52
52
  }, right);
53
53
  };
54
- var renderWrapper = function() {
54
+ var renderWrapper = function renderWrapper() {
55
55
  return /*#__PURE__*/ React.createElement(View, {
56
56
  className: cls,
57
57
  style: styles()
@@ -32,7 +32,7 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
32
32
  scrollable: null,
33
33
  speed: 50
34
34
  });
35
- export var NoticeBar = function(props) {
35
+ export var NoticeBar = function NoticeBar(props) {
36
36
  var rtl = useRtl();
37
37
  var _$_object_spread = _object_spread({}, defaultProps, props), children = _$_object_spread.children, className = _$_object_spread.className, style = _$_object_spread.style, align = _$_object_spread.align, direction = _$_object_spread.direction, list = _$_object_spread.list, duration = _$_object_spread.duration, height = _$_object_spread.height, content = _$_object_spread.content, closeable = _$_object_spread.closeable, wrap = _$_object_spread.wrap, leftIcon = _$_object_spread.leftIcon, rightIcon = _$_object_spread.rightIcon, right = _$_object_spread.right, delay = _$_object_spread.delay, scrollable = _$_object_spread.scrollable, speed = _$_object_spread.speed, close = _$_object_spread.close, click = _$_object_spread.click, onClose = _$_object_spread.onClose, onClick = _$_object_spread.onClick, onItemClick = _$_object_spread.onItemClick;
38
38
  var classPrefix = 'nut-noticebar';
@@ -122,7 +122,7 @@ export var NoticeBar = function(props) {
122
122
  }, [
123
123
  list
124
124
  ]);
125
- var initScrollWrap = function() {
125
+ var initScrollWrap = function initScrollWrap() {
126
126
  if (showNoticeBar === false) {
127
127
  return;
128
128
  }
@@ -172,24 +172,24 @@ export var NoticeBar = function(props) {
172
172
  })();
173
173
  });
174
174
  };
175
- var handleClick = function(event) {
175
+ var handleClick = function handleClick(event) {
176
176
  click && click(event);
177
177
  onClick && onClick(event);
178
178
  };
179
- var onAnimationEnd = function() {
179
+ var onAnimationEnd = function onAnimationEnd() {
180
180
  SetFirstRound(false);
181
181
  setTimeout(function() {
182
182
  SetAnimationDuration((offsetWidth + wrapWidth) / speed);
183
183
  SetAnimationClass('play-infinite');
184
184
  }, 0);
185
185
  };
186
- var startRollEasy = function() {
186
+ var startRollEasy = function startRollEasy() {
187
187
  showhorseLamp();
188
188
  var time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1000 : ~~(height / speed / 4) * 1000;
189
189
  var timerCurr = window.setInterval(showhorseLamp, time + Number(duration));
190
190
  SetTimer(timerCurr);
191
191
  };
192
- var showhorseLamp = function() {
192
+ var showhorseLamp = function showhorseLamp() {
193
193
  SetAnimate(true);
194
194
  var time = height / speed / 4 < 1 ? Number((height / speed / 4).toFixed(1)) * 1000 : ~~(height / speed / 4) * 1000;
195
195
  setTimeout(function() {
@@ -208,7 +208,7 @@ export var NoticeBar = function(props) {
208
208
  onClose,
209
209
  closeable
210
210
  ]);
211
- var isEllipsis = function() {
211
+ var isEllipsis = function isEllipsis() {
212
212
  if (isCanScroll == null && align === 'left') {
213
213
  return wrap;
214
214
  }
@@ -229,7 +229,7 @@ export var NoticeBar = function(props) {
229
229
  marginTop: animate ? "-".concat(height, "px") : ''
230
230
  };
231
231
  // 垂直自定义滚动方式
232
- var init = function() {
232
+ var init = function init() {
233
233
  var activeIndex = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
234
234
  if (!(container === null || container === void 0 ? void 0 : container.current)) return;
235
235
  setTimeout(function() {
@@ -286,13 +286,13 @@ export var NoticeBar = function(props) {
286
286
  isContainerReady
287
287
  ]);
288
288
  // 清除定时器
289
- var stopAutoPlay = function() {
289
+ var stopAutoPlay = function stopAutoPlay() {
290
290
  clearTimeout(swiperRef.current.autoplayTimer);
291
291
  swiperRef.current.moving = false;
292
292
  swiperRef.current.autoplayTimer = null;
293
293
  };
294
294
  // 定时轮播
295
- var autoplay = function() {
295
+ var autoplay = function autoplay1() {
296
296
  if (childCount <= 1) return;
297
297
  stopAutoPlay();
298
298
  swiperRef.current.autoplayTimer = setTimeout(function() {
@@ -301,7 +301,7 @@ export var NoticeBar = function(props) {
301
301
  }, Number(duration) + 100 * speed);
302
302
  };
303
303
  // 切换方法
304
- var move = function(param) {
304
+ var move = function move(param) {
305
305
  var _param_pace = param.pace, pace = _param_pace === void 0 ? 0 : _param_pace, _param_offset = param.offset, offset = _param_offset === void 0 ? 0 : _param_offset;
306
306
  if (childCount <= 1) return;
307
307
  var targetActive = getActive(pace);
@@ -325,7 +325,7 @@ export var NoticeBar = function(props) {
325
325
  setStyle(targetOffset);
326
326
  };
327
327
  // 下一页
328
- var next = function() {
328
+ var next = function next() {
329
329
  resetPosition();
330
330
  requestFrame(function() {
331
331
  requestFrame(function() {
@@ -336,10 +336,10 @@ export var NoticeBar = function(props) {
336
336
  });
337
337
  });
338
338
  };
339
- var handleItemClick = function(event, value) {
339
+ var handleItemClick = function handleItemClick(event, value) {
340
340
  onItemClick && onItemClick(event, value);
341
341
  };
342
- var setStyle = function() {
342
+ var setStyle = function setStyle() {
343
343
  var moveOffset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : offset, currentRect = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : rect;
344
344
  var target = innerRef.current;
345
345
  if (!target) {
@@ -354,7 +354,7 @@ export var NoticeBar = function(props) {
354
354
  target.style.transform = "translate3D(0,".concat(_offset, "px,0)");
355
355
  };
356
356
  // 无缝滚动第一个元素位移控制
357
- var itemStyle = function(index) {
357
+ var itemStyle = function itemStyle(index) {
358
358
  var style = {
359
359
  width: '100%'
360
360
  };
@@ -369,7 +369,7 @@ export var NoticeBar = function(props) {
369
369
  return style;
370
370
  };
371
371
  // 确定当前active 元素
372
- var getActive = function(pace) {
372
+ var getActive = function getActive(pace) {
373
373
  var currentActive = activeRef.current;
374
374
  if (pace) {
375
375
  var _active = currentActive + pace;
@@ -378,22 +378,22 @@ export var NoticeBar = function(props) {
378
378
  return currentActive;
379
379
  };
380
380
  // 计算位移
381
- var getOffset = function(active) {
381
+ var getOffset = function getOffset(active) {
382
382
  var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
383
383
  var currentPosition = active * Number(height);
384
384
  var targetOffset = offset - currentPosition;
385
385
  return targetOffset;
386
386
  };
387
387
  // 浏览器 帧 事件
388
- var requestFrame = function(fn) {
388
+ var requestFrame = function requestFrame(fn) {
389
389
  window.requestAnimationFrame.call(window, fn);
390
390
  };
391
391
  // 取值 方法
392
- var range = function(num, min, max) {
392
+ var range = function range(num, min, max) {
393
393
  return Math.min(Math.max(num, min), max);
394
394
  };
395
395
  // 重置首尾位置信息
396
- var resetPosition = function() {
396
+ var resetPosition = function resetPosition() {
397
397
  var currentActive = activeRef.current;
398
398
  swiperRef.current.moving = true;
399
399
  if (currentActive <= -1) {
@@ -484,7 +484,7 @@ export var NoticeBar = function(props) {
484
484
  return /*#__PURE__*/ React.createElement(View, {
485
485
  style: itemStyle(index),
486
486
  key: index,
487
- onClick: function(e) {
487
+ onClick: function onClick(e) {
488
488
  handleItemClick(e, item);
489
489
  }
490
490
  }, item);
@@ -498,7 +498,7 @@ export var NoticeBar = function(props) {
498
498
  height: height
499
499
  },
500
500
  key: index,
501
- onClick: function(e) {
501
+ onClick: function onClick(e) {
502
502
  handleItemClick(e, item);
503
503
  }
504
504
  }, item);
@@ -22,11 +22,11 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
22
22
  leftIcon: null,
23
23
  rightIcon: null,
24
24
  duration: 3000,
25
- onClose: function() {},
26
- onClick: function() {}
25
+ onClose: function onClose() {},
26
+ onClick: function onClick() {}
27
27
  });
28
28
  var classPrefix = 'nut-notify';
29
- export var Notify = function(props) {
29
+ export var Notify = function Notify(props) {
30
30
  var _mergeProps = mergeProps(defaultProps, props), id = _mergeProps.id, style = _mergeProps.style, children = _mergeProps.children, distance = _mergeProps.distance, navHeight = _mergeProps.navHeight, closeable = _mergeProps.closeable, leftIcon = _mergeProps.leftIcon, rightIcon = _mergeProps.rightIcon, position = _mergeProps.position, visible = _mergeProps.visible, duration = _mergeProps.duration, className = _mergeProps.className, onClose = _mergeProps.onClose, onClick = _mergeProps.onClick;
31
31
  useCustomEvent(id, function(status) {
32
32
  status ? show() : hide();
@@ -42,7 +42,7 @@ export var Notify = function(props) {
42
42
  }, [
43
43
  visible
44
44
  ]);
45
- var show = function() {
45
+ var show = function show() {
46
46
  setShowNotify(true);
47
47
  clearTimer();
48
48
  if (duration) {
@@ -51,13 +51,13 @@ export var Notify = function(props) {
51
51
  }, duration);
52
52
  }
53
53
  };
54
- var clearTimer = function() {
54
+ var clearTimer = function clearTimer() {
55
55
  if (timer) {
56
56
  clearTimeout(timer);
57
57
  timer = null;
58
58
  }
59
59
  };
60
- var hide = function() {
60
+ var hide = function hide() {
61
61
  setShowNotify(false);
62
62
  onClose();
63
63
  };
@@ -76,10 +76,10 @@ export var Notify = function(props) {
76
76
  ]);
77
77
  var _obj;
78
78
  var classes = classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix), true), _define_property(_obj, "".concat(className), true), _obj));
79
- var handleClick = function() {
79
+ var handleClick = function handleClick() {
80
80
  onClick === null || onClick === void 0 ? void 0 : onClick();
81
81
  };
82
- var handleClickIcon = function() {
82
+ var handleClickIcon = function handleClickIcon() {
83
83
  hide();
84
84
  };
85
85
  var _obj1;
@@ -17,9 +17,9 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
17
17
  type: 'default',
18
18
  custom: [],
19
19
  random: false,
20
- onClose: function() {}
20
+ onClose: function onClose() {}
21
21
  });
22
- export var NumberKeyboard = function(props) {
22
+ export var NumberKeyboard = function NumberKeyboard(props) {
23
23
  var locale = useConfig().locale;
24
24
  var _mergeProps = mergeProps(defaultProps, props), title = _mergeProps.title, rightActions = _mergeProps.rightActions, confirmText = _mergeProps.confirmText, visible = _mergeProps.visible, type = _mergeProps.type, custom = _mergeProps.custom, random = _mergeProps.random, style = _mergeProps.style, className = _mergeProps.className, onChange = _mergeProps.onChange, onDelete = _mergeProps.onDelete, onClose = _mergeProps.onClose, onConfirm = _mergeProps.onConfirm, rest = _object_without_properties(_mergeProps, [
25
25
  "title",
@@ -37,7 +37,7 @@ export var NumberKeyboard = function(props) {
37
37
  "onConfirm"
38
38
  ]);
39
39
  var classPrefix = 'nut-numberkeyboard';
40
- var getBasicKeys = function() {
40
+ var getBasicKeys = function getBasicKeys() {
41
41
  var keys = new Array(9).fill(0).map(function(_, index) {
42
42
  return {
43
43
  id: String(index + 1),
@@ -48,7 +48,7 @@ export var NumberKeyboard = function(props) {
48
48
  return Math.random() > 0.5 ? 1 : -1;
49
49
  }) : keys;
50
50
  };
51
- var getCustomKeys = function() {
51
+ var getCustomKeys = function getCustomKeys() {
52
52
  var customKeys = [
53
53
  {
54
54
  id: 'close',
@@ -85,7 +85,7 @@ export var NumberKeyboard = function(props) {
85
85
  random,
86
86
  custom
87
87
  ]);
88
- var DeleteIcon = function() {
88
+ var DeleteIcon = function DeleteIcon() {
89
89
  var style = {
90
90
  background: "url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOjM5Q0FBNDQwRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjM5Q0FBNDQxRjdFMzExRUFCMjM0QkJCRjE0NkZCODk4Ii8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+T12ahwAABClJREFUeNrUWVtIFFEY3pkdrbaCiAINK81VW3d2102pjKLtoXoJrNAswoeEXoyilx7sJXvIh6CHAoMg6yEfSpdECIqE0jCMbMm9qCVYUmR5S8huXmZO39nWOI7mzsy6uzqgM/vvzNnv+y/n/84ZjhBiWMwHF+kA+fn5y0ZHRzNwuTomgDnui9/vfzMvBJxWa7bE87W4tMbY8S8MhNz0BQLVugnY7fZdGORZPNNHJmSPUSf47QD/PN75z3NcpqD1IVEU8wC+dZojDIajyMu6WAG322zBmQf/7LzGnHeAdRtjmuAIKYoleMWxQnUEHA6HVZLldsb0m3oehdQQzzQSVILPJLIcYEw/4HkK/kG86yAsAZvNtgng3059hte/Gf56/uFCaGR8mIJdj3m2hzGNGAkpRM4vCPBzErBYLMko2A//DIQMoQ0WtgcCjWFnCVGswEzxCecqLc0y9Nyww2ariYhAbm7umgRB6GNM/QTgfT7fEzWD4t7dOK0D4TKAcrtcLkENeNx/gUoSpOnx4Gc9BHJyclZNjI8PMqY+judp2jSr1iuENDPi5fDX4WG32WxeogL81NGRIEk3NBNAh10uS9IIY/oIbxR6vd4WLXmJAq9Ayl1kTAUmk8mNyJrUgDfK8hFPV9dnTQSCHiLkO/Ndb8jzrXqKawYJQg4gsu6srKyV4cC/7ujo1CqneRSPxNh74PligPdE3PYVIDHuY6PRWCxPTp7VC35KSvwjwBpwdPP4gXYc86ZdZnr6Pf7S9HqexUs9z0qBLprz8wn+PzWRFknaKGsgjwlvCdLGH42GQ0lg+dqkMP+Enj+lF/yMWYgnJD1qEhhphOWgS2E2yQZDJWa/lEgIvGIa0D2HKJZGA7yiBgaZqO9AermdFstGXQR8fn+BootW4wfPRBE8zXmXoia2SYLgpsJRVwqBBJ2N+pnueRVhPR8l8MGCnaWw8wDCDSWQoasGQCKJnpjGcwkkKqMBfo7ZyQklQCOxWVcRg4QDXmhkSJRjsGvRAD8HCTuNhNPpXKtLzHn9/n0orBqm052GvL2lcfepTMs8PwsJqyRJRbrlNFpBCUBcYWaKE2h4tampqUtV6pP60HNtapuUksTY2NidiLcWUQPnMOhlxvQoITGxxOPxDIVdR2dnb/V2dr7Umn50/Q31261JC4UhUQYSVUxdtPCCUAK10RuvZeQ0LRQ2tD7fddxdyuT3TijJehATF/yinqmJ2wB+jCGRA11TH9xiXAwEQpG4i0gcZHLPjHSqF0Vx76IgEIpEA9a7+3H5K2RK4jnuPvTToXgR0LW9Htpap71iAzPVNsUIMH0XMdXkfLrfD9BdanifksiKW/5w3Emj3mcHBgb6kpKTn6KYzfBCehzg10H6lHPzMdIWq9U8znEpsXE6N4rTO9TjSGgPanG/pfwjwABn1PZcM5XI0AAAAABJRU5ErkJggg0KLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLTkwMjA5MzIyMjIxMzkzMzc2NzAwNjg0MC0tDQo=') no-repeat center",
91
91
  backgroundSize: '100% 100%',
@@ -96,13 +96,13 @@ export var NumberKeyboard = function(props) {
96
96
  style: style
97
97
  });
98
98
  };
99
- var NumberKeyboardKey = function(props) {
99
+ var NumberKeyboardKey = function NumberKeyboardKey(props) {
100
100
  var item = props.item;
101
101
  var _useState = _sliced_to_array(useState(false), 2), active = _useState[0], setActive = _useState[1];
102
- var onTouchStart = function() {
102
+ var onTouchStart = function onTouchStart() {
103
103
  setActive(true);
104
104
  };
105
- var onTouchEnd = function(item) {
105
+ var onTouchEnd = function onTouchEnd(item) {
106
106
  setActive(false);
107
107
  switch(item.type){
108
108
  case 'num':
@@ -122,7 +122,7 @@ export var NumberKeyboard = function(props) {
122
122
  break;
123
123
  }
124
124
  };
125
- var renderContent = function(item) {
125
+ var renderContent = function renderContent(item) {
126
126
  switch(item.type){
127
127
  case 'num':
128
128
  case 'custom':
@@ -150,13 +150,13 @@ export var NumberKeyboard = function(props) {
150
150
  delete: item.type === 'delete',
151
151
  confirm: item.type === 'confirm'
152
152
  }),
153
- onTouchStart: function() {
153
+ onTouchStart: function onTouchStart1() {
154
154
  return onTouchStart();
155
155
  },
156
- onTouchEnd: function() {
156
+ onTouchEnd: function onTouchEnd1() {
157
157
  return onTouchEnd(item);
158
158
  },
159
- onTouchCancel: function() {
159
+ onTouchCancel: function onTouchCancel() {
160
160
  return onTouchEnd(item);
161
161
  }
162
162
  }, renderContent(item)));
@@ -14,12 +14,12 @@ export var defaultOverlayProps = _object_spread_props(_object_spread({}, Compone
14
14
  closeOnOverlayClick: true,
15
15
  visible: false,
16
16
  lockScroll: true,
17
- onClick: function() {},
18
- afterShow: function() {},
19
- afterClose: function() {}
17
+ onClick: function onClick() {},
18
+ afterShow: function afterShow() {},
19
+ afterClose: function afterClose() {}
20
20
  });
21
- export var Overlay = function(props) {
22
- var _ref = _object_spread({}, defaultOverlayProps, props), children = _ref.children, zIndex = _ref.zIndex, duration = _ref.duration, className = _ref.className, closeOnOverlayClick = _ref.closeOnOverlayClick, visible = _ref.visible, lockScroll = _ref.lockScroll, style = _ref.style, afterShow = _ref.afterShow, afterClose = _ref.afterClose, onClick = _ref.onClick, rest = _object_without_properties(_ref, [
21
+ export var Overlay = function Overlay(props) {
22
+ var _$_object_spread = _object_spread({}, defaultOverlayProps, props), children = _$_object_spread.children, zIndex = _$_object_spread.zIndex, duration = _$_object_spread.duration, className = _$_object_spread.className, closeOnOverlayClick = _$_object_spread.closeOnOverlayClick, visible = _$_object_spread.visible, lockScroll = _$_object_spread.lockScroll, style = _$_object_spread.style, afterShow = _$_object_spread.afterShow, afterClose = _$_object_spread.afterClose, onClick = _$_object_spread.onClick, rest = _object_without_properties(_$_object_spread, [
23
23
  "children",
24
24
  "zIndex",
25
25
  "duration",
@@ -44,12 +44,12 @@ export var Overlay = function(props) {
44
44
  var styles = _object_spread({
45
45
  zIndex: zIndex
46
46
  }, style);
47
- var handleClick = function(e) {
47
+ var handleClick = function handleClick(e) {
48
48
  if (closeOnOverlayClick) {
49
49
  onClick && onClick(e);
50
50
  }
51
51
  };
52
- var renderOverlay = function() {
52
+ var renderOverlay = function renderOverlay() {
53
53
  return /*#__PURE__*/ React.createElement(View, _object_spread_props(_object_spread({
54
54
  ref: nodeRef,
55
55
  className: classes,
@@ -21,9 +21,9 @@ var defaultProps = _object_spread_props(_object_spread({}, ComponentDefaults), {
21
21
  itemSize: 5,
22
22
  ellipse: false
23
23
  });
24
- export var Pagination = function(props) {
24
+ export var Pagination = function Pagination(props) {
25
25
  var locale = useConfig().locale;
26
- var _ref = _object_spread({}, defaultProps, props), value = _ref.value, mode = _ref.mode, prev = _ref.prev, next = _ref.next, total = _ref.total, pageSize = _ref.pageSize, itemSize = _ref.itemSize, onChange = _ref.onChange, ellipse = _ref.ellipse, itemRender = _ref.itemRender, defaultValue = _ref.defaultValue, className = _ref.className, style = _ref.style, rest = _object_without_properties(_ref, [
26
+ var _$_object_spread = _object_spread({}, defaultProps, props), value = _$_object_spread.value, mode = _$_object_spread.mode, prev = _$_object_spread.prev, next = _$_object_spread.next, total = _$_object_spread.total, pageSize = _$_object_spread.pageSize, itemSize = _$_object_spread.itemSize, onChange = _$_object_spread.onChange, ellipse = _$_object_spread.ellipse, itemRender = _$_object_spread.itemRender, defaultValue = _$_object_spread.defaultValue, className = _$_object_spread.className, style = _$_object_spread.style, rest = _object_without_properties(_$_object_spread, [
27
27
  "value",
28
28
  "mode",
29
29
  "prev",
@@ -52,16 +52,16 @@ export var Pagination = function(props) {
52
52
  displayCount: itemSize,
53
53
  itemsPerPage: pageSize
54
54
  }), 2), pages = _usePagination[0], pageCount = _usePagination[1];
55
- var handleClick = function(item) {
55
+ var handleClick = function handleClick(item) {
56
56
  if (item.selected) return;
57
57
  if (item.number > pageCount || item.number < 1) return;
58
58
  setCurrent(item.number);
59
59
  };
60
- var prevPage = function() {
60
+ var prevPage = function prevPage() {
61
61
  var prev = current - 1;
62
62
  prev >= 1 && setCurrent(prev);
63
63
  };
64
- var nextPage = function() {
64
+ var nextPage = function nextPage() {
65
65
  var next = current + 1;
66
66
  next <= pageCount && setCurrent(next);
67
67
  };
@@ -71,7 +71,7 @@ export var Pagination = function(props) {
71
71
  style: style
72
72
  }, (mode === 'multi' || mode === 'simple') && /*#__PURE__*/ React.createElement(React.Fragment, null, /*#__PURE__*/ React.createElement(View, {
73
73
  className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-prev"), true), _define_property(_obj, "".concat(classPrefix, "-simple-border"), mode !== 'multi'), _define_property(_obj, "".concat(classPrefix, "-prev-disabled"), current === 1), _obj)),
74
- onClick: function() {
74
+ onClick: function onClick() {
75
75
  return prevPage();
76
76
  }
77
77
  }, addColorForHarmony(prev || locale.pagination.prev, current === 1 ? '#c2c4cc' : '#ff0f23')), mode === 'multi' && /*#__PURE__*/ React.createElement(View, {
@@ -81,7 +81,7 @@ export var Pagination = function(props) {
81
81
  return /*#__PURE__*/ React.createElement(View, {
82
82
  key: "".concat(index, "pagination"),
83
83
  className: classNames((_obj = {}, _define_property(_obj, "".concat(classPrefix, "-item"), true), _define_property(_obj, "".concat(classPrefix, "-item-active"), item.selected), _obj)),
84
- onClick: function() {
84
+ onClick: function onClick() {
85
85
  handleClick(item);
86
86
  }
87
87
  }, itemRender ? itemRender(item, current) : item.text);
@@ -91,7 +91,7 @@ export var Pagination = function(props) {
91
91
  className: "".concat(classPrefix, "-simple")
92
92
  }, "".concat(current, "/").concat(pageCount))), /*#__PURE__*/ React.createElement(View, {
93
93
  className: classNames((_obj1 = {}, _define_property(_obj1, "".concat(classPrefix, "-next"), true), _define_property(_obj1, "".concat(classPrefix, "-next-disabled"), current >= pageCount), _obj1)),
94
- onClick: function() {
94
+ onClick: function onClick() {
95
95
  return nextPage();
96
96
  }
97
97
  }, addColorForHarmony(next || locale.pagination.next, current >= pageCount ? '#c2c4cc' : '#ff0f23'))), mode === 'lite' && /*#__PURE__*/ React.createElement(View, {